From 217d7eaafd9b5435aa0a4612a9dca2ca0e4e3326 Mon Sep 17 00:00:00 2001 From: Ethan Bao Date: Wed, 29 Nov 2017 15:27:04 -0800 Subject: [PATCH 001/371] first commit --- packages/google-container/README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 packages/google-container/README.md diff --git a/packages/google-container/README.md b/packages/google-container/README.md new file mode 100644 index 00000000000..90832e5d85f --- /dev/null +++ b/packages/google-container/README.md @@ -0,0 +1,2 @@ +This is a dummy README file. +# nodejs-cloud-container From bffc84f21c1968528e6b5c5fa07b2170c81c5ac2 Mon Sep 17 00:00:00 2001 From: Google API Publisher Date: Wed, 29 Nov 2017 23:27:58 +0000 Subject: [PATCH 002/371] Nodejs GAPIC: Container v1 --- packages/google-container/README.md | 33 +- packages/google-container/package.json | 44 + .../google/container/v1/cluster_service.proto | 1681 +++++++++++ packages/google-container/src/index.js | 79 + .../src/v1/cluster_manager_client.js | 2158 ++++++++++++++ .../src/v1/cluster_manager_client_config.json | 176 ++ .../container/v1/doc_cluster_service.js | 2158 ++++++++++++++ packages/google-container/src/v1/index.js | 19 + packages/google-container/test/gapic-v1.js | 2525 +++++++++++++++++ 9 files changed, 8871 insertions(+), 2 deletions(-) create mode 100644 packages/google-container/package.json create mode 100644 packages/google-container/protos/google/container/v1/cluster_service.proto create mode 100644 packages/google-container/src/index.js create mode 100644 packages/google-container/src/v1/cluster_manager_client.js create mode 100644 packages/google-container/src/v1/cluster_manager_client_config.json create mode 100644 packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js create mode 100644 packages/google-container/src/v1/index.js create mode 100644 packages/google-container/test/gapic-v1.js diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 90832e5d85f..a4e2b836b88 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -1,2 +1,31 @@ -This is a dummy README file. -# nodejs-cloud-container +# Node.js Client for Google Container Engine API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-node#versioning)) + +[Google Container Engine API][Product Documentation]: +The Google Kubernetes Engine API is used for building and managing container +based applications, powered by the open source Kubernetes technology. +- [Client Library Documentation][] +- [Product Documentation][] + +## Quick Start +In order to use this library, you first need to go through the following +steps: + +1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) +2. [Enable the Google Container Engine API.](https://console.cloud.google.com/apis/api/container) +3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/master/guides/authentication) + +### Installation +``` +$ npm install --save @google-cloud/container +``` + +### Next Steps +- Read the [Client Library Documentation][] for Google Container Engine API + to see other available methods on the client. +- Read the [Google Container Engine API Product documentation][Product Documentation] + to learn more about the product and see How-to Guides. +- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/README.md) + to see the full list of Cloud APIs that we cover. + +[Client Library Documentation]: https://googlecloudplatform.github.io/google-cloud-node/#/docs/container +[Product Documentation]: https://cloud.google.com/container \ No newline at end of file diff --git a/packages/google-container/package.json b/packages/google-container/package.json new file mode 100644 index 00000000000..9751c20bf0d --- /dev/null +++ b/packages/google-container/package.json @@ -0,0 +1,44 @@ +{ + "repository": "GoogleCloudPlatform/google-cloud-node", + "name": "@google-cloud/container", + "version": "0.7.1", + "author": "Google Inc", + "description": "Google Container Engine API client for Node.js", + "main": "src/index.js", + "files": [ + "protos", + "src", + "AUTHORS", + "COPYING" + ], + "keywords": [ + "google apis client", + "google api client", + "google apis", + "google api", + "google", + "google cloud platform", + "google cloud", + "cloud", + "google container", + "container", + "Google Container Engine API" + ], + "dependencies": { + "google-gax": "^0.14.2", + "lodash.merge": "^4.6.0" + }, + "devDependencies": { + "mocha": "^3.2.0", + "through2": "^2.0.3" + }, + "scripts": { + "publish-module": "node ../../scripts/publish.js container", + "smoke-test": "mocha smoke-test/*.js --timeout 5000", + "test": "mocha test/*.js" + }, + "license": "Apache-2.0", + "engines": { + "node": ">=4.0.0" + } +} diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto new file mode 100644 index 00000000000..4636fdcc5d6 --- /dev/null +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -0,0 +1,1681 @@ +// Copyright 2017 Google Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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"; + +package google.container.v1; + +import "google/api/annotations.proto"; +import "google/protobuf/empty.proto"; + +option go_package = "google.golang.org/genproto/googleapis/container/v1;container"; +option java_multiple_files = true; +option java_outer_classname = "ClusterServiceProto"; +option java_package = "com.google.container.v1"; +option csharp_namespace = "Google.Cloud.Container.V1"; +option php_namespace = "Google\\Cloud\\Container\\V1"; + + +// Google Container Engine Cluster Manager v1 +service ClusterManager { + // Lists all clusters owned by a project in either the specified zone or all + // zones. + rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { + option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters" }; + } + + // Gets the details of a specific cluster. + rpc GetCluster(GetClusterRequest) returns (Cluster) { + option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" }; + } + + // Creates a cluster, consisting of the specified number and type of Google + // Compute Engine instances. + // + // By default, the cluster is created in the project's + // [default network](/compute/docs/networks-and-firewalls#networks). + // + // One firewall is added for the cluster. After cluster creation, + // the cluster creates routes for each node to allow the containers + // on that node to communicate with all other instances in the + // cluster. + // + // Finally, an entry is added to the project's global metadata indicating + // which CIDR range is being used by the cluster. + rpc CreateCluster(CreateClusterRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters" body: "*" }; + } + + // Updates the settings of a specific cluster. + rpc UpdateCluster(UpdateClusterRequest) returns (Operation) { + option (google.api.http) = { put: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" body: "*" }; + } + + // Updates the version and/or image type of a specific node pool. + rpc UpdateNodePool(UpdateNodePoolRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update" body: "*" }; + } + + // Sets the autoscaling settings of a specific node pool. + rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling" body: "*" }; + } + + // Sets the logging service of a specific cluster. + rpc SetLoggingService(SetLoggingServiceRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging" body: "*" }; + } + + // Sets the monitoring service of a specific cluster. + rpc SetMonitoringService(SetMonitoringServiceRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring" body: "*" }; + } + + // Sets the addons of a specific cluster. + rpc SetAddonsConfig(SetAddonsConfigRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons" body: "*" }; + } + + // Sets the locations of a specific cluster. + rpc SetLocations(SetLocationsRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations" body: "*" }; + } + + // Updates the master of a specific cluster. + rpc UpdateMaster(UpdateMasterRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master" body: "*" }; + } + + // Used to set master auth materials. Currently supports :- + // Changing the admin password of a specific cluster. + // This can be either via password generation or explicitly set the password. + rpc SetMasterAuth(SetMasterAuthRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth" body: "*" }; + } + + // Deletes the cluster, including the Kubernetes endpoint and all worker + // nodes. + // + // Firewalls and routes that were configured during cluster creation + // are also deleted. + // + // Other Google Compute Engine resources that might be in use by the cluster + // (e.g. load balancer resources) will not be deleted if they weren't present + // at the initial create time. + rpc DeleteCluster(DeleteClusterRequest) returns (Operation) { + option (google.api.http) = { delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" }; + } + + // Lists all operations in a project in a specific zone or all zones. + rpc ListOperations(ListOperationsRequest) returns (ListOperationsResponse) { + option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/operations" }; + } + + // Gets the specified operation. + rpc GetOperation(GetOperationRequest) returns (Operation) { + option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" }; + } + + // Cancels the specified operation. + rpc CancelOperation(CancelOperationRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel" body: "*" }; + } + + // Returns configuration info about the Container Engine service. + rpc GetServerConfig(GetServerConfigRequest) returns (ServerConfig) { + option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/serverconfig" }; + } + + // Lists the node pools for a cluster. + rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) { + option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" }; + } + + // Retrieves the node pool requested. + rpc GetNodePool(GetNodePoolRequest) returns (NodePool) { + option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" }; + } + + // Creates a node pool for a cluster. + rpc CreateNodePool(CreateNodePoolRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" body: "*" }; + } + + // Deletes a node pool from a cluster. + rpc DeleteNodePool(DeleteNodePoolRequest) returns (Operation) { + option (google.api.http) = { delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" }; + } + + // Roll back the previously Aborted or Failed NodePool upgrade. + // This will be an no-op if the last upgrade successfully completed. + rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback" body: "*" }; + } + + // Sets the NodeManagement options for a node pool. + rpc SetNodePoolManagement(SetNodePoolManagementRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement" body: "*" }; + } + + // Sets labels on a cluster. + rpc SetLabels(SetLabelsRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels" body: "*" }; + } + + // Enables or disables the ABAC authorization mechanism on a cluster. + rpc SetLegacyAbac(SetLegacyAbacRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac" body: "*" }; + } + + // Start master IP rotation. + rpc StartIPRotation(StartIPRotationRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation" body: "*" }; + } + + // Completes master IP rotation. + rpc CompleteIPRotation(CompleteIPRotationRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation" body: "*" }; + } + + // Sets the size of a specific node pool. + rpc SetNodePoolSize(SetNodePoolSizeRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize" body: "*" }; + } + + // Enables/Disables Network Policy for a cluster. + rpc SetNetworkPolicy(SetNetworkPolicyRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy" body: "*" }; + } + + // Sets the maintenance policy for a cluster. + rpc SetMaintenancePolicy(SetMaintenancePolicyRequest) returns (Operation) { + option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy" body: "*" }; + } +} + +// Parameters that describe the nodes in a cluster. +message NodeConfig { + // The name of a Google Compute Engine [machine + // type](/compute/docs/machine-types) (e.g. + // `n1-standard-1`). + // + // If unspecified, the default machine type is + // `n1-standard-1`. + string machine_type = 1; + + // 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 = 2; + + // The set of Google API scopes to be made available on all of the + // node VMs under the "default" service account. + // + // The following scopes are recommended, but not required, and by default are + // not included: + // + // * `https://www.googleapis.com/auth/compute` is required for mounting + // persistent storage on your nodes. + // * `https://www.googleapis.com/auth/devstorage.read_only` is required for + // communicating with **gcr.io** + // (the [Google Container Registry](/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. + 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 + // 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 four reserved keys: + // "instance-template", "kube-env", "startup-script", and "user-data" + // + // 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 + // that each value's size must be less than or equal to 32 KB. + // + // The total size of all keys and values must be less than 512 KB. + map metadata = 4; + + // The image type to use for this node. Note that for a given image type, + // the latest version of it will be used. + string image_type = 5; + + // The map of Kubernetes labels (key/value pairs) to be applied to each node. + // These will added in addition to any default label(s) that + // Kubernetes may apply to the node. + // In case of conflict in label keys, the applied set may differ depending on + // the Kubernetes version -- it's best to assume the behavior is undefined + // and conflicts should be avoided. + // For more information, including usage and the valid values, see: + // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + map labels = 6; + + // The number of local SSD disks to be attached to the node. + // + // The limit for this value is dependant upon the maximum number of + // disks available on a machine per zone. See: + // https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits + // for more information. + int32 local_ssd_count = 7; + + // The list of instance tags applied to all nodes. Tags are used to identify + // valid sources or targets for network firewalls and are specified by + // the client during cluster or node pool creation. Each tag within the list + // must comply with RFC1035. + repeated string tags = 8; + + // Whether the nodes are created as preemptible VM instances. See: + // https://cloud.google.com/compute/docs/instances/preemptible for more + // information about preemptible VM instances. + bool preemptible = 10; + + // A list of hardware accelerators to be attached to each node. + // See https://cloud.google.com/compute/docs/gpus for more information about + // support for GPUs. + repeated AcceleratorConfig accelerators = 11; + + // 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 + // 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 authentication information for accessing the master endpoint. +// Authentication can be done using HTTP basic auth or using client +// certificates. +message MasterAuth { + // The username to use for HTTP basic authentication to the master endpoint. + // For clusters v1.6.0 and later, you can disable basic authentication by + // providing an empty username. + string username = 1; + + // 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; + + // Configuration for client certificate authentication on the cluster. If no + // configuration is specified, a client certificate is issued. + ClientCertificateConfig client_certificate_config = 3; + + // [Output only] Base64-encoded public certificate that is the root of + // trust for the cluster. + string cluster_ca_certificate = 100; + + // [Output only] Base64-encoded public certificate used by clients to + // authenticate to the cluster endpoint. + string client_certificate = 101; + + // [Output only] Base64-encoded private key used by clients to authenticate + // to the cluster endpoint. + string client_key = 102; +} + +// Configuration for client certificates on the cluster. +message ClientCertificateConfig { + // Issue a client certificate. + bool issue_client_certificate = 1; +} + +// Configuration for the addons that can be automatically spun up in the +// cluster, enabling additional functionality. +message AddonsConfig { + // Configuration for the HTTP (L7) load balancing controller addon, which + // makes it easy to set up HTTP load balancers for services in a cluster. + HttpLoadBalancing http_load_balancing = 1; + + // Configuration for the horizontal pod autoscaling feature, which + // increases or decreases the number of replica pods a replication controller + // has based on the resource usage of the existing pods. + HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + + // Configuration for the Kubernetes Dashboard. + KubernetesDashboard kubernetes_dashboard = 3; + + // Configuration for NetworkPolicy. This only tracks whether the addon + // is enabled or not on the Master, it does not track whether network policy + // is enabled for the nodes. + NetworkPolicyConfig network_policy_config = 4; +} + +// Configuration options for the HTTP (L7) load balancing controller addon, +// which makes it easy to set up HTTP load balancers for services in a cluster. +message HttpLoadBalancing { + // Whether the HTTP Load Balancing controller is enabled in the cluster. + // When enabled, it runs a small pod in the cluster that manages the load + // balancers. + bool disabled = 1; +} + +// Configuration options for the horizontal pod autoscaling feature, which +// increases or decreases the number of replica pods a replication controller +// 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. + bool disabled = 1; +} + +// Configuration for the Kubernetes Dashboard. +message KubernetesDashboard { + // Whether the Kubernetes Dashboard is enabled for this cluster. + bool disabled = 1; +} + +// Configuration for NetworkPolicy. This only tracks whether the addon +// is enabled or not on the Master, it does not track whether network policy +// is enabled for the nodes. +message NetworkPolicyConfig { + // Whether NetworkPolicy is enabled for this cluster. + bool disabled = 1; +} + +// Master authorized networks is a Beta feature. +// Configuration options for the master authorized networks feature. Enabled +// master authorized networks will disallow all external traffic to access +// Kubernetes master through HTTPS except traffic from the given CIDR blocks, +// Google Compute Engine Public IPs and Google Prod IPs. +message MasterAuthorizedNetworksConfig { + // CidrBlock contains an optional name and one CIDR block. + message CidrBlock { + // display_name is an optional field for users to identify CIDR blocks. + string display_name = 1; + + // cidr_block must be specified in CIDR notation. + string cidr_block = 2; + } + + // Whether or not master authorized networks is enabled. + bool enabled = 1; + + // cidr_blocks define up to 10 external networks that could access + // Kubernetes master through HTTPS. + repeated CidrBlock cidr_blocks = 2; +} + +// Configuration for the legacy Attribute Based Access Control authorization +// mode. +message LegacyAbac { + // Whether the ABAC authorizer is enabled for this cluster. When enabled, + // identities in the system, including service accounts, nodes, and + // controllers, will have statically granted permissions beyond those + // provided by the RBAC configuration or IAM. + bool enabled = 1; +} + +// Configuration options for the NetworkPolicy feature. +// https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ +message NetworkPolicy { + // Allowed Network Policy providers. + enum Provider { + // Not set + PROVIDER_UNSPECIFIED = 0; + + // Tigera (Calico Felix). + CALICO = 1; + } + + // The selected network policy provider. + Provider provider = 1; + + // Whether network policy is enabled on the cluster. + bool enabled = 2; +} + +// Configuration for controlling how IPs are allocated in the cluster. +message IPAllocationPolicy { + // Whether alias IPs will be used for pod IPs in the cluster. + bool use_ip_aliases = 1; + + // Whether a new subnetwork will be created automatically for the cluster. + // + // This field is only applicable when `use_ip_aliases` is true. + bool create_subnetwork = 2; + + // A custom subnetwork name to be used if `create_subnetwork` is true. If + // this field is empty, then an automatic name will be chosen for the new + // subnetwork. + string subnetwork_name = 3; + + // This field is deprecated, use cluster_ipv4_cidr_block. + string cluster_ipv4_cidr = 4; + + // This field is deprecated, use node_ipv4_cidr_block. + string node_ipv4_cidr = 5; + + // This field is deprecated, use services_ipv4_cidr_block. + string services_ipv4_cidr = 6; + + // The name of the secondary range to be used for the cluster CIDR + // block. The secondary range will be used for pod IP + // addresses. This must be an existing secondary range associated + // with the cluster subnetwork. + // + // This field is only applicable with use_ip_aliases is true and + // create_subnetwork is false. + string cluster_secondary_range_name = 7; + + // The name of the secondary range to be used as for the services + // CIDR block. The secondary range will be used for service + // ClusterIPs. This must be an existing secondary range associated + // with the cluster subnetwork. + // + // This field is only applicable with use_ip_aliases is true and + // create_subnetwork is false. + string services_secondary_range_name = 8; + + // The IP address range for the cluster pod IPs. If this field is set, then + // `cluster.cluster_ipv4_cidr` must be left blank. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string cluster_ipv4_cidr_block = 9; + + // The IP address range of the instance IPs in this cluster. + // + // This is applicable only if `create_subnetwork` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string node_ipv4_cidr_block = 10; + + // The IP address range of the services IPs in this cluster. If blank, a range + // will be automatically chosen with the default size. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + // to use. + string services_ipv4_cidr_block = 11; +} + +// A Google Container Engine cluster. +message Cluster { + // The current status of the cluster. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The PROVISIONING state indicates the cluster is being created. + PROVISIONING = 1; + + // The RUNNING state indicates the cluster has been created and is fully + // usable. + RUNNING = 2; + + // The RECONCILING state indicates that some work is actively being done on + // the cluster, such as upgrading the master or node software. Details can + // be found in the `statusMessage` field. + RECONCILING = 3; + + // 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. + ERROR = 5; + } + + // The name of this cluster. The name must be unique within this project + // and zone, and can be up to 40 characters with the following restrictions: + // + // * Lowercase letters, numbers, and hyphens only. + // * Must start with a letter. + // * Must end with a number or a letter. + string name = 1; + + // An optional description of this cluster. + string description = 2; + + // The number of nodes to create in this cluster. You must ensure that your + // Compute Engine resource quota + // is sufficient for this number of instances. You must also have available + // firewall and routes quota. + // For requests, this field should only be used in lieu of a + // "node_pool" object, since this configuration (along with the + // "node_config") will be used to create a "NodePool" object with an + // auto-generated name. Do not use this and a node_pool at the same time. + int32 initial_node_count = 3; + + // Parameters used in creating the cluster's nodes. + // See `nodeConfig` for the description of its properties. + // For requests, this field should only be used in lieu of a + // "node_pool" object, since this configuration (along with the + // "initial_node_count") will be used to create a "NodePool" object with an + // auto-generated name. Do not use this and a node_pool at the same time. + // For responses, this field will be populated with the node configuration of + // the first node pool. + // + // If unspecified, the defaults are used. + NodeConfig node_config = 4; + + // The authentication information for accessing the master endpoint. + MasterAuth master_auth = 5; + + // The logging service the cluster should use to write logs. + // Currently available options: + // + // * `logging.googleapis.com` - the Google Cloud Logging service. + // * `none` - no logs will be exported from the cluster. + // * if left as an empty string,`logging.googleapis.com` will be used. + 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. + string monitoring_service = 7; + + // The name of the Google Compute Engine + // [network](/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 + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`). Leave blank to have + // one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + string cluster_ipv4_cidr = 9; + + // Configurations for the various addons available to run in the cluster. + AddonsConfig addons_config = 10; + + // The name of the Google Compute Engine + // [subnetwork](/compute/docs/subnetworks) to which the + // cluster is connected. + string subnetwork = 11; + + // The node pools associated with this cluster. + // This field should not be set if "node_config" or "initial_node_count" are + // specified. + repeated NodePool node_pools = 12; + + // The list of Google Compute Engine + // [locations](/compute/docs/zones#available) in which the cluster's nodes + // should be located. + repeated string locations = 13; + + // Kubernetes alpha features are enabled on this cluster. This includes alpha + // API groups (e.g. v1alpha1) and features that may not be production ready in + // the kubernetes version of the master and nodes. + // The cluster has no SLA for uptime and master/node upgrades are disabled. + // Alpha enabled clusters are automatically deleted thirty days after + // creation. + bool enable_kubernetes_alpha = 14; + + // The resource labels for the cluster to use to annotate any related + // Google Compute Engine resources. + map resource_labels = 15; + + // The fingerprint of the set of labels for this cluster. + string label_fingerprint = 16; + + // Configuration for the legacy ABAC authorization mode. + LegacyAbac legacy_abac = 18; + + // Configuration options for the NetworkPolicy feature. + NetworkPolicy network_policy = 19; + + // Configuration for cluster IP allocation. + IPAllocationPolicy ip_allocation_policy = 20; + + // Master authorized networks is a Beta feature. + // The configuration options for master authorized networks feature. + MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; + + // Configure the maintenance policy for this cluster. + MaintenancePolicy maintenance_policy = 23; + + // [Output only] Server-defined URL for the resource. + string self_link = 100; + + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 101; + + // [Output only] The IP address of this cluster's master endpoint. + // The endpoint can be accessed from the internet at + // `https://username:password@endpoint/`. + // + // See the `masterAuth` property of this resource for username and + // password information. + string endpoint = 102; + + // The initial Kubernetes version for this cluster. Valid versions are those + // found in validMasterVersions returned by getServerConfig. The version can + // be upgraded over time; such upgrades are reflected in + // currentMasterVersion and currentNodeVersion. + string initial_cluster_version = 103; + + // [Output only] The current software version of the master endpoint. + string current_master_version = 104; + + // [Output only] 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. + string current_node_version = 105; + + // [Output only] The time the cluster was created, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string create_time = 106; + + // [Output only] The current status of this cluster. + Status status = 107; + + // [Output only] Additional information about the current status of this + // cluster, if available. + string status_message = 108; + + // [Output only] The size of the address space on each node for hosting + // containers. This is provisioned from within the `container_ipv4_cidr` + // range. + int32 node_ipv4_cidr_size = 109; + + // [Output only] The IP address range of the Kubernetes services in + // this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `1.2.3.4/29`). Service addresses are + // typically put in the last `/16` from the container CIDR. + string services_ipv4_cidr = 110; + + // Deprecated. Use node_pools.instance_group_urls. + repeated string instance_group_urls = 111; + + // [Output only] The number of nodes currently in the cluster. + int32 current_node_count = 112; + + // [Output only] The time the cluster will be automatically + // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string expire_time = 113; +} + +// ClusterUpdate describes an update to the cluster. Exactly one update can +// be applied to a cluster with each request, so at most one field can be +// provided. +message ClusterUpdate { + // The Kubernetes version to change the nodes to (typically an + // upgrade). Use `-` to upgrade to the latest version supported by + // the server. + string desired_node_version = 4; + + // 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 + string desired_monitoring_service = 5; + + // Configurations for the various addons available to run in the cluster. + AddonsConfig desired_addons_config = 6; + + // The node pool to be upgraded. This field is mandatory if + // "desired_node_version", "desired_image_family" or + // "desired_node_pool_autoscaling" is specified and there is more than one + // node pool on the cluster. + string desired_node_pool_id = 7; + + // The desired image type for the node pool. + // NOTE: Set the "desired_node_pool" field as well. + string desired_image_type = 8; + + // 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 + // the change applies to that single node pool. + NodePoolAutoscaling desired_node_pool_autoscaling = 9; + + // The desired list of Google Compute Engine + // [locations](/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 desired_locations = 10; + + // Master authorized networks is a Beta feature. + // The desired configuration options for master authorized networks feature. + MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + + // The Kubernetes version to change the master to. The only valid value is the + // latest supported version. Use "-" to have the server automatically select + // the latest version. + string desired_master_version = 100; +} + +// This operation resource represents operations that may have happened or are +// happening on the cluster. All fields are output only. +message Operation { + // Current status of the operation. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The operation has been created. + PENDING = 1; + + // The operation is currently running. + RUNNING = 2; + + // The operation is done, either cancelled or completed. + DONE = 3; + + // The operation is aborting. + ABORTING = 4; + } + + // Operation type. + enum Type { + // Not set. + TYPE_UNSPECIFIED = 0; + + // Cluster create. + CREATE_CLUSTER = 1; + + // Cluster delete. + DELETE_CLUSTER = 2; + + // A master upgrade. + UPGRADE_MASTER = 3; + + // A node upgrade. + UPGRADE_NODES = 4; + + // Cluster repair. + REPAIR_CLUSTER = 5; + + // Cluster update. + UPDATE_CLUSTER = 6; + + // Node pool create. + CREATE_NODE_POOL = 7; + + // Node pool delete. + DELETE_NODE_POOL = 8; + + // Set node pool management. + SET_NODE_POOL_MANAGEMENT = 9; + + // Automatic node pool repair. + AUTO_REPAIR_NODES = 10; + + // Automatic node upgrade. + AUTO_UPGRADE_NODES = 11; + + // Set labels. + SET_LABELS = 12; + + // Set/generate master auth materials + SET_MASTER_AUTH = 13; + + // Set node pool size. + SET_NODE_POOL_SIZE = 14; + + // Updates network policy for a cluster. + SET_NETWORK_POLICY = 15; + + // Set the maintenance policy. + SET_MAINTENANCE_POLICY = 16; + } + + // The server-assigned ID for the operation. + string name = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the operation + // is taking place. + string zone = 2; + + // The operation type. + Type operation_type = 3; + + // The current status of the operation. + Status status = 4; + + // Detailed operation progress, if available. + string detail = 8; + + // If an error has occurred, a textual description of the error. + string status_message = 5; + + // Server-defined URL for the resource. + string self_link = 6; + + // Server-defined URL for the target of the operation. + string target_link = 7; + + // [Output only] The time the operation started, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string start_time = 10; + + // [Output only] The time the operation completed, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string end_time = 11; +} + +// CreateClusterRequest creates a cluster. +message CreateClusterRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // A [cluster + // resource](/container-engine/reference/rest/v1/projects.zones.clusters) + Cluster cluster = 3; +} + +// GetClusterRequest gets the settings of a cluster. +message GetClusterRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to retrieve. + string cluster_id = 3; +} + +// UpdateClusterRequest updates the settings of a cluster. +message UpdateClusterRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to upgrade. + string cluster_id = 3; + + // A description of the update. + ClusterUpdate update = 4; +} + +// UpdateNodePoolRequests update a node pool's image and/or version. +message UpdateNodePoolRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to upgrade. + string cluster_id = 3; + + // The name of the node pool to upgrade. + string node_pool_id = 4; + + // The Kubernetes version to change the nodes to (typically an + // upgrade). Use `-` to upgrade to the latest version supported by + // the server. + string node_version = 5; + + // The desired image type for the node pool. + string image_type = 6; +} + +// SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. +message SetNodePoolAutoscalingRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to upgrade. + string cluster_id = 3; + + // The name of the node pool to upgrade. + string node_pool_id = 4; + + // Autoscaling configuration for the node pool. + NodePoolAutoscaling autoscaling = 5; +} + +// SetLoggingServiceRequest sets the logging service of a cluster. +message SetLoggingServiceRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to upgrade. + string cluster_id = 3; + + // The logging service the cluster should use to write metrics. + // Currently available options: + // + // * "logging.googleapis.com" - the Google Cloud Logging service + // * "none" - no metrics will be exported from the cluster + string logging_service = 4; +} + +// SetMonitoringServiceRequest sets the monitoring service of a cluster. +message SetMonitoringServiceRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to upgrade. + string cluster_id = 3; + + // 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 + string monitoring_service = 4; +} + +// SetAddonsConfigRequest sets the addons associated with the cluster. +message SetAddonsConfigRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to upgrade. + string cluster_id = 3; + + // The desired configurations for the various addons available to run in the + // cluster. + AddonsConfig addons_config = 4; +} + +// SetLocationsRequest sets the locations of the cluster. +message SetLocationsRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to upgrade. + string cluster_id = 3; + + // The desired list of Google Compute Engine + // [locations](/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; +} + +// UpdateMasterRequest updates the master of the cluster. +message UpdateMasterRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to upgrade. + string cluster_id = 3; + + // The Kubernetes version to change the master to. The only valid value is the + // latest supported version. Use "-" to have the server automatically select + // the latest version. + string master_version = 4; +} + +// SetMasterAuthRequest updates the admin password of a cluster. +message SetMasterAuthRequest { + // Operation type: what type update to perform. + enum Action { + // Operation is unknown and will error out. + UNKNOWN = 0; + + // Set the password to a user generated value. + SET_PASSWORD = 1; + + // Generate a new password and set it to that. + GENERATE_PASSWORD = 2; + + // Set the username. If an empty username is provided, basic authentication + // is disabled for the cluster. If a non-empty username is provided, basic + // authentication is enabled, with either a provided password or a generated + // one. + SET_USERNAME = 3; + } + + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to upgrade. + string cluster_id = 3; + + // The exact form of action to be taken on the master auth. + Action action = 4; + + // A description of the update. + MasterAuth update = 5; +} + +// DeleteClusterRequest deletes a cluster. +message DeleteClusterRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to delete. + string cluster_id = 3; +} + +// ListClustersRequest lists clusters. +message ListClustersRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides, or "-" for all zones. + string zone = 2; +} + +// ListClustersResponse is the result of ListClustersRequest. +message ListClustersResponse { + // A list of clusters in the project in the specified zone, or + // across all ones. + repeated Cluster clusters = 1; + + // If any zones are listed here, the list of clusters returned + // may be missing those zones. + repeated string missing_zones = 2; +} + +// GetOperationRequest gets a single operation. +message GetOperationRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The server-assigned `name` of the operation. + string operation_id = 3; +} + +// ListOperationsRequest lists operations. +message ListOperationsRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine [zone](/compute/docs/zones#available) + // to return operations for, or `-` for all zones. + string zone = 2; +} + +// CancelOperationRequest cancels a single operation. +message CancelOperationRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the operation resides. + string zone = 2; + + // The server-assigned `name` of the operation. + string operation_id = 3; +} + +// ListOperationsResponse is the result of ListOperationsRequest. +message ListOperationsResponse { + // A list of operations in the project in the specified zone. + repeated Operation operations = 1; + + // If any zones are listed here, the list of operations returned + // may be missing the operations from those zones. + repeated string missing_zones = 2; +} + +// Gets the current Container Engine service configuration. +message GetServerConfigRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine [zone](/compute/docs/zones#available) + // to return operations for. + string zone = 2; +} + +// Container Engine service configuration. +message ServerConfig { + // Version of Kubernetes the service deploys by default. + string default_cluster_version = 1; + + // List of valid node upgrade target versions. + repeated string valid_node_versions = 3; + + // Default image type. + string default_image_type = 4; + + // List of valid image types. + repeated string valid_image_types = 5; + + // List of valid master versions. + repeated string valid_master_versions = 6; +} + +// CreateNodePoolRequest creates a node pool for a cluster. +message CreateNodePoolRequest { + // The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster. + string cluster_id = 3; + + // The node pool to create. + NodePool node_pool = 4; +} + +// DeleteNodePoolRequest deletes a node pool for a cluster. +message DeleteNodePoolRequest { + // The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster. + string cluster_id = 3; + + // The name of the node pool to delete. + string node_pool_id = 4; +} + +// ListNodePoolsRequest lists the node pool(s) for a cluster. +message ListNodePoolsRequest { + // The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster. + string cluster_id = 3; +} + +// GetNodePoolRequest retrieves a node pool for a cluster. +message GetNodePoolRequest { + // The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster. + string cluster_id = 3; + + // The name of the node pool. + string node_pool_id = 4; +} + +// NodePool contains the name and configuration for a cluster's node pool. +// Node pools are a set of nodes (i.e. VM's), with a common configuration and +// specification, under the control of the cluster master. They may have a set +// of Kubernetes labels applied to them, which may be used to reference them +// during pod scheduling. They may also be resized up or down, to accommodate +// the workload. +message NodePool { + // The current status of the node pool instance. + enum Status { + // Not set. + STATUS_UNSPECIFIED = 0; + + // The PROVISIONING state indicates the node pool is being created. + PROVISIONING = 1; + + // The RUNNING state indicates the node pool has been created + // and is fully usable. + RUNNING = 2; + + // The RUNNING_WITH_ERROR state indicates the node pool has been created + // and is partially usable. Some error state has occurred and some + // functionality may be impaired. Customer may need to reissue a request + // or trigger a new update. + RUNNING_WITH_ERROR = 3; + + // The RECONCILING state indicates that some work is actively being done on + // the node pool, such as upgrading node software. Details can + // be found in the `statusMessage` field. + RECONCILING = 4; + + // The STOPPING state indicates the node pool is being deleted. + STOPPING = 5; + + // The ERROR state indicates the node pool may be unusable. Details + // can be found in the `statusMessage` field. + ERROR = 6; + } + + // The name of the node pool. + string name = 1; + + // The node configuration of the pool. + NodeConfig config = 2; + + // The initial node count for the pool. You must ensure that your + // Compute Engine resource quota + // is sufficient for this number of instances. You must also have available + // firewall and routes quota. + int32 initial_node_count = 3; + + // [Output only] Server-defined URL for the resource. + string self_link = 100; + + // The version of the Kubernetes of this node. + string version = 101; + + // [Output only] The resource URLs of the [managed instance + // groups](/compute/docs/instance-groups/creating-groups-of-managed-instances) + // associated with this node pool. + repeated string instance_group_urls = 102; + + // [Output only] The status of the nodes in this pool instance. + Status status = 103; + + // [Output only] Additional information about the current status of this + // node pool instance, if available. + string status_message = 104; + + // Autoscaler configuration for this NodePool. Autoscaler is enabled + // only if a valid configuration is present. + NodePoolAutoscaling autoscaling = 4; + + // NodeManagement configuration for this NodePool. + NodeManagement management = 5; +} + +// NodeManagement defines the set of node management services turned on for the +// node pool. +message NodeManagement { + // A flag that specifies whether node auto-upgrade is enabled for the node + // pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + // up to date with the latest release version of Kubernetes. + bool auto_upgrade = 1; + + // A flag that specifies whether the node auto-repair is enabled for the node + // pool. If enabled, the nodes in this node pool will be monitored and, if + // they fail health checks too many times, an automatic repair action will be + // triggered. + bool auto_repair = 2; + + // Specifies the Auto Upgrade knobs for the node pool. + AutoUpgradeOptions upgrade_options = 10; +} + +// AutoUpgradeOptions defines the set of options for the user to control how +// the Auto Upgrades will proceed. +message AutoUpgradeOptions { + // [Output only] This field is set when upgrades are about to commence + // with the approximate start time for the upgrades, in + // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string auto_upgrade_start_time = 1; + + // [Output only] This field is set when upgrades are about to commence + // with the description of the upgrade. + string description = 2; +} + +// MaintenancePolicy defines the maintenance policy to be used for the cluster. +message MaintenancePolicy { + // Specifies the maintenance window in which maintenance may be performed. + MaintenanceWindow window = 1; +} + +// MaintenanceWindow defines the maintenance window to be used for the cluster. +message MaintenanceWindow { + oneof policy { + // DailyMaintenanceWindow specifies a daily maintenance operation window. + DailyMaintenanceWindow daily_maintenance_window = 2; + } +} + +// Time window specified for daily maintenance operations. +message DailyMaintenanceWindow { + // Time within the maintenance window to start the maintenance operations. + // Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + // format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT. + string start_time = 2; + + // [Output only] Duration of the time window, automatically chosen to be + // smallest possible in the given scenario. + // Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + // format "PTnHnMnS". + string duration = 3; +} + +// SetNodePoolManagementRequest sets the node management properties of a node +// pool. +message SetNodePoolManagementRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to update. + string cluster_id = 3; + + // The name of the node pool to update. + string node_pool_id = 4; + + // NodeManagement configuration for the node pool. + NodeManagement management = 5; +} + +// SetNodePoolSizeRequest sets the size a node +// pool. +message SetNodePoolSizeRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to update. + string cluster_id = 3; + + // The name of the node pool to update. + string node_pool_id = 4; + + // The desired node count for the pool. + int32 node_count = 5; +} + +// RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed +// NodePool upgrade. This will be an no-op if the last upgrade successfully +// completed. +message RollbackNodePoolUpgradeRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to rollback. + string cluster_id = 3; + + // The name of the node pool to rollback. + string node_pool_id = 4; +} + +// ListNodePoolsResponse is the result of ListNodePoolsRequest. +message ListNodePoolsResponse { + // A list of node pools for a cluster. + repeated NodePool node_pools = 1; +} + +// NodePoolAutoscaling contains information required by cluster autoscaler to +// adjust the size of the node pool to the current cluster usage. +message NodePoolAutoscaling { + // Is autoscaling enabled for this node pool. + bool enabled = 1; + + // Minimum number of nodes in the NodePool. Must be >= 1 and <= + // max_node_count. + int32 min_node_count = 2; + + // Maximum number of nodes in the NodePool. Must be >= min_node_count. There + // has to enough quota to scale up the cluster. + int32 max_node_count = 3; +} + +// SetLabelsRequest sets the Google Cloud Platform labels on a Google Container +// Engine cluster, which will in turn set them for Google Compute Engine +// resources used by that cluster +message SetLabelsRequest { + // The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster. + string cluster_id = 3; + + // The labels to set for that cluster. + map resource_labels = 4; + + // The fingerprint of the previous set of labels for this resource, + // used to detect conflicts. The fingerprint is initially generated by + // Container 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 + // resource to get the latest fingerprint. + string label_fingerprint = 5; +} + +// SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for +// a cluster. +message SetLegacyAbacRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to update. + string cluster_id = 3; + + // Whether ABAC authorization will be enabled in the cluster. + bool enabled = 4; +} + +// StartIPRotationRequest creates a new IP for the cluster and then performs +// a node upgrade on each node pool to point to the new IP. +message StartIPRotationRequest { + // The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster. + string cluster_id = 3; +} + +// CompleteIPRotationRequest moves the cluster master back into single-IP mode. +message CompleteIPRotationRequest { + // The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster. + string cluster_id = 3; +} + +// AcceleratorConfig represents a Hardware Accelerator request. +message AcceleratorConfig { + // The number of the accelerator cards exposed to an instance. + int64 accelerator_count = 1; + + // The accelerator type resource name. List of supported accelerators + // [here](/compute/docs/gpus/#Introduction) + string accelerator_type = 2; +} + +// SetNetworkPolicyRequest enables/disables network policy for a cluster. +message SetNetworkPolicyRequest { + // The Google Developers Console [project ID or project + // number](https://developers.google.com/console/help/new/#projectnumber). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster. + string cluster_id = 3; + + // Configuration options for the NetworkPolicy feature. + NetworkPolicy network_policy = 4; +} + +// SetMaintenancePolicyRequest sets the maintenance policy for a cluster. +message SetMaintenancePolicyRequest { + // The Google Developers Console [project ID or project + // number](https://support.google.com/cloud/answer/6158840). + string project_id = 1; + + // The name of the Google Compute Engine + // [zone](/compute/docs/zones#available) in which the cluster + // resides. + string zone = 2; + + // The name of the cluster to update. + string cluster_id = 3; + + // The maintenance policy to be set for the cluster. An empty field + // clears the existing maintenance policy. + MaintenancePolicy maintenance_policy = 4; +} diff --git a/packages/google-container/src/index.js b/packages/google-container/src/index.js new file mode 100644 index 00000000000..26e472ff21a --- /dev/null +++ b/packages/google-container/src/index.js @@ -0,0 +1,79 @@ +// Copyright 2017, Google LLC All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +/** + * @namespace google + */ +/** + * @namespace google.cloud + */ +/** + * @namespace google.cloud.container + */ +/** + * @namespace google.cloud.container.v1 + */ + +'use strict'; + +// Import the clients for each version supported by this package. +const gapic = Object.freeze({ + v1: require('./v1'), +}); + +/** + * The `@google-cloud/container` package has the following named exports: + * + * - `ClusterManagerClient` - Reference to + * {@link v1.ClusterManagerClient} + * - `v1` - This is used for selecting or pinning a + * particular backend service version. It exports: + * - `ClusterManagerClient` - Reference to + * {@link v1.ClusterManagerClient} + * + * @module {object} @google-cloud/container + * @alias nodejs-container + * + * @example Install the client library with npm: + * npm install --save @google-cloud/container + * + * @example Import the client library: + * const container = require('@google-cloud/container'); + * + * @example Create a client that uses Application Default Credentials (ADC): + * const client = new container.ClusterManagerClient(); + * + * @example Create a client with explicit credentials: + * const client = new container.ClusterManagerClient({ + * projectId: 'your-project-id', + * keyFilename: '/path/to/keyfile.json', + * }); + */ + +/** + * @type {object} + * @property {constructor} ClusterManagerClient + * Reference to {@link v1.ClusterManagerClient} + */ +module.exports = gapic.v1; + +/** + * @type {object} + * @property {constructor} ClusterManagerClient + * Reference to {@link v1.ClusterManagerClient} + */ +module.exports.v1 = gapic.v1; + +// Alias `module.exports` as `module.exports.default`, for future-proofing. +module.exports.default = Object.assign({}, module.exports); diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js new file mode 100644 index 00000000000..1eed54ae580 --- /dev/null +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -0,0 +1,2158 @@ +// Copyright 2017, Google LLC All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +const gapicConfig = require('./cluster_manager_client_config'); +const gax = require('google-gax'); +const merge = require('lodash.merge'); +const path = require('path'); + +const VERSION = require('../../package.json').version; + +/** + * Google Container Engine Cluster Manager v1 + * + * @class + * @memberof v1 + */ +class ClusterManagerClient { + /** + * Construct an instance of ClusterManagerClient. + * + * @param {object} [options] - The configuration object. See the subsequent + * parameters for more details. + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * usaing a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option above is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {function} [options.promise] - Custom promise module to use instead + * of native Promises. + * @param {string} [options.servicePath] - The domain name of the + * API remote host. + */ + constructor(opts) { + this._descriptors = {}; + + // Ensure that options include the service address and port. + opts = Object.assign( + { + clientConfig: {}, + port: this.constructor.port, + servicePath: this.constructor.servicePath, + }, + opts + ); + + // Create a `gaxGrpc` object, with any grpc-specific options + // sent to the client. + opts.scopes = this.constructor.scopes; + var gaxGrpc = gax.grpc(opts); + + // Save the auth object to the client, for use by other methods. + this.auth = gaxGrpc.auth; + + // Determine the client header string. + var clientHeader = [ + `gl-node/${process.version.node}`, + `grpc/${gaxGrpc.grpcVersion}`, + `gax/${gax.version}`, + `gapic/${VERSION}`, + ]; + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + + // Load the applicable protos. + var protos = merge( + {}, + gaxGrpc.loadProto( + path.join(__dirname, '..', '..', 'protos'), + 'google/container/v1/cluster_service.proto' + ) + ); + + // Put together the default options sent with requests. + var defaults = gaxGrpc.constructSettings( + 'google.container.v1.ClusterManager', + gapicConfig, + opts.clientConfig, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this._innerApiCalls = {}; + + // Put together the "service stub" for + // google.container.v1.ClusterManager. + var clusterManagerStub = gaxGrpc.createStub( + protos.google.container.v1.ClusterManager, + opts + ); + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + var clusterManagerStubMethods = [ + 'listClusters', + 'getCluster', + 'createCluster', + 'updateCluster', + 'updateNodePool', + 'setNodePoolAutoscaling', + 'setLoggingService', + 'setMonitoringService', + 'setAddonsConfig', + 'setLocations', + 'updateMaster', + 'setMasterAuth', + 'deleteCluster', + 'listOperations', + 'getOperation', + 'cancelOperation', + 'getServerConfig', + 'listNodePools', + 'getNodePool', + 'createNodePool', + 'deleteNodePool', + 'rollbackNodePoolUpgrade', + 'setNodePoolManagement', + 'setLabels', + 'setLegacyAbac', + 'startIPRotation', + 'completeIPRotation', + 'setNodePoolSize', + 'setNetworkPolicy', + 'setMaintenancePolicy', + ]; + for (let methodName of clusterManagerStubMethods) { + this._innerApiCalls[methodName] = gax.createApiCall( + clusterManagerStub.then( + stub => + function() { + var args = Array.prototype.slice.call(arguments, 0); + return stub[methodName].apply(stub, args); + } + ), + defaults[methodName], + null + ); + } + } + + /** + * The DNS address for this API service. + */ + static get servicePath() { + return 'container.googleapis.com'; + } + + /** + * The port for this API service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + */ + static get scopes() { + return [ + 'https://www.googleapis.com/auth/cloud-platform', + ]; + } + + /** + * Return the project ID used by this class. + * @param {function(Error, string)} callback - the callback to + * be called with the current project Id. + */ + getProjectId(callback) { + return this.auth.getProjectId(callback); + } + + // ------------------- + // -- Service calls -- + // ------------------- + + /** + * Lists all clusters owned by a project in either the specified zone or all + * zones. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * 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. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [ListClustersResponse]{@link google.container.v1.ListClustersResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ListClustersResponse]{@link google.container.v1.ListClustersResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * }; + * client.listClusters(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + listClusters(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.listClusters(request, options, callback); + } + + /** + * Gets the details of a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to retrieve. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Cluster]{@link google.container.v1.Cluster}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Cluster]{@link google.container.v1.Cluster}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * }; + * client.getCluster(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + getCluster(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.getCluster(request, options, callback); + } + + /** + * Creates a cluster, consisting of the specified number and type of Google + * 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). + * + * One firewall is added for the cluster. After cluster creation, + * the cluster creates routes for each node to allow the containers + * on that node to communicate with all other instances in the + * cluster. + * + * Finally, an entry is added to the project's global metadata indicating + * which CIDR range is being used by the cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {Object} request.cluster + * A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) + * + * This object should have the same structure as [Cluster]{@link google.container.v1.Cluster} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var cluster = {}; + * var request = { + * projectId: projectId, + * zone: zone, + * cluster: cluster, + * }; + * client.createCluster(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + createCluster(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.createCluster(request, options, callback); + } + + /** + * Updates the settings of a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to upgrade. + * @param {Object} request.update + * A description of the update. + * + * This object should have the same structure as [ClusterUpdate]{@link google.container.v1.ClusterUpdate} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var update = {}; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * update: update, + * }; + * client.updateCluster(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + updateCluster(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.updateCluster(request, options, callback); + } + + /** + * Updates the version and/or image type of a specific node pool. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to upgrade. + * @param {string} request.nodePoolId + * The name of the node pool to upgrade. + * @param {string} request.nodeVersion + * The Kubernetes version to change the nodes to (typically an + * upgrade). Use `-` to upgrade to the latest version supported by + * the server. + * @param {string} request.imageType + * The desired image type for the node pool. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var nodePoolId = ''; + * var nodeVersion = ''; + * var imageType = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * nodePoolId: nodePoolId, + * nodeVersion: nodeVersion, + * imageType: imageType, + * }; + * client.updateNodePool(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + updateNodePool(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.updateNodePool(request, options, callback); + } + + /** + * Sets the autoscaling settings of a specific node pool. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to upgrade. + * @param {string} request.nodePoolId + * The name of the node pool to upgrade. + * @param {Object} request.autoscaling + * Autoscaling configuration for the node pool. + * + * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var nodePoolId = ''; + * var autoscaling = {}; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * nodePoolId: nodePoolId, + * autoscaling: autoscaling, + * }; + * client.setNodePoolAutoscaling(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setNodePoolAutoscaling(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setNodePoolAutoscaling(request, options, callback); + } + + /** + * Sets the logging service of a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to upgrade. + * @param {string} request.loggingService + * The logging service the cluster should use to write metrics. + * Currently available options: + * + * * "logging.googleapis.com" - the Google Cloud Logging service + * * "none" - no metrics will be exported from the cluster + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var loggingService = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * loggingService: loggingService, + * }; + * client.setLoggingService(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setLoggingService(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setLoggingService(request, options, callback); + } + + /** + * Sets the monitoring service of a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to upgrade. + * @param {string} request.monitoringService + * 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 + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var monitoringService = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * monitoringService: monitoringService, + * }; + * client.setMonitoringService(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setMonitoringService(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setMonitoringService(request, options, callback); + } + + /** + * Sets the addons of a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to upgrade. + * @param {Object} request.addonsConfig + * The desired configurations for the various addons available to run in the + * cluster. + * + * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var addonsConfig = {}; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * addonsConfig: addonsConfig, + * }; + * client.setAddonsConfig(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setAddonsConfig(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setAddonsConfig(request, options, callback); + } + + /** + * Sets the locations of a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to upgrade. + * @param {string[]} request.locations + * The desired list of Google Compute Engine + * [locations](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. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var locations = []; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * locations: locations, + * }; + * client.setLocations(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setLocations(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setLocations(request, options, callback); + } + + /** + * Updates the master of a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to upgrade. + * @param {string} request.masterVersion + * The Kubernetes version to change the master to. The only valid value is the + * latest supported version. Use "-" to have the server automatically select + * the latest version. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var masterVersion = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * masterVersion: masterVersion, + * }; + * client.updateMaster(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + updateMaster(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.updateMaster(request, options, callback); + } + + /** + * Used to set master auth materials. Currently supports :- + * Changing the admin password of a specific cluster. + * This can be either via password generation or explicitly set the password. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to upgrade. + * @param {number} request.action + * The exact form of action to be taken on the master auth. + * + * The number should be among the values of [Action]{@link google.container.v1.Action} + * @param {Object} request.update + * A description of the update. + * + * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var action = 'UNKNOWN'; + * var update = {}; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * action: action, + * update: update, + * }; + * client.setMasterAuth(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setMasterAuth(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setMasterAuth(request, options, callback); + } + + /** + * Deletes the cluster, including the Kubernetes endpoint and all worker + * nodes. + * + * Firewalls and routes that were configured during cluster creation + * are also deleted. + * + * Other Google Compute Engine resources that might be in use by the cluster + * (e.g. load balancer resources) will not be deleted if they weren't present + * at the initial create time. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to delete. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * }; + * client.deleteCluster(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + deleteCluster(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.deleteCluster(request, options, callback); + } + + /** + * Lists all operations in a project in a specific zone or all zones. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) + * to return operations for, or `-` for all zones. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [ListOperationsResponse]{@link google.container.v1.ListOperationsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ListOperationsResponse]{@link google.container.v1.ListOperationsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * }; + * client.listOperations(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + listOperations(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.listOperations(request, options, callback); + } + + /** + * Gets the specified operation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.operationId + * The server-assigned `name` of the operation. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var operationId = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * operationId: operationId, + * }; + * client.getOperation(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + getOperation(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.getOperation(request, options, callback); + } + + /** + * Cancels the specified operation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. + * @param {string} request.operationId + * The server-assigned `name` of the operation. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error)} [callback] + * The function which will be called with the result of the API call. + * @returns {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var operationId = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * operationId: operationId, + * }; + * client.cancelOperation(request).catch(err => { + * console.error(err); + * }); + */ + cancelOperation(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.cancelOperation(request, options, callback); + } + + /** + * Returns configuration info about the Container Engine service. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) + * to return operations for. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [ServerConfig]{@link google.container.v1.ServerConfig}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ServerConfig]{@link google.container.v1.ServerConfig}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * }; + * client.getServerConfig(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + getServerConfig(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.getServerConfig(request, options, callback); + } + + /** + * Lists the node pools for a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [ListNodePoolsResponse]{@link google.container.v1.ListNodePoolsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ListNodePoolsResponse]{@link google.container.v1.ListNodePoolsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * }; + * client.listNodePools(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + listNodePools(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.listNodePools(request, options, callback); + } + + /** + * Retrieves the node pool requested. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster. + * @param {string} request.nodePoolId + * The name of the node pool. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [NodePool]{@link google.container.v1.NodePool}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [NodePool]{@link google.container.v1.NodePool}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var nodePoolId = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * nodePoolId: nodePoolId, + * }; + * client.getNodePool(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + getNodePool(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.getNodePool(request, options, callback); + } + + /** + * Creates a node pool for a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster. + * @param {Object} request.nodePool + * The node pool to create. + * + * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var nodePool = {}; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * nodePool: nodePool, + * }; + * client.createNodePool(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + createNodePool(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.createNodePool(request, options, callback); + } + + /** + * Deletes a node pool from a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster. + * @param {string} request.nodePoolId + * The name of the node pool to delete. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var nodePoolId = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * nodePoolId: nodePoolId, + * }; + * client.deleteNodePool(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + deleteNodePool(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.deleteNodePool(request, options, callback); + } + + /** + * Roll back the previously Aborted or Failed NodePool upgrade. + * This will be an no-op if the last upgrade successfully completed. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to rollback. + * @param {string} request.nodePoolId + * The name of the node pool to rollback. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var nodePoolId = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * nodePoolId: nodePoolId, + * }; + * client.rollbackNodePoolUpgrade(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + rollbackNodePoolUpgrade(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.rollbackNodePoolUpgrade(request, options, callback); + } + + /** + * Sets the NodeManagement options for a node pool. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to update. + * @param {string} request.nodePoolId + * The name of the node pool to update. + * @param {Object} request.management + * NodeManagement configuration for the node pool. + * + * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var nodePoolId = ''; + * var management = {}; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * nodePoolId: nodePoolId, + * management: management, + * }; + * client.setNodePoolManagement(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setNodePoolManagement(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setNodePoolManagement(request, options, callback); + } + + /** + * Sets labels on a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster. + * @param {Object.} request.resourceLabels + * The labels to set for that cluster. + * @param {string} request.labelFingerprint + * The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Container 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 + * resource to get the latest fingerprint. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var resourceLabels = {}; + * var labelFingerprint = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * resourceLabels: resourceLabels, + * labelFingerprint: labelFingerprint, + * }; + * client.setLabels(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setLabels(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setLabels(request, options, callback); + } + + /** + * Enables or disables the ABAC authorization mechanism on a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to update. + * @param {boolean} request.enabled + * Whether ABAC authorization will be enabled in the cluster. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var enabled = false; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * enabled: enabled, + * }; + * client.setLegacyAbac(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setLegacyAbac(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setLegacyAbac(request, options, callback); + } + + /** + * Start master IP rotation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * }; + * client.startIPRotation(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + startIPRotation(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.startIPRotation(request, options, callback); + } + + /** + * Completes master IP rotation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * }; + * client.completeIPRotation(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + completeIPRotation(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.completeIPRotation(request, options, callback); + } + + /** + * Sets the size of a specific node pool. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to update. + * @param {string} request.nodePoolId + * The name of the node pool to update. + * @param {number} request.nodeCount + * The desired node count for the pool. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var nodePoolId = ''; + * var nodeCount = 0; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * nodePoolId: nodePoolId, + * nodeCount: nodeCount, + * }; + * client.setNodePoolSize(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setNodePoolSize(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setNodePoolSize(request, options, callback); + } + + /** + * Enables/Disables Network Policy for a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster. + * @param {Object} request.networkPolicy + * Configuration options for the NetworkPolicy feature. + * + * This object should have the same structure as [NetworkPolicy]{@link google.container.v1.NetworkPolicy} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var networkPolicy = {}; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * networkPolicy: networkPolicy, + * }; + * client.setNetworkPolicy(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setNetworkPolicy(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setNetworkPolicy(request, options, callback); + } + + /** + * Sets the maintenance policy for a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * @param {string} request.clusterId + * The name of the cluster to update. + * @param {Object} request.maintenancePolicy + * The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * + * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * var client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * var projectId = ''; + * var zone = ''; + * var clusterId = ''; + * var maintenancePolicy = {}; + * var request = { + * projectId: projectId, + * zone: zone, + * clusterId: clusterId, + * maintenancePolicy: maintenancePolicy, + * }; + * client.setMaintenancePolicy(request) + * .then(responses => { + * var response = responses[0]; + * // doThingsWith(response) + * }) + * .catch(err => { + * console.error(err); + * }); + */ + setMaintenancePolicy(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + options = options || {}; + + return this._innerApiCalls.setMaintenancePolicy(request, options, callback); + } +} + + +module.exports = ClusterManagerClient; diff --git a/packages/google-container/src/v1/cluster_manager_client_config.json b/packages/google-container/src/v1/cluster_manager_client_config.json new file mode 100644 index 00000000000..6e59f631f8d --- /dev/null +++ b/packages/google-container/src/v1/cluster_manager_client_config.json @@ -0,0 +1,176 @@ +{ + "interfaces": { + "google.container.v1.ClusterManager": { + "retry_codes": { + "idempotent": [ + "DEADLINE_EXCEEDED", + "UNAVAILABLE" + ], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "ListClusters": { + "timeout_millis": 10000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetCluster": { + "timeout_millis": 10000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "CreateCluster": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateCluster": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetNodePoolAutoscaling": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetLoggingService": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetMonitoringService": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetAddonsConfig": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetLocations": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "UpdateMaster": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetMasterAuth": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteCluster": { + "timeout_millis": 30000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListOperations": { + "timeout_millis": 10000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetOperation": { + "timeout_millis": 10000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "CancelOperation": { + "timeout_millis": 30000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "GetServerConfig": { + "timeout_millis": 10000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ListNodePools": { + "timeout_millis": 10000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "GetNodePool": { + "timeout_millis": 10000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "CreateNodePool": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DeleteNodePool": { + "timeout_millis": 30000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "RollbackNodePoolUpgrade": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetNodePoolManagement": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetLabels": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetLegacyAbac": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "StartIPRotation": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "CompleteIPRotation": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetNodePoolSize": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetNetworkPolicy": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "SetMaintenancePolicy": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js new file mode 100644 index 00000000000..7f4b1b8c122 --- /dev/null +++ b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js @@ -0,0 +1,2158 @@ +// Copyright 2017, Google LLC All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +// Note: this file is purely for documentation. Any contents are not expected +// to be loaded as the JS file. + +/** + * Parameters that describe the nodes in a cluster. + * + * @property {string} machineType + * The name of a Google Compute Engine [machine + * type](https://cloud.google.com/compute/docs/machine-types) (e.g. + * `n1-standard-1`). + * + * If unspecified, the default machine type is + * `n1-standard-1`. + * + * @property {number} diskSizeGb + * 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. + * + * @property {string[]} oauthScopes + * The set of Google API scopes to be made available on all of the + * node VMs under the "default" service account. + * + * The following scopes are recommended, but not required, and by default are + * not included: + * + * * `https://www.googleapis.com/auth/compute` is required for mounting + * 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/)). + * + * If unspecified, no scopes are added, unless Cloud Logging or Cloud + * Monitoring are enabled, in which case their required scopes will be added. + * + * @property {string} serviceAccount + * 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. + * + * @property {Object.} metadata + * 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 + * 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 four reserved keys: + * "instance-template", "kube-env", "startup-script", and "user-data" + * + * 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 + * that each value's size must be less than or equal to 32 KB. + * + * The total size of all keys and values must be less than 512 KB. + * + * @property {string} imageType + * The image type to use for this node. Note that for a given image type, + * the latest version of it will be used. + * + * @property {Object.} labels + * The map of Kubernetes labels (key/value pairs) to be applied to each node. + * These will added in addition to any default label(s) that + * Kubernetes may apply to the node. + * In case of conflict in label keys, the applied set may differ depending on + * the Kubernetes version -- it's best to assume the behavior is undefined + * and conflicts should be avoided. + * For more information, including usage and the valid values, see: + * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ + * + * @property {number} localSsdCount + * The number of local SSD disks to be attached to the node. + * + * The limit for this value is dependant upon the maximum number of + * disks available on a machine per zone. See: + * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits + * for more information. + * + * @property {string[]} tags + * The list of instance tags applied to all nodes. Tags are used to identify + * valid sources or targets for network firewalls and are specified by + * the client during cluster or node pool creation. Each tag within the list + * must comply with RFC1035. + * + * @property {boolean} preemptible + * Whether the nodes are created as preemptible VM instances. See: + * https://cloud.google.com/compute/docs/instances/preemptible for more + * information about preemptible VM instances. + * + * @property {Object[]} accelerators + * A list of hardware accelerators to be attached to each node. + * See https://cloud.google.com/compute/docs/gpus for more information about + * support for GPUs. + * + * This object should have the same structure as [AcceleratorConfig]{@link google.container.v1.AcceleratorConfig} + * + * @property {string} minCpuPlatform + * 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 + * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * + * @typedef NodeConfig + * @memberof google.container.v1 + * @see [google.container.v1.NodeConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var NodeConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * The authentication information for accessing the master endpoint. + * Authentication can be done using HTTP basic auth or using client + * certificates. + * + * @property {string} username + * The username to use for HTTP basic authentication to the master endpoint. + * For clusters v1.6.0 and later, you can disable basic authentication by + * providing an empty username. + * + * @property {string} password + * 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. + * + * @property {Object} clientCertificateConfig + * Configuration for client certificate authentication on the cluster. If no + * configuration is specified, a client certificate is issued. + * + * This object should have the same structure as [ClientCertificateConfig]{@link google.container.v1.ClientCertificateConfig} + * + * @property {string} clusterCaCertificate + * [Output only] Base64-encoded public certificate that is the root of + * trust for the cluster. + * + * @property {string} clientCertificate + * [Output only] Base64-encoded public certificate used by clients to + * authenticate to the cluster endpoint. + * + * @property {string} clientKey + * [Output only] Base64-encoded private key used by clients to authenticate + * to the cluster endpoint. + * + * @typedef MasterAuth + * @memberof google.container.v1 + * @see [google.container.v1.MasterAuth definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var MasterAuth = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Configuration for client certificates on the cluster. + * + * @property {boolean} issueClientCertificate + * Issue a client certificate. + * + * @typedef ClientCertificateConfig + * @memberof google.container.v1 + * @see [google.container.v1.ClientCertificateConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var ClientCertificateConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Configuration for the addons that can be automatically spun up in the + * cluster, enabling additional functionality. + * + * @property {Object} httpLoadBalancing + * Configuration for the HTTP (L7) load balancing controller addon, which + * makes it easy to set up HTTP load balancers for services in a cluster. + * + * This object should have the same structure as [HttpLoadBalancing]{@link google.container.v1.HttpLoadBalancing} + * + * @property {Object} horizontalPodAutoscaling + * Configuration for the horizontal pod autoscaling feature, which + * increases or decreases the number of replica pods a replication controller + * has based on the resource usage of the existing pods. + * + * This object should have the same structure as [HorizontalPodAutoscaling]{@link google.container.v1.HorizontalPodAutoscaling} + * + * @property {Object} kubernetesDashboard + * Configuration for the Kubernetes Dashboard. + * + * This object should have the same structure as [KubernetesDashboard]{@link google.container.v1.KubernetesDashboard} + * + * @property {Object} networkPolicyConfig + * Configuration for NetworkPolicy. This only tracks whether the addon + * is enabled or not on the Master, it does not track whether network policy + * is enabled for the nodes. + * + * This object should have the same structure as [NetworkPolicyConfig]{@link google.container.v1.NetworkPolicyConfig} + * + * @typedef AddonsConfig + * @memberof google.container.v1 + * @see [google.container.v1.AddonsConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var AddonsConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Configuration options for the HTTP (L7) load balancing controller addon, + * which makes it easy to set up HTTP load balancers for services in a cluster. + * + * @property {boolean} disabled + * Whether the HTTP Load Balancing controller is enabled in the cluster. + * When enabled, it runs a small pod in the cluster that manages the load + * balancers. + * + * @typedef HttpLoadBalancing + * @memberof google.container.v1 + * @see [google.container.v1.HttpLoadBalancing definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var HttpLoadBalancing = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Configuration options for the horizontal pod autoscaling feature, which + * increases or decreases the number of replica pods a replication controller + * has based on the resource usage of the existing pods. + * + * @property {boolean} disabled + * 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. + * + * @typedef HorizontalPodAutoscaling + * @memberof google.container.v1 + * @see [google.container.v1.HorizontalPodAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var HorizontalPodAutoscaling = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Configuration for the Kubernetes Dashboard. + * + * @property {boolean} disabled + * Whether the Kubernetes Dashboard is enabled for this cluster. + * + * @typedef KubernetesDashboard + * @memberof google.container.v1 + * @see [google.container.v1.KubernetesDashboard definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var KubernetesDashboard = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Configuration for NetworkPolicy. This only tracks whether the addon + * is enabled or not on the Master, it does not track whether network policy + * is enabled for the nodes. + * + * @property {boolean} disabled + * Whether NetworkPolicy is enabled for this cluster. + * + * @typedef NetworkPolicyConfig + * @memberof google.container.v1 + * @see [google.container.v1.NetworkPolicyConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var NetworkPolicyConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Master authorized networks is a Beta feature. + * Configuration options for the master authorized networks feature. Enabled + * master authorized networks will disallow all external traffic to access + * Kubernetes master through HTTPS except traffic from the given CIDR blocks, + * Google Compute Engine Public IPs and Google Prod IPs. + * + * @property {boolean} enabled + * Whether or not master authorized networks is enabled. + * + * @property {Object[]} cidrBlocks + * cidr_blocks define up to 10 external networks that could access + * Kubernetes master through HTTPS. + * + * This object should have the same structure as [CidrBlock]{@link google.container.v1.CidrBlock} + * + * @typedef MasterAuthorizedNetworksConfig + * @memberof google.container.v1 + * @see [google.container.v1.MasterAuthorizedNetworksConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var MasterAuthorizedNetworksConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * CidrBlock contains an optional name and one CIDR block. + * + * @property {string} displayName + * display_name is an optional field for users to identify CIDR blocks. + * + * @property {string} cidrBlock + * cidr_block must be specified in CIDR notation. + * + * @typedef CidrBlock + * @memberof google.container.v1 + * @see [google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ + CidrBlock: { + // This is for documentation. Actual contents will be loaded by gRPC. + } +}; + +/** + * Configuration for the legacy Attribute Based Access Control authorization + * mode. + * + * @property {boolean} enabled + * Whether the ABAC authorizer is enabled for this cluster. When enabled, + * identities in the system, including service accounts, nodes, and + * controllers, will have statically granted permissions beyond those + * provided by the RBAC configuration or IAM. + * + * @typedef LegacyAbac + * @memberof google.container.v1 + * @see [google.container.v1.LegacyAbac definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var LegacyAbac = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Configuration options for the NetworkPolicy feature. + * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ + * + * @property {number} provider + * The selected network policy provider. + * + * The number should be among the values of [Provider]{@link google.container.v1.Provider} + * + * @property {boolean} enabled + * Whether network policy is enabled on the cluster. + * + * @typedef NetworkPolicy + * @memberof google.container.v1 + * @see [google.container.v1.NetworkPolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var NetworkPolicy = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * Allowed Network Policy providers. + * + * @enum {number} + * @memberof google.container.v1 + */ + Provider: { + + /** + * Not set + */ + PROVIDER_UNSPECIFIED: 0, + + /** + * Tigera (Calico Felix). + */ + CALICO: 1 + } +}; + +/** + * Configuration for controlling how IPs are allocated in the cluster. + * + * @property {boolean} useIpAliases + * Whether alias IPs will be used for pod IPs in the cluster. + * + * @property {boolean} createSubnetwork + * Whether a new subnetwork will be created automatically for the cluster. + * + * This field is only applicable when `use_ip_aliases` is true. + * + * @property {string} subnetworkName + * A custom subnetwork name to be used if `create_subnetwork` is true. If + * this field is empty, then an automatic name will be chosen for the new + * subnetwork. + * + * @property {string} clusterIpv4Cidr + * This field is deprecated, use cluster_ipv4_cidr_block. + * + * @property {string} nodeIpv4Cidr + * This field is deprecated, use node_ipv4_cidr_block. + * + * @property {string} servicesIpv4Cidr + * This field is deprecated, use services_ipv4_cidr_block. + * + * @property {string} clusterSecondaryRangeName + * The name of the secondary range to be used for the cluster CIDR + * block. The secondary range will be used for pod IP + * addresses. This must be an existing secondary range associated + * with the cluster subnetwork. + * + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * @property {string} servicesSecondaryRangeName + * The name of the secondary range to be used as for the services + * CIDR block. The secondary range will be used for service + * ClusterIPs. This must be an existing secondary range associated + * with the cluster subnetwork. + * + * This field is only applicable with use_ip_aliases is true and + * create_subnetwork is false. + * + * @property {string} clusterIpv4CidrBlock + * The IP address range for the cluster pod IPs. If this field is set, then + * `cluster.cluster_ipv4_cidr` must be left blank. + * + * This field is only applicable when `use_ip_aliases` is true. + * + * Set to blank to have a range chosen with the default size. + * + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * @property {string} nodeIpv4CidrBlock + * The IP address range of the instance IPs in this cluster. + * + * This is applicable only if `create_subnetwork` is true. + * + * Set to blank to have a range chosen with the default size. + * + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * @property {string} servicesIpv4CidrBlock + * The IP address range of the services IPs in this cluster. If blank, a range + * will be automatically chosen with the default size. + * + * This field is only applicable when `use_ip_aliases` is true. + * + * Set to blank to have a range chosen with the default size. + * + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * + * @typedef IPAllocationPolicy + * @memberof google.container.v1 + * @see [google.container.v1.IPAllocationPolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var IPAllocationPolicy = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * A Google Container Engine cluster. + * + * @property {string} name + * The name of this cluster. The name must be unique within this project + * and zone, and can be up to 40 characters with the following restrictions: + * + * * Lowercase letters, numbers, and hyphens only. + * * Must start with a letter. + * * Must end with a number or a letter. + * + * @property {string} description + * An optional description of this cluster. + * + * @property {number} initialNodeCount + * The number of nodes to create in this cluster. You must ensure that your + * Compute Engine resource quota + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "node_config") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * + * @property {Object} nodeConfig + * Parameters used in creating the cluster's nodes. + * See `nodeConfig` for the description of its properties. + * For requests, this field should only be used in lieu of a + * "node_pool" object, since this configuration (along with the + * "initial_node_count") will be used to create a "NodePool" object with an + * auto-generated name. Do not use this and a node_pool at the same time. + * For responses, this field will be populated with the node configuration of + * the first node pool. + * + * If unspecified, the defaults are used. + * + * This object should have the same structure as [NodeConfig]{@link google.container.v1.NodeConfig} + * + * @property {Object} masterAuth + * The authentication information for accessing the master endpoint. + * + * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} + * + * @property {string} loggingService + * The logging service the cluster should use to write logs. + * Currently available options: + * + * * `logging.googleapis.com` - the Google Cloud Logging service. + * * `none` - no logs will be exported from the cluster. + * * if left as an empty string,`logging.googleapis.com` will be used. + * + * @property {string} monitoringService + * 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. + * + * @property {string} network + * 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. + * + * @property {string} clusterIpv4Cidr + * The IP address range of the container pods in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`). Leave blank to have + * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. + * + * @property {Object} addonsConfig + * Configurations for the various addons available to run in the cluster. + * + * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} + * + * @property {string} subnetwork + * The name of the Google Compute Engine + * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the + * cluster is connected. + * + * @property {Object[]} nodePools + * The node pools associated with this cluster. + * This field should not be set if "node_config" or "initial_node_count" are + * specified. + * + * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} + * + * @property {string[]} locations + * The list of Google Compute Engine + * [locations](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes + * should be located. + * + * @property {boolean} enableKubernetesAlpha + * Kubernetes alpha features are enabled on this cluster. This includes alpha + * API groups (e.g. v1alpha1) and features that may not be production ready in + * the kubernetes version of the master and nodes. + * The cluster has no SLA for uptime and master/node upgrades are disabled. + * Alpha enabled clusters are automatically deleted thirty days after + * creation. + * + * @property {Object.} resourceLabels + * The resource labels for the cluster to use to annotate any related + * Google Compute Engine resources. + * + * @property {string} labelFingerprint + * The fingerprint of the set of labels for this cluster. + * + * @property {Object} legacyAbac + * Configuration for the legacy ABAC authorization mode. + * + * This object should have the same structure as [LegacyAbac]{@link google.container.v1.LegacyAbac} + * + * @property {Object} networkPolicy + * Configuration options for the NetworkPolicy feature. + * + * This object should have the same structure as [NetworkPolicy]{@link google.container.v1.NetworkPolicy} + * + * @property {Object} ipAllocationPolicy + * Configuration for cluster IP allocation. + * + * This object should have the same structure as [IPAllocationPolicy]{@link google.container.v1.IPAllocationPolicy} + * + * @property {Object} masterAuthorizedNetworksConfig + * Master authorized networks is a Beta feature. + * The configuration options for master authorized networks feature. + * + * This object should have the same structure as [MasterAuthorizedNetworksConfig]{@link google.container.v1.MasterAuthorizedNetworksConfig} + * + * @property {Object} maintenancePolicy + * Configure the maintenance policy for this cluster. + * + * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} + * + * @property {string} selfLink + * [Output only] Server-defined URL for the resource. + * + * @property {string} zone + * [Output only] The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} endpoint + * [Output only] The IP address of this cluster's master endpoint. + * The endpoint can be accessed from the internet at + * `https://username:password@endpoint/`. + * + * See the `masterAuth` property of this resource for username and + * password information. + * + * @property {string} initialClusterVersion + * The initial Kubernetes version for this cluster. Valid versions are those + * found in validMasterVersions returned by getServerConfig. The version can + * be upgraded over time; such upgrades are reflected in + * currentMasterVersion and currentNodeVersion. + * + * @property {string} currentMasterVersion + * [Output only] The current software version of the master endpoint. + * + * @property {string} currentNodeVersion + * [Output only] 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. + * + * @property {string} createTime + * [Output only] The time the cluster was created, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * @property {number} status + * [Output only] The current status of this cluster. + * + * The number should be among the values of [Status]{@link google.container.v1.Status} + * + * @property {string} statusMessage + * [Output only] Additional information about the current status of this + * cluster, if available. + * + * @property {number} nodeIpv4CidrSize + * [Output only] The size of the address space on each node for hosting + * containers. This is provisioned from within the `container_ipv4_cidr` + * range. + * + * @property {string} servicesIpv4Cidr + * [Output only] The IP address range of the Kubernetes services in + * this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). Service addresses are + * typically put in the last `/16` from the container CIDR. + * + * @property {string[]} instanceGroupUrls + * Deprecated. Use node_pools.instance_group_urls. + * + * @property {number} currentNodeCount + * [Output only] The number of nodes currently in the cluster. + * + * @property {string} expireTime + * [Output only] The time the cluster will be automatically + * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * @typedef Cluster + * @memberof google.container.v1 + * @see [google.container.v1.Cluster definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var Cluster = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * The current status of the cluster. + * + * @enum {number} + * @memberof google.container.v1 + */ + Status: { + + /** + * Not set. + */ + STATUS_UNSPECIFIED: 0, + + /** + * The PROVISIONING state indicates the cluster is being created. + */ + PROVISIONING: 1, + + /** + * The RUNNING state indicates the cluster has been created and is fully + * usable. + */ + RUNNING: 2, + + /** + * The RECONCILING state indicates that some work is actively being done on + * the cluster, such as upgrading the master or node software. Details can + * be found in the `statusMessage` field. + */ + RECONCILING: 3, + + /** + * 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. + */ + ERROR: 5 + } +}; + +/** + * ClusterUpdate describes an update to the cluster. Exactly one update can + * be applied to a cluster with each request, so at most one field can be + * provided. + * + * @property {string} desiredNodeVersion + * The Kubernetes version to change the nodes to (typically an + * upgrade). Use `-` to upgrade to the latest version supported by + * the server. + * + * @property {string} desiredMonitoringService + * 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 + * + * @property {Object} desiredAddonsConfig + * Configurations for the various addons available to run in the cluster. + * + * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} + * + * @property {string} desiredNodePoolId + * The node pool to be upgraded. This field is mandatory if + * "desired_node_version", "desired_image_family" or + * "desired_node_pool_autoscaling" is specified and there is more than one + * node pool on the cluster. + * + * @property {string} desiredImageType + * The desired image type for the node pool. + * NOTE: Set the "desired_node_pool" field as well. + * + * @property {Object} desiredNodePoolAutoscaling + * 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 + * the change applies to that single node pool. + * + * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} + * + * @property {string[]} desiredLocations + * The desired list of Google Compute Engine + * [locations](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. + * + * @property {Object} desiredMasterAuthorizedNetworksConfig + * Master authorized networks is a Beta feature. + * The desired configuration options for master authorized networks feature. + * + * This object should have the same structure as [MasterAuthorizedNetworksConfig]{@link google.container.v1.MasterAuthorizedNetworksConfig} + * + * @property {string} desiredMasterVersion + * The Kubernetes version to change the master to. The only valid value is the + * latest supported version. Use "-" to have the server automatically select + * the latest version. + * + * @typedef ClusterUpdate + * @memberof google.container.v1 + * @see [google.container.v1.ClusterUpdate definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var ClusterUpdate = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * This operation resource represents operations that may have happened or are + * happening on the cluster. All fields are output only. + * + * @property {string} name + * The server-assigned ID for the operation. + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation + * is taking place. + * + * @property {number} operationType + * The operation type. + * + * The number should be among the values of [Type]{@link google.container.v1.Type} + * + * @property {number} status + * The current status of the operation. + * + * The number should be among the values of [Status]{@link google.container.v1.Status} + * + * @property {string} detail + * Detailed operation progress, if available. + * + * @property {string} statusMessage + * If an error has occurred, a textual description of the error. + * + * @property {string} selfLink + * Server-defined URL for the resource. + * + * @property {string} targetLink + * Server-defined URL for the target of the operation. + * + * @property {string} startTime + * [Output only] The time the operation started, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * @property {string} endTime + * [Output only] The time the operation completed, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * @typedef Operation + * @memberof google.container.v1 + * @see [google.container.v1.Operation definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var Operation = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * Current status of the operation. + * + * @enum {number} + * @memberof google.container.v1 + */ + Status: { + + /** + * Not set. + */ + STATUS_UNSPECIFIED: 0, + + /** + * The operation has been created. + */ + PENDING: 1, + + /** + * The operation is currently running. + */ + RUNNING: 2, + + /** + * The operation is done, either cancelled or completed. + */ + DONE: 3, + + /** + * The operation is aborting. + */ + ABORTING: 4 + }, + + /** + * Operation type. + * + * @enum {number} + * @memberof google.container.v1 + */ + Type: { + + /** + * Not set. + */ + TYPE_UNSPECIFIED: 0, + + /** + * Cluster create. + */ + CREATE_CLUSTER: 1, + + /** + * Cluster delete. + */ + DELETE_CLUSTER: 2, + + /** + * A master upgrade. + */ + UPGRADE_MASTER: 3, + + /** + * A node upgrade. + */ + UPGRADE_NODES: 4, + + /** + * Cluster repair. + */ + REPAIR_CLUSTER: 5, + + /** + * Cluster update. + */ + UPDATE_CLUSTER: 6, + + /** + * Node pool create. + */ + CREATE_NODE_POOL: 7, + + /** + * Node pool delete. + */ + DELETE_NODE_POOL: 8, + + /** + * Set node pool management. + */ + SET_NODE_POOL_MANAGEMENT: 9, + + /** + * Automatic node pool repair. + */ + AUTO_REPAIR_NODES: 10, + + /** + * Automatic node upgrade. + */ + AUTO_UPGRADE_NODES: 11, + + /** + * Set labels. + */ + SET_LABELS: 12, + + /** + * Set/generate master auth materials + */ + SET_MASTER_AUTH: 13, + + /** + * Set node pool size. + */ + SET_NODE_POOL_SIZE: 14, + + /** + * Updates network policy for a cluster. + */ + SET_NETWORK_POLICY: 15, + + /** + * Set the maintenance policy. + */ + SET_MAINTENANCE_POLICY: 16 + } +}; + +/** + * CreateClusterRequest creates a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {Object} cluster + * A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) + * + * This object should have the same structure as [Cluster]{@link google.container.v1.Cluster} + * + * @typedef CreateClusterRequest + * @memberof google.container.v1 + * @see [google.container.v1.CreateClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var CreateClusterRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * GetClusterRequest gets the settings of a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to retrieve. + * + * @typedef GetClusterRequest + * @memberof google.container.v1 + * @see [google.container.v1.GetClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var GetClusterRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * UpdateClusterRequest updates the settings of a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to upgrade. + * + * @property {Object} update + * A description of the update. + * + * This object should have the same structure as [ClusterUpdate]{@link google.container.v1.ClusterUpdate} + * + * @typedef UpdateClusterRequest + * @memberof google.container.v1 + * @see [google.container.v1.UpdateClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var UpdateClusterRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * UpdateNodePoolRequests update a node pool's image and/or version. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to upgrade. + * + * @property {string} nodePoolId + * The name of the node pool to upgrade. + * + * @property {string} nodeVersion + * The Kubernetes version to change the nodes to (typically an + * upgrade). Use `-` to upgrade to the latest version supported by + * the server. + * + * @property {string} imageType + * The desired image type for the node pool. + * + * @typedef UpdateNodePoolRequest + * @memberof google.container.v1 + * @see [google.container.v1.UpdateNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var UpdateNodePoolRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to upgrade. + * + * @property {string} nodePoolId + * The name of the node pool to upgrade. + * + * @property {Object} autoscaling + * Autoscaling configuration for the node pool. + * + * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} + * + * @typedef SetNodePoolAutoscalingRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetNodePoolAutoscalingRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetNodePoolAutoscalingRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetLoggingServiceRequest sets the logging service of a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to upgrade. + * + * @property {string} loggingService + * The logging service the cluster should use to write metrics. + * Currently available options: + * + * * "logging.googleapis.com" - the Google Cloud Logging service + * * "none" - no metrics will be exported from the cluster + * + * @typedef SetLoggingServiceRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetLoggingServiceRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetLoggingServiceRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetMonitoringServiceRequest sets the monitoring service of a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to upgrade. + * + * @property {string} monitoringService + * 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 + * + * @typedef SetMonitoringServiceRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetMonitoringServiceRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetMonitoringServiceRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetAddonsConfigRequest sets the addons associated with the cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to upgrade. + * + * @property {Object} addonsConfig + * The desired configurations for the various addons available to run in the + * cluster. + * + * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} + * + * @typedef SetAddonsConfigRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetAddonsConfigRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetAddonsConfigRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetLocationsRequest sets the locations of the cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to upgrade. + * + * @property {string[]} locations + * The desired list of Google Compute Engine + * [locations](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. + * + * @typedef SetLocationsRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetLocationsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetLocationsRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * UpdateMasterRequest updates the master of the cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to upgrade. + * + * @property {string} masterVersion + * The Kubernetes version to change the master to. The only valid value is the + * latest supported version. Use "-" to have the server automatically select + * the latest version. + * + * @typedef UpdateMasterRequest + * @memberof google.container.v1 + * @see [google.container.v1.UpdateMasterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var UpdateMasterRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetMasterAuthRequest updates the admin password of a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to upgrade. + * + * @property {number} action + * The exact form of action to be taken on the master auth. + * + * The number should be among the values of [Action]{@link google.container.v1.Action} + * + * @property {Object} update + * A description of the update. + * + * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} + * + * @typedef SetMasterAuthRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetMasterAuthRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetMasterAuthRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * Operation type: what type update to perform. + * + * @enum {number} + * @memberof google.container.v1 + */ + Action: { + + /** + * Operation is unknown and will error out. + */ + UNKNOWN: 0, + + /** + * Set the password to a user generated value. + */ + SET_PASSWORD: 1, + + /** + * Generate a new password and set it to that. + */ + GENERATE_PASSWORD: 2, + + /** + * Set the username. If an empty username is provided, basic authentication + * is disabled for the cluster. If a non-empty username is provided, basic + * authentication is enabled, with either a provided password or a generated + * one. + */ + SET_USERNAME: 3 + } +}; + +/** + * DeleteClusterRequest deletes a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to delete. + * + * @typedef DeleteClusterRequest + * @memberof google.container.v1 + * @see [google.container.v1.DeleteClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var DeleteClusterRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * ListClustersRequest lists clusters. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * 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. + * + * @typedef ListClustersRequest + * @memberof google.container.v1 + * @see [google.container.v1.ListClustersRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var ListClustersRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * ListClustersResponse is the result of ListClustersRequest. + * + * @property {Object[]} clusters + * A list of clusters in the project in the specified zone, or + * across all ones. + * + * This object should have the same structure as [Cluster]{@link google.container.v1.Cluster} + * + * @property {string[]} missingZones + * If any zones are listed here, the list of clusters returned + * may be missing those zones. + * + * @typedef ListClustersResponse + * @memberof google.container.v1 + * @see [google.container.v1.ListClustersResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var ListClustersResponse = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * GetOperationRequest gets a single operation. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} operationId + * The server-assigned `name` of the operation. + * + * @typedef GetOperationRequest + * @memberof google.container.v1 + * @see [google.container.v1.GetOperationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var GetOperationRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * ListOperationsRequest lists operations. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) + * to return operations for, or `-` for all zones. + * + * @typedef ListOperationsRequest + * @memberof google.container.v1 + * @see [google.container.v1.ListOperationsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var ListOperationsRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * CancelOperationRequest cancels a single operation. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the operation resides. + * + * @property {string} operationId + * The server-assigned `name` of the operation. + * + * @typedef CancelOperationRequest + * @memberof google.container.v1 + * @see [google.container.v1.CancelOperationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var CancelOperationRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * ListOperationsResponse is the result of ListOperationsRequest. + * + * @property {Object[]} operations + * A list of operations in the project in the specified zone. + * + * This object should have the same structure as [Operation]{@link google.container.v1.Operation} + * + * @property {string[]} missingZones + * If any zones are listed here, the list of operations returned + * may be missing the operations from those zones. + * + * @typedef ListOperationsResponse + * @memberof google.container.v1 + * @see [google.container.v1.ListOperationsResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var ListOperationsResponse = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Gets the current Container Engine service configuration. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) + * to return operations for. + * + * @typedef GetServerConfigRequest + * @memberof google.container.v1 + * @see [google.container.v1.GetServerConfigRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var GetServerConfigRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Container Engine service configuration. + * + * @property {string} defaultClusterVersion + * Version of Kubernetes the service deploys by default. + * + * @property {string[]} validNodeVersions + * List of valid node upgrade target versions. + * + * @property {string} defaultImageType + * Default image type. + * + * @property {string[]} validImageTypes + * List of valid image types. + * + * @property {string[]} validMasterVersions + * List of valid master versions. + * + * @typedef ServerConfig + * @memberof google.container.v1 + * @see [google.container.v1.ServerConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var ServerConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * CreateNodePoolRequest creates a node pool for a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster. + * + * @property {Object} nodePool + * The node pool to create. + * + * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} + * + * @typedef CreateNodePoolRequest + * @memberof google.container.v1 + * @see [google.container.v1.CreateNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var CreateNodePoolRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * DeleteNodePoolRequest deletes a node pool for a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster. + * + * @property {string} nodePoolId + * The name of the node pool to delete. + * + * @typedef DeleteNodePoolRequest + * @memberof google.container.v1 + * @see [google.container.v1.DeleteNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var DeleteNodePoolRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * ListNodePoolsRequest lists the node pool(s) for a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster. + * + * @typedef ListNodePoolsRequest + * @memberof google.container.v1 + * @see [google.container.v1.ListNodePoolsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var ListNodePoolsRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * GetNodePoolRequest retrieves a node pool for a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster. + * + * @property {string} nodePoolId + * The name of the node pool. + * + * @typedef GetNodePoolRequest + * @memberof google.container.v1 + * @see [google.container.v1.GetNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var GetNodePoolRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * NodePool contains the name and configuration for a cluster's node pool. + * Node pools are a set of nodes (i.e. VM's), with a common configuration and + * specification, under the control of the cluster master. They may have a set + * of Kubernetes labels applied to them, which may be used to reference them + * during pod scheduling. They may also be resized up or down, to accommodate + * the workload. + * + * @property {string} name + * The name of the node pool. + * + * @property {Object} config + * The node configuration of the pool. + * + * This object should have the same structure as [NodeConfig]{@link google.container.v1.NodeConfig} + * + * @property {number} initialNodeCount + * The initial node count for the pool. You must ensure that your + * Compute Engine resource quota + * is sufficient for this number of instances. You must also have available + * firewall and routes quota. + * + * @property {string} selfLink + * [Output only] Server-defined URL for the resource. + * + * @property {string} version + * The version of the Kubernetes of this node. + * + * @property {string[]} instanceGroupUrls + * [Output only] The resource URLs of the [managed instance + * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) + * associated with this node pool. + * + * @property {number} status + * [Output only] The status of the nodes in this pool instance. + * + * The number should be among the values of [Status]{@link google.container.v1.Status} + * + * @property {string} statusMessage + * [Output only] Additional information about the current status of this + * node pool instance, if available. + * + * @property {Object} autoscaling + * Autoscaler configuration for this NodePool. Autoscaler is enabled + * only if a valid configuration is present. + * + * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} + * + * @property {Object} management + * NodeManagement configuration for this NodePool. + * + * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} + * + * @typedef NodePool + * @memberof google.container.v1 + * @see [google.container.v1.NodePool definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var NodePool = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * The current status of the node pool instance. + * + * @enum {number} + * @memberof google.container.v1 + */ + Status: { + + /** + * Not set. + */ + STATUS_UNSPECIFIED: 0, + + /** + * The PROVISIONING state indicates the node pool is being created. + */ + PROVISIONING: 1, + + /** + * The RUNNING state indicates the node pool has been created + * and is fully usable. + */ + RUNNING: 2, + + /** + * The RUNNING_WITH_ERROR state indicates the node pool has been created + * and is partially usable. Some error state has occurred and some + * functionality may be impaired. Customer may need to reissue a request + * or trigger a new update. + */ + RUNNING_WITH_ERROR: 3, + + /** + * The RECONCILING state indicates that some work is actively being done on + * the node pool, such as upgrading node software. Details can + * be found in the `statusMessage` field. + */ + RECONCILING: 4, + + /** + * The STOPPING state indicates the node pool is being deleted. + */ + STOPPING: 5, + + /** + * The ERROR state indicates the node pool may be unusable. Details + * can be found in the `statusMessage` field. + */ + ERROR: 6 + } +}; + +/** + * NodeManagement defines the set of node management services turned on for the + * node pool. + * + * @property {boolean} autoUpgrade + * A flag that specifies whether node auto-upgrade is enabled for the node + * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool + * up to date with the latest release version of Kubernetes. + * + * @property {boolean} autoRepair + * A flag that specifies whether the node auto-repair is enabled for the node + * pool. If enabled, the nodes in this node pool will be monitored and, if + * they fail health checks too many times, an automatic repair action will be + * triggered. + * + * @property {Object} upgradeOptions + * Specifies the Auto Upgrade knobs for the node pool. + * + * This object should have the same structure as [AutoUpgradeOptions]{@link google.container.v1.AutoUpgradeOptions} + * + * @typedef NodeManagement + * @memberof google.container.v1 + * @see [google.container.v1.NodeManagement definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var NodeManagement = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * AutoUpgradeOptions defines the set of options for the user to control how + * the Auto Upgrades will proceed. + * + * @property {string} autoUpgradeStartTime + * [Output only] This field is set when upgrades are about to commence + * with the approximate start time for the upgrades, in + * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + * + * @property {string} description + * [Output only] This field is set when upgrades are about to commence + * with the description of the upgrade. + * + * @typedef AutoUpgradeOptions + * @memberof google.container.v1 + * @see [google.container.v1.AutoUpgradeOptions definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var AutoUpgradeOptions = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * MaintenancePolicy defines the maintenance policy to be used for the cluster. + * + * @property {Object} window + * Specifies the maintenance window in which maintenance may be performed. + * + * This object should have the same structure as [MaintenanceWindow]{@link google.container.v1.MaintenanceWindow} + * + * @typedef MaintenancePolicy + * @memberof google.container.v1 + * @see [google.container.v1.MaintenancePolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var MaintenancePolicy = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * MaintenanceWindow defines the maintenance window to be used for the cluster. + * + * @property {Object} dailyMaintenanceWindow + * DailyMaintenanceWindow specifies a daily maintenance operation window. + * + * This object should have the same structure as [DailyMaintenanceWindow]{@link google.container.v1.DailyMaintenanceWindow} + * + * @typedef MaintenanceWindow + * @memberof google.container.v1 + * @see [google.container.v1.MaintenanceWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var MaintenanceWindow = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Time window specified for daily maintenance operations. + * + * @property {string} startTime + * Time within the maintenance window to start the maintenance operations. + * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT. + * + * @property {string} duration + * [Output only] Duration of the time window, automatically chosen to be + * smallest possible in the given scenario. + * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) + * format "PTnHnMnS". + * + * @typedef DailyMaintenanceWindow + * @memberof google.container.v1 + * @see [google.container.v1.DailyMaintenanceWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var DailyMaintenanceWindow = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetNodePoolManagementRequest sets the node management properties of a node + * pool. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to update. + * + * @property {string} nodePoolId + * The name of the node pool to update. + * + * @property {Object} management + * NodeManagement configuration for the node pool. + * + * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} + * + * @typedef SetNodePoolManagementRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetNodePoolManagementRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetNodePoolManagementRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetNodePoolSizeRequest sets the size a node + * pool. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to update. + * + * @property {string} nodePoolId + * The name of the node pool to update. + * + * @property {number} nodeCount + * The desired node count for the pool. + * + * @typedef SetNodePoolSizeRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetNodePoolSizeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetNodePoolSizeRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed + * NodePool upgrade. This will be an no-op if the last upgrade successfully + * completed. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to rollback. + * + * @property {string} nodePoolId + * The name of the node pool to rollback. + * + * @typedef RollbackNodePoolUpgradeRequest + * @memberof google.container.v1 + * @see [google.container.v1.RollbackNodePoolUpgradeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var RollbackNodePoolUpgradeRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * ListNodePoolsResponse is the result of ListNodePoolsRequest. + * + * @property {Object[]} nodePools + * A list of node pools for a cluster. + * + * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} + * + * @typedef ListNodePoolsResponse + * @memberof google.container.v1 + * @see [google.container.v1.ListNodePoolsResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var ListNodePoolsResponse = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * NodePoolAutoscaling contains information required by cluster autoscaler to + * adjust the size of the node pool to the current cluster usage. + * + * @property {boolean} enabled + * Is autoscaling enabled for this node pool. + * + * @property {number} minNodeCount + * Minimum number of nodes in the NodePool. Must be >= 1 and <= + * max_node_count. + * + * @property {number} maxNodeCount + * Maximum number of nodes in the NodePool. Must be >= min_node_count. There + * has to enough quota to scale up the cluster. + * + * @typedef NodePoolAutoscaling + * @memberof google.container.v1 + * @see [google.container.v1.NodePoolAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var NodePoolAutoscaling = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container + * Engine cluster, which will in turn set them for Google Compute Engine + * resources used by that cluster + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster. + * + * @property {Object.} resourceLabels + * The labels to set for that cluster. + * + * @property {string} labelFingerprint + * The fingerprint of the previous set of labels for this resource, + * used to detect conflicts. The fingerprint is initially generated by + * Container 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 + * resource to get the latest fingerprint. + * + * @typedef SetLabelsRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetLabelsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetLabelsRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for + * a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to update. + * + * @property {boolean} enabled + * Whether ABAC authorization will be enabled in the cluster. + * + * @typedef SetLegacyAbacRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetLegacyAbacRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetLegacyAbacRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * StartIPRotationRequest creates a new IP for the cluster and then performs + * a node upgrade on each node pool to point to the new IP. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster. + * + * @typedef StartIPRotationRequest + * @memberof google.container.v1 + * @see [google.container.v1.StartIPRotationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var StartIPRotationRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * CompleteIPRotationRequest moves the cluster master back into single-IP mode. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster. + * + * @typedef CompleteIPRotationRequest + * @memberof google.container.v1 + * @see [google.container.v1.CompleteIPRotationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var CompleteIPRotationRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * AcceleratorConfig represents a Hardware Accelerator request. + * + * @property {number} acceleratorCount + * The number of the accelerator cards exposed to an instance. + * + * @property {string} acceleratorType + * The accelerator type resource name. List of supported accelerators + * [here](https://cloud.google.com/compute/docs/gpus/#Introduction) + * + * @typedef AcceleratorConfig + * @memberof google.container.v1 + * @see [google.container.v1.AcceleratorConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var AcceleratorConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetNetworkPolicyRequest enables/disables network policy for a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster. + * + * @property {Object} networkPolicy + * Configuration options for the NetworkPolicy feature. + * + * This object should have the same structure as [NetworkPolicy]{@link google.container.v1.NetworkPolicy} + * + * @typedef SetNetworkPolicyRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetNetworkPolicyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetNetworkPolicyRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * SetMaintenancePolicyRequest sets the maintenance policy for a cluster. + * + * @property {string} projectId + * The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * + * @property {string} zone + * The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster + * resides. + * + * @property {string} clusterId + * The name of the cluster to update. + * + * @property {Object} maintenancePolicy + * The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * + * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} + * + * @typedef SetMaintenancePolicyRequest + * @memberof google.container.v1 + * @see [google.container.v1.SetMaintenancePolicyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +var SetMaintenancePolicyRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; \ No newline at end of file diff --git a/packages/google-container/src/v1/index.js b/packages/google-container/src/v1/index.js new file mode 100644 index 00000000000..93296644a48 --- /dev/null +++ b/packages/google-container/src/v1/index.js @@ -0,0 +1,19 @@ +// Copyright 2017, Google LLC All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +const ClusterManagerClient = require('./cluster_manager_client'); + +module.exports.ClusterManagerClient = ClusterManagerClient; diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js new file mode 100644 index 00000000000..116166cf611 --- /dev/null +++ b/packages/google-container/test/gapic-v1.js @@ -0,0 +1,2525 @@ +// Copyright 2017, Google LLC All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +const assert = require('assert'); + +const containerModule = require('../src'); + +var FAKE_STATUS_CODE = 1; +var error = new Error(); +error.code = FAKE_STATUS_CODE; + +describe('ClusterManagerClient', () => { + describe('listClusters', () => { + it('invokes listClusters without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var request = { + projectId: projectId, + zone: zone, + }; + + // Mock response + var expectedResponse = {}; + + // Mock Grpc layer + client._innerApiCalls.listClusters = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.listClusters(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes listClusters with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var request = { + projectId: projectId, + zone: zone, + }; + + // Mock Grpc layer + client._innerApiCalls.listClusters = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.listClusters(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('getCluster', () => { + it('invokes getCluster without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + }; + + // Mock response + var name = 'name3373707'; + var description = 'description-1724546052'; + var initialNodeCount = 1682564205; + var loggingService = 'loggingService-1700501035'; + var monitoringService = 'monitoringService1469270462'; + var network = 'network1843485230'; + var clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; + var subnetwork = 'subnetwork-1302785042'; + var enableKubernetesAlpha = false; + var labelFingerprint = 'labelFingerprint714995737'; + var selfLink = 'selfLink-1691268851'; + var zone2 = 'zone2-696322977'; + var endpoint = 'endpoint1741102485'; + var initialClusterVersion = 'initialClusterVersion-276373352'; + var currentMasterVersion = 'currentMasterVersion-920953983'; + var currentNodeVersion = 'currentNodeVersion-407476063'; + var createTime = 'createTime-493574096'; + var statusMessage = 'statusMessage-239442758'; + var nodeIpv4CidrSize = 1181176815; + var servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; + var currentNodeCount = 178977560; + var expireTime = 'expireTime-96179731'; + var expectedResponse = { + name: name, + description: description, + initialNodeCount: initialNodeCount, + loggingService: loggingService, + monitoringService: monitoringService, + network: network, + clusterIpv4Cidr: clusterIpv4Cidr, + subnetwork: subnetwork, + enableKubernetesAlpha: enableKubernetesAlpha, + labelFingerprint: labelFingerprint, + selfLink: selfLink, + zone: zone2, + endpoint: endpoint, + initialClusterVersion: initialClusterVersion, + currentMasterVersion: currentMasterVersion, + currentNodeVersion: currentNodeVersion, + createTime: createTime, + statusMessage: statusMessage, + nodeIpv4CidrSize: nodeIpv4CidrSize, + servicesIpv4Cidr: servicesIpv4Cidr, + currentNodeCount: currentNodeCount, + expireTime: expireTime, + }; + + // Mock Grpc layer + client._innerApiCalls.getCluster = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.getCluster(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes getCluster with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + }; + + // Mock Grpc layer + client._innerApiCalls.getCluster = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.getCluster(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('createCluster', () => { + it('invokes createCluster without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var cluster = {}; + var request = { + projectId: projectId, + zone: zone, + cluster: cluster, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.createCluster = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.createCluster(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes createCluster with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var cluster = {}; + var request = { + projectId: projectId, + zone: zone, + cluster: cluster, + }; + + // Mock Grpc layer + client._innerApiCalls.createCluster = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.createCluster(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('updateCluster', () => { + it('invokes updateCluster without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var update = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + update: update, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.updateCluster = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.updateCluster(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes updateCluster with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var update = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + update: update, + }; + + // Mock Grpc layer + client._innerApiCalls.updateCluster = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.updateCluster(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('updateNodePool', () => { + it('invokes updateNodePool without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var nodeVersion = 'nodeVersion1790136219'; + var imageType = 'imageType-1442758754'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + nodeVersion: nodeVersion, + imageType: imageType, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.updateNodePool = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.updateNodePool(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes updateNodePool with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var nodeVersion = 'nodeVersion1790136219'; + var imageType = 'imageType-1442758754'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + nodeVersion: nodeVersion, + imageType: imageType, + }; + + // Mock Grpc layer + client._innerApiCalls.updateNodePool = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.updateNodePool(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setNodePoolAutoscaling', () => { + it('invokes setNodePoolAutoscaling without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var autoscaling = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + autoscaling: autoscaling, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setNodePoolAutoscaling = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setNodePoolAutoscaling(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setNodePoolAutoscaling with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var autoscaling = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + autoscaling: autoscaling, + }; + + // Mock Grpc layer + client._innerApiCalls.setNodePoolAutoscaling = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setNodePoolAutoscaling(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setLoggingService', () => { + it('invokes setLoggingService without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var loggingService = 'loggingService-1700501035'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + loggingService: loggingService, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setLoggingService = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setLoggingService(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setLoggingService with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var loggingService = 'loggingService-1700501035'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + loggingService: loggingService, + }; + + // Mock Grpc layer + client._innerApiCalls.setLoggingService = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setLoggingService(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setMonitoringService', () => { + it('invokes setMonitoringService without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var monitoringService = 'monitoringService1469270462'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + monitoringService: monitoringService, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setMonitoringService = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setMonitoringService(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setMonitoringService with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var monitoringService = 'monitoringService1469270462'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + monitoringService: monitoringService, + }; + + // Mock Grpc layer + client._innerApiCalls.setMonitoringService = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setMonitoringService(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setAddonsConfig', () => { + it('invokes setAddonsConfig without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var addonsConfig = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + addonsConfig: addonsConfig, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setAddonsConfig = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setAddonsConfig(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setAddonsConfig with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var addonsConfig = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + addonsConfig: addonsConfig, + }; + + // Mock Grpc layer + client._innerApiCalls.setAddonsConfig = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setAddonsConfig(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setLocations', () => { + it('invokes setLocations without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var locations = []; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + locations: locations, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setLocations = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setLocations(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setLocations with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var locations = []; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + locations: locations, + }; + + // Mock Grpc layer + client._innerApiCalls.setLocations = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setLocations(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('updateMaster', () => { + it('invokes updateMaster without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var masterVersion = 'masterVersion-2139460613'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + masterVersion: masterVersion, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.updateMaster = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.updateMaster(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes updateMaster with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var masterVersion = 'masterVersion-2139460613'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + masterVersion: masterVersion, + }; + + // Mock Grpc layer + client._innerApiCalls.updateMaster = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.updateMaster(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setMasterAuth', () => { + it('invokes setMasterAuth without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var action = 'UNKNOWN'; + var update = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + action: action, + update: update, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setMasterAuth = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setMasterAuth(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setMasterAuth with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var action = 'UNKNOWN'; + var update = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + action: action, + update: update, + }; + + // Mock Grpc layer + client._innerApiCalls.setMasterAuth = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setMasterAuth(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('deleteCluster', () => { + it('invokes deleteCluster without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.deleteCluster = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.deleteCluster(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes deleteCluster with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + }; + + // Mock Grpc layer + client._innerApiCalls.deleteCluster = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.deleteCluster(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('listOperations', () => { + it('invokes listOperations without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var request = { + projectId: projectId, + zone: zone, + }; + + // Mock response + var expectedResponse = {}; + + // Mock Grpc layer + client._innerApiCalls.listOperations = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.listOperations(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes listOperations with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var request = { + projectId: projectId, + zone: zone, + }; + + // Mock Grpc layer + client._innerApiCalls.listOperations = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.listOperations(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('getOperation', () => { + it('invokes getOperation without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var operationId = 'operationId-274116877'; + var request = { + projectId: projectId, + zone: zone, + operationId: operationId, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.getOperation = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.getOperation(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes getOperation with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var operationId = 'operationId-274116877'; + var request = { + projectId: projectId, + zone: zone, + operationId: operationId, + }; + + // Mock Grpc layer + client._innerApiCalls.getOperation = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.getOperation(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('cancelOperation', () => { + it('invokes cancelOperation without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var operationId = 'operationId-274116877'; + var request = { + projectId: projectId, + zone: zone, + operationId: operationId, + }; + + // Mock Grpc layer + client._innerApiCalls.cancelOperation = mockSimpleGrpcMethod(request); + + client.cancelOperation(request, err => { + assert.ifError(err); + done(); + }); + }); + + it('invokes cancelOperation with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var operationId = 'operationId-274116877'; + var request = { + projectId: projectId, + zone: zone, + operationId: operationId, + }; + + // Mock Grpc layer + client._innerApiCalls.cancelOperation = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.cancelOperation(request, err => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + done(); + }); + }); + }); + + describe('getServerConfig', () => { + it('invokes getServerConfig without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var request = { + projectId: projectId, + zone: zone, + }; + + // Mock response + var defaultClusterVersion = 'defaultClusterVersion111003029'; + var defaultImageType = 'defaultImageType-918225828'; + var expectedResponse = { + defaultClusterVersion: defaultClusterVersion, + defaultImageType: defaultImageType, + }; + + // Mock Grpc layer + client._innerApiCalls.getServerConfig = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.getServerConfig(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes getServerConfig with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var request = { + projectId: projectId, + zone: zone, + }; + + // Mock Grpc layer + client._innerApiCalls.getServerConfig = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.getServerConfig(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('listNodePools', () => { + it('invokes listNodePools without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + }; + + // Mock response + var expectedResponse = {}; + + // Mock Grpc layer + client._innerApiCalls.listNodePools = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.listNodePools(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes listNodePools with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + }; + + // Mock Grpc layer + client._innerApiCalls.listNodePools = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.listNodePools(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('getNodePool', () => { + it('invokes getNodePool without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + }; + + // Mock response + var name = 'name3373707'; + var initialNodeCount = 1682564205; + var selfLink = 'selfLink-1691268851'; + var version = 'version351608024'; + var statusMessage = 'statusMessage-239442758'; + var expectedResponse = { + name: name, + initialNodeCount: initialNodeCount, + selfLink: selfLink, + version: version, + statusMessage: statusMessage, + }; + + // Mock Grpc layer + client._innerApiCalls.getNodePool = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.getNodePool(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes getNodePool with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + }; + + // Mock Grpc layer + client._innerApiCalls.getNodePool = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.getNodePool(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('createNodePool', () => { + it('invokes createNodePool without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePool = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePool: nodePool, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.createNodePool = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.createNodePool(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes createNodePool with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePool = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePool: nodePool, + }; + + // Mock Grpc layer + client._innerApiCalls.createNodePool = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.createNodePool(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('deleteNodePool', () => { + it('invokes deleteNodePool without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.deleteNodePool = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.deleteNodePool(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes deleteNodePool with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + }; + + // Mock Grpc layer + client._innerApiCalls.deleteNodePool = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.deleteNodePool(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('rollbackNodePoolUpgrade', () => { + it('invokes rollbackNodePoolUpgrade without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.rollbackNodePoolUpgrade = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.rollbackNodePoolUpgrade(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes rollbackNodePoolUpgrade with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + }; + + // Mock Grpc layer + client._innerApiCalls.rollbackNodePoolUpgrade = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.rollbackNodePoolUpgrade(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setNodePoolManagement', () => { + it('invokes setNodePoolManagement without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var management = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + management: management, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setNodePoolManagement = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setNodePoolManagement(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setNodePoolManagement with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var management = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + management: management, + }; + + // Mock Grpc layer + client._innerApiCalls.setNodePoolManagement = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setNodePoolManagement(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setLabels', () => { + it('invokes setLabels without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var resourceLabels = {}; + var labelFingerprint = 'labelFingerprint714995737'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + resourceLabels: resourceLabels, + labelFingerprint: labelFingerprint, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setLabels = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setLabels(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setLabels with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var resourceLabels = {}; + var labelFingerprint = 'labelFingerprint714995737'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + resourceLabels: resourceLabels, + labelFingerprint: labelFingerprint, + }; + + // Mock Grpc layer + client._innerApiCalls.setLabels = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setLabels(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setLegacyAbac', () => { + it('invokes setLegacyAbac without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var enabled = false; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + enabled: enabled, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setLegacyAbac = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setLegacyAbac(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setLegacyAbac with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var enabled = false; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + enabled: enabled, + }; + + // Mock Grpc layer + client._innerApiCalls.setLegacyAbac = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setLegacyAbac(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('startIPRotation', () => { + it('invokes startIPRotation without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.startIPRotation = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.startIPRotation(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes startIPRotation with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + }; + + // Mock Grpc layer + client._innerApiCalls.startIPRotation = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.startIPRotation(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('completeIPRotation', () => { + it('invokes completeIPRotation without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.completeIPRotation = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.completeIPRotation(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes completeIPRotation with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + }; + + // Mock Grpc layer + client._innerApiCalls.completeIPRotation = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.completeIPRotation(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setNodePoolSize', () => { + it('invokes setNodePoolSize without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var nodeCount = 1539922066; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + nodeCount: nodeCount, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setNodePoolSize = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setNodePoolSize(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setNodePoolSize with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var nodePoolId = 'nodePoolId1043384033'; + var nodeCount = 1539922066; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + nodePoolId: nodePoolId, + nodeCount: nodeCount, + }; + + // Mock Grpc layer + client._innerApiCalls.setNodePoolSize = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setNodePoolSize(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setNetworkPolicy', () => { + it('invokes setNetworkPolicy without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var networkPolicy = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + networkPolicy: networkPolicy, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setNetworkPolicy = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setNetworkPolicy(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setNetworkPolicy with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var networkPolicy = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + networkPolicy: networkPolicy, + }; + + // Mock Grpc layer + client._innerApiCalls.setNetworkPolicy = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setNetworkPolicy(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + + describe('setMaintenancePolicy', () => { + it('invokes setMaintenancePolicy without error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var maintenancePolicy = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + maintenancePolicy: maintenancePolicy, + }; + + // Mock response + var name = 'name3373707'; + var zone2 = 'zone2-696322977'; + var detail = 'detail-1335224239'; + var statusMessage = 'statusMessage-239442758'; + var selfLink = 'selfLink-1691268851'; + var targetLink = 'targetLink-2084812312'; + var startTime = 'startTime-1573145462'; + var endTime = 'endTime1725551537'; + var expectedResponse = { + name: name, + zone: zone2, + detail: detail, + statusMessage: statusMessage, + selfLink: selfLink, + targetLink: targetLink, + startTime: startTime, + endTime: endTime, + }; + + // Mock Grpc layer + client._innerApiCalls.setMaintenancePolicy = mockSimpleGrpcMethod( + request, + expectedResponse + ); + + client.setMaintenancePolicy(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setMaintenancePolicy with error', done => { + var client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + var projectId = 'projectId-1969970175'; + var zone = 'zone3744684'; + var clusterId = 'clusterId240280960'; + var maintenancePolicy = {}; + var request = { + projectId: projectId, + zone: zone, + clusterId: clusterId, + maintenancePolicy: maintenancePolicy, + }; + + // Mock Grpc layer + client._innerApiCalls.setMaintenancePolicy = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.setMaintenancePolicy(request, (err, response) => { + assert(err instanceof Error); + assert.equal(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + +}); + +function mockSimpleGrpcMethod(expectedRequest, response, error) { + return function(actualRequest, options, callback) { + assert.deepStrictEqual(actualRequest, expectedRequest); + if (error) { + callback(error); + } else if (response) { + callback(null, response); + } else { + callback(null); + } + }; +} From 12764ce73705d4429c8b6985ee331be1646443c3 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 13 Dec 2017 14:50:41 -0800 Subject: [PATCH 003/371] new generated code, updating version to 0.8.0 --- packages/google-container/.appveyor.yml | 20 ++ .../google-container/.circleci/config.yml | 225 ++++++++++++++++++ .../google-container/.cloud-repo-tools.json | 7 + packages/google-container/.eslintignore | 3 + packages/google-container/.eslintrc.yml | 13 + packages/google-container/.gitignore | 10 + packages/google-container/.jsdoc.js | 45 ++++ packages/google-container/.nycrc | 26 ++ packages/google-container/.prettierignore | 3 + packages/google-container/.prettierrc | 8 + packages/google-container/CODE_OF_CONDUCT.md | 43 ++++ packages/google-container/CONTRIBUTORS | 8 + packages/google-container/LICENSE | 202 ++++++++++++++++ packages/google-container/package.json | 54 ++++- .../google-container/samples/.eslintrc.yml | 3 + .../src/v1/cluster_manager_client.js | 23 +- .../system-test/.eslintrc.yml | 6 + packages/google-container/test/.eslintrc.yml | 5 + packages/google-container/test/gapic-v1.js | 1 - 19 files changed, 684 insertions(+), 21 deletions(-) create mode 100644 packages/google-container/.appveyor.yml create mode 100644 packages/google-container/.circleci/config.yml create mode 100644 packages/google-container/.cloud-repo-tools.json create mode 100644 packages/google-container/.eslintignore create mode 100644 packages/google-container/.eslintrc.yml create mode 100644 packages/google-container/.gitignore create mode 100644 packages/google-container/.jsdoc.js create mode 100644 packages/google-container/.nycrc create mode 100644 packages/google-container/.prettierignore create mode 100644 packages/google-container/.prettierrc create mode 100644 packages/google-container/CODE_OF_CONDUCT.md create mode 100644 packages/google-container/CONTRIBUTORS create mode 100644 packages/google-container/LICENSE create mode 100644 packages/google-container/samples/.eslintrc.yml create mode 100644 packages/google-container/system-test/.eslintrc.yml create mode 100644 packages/google-container/test/.eslintrc.yml diff --git a/packages/google-container/.appveyor.yml b/packages/google-container/.appveyor.yml new file mode 100644 index 00000000000..24082152655 --- /dev/null +++ b/packages/google-container/.appveyor.yml @@ -0,0 +1,20 @@ +environment: + matrix: + - nodejs_version: 8 + +install: + - ps: Install-Product node $env:nodejs_version + - npm install -g npm # Force using the latest npm to get dedupe during install + - set PATH=%APPDATA%\npm;%PATH% + - npm install --force --ignore-scripts + +test_script: + - node --version + - npm --version + - npm rebuild + - npm test + +build: off + +matrix: + fast_finish: true diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml new file mode 100644 index 00000000000..dee0068c15c --- /dev/null +++ b/packages/google-container/.circleci/config.yml @@ -0,0 +1,225 @@ +--- +# "Include" for unit tests definition. +unit_tests: &unit_tests + steps: + - checkout + - run: + name: Install modules and dependencies. + command: npm install + - run: + name: Run unit tests. + command: npm test + - run: + name: Submit coverage data to codecov. + command: node_modules/.bin/codecov + when: always + +version: 2.0 +workflows: + version: 2 + tests: + jobs: + - node4: + filters: + tags: + only: /.*/ + - node6: + filters: + tags: + only: /.*/ + - node7: + filters: + tags: + only: /.*/ + - node8: + filters: + tags: + only: /.*/ + - node9: + filters: + tags: + only: /.*/ + - lint: + requires: + - node4 + - node6 + - node7 + - node8 + - node9 + filters: + tags: + only: /.*/ + - docs: + requires: + - node4 + - node6 + - node7 + - node8 + - node9 + filters: + tags: + only: /.*/ + - system_tests: + requires: + - lint + - docs + filters: + branches: + only: master + tags: + only: /^v[\d.]+$/ + - sample_tests: + requires: + - lint + - docs + filters: + branches: + only: master + tags: + only: /^v[\d.]+$/ + - publish_npm: + requires: + - system_tests + - sample_tests + filters: + branches: + ignore: /.*/ + tags: + only: /^v[\d.]+$/ + +jobs: + node4: + docker: + - image: node:4 + steps: + - checkout + - run: + name: Install modules and dependencies. + command: npm install --unsafe-perm + - run: + name: Run unit tests. + command: npm test + - run: + name: Submit coverage data to codecov. + command: node_modules/.bin/codecov + when: always + node6: + docker: + - image: node:6 + <<: *unit_tests + node7: + docker: + - image: node:7 + <<: *unit_tests + node8: + docker: + - image: node:8 + <<: *unit_tests + node9: + docker: + - image: node:9 + <<: *unit_tests + + lint: + docker: + - image: node:8 + steps: + - checkout + - run: + name: Install modules and dependencies. + command: | + npm install + npm link + - run: + name: Link the module being tested to the samples. + command: | + cd samples/ + npm link @google-cloud/container + npm install + cd .. + - run: + name: Run linting. + command: npm run lint + + docs: + docker: + - image: node:8 + steps: + - checkout + - run: + name: Install modules and dependencies. + command: npm install + - run: + name: Build documentation. + command: npm run docs + + sample_tests: + docker: + - image: node:8 + steps: + - checkout + - run: + name: Decrypt credentials. + command: | + openssl aes-256-cbc -d -in .circleci/key.json.enc \ + -out .circleci/key.json \ + -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" + - run: + name: Install and link the module. + command: | + npm install + npm link + - run: + name: Link the module being tested to the samples. + command: | + cd samples/ + npm link @google-cloud/container + npm install + cd .. + - run: + name: Run sample tests. + command: npm run samples-test + environment: + GCLOUD_PROJECT: long-door-651 + GOOGLE_APPLICATION_CREDENTIALS: /var/container/.circleci/key.json + - run: + name: Remove unencrypted key. + command: rm .circleci/key.json + when: always + working_directory: /var/container/ + + system_tests: + docker: + - image: node:8 + steps: + - checkout + - run: + name: Decrypt credentials. + command: | + openssl aes-256-cbc -d -in .circleci/key.json.enc \ + -out .circleci/key.json \ + -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" + - run: + name: Install modules and dependencies. + command: npm install + - run: + name: Run system tests. + command: npm run system-test + environment: + GOOGLE_APPLICATION_CREDENTIALS: .circleci/key.json + - run: + name: Remove unencrypted key. + command: rm .circleci/key.json + when: always + + publish_npm: + docker: + - image: node:8 + steps: + - checkout + - run: + name: Set NPM authentication. + command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc + - run: + name: Publish the module to npm. + command: npm publish diff --git a/packages/google-container/.cloud-repo-tools.json b/packages/google-container/.cloud-repo-tools.json new file mode 100644 index 00000000000..43d5a37e81d --- /dev/null +++ b/packages/google-container/.cloud-repo-tools.json @@ -0,0 +1,7 @@ +{ + "requiresKeyFile": true, + "requiresProjectId": true, + "product": "container", + "client_reference_url": "https://cloud.google.com/nodejs/docs/reference/container/latest/", + "release_quality": "alpha" +} diff --git a/packages/google-container/.eslintignore b/packages/google-container/.eslintignore new file mode 100644 index 00000000000..f6fac98b0a8 --- /dev/null +++ b/packages/google-container/.eslintignore @@ -0,0 +1,3 @@ +node_modules/* +samples/node_modules/* +src/**/doc/* diff --git a/packages/google-container/.eslintrc.yml b/packages/google-container/.eslintrc.yml new file mode 100644 index 00000000000..bed57fbc42c --- /dev/null +++ b/packages/google-container/.eslintrc.yml @@ -0,0 +1,13 @@ +--- +extends: + - 'eslint:recommended' + - 'plugin:node/recommended' + - prettier +plugins: + - node + - prettier +rules: + prettier/prettier: error + block-scoped-var: error + eqeqeq: error + no-warning-comments: warn diff --git a/packages/google-container/.gitignore b/packages/google-container/.gitignore new file mode 100644 index 00000000000..6b80718f261 --- /dev/null +++ b/packages/google-container/.gitignore @@ -0,0 +1,10 @@ +**/*.log +**/node_modules +.coverage +.nyc_output +docs/ +out/ +system-test/secrets.js +system-test/*key.json +*.lock +*-lock.js* diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js new file mode 100644 index 00000000000..866889137e3 --- /dev/null +++ b/packages/google-container/.jsdoc.js @@ -0,0 +1,45 @@ +/*! + * Copyright 2017 Google Inc. All Rights Reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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. + */ + +'use strict'; + +module.exports = { + opts: { + readme: './README.md', + package: './package.json', + template: './node_modules/ink-docstrap/template', + recurse: true, + verbose: true, + destination: './docs/' + }, + plugins: [ + 'plugins/markdown' + ], + source: { + excludePattern: '(^|\\/|\\\\)[._]', + include: [ + 'src' + ], + includePattern: '\\.js$' + }, + templates: { + copyright: 'Copyright 2017 Google, Inc.', + includeDate: false, + sourceFiles: false, + systemName: '@google-cloud/container', + theme: 'lumen' + } +}; diff --git a/packages/google-container/.nycrc b/packages/google-container/.nycrc new file mode 100644 index 00000000000..a1a8e6920ce --- /dev/null +++ b/packages/google-container/.nycrc @@ -0,0 +1,26 @@ +{ + "report-dir": "./.coverage", + "exclude": [ + "src/*{/*,/**/*}.js", + "src/*/v*/*.js", + "test/**/*.js" + ], + "watermarks": { + "branches": [ + 95, + 100 + ], + "functions": [ + 95, + 100 + ], + "lines": [ + 95, + 100 + ], + "statements": [ + 95, + 100 + ] + } +} diff --git a/packages/google-container/.prettierignore b/packages/google-container/.prettierignore new file mode 100644 index 00000000000..f6fac98b0a8 --- /dev/null +++ b/packages/google-container/.prettierignore @@ -0,0 +1,3 @@ +node_modules/* +samples/node_modules/* +src/**/doc/* diff --git a/packages/google-container/.prettierrc b/packages/google-container/.prettierrc new file mode 100644 index 00000000000..df6eac07446 --- /dev/null +++ b/packages/google-container/.prettierrc @@ -0,0 +1,8 @@ +--- +bracketSpacing: false +printWidth: 80 +semi: true +singleQuote: true +tabWidth: 2 +trailingComma: es5 +useTabs: false diff --git a/packages/google-container/CODE_OF_CONDUCT.md b/packages/google-container/CODE_OF_CONDUCT.md new file mode 100644 index 00000000000..46b2a08ea6d --- /dev/null +++ b/packages/google-container/CODE_OF_CONDUCT.md @@ -0,0 +1,43 @@ +# Contributor Code of Conduct + +As contributors and maintainers of this project, +and in the interest of fostering an open and welcoming community, +we pledge to respect all people who contribute through reporting issues, +posting feature requests, updating documentation, +submitting pull requests or patches, and other activities. + +We are committed to making participation in this project +a harassment-free experience for everyone, +regardless of level of experience, gender, gender identity and expression, +sexual orientation, disability, personal appearance, +body size, race, ethnicity, age, religion, or nationality. + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery +* Personal attacks +* Trolling or insulting/derogatory comments +* Public or private harassment +* Publishing other's private information, +such as physical or electronic +addresses, without explicit permission +* Other unethical or unprofessional conduct. + +Project maintainers have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct. +By adopting this Code of Conduct, +project maintainers commit themselves to fairly and consistently +applying these principles to every aspect of managing this project. +Project maintainers who do not follow or enforce the Code of Conduct +may be permanently removed from the project team. + +This code of conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. + +Instances of abusive, harassing, or otherwise unacceptable behavior +may be reported by opening an issue +or contacting one or more of the project maintainers. + +This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, +available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/) diff --git a/packages/google-container/CONTRIBUTORS b/packages/google-container/CONTRIBUTORS new file mode 100644 index 00000000000..068de5986e2 --- /dev/null +++ b/packages/google-container/CONTRIBUTORS @@ -0,0 +1,8 @@ +# The names of individuals who have contributed to this project. +# +# Names are formatted as: +# name +# +Alexander Fenster +Ethan Bao +Google API Publisher diff --git a/packages/google-container/LICENSE b/packages/google-container/LICENSE new file mode 100644 index 00000000000..7a4a3ea2424 --- /dev/null +++ b/packages/google-container/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + 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. \ No newline at end of file diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 9751c20bf0d..7c3baa4beb8 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,9 +1,13 @@ { - "repository": "GoogleCloudPlatform/google-cloud-node", "name": "@google-cloud/container", - "version": "0.7.1", - "author": "Google Inc", "description": "Google Container Engine API client for Node.js", + "version": "0.8.0", + "license": "Apache-2.0", + "author": "Google Inc", + "engines": { + "node": ">=4.0.0" + }, + "repository": "GoogleCloudPlatform/google-cloud-node", "main": "src/index.js", "files": [ "protos", @@ -24,21 +28,45 @@ "container", "Google Container Engine API" ], + "contributors": [ + "Alexander Fenster ", + "Ethan Bao ", + "Google API Publisher " + ], + "scripts": { + "publish-module": "node ../../scripts/publish.js container", + "smoke-test": "mocha smoke-test/*.js --timeout 5000", + "test": "repo-tools test run --cmd npm -- run cover", + "generate-scaffolding": "repo-tools generate all", + "generate-scaffolding-samples": "repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json", + "cover": "nyc --reporter=lcov mocha --require intelli-espower-loader test/*.js && nyc report", + "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", + "test-no-cover": "repo-tools test run --cmd mocha -- test/*.js --no-timeouts", + "docs": "repo-tools exec -- jsdoc -c .jsdoc.js", + "system-test": "repo-tools test run --cmd mocha -- system-test/*.js --no-timeouts", + "lint": "repo-tools lint --cmd eslint -- src/ samples/ system-test/ test/", + "prettier": "repo-tools exec -- prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js" + }, "dependencies": { "google-gax": "^0.14.2", "lodash.merge": "^4.6.0" }, "devDependencies": { - "mocha": "^3.2.0", + "@google-cloud/nodejs-repo-tools": "^2.1.3", + "async": "^2.6.0", + "codecov": "^3.0.0", + "eslint": "^4.13.1", + "eslint-config-prettier": "^2.9.0", + "eslint-plugin-node": "^5.2.1", + "eslint-plugin-prettier": "^2.3.1", + "extend": "^3.0.1", + "ink-docstrap": "^1.3.2", + "intelli-espower-loader": "^1.0.1", + "jsdoc": "^3.5.5", + "mocha": "^3.5.3", + "nyc": "^11.3.0", + "power-assert": "^1.4.4", + "prettier": "^1.9.2", "through2": "^2.0.3" - }, - "scripts": { - "publish-module": "node ../../scripts/publish.js container", - "smoke-test": "mocha smoke-test/*.js --timeout 5000", - "test": "mocha test/*.js" - }, - "license": "Apache-2.0", - "engines": { - "node": ">=4.0.0" } } diff --git a/packages/google-container/samples/.eslintrc.yml b/packages/google-container/samples/.eslintrc.yml new file mode 100644 index 00000000000..282535f55f6 --- /dev/null +++ b/packages/google-container/samples/.eslintrc.yml @@ -0,0 +1,3 @@ +--- +rules: + no-console: off diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index 1eed54ae580..b84e07d63e4 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -184,9 +184,7 @@ class ClusterManagerClient { * in this service. */ static get scopes() { - return [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; + return ['https://www.googleapis.com/auth/cloud-platform']; } /** @@ -601,7 +599,11 @@ class ClusterManagerClient { } options = options || {}; - return this._innerApiCalls.setNodePoolAutoscaling(request, options, callback); + return this._innerApiCalls.setNodePoolAutoscaling( + request, + options, + callback + ); } /** @@ -1622,7 +1624,11 @@ class ClusterManagerClient { } options = options || {}; - return this._innerApiCalls.rollbackNodePoolUpgrade(request, options, callback); + return this._innerApiCalls.rollbackNodePoolUpgrade( + request, + options, + callback + ); } /** @@ -1692,7 +1698,11 @@ class ClusterManagerClient { } options = options || {}; - return this._innerApiCalls.setNodePoolManagement(request, options, callback); + return this._innerApiCalls.setNodePoolManagement( + request, + options, + callback + ); } /** @@ -2154,5 +2164,4 @@ class ClusterManagerClient { } } - module.exports = ClusterManagerClient; diff --git a/packages/google-container/system-test/.eslintrc.yml b/packages/google-container/system-test/.eslintrc.yml new file mode 100644 index 00000000000..2e6882e46d2 --- /dev/null +++ b/packages/google-container/system-test/.eslintrc.yml @@ -0,0 +1,6 @@ +--- +env: + mocha: true +rules: + node/no-unpublished-require: off + no-console: off diff --git a/packages/google-container/test/.eslintrc.yml b/packages/google-container/test/.eslintrc.yml new file mode 100644 index 00000000000..73f7bbc946f --- /dev/null +++ b/packages/google-container/test/.eslintrc.yml @@ -0,0 +1,5 @@ +--- +env: + mocha: true +rules: + node/no-unpublished-require: off diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js index 116166cf611..c9244a5725f 100644 --- a/packages/google-container/test/gapic-v1.js +++ b/packages/google-container/test/gapic-v1.js @@ -2508,7 +2508,6 @@ describe('ClusterManagerClient', () => { }); }); }); - }); function mockSimpleGrpcMethod(expectedRequest, response, error) { From f195a5bbbac992aed6109ed9b7c253612aab4e6c Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 13 Dec 2017 16:23:17 -0800 Subject: [PATCH 004/371] setting up smoke tests --- .../google-container/.circleci/config.yml | 63 ++---------------- .../google-container/.circleci/key.json.enc | Bin 0 -> 2368 bytes packages/google-container/CONTRIBUTORS | 1 + packages/google-container/package.json | 9 +-- .../google-container/smoke-test/.eslintrc.yml | 6 ++ .../smoke-test/cluster_manager_smoke_test.js | 45 +++++++++++++ 6 files changed, 63 insertions(+), 61 deletions(-) create mode 100644 packages/google-container/.circleci/key.json.enc create mode 100644 packages/google-container/smoke-test/.eslintrc.yml create mode 100644 packages/google-container/smoke-test/cluster_manager_smoke_test.js diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index dee0068c15c..331a79f993e 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -59,16 +59,7 @@ workflows: filters: tags: only: /.*/ - - system_tests: - requires: - - lint - - docs - filters: - branches: - only: master - tags: - only: /^v[\d.]+$/ - - sample_tests: + - smoke_tests: requires: - lint - docs @@ -79,8 +70,7 @@ workflows: only: /^v[\d.]+$/ - publish_npm: requires: - - system_tests - - sample_tests + - smoke_tests filters: branches: ignore: /.*/ @@ -130,13 +120,6 @@ jobs: command: | npm install npm link - - run: - name: Link the module being tested to the samples. - command: | - cd samples/ - npm link @google-cloud/container - npm install - cd .. - run: name: Run linting. command: npm run lint @@ -153,42 +136,7 @@ jobs: name: Build documentation. command: npm run docs - sample_tests: - docker: - - image: node:8 - steps: - - checkout - - run: - name: Decrypt credentials. - command: | - openssl aes-256-cbc -d -in .circleci/key.json.enc \ - -out .circleci/key.json \ - -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" - - run: - name: Install and link the module. - command: | - npm install - npm link - - run: - name: Link the module being tested to the samples. - command: | - cd samples/ - npm link @google-cloud/container - npm install - cd .. - - run: - name: Run sample tests. - command: npm run samples-test - environment: - GCLOUD_PROJECT: long-door-651 - GOOGLE_APPLICATION_CREDENTIALS: /var/container/.circleci/key.json - - run: - name: Remove unencrypted key. - command: rm .circleci/key.json - when: always - working_directory: /var/container/ - - system_tests: + smoke_tests: docker: - image: node:8 steps: @@ -203,9 +151,10 @@ jobs: name: Install modules and dependencies. command: npm install - run: - name: Run system tests. - command: npm run system-test + name: Run smoke tests. + command: npm run smoke-test environment: + SMOKE_TEST_PROJECT: long-door-651 GOOGLE_APPLICATION_CREDENTIALS: .circleci/key.json - run: name: Remove unencrypted key. diff --git a/packages/google-container/.circleci/key.json.enc b/packages/google-container/.circleci/key.json.enc new file mode 100644 index 0000000000000000000000000000000000000000..aeebbcf5de1cd7354b8b93ef14670753641f70aa GIT binary patch literal 2368 zcmV-G3BUGJVQh3|WM5y1J9wpaI6d_-01M^PCk^Dw17kW{4#ZFR5f8`4pfciwHQIHD zf@AL6=iqOtdpoXTN$bD}sTrHzi-lK>u|P0yYNC@nrX2*#p^B!F6;bn(Cfw~ zgdiDl6NHjg896=xDSohB0-?T+{#l>mk|k$j7w7(`ht+|C`p3F@rDC$IU?&i*s4L0? zInVuBW<64~EIjn?wTouO_=7c%MsoT0{u6l%h!F}JGU{Csgz>(!s32o~feZk|Q!skm zQdE;Y`rmQa0ES4gosITOrDd_Ysgp)4or4S)VxivQ?{&iFQFDYi(hIRMklsY?V)-YM=beBsyn{iu=K%E3m>uvjeQ=c76kc zqF83|`y7Xi+VH3P5hx3+jINx!m4k_Dor|xAFkP&9dcf4J?x}#8v8G&FYPT+zV^NfL zAk<}vN_XCp`{oO5f)hJjrS~4X!nEHU&w<6Qk#wOsBornv@~`s?Fdc-dHtD5VEyuov zgpwjq+Pu9pG5KBkmKXIDAY?=PAp-bIq99Jb)-Q#~P z5uwi!ly5?ap>uiju&h`duSbb5@tXe|8OryIV@^E0ISKi_V}Hd%oy?^S=%MITA3j+r zWA#bW1lXa#^IY!B*6@IGxhkuA_5(wc5=z>5B&XWcJ~ ze=yCkE&Vd?t|(xL(iZb5pJeiiZWf^<%)B*`wr1D_3mpVX4E#;_L}Sy*L!+j5(#5!~U2S!W7UMg< z))X6w?@iqy4XIT8&7t)HC{{Wgbl30Z46nvZcJ79uhqdCR30l99Hz2J^%6q4qCACN9 znpyM~RQR*-@Krq1%~B9wJau<_eLU~~&~?k`qq;TOW>Vl}Jz6f(wi&vYzZt+pUTTdT z+{RQyQ~X?uF51o#JDAG|L|l%ok#S9i^=}-v7FDN<)U_#X4-IAH5man{VR+byPamwb z1nTe`wpK4u%5v-%bmVu!DiYk4Hx1Ieh|ITw;I{;|rbXTY$kFMMbaSDYb#hz#)exbJ zmtY_ccCatQIGACfUv70<4;G9*IIM^4j6~8PGX+;T4Zs>& zk**gIz-5P`)fdekm?+Fv0UmvD-Tf`P_DUsIJLiB=7|aVRp5VtyM`K9D<&XTXm7xmR zbBdBI6E8OqkqRl&aBeDHAd_@kL6CT<0I{v0hXfO;l?WvBT2Ek;h~nSJN!2t?c~`%kiY0d3&q_hwrg*EZ z=s5YlwTy}->8kt#5L_h=^Eq8K`uV^pv$mQU2cNm+iNR@3t`&c$y$ffgv(ZK+QNzjm zT>4LTaQcE`jn?0Pp=Ijo`8@z-EPXp0JHw%TX+>Nt-!0Z#xGH=N6@lA~e1yPuwn!eRhO4RO?f8bzk`BpJYFozi}uEtphX2U6kPBlZZN zme}pM1+e_{BhMJgvEl4y+zYFl*vns1kqcYZa=y7c>;&Nau~jgkL2>|ec@uzJ*{4PX zf#%jsRJ+2{CVP;B)?eg^@2;0N>fzW^D$!vY*H`pXlozsg1reODEKheUMi4*8Z$nkV zO^3hUVw!i#NV=;cUY{^GOar81r&PV0qEHpmZ-Lgg4Na+-Moh0N<6=r{X+~wcvqHP` zvxlv$kSwt|2VZp};3-_ES08a+HJIKUO{0}cAapo5NQrUN*s(@RjQ%OWXXCkxdetyY zO7v0jdUgRYCSH8x1wUGIZ7nv}K|B5TlOCHA|!5v;J_I5 zRdd6&tU6Oeq*oI}#Nc;yEc^y&VG*PIEq8a;K-m{k@my!k1!sH@#nJh}qFfetoi80UzZOh97 zz;FA#_?=8Af`4`6PXmK##Pb~(0`eIw^V(=9Z;BsrSyTD^-gqF%+ z>Dn6b?ux{5d>qy`@~>umCE^tMZOP&EAMKa+(?mIh`FN>uGVK(#Q2%L;W;kPFq # +Alexander Fenster Alexander Fenster Ethan Bao Google API Publisher diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 7c3baa4beb8..697c5eb5bd2 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "0.8.0", + "version": "0.7.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { @@ -29,6 +29,7 @@ "Google Container Engine API" ], "contributors": [ + "Alexander Fenster ", "Alexander Fenster ", "Ethan Bao ", "Google API Publisher " @@ -42,10 +43,10 @@ "cover": "nyc --reporter=lcov mocha --require intelli-espower-loader test/*.js && nyc report", "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", "test-no-cover": "repo-tools test run --cmd mocha -- test/*.js --no-timeouts", + "lint": "repo-tools lint --cmd eslint -- src/ samples/ system-test/ test/ smoke-test/", + "prettier": "repo-tools exec -- prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js smoke-test/*.js", "docs": "repo-tools exec -- jsdoc -c .jsdoc.js", - "system-test": "repo-tools test run --cmd mocha -- system-test/*.js --no-timeouts", - "lint": "repo-tools lint --cmd eslint -- src/ samples/ system-test/ test/", - "prettier": "repo-tools exec -- prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js" + "system-test": "repo-tools test run --cmd mocha -- system-test/*.js --no-timeouts" }, "dependencies": { "google-gax": "^0.14.2", diff --git a/packages/google-container/smoke-test/.eslintrc.yml b/packages/google-container/smoke-test/.eslintrc.yml new file mode 100644 index 00000000000..2e6882e46d2 --- /dev/null +++ b/packages/google-container/smoke-test/.eslintrc.yml @@ -0,0 +1,6 @@ +--- +env: + mocha: true +rules: + node/no-unpublished-require: off + no-console: off diff --git a/packages/google-container/smoke-test/cluster_manager_smoke_test.js b/packages/google-container/smoke-test/cluster_manager_smoke_test.js new file mode 100644 index 00000000000..659281da12b --- /dev/null +++ b/packages/google-container/smoke-test/cluster_manager_smoke_test.js @@ -0,0 +1,45 @@ +// Copyright 2017, Google LLC All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +describe('ClusterManagerSmokeTest', () => { + if (!process.env.SMOKE_TEST_PROJECT) { + throw new Error('Usage: SMOKE_TEST_PROJECT= node #{$0}'); + } + var projectId = process.env.SMOKE_TEST_PROJECT; + + it('successfully makes a call to the service', done => { + const container = require('../src'); + + var client = new container.v1.ClusterManagerClient({ + // optional auth parameters. + }); + + var projectId2 = projectId; + var zone = 'us-central1-a'; + var request = { + projectId: projectId2, + zone: zone, + }; + client + .listClusters(request) + .then(responses => { + var response = responses[0]; + console.log(response); + }) + .then(done) + .catch(done); + }); +}); From fc07fd2aafc21172877b5baf35dfd8624bdc9a75 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 13 Dec 2017 16:24:40 -0800 Subject: [PATCH 005/371] setting version to 0.1.0 --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 697c5eb5bd2..e772b394dfe 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "0.7.1", + "version": "0.1.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { From 5babe84ac9d1eacdddb6664e9355c260445f14c2 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 13 Dec 2017 16:41:19 -0800 Subject: [PATCH 006/371] updating repository and contributors --- packages/google-container/.mailmap | 7 +++++++ packages/google-container/CONTRIBUTORS | 1 - packages/google-container/package.json | 3 +-- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 packages/google-container/.mailmap diff --git a/packages/google-container/.mailmap b/packages/google-container/.mailmap new file mode 100644 index 00000000000..7777d4dca88 --- /dev/null +++ b/packages/google-container/.mailmap @@ -0,0 +1,7 @@ +Jason Dobry Jason Dobry +Jason Dobry Jason Dobry +Luke Sneeringer Luke Sneeringer +Stephen Sawchuk Stephen Sawchuk +Stephen Sawchuk Stephen Sawchuk +Stephen Sawchuk Stephen +Alexander Fenster Alexander Fenster diff --git a/packages/google-container/CONTRIBUTORS b/packages/google-container/CONTRIBUTORS index 42ed9b9f7fe..b70bdbd3898 100644 --- a/packages/google-container/CONTRIBUTORS +++ b/packages/google-container/CONTRIBUTORS @@ -4,6 +4,5 @@ # name # Alexander Fenster -Alexander Fenster Ethan Bao Google API Publisher diff --git a/packages/google-container/package.json b/packages/google-container/package.json index e772b394dfe..9da8e00193e 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -7,7 +7,7 @@ "engines": { "node": ">=4.0.0" }, - "repository": "GoogleCloudPlatform/google-cloud-node", + "repository": "googleapis/nodejs-cloud-container", "main": "src/index.js", "files": [ "protos", @@ -30,7 +30,6 @@ ], "contributors": [ "Alexander Fenster ", - "Alexander Fenster ", "Ethan Bao ", "Google API Publisher " ], From df319bc0ec799f2d9129a7d362c15b313708b40e Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Thu, 14 Dec 2017 14:21:30 -0800 Subject: [PATCH 007/371] remove publish-module script --- packages/google-container/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 9da8e00193e..6f18b8b1cbf 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -34,7 +34,6 @@ "Google API Publisher " ], "scripts": { - "publish-module": "node ../../scripts/publish.js container", "smoke-test": "mocha smoke-test/*.js --timeout 5000", "test": "repo-tools test run --cmd npm -- run cover", "generate-scaffolding": "repo-tools generate all", From 0dc0ecefbef2906c2d4a044c4e776554630ce1f7 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Thu, 14 Dec 2017 14:52:06 -0800 Subject: [PATCH 008/371] making smoke test run as system test --- packages/google-container/.circleci/config.yml | 12 ++++++------ packages/google-container/package.json | 3 +-- .../smoke-test/cluster_manager_smoke_test.js | 6 +++--- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 331a79f993e..59ccd137516 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -59,7 +59,7 @@ workflows: filters: tags: only: /.*/ - - smoke_tests: + - system_tests: requires: - lint - docs @@ -70,7 +70,7 @@ workflows: only: /^v[\d.]+$/ - publish_npm: requires: - - smoke_tests + - system_tests filters: branches: ignore: /.*/ @@ -136,7 +136,7 @@ jobs: name: Build documentation. command: npm run docs - smoke_tests: + system_tests: docker: - image: node:8 steps: @@ -151,10 +151,10 @@ jobs: name: Install modules and dependencies. command: npm install - run: - name: Run smoke tests. - command: npm run smoke-test + name: Run system tests. + command: npm run system-test environment: - SMOKE_TEST_PROJECT: long-door-651 + GCLOUD_PROJECT: long-door-651 GOOGLE_APPLICATION_CREDENTIALS: .circleci/key.json - run: name: Remove unencrypted key. diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 6f18b8b1cbf..7a62617faab 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -34,7 +34,6 @@ "Google API Publisher " ], "scripts": { - "smoke-test": "mocha smoke-test/*.js --timeout 5000", "test": "repo-tools test run --cmd npm -- run cover", "generate-scaffolding": "repo-tools generate all", "generate-scaffolding-samples": "repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json", @@ -44,7 +43,7 @@ "lint": "repo-tools lint --cmd eslint -- src/ samples/ system-test/ test/ smoke-test/", "prettier": "repo-tools exec -- prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js smoke-test/*.js", "docs": "repo-tools exec -- jsdoc -c .jsdoc.js", - "system-test": "repo-tools test run --cmd mocha -- system-test/*.js --no-timeouts" + "system-test": "repo-tools test run --cmd mocha -- system-test/*.js smoke-test/*.js --no-timeouts" }, "dependencies": { "google-gax": "^0.14.2", diff --git a/packages/google-container/smoke-test/cluster_manager_smoke_test.js b/packages/google-container/smoke-test/cluster_manager_smoke_test.js index 659281da12b..ceadb9a44b0 100644 --- a/packages/google-container/smoke-test/cluster_manager_smoke_test.js +++ b/packages/google-container/smoke-test/cluster_manager_smoke_test.js @@ -15,10 +15,10 @@ 'use strict'; describe('ClusterManagerSmokeTest', () => { - if (!process.env.SMOKE_TEST_PROJECT) { - throw new Error('Usage: SMOKE_TEST_PROJECT= node #{$0}'); + if (!process.env.GCLOUD_PROJECT) { + throw new Error('Usage: GCLOUD_PROJECT= node #{$0}'); } - var projectId = process.env.SMOKE_TEST_PROJECT; + var projectId = process.env.GCLOUD_PROJECT; it('successfully makes a call to the service', done => { const container = require('../src'); From 614adfb131d6c127ec78dc88393eb6d017d2612a Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Fri, 15 Dec 2017 14:39:18 -0800 Subject: [PATCH 009/371] =?UTF-8?q?Update=20dependencies=20to=20enable=20G?= =?UTF-8?q?reenkeeper=20=F0=9F=8C=B4=20(#3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(package): update dependencies * docs(readme): add Greenkeeper badge --- packages/google-container/README.md | 2 ++ packages/google-container/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index a4e2b836b88..1f2c7b9acb1 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -1,5 +1,7 @@ # Node.js Client for Google Container Engine API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-node#versioning)) +[![Greenkeeper badge](https://badges.greenkeeper.io/googleapis/nodejs-cloud-container.svg)](https://greenkeeper.io/) + [Google Container Engine API][Product Documentation]: The Google Kubernetes Engine API is used for building and managing container based applications, powered by the open source Kubernetes technology. diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 7a62617faab..f19143da2d4 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -61,7 +61,7 @@ "ink-docstrap": "^1.3.2", "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.5.5", - "mocha": "^3.5.3", + "mocha": "^4.0.1", "nyc": "^11.3.0", "power-assert": "^1.4.4", "prettier": "^1.9.2", From b5742f6bd0ee83731401ca1967876482ea553366 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 15 Dec 2017 15:22:19 -0800 Subject: [PATCH 010/371] Better readme and quickstart (#4) added quickstart.js and a better README --- packages/google-container/README.md | 124 +++++++++++++----- .../google-container/samples/quickstart.js | 42 ++++++ 2 files changed, 133 insertions(+), 33 deletions(-) create mode 100644 packages/google-container/samples/quickstart.js diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 1f2c7b9acb1..2b5c3b15728 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -1,33 +1,91 @@ -# Node.js Client for Google Container Engine API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-node#versioning)) - -[![Greenkeeper badge](https://badges.greenkeeper.io/googleapis/nodejs-cloud-container.svg)](https://greenkeeper.io/) - -[Google Container Engine API][Product Documentation]: -The Google Kubernetes Engine API is used for building and managing container -based applications, powered by the open source Kubernetes technology. -- [Client Library Documentation][] -- [Product Documentation][] - -## Quick Start -In order to use this library, you first need to go through the following -steps: - -1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project) -2. [Enable the Google Container Engine API.](https://console.cloud.google.com/apis/api/container) -3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/master/guides/authentication) - -### Installation -``` -$ npm install --save @google-cloud/container -``` - -### Next Steps -- Read the [Client Library Documentation][] for Google Container Engine API - to see other available methods on the client. -- Read the [Google Container Engine API Product documentation][Product Documentation] - to learn more about the product and see How-to Guides. -- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/README.md) - to see the full list of Cloud APIs that we cover. - -[Client Library Documentation]: https://googlecloudplatform.github.io/google-cloud-node/#/docs/container -[Product Documentation]: https://cloud.google.com/container \ No newline at end of file +Google Cloud Platform logo + +# [Google Container Engine: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) + +[![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![CircleCI](https://img.shields.io/circleci/project/github/googleapis/nodejs-cloud-container.svg?style=flat)](https://circleci.com/gh/googleapis/nodejs-cloud-container) +[![AppVeyor](https://ci.appveyor.com/api/projects/status/github/googleapis/nodejs-cloud-container?branch=master&svg=true)](https://ci.appveyor.com/project/googleapis/nodejs-cloud-container) +[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-cloud-container/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-cloud-container) + +> Node.js idiomatic client for [Container Engine][product-docs]. + +[Container Engine](https://cloud.google.com/container-engine/docs/) let's you run Docker containers on Google Cloud Platform, powered by Kubernetes. + + +* [Container Engine Node.js Client API Reference][client-docs] +* [github.com/googleapis/nodejs-cloud-container](https://github.com/googleapis/nodejs-cloud-container) +* [Container Engine Documentation][product-docs] + +Read more about the client libraries for Cloud APIs, including the older +Google APIs Client Libraries, in [Client Libraries Explained][explained]. + +[explained]: https://cloud.google.com/apis/docs/client-libraries-explained + +**Table of contents:** + +* [Quickstart](#quickstart) + * [Before you begin](#before-you-begin) + * [Installing the client library](#installing-the-client-library) + * [Using the client library](#using-the-client-library) +* [Versioning](#versioning) +* [Contributing](#contributing) +* [License](#license) + +## Quickstart + +### Before you begin + +1. Select or create a Cloud Platform project. + + [Go to the projects page][projects] + +1. Enable billing for your project. + + [Enable billing][billing] + +1. Enable the Google Container Engine API. + + [Enable the API][enable_api] + +1. [Set up authentication with a service account][auth] so you can access the + API from your local workstation. + +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=container.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started + +### Installing the client library + + npm install --save @google-cloud/container + + + +The [Container Engine Node.js Client API Reference][client-docs] documentation +also contains samples. + +## Versioning + +This library follows [Semantic Versioning](http://semver.org/). + +This library is considered to be in **alpha**. This means it is still a +work-in-progress and under active development. Any release is subject to +backwards-incompatible changes at any time. + +More Information: [Google Cloud Platform Launch Stages][launch_stages] + +[launch_stages]: https://cloud.google.com/terms/launch-stages + +## Contributing + +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-cloud-container/blob/master/.github/CONTRIBUTING.md). + +## License + +Apache Version 2.0 + +See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/master/LICENSE) + +[client-docs]: https://cloud.google.com/nodejs/docs/reference/container/latest/ +[product-docs]: https://cloud.google.com/container-engine/docs/ +[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png diff --git a/packages/google-container/samples/quickstart.js b/packages/google-container/samples/quickstart.js new file mode 100644 index 00000000000..157e72344d2 --- /dev/null +++ b/packages/google-container/samples/quickstart.js @@ -0,0 +1,42 @@ +// Copyright 2017, Google LLC All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +const container = require('../src'); + +if ( + !process.env.GCLOUD_PROJECT || + !process.env.GOOGLE_APPLICATION_CREDENTIALS +) { + throw new Error( + 'Usage: GCLOUD_PROJECT= GOOGLE_APPLICATION_CREDENTIALS= node #{$0}' + ); +} +var projectId = process.env.GCLOUD_PROJECT; + +var client = new container.v1.ClusterManagerClient({ + // optional auth parameters. +}); + +var projectId2 = projectId; +var zone = 'us-central1-a'; +var request = { + projectId: projectId2, + zone: zone, +}; +client.listClusters(request).then(responses => { + var response = responses[0]; + console.log(response); +}); From fb981d28212cea7cd8b03121cf929d4bc50b350b Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Mon, 18 Dec 2017 16:16:16 -0800 Subject: [PATCH 011/371] Run CI with non-privileged account (#5) * run all commands as a regular user * use docker.user to set user to node * fixing yaml syntax * fixing lint task --- packages/google-container/.circleci/config.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 59ccd137516..b44d1da76f0 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -81,6 +81,7 @@ jobs: node4: docker: - image: node:4 + user: node steps: - checkout - run: @@ -96,37 +97,48 @@ jobs: node6: docker: - image: node:6 + user: node <<: *unit_tests node7: docker: - image: node:7 + user: node <<: *unit_tests node8: docker: - image: node:8 + user: node <<: *unit_tests node9: docker: - image: node:9 + user: node <<: *unit_tests lint: docker: - image: node:8 + user: node steps: - checkout - run: name: Install modules and dependencies. command: | + mkdir -p /home/node/.npm-global npm install npm link + environment: + NPM_CONFIG_PREFIX: /home/node/.npm-global - run: name: Run linting. command: npm run lint + environment: + NPM_CONFIG_PREFIX: /home/node/.npm-global docs: docker: - image: node:8 + user: node steps: - checkout - run: @@ -139,6 +151,7 @@ jobs: system_tests: docker: - image: node:8 + user: node steps: - checkout - run: @@ -164,6 +177,7 @@ jobs: publish_npm: docker: - image: node:8 + user: node steps: - checkout - run: From 27104dfaecb23912382ec1ce01c44fc0d270a66e Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 22 Dec 2017 11:18:30 -0800 Subject: [PATCH 012/371] publish npm package as public (#6) Not sure how it worked without this :) --- packages/google-container/.circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index b44d1da76f0..417498c5230 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -185,4 +185,4 @@ jobs: command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - run: name: Publish the module to npm. - command: npm publish + command: npm publish --access=public From 7632e62956dec493f89f37ea79c307ad730cd5e2 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Thu, 25 Jan 2018 12:21:28 -0800 Subject: [PATCH 013/371] chore(package): update mocha to version 5.0.0 (#7) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index f19143da2d4..add0de68795 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -61,7 +61,7 @@ "ink-docstrap": "^1.3.2", "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.5.5", - "mocha": "^4.0.1", + "mocha": "^5.0.0", "nyc": "^11.3.0", "power-assert": "^1.4.4", "prettier": "^1.9.2", From 2dc765b910d532ed637e6c6c608593067ce2e209 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Wed, 7 Feb 2018 11:02:44 -0500 Subject: [PATCH 014/371] =?UTF-8?q?Update=20eslint-plugin-node=20to=20the?= =?UTF-8?q?=20latest=20version=20=F0=9F=9A=80=20(#10)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index add0de68795..dcca7dd2d6f 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -55,7 +55,7 @@ "codecov": "^3.0.0", "eslint": "^4.13.1", "eslint-config-prettier": "^2.9.0", - "eslint-plugin-node": "^5.2.1", + "eslint-plugin-node": "^6.0.0", "eslint-plugin-prettier": "^2.3.1", "extend": "^3.0.1", "ink-docstrap": "^1.3.2", From 74b3bfa6f0b09c96b47e15b5aaa3a900f32e6237 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Thu, 22 Feb 2018 16:10:48 -0800 Subject: [PATCH 015/371] chore: removing node7 job from CircleCI (#14) * chore: removing node7 job from CircleCI * chore: rename reference --- .../google-container/.circleci/config.yml | 57 +++++++------------ 1 file changed, 19 insertions(+), 38 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 417498c5230..4c7f4d8cbab 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -1,7 +1,5 @@ ---- -# "Include" for unit tests definition. -unit_tests: &unit_tests - steps: +unit_tests: + steps: &unit_tests - checkout - run: name: Install modules and dependencies. @@ -13,8 +11,7 @@ unit_tests: &unit_tests name: Submit coverage data to codecov. command: node_modules/.bin/codecov when: always - -version: 2.0 +version: 2 workflows: version: 2 tests: @@ -27,10 +24,6 @@ workflows: filters: tags: only: /.*/ - - node7: - filters: - tags: - only: /.*/ - node8: filters: tags: @@ -43,7 +36,6 @@ workflows: requires: - node4 - node6 - - node7 - node8 - node9 filters: @@ -53,7 +45,6 @@ workflows: requires: - node4 - node6 - - node7 - node8 - node9 filters: @@ -67,7 +58,7 @@ workflows: branches: only: master tags: - only: /^v[\d.]+$/ + only: '/^v[\d.]+$/' - publish_npm: requires: - system_tests @@ -75,12 +66,11 @@ workflows: branches: ignore: /.*/ tags: - only: /^v[\d.]+$/ - + only: '/^v[\d.]+$/' jobs: node4: docker: - - image: node:4 + - image: 'node:4' user: node steps: - checkout @@ -96,28 +86,22 @@ jobs: when: always node6: docker: - - image: node:6 - user: node - <<: *unit_tests - node7: - docker: - - image: node:7 + - image: 'node:6' user: node - <<: *unit_tests + steps: *unit_tests node8: docker: - - image: node:8 + - image: 'node:8' user: node - <<: *unit_tests + steps: *unit_tests node9: docker: - - image: node:9 + - image: 'node:9' user: node - <<: *unit_tests - + steps: *unit_tests lint: docker: - - image: node:8 + - image: 'node:8' user: node steps: - checkout @@ -134,10 +118,9 @@ jobs: command: npm run lint environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - docs: docker: - - image: node:8 + - image: 'node:8' user: node steps: - checkout @@ -147,10 +130,9 @@ jobs: - run: name: Build documentation. command: npm run docs - system_tests: docker: - - image: node:8 + - image: 'node:8' user: node steps: - checkout @@ -173,16 +155,15 @@ jobs: name: Remove unencrypted key. command: rm .circleci/key.json when: always - publish_npm: docker: - - image: node:8 + - image: 'node:8' user: node steps: - checkout - run: name: Set NPM authentication. - command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc + command: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc' - run: - name: Publish the module to npm. - command: npm publish --access=public + name: Publish the module to npm. + command: npm publish --access=public From 15db5b290d0c250840c7c99315546e1b3bcb55a9 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Mon, 5 Mar 2018 16:22:56 -0500 Subject: [PATCH 016/371] fix(package): update google-gax to version 0.15.0 (#15) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index dcca7dd2d6f..a2ae7583242 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -46,7 +46,7 @@ "system-test": "repo-tools test run --cmd mocha -- system-test/*.js smoke-test/*.js --no-timeouts" }, "dependencies": { - "google-gax": "^0.14.2", + "google-gax": "^0.15.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From 947f1a9b3dfb5f66af76c578e1709814c4aef555 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Wed, 14 Mar 2018 16:56:57 -0400 Subject: [PATCH 017/371] fix(package): update google-gax to version 0.16.0 (#16) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index a2ae7583242..b21d5dc752c 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -46,7 +46,7 @@ "system-test": "repo-tools test run --cmd mocha -- system-test/*.js smoke-test/*.js --no-timeouts" }, "dependencies": { - "google-gax": "^0.15.0", + "google-gax": "^0.16.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From 67a938182d66948a5534db0b78528bcd23a3bbc3 Mon Sep 17 00:00:00 2001 From: Jason Dobry Date: Fri, 16 Mar 2018 15:29:47 -0700 Subject: [PATCH 018/371] Upgrade repo-tools and regenerate scaffolding. (#19) * Upgrade repo-tools and regenerate scaffolding. * fix lint task in circleci --- .../google-container/.circleci/config.yml | 9 + packages/google-container/.gitignore | 5 +- packages/google-container/CONTRIBUTORS | 1 + packages/google-container/README.md | 56 +- packages/google-container/package-lock.json | 13996 ++++++++++++++++ packages/google-container/package.json | 5 +- .../google-container/samples/package.json | 25 + .../google-container/samples/quickstart.js | 56 +- 8 files changed, 14115 insertions(+), 38 deletions(-) create mode 100644 packages/google-container/package-lock.json create mode 100644 packages/google-container/samples/package.json diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 4c7f4d8cbab..a2cfff50fd3 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -113,6 +113,15 @@ jobs: npm link environment: NPM_CONFIG_PREFIX: /home/node/.npm-global + - run: + name: Link the module being tested to the samples. + command: | + cd samples/ + npm link ../ + npm install + cd .. + environment: + NPM_CONFIG_PREFIX: /home/node/.npm-global - run: name: Run linting. command: npm run lint diff --git a/packages/google-container/.gitignore b/packages/google-container/.gitignore index 6b80718f261..082cf01ed78 100644 --- a/packages/google-container/.gitignore +++ b/packages/google-container/.gitignore @@ -4,7 +4,10 @@ .nyc_output docs/ out/ +build/ system-test/secrets.js system-test/*key.json *.lock -*-lock.js* +.DS_Store +google-cloud-logging-winston-*.tgz +google-cloud-logging-bunyan-*.tgz \ No newline at end of file diff --git a/packages/google-container/CONTRIBUTORS b/packages/google-container/CONTRIBUTORS index b70bdbd3898..fe335c3db51 100644 --- a/packages/google-container/CONTRIBUTORS +++ b/packages/google-container/CONTRIBUTORS @@ -6,3 +6,4 @@ Alexander Fenster Ethan Bao Google API Publisher +greenkeeper[bot] diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 2b5c3b15728..ef859abca8b 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -1,20 +1,20 @@ Google Cloud Platform logo -# [Google Container Engine: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) +# [Google Kubernetes Engine: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) [![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![CircleCI](https://img.shields.io/circleci/project/github/googleapis/nodejs-cloud-container.svg?style=flat)](https://circleci.com/gh/googleapis/nodejs-cloud-container) [![AppVeyor](https://ci.appveyor.com/api/projects/status/github/googleapis/nodejs-cloud-container?branch=master&svg=true)](https://ci.appveyor.com/project/googleapis/nodejs-cloud-container) [![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-cloud-container/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-cloud-container) -> Node.js idiomatic client for [Container Engine][product-docs]. +> Node.js idiomatic client for [Kubernetes Engine][product-docs]. -[Container Engine](https://cloud.google.com/container-engine/docs/) let's you run Docker containers on Google Cloud Platform, powered by Kubernetes. +[Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/) is used for building and managing container based applications, powered by the open source Kubernetes technology. -* [Container Engine Node.js Client API Reference][client-docs] +* [Kubernetes Engine Node.js Client API Reference][client-docs] * [github.com/googleapis/nodejs-cloud-container](https://github.com/googleapis/nodejs-cloud-container) -* [Container Engine Documentation][product-docs] +* [Kubernetes Engine Documentation][product-docs] Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in [Client Libraries Explained][explained]. @@ -43,7 +43,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. [Enable billing][billing] -1. Enable the Google Container Engine API. +1. Enable the Google Kubernetes Engine API. [Enable the API][enable_api] @@ -59,9 +59,43 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. npm install --save @google-cloud/container - - -The [Container Engine Node.js Client API Reference][client-docs] documentation +### Using the client library + +```javascript +const container = require('@google-cloud/cloud-container'); + +if ( + !process.env.GCLOUD_PROJECT || + !process.env.GOOGLE_APPLICATION_CREDENTIALS +) { + throw new Error( + 'Usage: GCLOUD_PROJECT= GOOGLE_APPLICATION_CREDENTIALS= node #{$0}' + ); +} + +const client = new container.v1.ClusterManagerClient({ + // optional auth parameters. +}); + +const projectId = process.env.GCLOUD_PROJECT; +const zone = 'us-central1-a'; +const request = { + projectId: projectId, + zone: zone, +}; + +client.listClusters(request) + .then(responses => { + const response = responses[0]; + console.log(response); + }) + .catch(err => { + console.error('ERROR:', err); + }); +``` + + +The [Kubernetes Engine Node.js Client API Reference][client-docs] documentation also contains samples. ## Versioning @@ -87,5 +121,5 @@ Apache Version 2.0 See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/master/LICENSE) [client-docs]: https://cloud.google.com/nodejs/docs/reference/container/latest/ -[product-docs]: https://cloud.google.com/container-engine/docs/ -[shell_img]: http://gstatic.com/cloudssh/images/open-btn.png +[product-docs]: https://cloud.google.com/kubernetes-engine/docs/ +[shell_img]: //gstatic.com/cloudssh/images/open-btn.png diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json new file mode 100644 index 00000000000..96a1d61fe06 --- /dev/null +++ b/packages/google-container/package-lock.json @@ -0,0 +1,13996 @@ +{ + "name": "@google-cloud/container", + "version": "0.1.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@ava/babel-plugin-throws-helper": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@ava/babel-plugin-throws-helper/-/babel-plugin-throws-helper-2.0.0.tgz", + "integrity": "sha1-L8H+PCEacQcaTsp7j3r1hCzRrnw=", + "dev": true + }, + "@ava/babel-preset-stage-4": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@ava/babel-preset-stage-4/-/babel-preset-stage-4-1.1.0.tgz", + "integrity": "sha512-oWqTnIGXW3k72UFidXzW0ONlO7hnO9x02S/QReJ7NBGeiBH9cUHY9+EfV6C8PXC6YJH++WrliEq03wMSJGNZFg==", + "dev": true, + "requires": { + "babel-plugin-check-es2015-constants": "6.22.0", + "babel-plugin-syntax-trailing-function-commas": "6.22.0", + "babel-plugin-transform-async-to-generator": "6.24.1", + "babel-plugin-transform-es2015-destructuring": "6.23.0", + "babel-plugin-transform-es2015-function-name": "6.24.1", + "babel-plugin-transform-es2015-modules-commonjs": "6.26.0", + "babel-plugin-transform-es2015-parameters": "6.24.1", + "babel-plugin-transform-es2015-spread": "6.22.0", + "babel-plugin-transform-es2015-sticky-regex": "6.24.1", + "babel-plugin-transform-es2015-unicode-regex": "6.24.1", + "babel-plugin-transform-exponentiation-operator": "6.24.1", + "package-hash": "1.2.0" + }, + "dependencies": { + "md5-hex": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-1.3.0.tgz", + "integrity": "sha1-0sSv6YPENwZiF5uMrRRSGRNQRsQ=", + "dev": true, + "requires": { + "md5-o-matic": "0.1.1" + } + }, + "package-hash": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-1.2.0.tgz", + "integrity": "sha1-AD5WzVe3NqbtYRTMK4FUJnJ3DkQ=", + "dev": true, + "requires": { + "md5-hex": "1.3.0" + } + } + } + }, + "@ava/babel-preset-transform-test-files": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@ava/babel-preset-transform-test-files/-/babel-preset-transform-test-files-3.0.0.tgz", + "integrity": "sha1-ze0RlqjY2TgaUJJAq5LpGl7Aafc=", + "dev": true, + "requires": { + "@ava/babel-plugin-throws-helper": "2.0.0", + "babel-plugin-espower": "2.4.0" + } + }, + "@ava/write-file-atomic": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@ava/write-file-atomic/-/write-file-atomic-2.2.0.tgz", + "integrity": "sha512-BTNB3nGbEfJT+69wuqXFr/bQH7Vr7ihx2xGOMNqPgDGhwspoZhiWumDDZNjBy7AScmqS5CELIOGtPVXESyrnDA==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "slide": "1.1.6" + } + }, + "@concordance/react": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@concordance/react/-/react-1.0.0.tgz", + "integrity": "sha512-htrsRaQX8Iixlsek8zQU7tE8wcsTQJ5UhZkSPEA8slCDAisKpC/2VgU/ucPn32M5/LjGGXRaUEKvEw1Wiuu4zQ==", + "dev": true, + "requires": { + "arrify": "1.0.1" + } + }, + "@google-cloud/nodejs-repo-tools": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-2.2.4.tgz", + "integrity": "sha512-yHxW7JvhnqgoIftv6dAn1r/9AEcPuumD0xXggdYHmDeyf38OMYyjTk92gP9vflTOee1JhM0vOarwGrlKYUbmnQ==", + "dev": true, + "requires": { + "ava": "0.25.0", + "colors": "1.1.2", + "fs-extra": "5.0.0", + "got": "8.2.0", + "handlebars": "4.0.11", + "lodash": "4.17.5", + "nyc": "11.4.1", + "proxyquire": "1.8.0", + "sinon": "4.3.0", + "string": "3.3.3", + "supertest": "3.0.0", + "yargs": "11.0.0", + "yargs-parser": "9.0.2" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "cliui": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.0.0.tgz", + "integrity": "sha512-nY3W5Gu2racvdDk//ELReY+dHjb9PlIcVDFXP72nVIhq2Gy3LuVXYwJoPVudwQnv1shtohpgkdCKT2YaKY0CKw==", + "dev": true, + "requires": { + "string-width": "2.1.1", + "strip-ansi": "4.0.0", + "wrap-ansi": "2.1.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "nyc": { + "version": "11.4.1", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.4.1.tgz", + "integrity": "sha512-5eCZpvaksFVjP2rt1r60cfXmt3MUtsQDw8bAzNqNEr4WLvUMLgiVENMf/B9bE9YAX0mGVvaGA3v9IS9ekNqB1Q==", + "dev": true, + "requires": { + "archy": "1.0.0", + "arrify": "1.0.1", + "caching-transform": "1.0.1", + "convert-source-map": "1.5.1", + "debug-log": "1.0.1", + "default-require-extensions": "1.0.0", + "find-cache-dir": "0.1.1", + "find-up": "2.1.0", + "foreground-child": "1.5.6", + "glob": "7.1.2", + "istanbul-lib-coverage": "1.1.1", + "istanbul-lib-hook": "1.1.0", + "istanbul-lib-instrument": "1.9.1", + "istanbul-lib-report": "1.1.2", + "istanbul-lib-source-maps": "1.2.2", + "istanbul-reports": "1.1.3", + "md5-hex": "1.3.0", + "merge-source-map": "1.0.4", + "micromatch": "2.3.11", + "mkdirp": "0.5.1", + "resolve-from": "2.0.0", + "rimraf": "2.6.2", + "signal-exit": "3.0.2", + "spawn-wrap": "1.4.2", + "test-exclude": "4.1.1", + "yargs": "10.0.3", + "yargs-parser": "8.0.0" + }, + "dependencies": { + "align-text": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2", + "longest": "1.0.1", + "repeat-string": "1.6.1" + } + }, + "amdefine": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "bundled": true, + "dev": true + }, + "append-transform": { + "version": "0.4.0", + "bundled": true, + "dev": true, + "requires": { + "default-require-extensions": "1.0.0" + } + }, + "archy": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "arr-diff": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "arr-flatten": "1.1.0" + } + }, + "arr-flatten": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "array-unique": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "arrify": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "async": { + "version": "1.5.2", + "bundled": true, + "dev": true + }, + "babel-code-frame": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "babel-generator": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "detect-indent": "4.0.0", + "jsesc": "1.3.0", + "lodash": "4.17.4", + "source-map": "0.5.7", + "trim-right": "1.0.1" + } + }, + "babel-messages": { + "version": "6.23.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-runtime": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "core-js": "2.5.3", + "regenerator-runtime": "0.11.1" + } + }, + "babel-template": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "lodash": "4.17.4" + } + }, + "babel-traverse": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "debug": "2.6.9", + "globals": "9.18.0", + "invariant": "2.2.2", + "lodash": "4.17.4" + } + }, + "babel-types": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "esutils": "2.0.2", + "lodash": "4.17.4", + "to-fast-properties": "1.0.3" + } + }, + "babylon": { + "version": "6.18.0", + "bundled": true, + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "brace-expansion": { + "version": "1.1.8", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "1.8.5", + "bundled": true, + "dev": true, + "requires": { + "expand-range": "1.8.2", + "preserve": "0.2.0", + "repeat-element": "1.1.2" + } + }, + "builtin-modules": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "caching-transform": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "md5-hex": "1.3.0", + "mkdirp": "0.5.1", + "write-file-atomic": "1.3.4" + } + }, + "camelcase": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "optional": true + }, + "center-align": { + "version": "0.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "align-text": "0.1.4", + "lazy-cache": "1.0.4" + } + }, + "chalk": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "cliui": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "center-align": "0.1.3", + "right-align": "0.1.3", + "wordwrap": "0.0.2" + }, + "dependencies": { + "wordwrap": { + "version": "0.0.2", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "commondir": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "convert-source-map": { + "version": "1.5.1", + "bundled": true, + "dev": true + }, + "core-js": { + "version": "2.5.3", + "bundled": true, + "dev": true + }, + "cross-spawn": { + "version": "4.0.2", + "bundled": true, + "dev": true, + "requires": { + "lru-cache": "4.1.1", + "which": "1.3.0" + } + }, + "debug": { + "version": "2.6.9", + "bundled": true, + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "debug-log": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "decamelize": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "default-require-extensions": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "strip-bom": "2.0.0" + } + }, + "detect-indent": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "repeating": "2.0.1" + } + }, + "error-ex": { + "version": "1.3.1", + "bundled": true, + "dev": true, + "requires": { + "is-arrayish": "0.2.1" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "bundled": true, + "dev": true + }, + "esutils": { + "version": "2.0.2", + "bundled": true, + "dev": true + }, + "execa": { + "version": "0.7.0", + "bundled": true, + "dev": true, + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "5.1.0", + "bundled": true, + "dev": true, + "requires": { + "lru-cache": "4.1.1", + "shebang-command": "1.2.0", + "which": "1.3.0" + } + } + } + }, + "expand-brackets": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "requires": { + "is-posix-bracket": "0.1.1" + } + }, + "expand-range": { + "version": "1.8.2", + "bundled": true, + "dev": true, + "requires": { + "fill-range": "2.2.3" + } + }, + "extglob": { + "version": "0.3.2", + "bundled": true, + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "filename-regex": { + "version": "2.0.1", + "bundled": true, + "dev": true + }, + "fill-range": { + "version": "2.2.3", + "bundled": true, + "dev": true, + "requires": { + "is-number": "2.1.0", + "isobject": "2.1.0", + "randomatic": "1.1.7", + "repeat-element": "1.1.2", + "repeat-string": "1.6.1" + } + }, + "find-cache-dir": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "requires": { + "commondir": "1.0.1", + "mkdirp": "0.5.1", + "pkg-dir": "1.0.0" + } + }, + "find-up": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "for-in": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "for-own": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "requires": { + "for-in": "1.0.2" + } + }, + "foreground-child": { + "version": "1.5.6", + "bundled": true, + "dev": true, + "requires": { + "cross-spawn": "4.0.2", + "signal-exit": "3.0.2" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "get-caller-file": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "get-stream": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "glob-base": { + "version": "0.3.0", + "bundled": true, + "dev": true, + "requires": { + "glob-parent": "2.0.0", + "is-glob": "2.0.1" + } + }, + "glob-parent": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-glob": "2.0.1" + } + }, + "globals": { + "version": "9.18.0", + "bundled": true, + "dev": true + }, + "graceful-fs": { + "version": "4.1.11", + "bundled": true, + "dev": true + }, + "handlebars": { + "version": "4.0.11", + "bundled": true, + "dev": true, + "requires": { + "async": "1.5.2", + "optimist": "0.6.1", + "source-map": "0.4.4", + "uglify-js": "2.8.29" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "bundled": true, + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "has-ansi": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "has-flag": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "hosted-git-info": { + "version": "2.5.0", + "bundled": true, + "dev": true + }, + "imurmurhash": { + "version": "0.1.4", + "bundled": true, + "dev": true + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "invariant": { + "version": "2.2.2", + "bundled": true, + "dev": true, + "requires": { + "loose-envify": "1.3.1" + } + }, + "invert-kv": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "is-arrayish": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "is-buffer": { + "version": "1.1.6", + "bundled": true, + "dev": true + }, + "is-builtin-module": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "builtin-modules": "1.1.1" + } + }, + "is-dotfile": { + "version": "1.0.3", + "bundled": true, + "dev": true + }, + "is-equal-shallow": { + "version": "0.1.3", + "bundled": true, + "dev": true, + "requires": { + "is-primitive": "2.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "is-extglob": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "is-finite": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-glob": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "is-number": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-posix-bracket": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "is-primitive": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "is-utf8": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "isexe": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "isobject": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "isarray": "1.0.0" + } + }, + "istanbul-lib-coverage": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "istanbul-lib-hook": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "append-transform": "0.4.0" + } + }, + "istanbul-lib-instrument": { + "version": "1.9.1", + "bundled": true, + "dev": true, + "requires": { + "babel-generator": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "istanbul-lib-coverage": "1.1.1", + "semver": "5.4.1" + } + }, + "istanbul-lib-report": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "istanbul-lib-coverage": "1.1.1", + "mkdirp": "0.5.1", + "path-parse": "1.0.5", + "supports-color": "3.2.3" + }, + "dependencies": { + "supports-color": { + "version": "3.2.3", + "bundled": true, + "dev": true, + "requires": { + "has-flag": "1.0.0" + } + } + } + }, + "istanbul-lib-source-maps": { + "version": "1.2.2", + "bundled": true, + "dev": true, + "requires": { + "debug": "3.1.0", + "istanbul-lib-coverage": "1.1.1", + "mkdirp": "0.5.1", + "rimraf": "2.6.2", + "source-map": "0.5.7" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "istanbul-reports": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "requires": { + "handlebars": "4.0.11" + } + }, + "js-tokens": { + "version": "3.0.2", + "bundled": true, + "dev": true + }, + "jsesc": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + }, + "lazy-cache": { + "version": "1.0.4", + "bundled": true, + "dev": true, + "optional": true + }, + "lcid": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "invert-kv": "1.0.0" + } + }, + "load-json-file": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "2.2.0", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "strip-bom": "2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "p-locate": "2.0.0", + "path-exists": "3.0.0" + }, + "dependencies": { + "path-exists": { + "version": "3.0.0", + "bundled": true, + "dev": true + } + } + }, + "lodash": { + "version": "4.17.4", + "bundled": true, + "dev": true + }, + "longest": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "loose-envify": { + "version": "1.3.1", + "bundled": true, + "dev": true, + "requires": { + "js-tokens": "3.0.2" + } + }, + "lru-cache": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + }, + "md5-hex": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "md5-o-matic": "0.1.1" + } + }, + "md5-o-matic": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "mem": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "mimic-fn": "1.1.0" + } + }, + "merge-source-map": { + "version": "1.0.4", + "bundled": true, + "dev": true, + "requires": { + "source-map": "0.5.7" + } + }, + "micromatch": { + "version": "2.3.11", + "bundled": true, + "dev": true, + "requires": { + "arr-diff": "2.0.0", + "array-unique": "0.2.1", + "braces": "1.8.5", + "expand-brackets": "0.1.5", + "extglob": "0.3.2", + "filename-regex": "2.0.1", + "is-extglob": "1.0.0", + "is-glob": "2.0.1", + "kind-of": "3.2.2", + "normalize-path": "2.1.1", + "object.omit": "2.0.1", + "parse-glob": "3.0.4", + "regex-cache": "0.4.4" + } + }, + "mimic-fn": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "normalize-package-data": { + "version": "2.4.0", + "bundled": true, + "dev": true, + "requires": { + "hosted-git-info": "2.5.0", + "is-builtin-module": "1.0.0", + "semver": "5.4.1", + "validate-npm-package-license": "3.0.1" + } + }, + "normalize-path": { + "version": "2.1.1", + "bundled": true, + "dev": true, + "requires": { + "remove-trailing-separator": "1.1.0" + } + }, + "npm-run-path": { + "version": "2.0.2", + "bundled": true, + "dev": true, + "requires": { + "path-key": "2.0.1" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true + }, + "object.omit": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "for-own": "0.1.5", + "is-extendable": "0.1.1" + } + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "optimist": { + "version": "0.6.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8", + "wordwrap": "0.0.3" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "os-locale": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "execa": "0.7.0", + "lcid": "1.0.0", + "mem": "1.1.0" + } + }, + "p-finally": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "p-limit": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "p-locate": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "p-limit": "1.1.0" + } + }, + "parse-glob": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "glob-base": "0.3.0", + "is-dotfile": "1.0.3", + "is-extglob": "1.0.0", + "is-glob": "2.0.1" + } + }, + "parse-json": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "requires": { + "error-ex": "1.3.1" + } + }, + "path-exists": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "pinkie-promise": "2.0.1" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "path-key": { + "version": "2.0.1", + "bundled": true, + "dev": true + }, + "path-parse": { + "version": "1.0.5", + "bundled": true, + "dev": true + }, + "path-type": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + } + }, + "pify": { + "version": "2.3.0", + "bundled": true, + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "bundled": true, + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "pinkie": "2.0.4" + } + }, + "pkg-dir": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "find-up": "1.1.2" + }, + "dependencies": { + "find-up": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" + } + } + } + }, + "preserve": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "pseudomap": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "randomatic": { + "version": "1.1.7", + "bundled": true, + "dev": true, + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "read-pkg": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "load-json-file": "1.1.0", + "normalize-package-data": "2.4.0", + "path-type": "1.1.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "find-up": "1.1.2", + "read-pkg": "1.1.0" + }, + "dependencies": { + "find-up": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" + } + } + } + }, + "regenerator-runtime": { + "version": "0.11.1", + "bundled": true, + "dev": true + }, + "regex-cache": { + "version": "0.4.4", + "bundled": true, + "dev": true, + "requires": { + "is-equal-shallow": "0.1.3" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "repeat-element": { + "version": "1.1.2", + "bundled": true, + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "bundled": true, + "dev": true + }, + "repeating": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-finite": "1.0.2" + } + }, + "require-directory": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "resolve-from": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "right-align": { + "version": "0.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "align-text": "0.1.4" + } + }, + "rimraf": { + "version": "2.6.2", + "bundled": true, + "dev": true, + "requires": { + "glob": "7.1.2" + } + }, + "semver": { + "version": "5.4.1", + "bundled": true, + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "requires": { + "shebang-regex": "1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true + }, + "slide": { + "version": "1.1.6", + "bundled": true, + "dev": true + }, + "source-map": { + "version": "0.5.7", + "bundled": true, + "dev": true + }, + "spawn-wrap": { + "version": "1.4.2", + "bundled": true, + "dev": true, + "requires": { + "foreground-child": "1.5.6", + "mkdirp": "0.5.1", + "os-homedir": "1.0.2", + "rimraf": "2.6.2", + "signal-exit": "3.0.2", + "which": "1.3.0" + } + }, + "spdx-correct": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "spdx-license-ids": "1.2.2" + } + }, + "spdx-expression-parse": { + "version": "1.0.4", + "bundled": true, + "dev": true + }, + "spdx-license-ids": { + "version": "1.2.2", + "bundled": true, + "dev": true + }, + "string-width": { + "version": "2.1.1", + "bundled": true, + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-bom": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-utf8": "0.2.1" + } + }, + "strip-eof": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "supports-color": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "test-exclude": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "requires": { + "arrify": "1.0.1", + "micromatch": "2.3.11", + "object-assign": "4.1.1", + "read-pkg-up": "1.0.1", + "require-main-filename": "1.0.1" + } + }, + "to-fast-properties": { + "version": "1.0.3", + "bundled": true, + "dev": true + }, + "trim-right": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "uglify-js": { + "version": "2.8.29", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "source-map": "0.5.7", + "uglify-to-browserify": "1.0.2", + "yargs": "3.10.0" + }, + "dependencies": { + "yargs": { + "version": "3.10.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "camelcase": "1.2.1", + "cliui": "2.1.0", + "decamelize": "1.2.0", + "window-size": "0.1.0" + } + } + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "validate-npm-package-license": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "spdx-correct": "1.0.2", + "spdx-expression-parse": "1.0.4" + } + }, + "which": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "isexe": "2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "window-size": { + "version": "0.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "wordwrap": { + "version": "0.0.3", + "bundled": true, + "dev": true + }, + "wrap-ansi": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1" + }, + "dependencies": { + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + } + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "write-file-atomic": { + "version": "1.3.4", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "slide": "1.1.6" + } + }, + "y18n": { + "version": "3.2.1", + "bundled": true, + "dev": true + }, + "yallist": { + "version": "2.1.2", + "bundled": true, + "dev": true + }, + "yargs": { + "version": "10.0.3", + "bundled": true, + "dev": true, + "requires": { + "cliui": "3.2.0", + "decamelize": "1.2.0", + "find-up": "2.1.0", + "get-caller-file": "1.0.2", + "os-locale": "2.1.0", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "2.1.1", + "which-module": "2.0.0", + "y18n": "3.2.1", + "yargs-parser": "8.0.0" + }, + "dependencies": { + "cliui": { + "version": "3.2.0", + "bundled": true, + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wrap-ansi": "2.1.0" + }, + "dependencies": { + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + } + } + } + } + }, + "yargs-parser": { + "version": "8.0.0", + "bundled": true, + "dev": true, + "requires": { + "camelcase": "4.1.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "bundled": true, + "dev": true + } + } + } + } + }, + "os-locale": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", + "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", + "dev": true, + "requires": { + "execa": "0.7.0", + "lcid": "1.0.0", + "mem": "1.1.0" + } + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + }, + "yargs": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-11.0.0.tgz", + "integrity": "sha512-Rjp+lMYQOWtgqojx1dEWorjCofi1YN7AoFvYV7b1gx/7dAAeuI4kN5SZiEvr0ZmsZTOpDRcCqrpI10L31tFkBw==", + "dev": true, + "requires": { + "cliui": "4.0.0", + "decamelize": "1.2.0", + "find-up": "2.1.0", + "get-caller-file": "1.0.2", + "os-locale": "2.1.0", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "2.1.1", + "which-module": "2.0.0", + "y18n": "3.2.1", + "yargs-parser": "9.0.2" + } + } + } + }, + "@ladjs/time-require": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@ladjs/time-require/-/time-require-0.1.4.tgz", + "integrity": "sha512-weIbJqTMfQ4r1YX85u54DKfjLZs2jwn1XZ6tIOP/pFgMwhIN5BAtaCp/1wn9DzyLsDR9tW0R2NIePcVJ45ivQQ==", + "dev": true, + "requires": { + "chalk": "0.4.0", + "date-time": "0.1.1", + "pretty-ms": "0.2.2", + "text-table": "0.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.0.0.tgz", + "integrity": "sha1-yxAt8cVvUSPquLZ817mAJ6AnkXg=", + "dev": true + }, + "chalk": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.4.0.tgz", + "integrity": "sha1-UZmj3c0MHv4jvAjBsCewYXbgxk8=", + "dev": true, + "requires": { + "ansi-styles": "1.0.0", + "has-color": "0.1.7", + "strip-ansi": "0.1.1" + } + }, + "pretty-ms": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-0.2.2.tgz", + "integrity": "sha1-2oeaaC/zOjcBEEbxPWJ/Z8c7hPY=", + "dev": true, + "requires": { + "parse-ms": "0.1.2" + } + }, + "strip-ansi": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.1.1.tgz", + "integrity": "sha1-OeipjQRNFQZgq+SmgIrPcLt7yZE=", + "dev": true + } + } + }, + "@mrmlnc/readdir-enhanced": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", + "integrity": "sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g==", + "requires": { + "call-me-maybe": "1.0.1", + "glob-to-regexp": "0.3.0" + } + }, + "@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" + }, + "@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" + }, + "@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "requires": { + "@protobufjs/aspromise": "1.1.2", + "@protobufjs/inquire": "1.1.0" + } + }, + "@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" + }, + "@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" + }, + "@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" + }, + "@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" + }, + "@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" + }, + "@sindresorhus/is": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", + "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==", + "dev": true + }, + "@sinonjs/formatio": { + "version": "2.0.0", + "resolved": "http://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz", + "integrity": "sha512-ls6CAMA6/5gG+O/IdsBcblvnd8qcO/l1TYoNeAzp3wcISOxlPXQEus0mLcdwazEkWjaBdaJ3TaxmNgCLWwvWzg==", + "dev": true, + "requires": { + "samsam": "1.3.0" + } + }, + "@types/long": { + "version": "3.0.32", + "resolved": "https://registry.npmjs.org/@types/long/-/long-3.0.32.tgz", + "integrity": "sha512-ZXyOOm83p7X8p3s0IYM3VeueNmHpkk/yMlP8CLeOnEcu6hIwPH7YjZBvhQkR0ZFS2DqZAxKtJ/M5fcuv3OU5BA==" + }, + "@types/node": { + "version": "8.9.5", + "resolved": "http://registry.npmjs.org/@types/node/-/node-8.9.5.tgz", + "integrity": "sha512-jRHfWsvyMtXdbhnz5CVHxaBgnV6duZnPlQuRSo/dm/GnmikNcmZhxIES4E9OZjUmQ8C+HCl4KJux+cXN/ErGDQ==" + }, + "acorn": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=" + }, + "acorn-es7-plugin": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/acorn-es7-plugin/-/acorn-es7-plugin-1.1.7.tgz", + "integrity": "sha1-8u4fMiipDurRJF+asZIusucdM2s=" + }, + "acorn-jsx": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", + "integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=", + "dev": true, + "requires": { + "acorn": "3.3.0" + }, + "dependencies": { + "acorn": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", + "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", + "dev": true + } + } + }, + "ajv": { + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", + "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "requires": { + "co": "4.6.0", + "fast-deep-equal": "1.1.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" + } + }, + "ajv-keywords": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.1.tgz", + "integrity": "sha1-YXmX/F9gV2iUxDX5QNgZ4TW4B2I=", + "dev": true + }, + "align-text": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", + "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "dev": true, + "requires": { + "kind-of": "3.2.2", + "longest": "1.0.1", + "repeat-string": "1.6.1" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "dev": true + }, + "ansi-align": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", + "integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=", + "dev": true, + "requires": { + "string-width": "2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "ansi-escapes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.0.0.tgz", + "integrity": "sha512-O/klc27mWNUigtv0F8NJWbLF00OcegQalkqKURWdosW08YZKi4m6CnSUSvIZG1otNJbTWhN01Hhz389DW7mvDQ==", + "dev": true + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + }, + "ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "anymatch": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", + "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", + "dev": true, + "requires": { + "micromatch": "2.3.11", + "normalize-path": "2.1.1" + }, + "dependencies": { + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "1.1.0" + } + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "1.8.2", + "preserve": "0.2.0", + "repeat-element": "1.1.2" + } + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "0.1.1" + } + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "2.0.0", + "array-unique": "0.2.1", + "braces": "1.8.5", + "expand-brackets": "0.1.5", + "extglob": "0.3.2", + "filename-regex": "2.0.1", + "is-extglob": "1.0.0", + "is-glob": "2.0.1", + "kind-of": "3.2.2", + "normalize-path": "2.1.1", + "object.omit": "2.0.1", + "parse-glob": "3.0.4", + "regex-cache": "0.4.4" + } + } + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "1.0.3" + } + }, + "argv": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/argv/-/argv-0.0.2.tgz", + "integrity": "sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas=", + "dev": true + }, + "arr-diff": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=" + }, + "arr-exclude": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/arr-exclude/-/arr-exclude-1.0.0.tgz", + "integrity": "sha1-38fC5VKicHI8zaBM8xKMjL/lxjE=", + "dev": true + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" + }, + "arr-union": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=" + }, + "array-differ": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", + "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", + "dev": true + }, + "array-filter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-1.0.0.tgz", + "integrity": "sha1-uveeYubvTCpMC4MSMtr/7CUfnYM=" + }, + "array-find": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/array-find/-/array-find-1.0.0.tgz", + "integrity": "sha1-bI4obRHtdoMn+OYuzuhzU8o+eLg=", + "dev": true + }, + "array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "dev": true + }, + "array-union": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", + "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "requires": { + "array-uniq": "1.0.3" + } + }, + "array-uniq": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", + "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=" + }, + "array-unique": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" + }, + "arrify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" + }, + "ascli": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ascli/-/ascli-1.0.1.tgz", + "integrity": "sha1-vPpZdKYvGOgcq660lzKrSoj5Brw=", + "requires": { + "colour": "0.7.1", + "optjs": "3.2.2" + } + }, + "asn1": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", + "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "assign-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" + }, + "async": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", + "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", + "requires": { + "lodash": "4.17.5" + } + }, + "async-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", + "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", + "dev": true + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "atob": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.0.3.tgz", + "integrity": "sha1-GcenYEc3dEaPILLS0DNyrX1Mv10=" + }, + "auto-bind": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-1.2.0.tgz", + "integrity": "sha512-Zw7pZp7tztvKnWWtoII4AmqH5a2PV3ZN5F0BPRTGcc1kpRm4b6QXQnPU7Znbl6BfPfqOVOV29g4JeMqZQaqqOA==", + "dev": true + }, + "ava": { + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/ava/-/ava-0.25.0.tgz", + "integrity": "sha512-4lGNJCf6xL8SvsKVEKxEE46se7JAUIAZoKHw9itTQuwcsydhpAMkBs5gOOiWiwt0JKNIuXWc2/r4r8ZdcNrBEw==", + "dev": true, + "requires": { + "@ava/babel-preset-stage-4": "1.1.0", + "@ava/babel-preset-transform-test-files": "3.0.0", + "@ava/write-file-atomic": "2.2.0", + "@concordance/react": "1.0.0", + "@ladjs/time-require": "0.1.4", + "ansi-escapes": "3.0.0", + "ansi-styles": "3.2.1", + "arr-flatten": "1.1.0", + "array-union": "1.0.2", + "array-uniq": "1.0.3", + "arrify": "1.0.1", + "auto-bind": "1.2.0", + "ava-init": "0.2.1", + "babel-core": "6.26.0", + "babel-generator": "6.26.1", + "babel-plugin-syntax-object-rest-spread": "6.13.0", + "bluebird": "3.5.1", + "caching-transform": "1.0.1", + "chalk": "2.3.2", + "chokidar": "1.7.0", + "clean-stack": "1.3.0", + "clean-yaml-object": "0.1.0", + "cli-cursor": "2.1.0", + "cli-spinners": "1.1.0", + "cli-truncate": "1.1.0", + "co-with-promise": "4.6.0", + "code-excerpt": "2.1.1", + "common-path-prefix": "1.0.0", + "concordance": "3.0.0", + "convert-source-map": "1.5.1", + "core-assert": "0.2.1", + "currently-unhandled": "0.4.1", + "debug": "3.1.0", + "dot-prop": "4.2.0", + "empower-core": "0.6.2", + "equal-length": "1.0.1", + "figures": "2.0.0", + "find-cache-dir": "1.0.0", + "fn-name": "2.0.1", + "get-port": "3.2.0", + "globby": "6.1.0", + "has-flag": "2.0.0", + "hullabaloo-config-manager": "1.1.1", + "ignore-by-default": "1.0.1", + "import-local": "0.1.1", + "indent-string": "3.2.0", + "is-ci": "1.1.0", + "is-generator-fn": "1.0.0", + "is-obj": "1.0.1", + "is-observable": "1.1.0", + "is-promise": "2.1.0", + "last-line-stream": "1.0.0", + "lodash.clonedeepwith": "4.5.0", + "lodash.debounce": "4.0.8", + "lodash.difference": "4.5.0", + "lodash.flatten": "4.4.0", + "loud-rejection": "1.6.0", + "make-dir": "1.2.0", + "matcher": "1.1.0", + "md5-hex": "2.0.0", + "meow": "3.7.0", + "ms": "2.0.0", + "multimatch": "2.1.0", + "observable-to-promise": "0.5.0", + "option-chain": "1.0.0", + "package-hash": "2.0.0", + "pkg-conf": "2.1.0", + "plur": "2.1.2", + "pretty-ms": "3.1.0", + "require-precompiled": "0.1.0", + "resolve-cwd": "2.0.0", + "safe-buffer": "5.1.1", + "semver": "5.5.0", + "slash": "1.0.0", + "source-map-support": "0.5.4", + "stack-utils": "1.0.1", + "strip-ansi": "4.0.0", + "strip-bom-buf": "1.0.0", + "supertap": "1.0.0", + "supports-color": "5.3.0", + "trim-off-newlines": "1.0.1", + "unique-temp-dir": "1.0.0", + "update-notifier": "2.3.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "globby": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", + "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", + "dev": true, + "requires": { + "array-union": "1.0.2", + "glob": "7.1.2", + "object-assign": "4.1.1", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "2.0.4" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "ava-init": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/ava-init/-/ava-init-0.2.1.tgz", + "integrity": "sha512-lXwK5LM+2g1euDRqW1mcSX/tqzY1QU7EjKpqayFPPtNRmbSYZ8RzPO5tqluTToijmtjp2M+pNpVdbcHssC4glg==", + "dev": true, + "requires": { + "arr-exclude": "1.0.0", + "execa": "0.7.0", + "has-yarn": "1.0.0", + "read-pkg-up": "2.0.0", + "write-pkg": "3.1.0" + } + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + }, + "aws4": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", + "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=" + }, + "axios": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", + "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", + "requires": { + "follow-redirects": "1.4.1", + "is-buffer": "1.1.6" + } + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "babel-core": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.0.tgz", + "integrity": "sha1-rzL3izGm/O8RnIew/Y2XU/A6C7g=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-generator": "6.26.1", + "babel-helpers": "6.24.1", + "babel-messages": "6.23.0", + "babel-register": "6.26.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "convert-source-map": "1.5.1", + "debug": "2.6.9", + "json5": "0.5.1", + "lodash": "4.17.5", + "minimatch": "3.0.4", + "path-is-absolute": "1.0.1", + "private": "0.1.8", + "slash": "1.0.0", + "source-map": "0.5.7" + } + }, + "babel-generator": { + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "dev": true, + "requires": { + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "detect-indent": "4.0.0", + "jsesc": "1.3.0", + "lodash": "4.17.5", + "source-map": "0.5.7", + "trim-right": "1.0.1" + }, + "dependencies": { + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", + "dev": true + } + } + }, + "babel-helper-builder-binary-assignment-operator-visitor": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", + "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", + "dev": true, + "requires": { + "babel-helper-explode-assignable-expression": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-call-delegate": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", + "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "6.24.1", + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-explode-assignable-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", + "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", + "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", + "dev": true, + "requires": { + "babel-helper-get-function-arity": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-get-function-arity": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", + "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-hoist-variables": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", + "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-regex": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", + "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.5" + } + }, + "babel-helper-remap-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", + "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helpers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", + "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-check-es2015-constants": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", + "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-espower": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/babel-plugin-espower/-/babel-plugin-espower-2.4.0.tgz", + "integrity": "sha512-/+SRpy7pKgTI28oEHfn1wkuM5QFAdRq8WNsOOih1dVrdV6A/WbNbRZyl0eX5eyDgtb0lOE27PeDFuCX2j8OxVg==", + "dev": true, + "requires": { + "babel-generator": "6.26.1", + "babylon": "6.18.0", + "call-matcher": "1.0.1", + "core-js": "2.5.3", + "espower-location-detector": "1.0.0", + "espurify": "1.7.0", + "estraverse": "4.2.0" + } + }, + "babel-plugin-syntax-async-functions": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", + "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", + "dev": true + }, + "babel-plugin-syntax-exponentiation-operator": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", + "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", + "dev": true + }, + "babel-plugin-syntax-object-rest-spread": { + "version": "6.13.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", + "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", + "dev": true + }, + "babel-plugin-syntax-trailing-function-commas": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", + "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=", + "dev": true + }, + "babel-plugin-transform-async-to-generator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", + "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", + "dev": true, + "requires": { + "babel-helper-remap-async-to-generator": "6.24.1", + "babel-plugin-syntax-async-functions": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-destructuring": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", + "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", + "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-commonjs": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz", + "integrity": "sha1-DYOUApt9xqvhqX7xgeAHWN0uXYo=", + "dev": true, + "requires": { + "babel-plugin-transform-strict-mode": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-parameters": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", + "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", + "dev": true, + "requires": { + "babel-helper-call-delegate": "6.24.1", + "babel-helper-get-function-arity": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-spread": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", + "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-sticky-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", + "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", + "dev": true, + "requires": { + "babel-helper-regex": "6.26.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-unicode-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", + "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", + "dev": true, + "requires": { + "babel-helper-regex": "6.26.0", + "babel-runtime": "6.26.0", + "regexpu-core": "2.0.0" + } + }, + "babel-plugin-transform-exponentiation-operator": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", + "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", + "dev": true, + "requires": { + "babel-helper-builder-binary-assignment-operator-visitor": "6.24.1", + "babel-plugin-syntax-exponentiation-operator": "6.13.0", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-strict-mode": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", + "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-register": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", + "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "dev": true, + "requires": { + "babel-core": "6.26.0", + "babel-runtime": "6.26.0", + "core-js": "2.5.3", + "home-or-tmp": "2.0.0", + "lodash": "4.17.5", + "mkdirp": "0.5.1", + "source-map-support": "0.4.18" + }, + "dependencies": { + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "0.5.7" + } + } + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "2.5.3", + "regenerator-runtime": "0.11.1" + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "lodash": "4.17.5" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "debug": "2.6.9", + "globals": "9.18.0", + "invariant": "2.2.4", + "lodash": "4.17.5" + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "esutils": "2.0.2", + "lodash": "4.17.5", + "to-fast-properties": "1.0.3" + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" + }, + "base": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", + "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", + "requires": { + "cache-base": "1.0.1", + "class-utils": "0.3.6", + "component-emitter": "1.2.1", + "define-property": "1.0.0", + "isobject": "3.0.1", + "mixin-deep": "1.3.1", + "pascalcase": "0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "requires": { + "is-descriptor": "1.0.2" + } + } + } + }, + "base64url": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/base64url/-/base64url-2.0.0.tgz", + "integrity": "sha1-6sFuA+oUOO/5Qj1puqNiYu0fcLs=" + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", + "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + } + }, + "binary-extensions": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", + "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=", + "dev": true + }, + "bluebird": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", + "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==", + "dev": true + }, + "boom": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", + "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", + "requires": { + "hoek": "4.2.1" + } + }, + "boxen": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz", + "integrity": "sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==", + "dev": true, + "requires": { + "ansi-align": "2.0.0", + "camelcase": "4.1.0", + "chalk": "2.3.2", + "cli-boxes": "1.0.0", + "string-width": "2.1.1", + "term-size": "1.2.0", + "widest-line": "2.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.1.tgz", + "integrity": "sha512-SO5lYHA3vO6gz66erVvedSCkp7AKWdv6VcQ2N4ysXfPxdAlxAMMAdwegGGcv1Bqwm7naF1hNdk5d6AAIEHV2nQ==", + "requires": { + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "define-property": "1.0.0", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "kind-of": "6.0.2", + "repeat-element": "1.1.2", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "browser-stdout": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", + "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", + "dev": true + }, + "buf-compare": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buf-compare/-/buf-compare-1.0.1.tgz", + "integrity": "sha1-/vKNqLgROgoNtEMLC2Rntpcws0o=", + "dev": true + }, + "buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "bytebuffer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz", + "integrity": "sha1-WC7qSxqHO20CCkjVjfhfC7ps/d0=", + "requires": { + "long": "3.2.0" + }, + "dependencies": { + "long": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", + "integrity": "sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s=" + } + } + }, + "cache-base": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", + "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", + "requires": { + "collection-visit": "1.0.0", + "component-emitter": "1.2.1", + "get-value": "2.0.6", + "has-value": "1.0.0", + "isobject": "3.0.1", + "set-value": "2.0.0", + "to-object-path": "0.3.0", + "union-value": "1.0.0", + "unset-value": "1.0.0" + } + }, + "cacheable-request": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz", + "integrity": "sha1-DYCIAbY0KtM8kd+dC0TcCbkeXD0=", + "dev": true, + "requires": { + "clone-response": "1.0.2", + "get-stream": "3.0.0", + "http-cache-semantics": "3.8.1", + "keyv": "3.0.0", + "lowercase-keys": "1.0.0", + "normalize-url": "2.0.1", + "responselike": "1.0.2" + } + }, + "caching-transform": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-1.0.1.tgz", + "integrity": "sha1-bb2y8g+Nj7znnz6U6dF0Lc31wKE=", + "dev": true, + "requires": { + "md5-hex": "1.3.0", + "mkdirp": "0.5.1", + "write-file-atomic": "1.3.4" + }, + "dependencies": { + "md5-hex": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-1.3.0.tgz", + "integrity": "sha1-0sSv6YPENwZiF5uMrRRSGRNQRsQ=", + "dev": true, + "requires": { + "md5-o-matic": "0.1.1" + } + }, + "write-file-atomic": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.3.4.tgz", + "integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "slide": "1.1.6" + } + } + } + }, + "call-matcher": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-matcher/-/call-matcher-1.0.1.tgz", + "integrity": "sha1-UTTQd5hPcSpU2tPL9i3ijc5BbKg=", + "dev": true, + "requires": { + "core-js": "2.5.3", + "deep-equal": "1.0.1", + "espurify": "1.7.0", + "estraverse": "4.2.0" + } + }, + "call-me-maybe": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", + "integrity": "sha1-JtII6onje1y95gJQoV8DHBak1ms=" + }, + "call-signature": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/call-signature/-/call-signature-0.0.2.tgz", + "integrity": "sha1-qEq8glpV70yysCi9dOIFpluaSZY=" + }, + "caller-path": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", + "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", + "dev": true, + "requires": { + "callsites": "0.2.0" + } + }, + "callsites": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz", + "integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=", + "dev": true + }, + "camelcase": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", + "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=" + }, + "camelcase-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", + "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", + "dev": true, + "requires": { + "camelcase": "2.1.1", + "map-obj": "1.0.1" + } + }, + "capture-stack-trace": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz", + "integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=", + "dev": true + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + }, + "catharsis": { + "version": "0.8.9", + "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.8.9.tgz", + "integrity": "sha1-mMyJDKZS3S7w5ws3klMQ/56Q/Is=", + "dev": true, + "requires": { + "underscore-contrib": "0.3.0" + } + }, + "center-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", + "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", + "dev": true, + "optional": true, + "requires": { + "align-text": "0.1.4", + "lazy-cache": "1.0.4" + } + }, + "chalk": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", + "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "dev": true, + "requires": { + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" + } + }, + "chardet": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.4.2.tgz", + "integrity": "sha1-tUc7M9yXxCTl2Y3IfVXU2KKci/I=", + "dev": true + }, + "chokidar": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", + "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", + "dev": true, + "requires": { + "anymatch": "1.3.2", + "async-each": "1.0.1", + "fsevents": "1.1.3", + "glob-parent": "2.0.0", + "inherits": "2.0.3", + "is-binary-path": "1.0.1", + "is-glob": "2.0.1", + "path-is-absolute": "1.0.1", + "readdirp": "2.1.0" + }, + "dependencies": { + "glob-parent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "dev": true, + "requires": { + "is-glob": "2.0.1" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + } + } + }, + "ci-info": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.1.3.tgz", + "integrity": "sha512-SK/846h/Rcy8q9Z9CAwGBLfCJ6EkjJWdpelWDufQpqVDYq2Wnnv8zlSO6AMQap02jvhVruKKpEtQOufo3pFhLg==", + "dev": true + }, + "circular-json": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz", + "integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==", + "dev": true + }, + "class-utils": { + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", + "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", + "requires": { + "arr-union": "3.1.0", + "define-property": "0.2.5", + "isobject": "3.0.1", + "static-extend": "0.1.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + } + } + }, + "clean-stack": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-1.3.0.tgz", + "integrity": "sha1-noIVAa6XmYbEax1m0tQy2y/UrjE=", + "dev": true + }, + "clean-yaml-object": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/clean-yaml-object/-/clean-yaml-object-0.1.0.tgz", + "integrity": "sha1-Y/sRDcLOGoTcIfbZM0h20BCui2g=", + "dev": true + }, + "cli-boxes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", + "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=", + "dev": true + }, + "cli-cursor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", + "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", + "dev": true, + "requires": { + "restore-cursor": "2.0.0" + } + }, + "cli-spinners": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-1.1.0.tgz", + "integrity": "sha1-8YR7FohE2RemceudFH499JfJDQY=", + "dev": true + }, + "cli-truncate": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-1.1.0.tgz", + "integrity": "sha512-bAtZo0u82gCfaAGfSNxUdTI9mNyza7D8w4CVCcaOsy7sgwDzvx6ekr6cuWJqY3UGzgnQ1+4wgENup5eIhgxEYA==", + "dev": true, + "requires": { + "slice-ansi": "1.0.0", + "string-width": "2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "cli-width": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", + "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", + "dev": true + }, + "cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wrap-ansi": "2.1.0" + } + }, + "clone-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", + "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", + "dev": true, + "requires": { + "mimic-response": "1.0.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" + }, + "co-with-promise": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co-with-promise/-/co-with-promise-4.6.0.tgz", + "integrity": "sha1-QT59tvWJOmC5Qs9JLEvsk9tBWrc=", + "dev": true, + "requires": { + "pinkie-promise": "1.0.0" + } + }, + "code-excerpt": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-2.1.1.tgz", + "integrity": "sha512-tJLhH3EpFm/1x7heIW0hemXJTUU5EWl2V0EIX558jp05Mt1U6DVryCgkp3l37cxqs+DNbNgxG43SkwJXpQ14Jw==", + "dev": true, + "requires": { + "convert-to-spaces": "1.0.2" + } + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" + }, + "codecov": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.0.0.tgz", + "integrity": "sha1-wnO4xPEpRXI+jcnSWAPYk0Pl8o4=", + "dev": true, + "requires": { + "argv": "0.0.2", + "request": "2.81.0", + "urlgrey": "0.4.4" + }, + "dependencies": { + "ajv": { + "version": "4.11.8", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", + "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "dev": true, + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + } + }, + "assert-plus": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", + "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", + "dev": true + }, + "aws-sign2": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", + "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", + "dev": true + }, + "boom": { + "version": "2.10.1", + "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", + "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", + "dev": true, + "requires": { + "hoek": "2.16.3" + } + }, + "cryptiles": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", + "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", + "dev": true, + "requires": { + "boom": "2.10.1" + } + }, + "form-data": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", + "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", + "dev": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.6", + "mime-types": "2.1.18" + } + }, + "har-schema": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", + "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=", + "dev": true + }, + "har-validator": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", + "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", + "dev": true, + "requires": { + "ajv": "4.11.8", + "har-schema": "1.0.5" + } + }, + "hawk": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", + "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", + "dev": true, + "requires": { + "boom": "2.10.1", + "cryptiles": "2.0.5", + "hoek": "2.16.3", + "sntp": "1.0.9" + } + }, + "hoek": { + "version": "2.16.3", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", + "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", + "dev": true + }, + "http-signature": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", + "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", + "dev": true, + "requires": { + "assert-plus": "0.2.0", + "jsprim": "1.4.1", + "sshpk": "1.14.1" + } + }, + "performance-now": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", + "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=", + "dev": true + }, + "qs": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", + "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", + "dev": true + }, + "request": { + "version": "2.81.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", + "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", + "dev": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.6", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "4.2.1", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.18", + "oauth-sign": "0.8.2", + "performance-now": "0.2.0", + "qs": "6.4.0", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.4", + "tunnel-agent": "0.6.0", + "uuid": "3.2.1" + } + }, + "sntp": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", + "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", + "dev": true, + "requires": { + "hoek": "2.16.3" + } + } + } + }, + "collection-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "requires": { + "map-visit": "1.0.0", + "object-visit": "1.0.1" + } + }, + "color-convert": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", + "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "colors": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", + "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", + "dev": true + }, + "colour": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/colour/-/colour-0.7.1.tgz", + "integrity": "sha1-nLFpkX7F0SwHNtPoaFdG3xyt93g=" + }, + "combined-stream": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", + "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "requires": { + "delayed-stream": "1.0.0" + } + }, + "commander": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", + "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", + "dev": true + }, + "common-path-prefix": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-1.0.0.tgz", + "integrity": "sha1-zVL28HEuC6q5fW+XModPIvR3UsA=", + "dev": true + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true + }, + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" + }, + "concat-stream": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.1.tgz", + "integrity": "sha512-gslSSJx03QKa59cIKqeJO9HQ/WZMotvYJCuaUULrLpjj8oG40kV2Z+gz82pVxlTkOADi4PJxQPPfhl1ELYrrXw==", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.5", + "typedarray": "0.0.6" + } + }, + "concordance": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/concordance/-/concordance-3.0.0.tgz", + "integrity": "sha512-CZBzJ3/l5QJjlZM20WY7+5GP5pMTw+1UEbThcpMw8/rojsi5sBCiD8ZbBLtD+jYpRGAkwuKuqk108c154V9eyQ==", + "dev": true, + "requires": { + "date-time": "2.1.0", + "esutils": "2.0.2", + "fast-diff": "1.1.2", + "function-name-support": "0.2.0", + "js-string-escape": "1.0.1", + "lodash.clonedeep": "4.5.0", + "lodash.flattendeep": "4.4.0", + "lodash.merge": "4.6.1", + "md5-hex": "2.0.0", + "semver": "5.5.0", + "well-known-symbols": "1.0.0" + }, + "dependencies": { + "date-time": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/date-time/-/date-time-2.1.0.tgz", + "integrity": "sha512-/9+C44X7lot0IeiyfgJmETtRMhBidBYM2QFFIkGa0U1k+hSyY87Nw7PY3eDqpvCBm7I3WCSfPeZskW/YYq6m4g==", + "dev": true, + "requires": { + "time-zone": "1.0.0" + } + } + } + }, + "configstore": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz", + "integrity": "sha512-5oNkD/L++l0O6xGXxb1EWS7SivtjfGQlRyxJsYgE0Z495/L81e2h4/d3r969hoPXuFItzNOKMtsXgYG4c7dYvw==", + "dev": true, + "requires": { + "dot-prop": "4.2.0", + "graceful-fs": "4.1.11", + "make-dir": "1.2.0", + "unique-string": "1.0.0", + "write-file-atomic": "2.3.0", + "xdg-basedir": "3.0.0" + } + }, + "convert-source-map": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", + "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", + "dev": true + }, + "convert-to-spaces": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-1.0.2.tgz", + "integrity": "sha1-fj5Iu+bZl7FBfdyihoIEtNPYVxU=", + "dev": true + }, + "cookiejar": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.1.tgz", + "integrity": "sha1-Qa1XsbVVlR7BcUEqgZQrHoIA00o=", + "dev": true + }, + "copy-descriptor": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" + }, + "core-assert": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/core-assert/-/core-assert-0.2.1.tgz", + "integrity": "sha1-+F4s+b/tKPdzzIs/pcW2m9wC/j8=", + "dev": true, + "requires": { + "buf-compare": "1.0.1", + "is-error": "2.2.1" + } + }, + "core-js": { + "version": "2.5.3", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.3.tgz", + "integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4=" + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "create-error-class": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", + "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", + "dev": true, + "requires": { + "capture-stack-trace": "1.0.0" + } + }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "dev": true, + "requires": { + "lru-cache": "4.1.2", + "shebang-command": "1.2.0", + "which": "1.3.0" + } + }, + "cryptiles": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", + "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", + "requires": { + "boom": "5.2.0" + }, + "dependencies": { + "boom": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", + "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", + "requires": { + "hoek": "4.2.1" + } + } + } + }, + "crypto-random-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", + "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=", + "dev": true + }, + "currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", + "dev": true, + "requires": { + "array-find-index": "1.0.2" + } + }, + "d": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "dev": true, + "requires": { + "es5-ext": "0.10.41" + } + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "requires": { + "assert-plus": "1.0.0" + } + }, + "date-time": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/date-time/-/date-time-0.1.1.tgz", + "integrity": "sha1-7S9tk9l5DOL9ZtW1/z7dW7y/Owc=", + "dev": true + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" + }, + "decode-uri-component": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" + }, + "decompress-response": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", + "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", + "dev": true, + "requires": { + "mimic-response": "1.0.0" + } + }, + "deep-equal": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", + "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", + "dev": true + }, + "deep-extend": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz", + "integrity": "sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=", + "dev": true + }, + "deep-is": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", + "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", + "dev": true + }, + "define-properties": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", + "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", + "requires": { + "foreach": "2.0.5", + "object-keys": "1.0.11" + } + }, + "define-property": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", + "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", + "requires": { + "is-descriptor": "1.0.2", + "isobject": "3.0.1" + } + }, + "del": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", + "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", + "dev": true, + "requires": { + "globby": "5.0.0", + "is-path-cwd": "1.0.0", + "is-path-in-cwd": "1.0.0", + "object-assign": "4.1.1", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "rimraf": "2.6.2" + }, + "dependencies": { + "globby": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", + "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", + "dev": true, + "requires": { + "array-union": "1.0.2", + "arrify": "1.0.1", + "glob": "7.1.2", + "object-assign": "4.1.1", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "2.0.4" + } + } + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "dev": true, + "requires": { + "repeating": "2.0.1" + } + }, + "diff": { + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", + "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", + "dev": true + }, + "diff-match-patch": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.0.tgz", + "integrity": "sha1-HMPIOkkNZ/ldkeOfatHy4Ia2MEg=" + }, + "dir-glob": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.0.0.tgz", + "integrity": "sha512-37qirFDz8cA5fimp9feo43fSuRo2gHwaIn6dXL8Ber1dGwUosDrGZeCCXq57WnIqE4aQ+u3eQZzsk1yOzhdwag==", + "requires": { + "arrify": "1.0.1", + "path-type": "3.0.0" + } + }, + "doctrine": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", + "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", + "dev": true, + "requires": { + "esutils": "2.0.2" + } + }, + "dom-serializer": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", + "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", + "dev": true, + "requires": { + "domelementtype": "1.1.3", + "entities": "1.1.1" + }, + "dependencies": { + "domelementtype": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", + "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=", + "dev": true + } + } + }, + "domelementtype": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz", + "integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=", + "dev": true + }, + "domhandler": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.1.tgz", + "integrity": "sha1-iS5HAAqZvlW783dP/qBWHYh5wlk=", + "dev": true, + "requires": { + "domelementtype": "1.3.0" + } + }, + "domutils": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", + "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", + "dev": true, + "requires": { + "dom-serializer": "0.1.0", + "domelementtype": "1.3.0" + } + }, + "dot-prop": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", + "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", + "dev": true, + "requires": { + "is-obj": "1.0.1" + } + }, + "duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", + "dev": true + }, + "duplexify": { + "version": "3.5.4", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.5.4.tgz", + "integrity": "sha512-JzYSLYMhoVVBe8+mbHQ4KgpvHpm0DZpJuL8PY93Vyv1fW7jYJ90LoXa1di/CVbJM+TgMs91rbDapE/RNIfnJsA==", + "requires": { + "end-of-stream": "1.4.1", + "inherits": "2.0.3", + "readable-stream": "2.3.5", + "stream-shift": "1.0.0" + } + }, + "eastasianwidth": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.1.1.tgz", + "integrity": "sha1-RNZW3p2kFWlEZzNTZfsxR7hXK3w=" + }, + "ecc-jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", + "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "ecdsa-sig-formatter": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.9.tgz", + "integrity": "sha1-S8kmJ07Dtau1AW5+HWCSGsJisqE=", + "requires": { + "base64url": "2.0.0", + "safe-buffer": "5.1.1" + } + }, + "empower": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/empower/-/empower-1.2.3.tgz", + "integrity": "sha1-bw2nNEf07dg4/sXGAxOoi6XLhSs=", + "requires": { + "core-js": "2.5.3", + "empower-core": "0.6.2" + } + }, + "empower-assert": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/empower-assert/-/empower-assert-1.0.1.tgz", + "integrity": "sha1-MeMQq8BluqfDoEh+a+W7zGXzwd4=", + "dev": true, + "requires": { + "estraverse": "4.2.0" + } + }, + "empower-core": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/empower-core/-/empower-core-0.6.2.tgz", + "integrity": "sha1-Wt71ZgiOMfuoC6CjbfR9cJQWkUQ=", + "requires": { + "call-signature": "0.0.2", + "core-js": "2.5.3" + } + }, + "end-of-stream": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", + "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", + "requires": { + "once": "1.4.0" + } + }, + "entities": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz", + "integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA=", + "dev": true + }, + "equal-length": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/equal-length/-/equal-length-1.0.1.tgz", + "integrity": "sha1-IcoRLUirJLTh5//A5TOdMf38J0w=", + "dev": true + }, + "error-ex": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", + "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "dev": true, + "requires": { + "is-arrayish": "0.2.1" + } + }, + "es5-ext": { + "version": "0.10.41", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.41.tgz", + "integrity": "sha512-MYK02wXfwTMie5TEJWPolgOsXEmz7wKCQaGzgmRjZOoV6VLG8I5dSv2bn6AOClXhK64gnSQTQ9W9MKvx87J4gw==", + "dev": true, + "requires": { + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1", + "next-tick": "1.0.0" + } + }, + "es6-error": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", + "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", + "dev": true + }, + "es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41", + "es6-symbol": "3.1.1" + } + }, + "es6-map": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", + "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41", + "es6-iterator": "2.0.3", + "es6-set": "0.1.5", + "es6-symbol": "3.1.1", + "event-emitter": "0.3.5" + } + }, + "es6-set": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", + "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1", + "event-emitter": "0.3.5" + } + }, + "es6-symbol": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", + "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41" + } + }, + "es6-weak-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", + "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1" + } + }, + "escallmatch": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/escallmatch/-/escallmatch-1.5.0.tgz", + "integrity": "sha1-UAmdhugJGwkt+N37w/mm+wWgJNA=", + "dev": true, + "requires": { + "call-matcher": "1.0.1", + "esprima": "2.7.3" + }, + "dependencies": { + "esprima": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", + "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", + "dev": true + } + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "escodegen": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.9.1.tgz", + "integrity": "sha512-6hTjO1NAWkHnDk3OqQ4YrCuwwmGHL9S3nPlzBOUG/R44rda3wLNrfvQ5fkSGjyhHFKM7ALPKcKGrwvCLe0lC7Q==", + "dev": true, + "requires": { + "esprima": "3.1.3", + "estraverse": "4.2.0", + "esutils": "2.0.2", + "optionator": "0.8.2", + "source-map": "0.6.1" + }, + "dependencies": { + "esprima": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", + "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "optional": true + } + } + }, + "escope": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", + "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", + "dev": true, + "requires": { + "es6-map": "0.1.5", + "es6-weak-map": "2.0.2", + "esrecurse": "4.2.1", + "estraverse": "4.2.0" + } + }, + "eslint": { + "version": "4.19.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.19.0.tgz", + "integrity": "sha512-r83L5CuqaocDvfwdojbz68b6tCUk8KJkqfppO+gmSAQqYCzTr0bCSMu6A6yFCLKG65j5eKcKUw4Cw4Yl4gfWkg==", + "dev": true, + "requires": { + "ajv": "5.5.2", + "babel-code-frame": "6.26.0", + "chalk": "2.3.2", + "concat-stream": "1.6.1", + "cross-spawn": "5.1.0", + "debug": "3.1.0", + "doctrine": "2.1.0", + "eslint-scope": "3.7.1", + "eslint-visitor-keys": "1.0.0", + "espree": "3.5.4", + "esquery": "1.0.0", + "esutils": "2.0.2", + "file-entry-cache": "2.0.0", + "functional-red-black-tree": "1.0.1", + "glob": "7.1.2", + "globals": "11.3.0", + "ignore": "3.3.7", + "imurmurhash": "0.1.4", + "inquirer": "3.3.0", + "is-resolvable": "1.1.0", + "js-yaml": "3.11.0", + "json-stable-stringify-without-jsonify": "1.0.1", + "levn": "0.3.0", + "lodash": "4.17.5", + "minimatch": "3.0.4", + "mkdirp": "0.5.1", + "natural-compare": "1.4.0", + "optionator": "0.8.2", + "path-is-inside": "1.0.2", + "pluralize": "7.0.0", + "progress": "2.0.0", + "regexpp": "1.0.1", + "require-uncached": "1.0.3", + "semver": "5.5.0", + "strip-ansi": "4.0.0", + "strip-json-comments": "2.0.1", + "table": "4.0.2", + "text-table": "0.2.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "globals": { + "version": "11.3.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.3.0.tgz", + "integrity": "sha512-kkpcKNlmQan9Z5ZmgqKH/SMbSmjxQ7QjyNqfXVc8VJcoBV2UEg+sxQD15GQofGRh2hfpwUb70VC31DR7Rq5Hdw==", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "eslint-config-prettier": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-2.9.0.tgz", + "integrity": "sha512-ag8YEyBXsm3nmOv1Hz991VtNNDMRa+MNy8cY47Pl4bw6iuzqKbJajXdqUpiw13STdLLrznxgm1hj9NhxeOYq0A==", + "dev": true, + "requires": { + "get-stdin": "5.0.1" + }, + "dependencies": { + "get-stdin": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", + "integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=", + "dev": true + } + } + }, + "eslint-plugin-node": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-6.0.1.tgz", + "integrity": "sha512-Q/Cc2sW1OAISDS+Ji6lZS2KV4b7ueA/WydVWd1BECTQwVvfQy5JAi3glhINoKzoMnfnuRgNP+ZWKrGAbp3QDxw==", + "dev": true, + "requires": { + "ignore": "3.3.7", + "minimatch": "3.0.4", + "resolve": "1.5.0", + "semver": "5.5.0" + }, + "dependencies": { + "resolve": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz", + "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==", + "dev": true, + "requires": { + "path-parse": "1.0.5" + } + } + } + }, + "eslint-plugin-prettier": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.0.tgz", + "integrity": "sha512-floiaI4F7hRkTrFe8V2ItOK97QYrX75DjmdzmVITZoAP6Cn06oEDPQRsO6MlHEP/u2SxI3xQ52Kpjw6j5WGfeQ==", + "dev": true, + "requires": { + "fast-diff": "1.1.2", + "jest-docblock": "21.2.0" + } + }, + "eslint-scope": { + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-3.7.1.tgz", + "integrity": "sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=", + "dev": true, + "requires": { + "esrecurse": "4.2.1", + "estraverse": "4.2.0" + } + }, + "eslint-visitor-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", + "integrity": "sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ==", + "dev": true + }, + "espower": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/espower/-/espower-2.1.0.tgz", + "integrity": "sha1-zh7bPZhwKEH99ZbRy46FvcSujkg=", + "dev": true, + "requires": { + "array-find": "1.0.0", + "escallmatch": "1.5.0", + "escodegen": "1.9.1", + "escope": "3.6.0", + "espower-location-detector": "1.0.0", + "espurify": "1.7.0", + "estraverse": "4.2.0", + "source-map": "0.5.7", + "type-name": "2.0.2", + "xtend": "4.0.1" + } + }, + "espower-loader": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/espower-loader/-/espower-loader-1.2.2.tgz", + "integrity": "sha1-7bRsPFmga6yOpzppXIblxaC8gto=", + "dev": true, + "requires": { + "convert-source-map": "1.5.1", + "espower-source": "2.2.0", + "minimatch": "3.0.4", + "source-map-support": "0.4.18", + "xtend": "4.0.1" + }, + "dependencies": { + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "0.5.7" + } + } + } + }, + "espower-location-detector": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/espower-location-detector/-/espower-location-detector-1.0.0.tgz", + "integrity": "sha1-oXt+zFnTDheeK+9z+0E3cEyzMbU=", + "dev": true, + "requires": { + "is-url": "1.2.2", + "path-is-absolute": "1.0.1", + "source-map": "0.5.7", + "xtend": "4.0.1" + } + }, + "espower-source": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/espower-source/-/espower-source-2.2.0.tgz", + "integrity": "sha1-fgBSVa5HtcE2RIZEs/PYAtUD91I=", + "dev": true, + "requires": { + "acorn": "5.5.3", + "acorn-es7-plugin": "1.1.7", + "convert-source-map": "1.5.1", + "empower-assert": "1.0.1", + "escodegen": "1.9.1", + "espower": "2.1.0", + "estraverse": "4.2.0", + "merge-estraverse-visitors": "1.0.0", + "multi-stage-sourcemap": "0.2.1", + "path-is-absolute": "1.0.1", + "xtend": "4.0.1" + }, + "dependencies": { + "acorn": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", + "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "dev": true + } + } + }, + "espree": { + "version": "3.5.4", + "resolved": "https://registry.npmjs.org/espree/-/espree-3.5.4.tgz", + "integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==", + "dev": true, + "requires": { + "acorn": "5.5.3", + "acorn-jsx": "3.0.1" + }, + "dependencies": { + "acorn": { + "version": "5.5.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", + "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "dev": true + } + } + }, + "esprima": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", + "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==", + "dev": true + }, + "espurify": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/espurify/-/espurify-1.7.0.tgz", + "integrity": "sha1-HFz2y8zDLm9jk4C9T5kfq5up0iY=", + "requires": { + "core-js": "2.5.3" + } + }, + "esquery": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.0.tgz", + "integrity": "sha1-z7qLV9f7qT8XKYqKAGoEzaE9gPo=", + "dev": true, + "requires": { + "estraverse": "4.2.0" + } + }, + "esrecurse": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", + "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", + "dev": true, + "requires": { + "estraverse": "4.2.0" + } + }, + "estraverse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", + "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=" + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true + }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.41" + } + }, + "execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", + "dev": true, + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + } + }, + "expand-brackets": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "requires": { + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + } + } + }, + "expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "dev": true, + "requires": { + "fill-range": "2.2.3" + }, + "dependencies": { + "fill-range": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", + "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", + "dev": true, + "requires": { + "is-number": "2.1.0", + "isobject": "2.1.0", + "randomatic": "1.1.7", + "repeat-element": "1.1.2", + "repeat-string": "1.6.1" + } + }, + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "extend": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", + "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=" + }, + "extend-shallow": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, + "external-editor": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.1.0.tgz", + "integrity": "sha512-E44iT5QVOUJBKij4IIV3uvxuNlbKS38Tw1HiupxEIHPv9qtC2PrDYohbXV5U+1jnfIXttny8gUhj+oZvflFlzA==", + "dev": true, + "requires": { + "chardet": "0.4.2", + "iconv-lite": "0.4.19", + "tmp": "0.0.33" + } + }, + "extglob": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", + "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", + "requires": { + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + }, + "fast-deep-equal": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", + "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=" + }, + "fast-diff": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.2.tgz", + "integrity": "sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig==", + "dev": true + }, + "fast-glob": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-2.2.0.tgz", + "integrity": "sha512-4F75PTznkNtSKs2pbhtBwRkw8sRwa7LfXx5XaQJOe4IQ6yTjceLDTwM5gj1s80R2t/5WeDC1gVfm3jLE+l39Tw==", + "requires": { + "@mrmlnc/readdir-enhanced": "2.2.1", + "glob-parent": "3.1.0", + "is-glob": "4.0.0", + "merge2": "1.2.1", + "micromatch": "3.1.9" + } + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "dev": true + }, + "figures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", + "dev": true, + "requires": { + "escape-string-regexp": "1.0.5" + } + }, + "file-entry-cache": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz", + "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", + "dev": true, + "requires": { + "flat-cache": "1.3.0", + "object-assign": "4.1.1" + } + }, + "filename-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", + "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", + "dev": true + }, + "fill-keys": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/fill-keys/-/fill-keys-1.0.2.tgz", + "integrity": "sha1-mo+jb06K1jTjv2tPPIiCVRRS6yA=", + "dev": true, + "requires": { + "is-object": "1.0.1", + "merge-descriptors": "1.0.1" + } + }, + "fill-range": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "requires": { + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "find-cache-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz", + "integrity": "sha1-kojj6ePMN0hxfTnq3hfPcfww7m8=", + "dev": true, + "requires": { + "commondir": "1.0.1", + "make-dir": "1.2.0", + "pkg-dir": "2.0.0" + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "flat-cache": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.0.tgz", + "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=", + "dev": true, + "requires": { + "circular-json": "0.3.3", + "del": "2.2.2", + "graceful-fs": "4.1.11", + "write": "0.2.1" + } + }, + "fn-name": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fn-name/-/fn-name-2.0.1.tgz", + "integrity": "sha1-UhTXU3pNBqSjAcDMJi/rhBiAAuc=", + "dev": true + }, + "follow-redirects": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.4.1.tgz", + "integrity": "sha512-uxYePVPogtya1ktGnAAXOacnbIuRMB4dkvqeNz2qTtTQsuzSfbDolV+wMMKxAmCx0bLgAKLbBOkjItMbbkR1vg==", + "requires": { + "debug": "3.1.0" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "requires": { + "ms": "2.0.0" + } + } + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=" + }, + "for-own": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", + "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", + "dev": true, + "requires": { + "for-in": "1.0.2" + } + }, + "foreach": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", + "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=" + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + }, + "form-data": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", + "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.6", + "mime-types": "2.1.18" + } + }, + "formidable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.0.tgz", + "integrity": "sha512-hr9aT30rAi7kf8Q2aaTpSP7xGMhlJ+MdrUDVZs3rxbD3L/K46A86s2VY7qC2D2kGYGBtiT/3j6wTx1eeUq5xAQ==", + "dev": true + }, + "fragment-cache": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "requires": { + "map-cache": "0.2.2" + } + }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.5" + } + }, + "fs-extra": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz", + "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "jsonfile": "4.0.0", + "universalify": "0.1.1" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" + }, + "fsevents": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz", + "integrity": "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==", + "dev": true, + "optional": true, + "requires": { + "nan": "2.10.0", + "node-pre-gyp": "0.6.39" + }, + "dependencies": { + "abbrev": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "ajv": { + "version": "4.11.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + } + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "aproba": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.2.9" + } + }, + "asn1": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "optional": true + }, + "assert-plus": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "asynckit": { + "version": "0.4.0", + "bundled": true, + "dev": true, + "optional": true + }, + "aws-sign2": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "aws4": { + "version": "1.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "balanced-match": { + "version": "0.4.2", + "bundled": true, + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + } + }, + "block-stream": { + "version": "0.0.9", + "bundled": true, + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, + "boom": { + "version": "2.10.1", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.16.3" + } + }, + "brace-expansion": { + "version": "1.1.7", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "0.4.2", + "concat-map": "0.0.1" + } + }, + "buffer-shims": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "caseless": { + "version": "0.12.0", + "bundled": true, + "dev": true, + "optional": true + }, + "co": { + "version": "4.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "combined-stream": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "delayed-stream": "1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "cryptiles": { + "version": "2.0.5", + "bundled": true, + "dev": true, + "requires": { + "boom": "2.10.1" + } + }, + "dashdash": { + "version": "1.14.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "debug": { + "version": "2.6.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.4.2", + "bundled": true, + "dev": true, + "optional": true + }, + "delayed-stream": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "ecc-jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "extend": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "extsprintf": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true, + "dev": true, + "optional": true + }, + "form-data": { + "version": "2.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.15" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "fstream": { + "version": "1.0.11", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "inherits": "2.0.3", + "mkdirp": "0.5.1", + "rimraf": "2.6.1" + } + }, + "fstream-ignore": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "fstream": "1.0.11", + "inherits": "2.0.3", + "minimatch": "3.0.4" + } + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aproba": "1.1.1", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + } + }, + "getpass": { + "version": "0.1.7", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "graceful-fs": { + "version": "4.1.11", + "bundled": true, + "dev": true + }, + "har-schema": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "har-validator": { + "version": "4.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ajv": "4.11.8", + "har-schema": "1.0.5" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "hawk": { + "version": "3.1.3", + "bundled": true, + "dev": true, + "requires": { + "boom": "2.10.1", + "cryptiles": "2.0.5", + "hoek": "2.16.3", + "sntp": "1.0.9" + } + }, + "hoek": { + "version": "2.16.3", + "bundled": true, + "dev": true + }, + "http-signature": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "0.2.0", + "jsprim": "1.4.0", + "sshpk": "1.13.0" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "ini": { + "version": "1.3.4", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "isstream": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "jodid25519": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "json-schema": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "optional": true + }, + "json-stable-stringify": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsonify": "0.0.0" + } + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "jsonify": { + "version": "0.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "jsprim": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.0.2", + "json-schema": "0.2.3", + "verror": "1.3.6" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "mime-db": { + "version": "1.27.0", + "bundled": true, + "dev": true + }, + "mime-types": { + "version": "2.1.15", + "bundled": true, + "dev": true, + "requires": { + "mime-db": "1.27.0" + } + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "node-pre-gyp": { + "version": "0.6.39", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "detect-libc": "1.0.2", + "hawk": "3.1.3", + "mkdirp": "0.5.1", + "nopt": "4.0.1", + "npmlog": "4.1.0", + "rc": "1.2.1", + "request": "2.81.0", + "rimraf": "2.6.1", + "semver": "5.3.0", + "tar": "2.2.1", + "tar-pack": "3.4.0" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1.1.0", + "osenv": "0.1.4" + } + }, + "npmlog": { + "version": "4.1.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "oauth-sign": { + "version": "0.8.2", + "bundled": true, + "dev": true, + "optional": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "osenv": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "performance-now": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true, + "dev": true + }, + "punycode": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "optional": true + }, + "qs": { + "version": "6.4.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.4", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.2.9", + "bundled": true, + "dev": true, + "requires": { + "buffer-shims": "1.0.0", + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "1.0.1", + "util-deprecate": "1.0.2" + } + }, + "request": { + "version": "2.81.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "4.2.1", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.15", + "oauth-sign": "0.8.2", + "performance-now": "0.2.0", + "qs": "6.4.0", + "safe-buffer": "5.0.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.2", + "tunnel-agent": "0.6.0", + "uuid": "3.0.1" + } + }, + "rimraf": { + "version": "2.6.1", + "bundled": true, + "dev": true, + "requires": { + "glob": "7.1.2" + } + }, + "safe-buffer": { + "version": "5.0.1", + "bundled": true, + "dev": true + }, + "semver": { + "version": "5.3.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "sntp": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.16.3" + } + }, + "sshpk": { + "version": "1.13.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jodid25519": "1.0.2", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "5.0.1" + } + }, + "stringstream": { + "version": "0.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "block-stream": "0.0.9", + "fstream": "1.0.11", + "inherits": "2.0.3" + } + }, + "tar-pack": { + "version": "3.4.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "2.6.8", + "fstream": "1.0.11", + "fstream-ignore": "1.0.5", + "once": "1.4.0", + "readable-stream": "2.2.9", + "rimraf": "2.6.1", + "tar": "2.2.1", + "uid-number": "0.0.6" + } + }, + "tough-cookie": { + "version": "2.3.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "punycode": "1.4.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "bundled": true, + "dev": true, + "optional": true + }, + "uid-number": { + "version": "0.0.6", + "bundled": true, + "dev": true, + "optional": true + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "uuid": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "verror": { + "version": "1.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "extsprintf": "1.0.2" + } + }, + "wide-align": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "1.0.2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + } + } + }, + "function-name-support": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/function-name-support/-/function-name-support-0.2.0.tgz", + "integrity": "sha1-VdO/qm6v1QWlD5vIH99XVkoLsHE=", + "dev": true + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "gcp-metadata": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-0.6.3.tgz", + "integrity": "sha512-MSmczZctbz91AxCvqp9GHBoZOSbJKAICV7Ow/AIWSJZRrRchUd5NL1b2P4OfP+4m490BEUPhhARfpHdqCxuCvg==", + "requires": { + "axios": "0.18.0", + "extend": "3.0.1", + "retry-axios": "0.3.2" + } + }, + "get-caller-file": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", + "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", + "dev": true + }, + "get-port": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/get-port/-/get-port-3.2.0.tgz", + "integrity": "sha1-3Xzn3hh8Bsi/NTeWrHHgmfCYDrw=", + "dev": true + }, + "get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", + "dev": true + }, + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "dev": true + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "requires": { + "assert-plus": "1.0.0" + } + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "glob-base": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", + "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", + "dev": true, + "requires": { + "glob-parent": "2.0.0", + "is-glob": "2.0.1" + }, + "dependencies": { + "glob-parent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "dev": true, + "requires": { + "is-glob": "2.0.1" + } + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + } + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "requires": { + "is-glob": "3.1.0", + "path-dirname": "1.0.2" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "requires": { + "is-extglob": "2.1.1" + } + } + } + }, + "glob-to-regexp": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz", + "integrity": "sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=" + }, + "global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", + "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", + "dev": true, + "requires": { + "ini": "1.3.5" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + }, + "globby": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-8.0.1.tgz", + "integrity": "sha512-oMrYrJERnKBLXNLVTqhm3vPEdJ/b2ZE28xN4YARiix1NOIOBPEpOUnm844K1iu/BkphCaf2WNFwMszv8Soi1pw==", + "requires": { + "array-union": "1.0.2", + "dir-glob": "2.0.0", + "fast-glob": "2.2.0", + "glob": "7.1.2", + "ignore": "3.3.7", + "pify": "3.0.0", + "slash": "1.0.0" + } + }, + "google-auth-library": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-1.3.2.tgz", + "integrity": "sha512-aRz0om4Bs85uyR2Ousk3Gb8Nffx2Sr2RoKts1smg1MhRwrehE1aD1HC4RmprNt1HVJ88IDnQ8biJQ/aXjiIxlQ==", + "requires": { + "axios": "0.18.0", + "gcp-metadata": "0.6.3", + "gtoken": "2.2.0", + "jws": "3.1.4", + "lodash.isstring": "4.0.1", + "lru-cache": "4.1.2", + "retry-axios": "0.3.2" + } + }, + "google-auto-auth": { + "version": "0.9.7", + "resolved": "https://registry.npmjs.org/google-auto-auth/-/google-auto-auth-0.9.7.tgz", + "integrity": "sha512-Nro7aIFrL2NP0G7PoGrJqXGMZj8AjdBOcbZXRRm/8T3w08NUHIiNN3dxpuUYzDsZizslH+c8e+7HXL8vh3JXTQ==", + "requires": { + "async": "2.6.0", + "gcp-metadata": "0.6.3", + "google-auth-library": "1.3.2", + "request": "2.85.0" + } + }, + "google-gax": { + "version": "0.16.0", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.16.0.tgz", + "integrity": "sha512-sslPB7USGD8SrVUGlWFIGYVZrgZ6oj+fWUEW3f8Bk43+nxqeLyrNoI3iFBRpjLfwMCEYaXVziWNmatwLRP8azg==", + "requires": { + "duplexify": "3.5.4", + "extend": "3.0.1", + "globby": "8.0.1", + "google-auto-auth": "0.9.7", + "google-proto-files": "0.15.1", + "grpc": "1.9.1", + "is-stream-ended": "0.1.3", + "lodash": "4.17.5", + "protobufjs": "6.8.6", + "through2": "2.0.3" + } + }, + "google-p12-pem": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-1.0.2.tgz", + "integrity": "sha512-+EuKr4CLlGsnXx4XIJIVkcKYrsa2xkAmCvxRhX2HsazJzUBAJ35wARGeApHUn4nNfPD03Vl057FskNr20VaCyg==", + "requires": { + "node-forge": "0.7.4", + "pify": "3.0.0" + } + }, + "google-proto-files": { + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/google-proto-files/-/google-proto-files-0.15.1.tgz", + "integrity": "sha512-ebtmWgi/ooR5Nl63qRVZZ6VLM6JOb5zTNxTT/ZAU8yfMOdcauoOZNNMOVg0pCmTjqWXeuuVbgPP0CwO5UHHzBQ==", + "requires": { + "globby": "7.1.1", + "power-assert": "1.4.4", + "protobufjs": "6.8.6" + }, + "dependencies": { + "globby": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/globby/-/globby-7.1.1.tgz", + "integrity": "sha1-+yzP+UAfhgCUXfral0QMypcrhoA=", + "requires": { + "array-union": "1.0.2", + "dir-glob": "2.0.0", + "glob": "7.1.2", + "ignore": "3.3.7", + "pify": "3.0.0", + "slash": "1.0.0" + } + } + } + }, + "got": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/got/-/got-8.2.0.tgz", + "integrity": "sha512-giadqJpXIwjY+ZsuWys8p2yjZGhOHiU4hiJHjS/oeCxw1u8vANQz3zPlrxW2Zw/siCXsSMI3hvzWGcnFyujyAg==", + "dev": true, + "requires": { + "@sindresorhus/is": "0.7.0", + "cacheable-request": "2.1.4", + "decompress-response": "3.3.0", + "duplexer3": "0.1.4", + "get-stream": "3.0.0", + "into-stream": "3.1.0", + "is-retry-allowed": "1.1.0", + "isurl": "1.0.0", + "lowercase-keys": "1.0.0", + "mimic-response": "1.0.0", + "p-cancelable": "0.3.0", + "p-timeout": "2.0.1", + "pify": "3.0.0", + "safe-buffer": "5.1.1", + "timed-out": "4.0.1", + "url-parse-lax": "3.0.0", + "url-to-options": "1.0.1" + }, + "dependencies": { + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", + "dev": true + }, + "url-parse-lax": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", + "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", + "dev": true, + "requires": { + "prepend-http": "2.0.0" + } + } + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "dev": true + }, + "growl": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz", + "integrity": "sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q==", + "dev": true + }, + "grpc": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.9.1.tgz", + "integrity": "sha512-WNW3MWMuAoo63AwIlzFE3T0KzzvNBSvOkg67Hm8WhvHNkXFBlIk1QyJRE3Ocm0O5eIwS7JU8Ssota53QR1zllg==", + "requires": { + "lodash": "4.17.5", + "nan": "2.10.0", + "node-pre-gyp": "0.6.39", + "protobufjs": "5.0.2" + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "bundled": true + }, + "ajv": { + "version": "4.11.8", + "bundled": true, + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + } + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true + }, + "aproba": { + "version": "1.2.0", + "bundled": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "bundled": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.3.3" + } + }, + "asn1": { + "version": "0.2.3", + "bundled": true + }, + "assert-plus": { + "version": "0.2.0", + "bundled": true + }, + "asynckit": { + "version": "0.4.0", + "bundled": true + }, + "aws-sign2": { + "version": "0.6.0", + "bundled": true + }, + "aws4": { + "version": "1.6.0", + "bundled": true + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "bundled": true, + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + } + }, + "block-stream": { + "version": "0.0.9", + "bundled": true, + "requires": { + "inherits": "2.0.3" + } + }, + "boom": { + "version": "2.10.1", + "bundled": true, + "requires": { + "hoek": "2.16.3" + } + }, + "brace-expansion": { + "version": "1.1.8", + "bundled": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "caseless": { + "version": "0.12.0", + "bundled": true + }, + "co": { + "version": "4.6.0", + "bundled": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true + }, + "combined-stream": { + "version": "1.0.5", + "bundled": true, + "requires": { + "delayed-stream": "1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "bundled": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true + }, + "cryptiles": { + "version": "2.0.5", + "bundled": true, + "requires": { + "boom": "2.10.1" + } + }, + "dashdash": { + "version": "1.14.1", + "bundled": true, + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true + } + } + }, + "debug": { + "version": "2.6.9", + "bundled": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.4.2", + "bundled": true + }, + "delayed-stream": { + "version": "1.0.0", + "bundled": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true + }, + "detect-libc": { + "version": "1.0.3", + "bundled": true + }, + "ecc-jsbn": { + "version": "0.1.1", + "bundled": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "extend": { + "version": "3.0.1", + "bundled": true + }, + "extsprintf": { + "version": "1.3.0", + "bundled": true + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true + }, + "form-data": { + "version": "2.1.4", + "bundled": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.17" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true + }, + "fstream": { + "version": "1.0.11", + "bundled": true, + "requires": { + "graceful-fs": "4.1.11", + "inherits": "2.0.3", + "mkdirp": "0.5.1", + "rimraf": "2.6.2" + } + }, + "fstream-ignore": { + "version": "1.0.5", + "bundled": true, + "requires": { + "fstream": "1.0.11", + "inherits": "2.0.3", + "minimatch": "3.0.4" + } + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "requires": { + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + } + }, + "getpass": { + "version": "0.1.7", + "bundled": true, + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true + } + } + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "graceful-fs": { + "version": "4.1.11", + "bundled": true + }, + "har-schema": { + "version": "1.0.5", + "bundled": true + }, + "har-validator": { + "version": "4.2.1", + "bundled": true, + "requires": { + "ajv": "4.11.8", + "har-schema": "1.0.5" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true + }, + "hawk": { + "version": "3.1.3", + "bundled": true, + "requires": { + "boom": "2.10.1", + "cryptiles": "2.0.5", + "hoek": "2.16.3", + "sntp": "1.0.9" + } + }, + "hoek": { + "version": "2.16.3", + "bundled": true + }, + "http-signature": { + "version": "1.1.1", + "bundled": true, + "requires": { + "assert-plus": "0.2.0", + "jsprim": "1.4.1", + "sshpk": "1.13.1" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true + }, + "ini": { + "version": "1.3.5", + "bundled": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true + }, + "isstream": { + "version": "0.1.2", + "bundled": true + }, + "jsbn": { + "version": "0.1.1", + "bundled": true, + "optional": true + }, + "json-schema": { + "version": "0.2.3", + "bundled": true + }, + "json-stable-stringify": { + "version": "1.0.1", + "bundled": true, + "requires": { + "jsonify": "0.0.0" + } + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true + }, + "jsonify": { + "version": "0.0.0", + "bundled": true + }, + "jsprim": { + "version": "1.4.1", + "bundled": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true + } + } + }, + "mime-db": { + "version": "1.30.0", + "bundled": true + }, + "mime-types": { + "version": "2.1.17", + "bundled": true, + "requires": { + "mime-db": "1.30.0" + } + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "requires": { + "brace-expansion": "1.1.8" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true + }, + "node-pre-gyp": { + "version": "0.6.39", + "bundled": true, + "requires": { + "detect-libc": "1.0.3", + "hawk": "3.1.3", + "mkdirp": "0.5.1", + "nopt": "4.0.1", + "npmlog": "4.1.2", + "rc": "1.2.4", + "request": "2.81.0", + "rimraf": "2.6.2", + "semver": "5.5.0", + "tar": "2.2.1", + "tar-pack": "3.4.1" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "requires": { + "abbrev": "1.1.1", + "osenv": "0.1.4" + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true + }, + "oauth-sign": { + "version": "0.8.2", + "bundled": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true + }, + "osenv": { + "version": "0.1.4", + "bundled": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true + }, + "performance-now": { + "version": "0.2.0", + "bundled": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true + }, + "protobufjs": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.2.tgz", + "integrity": "sha1-WXSNfc8D0tsiwT2p/rAk4Wq4DJE=", + "requires": { + "ascli": "1.0.1", + "bytebuffer": "5.0.1", + "glob": "7.1.2", + "yargs": "3.32.0" + } + }, + "punycode": { + "version": "1.4.1", + "bundled": true + }, + "qs": { + "version": "6.4.0", + "bundled": true + }, + "rc": { + "version": "1.2.4", + "bundled": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true + } + } + }, + "readable-stream": { + "version": "2.3.3", + "bundled": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "request": { + "version": "2.81.0", + "bundled": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "4.2.1", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.17", + "oauth-sign": "0.8.2", + "performance-now": "0.2.0", + "qs": "6.4.0", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.3", + "tunnel-agent": "0.6.0", + "uuid": "3.2.1" + } + }, + "rimraf": { + "version": "2.6.2", + "bundled": true, + "requires": { + "glob": "7.1.2" + } + }, + "safe-buffer": { + "version": "5.1.1", + "bundled": true + }, + "semver": { + "version": "5.5.0", + "bundled": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true + }, + "sntp": { + "version": "1.0.9", + "bundled": true, + "requires": { + "hoek": "2.16.3" + } + }, + "sshpk": { + "version": "1.13.1", + "bundled": true, + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true + } + } + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.0.3", + "bundled": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "stringstream": { + "version": "0.0.5", + "bundled": true + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true + }, + "tar": { + "version": "2.2.1", + "bundled": true, + "requires": { + "block-stream": "0.0.9", + "fstream": "1.0.11", + "inherits": "2.0.3" + } + }, + "tar-pack": { + "version": "3.4.1", + "bundled": true, + "requires": { + "debug": "2.6.9", + "fstream": "1.0.11", + "fstream-ignore": "1.0.5", + "once": "1.4.0", + "readable-stream": "2.3.3", + "rimraf": "2.6.2", + "tar": "2.2.1", + "uid-number": "0.0.6" + } + }, + "tough-cookie": { + "version": "2.3.3", + "bundled": true, + "requires": { + "punycode": "1.4.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "bundled": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "bundled": true, + "optional": true + }, + "uid-number": { + "version": "0.0.6", + "bundled": true + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true + }, + "uuid": { + "version": "3.2.1", + "bundled": true + }, + "verror": { + "version": "1.10.0", + "bundled": true, + "requires": { + "assert-plus": "1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "1.3.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true + } + } + }, + "wide-align": { + "version": "1.1.2", + "bundled": true, + "requires": { + "string-width": "1.0.2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true + } + } + }, + "gtoken": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-2.2.0.tgz", + "integrity": "sha512-tvQs8B1z5+I1FzMPZnq/OCuxTWFOkvy7cUJcpNdBOK2L7yEtPZTVCPtZU181sSDF+isUPebSqFTNTkIejFASAQ==", + "requires": { + "axios": "0.18.0", + "google-p12-pem": "1.0.2", + "jws": "3.1.4", + "mime": "2.2.0", + "pify": "3.0.0" + } + }, + "handlebars": { + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.11.tgz", + "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", + "dev": true, + "requires": { + "async": "1.5.2", + "optimist": "0.6.1", + "source-map": "0.4.4", + "uglify-js": "2.8.29" + }, + "dependencies": { + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "dev": true + }, + "source-map": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + }, + "har-validator": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", + "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", + "requires": { + "ajv": "5.5.2", + "har-schema": "2.0.0" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "has-color": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz", + "integrity": "sha1-ZxRKUmDDT8PMpnfQQdr1L+e3iy8=", + "dev": true + }, + "has-flag": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", + "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", + "dev": true + }, + "has-symbol-support-x": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", + "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==", + "dev": true + }, + "has-to-string-tag-x": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", + "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==", + "dev": true, + "requires": { + "has-symbol-support-x": "1.4.2" + } + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "requires": { + "get-value": "2.0.6", + "has-values": "1.0.0", + "isobject": "3.0.1" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "has-yarn": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-1.0.0.tgz", + "integrity": "sha1-ieJdtgS3Jcj1l2//Ct3JIbgopac=", + "dev": true + }, + "hawk": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", + "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", + "requires": { + "boom": "4.3.1", + "cryptiles": "3.1.2", + "hoek": "4.2.1", + "sntp": "2.1.0" + } + }, + "he": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", + "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", + "dev": true + }, + "hoek": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz", + "integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==" + }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "dev": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "hosted-git-info": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.0.tgz", + "integrity": "sha512-lIbgIIQA3lz5XaB6vxakj6sDHADJiZadYEJB+FgA+C4nubM1NwcuvUr9EJPmnH1skZqpqUzWborWo8EIUi0Sdw==", + "dev": true + }, + "htmlparser2": { + "version": "3.9.2", + "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz", + "integrity": "sha1-G9+HrMoPP55T+k/M6w9LTLsAszg=", + "dev": true, + "requires": { + "domelementtype": "1.3.0", + "domhandler": "2.4.1", + "domutils": "1.7.0", + "entities": "1.1.1", + "inherits": "2.0.3", + "readable-stream": "2.3.5" + } + }, + "http-cache-semantics": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", + "integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==", + "dev": true + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "requires": { + "assert-plus": "1.0.0", + "jsprim": "1.4.1", + "sshpk": "1.14.1" + } + }, + "hullabaloo-config-manager": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/hullabaloo-config-manager/-/hullabaloo-config-manager-1.1.1.tgz", + "integrity": "sha512-ztKnkZV0TmxnumCDHHgLGNiDnotu4EHCp9YMkznWuo4uTtCyJ+cu+RNcxUeXYKTllpvLFWnbfWry09yzszgg+A==", + "dev": true, + "requires": { + "dot-prop": "4.2.0", + "es6-error": "4.1.1", + "graceful-fs": "4.1.11", + "indent-string": "3.2.0", + "json5": "0.5.1", + "lodash.clonedeep": "4.5.0", + "lodash.clonedeepwith": "4.5.0", + "lodash.isequal": "4.5.0", + "lodash.merge": "4.6.1", + "md5-hex": "2.0.0", + "package-hash": "2.0.0", + "pkg-dir": "2.0.0", + "resolve-from": "3.0.0", + "safe-buffer": "5.1.1" + } + }, + "iconv-lite": { + "version": "0.4.19", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", + "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==", + "dev": true + }, + "ignore": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.7.tgz", + "integrity": "sha512-YGG3ejvBNHRqu0559EOxxNFihD0AjpvHlC/pdGKd3X3ofe+CoJkYazwNJYTNebqpPKN+VVQbh4ZFn1DivMNuHA==" + }, + "ignore-by-default": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", + "dev": true + }, + "import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", + "dev": true + }, + "import-local": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-0.1.1.tgz", + "integrity": "sha1-sReVcqrNwRxqkQCftDDbyrX2aKg=", + "dev": true, + "requires": { + "pkg-dir": "2.0.0", + "resolve-cwd": "2.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "dev": true + }, + "indent-string": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", + "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", + "dev": true + }, + "indexof": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", + "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=" + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true + }, + "ink-docstrap": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/ink-docstrap/-/ink-docstrap-1.3.2.tgz", + "integrity": "sha512-STx5orGQU1gfrkoI/fMU7lX6CSP7LBGO10gXNgOZhwKhUqbtNjCkYSewJtNnLmWP1tAGN6oyEpG1HFPw5vpa5Q==", + "dev": true, + "requires": { + "moment": "2.21.0", + "sanitize-html": "1.18.2" + } + }, + "inquirer": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz", + "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==", + "dev": true, + "requires": { + "ansi-escapes": "3.0.0", + "chalk": "2.3.2", + "cli-cursor": "2.1.0", + "cli-width": "2.2.0", + "external-editor": "2.1.0", + "figures": "2.0.0", + "lodash": "4.17.5", + "mute-stream": "0.0.7", + "run-async": "2.3.0", + "rx-lite": "4.0.8", + "rx-lite-aggregates": "4.0.8", + "string-width": "2.1.1", + "strip-ansi": "4.0.0", + "through": "2.3.8" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "intelli-espower-loader": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/intelli-espower-loader/-/intelli-espower-loader-1.0.1.tgz", + "integrity": "sha1-LHsDFGvB1GvyENCgOXxckatMorA=", + "dev": true, + "requires": { + "espower-loader": "1.2.2" + } + }, + "into-stream": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz", + "integrity": "sha1-lvsKk2wSur1v8XUqF9BWFqvQlMY=", + "dev": true, + "requires": { + "from2": "2.3.0", + "p-is-promise": "1.1.0" + } + }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "dev": true, + "requires": { + "loose-envify": "1.3.1" + } + }, + "invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" + }, + "irregular-plurals": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-1.4.0.tgz", + "integrity": "sha1-LKmwM2UREYVUEvFr5dd8YqRYp2Y=", + "dev": true + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, + "requires": { + "binary-extensions": "1.11.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, + "is-builtin-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", + "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", + "dev": true, + "requires": { + "builtin-modules": "1.1.1" + } + }, + "is-ci": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.1.0.tgz", + "integrity": "sha512-c7TnwxLePuqIlxHgr7xtxzycJPegNHFuIrBkwbf8hc58//+Op1CqFkyS+xnIMkwn9UsJIwc174BIjkyBmSpjKg==", + "dev": true, + "requires": { + "ci-info": "1.1.3" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "is-dotfile": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", + "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", + "dev": true + }, + "is-equal-shallow": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", + "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", + "dev": true, + "requires": { + "is-primitive": "2.0.0" + } + }, + "is-error": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/is-error/-/is-error-2.2.1.tgz", + "integrity": "sha1-aEqW2EB2V3yY9M20DG0mpRI78Zw=", + "dev": true + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" + }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-generator-fn": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-1.0.0.tgz", + "integrity": "sha1-lp1J4bszKfa7fwkIm+JleLLd1Go=", + "dev": true + }, + "is-glob": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", + "requires": { + "is-extglob": "2.1.1" + } + }, + "is-installed-globally": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", + "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", + "dev": true, + "requires": { + "global-dirs": "0.1.1", + "is-path-inside": "1.0.1" + } + }, + "is-npm": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", + "integrity": "sha1-8vtjpl5JBbQGyGBydloaTceTufQ=", + "dev": true + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "dev": true + }, + "is-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz", + "integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=", + "dev": true + }, + "is-observable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz", + "integrity": "sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==", + "dev": true, + "requires": { + "symbol-observable": "1.2.0" + } + }, + "is-odd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-odd/-/is-odd-2.0.0.tgz", + "integrity": "sha512-OTiixgpZAT1M4NHgS5IguFp/Vz2VI3U7Goh4/HA1adtwyLtSBrxYlcSYkhpAE07s4fKEcjrFxyvtQBND4vFQyQ==", + "requires": { + "is-number": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==" + } + } + }, + "is-path-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", + "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", + "dev": true + }, + "is-path-in-cwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz", + "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", + "dev": true, + "requires": { + "is-path-inside": "1.0.1" + } + }, + "is-path-inside": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", + "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", + "dev": true, + "requires": { + "path-is-inside": "1.0.2" + } + }, + "is-plain-obj": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", + "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", + "dev": true + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "requires": { + "isobject": "3.0.1" + } + }, + "is-posix-bracket": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", + "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", + "dev": true + }, + "is-primitive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", + "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", + "dev": true + }, + "is-promise": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", + "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", + "dev": true + }, + "is-redirect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", + "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", + "dev": true + }, + "is-resolvable": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", + "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", + "dev": true + }, + "is-retry-allowed": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz", + "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-stream-ended": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.3.tgz", + "integrity": "sha1-oEc7Jnx1ZjVIa+7cfjNE5UnRUqw=" + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "is-url": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.2.tgz", + "integrity": "sha1-SYkFpZO/R8wtnn9zg3K792lsfyY=", + "dev": true + }, + "is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "dev": true + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "isurl": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", + "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==", + "dev": true, + "requires": { + "has-to-string-tag-x": "1.4.1", + "is-object": "1.0.1" + } + }, + "jest-docblock": { + "version": "21.2.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-21.2.0.tgz", + "integrity": "sha512-5IZ7sY9dBAYSV+YjQ0Ovb540Ku7AO9Z5o2Cg789xj167iQuZ2cG+z0f3Uct6WeYLbU6aQiM2pCs7sZ+4dotydw==", + "dev": true + }, + "js-string-escape": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", + "integrity": "sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=", + "dev": true + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "js-yaml": { + "version": "3.11.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz", + "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", + "dev": true, + "requires": { + "argparse": "1.0.10", + "esprima": "4.0.0" + } + }, + "js2xmlparser": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-3.0.0.tgz", + "integrity": "sha1-P7YOqgicVED5MZ9RdgzNB+JJlzM=", + "dev": true, + "requires": { + "xmlcreate": "1.0.2" + } + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "optional": true + }, + "jsdoc": { + "version": "3.5.5", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.5.5.tgz", + "integrity": "sha512-6PxB65TAU4WO0Wzyr/4/YhlGovXl0EVYfpKbpSroSj0qBxT4/xod/l40Opkm38dRHRdQgdeY836M0uVnJQG7kg==", + "dev": true, + "requires": { + "babylon": "7.0.0-beta.19", + "bluebird": "3.5.1", + "catharsis": "0.8.9", + "escape-string-regexp": "1.0.5", + "js2xmlparser": "3.0.0", + "klaw": "2.0.0", + "marked": "0.3.17", + "mkdirp": "0.5.1", + "requizzle": "0.2.1", + "strip-json-comments": "2.0.1", + "taffydb": "2.6.2", + "underscore": "1.8.3" + }, + "dependencies": { + "babylon": { + "version": "7.0.0-beta.19", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.19.tgz", + "integrity": "sha512-Vg0C9s/REX6/WIXN37UKpv5ZhRi6A4pjHlpkE34+8/a6c2W1Q692n3hmc+SZG5lKRnaExLUbxtJ1SVT+KaCQ/A==", + "dev": true + } + } + }, + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + }, + "json-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", + "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", + "dev": true + }, + "json-parse-better-errors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.1.tgz", + "integrity": "sha512-xyQpxeWWMKyJps9CuGJYeng6ssI5bpqS9ltQpdVQ90t4ql6NdnxFKh95JcRt2cun/DjMVNrdjniLPuMA69xmCw==", + "dev": true + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" + }, + "json-stable-stringify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", + "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", + "dev": true, + "requires": { + "jsonify": "0.0.0" + } + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", + "dev": true + }, + "jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11" + } + }, + "jsonify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", + "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", + "dev": true + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "just-extend": { + "version": "1.1.27", + "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-1.1.27.tgz", + "integrity": "sha512-mJVp13Ix6gFo3SBAy9U/kL+oeZqzlYYYLQBwXVBlVzIsZwBqGREnOro24oC/8s8aox+rJhtZ2DiQof++IrkA+g==", + "dev": true + }, + "jwa": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.1.5.tgz", + "integrity": "sha1-oFUs4CIHQs1S4VN3SjKQXDDnVuU=", + "requires": { + "base64url": "2.0.0", + "buffer-equal-constant-time": "1.0.1", + "ecdsa-sig-formatter": "1.0.9", + "safe-buffer": "5.1.1" + } + }, + "jws": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.1.4.tgz", + "integrity": "sha1-+ei5M46KhHJ31kRLFGT2GIDgUKI=", + "requires": { + "base64url": "2.0.0", + "jwa": "1.1.5", + "safe-buffer": "5.1.1" + } + }, + "keyv": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", + "integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==", + "dev": true, + "requires": { + "json-buffer": "3.0.0" + } + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" + }, + "klaw": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/klaw/-/klaw-2.0.0.tgz", + "integrity": "sha1-WcEo4Nxc5BAgEVEZTuucv4WGUPY=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11" + } + }, + "last-line-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/last-line-stream/-/last-line-stream-1.0.0.tgz", + "integrity": "sha1-0bZNafhv8kry0EiDos7uFFIKVgA=", + "dev": true, + "requires": { + "through2": "2.0.3" + } + }, + "latest-version": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", + "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=", + "dev": true, + "requires": { + "package-json": "4.0.1" + } + }, + "lazy-cache": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", + "dev": true, + "optional": true + }, + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "requires": { + "invert-kv": "1.0.0" + } + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "dev": true, + "requires": { + "prelude-ls": "1.1.2", + "type-check": "0.3.2" + } + }, + "load-json-file": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", + "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "2.2.0", + "pify": "2.3.0", + "strip-bom": "3.0.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "2.0.0", + "path-exists": "3.0.0" + } + }, + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==" + }, + "lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", + "dev": true + }, + "lodash.clonedeepwith": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeepwith/-/lodash.clonedeepwith-4.5.0.tgz", + "integrity": "sha1-buMFc6A6GmDWcKYu8zwQzxr9vdQ=", + "dev": true + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", + "dev": true + }, + "lodash.difference": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz", + "integrity": "sha1-nMtOUF1Ia5FlE0V3KIWi3yf9AXw=", + "dev": true + }, + "lodash.escaperegexp": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", + "integrity": "sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=", + "dev": true + }, + "lodash.flatten": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", + "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=", + "dev": true + }, + "lodash.flattendeep": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", + "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", + "dev": true + }, + "lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", + "dev": true + }, + "lodash.isequal": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", + "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=", + "dev": true + }, + "lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", + "dev": true + }, + "lodash.isstring": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" + }, + "lodash.merge": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.1.tgz", + "integrity": "sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ==" + }, + "lodash.mergewith": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz", + "integrity": "sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==", + "dev": true + }, + "lolex": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.3.2.tgz", + "integrity": "sha512-A5pN2tkFj7H0dGIAM6MFvHKMJcPnjZsOMvR7ujCjfgW5TbV6H9vb1PgxLtHvjqNZTHsUolz+6/WEO0N1xNx2ng==", + "dev": true + }, + "long": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", + "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" + }, + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "dev": true + }, + "loose-envify": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", + "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "dev": true, + "requires": { + "js-tokens": "3.0.2" + } + }, + "loud-rejection": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "dev": true, + "requires": { + "currently-unhandled": "0.4.1", + "signal-exit": "3.0.2" + } + }, + "lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", + "dev": true + }, + "lru-cache": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", + "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + }, + "make-dir": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.2.0.tgz", + "integrity": "sha512-aNUAa4UMg/UougV25bbrU4ZaaKNjJ/3/xnvg/twpmKROPdKZPZ9wGgI0opdZzO8q/zUFawoUuixuOv33eZ61Iw==", + "dev": true, + "requires": { + "pify": "3.0.0" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=" + }, + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "requires": { + "object-visit": "1.0.1" + } + }, + "marked": { + "version": "0.3.17", + "resolved": "https://registry.npmjs.org/marked/-/marked-0.3.17.tgz", + "integrity": "sha512-+AKbNsjZl6jFfLPwHhWmGTqE009wTKn3RTmn9K8oUKHrX/abPJjtcRtXpYB/FFrwPJRUA86LX/de3T0knkPCmQ==", + "dev": true + }, + "matcher": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-1.1.0.tgz", + "integrity": "sha512-aZGv6JBTHqfqAd09jmAlbKnAICTfIvb5Z8gXVxPB5WZtFfHMaAMdACL7tQflD2V+6/8KNcY8s6DYtWLgpJP5lA==", + "dev": true, + "requires": { + "escape-string-regexp": "1.0.5" + } + }, + "md5-hex": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-2.0.0.tgz", + "integrity": "sha1-0FiOnxx0lUSS7NJKwKxs6ZfZLjM=", + "dev": true, + "requires": { + "md5-o-matic": "0.1.1" + } + }, + "md5-o-matic": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/md5-o-matic/-/md5-o-matic-0.1.1.tgz", + "integrity": "sha1-givM1l4RfFFPqxdrJZRdVBAKA8M=", + "dev": true + }, + "mem": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", + "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", + "dev": true, + "requires": { + "mimic-fn": "1.2.0" + } + }, + "meow": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", + "dev": true, + "requires": { + "camelcase-keys": "2.1.0", + "decamelize": "1.2.0", + "loud-rejection": "1.6.0", + "map-obj": "1.0.1", + "minimist": "1.2.0", + "normalize-package-data": "2.4.0", + "object-assign": "4.1.1", + "read-pkg-up": "1.0.1", + "redent": "1.0.0", + "trim-newlines": "1.0.0" + }, + "dependencies": { + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "dev": true, + "requires": { + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" + } + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "2.2.0", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "strip-bom": "2.0.0" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "dev": true, + "requires": { + "pinkie-promise": "2.0.1" + } + }, + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "2.0.4" + } + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "dev": true, + "requires": { + "load-json-file": "1.1.0", + "normalize-package-data": "2.4.0", + "path-type": "1.1.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "dev": true, + "requires": { + "find-up": "1.1.2", + "read-pkg": "1.1.0" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "0.2.1" + } + } + } + }, + "merge-descriptors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", + "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", + "dev": true + }, + "merge-estraverse-visitors": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/merge-estraverse-visitors/-/merge-estraverse-visitors-1.0.0.tgz", + "integrity": "sha1-65aDOLXe1c7tgs7AMH3sui2OqZQ=", + "dev": true, + "requires": { + "estraverse": "4.2.0" + } + }, + "merge2": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.2.1.tgz", + "integrity": "sha512-wUqcG5pxrAcaFI1lkqkMnk3Q7nUxV/NWfpAFSeWUwG9TRODnBDCUHa75mi3o3vLWQ5N4CQERWCauSlP0I3ZqUg==" + }, + "methods": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", + "dev": true + }, + "micromatch": { + "version": "3.1.9", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.9.tgz", + "integrity": "sha512-SlIz6sv5UPaAVVFRKodKjCg48EbNoIhgetzfK/Cy0v5U52Z6zB136M8tp0UC9jM53LYbmIRihJszvvqpKkfm9g==", + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.1", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.9", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + } + }, + "mime": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.2.0.tgz", + "integrity": "sha512-0Qz9uF1ATtl8RKJG4VRfOymh7PyEor6NbrI/61lRfuRe4vx9SNATrvAeTj2EWVRKjEQGskrzWkJBBY5NbaVHIA==" + }, + "mime-db": { + "version": "1.33.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==" + }, + "mime-types": { + "version": "2.1.18", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", + "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "requires": { + "mime-db": "1.33.0" + } + }, + "mimic-fn": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", + "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", + "dev": true + }, + "mimic-response": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.0.tgz", + "integrity": "sha1-3z02Uqc/3ta5sLJBRub9BSNTRY4=", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "requires": { + "brace-expansion": "1.1.11" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "dev": true + }, + "mixin-deep": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", + "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "requires": { + "for-in": "1.0.2", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "mocha": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.0.4.tgz", + "integrity": "sha512-nMOpAPFosU1B4Ix1jdhx5e3q7XO55ic5a8cgYvW27CequcEY+BabS0kUVL1Cw1V5PuVHZWeNRWFLmEPexo79VA==", + "dev": true, + "requires": { + "browser-stdout": "1.3.1", + "commander": "2.11.0", + "debug": "3.1.0", + "diff": "3.5.0", + "escape-string-regexp": "1.0.5", + "glob": "7.1.2", + "growl": "1.10.3", + "he": "1.1.1", + "mkdirp": "0.5.1", + "supports-color": "4.4.0" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "supports-color": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", + "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + } + } + }, + "module-not-found-error": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/module-not-found-error/-/module-not-found-error-1.0.1.tgz", + "integrity": "sha1-z4tP9PKWQGdNbN0CsOO8UjwrvcA=", + "dev": true + }, + "moment": { + "version": "2.21.0", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.21.0.tgz", + "integrity": "sha512-TCZ36BjURTeFTM/CwRcViQlfkMvL1/vFISuNLO5GkcVm1+QHfbSiNqZuWeMFjj1/3+uAjXswgRk30j1kkLYJBQ==", + "dev": true + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "multi-stage-sourcemap": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/multi-stage-sourcemap/-/multi-stage-sourcemap-0.2.1.tgz", + "integrity": "sha1-sJ/IWG6qF/gdV1xK0C4Pej9rEQU=", + "dev": true, + "requires": { + "source-map": "0.1.43" + }, + "dependencies": { + "source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "multimatch": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-2.1.0.tgz", + "integrity": "sha1-nHkGoi+0wCkZ4vX3UWG0zb1LKis=", + "dev": true, + "requires": { + "array-differ": "1.0.0", + "array-union": "1.0.2", + "arrify": "1.0.1", + "minimatch": "3.0.4" + } + }, + "mute-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", + "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", + "dev": true + }, + "nan": { + "version": "2.10.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", + "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==" + }, + "nanomatch": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.9.tgz", + "integrity": "sha512-n8R9bS8yQ6eSXaV6jHUpKzD8gLsin02w1HSFiegwrs9E098Ylhw5jdyKPaYqvHknHaSCKTPp7C8dGCQ0q9koXA==", + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "fragment-cache": "0.2.1", + "is-odd": "2.0.0", + "is-windows": "1.0.2", + "kind-of": "6.0.2", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + } + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "dev": true + }, + "next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", + "dev": true + }, + "nise": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/nise/-/nise-1.3.1.tgz", + "integrity": "sha512-kIH3X5YCj1vvj/32zDa9KNgzvfZd51ItGbiaCbtYhpnsCedLo0tIkb9zl169a41ATzF4z7kwMLz35XXDypma3g==", + "dev": true, + "requires": { + "@sinonjs/formatio": "2.0.0", + "just-extend": "1.1.27", + "lolex": "2.3.2", + "path-to-regexp": "1.7.0", + "text-encoding": "0.6.4" + } + }, + "node-forge": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.4.tgz", + "integrity": "sha512-8Df0906+tq/omxuCZD6PqhPaQDYuyJ1d+VITgxoIA8zvQd1ru+nMJcDChHH324MWitIgbVkAkQoGEEVJNpn/PA==" + }, + "normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "dev": true, + "requires": { + "hosted-git-info": "2.6.0", + "is-builtin-module": "1.0.0", + "semver": "5.5.0", + "validate-npm-package-license": "3.0.3" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "1.1.0" + } + }, + "normalize-url": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz", + "integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==", + "dev": true, + "requires": { + "prepend-http": "2.0.0", + "query-string": "5.1.1", + "sort-keys": "2.0.0" + }, + "dependencies": { + "prepend-http": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", + "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", + "dev": true + } + } + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "2.0.1" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" + }, + "nyc": { + "version": "11.6.0", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.6.0.tgz", + "integrity": "sha512-ZaXCh0wmbk2aSBH2B5hZGGvK2s9aM8DIm2rVY+BG3Fx8tUS+bpJSswUVZqOD1YfCmnYRFSqgYJSr7UeeUcW0jg==", + "dev": true, + "requires": { + "archy": "1.0.0", + "arrify": "1.0.1", + "caching-transform": "1.0.1", + "convert-source-map": "1.5.1", + "debug-log": "1.0.1", + "default-require-extensions": "1.0.0", + "find-cache-dir": "0.1.1", + "find-up": "2.1.0", + "foreground-child": "1.5.6", + "glob": "7.1.2", + "istanbul-lib-coverage": "1.2.0", + "istanbul-lib-hook": "1.1.0", + "istanbul-lib-instrument": "1.10.1", + "istanbul-lib-report": "1.1.3", + "istanbul-lib-source-maps": "1.2.3", + "istanbul-reports": "1.3.0", + "md5-hex": "1.3.0", + "merge-source-map": "1.1.0", + "micromatch": "2.3.11", + "mkdirp": "0.5.1", + "resolve-from": "2.0.0", + "rimraf": "2.6.2", + "signal-exit": "3.0.2", + "spawn-wrap": "1.4.2", + "test-exclude": "4.2.1", + "yargs": "11.1.0", + "yargs-parser": "8.1.0" + }, + "dependencies": { + "align-text": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2", + "longest": "1.0.1", + "repeat-string": "1.6.1" + } + }, + "amdefine": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "bundled": true, + "dev": true + }, + "append-transform": { + "version": "0.4.0", + "bundled": true, + "dev": true, + "requires": { + "default-require-extensions": "1.0.0" + } + }, + "archy": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "arr-diff": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "arr-flatten": "1.1.0" + } + }, + "arr-flatten": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "arr-union": { + "version": "3.1.0", + "bundled": true, + "dev": true + }, + "array-unique": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "arrify": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "assign-symbols": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "async": { + "version": "1.5.2", + "bundled": true, + "dev": true + }, + "atob": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "babel-code-frame": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "babel-generator": { + "version": "6.26.1", + "bundled": true, + "dev": true, + "requires": { + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "detect-indent": "4.0.0", + "jsesc": "1.3.0", + "lodash": "4.17.5", + "source-map": "0.5.7", + "trim-right": "1.0.1" + } + }, + "babel-messages": { + "version": "6.23.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-runtime": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "core-js": "2.5.3", + "regenerator-runtime": "0.11.1" + } + }, + "babel-template": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "lodash": "4.17.5" + } + }, + "babel-traverse": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "debug": "2.6.9", + "globals": "9.18.0", + "invariant": "2.2.3", + "lodash": "4.17.5" + } + }, + "babel-types": { + "version": "6.26.0", + "bundled": true, + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "esutils": "2.0.2", + "lodash": "4.17.5", + "to-fast-properties": "1.0.3" + } + }, + "babylon": { + "version": "6.18.0", + "bundled": true, + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "base": { + "version": "0.11.2", + "bundled": true, + "dev": true, + "requires": { + "cache-base": "1.0.1", + "class-utils": "0.3.6", + "component-emitter": "1.2.1", + "define-property": "1.0.0", + "isobject": "3.0.1", + "mixin-deep": "1.3.1", + "pascalcase": "0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + } + } + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "1.8.5", + "bundled": true, + "dev": true, + "requires": { + "expand-range": "1.8.2", + "preserve": "0.2.0", + "repeat-element": "1.1.2" + } + }, + "builtin-modules": { + "version": "1.1.1", + "bundled": true, + "dev": true + }, + "cache-base": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "collection-visit": "1.0.0", + "component-emitter": "1.2.1", + "get-value": "2.0.6", + "has-value": "1.0.0", + "isobject": "3.0.1", + "set-value": "2.0.0", + "to-object-path": "0.3.0", + "union-value": "1.0.0", + "unset-value": "1.0.0" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + } + } + }, + "caching-transform": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "md5-hex": "1.3.0", + "mkdirp": "0.5.1", + "write-file-atomic": "1.3.4" + } + }, + "camelcase": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "optional": true + }, + "center-align": { + "version": "0.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "align-text": "0.1.4", + "lazy-cache": "1.0.4" + } + }, + "chalk": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "class-utils": { + "version": "0.3.6", + "bundled": true, + "dev": true, + "requires": { + "arr-union": "3.1.0", + "define-property": "0.2.5", + "isobject": "3.0.1", + "static-extend": "0.1.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + }, + "kind-of": { + "version": "5.1.0", + "bundled": true, + "dev": true + } + } + }, + "cliui": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "center-align": "0.1.3", + "right-align": "0.1.3", + "wordwrap": "0.0.2" + }, + "dependencies": { + "wordwrap": { + "version": "0.0.2", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "collection-visit": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "map-visit": "1.0.0", + "object-visit": "1.0.1" + } + }, + "commondir": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "component-emitter": { + "version": "1.2.1", + "bundled": true, + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "convert-source-map": { + "version": "1.5.1", + "bundled": true, + "dev": true + }, + "copy-descriptor": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "core-js": { + "version": "2.5.3", + "bundled": true, + "dev": true + }, + "cross-spawn": { + "version": "4.0.2", + "bundled": true, + "dev": true, + "requires": { + "lru-cache": "4.1.2", + "which": "1.3.0" + } + }, + "debug": { + "version": "2.6.9", + "bundled": true, + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "debug-log": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "decamelize": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "decode-uri-component": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "default-require-extensions": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "strip-bom": "2.0.0" + } + }, + "define-property": { + "version": "2.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "1.0.2", + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + } + } + }, + "detect-indent": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "repeating": "2.0.1" + } + }, + "error-ex": { + "version": "1.3.1", + "bundled": true, + "dev": true, + "requires": { + "is-arrayish": "0.2.1" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "bundled": true, + "dev": true + }, + "esutils": { + "version": "2.0.2", + "bundled": true, + "dev": true + }, + "execa": { + "version": "0.7.0", + "bundled": true, + "dev": true, + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + }, + "dependencies": { + "cross-spawn": { + "version": "5.1.0", + "bundled": true, + "dev": true, + "requires": { + "lru-cache": "4.1.2", + "shebang-command": "1.2.0", + "which": "1.3.0" + } + } + } + }, + "expand-brackets": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "requires": { + "is-posix-bracket": "0.1.1" + } + }, + "expand-range": { + "version": "1.8.2", + "bundled": true, + "dev": true, + "requires": { + "fill-range": "2.2.3" + } + }, + "extend-shallow": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "requires": { + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, + "extglob": { + "version": "0.3.2", + "bundled": true, + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "filename-regex": { + "version": "2.0.1", + "bundled": true, + "dev": true + }, + "fill-range": { + "version": "2.2.3", + "bundled": true, + "dev": true, + "requires": { + "is-number": "2.1.0", + "isobject": "2.1.0", + "randomatic": "1.1.7", + "repeat-element": "1.1.2", + "repeat-string": "1.6.1" + } + }, + "find-cache-dir": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "requires": { + "commondir": "1.0.1", + "mkdirp": "0.5.1", + "pkg-dir": "1.0.0" + } + }, + "find-up": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "for-in": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "for-own": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "requires": { + "for-in": "1.0.2" + } + }, + "foreground-child": { + "version": "1.5.6", + "bundled": true, + "dev": true, + "requires": { + "cross-spawn": "4.0.2", + "signal-exit": "3.0.2" + } + }, + "fragment-cache": { + "version": "0.2.1", + "bundled": true, + "dev": true, + "requires": { + "map-cache": "0.2.2" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "get-caller-file": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "get-stream": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "get-value": { + "version": "2.0.6", + "bundled": true, + "dev": true + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "glob-base": { + "version": "0.3.0", + "bundled": true, + "dev": true, + "requires": { + "glob-parent": "2.0.0", + "is-glob": "2.0.1" + } + }, + "glob-parent": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-glob": "2.0.1" + } + }, + "globals": { + "version": "9.18.0", + "bundled": true, + "dev": true + }, + "graceful-fs": { + "version": "4.1.11", + "bundled": true, + "dev": true + }, + "handlebars": { + "version": "4.0.11", + "bundled": true, + "dev": true, + "requires": { + "async": "1.5.2", + "optimist": "0.6.1", + "source-map": "0.4.4", + "uglify-js": "2.8.29" + }, + "dependencies": { + "source-map": { + "version": "0.4.4", + "bundled": true, + "dev": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "has-ansi": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "has-flag": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "has-value": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "get-value": "2.0.6", + "has-values": "1.0.0", + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + } + } + }, + "has-values": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "hosted-git-info": { + "version": "2.6.0", + "bundled": true, + "dev": true + }, + "imurmurhash": { + "version": "0.1.4", + "bundled": true, + "dev": true + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "invariant": { + "version": "2.2.3", + "bundled": true, + "dev": true, + "requires": { + "loose-envify": "1.3.1" + } + }, + "invert-kv": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } + } + }, + "is-arrayish": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "is-buffer": { + "version": "1.1.6", + "bundled": true, + "dev": true + }, + "is-builtin-module": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "builtin-modules": "1.1.1" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } + } + }, + "is-descriptor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } + } + }, + "is-dotfile": { + "version": "1.0.3", + "bundled": true, + "dev": true + }, + "is-equal-shallow": { + "version": "0.1.3", + "bundled": true, + "dev": true, + "requires": { + "is-primitive": "2.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "is-extglob": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "is-finite": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "is-number": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-odd": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-number": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "4.0.0", + "bundled": true, + "dev": true + } + } + }, + "is-plain-object": { + "version": "2.0.4", + "bundled": true, + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + } + } + }, + "is-posix-bracket": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "is-primitive": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "is-utf8": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "is-windows": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "isexe": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "isobject": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "isarray": "1.0.0" + } + }, + "istanbul-lib-coverage": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "istanbul-lib-hook": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "append-transform": "0.4.0" + } + }, + "istanbul-lib-instrument": { + "version": "1.10.1", + "bundled": true, + "dev": true, + "requires": { + "babel-generator": "6.26.1", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "istanbul-lib-coverage": "1.2.0", + "semver": "5.5.0" + } + }, + "istanbul-lib-report": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "requires": { + "istanbul-lib-coverage": "1.2.0", + "mkdirp": "0.5.1", + "path-parse": "1.0.5", + "supports-color": "3.2.3" + }, + "dependencies": { + "supports-color": { + "version": "3.2.3", + "bundled": true, + "dev": true, + "requires": { + "has-flag": "1.0.0" + } + } + } + }, + "istanbul-lib-source-maps": { + "version": "1.2.3", + "bundled": true, + "dev": true, + "requires": { + "debug": "3.1.0", + "istanbul-lib-coverage": "1.2.0", + "mkdirp": "0.5.1", + "rimraf": "2.6.2", + "source-map": "0.5.7" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "istanbul-reports": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "handlebars": "4.0.11" + } + }, + "js-tokens": { + "version": "3.0.2", + "bundled": true, + "dev": true + }, + "jsesc": { + "version": "1.3.0", + "bundled": true, + "dev": true + }, + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + }, + "lazy-cache": { + "version": "1.0.4", + "bundled": true, + "dev": true, + "optional": true + }, + "lcid": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "invert-kv": "1.0.0" + } + }, + "load-json-file": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "2.2.0", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "strip-bom": "2.0.0" + } + }, + "locate-path": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "p-locate": "2.0.0", + "path-exists": "3.0.0" + }, + "dependencies": { + "path-exists": { + "version": "3.0.0", + "bundled": true, + "dev": true + } + } + }, + "lodash": { + "version": "4.17.5", + "bundled": true, + "dev": true + }, + "longest": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "loose-envify": { + "version": "1.3.1", + "bundled": true, + "dev": true, + "requires": { + "js-tokens": "3.0.2" + } + }, + "lru-cache": { + "version": "4.1.2", + "bundled": true, + "dev": true, + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + }, + "map-cache": { + "version": "0.2.2", + "bundled": true, + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "object-visit": "1.0.1" + } + }, + "md5-hex": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "md5-o-matic": "0.1.1" + } + }, + "md5-o-matic": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "mem": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "mimic-fn": "1.2.0" + } + }, + "merge-source-map": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "source-map": "0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "bundled": true, + "dev": true + } + } + }, + "micromatch": { + "version": "2.3.11", + "bundled": true, + "dev": true, + "requires": { + "arr-diff": "2.0.0", + "array-unique": "0.2.1", + "braces": "1.8.5", + "expand-brackets": "0.1.5", + "extglob": "0.3.2", + "filename-regex": "2.0.1", + "is-extglob": "1.0.0", + "is-glob": "2.0.1", + "kind-of": "3.2.2", + "normalize-path": "2.1.1", + "object.omit": "2.0.1", + "parse-glob": "3.0.4", + "regex-cache": "0.4.4" + } + }, + "mimic-fn": { + "version": "1.2.0", + "bundled": true, + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "1.1.11" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "mixin-deep": { + "version": "1.3.1", + "bundled": true, + "dev": true, + "requires": { + "for-in": "1.0.2", + "is-extendable": "1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-plain-object": "2.0.4" + } + } + } + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "nanomatch": { + "version": "1.2.9", + "bundled": true, + "dev": true, + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "fragment-cache": "0.2.1", + "is-odd": "2.0.0", + "is-windows": "1.0.2", + "kind-of": "6.0.2", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "arr-diff": { + "version": "4.0.0", + "bundled": true, + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "bundled": true, + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } + } + }, + "normalize-package-data": { + "version": "2.4.0", + "bundled": true, + "dev": true, + "requires": { + "hosted-git-info": "2.6.0", + "is-builtin-module": "1.0.0", + "semver": "5.5.0", + "validate-npm-package-license": "3.0.3" + } + }, + "normalize-path": { + "version": "2.1.1", + "bundled": true, + "dev": true, + "requires": { + "remove-trailing-separator": "1.1.0" + } + }, + "npm-run-path": { + "version": "2.0.2", + "bundled": true, + "dev": true, + "requires": { + "path-key": "2.0.1" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true + }, + "object-copy": { + "version": "0.1.0", + "bundled": true, + "dev": true, + "requires": { + "copy-descriptor": "0.1.1", + "define-property": "0.2.5", + "kind-of": "3.2.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "bundled": true, + "dev": true + } + } + } + } + }, + "object-visit": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + } + } + }, + "object.omit": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "for-own": "0.1.5", + "is-extendable": "0.1.1" + } + }, + "object.pick": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "isobject": "3.0.1" + }, + "dependencies": { + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + } + } + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "optimist": { + "version": "0.6.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8", + "wordwrap": "0.0.3" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "os-locale": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "execa": "0.7.0", + "lcid": "1.0.0", + "mem": "1.1.0" + } + }, + "p-finally": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "p-limit": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "requires": { + "p-try": "1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "p-limit": "1.2.0" + } + }, + "p-try": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "parse-glob": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "glob-base": "0.3.0", + "is-dotfile": "1.0.3", + "is-extglob": "1.0.0", + "is-glob": "2.0.1" + } + }, + "parse-json": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "requires": { + "error-ex": "1.3.1" + } + }, + "pascalcase": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "path-exists": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "pinkie-promise": "2.0.1" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "path-key": { + "version": "2.0.1", + "bundled": true, + "dev": true + }, + "path-parse": { + "version": "1.0.5", + "bundled": true, + "dev": true + }, + "path-type": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" + } + }, + "pify": { + "version": "2.3.0", + "bundled": true, + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "bundled": true, + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "pinkie": "2.0.4" + } + }, + "pkg-dir": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "find-up": "1.1.2" + }, + "dependencies": { + "find-up": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" + } + } + } + }, + "posix-character-classes": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, + "preserve": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, + "pseudomap": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "randomatic": { + "version": "1.1.7", + "bundled": true, + "dev": true, + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "read-pkg": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "load-json-file": "1.1.0", + "normalize-package-data": "2.4.0", + "path-type": "1.1.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "find-up": "1.1.2", + "read-pkg": "1.1.0" + }, + "dependencies": { + "find-up": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "requires": { + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" + } + } + } + }, + "regenerator-runtime": { + "version": "0.11.1", + "bundled": true, + "dev": true + }, + "regex-cache": { + "version": "0.4.4", + "bundled": true, + "dev": true, + "requires": { + "is-equal-shallow": "0.1.3" + } + }, + "regex-not": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "extend-shallow": "3.0.2", + "safe-regex": "1.1.0" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "repeat-element": { + "version": "1.1.2", + "bundled": true, + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "bundled": true, + "dev": true + }, + "repeating": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-finite": "1.0.2" + } + }, + "require-directory": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "resolve-from": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "resolve-url": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "ret": { + "version": "0.1.15", + "bundled": true, + "dev": true + }, + "right-align": { + "version": "0.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "align-text": "0.1.4" + } + }, + "rimraf": { + "version": "2.6.2", + "bundled": true, + "dev": true, + "requires": { + "glob": "7.1.2" + } + }, + "safe-regex": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "ret": "0.1.15" + } + }, + "semver": { + "version": "5.5.0", + "bundled": true, + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "set-value": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "split-string": "3.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "shebang-command": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "requires": { + "shebang-regex": "1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true + }, + "slide": { + "version": "1.1.6", + "bundled": true, + "dev": true + }, + "snapdragon": { + "version": "0.8.2", + "bundled": true, + "dev": true, + "requires": { + "base": "0.11.2", + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "map-cache": "0.2.2", + "source-map": "0.5.7", + "source-map-resolve": "0.5.1", + "use": "3.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "bundled": true, + "dev": true + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "bundled": true, + "dev": true, + "requires": { + "define-property": "1.0.0", + "isobject": "3.0.1", + "snapdragon-util": "3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "source-map": { + "version": "0.5.7", + "bundled": true, + "dev": true + }, + "source-map-resolve": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "atob": "2.0.3", + "decode-uri-component": "0.2.0", + "resolve-url": "0.2.1", + "source-map-url": "0.4.0", + "urix": "0.1.0" + } + }, + "source-map-url": { + "version": "0.4.0", + "bundled": true, + "dev": true + }, + "spawn-wrap": { + "version": "1.4.2", + "bundled": true, + "dev": true, + "requires": { + "foreground-child": "1.5.6", + "mkdirp": "0.5.1", + "os-homedir": "1.0.2", + "rimraf": "2.6.2", + "signal-exit": "3.0.2", + "which": "1.3.0" + } + }, + "spdx-correct": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "spdx-expression-parse": "3.0.0", + "spdx-license-ids": "3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.1.0", + "bundled": true, + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "spdx-exceptions": "2.1.0", + "spdx-license-ids": "3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "split-string": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "extend-shallow": "3.0.2" + } + }, + "static-extend": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "requires": { + "define-property": "0.2.5", + "object-copy": "0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "bundled": true, + "dev": true + } + } + }, + "string-width": { + "version": "2.1.1", + "bundled": true, + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-bom": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-utf8": "0.2.1" + } + }, + "strip-eof": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "supports-color": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "test-exclude": { + "version": "4.2.1", + "bundled": true, + "dev": true, + "requires": { + "arrify": "1.0.1", + "micromatch": "3.1.9", + "object-assign": "4.1.1", + "read-pkg-up": "1.0.1", + "require-main-filename": "1.0.1" + }, + "dependencies": { + "arr-diff": { + "version": "4.0.0", + "bundled": true, + "dev": true + }, + "array-unique": { + "version": "0.3.2", + "bundled": true, + "dev": true + }, + "braces": { + "version": "2.3.1", + "bundled": true, + "dev": true, + "requires": { + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "define-property": "1.0.0", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "kind-of": "6.0.2", + "repeat-element": "1.1.2", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "expand-brackets": { + "version": "2.1.4", + "bundled": true, + "dev": true, + "requires": { + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "bundled": true, + "dev": true + } + } + }, + "extglob": { + "version": "2.0.4", + "bundled": true, + "dev": true, + "requires": { + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "fill-range": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-number": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + }, + "micromatch": { + "version": "3.1.9", + "bundled": true, + "dev": true, + "requires": { + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.1", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.9", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + } + } + } + }, + "to-fast-properties": { + "version": "1.0.3", + "bundled": true, + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "to-regex": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "requires": { + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "regex-not": "1.0.2", + "safe-regex": "1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "bundled": true, + "dev": true, + "requires": { + "is-number": "3.0.0", + "repeat-string": "1.6.1" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + } + } + }, + "trim-right": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "uglify-js": { + "version": "2.8.29", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "source-map": "0.5.7", + "uglify-to-browserify": "1.0.2", + "yargs": "3.10.0" + }, + "dependencies": { + "yargs": { + "version": "3.10.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "camelcase": "1.2.1", + "cliui": "2.1.0", + "decamelize": "1.2.0", + "window-size": "0.1.0" + } + } + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "union-value": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "arr-union": "3.1.0", + "get-value": "2.0.6", + "is-extendable": "0.1.1", + "set-value": "0.4.3" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "set-value": { + "version": "0.4.3", + "bundled": true, + "dev": true, + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "to-object-path": "0.3.0" + } + } + } + }, + "unset-value": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "has-value": "0.3.1", + "isobject": "3.0.1" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "bundled": true, + "dev": true, + "requires": { + "get-value": "2.0.6", + "has-values": "0.1.4", + "isobject": "2.1.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "bundled": true, + "dev": true + }, + "isobject": { + "version": "3.0.1", + "bundled": true, + "dev": true + } + } + }, + "urix": { + "version": "0.1.0", + "bundled": true, + "dev": true + }, + "use": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } + } + }, + "validate-npm-package-license": { + "version": "3.0.3", + "bundled": true, + "dev": true, + "requires": { + "spdx-correct": "3.0.0", + "spdx-expression-parse": "3.0.0" + } + }, + "which": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "isexe": "2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "window-size": { + "version": "0.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "wordwrap": { + "version": "0.0.3", + "bundled": true, + "dev": true + }, + "wrap-ansi": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1" + }, + "dependencies": { + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + } + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "write-file-atomic": { + "version": "1.3.4", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "slide": "1.1.6" + } + }, + "y18n": { + "version": "3.2.1", + "bundled": true, + "dev": true + }, + "yallist": { + "version": "2.1.2", + "bundled": true, + "dev": true + }, + "yargs": { + "version": "11.1.0", + "bundled": true, + "dev": true, + "requires": { + "cliui": "4.0.0", + "decamelize": "1.2.0", + "find-up": "2.1.0", + "get-caller-file": "1.0.2", + "os-locale": "2.1.0", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "2.1.1", + "which-module": "2.0.0", + "y18n": "3.2.1", + "yargs-parser": "9.0.2" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "camelcase": { + "version": "4.1.0", + "bundled": true, + "dev": true + }, + "cliui": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "string-width": "2.1.1", + "strip-ansi": "4.0.0", + "wrap-ansi": "2.1.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + }, + "yargs-parser": { + "version": "9.0.2", + "bundled": true, + "dev": true, + "requires": { + "camelcase": "4.1.0" + } + } + } + }, + "yargs-parser": { + "version": "8.1.0", + "bundled": true, + "dev": true, + "requires": { + "camelcase": "4.1.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "bundled": true, + "dev": true + } + } + } + } + }, + "oauth-sign": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", + "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "requires": { + "copy-descriptor": "0.1.1", + "define-property": "0.2.5", + "kind-of": "3.2.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "requires": { + "kind-of": "3.2.2" + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "requires": { + "kind-of": "3.2.2" + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + } + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "object-keys": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.11.tgz", + "integrity": "sha1-xUYBd4rVYPEULODgG8yotW0TQm0=" + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "requires": { + "isobject": "3.0.1" + } + }, + "object.omit": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", + "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "dev": true, + "requires": { + "for-own": "0.1.5", + "is-extendable": "0.1.1" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "requires": { + "isobject": "3.0.1" + } + }, + "observable-to-promise": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/observable-to-promise/-/observable-to-promise-0.5.0.tgz", + "integrity": "sha1-yCjw8NxH6fhq+KSXfF1VB2znqR8=", + "dev": true, + "requires": { + "is-observable": "0.2.0", + "symbol-observable": "1.2.0" + }, + "dependencies": { + "is-observable": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-0.2.0.tgz", + "integrity": "sha1-s2ExHYPG5dcmyr9eJQsCNxBvWuI=", + "dev": true, + "requires": { + "symbol-observable": "0.2.4" + }, + "dependencies": { + "symbol-observable": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-0.2.4.tgz", + "integrity": "sha1-lag9smGG1q9+ehjb2XYKL4bQj0A=", + "dev": true + } + } + } + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1.0.2" + } + }, + "onetime": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", + "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", + "dev": true, + "requires": { + "mimic-fn": "1.2.0" + } + }, + "optimist": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", + "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", + "dev": true, + "requires": { + "minimist": "0.0.8", + "wordwrap": "0.0.3" + } + }, + "option-chain": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/option-chain/-/option-chain-1.0.0.tgz", + "integrity": "sha1-k41zvU4Xg/lI00AjZEraI2aeMPI=", + "dev": true + }, + "optionator": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", + "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", + "dev": true, + "requires": { + "deep-is": "0.1.3", + "fast-levenshtein": "2.0.6", + "levn": "0.3.0", + "prelude-ls": "1.1.2", + "type-check": "0.3.2", + "wordwrap": "1.0.0" + }, + "dependencies": { + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", + "dev": true + } + } + }, + "optjs": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/optjs/-/optjs-3.2.2.tgz", + "integrity": "sha1-aabOicRCpEQDFBrS+bNwvVu29O4=" + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-locale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "requires": { + "lcid": "1.0.0" + } + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "p-cancelable": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.3.0.tgz", + "integrity": "sha512-RVbZPLso8+jFeq1MfNvgXtCRED2raz/dKpacfTNxsx6pLEpEomM7gah6VeHSYV3+vo0OAi4MkArtQcWWXuQoyw==", + "dev": true + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-is-promise": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", + "integrity": "sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4=", + "dev": true + }, + "p-limit": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", + "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", + "dev": true, + "requires": { + "p-try": "1.0.0" + } + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "1.2.0" + } + }, + "p-timeout": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz", + "integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==", + "dev": true, + "requires": { + "p-finally": "1.0.0" + } + }, + "p-try": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "dev": true + }, + "package-hash": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-2.0.0.tgz", + "integrity": "sha1-eK4ybIngWk2BO2hgGXevBcANKg0=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "lodash.flattendeep": "4.4.0", + "md5-hex": "2.0.0", + "release-zalgo": "1.0.0" + } + }, + "package-json": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", + "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=", + "dev": true, + "requires": { + "got": "6.7.1", + "registry-auth-token": "3.3.2", + "registry-url": "3.1.0", + "semver": "5.5.0" + }, + "dependencies": { + "got": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", + "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", + "dev": true, + "requires": { + "create-error-class": "3.0.2", + "duplexer3": "0.1.4", + "get-stream": "3.0.0", + "is-redirect": "1.0.0", + "is-retry-allowed": "1.1.0", + "is-stream": "1.1.0", + "lowercase-keys": "1.0.0", + "safe-buffer": "5.1.1", + "timed-out": "4.0.1", + "unzip-response": "2.0.1", + "url-parse-lax": "1.0.0" + } + } + } + }, + "parse-glob": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", + "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", + "dev": true, + "requires": { + "glob-base": "0.3.0", + "is-dotfile": "1.0.3", + "is-extglob": "1.0.0", + "is-glob": "2.0.1" + }, + "dependencies": { + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + } + } + }, + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, + "requires": { + "error-ex": "1.3.1" + } + }, + "parse-ms": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-0.1.2.tgz", + "integrity": "sha1-3T+iXtbC78e93hKtm0bBY6opIk4=", + "dev": true + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=" + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=" + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "dev": true + }, + "path-to-regexp": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", + "integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=", + "dev": true, + "requires": { + "isarray": "0.0.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + } + } + }, + "path-type": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", + "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", + "requires": { + "pify": "3.0.0" + } + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" + }, + "pinkie": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-1.0.0.tgz", + "integrity": "sha1-Wkfyi6EBXQIBvae/DzWOR77Ix+Q=", + "dev": true + }, + "pinkie-promise": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-1.0.0.tgz", + "integrity": "sha1-0dpn9UglY7t89X8oauKCLs+/NnA=", + "dev": true, + "requires": { + "pinkie": "1.0.0" + } + }, + "pkg-conf": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", + "integrity": "sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "load-json-file": "4.0.0" + }, + "dependencies": { + "load-json-file": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", + "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" + } + }, + "parse-json": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", + "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", + "dev": true, + "requires": { + "error-ex": "1.3.1", + "json-parse-better-errors": "1.0.1" + } + } + } + }, + "pkg-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", + "dev": true, + "requires": { + "find-up": "2.1.0" + } + }, + "plur": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/plur/-/plur-2.1.2.tgz", + "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", + "dev": true, + "requires": { + "irregular-plurals": "1.4.0" + } + }, + "pluralize": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz", + "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==", + "dev": true + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" + }, + "postcss": { + "version": "6.0.19", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.19.tgz", + "integrity": "sha512-f13HRz0HtVwVaEuW6J6cOUCBLFtymhgyLPV7t4QEk2UD3twRI9IluDcQNdzQdBpiixkXj2OmzejhhTbSbDxNTg==", + "dev": true, + "requires": { + "chalk": "2.3.2", + "source-map": "0.6.1", + "supports-color": "5.3.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "power-assert": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/power-assert/-/power-assert-1.4.4.tgz", + "integrity": "sha1-kpXqdDcZb1pgH95CDwQmMRhtdRc=", + "requires": { + "define-properties": "1.1.2", + "empower": "1.2.3", + "power-assert-formatter": "1.4.1", + "universal-deep-strict-equal": "1.2.2", + "xtend": "4.0.1" + } + }, + "power-assert-context-formatter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/power-assert-context-formatter/-/power-assert-context-formatter-1.1.1.tgz", + "integrity": "sha1-7bo1LT7YpgMRTWZyZazOYNaJzN8=", + "requires": { + "core-js": "2.5.3", + "power-assert-context-traversal": "1.1.1" + } + }, + "power-assert-context-reducer-ast": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/power-assert-context-reducer-ast/-/power-assert-context-reducer-ast-1.1.2.tgz", + "integrity": "sha1-SEqZ4m9Jc/+IMuXFzHVnAuYJQXQ=", + "requires": { + "acorn": "4.0.13", + "acorn-es7-plugin": "1.1.7", + "core-js": "2.5.3", + "espurify": "1.7.0", + "estraverse": "4.2.0" + } + }, + "power-assert-context-traversal": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/power-assert-context-traversal/-/power-assert-context-traversal-1.1.1.tgz", + "integrity": "sha1-iMq8oNE7Y1nwfT0+ivppkmRXftk=", + "requires": { + "core-js": "2.5.3", + "estraverse": "4.2.0" + } + }, + "power-assert-formatter": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/power-assert-formatter/-/power-assert-formatter-1.4.1.tgz", + "integrity": "sha1-XcEl7VCj37HdomwZNH879Y7CiEo=", + "requires": { + "core-js": "2.5.3", + "power-assert-context-formatter": "1.1.1", + "power-assert-context-reducer-ast": "1.1.2", + "power-assert-renderer-assertion": "1.1.1", + "power-assert-renderer-comparison": "1.1.1", + "power-assert-renderer-diagram": "1.1.2", + "power-assert-renderer-file": "1.1.1" + } + }, + "power-assert-renderer-assertion": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/power-assert-renderer-assertion/-/power-assert-renderer-assertion-1.1.1.tgz", + "integrity": "sha1-y/wOd+AIao+Wrz8djme57n4ozpg=", + "requires": { + "power-assert-renderer-base": "1.1.1", + "power-assert-util-string-width": "1.1.1" + } + }, + "power-assert-renderer-base": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/power-assert-renderer-base/-/power-assert-renderer-base-1.1.1.tgz", + "integrity": "sha1-lqZQxv0F7hvB9mtUrWFELIs/Y+s=" + }, + "power-assert-renderer-comparison": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/power-assert-renderer-comparison/-/power-assert-renderer-comparison-1.1.1.tgz", + "integrity": "sha1-10Odl9hRVr5OMKAPL7WnJRTOPAg=", + "requires": { + "core-js": "2.5.3", + "diff-match-patch": "1.0.0", + "power-assert-renderer-base": "1.1.1", + "stringifier": "1.3.0", + "type-name": "2.0.2" + } + }, + "power-assert-renderer-diagram": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/power-assert-renderer-diagram/-/power-assert-renderer-diagram-1.1.2.tgz", + "integrity": "sha1-ZV+PcRk1qbbVQbhjJ2VHF8Y3qYY=", + "requires": { + "core-js": "2.5.3", + "power-assert-renderer-base": "1.1.1", + "power-assert-util-string-width": "1.1.1", + "stringifier": "1.3.0" + } + }, + "power-assert-renderer-file": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/power-assert-renderer-file/-/power-assert-renderer-file-1.1.1.tgz", + "integrity": "sha1-o34rvReMys0E5427eckv40kzxec=", + "requires": { + "power-assert-renderer-base": "1.1.1" + } + }, + "power-assert-util-string-width": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/power-assert-util-string-width/-/power-assert-util-string-width-1.1.1.tgz", + "integrity": "sha1-vmWet5N/3S5smncmjar2S9W3xZI=", + "requires": { + "eastasianwidth": "0.1.1" + } + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", + "dev": true + }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", + "dev": true + }, + "preserve": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", + "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", + "dev": true + }, + "prettier": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.11.1.tgz", + "integrity": "sha512-T/KD65Ot0PB97xTrG8afQ46x3oiVhnfGjGESSI9NWYcG92+OUPZKkwHqGWXH2t9jK1crnQjubECW0FuOth+hxw==", + "dev": true + }, + "pretty-ms": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-3.1.0.tgz", + "integrity": "sha1-6crJx2v27lL+lC3ZxsQhMVOxKIE=", + "dev": true, + "requires": { + "parse-ms": "1.0.1", + "plur": "2.1.2" + }, + "dependencies": { + "parse-ms": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-1.0.1.tgz", + "integrity": "sha1-VjRtR0nXjyNDDKDHE4UK75GqNh0=", + "dev": true + } + } + }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" + }, + "progress": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.0.tgz", + "integrity": "sha1-ihvjZr+Pwj2yvSPxDG/pILQ4nR8=", + "dev": true + }, + "protobufjs": { + "version": "6.8.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.6.tgz", + "integrity": "sha512-eH2OTP9s55vojr3b7NBaF9i4WhWPkv/nq55nznWNp/FomKrLViprUcqnBjHph2tFQ+7KciGPTPsVWGz0SOhL0Q==", + "requires": { + "@protobufjs/aspromise": "1.1.2", + "@protobufjs/base64": "1.1.2", + "@protobufjs/codegen": "2.0.4", + "@protobufjs/eventemitter": "1.1.0", + "@protobufjs/fetch": "1.1.0", + "@protobufjs/float": "1.0.2", + "@protobufjs/inquire": "1.1.0", + "@protobufjs/path": "1.1.2", + "@protobufjs/pool": "1.1.0", + "@protobufjs/utf8": "1.1.0", + "@types/long": "3.0.32", + "@types/node": "8.9.5", + "long": "4.0.0" + } + }, + "proxyquire": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/proxyquire/-/proxyquire-1.8.0.tgz", + "integrity": "sha1-AtUUpb7ZhvBMuyCTrxZ0FTX3ntw=", + "dev": true, + "requires": { + "fill-keys": "1.0.2", + "module-not-found-error": "1.0.1", + "resolve": "1.1.7" + } + }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" + }, + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + }, + "qs": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", + "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" + }, + "query-string": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", + "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", + "dev": true, + "requires": { + "decode-uri-component": "0.2.0", + "object-assign": "4.1.1", + "strict-uri-encode": "1.1.0" + } + }, + "randomatic": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", + "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", + "dev": true, + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "rc": { + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.6.tgz", + "integrity": "sha1-6xiYnG1PTxYsOZ953dKfODVWgJI=", + "dev": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "read-pkg": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", + "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", + "dev": true, + "requires": { + "load-json-file": "2.0.0", + "normalize-package-data": "2.4.0", + "path-type": "2.0.0" + }, + "dependencies": { + "path-type": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", + "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", + "dev": true, + "requires": { + "pify": "2.3.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "read-pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", + "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "2.0.0" + } + }, + "readable-stream": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", + "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "readdirp": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", + "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "minimatch": "3.0.4", + "readable-stream": "2.3.5", + "set-immediate-shim": "1.0.1" + } + }, + "redent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", + "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", + "dev": true, + "requires": { + "indent-string": "2.1.0", + "strip-indent": "1.0.1" + }, + "dependencies": { + "indent-string": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", + "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", + "dev": true, + "requires": { + "repeating": "2.0.1" + } + } + } + }, + "regenerate": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.3.3.tgz", + "integrity": "sha512-jVpo1GadrDAK59t/0jRx5VxYWQEDkkEKi6+HjE3joFVLfDOh9Xrdh0dF1eSq+BI/SwvTQ44gSscJ8N5zYL61sg==", + "dev": true + }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "dev": true + }, + "regex-cache": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", + "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", + "dev": true, + "requires": { + "is-equal-shallow": "0.1.3" + } + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "requires": { + "extend-shallow": "3.0.2", + "safe-regex": "1.1.0" + } + }, + "regexpp": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-1.0.1.tgz", + "integrity": "sha512-8Ph721maXiOYSLtaDGKVmDn5wdsNaF6Px85qFNeMPQq0r8K5Y10tgP6YuR65Ws35n4DvzFcCxEnRNBIXQunzLw==", + "dev": true + }, + "regexpu-core": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", + "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", + "dev": true, + "requires": { + "regenerate": "1.3.3", + "regjsgen": "0.2.0", + "regjsparser": "0.1.5" + } + }, + "registry-auth-token": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz", + "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", + "dev": true, + "requires": { + "rc": "1.2.6", + "safe-buffer": "5.1.1" + } + }, + "registry-url": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", + "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", + "dev": true, + "requires": { + "rc": "1.2.6" + } + }, + "regjsgen": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", + "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", + "dev": true + }, + "regjsparser": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", + "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", + "dev": true, + "requires": { + "jsesc": "0.5.0" + } + }, + "release-zalgo": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", + "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", + "dev": true, + "requires": { + "es6-error": "4.1.1" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "repeat-element": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", + "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=" + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "dev": true, + "requires": { + "is-finite": "1.0.2" + } + }, + "request": { + "version": "2.85.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.85.0.tgz", + "integrity": "sha512-8H7Ehijd4js+s6wuVPLjwORxD4zeuyjYugprdOXlPSqaApmL/QOy+EB/beICHVCHkGMKNh5rvihb5ov+IDw4mg==", + "requires": { + "aws-sign2": "0.7.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.6", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.3.2", + "har-validator": "5.0.3", + "hawk": "6.0.2", + "http-signature": "1.2.0", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.18", + "oauth-sign": "0.8.2", + "performance-now": "2.1.0", + "qs": "6.5.1", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.4", + "tunnel-agent": "0.6.0", + "uuid": "3.2.1" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "require-precompiled": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/require-precompiled/-/require-precompiled-0.1.0.tgz", + "integrity": "sha1-WhtS63Dr7UPrmC6XTIWrWVceVvo=", + "dev": true + }, + "require-uncached": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", + "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", + "dev": true, + "requires": { + "caller-path": "0.1.0", + "resolve-from": "1.0.1" + }, + "dependencies": { + "resolve-from": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz", + "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=", + "dev": true + } + } + }, + "requizzle": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.1.tgz", + "integrity": "sha1-aUPDUwxNmn5G8c3dUcFY/GcM294=", + "dev": true, + "requires": { + "underscore": "1.6.0" + }, + "dependencies": { + "underscore": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", + "integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=", + "dev": true + } + } + }, + "resolve": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", + "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", + "dev": true + }, + "resolve-cwd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", + "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", + "dev": true, + "requires": { + "resolve-from": "3.0.0" + } + }, + "resolve-from": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", + "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", + "dev": true + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=" + }, + "responselike": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", + "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", + "dev": true, + "requires": { + "lowercase-keys": "1.0.0" + } + }, + "restore-cursor": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", + "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", + "dev": true, + "requires": { + "onetime": "2.0.1", + "signal-exit": "3.0.2" + } + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" + }, + "retry-axios": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-0.3.2.tgz", + "integrity": "sha512-jp4YlI0qyDFfXiXGhkCOliBN1G7fRH03Nqy8YdShzGqbY5/9S2x/IR6C88ls2DFkbWuL3ASkP7QD3pVrNpPgwQ==" + }, + "right-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", + "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "dev": true, + "optional": true, + "requires": { + "align-text": "0.1.4" + } + }, + "rimraf": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "dev": true, + "requires": { + "glob": "7.1.2" + } + }, + "run-async": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", + "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", + "dev": true, + "requires": { + "is-promise": "2.1.0" + } + }, + "rx-lite": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz", + "integrity": "sha1-Cx4Rr4vESDbwSmQH6S2kJGe3lEQ=", + "dev": true + }, + "rx-lite-aggregates": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz", + "integrity": "sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74=", + "dev": true, + "requires": { + "rx-lite": "4.0.8" + } + }, + "safe-buffer": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "requires": { + "ret": "0.1.15" + } + }, + "samsam": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.3.0.tgz", + "integrity": "sha512-1HwIYD/8UlOtFS3QO3w7ey+SdSDFE4HRNLZoZRYVQefrOY3l17epswImeB1ijgJFQJodIaHcwkp3r/myBjFVbg==", + "dev": true + }, + "sanitize-html": { + "version": "1.18.2", + "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.18.2.tgz", + "integrity": "sha512-52ThA+Z7h6BnvpSVbURwChl10XZrps5q7ytjTwWcIe9bmJwnVP6cpEVK2NvDOUhGupoqAvNbUz3cpnJDp4+/pg==", + "dev": true, + "requires": { + "chalk": "2.3.2", + "htmlparser2": "3.9.2", + "lodash.clonedeep": "4.5.0", + "lodash.escaperegexp": "4.1.2", + "lodash.isplainobject": "4.0.6", + "lodash.isstring": "4.0.1", + "lodash.mergewith": "4.6.1", + "postcss": "6.0.19", + "srcset": "1.0.0", + "xtend": "4.0.1" + } + }, + "semver": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "dev": true + }, + "semver-diff": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", + "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", + "dev": true, + "requires": { + "semver": "5.5.0" + } + }, + "serialize-error": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz", + "integrity": "sha1-ULZ51WNc34Rme9yOWa9OW4HV9go=", + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "set-immediate-shim": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", + "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", + "dev": true + }, + "set-value": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", + "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "split-string": "3.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + } + } + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "sinon": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-4.3.0.tgz", + "integrity": "sha512-pmf05hFgEZUS52AGJcsVjOjqAyJW2yo14cOwVYvzCyw7+inv06YXkLyW75WG6X6p951lzkoKh51L2sNbR9CDvw==", + "dev": true, + "requires": { + "@sinonjs/formatio": "2.0.0", + "diff": "3.5.0", + "lodash.get": "4.4.2", + "lolex": "2.3.2", + "nise": "1.3.1", + "supports-color": "5.3.0", + "type-detect": "4.0.8" + } + }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=" + }, + "slice-ansi": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-1.0.0.tgz", + "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0" + }, + "dependencies": { + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + } + } + }, + "slide": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz", + "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=", + "dev": true + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "requires": { + "base": "0.11.2", + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "map-cache": "0.2.2", + "source-map": "0.5.7", + "source-map-resolve": "0.5.1", + "use": "3.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "requires": { + "define-property": "1.0.0", + "isobject": "3.0.1", + "snapdragon-util": "3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "requires": { + "is-descriptor": "1.0.2" + } + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "sntp": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", + "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", + "requires": { + "hoek": "4.2.1" + } + }, + "sort-keys": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", + "integrity": "sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg=", + "dev": true, + "requires": { + "is-plain-obj": "1.1.0" + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" + }, + "source-map-resolve": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.1.tgz", + "integrity": "sha512-0KW2wvzfxm8NCTb30z0LMNyPqWCdDGE2viwzUaucqJdkTRXtZiSY3I+2A6nVAjmdOy0I4gU8DwnVVGsk9jvP2A==", + "requires": { + "atob": "2.0.3", + "decode-uri-component": "0.2.0", + "resolve-url": "0.2.1", + "source-map-url": "0.4.0", + "urix": "0.1.0" + } + }, + "source-map-support": { + "version": "0.5.4", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", + "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", + "dev": true, + "requires": { + "source-map": "0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "source-map-url": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=" + }, + "spdx-correct": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz", + "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", + "dev": true, + "requires": { + "spdx-expression-parse": "3.0.0", + "spdx-license-ids": "3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz", + "integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "dev": true, + "requires": { + "spdx-exceptions": "2.1.0", + "spdx-license-ids": "3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz", + "integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA==", + "dev": true + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "requires": { + "extend-shallow": "3.0.2" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "srcset": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/srcset/-/srcset-1.0.0.tgz", + "integrity": "sha1-pWad4StC87HV6D7QPHEEb8SPQe8=", + "dev": true, + "requires": { + "array-uniq": "1.0.3", + "number-is-nan": "1.0.1" + } + }, + "sshpk": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", + "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + } + }, + "stack-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.1.tgz", + "integrity": "sha1-1PM6tU6OOHeLDKXP07OvsS22hiA=", + "dev": true + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "requires": { + "define-property": "0.2.5", + "object-copy": "0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "requires": { + "is-descriptor": "0.1.6" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "requires": { + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + } + }, + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + } + } + }, + "stream-shift": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", + "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=" + }, + "strict-uri-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=", + "dev": true + }, + "string": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/string/-/string-3.3.3.tgz", + "integrity": "sha1-XqIRzZLSKOGEKUmQpsyXs2anfLA=", + "dev": true + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "stringifier": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/stringifier/-/stringifier-1.3.0.tgz", + "integrity": "sha1-3vGDQvaTPbDy2/yaoCF1tEjBeVk=", + "requires": { + "core-js": "2.5.3", + "traverse": "0.6.6", + "type-name": "2.0.2" + } + }, + "stringstream": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", + "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=" + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-bom-buf": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz", + "integrity": "sha1-HLRar1dTD0yvhsf3UXnSyaUd1XI=", + "dev": true, + "requires": { + "is-utf8": "0.2.1" + } + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", + "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", + "dev": true, + "requires": { + "get-stdin": "4.0.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "superagent": { + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.2.tgz", + "integrity": "sha512-gVH4QfYHcY3P0f/BZzavLreHW3T1v7hG9B+hpMQotGQqurOvhv87GcMCd6LWySmBuf+BDR44TQd0aISjVHLeNQ==", + "dev": true, + "requires": { + "component-emitter": "1.2.1", + "cookiejar": "2.1.1", + "debug": "3.1.0", + "extend": "3.0.1", + "form-data": "2.3.2", + "formidable": "1.2.0", + "methods": "1.1.2", + "mime": "1.6.0", + "qs": "6.5.1", + "readable-stream": "2.3.5" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "dev": true + } + } + }, + "supertap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supertap/-/supertap-1.0.0.tgz", + "integrity": "sha512-HZJ3geIMPgVwKk2VsmO5YHqnnJYl6bV5A9JW2uzqV43WmpgliNEYbuvukfor7URpaqpxuw3CfZ3ONdVbZjCgIA==", + "dev": true, + "requires": { + "arrify": "1.0.1", + "indent-string": "3.2.0", + "js-yaml": "3.11.0", + "serialize-error": "2.1.0", + "strip-ansi": "4.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "supertest": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/supertest/-/supertest-3.0.0.tgz", + "integrity": "sha1-jUu2j9GDDuBwM7HFpamkAhyWUpY=", + "dev": true, + "requires": { + "methods": "1.1.2", + "superagent": "3.8.2" + } + }, + "supports-color": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", + "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "dev": true, + "requires": { + "has-flag": "3.0.0" + }, + "dependencies": { + "has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + } + } + }, + "symbol-observable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", + "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==", + "dev": true + }, + "table": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/table/-/table-4.0.2.tgz", + "integrity": "sha512-UUkEAPdSGxtRpiV9ozJ5cMTtYiqz7Ni1OGqLXRCynrvzdtR1p+cfOWe2RJLwvUG8hNanaSRjecIqwOjqeatDsA==", + "dev": true, + "requires": { + "ajv": "5.5.2", + "ajv-keywords": "2.1.1", + "chalk": "2.3.2", + "lodash": "4.17.5", + "slice-ansi": "1.0.0", + "string-width": "2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "taffydb": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.6.2.tgz", + "integrity": "sha1-fLy2S1oUG2ou/CxdLGe04VCyomg=", + "dev": true + }, + "term-size": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", + "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", + "dev": true, + "requires": { + "execa": "0.7.0" + } + }, + "text-encoding": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.6.4.tgz", + "integrity": "sha1-45mpgiV6J22uQou5KEXLcb3CbRk=", + "dev": true + }, + "text-table": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", + "dev": true + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "through2": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", + "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", + "requires": { + "readable-stream": "2.3.5", + "xtend": "4.0.1" + } + }, + "time-zone": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/time-zone/-/time-zone-1.0.0.tgz", + "integrity": "sha1-mcW/VZWJZq9tBtg73zgA3IL67F0=", + "dev": true + }, + "timed-out": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=", + "dev": true + }, + "tmp": { + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", + "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", + "dev": true, + "requires": { + "os-tmpdir": "1.0.2" + } + }, + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "dev": true + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "requires": { + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "regex-not": "1.0.2", + "safe-regex": "1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "requires": { + "is-number": "3.0.0", + "repeat-string": "1.6.1" + } + }, + "tough-cookie": { + "version": "2.3.4", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", + "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", + "requires": { + "punycode": "1.4.1" + } + }, + "traverse": { + "version": "0.6.6", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", + "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=" + }, + "trim-newlines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", + "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", + "dev": true + }, + "trim-off-newlines": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz", + "integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=", + "dev": true + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "dev": true + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "optional": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", + "dev": true, + "requires": { + "prelude-ls": "1.1.2" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "type-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/type-name/-/type-name-2.0.2.tgz", + "integrity": "sha1-7+fUEj2KxSr/9/QMfk3sUmYAj7Q=" + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "uglify-js": { + "version": "2.8.29", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "dev": true, + "optional": true, + "requires": { + "source-map": "0.5.7", + "uglify-to-browserify": "1.0.2", + "yargs": "3.10.0" + }, + "dependencies": { + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "dev": true, + "optional": true + }, + "cliui": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", + "dev": true, + "optional": true, + "requires": { + "center-align": "0.1.3", + "right-align": "0.1.3", + "wordwrap": "0.0.2" + } + }, + "window-size": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", + "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", + "dev": true, + "optional": true + }, + "wordwrap": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", + "dev": true, + "optional": true + }, + "yargs": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "dev": true, + "optional": true, + "requires": { + "camelcase": "1.2.1", + "cliui": "2.1.0", + "decamelize": "1.2.0", + "window-size": "0.1.0" + } + } + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", + "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", + "dev": true, + "optional": true + }, + "uid2": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/uid2/-/uid2-0.0.3.tgz", + "integrity": "sha1-SDEm4Rd03y9xuLY53NeZw3YWK4I=", + "dev": true + }, + "underscore": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", + "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=", + "dev": true + }, + "underscore-contrib": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/underscore-contrib/-/underscore-contrib-0.3.0.tgz", + "integrity": "sha1-ZltmwkeD+PorGMn4y7Dix9SMJsc=", + "dev": true, + "requires": { + "underscore": "1.6.0" + }, + "dependencies": { + "underscore": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", + "integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=", + "dev": true + } + } + }, + "union-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", + "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "requires": { + "arr-union": "3.1.0", + "get-value": "2.0.6", + "is-extendable": "0.1.1", + "set-value": "0.4.3" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "requires": { + "is-extendable": "0.1.1" + } + }, + "set-value": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", + "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", + "requires": { + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "to-object-path": "0.3.0" + } + } + } + }, + "unique-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", + "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", + "dev": true, + "requires": { + "crypto-random-string": "1.0.0" + } + }, + "unique-temp-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unique-temp-dir/-/unique-temp-dir-1.0.0.tgz", + "integrity": "sha1-bc6VsmgcoAPuv7MEpBX5y6vMU4U=", + "dev": true, + "requires": { + "mkdirp": "0.5.1", + "os-tmpdir": "1.0.2", + "uid2": "0.0.3" + } + }, + "universal-deep-strict-equal": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/universal-deep-strict-equal/-/universal-deep-strict-equal-1.2.2.tgz", + "integrity": "sha1-DaSsL3PP95JMgfpN4BjKViyisKc=", + "requires": { + "array-filter": "1.0.0", + "indexof": "0.0.1", + "object-keys": "1.0.11" + } + }, + "universalify": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz", + "integrity": "sha1-+nG63UQ3r0wUiEHjs7Fl+enlkLc=", + "dev": true + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "requires": { + "has-value": "0.3.1", + "isobject": "3.0.1" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "requires": { + "get-value": "2.0.6", + "has-values": "0.1.4", + "isobject": "2.1.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=" + } + } + }, + "unzip-response": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", + "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=", + "dev": true + }, + "update-notifier": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.3.0.tgz", + "integrity": "sha1-TognpruRUUCrCTVZ1wFOPruDdFE=", + "dev": true, + "requires": { + "boxen": "1.3.0", + "chalk": "2.3.2", + "configstore": "3.1.1", + "import-lazy": "2.1.0", + "is-installed-globally": "0.1.0", + "is-npm": "1.0.0", + "latest-version": "3.1.0", + "semver-diff": "2.1.0", + "xdg-basedir": "3.0.0" + } + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=" + }, + "url-parse-lax": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", + "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", + "dev": true, + "requires": { + "prepend-http": "1.0.4" + } + }, + "url-to-options": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz", + "integrity": "sha1-FQWgOiiaSMvXpDTvuu7FBV9WM6k=", + "dev": true + }, + "urlgrey": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/urlgrey/-/urlgrey-0.4.4.tgz", + "integrity": "sha1-iS/pWWCAXoVRnxzUOJ8stMu3ZS8=", + "dev": true + }, + "use": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.0.tgz", + "integrity": "sha512-6UJEQM/L+mzC3ZJNM56Q4DFGLX/evKGRg15UJHGB9X5j5Z3AFbgZvjUh2yq/UJUY4U5dh7Fal++XbNg1uzpRAw==", + "requires": { + "kind-of": "6.0.2" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "uuid": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz", + "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==" + }, + "validate-npm-package-license": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz", + "integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==", + "dev": true, + "requires": { + "spdx-correct": "3.0.0", + "spdx-expression-parse": "3.0.0" + } + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "1.3.0" + } + }, + "well-known-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/well-known-symbols/-/well-known-symbols-1.0.0.tgz", + "integrity": "sha1-c8eK6Bp3Jqj6WY4ogIAcixYiVRg=", + "dev": true + }, + "which": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", + "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", + "dev": true, + "requires": { + "isexe": "2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "widest-line": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.0.tgz", + "integrity": "sha1-AUKk6KJD+IgsAjOqDgKBqnYVInM=", + "dev": true, + "requires": { + "string-width": "2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "window-size": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", + "integrity": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=" + }, + "wordwrap": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", + "dev": true + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + }, + "write": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz", + "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", + "dev": true, + "requires": { + "mkdirp": "0.5.1" + } + }, + "write-file-atomic": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", + "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "signal-exit": "3.0.2" + } + }, + "write-json-file": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/write-json-file/-/write-json-file-2.3.0.tgz", + "integrity": "sha1-K2TIozAE1UuGmMdtWFp3zrYdoy8=", + "dev": true, + "requires": { + "detect-indent": "5.0.0", + "graceful-fs": "4.1.11", + "make-dir": "1.2.0", + "pify": "3.0.0", + "sort-keys": "2.0.0", + "write-file-atomic": "2.3.0" + }, + "dependencies": { + "detect-indent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz", + "integrity": "sha1-OHHMCmoALow+Wzz38zYmRnXwa50=", + "dev": true + } + } + }, + "write-pkg": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/write-pkg/-/write-pkg-3.1.0.tgz", + "integrity": "sha1-AwqZlMyZk9JbTnWp8aGSNgcpHOk=", + "dev": true, + "requires": { + "sort-keys": "2.0.0", + "write-json-file": "2.3.0" + } + }, + "xdg-basedir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", + "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=", + "dev": true + }, + "xmlcreate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-1.0.2.tgz", + "integrity": "sha1-+mv3YqYKQT+z3Y9LA8WyaSONMI8=", + "dev": true + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=" + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" + }, + "yargs": { + "version": "3.32.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", + "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", + "requires": { + "camelcase": "2.1.1", + "cliui": "3.2.0", + "decamelize": "1.2.0", + "os-locale": "1.4.0", + "string-width": "1.0.2", + "window-size": "0.1.4", + "y18n": "3.2.1" + } + }, + "yargs-parser": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-9.0.2.tgz", + "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", + "dev": true, + "requires": { + "camelcase": "4.1.0" + }, + "dependencies": { + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + } + } + } + } +} diff --git a/packages/google-container/package.json b/packages/google-container/package.json index b21d5dc752c..4cbf94d24b6 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -31,7 +31,8 @@ "contributors": [ "Alexander Fenster ", "Ethan Bao ", - "Google API Publisher " + "Google API Publisher ", + "greenkeeper[bot] " ], "scripts": { "test": "repo-tools test run --cmd npm -- run cover", @@ -50,7 +51,7 @@ "lodash.merge": "^4.6.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "^2.1.3", + "@google-cloud/nodejs-repo-tools": "^2.2.4", "async": "^2.6.0", "codecov": "^3.0.0", "eslint": "^4.13.1", diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json new file mode 100644 index 00000000000..3b6d00e41b4 --- /dev/null +++ b/packages/google-container/samples/package.json @@ -0,0 +1,25 @@ +{ + "name": "nodejs-docs-samples-container", + "version": "0.0.1", + "license": "Apache-2.0", + "author": "Google Inc.", + "engines": { + "node": ">=4.0.0" + }, + "repository": "googleapis/nodejs-cloud-container", + "private": true, + "semistandard": { + "ignore": [ + "node_modules" + ] + }, + "scripts": { + "test": "node -e 'console.log(`no tests`);'" + }, + "dependencies": { + "@google-cloud/container": "0.1.0" + }, + "devDependencies": { + "@google-cloud/nodejs-repo-tools": "2.2.4" + } +} diff --git a/packages/google-container/samples/quickstart.js b/packages/google-container/samples/quickstart.js index 157e72344d2..1e8218e282e 100644 --- a/packages/google-container/samples/quickstart.js +++ b/packages/google-container/samples/quickstart.js @@ -1,20 +1,22 @@ -// Copyright 2017, Google LLC All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// 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. +/** + * Copyright 2017, Google, Inc. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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. + */ 'use strict'; -const container = require('../src'); +// [START container_quickstart] +const container = require('@google-cloud/container'); if ( !process.env.GCLOUD_PROJECT || @@ -24,19 +26,25 @@ if ( 'Usage: GCLOUD_PROJECT= GOOGLE_APPLICATION_CREDENTIALS= node #{$0}' ); } -var projectId = process.env.GCLOUD_PROJECT; -var client = new container.v1.ClusterManagerClient({ +const client = new container.v1.ClusterManagerClient({ // optional auth parameters. }); -var projectId2 = projectId; -var zone = 'us-central1-a'; -var request = { - projectId: projectId2, +const projectId = process.env.GCLOUD_PROJECT; +const zone = 'us-central1-a'; +const request = { + projectId: projectId, zone: zone, }; -client.listClusters(request).then(responses => { - var response = responses[0]; - console.log(response); -}); + +client + .listClusters(request) + .then(responses => { + const response = responses[0]; + console.log(response); + }) + .catch(err => { + console.error('ERROR:', err); + }); +// [END container_quickstart] From 627310afa2415c03212fd9a5d5d4fdeeb8796521 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 16 Mar 2018 15:37:43 -0700 Subject: [PATCH 019/371] chore: setup nightly build in CircleCI (#17) * chore: setup nighty build in CircleCI * attempting to setup nightly builds * a script to detect workflow name * use the real values from CircleCI API * reverting test changes to circle config - now ready to go --- .../google-container/.circleci/config.yml | 47 +++++++++------- .../.circleci/get_workflow_name.py | 53 +++++++++++++++++++ 2 files changed, 81 insertions(+), 19 deletions(-) create mode 100644 packages/google-container/.circleci/get_workflow_name.py diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index a2cfff50fd3..7e8d0379f07 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -1,21 +1,8 @@ -unit_tests: - steps: &unit_tests - - checkout - - run: - name: Install modules and dependencies. - command: npm install - - run: - name: Run unit tests. - command: npm test - - run: - name: Submit coverage data to codecov. - command: node_modules/.bin/codecov - when: always version: 2 workflows: version: 2 tests: - jobs: + jobs: &workflow_jobs - node4: filters: tags: @@ -67,16 +54,35 @@ workflows: ignore: /.*/ tags: only: '/^v[\d.]+$/' + nightly: + triggers: + - schedule: + cron: 0 7 * * * + filters: + branches: + only: master + jobs: *workflow_jobs jobs: node4: docker: - image: 'node:4' user: node - steps: + steps: &unit_tests_steps - checkout + - run: &remove_package_lock + name: Remove package-lock.json if needed. + command: | + WORKFLOW_NAME=`python .circleci/get_workflow_name.py` + echo "Workflow name: $WORKFLOW_NAME" + if [ "$WORKFLOW_NAME" = "nightly" ]; then + echo "Nightly build detected, removing package-lock.json" + rm -f package-lock.json samples/package-lock.json + else + echo "Not a nightly build, skipping this step." + fi - run: name: Install modules and dependencies. - command: npm install --unsafe-perm + command: npm install - run: name: Run unit tests. command: npm test @@ -88,23 +94,24 @@ jobs: docker: - image: 'node:6' user: node - steps: *unit_tests + steps: *unit_tests_steps node8: docker: - image: 'node:8' user: node - steps: *unit_tests + steps: *unit_tests_steps node9: docker: - image: 'node:9' user: node - steps: *unit_tests + steps: *unit_tests_steps lint: docker: - image: 'node:8' user: node steps: - checkout + - run: *remove_package_lock - run: name: Install modules and dependencies. command: | @@ -133,6 +140,7 @@ jobs: user: node steps: - checkout + - run: *remove_package_lock - run: name: Install modules and dependencies. command: npm install @@ -145,6 +153,7 @@ jobs: user: node steps: - checkout + - run: *remove_package_lock - run: name: Decrypt credentials. command: | diff --git a/packages/google-container/.circleci/get_workflow_name.py b/packages/google-container/.circleci/get_workflow_name.py new file mode 100644 index 00000000000..44df669c150 --- /dev/null +++ b/packages/google-container/.circleci/get_workflow_name.py @@ -0,0 +1,53 @@ +""" +Get workflow name for the current build using CircleCI API. +Would be great if this information is available in one of +CircleCI environment variables, but it's not there. +https://circleci.ideas.aha.io/ideas/CCI-I-295 +""" + +import json +import os +import sys +import urllib2 + + +def main(): + try: + username = os.environ['CIRCLE_PROJECT_USERNAME'] + reponame = os.environ['CIRCLE_PROJECT_REPONAME'] + build_num = os.environ['CIRCLE_BUILD_NUM'] + except: + sys.stderr.write( + 'Looks like we are not inside CircleCI container. Exiting...\n') + return 1 + + try: + request = urllib2.Request( + "https://circleci.com/api/v1.1/project/github/%s/%s/%s" % + (username, reponame, build_num), + headers={"Accept": "application/json"}) + contents = urllib2.urlopen(request).read() + except: + sys.stderr.write('Cannot query CircleCI API. Exiting...\n') + return 1 + + try: + build_info = json.loads(contents) + except: + sys.stderr.write( + 'Cannot parse JSON received from CircleCI API. Exiting...\n') + return 1 + + try: + workflow_name = build_info['workflows']['workflow_name'] + except: + sys.stderr.write( + 'Cannot get workflow name from CircleCI build info. Exiting...\n') + return 1 + + print workflow_name + return 0 + + +retval = main() +exit(retval) From ff0d18e15c35c9a3c7cacc9ee0025d462830dfb9 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Mon, 19 Mar 2018 14:30:15 -0700 Subject: [PATCH 020/371] Add copyright and license to get_workflow_name.py (#21) * Add copyright and license to get_workflow_name.py --- .../.circleci/get_workflow_name.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/google-container/.circleci/get_workflow_name.py b/packages/google-container/.circleci/get_workflow_name.py index 44df669c150..ff6b58fd24f 100644 --- a/packages/google-container/.circleci/get_workflow_name.py +++ b/packages/google-container/.circleci/get_workflow_name.py @@ -1,3 +1,17 @@ +# Copyright 2018 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + """ Get workflow name for the current build using CircleCI API. Would be great if this information is available in one of From 0c76d853dd49017f78020d569b2620c360dc42bb Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 27 Mar 2018 18:10:57 -0700 Subject: [PATCH 021/371] chore: workaround for repo-tools EPERM (#22) --- packages/google-container/.circleci/config.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 7e8d0379f07..369299a65df 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -82,7 +82,12 @@ jobs: fi - run: name: Install modules and dependencies. - command: npm install + command: |- + npm install + repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools" + if ! test -x "$repo_tools"; then + chmod +x "$repo_tools" + fi - run: name: Run unit tests. command: npm test @@ -117,6 +122,10 @@ jobs: command: | mkdir -p /home/node/.npm-global npm install + repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools" + if ! test -x "$repo_tools"; then + chmod +x "$repo_tools" + fi npm link environment: NPM_CONFIG_PREFIX: /home/node/.npm-global @@ -143,7 +152,12 @@ jobs: - run: *remove_package_lock - run: name: Install modules and dependencies. - command: npm install + command: |- + npm install + repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools" + if ! test -x "$repo_tools"; then + chmod +x "$repo_tools" + fi - run: name: Build documentation. command: npm run docs From abd679c6225727f1f1cf96e094e33e9e100c2a9a Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 28 Mar 2018 18:46:17 -0700 Subject: [PATCH 022/371] chore: one more workaround for repo-tools EPERM (#23) --- packages/google-container/.circleci/config.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 369299a65df..f6e953acd03 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -176,7 +176,12 @@ jobs: -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" - run: name: Install modules and dependencies. - command: npm install + command: |- + npm install + repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools" + if ! test -x "$repo_tools"; then + chmod +x "$repo_tools" + fi - run: name: Run system tests. command: npm run system-test From 56b73052e91cbc4f3be07a492c2b45e2ae06b3be Mon Sep 17 00:00:00 2001 From: Dave Gramlich Date: Tue, 1 May 2018 17:09:17 -0400 Subject: [PATCH 023/371] v0.2.0 (#20) --- packages/google-container/package-lock.json | 20 +++++++++---------- packages/google-container/package.json | 2 +- .../google-container/samples/package.json | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 96a1d61fe06..26543c47df0 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -1,6 +1,6 @@ { "name": "@google-cloud/container", - "version": "0.1.0", + "version": "0.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1901,7 +1901,7 @@ }, "@types/node": { "version": "8.9.5", - "resolved": "http://registry.npmjs.org/@types/node/-/node-8.9.5.tgz", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.9.5.tgz", "integrity": "sha512-jRHfWsvyMtXdbhnz5CVHxaBgnV6duZnPlQuRSo/dm/GnmikNcmZhxIES4E9OZjUmQ8C+HCl4KJux+cXN/ErGDQ==" }, "acorn": { @@ -8599,9 +8599,9 @@ "dev": true }, "nise": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/nise/-/nise-1.3.1.tgz", - "integrity": "sha512-kIH3X5YCj1vvj/32zDa9KNgzvfZd51ItGbiaCbtYhpnsCedLo0tIkb9zl169a41ATzF4z7kwMLz35XXDypma3g==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/nise/-/nise-1.3.2.tgz", + "integrity": "sha512-KPKb+wvETBiwb4eTwtR/OsA2+iijXP+VnlSFYJo3EHjm2yjek1NWxHOUQat3i7xNLm1Bm18UA5j5Wor0yO2GtA==", "dev": true, "requires": { "@sinonjs/formatio": "2.0.0", @@ -11946,9 +11946,9 @@ "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" }, "postcss": { - "version": "6.0.19", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.19.tgz", - "integrity": "sha512-f13HRz0HtVwVaEuW6J6cOUCBLFtymhgyLPV7t4QEk2UD3twRI9IluDcQNdzQdBpiixkXj2OmzejhhTbSbDxNTg==", + "version": "6.0.20", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.20.tgz", + "integrity": "sha512-Opr6usW30Iy0xEDrJywDckRxtylfO7gTGs3Kfb2LdLQlGsUg89fTy0R3Vm1Dub2YHO7MK58avr0p70+uFFHb7A==", "dev": true, "requires": { "chalk": "2.3.2", @@ -12642,7 +12642,7 @@ "lodash.isplainobject": "4.0.6", "lodash.isstring": "4.0.1", "lodash.mergewith": "4.6.1", - "postcss": "6.0.19", + "postcss": "6.0.20", "srcset": "1.0.0", "xtend": "4.0.1" } @@ -12732,7 +12732,7 @@ "diff": "3.5.0", "lodash.get": "4.4.2", "lolex": "2.3.2", - "nise": "1.3.1", + "nise": "1.3.2", "supports-color": "5.3.0", "type-detect": "4.0.8" } diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 4cbf94d24b6..94fcd92e991 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "0.1.0", + "version": "0.2.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 3b6d00e41b4..1c3168de549 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -17,7 +17,7 @@ "test": "node -e 'console.log(`no tests`);'" }, "dependencies": { - "@google-cloud/container": "0.1.0" + "@google-cloud/container": "0.2.0" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "2.2.4" From 0064ce0f721b31447431095ddd351029b81df5c7 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 2 May 2018 08:32:41 -0700 Subject: [PATCH 024/371] chore: lock files maintenance (#24) * chore: lock files maintenance * chore: lock files maintenance --- packages/google-container/package-lock.json | 2615 +++++++------------ 1 file changed, 943 insertions(+), 1672 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 26543c47df0..96c1cf5fde9 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -21,7 +21,7 @@ "babel-plugin-transform-async-to-generator": "6.24.1", "babel-plugin-transform-es2015-destructuring": "6.23.0", "babel-plugin-transform-es2015-function-name": "6.24.1", - "babel-plugin-transform-es2015-modules-commonjs": "6.26.0", + "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", "babel-plugin-transform-es2015-parameters": "6.24.1", "babel-plugin-transform-es2015-spread": "6.22.0", "babel-plugin-transform-es2015-sticky-regex": "6.24.1", @@ -81,9 +81,9 @@ } }, "@google-cloud/nodejs-repo-tools": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-2.2.4.tgz", - "integrity": "sha512-yHxW7JvhnqgoIftv6dAn1r/9AEcPuumD0xXggdYHmDeyf38OMYyjTk92gP9vflTOee1JhM0vOarwGrlKYUbmnQ==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-2.3.0.tgz", + "integrity": "sha512-c8dIGESnNkmM88duFxGHvMQP5QKPgp/sfJq0QhC6+gOcJC7/PKjqd0PkmgPPeIgVl6SXy5Zf/KLbxnJUVgNT1Q==", "dev": true, "requires": { "ava": "0.25.0", @@ -94,6 +94,7 @@ "lodash": "4.17.5", "nyc": "11.4.1", "proxyquire": "1.8.0", + "semver": "5.5.0", "sinon": "4.3.0", "string": "3.3.3", "supertest": "3.0.0", @@ -108,9 +109,9 @@ "dev": true }, "cliui": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.0.0.tgz", - "integrity": "sha512-nY3W5Gu2racvdDk//ELReY+dHjb9PlIcVDFXP72nVIhq2Gy3LuVXYwJoPVudwQnv1shtohpgkdCKT2YaKY0CKw==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", + "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", "dev": true, "requires": { "string-width": "2.1.1", @@ -124,6 +125,12 @@ "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, + "lodash": { + "version": "4.17.5", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", + "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", + "dev": true + }, "nyc": { "version": "11.4.1", "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.4.1.tgz", @@ -1754,7 +1761,7 @@ "integrity": "sha512-Rjp+lMYQOWtgqojx1dEWorjCofi1YN7AoFvYV7b1gx/7dAAeuI4kN5SZiEvr0ZmsZTOpDRcCqrpI10L31tFkBw==", "dev": true, "requires": { - "cliui": "4.0.0", + "cliui": "4.1.0", "decamelize": "1.2.0", "find-up": "2.1.0", "get-caller-file": "1.0.2", @@ -1900,9 +1907,9 @@ "integrity": "sha512-ZXyOOm83p7X8p3s0IYM3VeueNmHpkk/yMlP8CLeOnEcu6hIwPH7YjZBvhQkR0ZFS2DqZAxKtJ/M5fcuv3OU5BA==" }, "@types/node": { - "version": "8.9.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.9.5.tgz", - "integrity": "sha512-jRHfWsvyMtXdbhnz5CVHxaBgnV6duZnPlQuRSo/dm/GnmikNcmZhxIES4E9OZjUmQ8C+HCl4KJux+cXN/ErGDQ==" + "version": "8.10.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.11.tgz", + "integrity": "sha512-FM7tvbjbn2BUzM/Qsdk9LUGq3zeh7li8NcHoS398dBzqLzfmSqSP1+yKbMRTCcZzLcu2JAR5lq3IKIEYkto7iQ==" }, "acorn": { "version": "4.0.13", @@ -2019,9 +2026,9 @@ } }, "ansi-escapes": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.0.0.tgz", - "integrity": "sha512-O/klc27mWNUigtv0F8NJWbLF00OcegQalkqKURWdosW08YZKi4m6CnSUSvIZG1otNJbTWhN01Hhz389DW7mvDQ==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz", + "integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==", "dev": true }, "ansi-regex": { @@ -2250,7 +2257,7 @@ "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", "requires": { - "lodash": "4.17.5" + "lodash": "4.17.10" } }, "async-each": { @@ -2265,9 +2272,9 @@ "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, "atob": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.0.3.tgz", - "integrity": "sha1-GcenYEc3dEaPILLS0DNyrX1Mv10=" + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz", + "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=" }, "auto-bind": { "version": "1.2.0", @@ -2286,7 +2293,7 @@ "@ava/write-file-atomic": "2.2.0", "@concordance/react": "1.0.0", "@ladjs/time-require": "0.1.4", - "ansi-escapes": "3.0.0", + "ansi-escapes": "3.1.0", "ansi-styles": "3.2.1", "arr-flatten": "1.1.0", "array-union": "1.0.2", @@ -2294,17 +2301,17 @@ "arrify": "1.0.1", "auto-bind": "1.2.0", "ava-init": "0.2.1", - "babel-core": "6.26.0", + "babel-core": "6.26.3", "babel-generator": "6.26.1", "babel-plugin-syntax-object-rest-spread": "6.13.0", "bluebird": "3.5.1", "caching-transform": "1.0.1", - "chalk": "2.3.2", + "chalk": "2.4.1", "chokidar": "1.7.0", "clean-stack": "1.3.0", "clean-yaml-object": "0.1.0", "cli-cursor": "2.1.0", - "cli-spinners": "1.1.0", + "cli-spinners": "1.3.1", "cli-truncate": "1.1.0", "co-with-promise": "4.6.0", "code-excerpt": "2.1.1", @@ -2352,18 +2359,18 @@ "pretty-ms": "3.1.0", "require-precompiled": "0.1.0", "resolve-cwd": "2.0.0", - "safe-buffer": "5.1.1", + "safe-buffer": "5.1.2", "semver": "5.5.0", "slash": "1.0.0", - "source-map-support": "0.5.4", + "source-map-support": "0.5.5", "stack-utils": "1.0.1", "strip-ansi": "4.0.0", "strip-bom-buf": "1.0.0", "supertap": "1.0.0", - "supports-color": "5.3.0", + "supports-color": "5.4.0", "trim-off-newlines": "1.0.1", "unique-temp-dir": "1.0.0", - "update-notifier": "2.3.0" + "update-notifier": "2.5.0" }, "dependencies": { "ansi-regex": { @@ -2445,9 +2452,9 @@ "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" }, "aws4": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", - "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=" + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz", + "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w==" }, "axios": { "version": "0.18.0", @@ -2497,9 +2504,9 @@ } }, "babel-core": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.0.tgz", - "integrity": "sha1-rzL3izGm/O8RnIew/Y2XU/A6C7g=", + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", "dev": true, "requires": { "babel-code-frame": "6.26.0", @@ -2515,7 +2522,7 @@ "convert-source-map": "1.5.1", "debug": "2.6.9", "json5": "0.5.1", - "lodash": "4.17.5", + "lodash": "4.17.10", "minimatch": "3.0.4", "path-is-absolute": "1.0.1", "private": "0.1.8", @@ -2534,7 +2541,7 @@ "babel-types": "6.26.0", "detect-indent": "4.0.0", "jsesc": "1.3.0", - "lodash": "4.17.5", + "lodash": "4.17.10", "source-map": "0.5.7", "trim-right": "1.0.1" }, @@ -2622,7 +2629,7 @@ "requires": { "babel-runtime": "6.26.0", "babel-types": "6.26.0", - "lodash": "4.17.5" + "lodash": "4.17.10" } }, "babel-helper-remap-async-to-generator": { @@ -2675,7 +2682,7 @@ "babel-generator": "6.26.1", "babylon": "6.18.0", "call-matcher": "1.0.1", - "core-js": "2.5.3", + "core-js": "2.5.5", "espower-location-detector": "1.0.0", "espurify": "1.7.0", "estraverse": "4.2.0" @@ -2737,9 +2744,9 @@ } }, "babel-plugin-transform-es2015-modules-commonjs": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz", - "integrity": "sha1-DYOUApt9xqvhqX7xgeAHWN0uXYo=", + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", + "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", "dev": true, "requires": { "babel-plugin-transform-strict-mode": "6.24.1", @@ -2820,11 +2827,11 @@ "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", "dev": true, "requires": { - "babel-core": "6.26.0", + "babel-core": "6.26.3", "babel-runtime": "6.26.0", - "core-js": "2.5.3", + "core-js": "2.5.5", "home-or-tmp": "2.0.0", - "lodash": "4.17.5", + "lodash": "4.17.10", "mkdirp": "0.5.1", "source-map-support": "0.4.18" }, @@ -2846,7 +2853,7 @@ "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "dev": true, "requires": { - "core-js": "2.5.3", + "core-js": "2.5.5", "regenerator-runtime": "0.11.1" } }, @@ -2860,7 +2867,7 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "lodash": "4.17.5" + "lodash": "4.17.10" } }, "babel-traverse": { @@ -2877,7 +2884,7 @@ "debug": "2.6.9", "globals": "9.18.0", "invariant": "2.2.4", - "lodash": "4.17.5" + "lodash": "4.17.10" } }, "babel-types": { @@ -2888,7 +2895,7 @@ "requires": { "babel-runtime": "6.26.0", "esutils": "2.0.2", - "lodash": "4.17.5", + "lodash": "4.17.10", "to-fast-properties": "1.0.3" } }, @@ -2924,6 +2931,32 @@ "requires": { "is-descriptor": "1.0.2" } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } } } }, @@ -2969,7 +3002,7 @@ "requires": { "ansi-align": "2.0.0", "camelcase": "4.1.0", - "chalk": "2.3.2", + "chalk": "2.4.1", "cli-boxes": "1.0.0", "string-width": "2.1.1", "term-size": "1.2.0", @@ -3025,17 +3058,15 @@ } }, "braces": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.1.tgz", - "integrity": "sha512-SO5lYHA3vO6gz66erVvedSCkp7AKWdv6VcQ2N4ysXfPxdAlxAMMAdwegGGcv1Bqwm7naF1hNdk5d6AAIEHV2nQ==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", + "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", "requires": { "arr-flatten": "1.1.0", "array-unique": "0.3.2", - "define-property": "1.0.0", "extend-shallow": "2.0.1", "fill-range": "4.0.0", "isobject": "3.0.1", - "kind-of": "6.0.2", "repeat-element": "1.1.2", "snapdragon": "0.8.2", "snapdragon-node": "2.1.1", @@ -3043,14 +3074,6 @@ "to-regex": "3.0.2" }, "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "requires": { - "is-descriptor": "1.0.2" - } - }, "extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", @@ -3078,6 +3101,12 @@ "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" }, + "buffer-from": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.0.0.tgz", + "integrity": "sha512-83apNb8KK0Se60UE1+4Ukbe3HbfELJ6UlI4ldtOGs7So4KD26orJM8hIY9lxdzP+UpItH1Yh/Y8GUvNFWFFRxA==", + "dev": true + }, "builtin-modules": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", @@ -3128,6 +3157,14 @@ "lowercase-keys": "1.0.0", "normalize-url": "2.0.1", "responselike": "1.0.2" + }, + "dependencies": { + "lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", + "dev": true + } } }, "caching-transform": { @@ -3169,7 +3206,7 @@ "integrity": "sha1-UTTQd5hPcSpU2tPL9i3ijc5BbKg=", "dev": true, "requires": { - "core-js": "2.5.3", + "core-js": "2.5.5", "deep-equal": "1.0.1", "espurify": "1.7.0", "estraverse": "4.2.0" @@ -3247,14 +3284,14 @@ } }, "chalk": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.2.tgz", - "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", + "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { "ansi-styles": "3.2.1", "escape-string-regexp": "1.0.5", - "supports-color": "5.3.0" + "supports-color": "5.4.0" } }, "chardet": { @@ -3271,7 +3308,7 @@ "requires": { "anymatch": "1.3.2", "async-each": "1.0.1", - "fsevents": "1.1.3", + "fsevents": "1.2.3", "glob-parent": "2.0.0", "inherits": "2.0.3", "is-binary-path": "1.0.1", @@ -3336,57 +3373,6 @@ "requires": { "is-descriptor": "0.1.6" } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" } } }, @@ -3418,9 +3404,9 @@ } }, "cli-spinners": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-1.1.0.tgz", - "integrity": "sha1-8YR7FohE2RemceudFH499JfJDQY=", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-1.3.1.tgz", + "integrity": "sha512-1QL4544moEsDVH9T/l6Cemov/37iv1RtoKf7NJ04A60+4MREXNfx/QvavbH6QoGdsD4N4Mwy49cmaINR/o2mdg==", "dev": true }, "cli-truncate": { @@ -3520,163 +3506,14 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, "codecov": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.0.0.tgz", - "integrity": "sha1-wnO4xPEpRXI+jcnSWAPYk0Pl8o4=", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.0.1.tgz", + "integrity": "sha512-0TjnXrbvcPzAkRPv/Y5D8aZju/M5adkFxShRyMMgDReB8EV9nF4XMERXs6ajgLA1di9LUFW2tgePDQd2JPWy7g==", "dev": true, "requires": { "argv": "0.0.2", - "request": "2.81.0", + "request": "2.85.0", "urlgrey": "0.4.4" - }, - "dependencies": { - "ajv": { - "version": "4.11.8", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", - "dev": true, - "requires": { - "co": "4.6.0", - "json-stable-stringify": "1.0.1" - } - }, - "assert-plus": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", - "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", - "dev": true - }, - "aws-sign2": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", - "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", - "dev": true - }, - "boom": { - "version": "2.10.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", - "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", - "dev": true, - "requires": { - "hoek": "2.16.3" - } - }, - "cryptiles": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", - "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", - "dev": true, - "requires": { - "boom": "2.10.1" - } - }, - "form-data": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", - "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", - "dev": true, - "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.6", - "mime-types": "2.1.18" - } - }, - "har-schema": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", - "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=", - "dev": true - }, - "har-validator": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", - "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", - "dev": true, - "requires": { - "ajv": "4.11.8", - "har-schema": "1.0.5" - } - }, - "hawk": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", - "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", - "dev": true, - "requires": { - "boom": "2.10.1", - "cryptiles": "2.0.5", - "hoek": "2.16.3", - "sntp": "1.0.9" - } - }, - "hoek": { - "version": "2.16.3", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", - "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", - "dev": true - }, - "http-signature": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", - "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", - "dev": true, - "requires": { - "assert-plus": "0.2.0", - "jsprim": "1.4.1", - "sshpk": "1.14.1" - } - }, - "performance-now": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", - "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=", - "dev": true - }, - "qs": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", - "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", - "dev": true - }, - "request": { - "version": "2.81.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", - "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", - "dev": true, - "requires": { - "aws-sign2": "0.6.0", - "aws4": "1.6.0", - "caseless": "0.12.0", - "combined-stream": "1.0.6", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.1.4", - "har-validator": "4.2.1", - "hawk": "3.1.3", - "http-signature": "1.1.1", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.18", - "oauth-sign": "0.8.2", - "performance-now": "0.2.0", - "qs": "6.4.0", - "safe-buffer": "5.1.1", - "stringstream": "0.0.5", - "tough-cookie": "2.3.4", - "tunnel-agent": "0.6.0", - "uuid": "3.2.1" - } - }, - "sntp": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", - "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", - "dev": true, - "requires": { - "hoek": "2.16.3" - } - } } }, "collection-visit": { @@ -3751,13 +3588,14 @@ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "concat-stream": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.1.tgz", - "integrity": "sha512-gslSSJx03QKa59cIKqeJO9HQ/WZMotvYJCuaUULrLpjj8oG40kV2Z+gz82pVxlTkOADi4PJxQPPfhl1ELYrrXw==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, "requires": { + "buffer-from": "1.0.0", "inherits": "2.0.3", - "readable-stream": "2.3.5", + "readable-stream": "2.3.6", "typedarray": "0.0.6" } }, @@ -3792,9 +3630,9 @@ } }, "configstore": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz", - "integrity": "sha512-5oNkD/L++l0O6xGXxb1EWS7SivtjfGQlRyxJsYgE0Z495/L81e2h4/d3r969hoPXuFItzNOKMtsXgYG4c7dYvw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.2.tgz", + "integrity": "sha512-vtv5HtGjcYUgFrXc6Kx747B83MRRVS5R1VTEQoXvuP+kMI+if6uywV0nDGoiydJRy4yk7h9od5Og0kxx4zUXmw==", "dev": true, "requires": { "dot-prop": "4.2.0", @@ -3839,9 +3677,9 @@ } }, "core-js": { - "version": "2.5.3", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.3.tgz", - "integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4=" + "version": "2.5.5", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.5.tgz", + "integrity": "sha1-sU3ek2xkDAV5prUMq8wTLdYSfjs=" }, "core-util-is": { "version": "1.0.2", @@ -3907,7 +3745,7 @@ "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "dev": true, "requires": { - "es5-ext": "0.10.41" + "es5-ext": "0.10.42" } }, "dashdash": { @@ -3958,9 +3796,9 @@ "dev": true }, "deep-extend": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz", - "integrity": "sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.5.1.tgz", + "integrity": "sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w==", "dev": true }, "deep-is": { @@ -3985,6 +3823,34 @@ "requires": { "is-descriptor": "1.0.2", "isobject": "3.0.1" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + } } }, "del": { @@ -3995,7 +3861,7 @@ "requires": { "globby": "5.0.0", "is-path-cwd": "1.0.0", - "is-path-in-cwd": "1.0.0", + "is-path-in-cwd": "1.0.1", "object-assign": "4.1.1", "pify": "2.3.0", "pinkie-promise": "2.0.1", @@ -4147,7 +4013,7 @@ "requires": { "end-of-stream": "1.4.1", "inherits": "2.0.3", - "readable-stream": "2.3.5", + "readable-stream": "2.3.6", "stream-shift": "1.0.0" } }, @@ -4171,7 +4037,7 @@ "integrity": "sha1-S8kmJ07Dtau1AW5+HWCSGsJisqE=", "requires": { "base64url": "2.0.0", - "safe-buffer": "5.1.1" + "safe-buffer": "5.1.2" } }, "empower": { @@ -4179,14 +4045,14 @@ "resolved": "https://registry.npmjs.org/empower/-/empower-1.2.3.tgz", "integrity": "sha1-bw2nNEf07dg4/sXGAxOoi6XLhSs=", "requires": { - "core-js": "2.5.3", + "core-js": "2.5.5", "empower-core": "0.6.2" } }, "empower-assert": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/empower-assert/-/empower-assert-1.0.1.tgz", - "integrity": "sha1-MeMQq8BluqfDoEh+a+W7zGXzwd4=", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/empower-assert/-/empower-assert-1.1.0.tgz", + "integrity": "sha512-Ylck0Q6p8y/LpNzYeBccaxAPm2ZyuqBgErgZpO9KT0HuQWF0sJckBKCLmgS1/DEXEiyBi9XtYh3clZm5cAdARw==", "dev": true, "requires": { "estraverse": "4.2.0" @@ -4198,7 +4064,7 @@ "integrity": "sha1-Wt71ZgiOMfuoC6CjbfR9cJQWkUQ=", "requires": { "call-signature": "0.0.2", - "core-js": "2.5.3" + "core-js": "2.5.5" } }, "end-of-stream": { @@ -4231,9 +4097,9 @@ } }, "es5-ext": { - "version": "0.10.41", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.41.tgz", - "integrity": "sha512-MYK02wXfwTMie5TEJWPolgOsXEmz7wKCQaGzgmRjZOoV6VLG8I5dSv2bn6AOClXhK64gnSQTQ9W9MKvx87J4gw==", + "version": "0.10.42", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.42.tgz", + "integrity": "sha512-AJxO1rmPe1bDEfSR6TJ/FgMFYuTBhR5R57KW58iCkYACMyFbrkqVyzXSurYoScDGvgyMpk7uRF/lPUPPTmsRSA==", "dev": true, "requires": { "es6-iterator": "2.0.3", @@ -4254,7 +4120,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.41", + "es5-ext": "0.10.42", "es6-symbol": "3.1.1" } }, @@ -4265,7 +4131,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.41", + "es5-ext": "0.10.42", "es6-iterator": "2.0.3", "es6-set": "0.1.5", "es6-symbol": "3.1.1", @@ -4279,7 +4145,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.41", + "es5-ext": "0.10.42", "es6-iterator": "2.0.3", "es6-symbol": "3.1.1", "event-emitter": "0.3.5" @@ -4292,7 +4158,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.41" + "es5-ext": "0.10.42" } }, "es6-weak-map": { @@ -4302,7 +4168,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.41", + "es5-ext": "0.10.42", "es6-iterator": "2.0.3", "es6-symbol": "3.1.1" } @@ -4372,35 +4238,35 @@ } }, "eslint": { - "version": "4.19.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.19.0.tgz", - "integrity": "sha512-r83L5CuqaocDvfwdojbz68b6tCUk8KJkqfppO+gmSAQqYCzTr0bCSMu6A6yFCLKG65j5eKcKUw4Cw4Yl4gfWkg==", + "version": "4.19.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz", + "integrity": "sha512-bT3/1x1EbZB7phzYu7vCr1v3ONuzDtX8WjuM9c0iYxe+cq+pwcKEoQjl7zd3RpC6YOLgnSy3cTN58M2jcoPDIQ==", "dev": true, "requires": { "ajv": "5.5.2", "babel-code-frame": "6.26.0", - "chalk": "2.3.2", - "concat-stream": "1.6.1", + "chalk": "2.4.1", + "concat-stream": "1.6.2", "cross-spawn": "5.1.0", "debug": "3.1.0", "doctrine": "2.1.0", "eslint-scope": "3.7.1", "eslint-visitor-keys": "1.0.0", "espree": "3.5.4", - "esquery": "1.0.0", + "esquery": "1.0.1", "esutils": "2.0.2", "file-entry-cache": "2.0.0", "functional-red-black-tree": "1.0.1", "glob": "7.1.2", - "globals": "11.3.0", - "ignore": "3.3.7", + "globals": "11.5.0", + "ignore": "3.3.8", "imurmurhash": "0.1.4", "inquirer": "3.3.0", "is-resolvable": "1.1.0", "js-yaml": "3.11.0", "json-stable-stringify-without-jsonify": "1.0.1", "levn": "0.3.0", - "lodash": "4.17.5", + "lodash": "4.17.10", "minimatch": "3.0.4", "mkdirp": "0.5.1", "natural-compare": "1.4.0", @@ -4408,7 +4274,7 @@ "path-is-inside": "1.0.2", "pluralize": "7.0.0", "progress": "2.0.0", - "regexpp": "1.0.1", + "regexpp": "1.1.0", "require-uncached": "1.0.3", "semver": "5.5.0", "strip-ansi": "4.0.0", @@ -4433,9 +4299,9 @@ } }, "globals": { - "version": "11.3.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.3.0.tgz", - "integrity": "sha512-kkpcKNlmQan9Z5ZmgqKH/SMbSmjxQ7QjyNqfXVc8VJcoBV2UEg+sxQD15GQofGRh2hfpwUb70VC31DR7Rq5Hdw==", + "version": "11.5.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.5.0.tgz", + "integrity": "sha512-hYyf+kI8dm3nORsiiXUQigOU62hDLfJ9G01uyGMxhc6BKsircrUhC4uJPQPUSuq2GrTmiiEt7ewxlMdBewfmKQ==", "dev": true }, "strip-ansi": { @@ -4472,16 +4338,16 @@ "integrity": "sha512-Q/Cc2sW1OAISDS+Ji6lZS2KV4b7ueA/WydVWd1BECTQwVvfQy5JAi3glhINoKzoMnfnuRgNP+ZWKrGAbp3QDxw==", "dev": true, "requires": { - "ignore": "3.3.7", + "ignore": "3.3.8", "minimatch": "3.0.4", - "resolve": "1.5.0", + "resolve": "1.7.1", "semver": "5.5.0" }, "dependencies": { "resolve": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz", - "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", + "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", "dev": true, "requires": { "path-parse": "1.0.5" @@ -4563,7 +4429,7 @@ "integrity": "sha1-oXt+zFnTDheeK+9z+0E3cEyzMbU=", "dev": true, "requires": { - "is-url": "1.2.2", + "is-url": "1.2.4", "path-is-absolute": "1.0.1", "source-map": "0.5.7", "xtend": "4.0.1" @@ -4578,7 +4444,7 @@ "acorn": "5.5.3", "acorn-es7-plugin": "1.1.7", "convert-source-map": "1.5.1", - "empower-assert": "1.0.1", + "empower-assert": "1.1.0", "escodegen": "1.9.1", "espower": "2.1.0", "estraverse": "4.2.0", @@ -4625,13 +4491,13 @@ "resolved": "https://registry.npmjs.org/espurify/-/espurify-1.7.0.tgz", "integrity": "sha1-HFz2y8zDLm9jk4C9T5kfq5up0iY=", "requires": { - "core-js": "2.5.3" + "core-js": "2.5.5" } }, "esquery": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.0.tgz", - "integrity": "sha1-z7qLV9f7qT8XKYqKAGoEzaE9gPo=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", + "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", "dev": true, "requires": { "estraverse": "4.2.0" @@ -4664,7 +4530,7 @@ "dev": true, "requires": { "d": "1.0.0", - "es5-ext": "0.10.41" + "es5-ext": "0.10.42" } }, "execa": { @@ -4711,74 +4577,23 @@ "requires": { "is-extendable": "0.1.1" } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" - } - } - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "dev": true, - "requires": { - "fill-range": "2.2.3" - }, - "dependencies": { - "fill-range": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", - "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", - "dev": true, + } + } + }, + "expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "dev": true, + "requires": { + "fill-range": "2.2.3" + }, + "dependencies": { + "fill-range": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", + "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", + "dev": true, "requires": { "is-number": "2.1.0", "isobject": "2.1.0", @@ -4841,13 +4656,13 @@ } }, "external-editor": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.1.0.tgz", - "integrity": "sha512-E44iT5QVOUJBKij4IIV3uvxuNlbKS38Tw1HiupxEIHPv9qtC2PrDYohbXV5U+1jnfIXttny8gUhj+oZvflFlzA==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", + "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", "dev": true, "requires": { "chardet": "0.4.2", - "iconv-lite": "0.4.19", + "iconv-lite": "0.4.21", "tmp": "0.0.33" } }, @@ -4881,6 +4696,32 @@ "requires": { "is-extendable": "0.1.1" } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } } } }, @@ -4901,15 +4742,15 @@ "dev": true }, "fast-glob": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-2.2.0.tgz", - "integrity": "sha512-4F75PTznkNtSKs2pbhtBwRkw8sRwa7LfXx5XaQJOe4IQ6yTjceLDTwM5gj1s80R2t/5WeDC1gVfm3jLE+l39Tw==", + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-2.2.1.tgz", + "integrity": "sha512-wSyW1TBK3ia5V+te0rGPXudeMHoUQW6O5Y9oATiaGhpENmEifPDlOdhpsnlj5HoG6ttIvGiY1DdCmI9X2xGMhg==", "requires": { "@mrmlnc/readdir-enhanced": "2.2.1", "glob-parent": "3.1.0", "is-glob": "4.0.0", "merge2": "1.2.1", - "micromatch": "3.1.9" + "micromatch": "3.1.10" } }, "fast-json-stable-stringify": { @@ -5070,9 +4911,9 @@ } }, "formidable": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.0.tgz", - "integrity": "sha512-hr9aT30rAi7kf8Q2aaTpSP7xGMhlJ+MdrUDVZs3rxbD3L/K46A86s2VY7qC2D2kGYGBtiT/3j6wTx1eeUq5xAQ==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz", + "integrity": "sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg==", "dev": true }, "fragment-cache": { @@ -5090,7 +4931,7 @@ "dev": true, "requires": { "inherits": "2.0.3", - "readable-stream": "2.3.5" + "readable-stream": "2.3.6" } }, "fs-extra": { @@ -5110,39 +4951,29 @@ "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "fsevents": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz", - "integrity": "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.3.tgz", + "integrity": "sha512-X+57O5YkDTiEQGiw8i7wYc2nQgweIekqkepI8Q3y4wVlurgBt2SuwxTeYUYMZIGpLZH3r/TsMjczCMXE5ZOt7Q==", "dev": true, "optional": true, "requires": { "nan": "2.10.0", - "node-pre-gyp": "0.6.39" + "node-pre-gyp": "0.9.1" }, "dependencies": { "abbrev": { - "version": "1.1.0", + "version": "1.1.1", "bundled": true, "dev": true, "optional": true }, - "ajv": { - "version": "4.11.8", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "co": "4.6.0", - "json-stable-stringify": "1.0.1" - } - }, "ansi-regex": { "version": "2.1.1", "bundled": true, "dev": true }, "aproba": { - "version": "1.1.1", + "version": "1.2.0", "bundled": true, "dev": true, "optional": true @@ -5154,91 +4985,25 @@ "optional": true, "requires": { "delegates": "1.0.0", - "readable-stream": "2.2.9" + "readable-stream": "2.3.6" } }, - "asn1": { - "version": "0.2.3", - "bundled": true, - "dev": true, - "optional": true - }, - "assert-plus": { - "version": "0.2.0", - "bundled": true, - "dev": true, - "optional": true - }, - "asynckit": { - "version": "0.4.0", - "bundled": true, - "dev": true, - "optional": true - }, - "aws-sign2": { - "version": "0.6.0", - "bundled": true, - "dev": true, - "optional": true - }, - "aws4": { - "version": "1.6.0", - "bundled": true, - "dev": true, - "optional": true - }, "balanced-match": { - "version": "0.4.2", + "version": "1.0.0", "bundled": true, "dev": true }, - "bcrypt-pbkdf": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "tweetnacl": "0.14.5" - } - }, - "block-stream": { - "version": "0.0.9", - "bundled": true, - "dev": true, - "requires": { - "inherits": "2.0.3" - } - }, - "boom": { - "version": "2.10.1", - "bundled": true, - "dev": true, - "requires": { - "hoek": "2.16.3" - } - }, "brace-expansion": { - "version": "1.1.7", + "version": "1.1.11", "bundled": true, "dev": true, "requires": { - "balanced-match": "0.4.2", + "balanced-match": "1.0.0", "concat-map": "0.0.1" } }, - "buffer-shims": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "caseless": { - "version": "0.12.0", - "bundled": true, - "dev": true, - "optional": true - }, - "co": { - "version": "4.6.0", + "chownr": { + "version": "1.0.1", "bundled": true, "dev": true, "optional": true @@ -5248,14 +5013,6 @@ "bundled": true, "dev": true }, - "combined-stream": { - "version": "1.0.5", - "bundled": true, - "dev": true, - "requires": { - "delayed-stream": "1.0.0" - } - }, "concat-map": { "version": "0.0.1", "bundled": true, @@ -5269,35 +5026,11 @@ "core-util-is": { "version": "1.0.2", "bundled": true, - "dev": true - }, - "cryptiles": { - "version": "2.0.5", - "bundled": true, - "dev": true, - "requires": { - "boom": "2.10.1" - } - }, - "dashdash": { - "version": "1.14.1", - "bundled": true, "dev": true, - "optional": true, - "requires": { - "assert-plus": "1.0.0" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - } - } + "optional": true }, "debug": { - "version": "2.6.8", + "version": "2.6.9", "bundled": true, "dev": true, "optional": true, @@ -5311,11 +5044,6 @@ "dev": true, "optional": true }, - "delayed-stream": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, "delegates": { "version": "1.0.0", "bundled": true, @@ -5323,179 +5051,85 @@ "optional": true }, "detect-libc": { - "version": "1.0.2", + "version": "1.0.3", "bundled": true, "dev": true, "optional": true }, - "ecc-jsbn": { - "version": "0.1.1", + "fs-minipass": { + "version": "1.2.5", "bundled": true, "dev": true, "optional": true, "requires": { - "jsbn": "0.1.1" + "minipass": "2.2.4" } }, - "extend": { - "version": "3.0.1", + "fs.realpath": { + "version": "1.0.0", "bundled": true, "dev": true, "optional": true }, - "extsprintf": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "forever-agent": { - "version": "0.6.1", + "gauge": { + "version": "2.7.4", "bundled": true, "dev": true, - "optional": true + "optional": true, + "requires": { + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + } }, - "form-data": { - "version": "2.1.4", + "glob": { + "version": "7.1.2", "bundled": true, "dev": true, "optional": true, "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.5", - "mime-types": "2.1.15" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } }, - "fs.realpath": { - "version": "1.0.0", + "has-unicode": { + "version": "2.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, - "fstream": { - "version": "1.0.11", + "iconv-lite": { + "version": "0.4.21", "bundled": true, "dev": true, + "optional": true, "requires": { - "graceful-fs": "4.1.11", - "inherits": "2.0.3", - "mkdirp": "0.5.1", - "rimraf": "2.6.1" + "safer-buffer": "2.1.2" } }, - "fstream-ignore": { - "version": "1.0.5", + "ignore-walk": { + "version": "3.0.1", "bundled": true, "dev": true, "optional": true, "requires": { - "fstream": "1.0.11", - "inherits": "2.0.3", "minimatch": "3.0.4" } }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aproba": "1.1.1", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.2" - } - }, - "getpass": { - "version": "0.1.7", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "assert-plus": "1.0.0" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "glob": { - "version": "7.1.2", - "bundled": true, - "dev": true, - "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" - } - }, - "graceful-fs": { - "version": "4.1.11", - "bundled": true, - "dev": true - }, - "har-schema": { - "version": "1.0.5", - "bundled": true, - "dev": true, - "optional": true - }, - "har-validator": { - "version": "4.2.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ajv": "4.11.8", - "har-schema": "1.0.5" - } - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "hawk": { - "version": "3.1.3", - "bundled": true, - "dev": true, - "requires": { - "boom": "2.10.1", - "cryptiles": "2.0.5", - "hoek": "2.16.3", - "sntp": "1.0.9" - } - }, - "hoek": { - "version": "2.16.3", - "bundled": true, - "dev": true - }, - "http-signature": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "assert-plus": "0.2.0", - "jsprim": "1.4.0", - "sshpk": "1.13.0" - } - }, "inflight": { "version": "1.0.6", "bundled": true, "dev": true, + "optional": true, "requires": { "once": "1.4.0", "wrappy": "1.0.2" @@ -5507,7 +5141,7 @@ "dev": true }, "ini": { - "version": "1.3.4", + "version": "1.3.5", "bundled": true, "dev": true, "optional": true @@ -5520,111 +5154,43 @@ "number-is-nan": "1.0.1" } }, - "is-typedarray": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, "isarray": { "version": "1.0.0", "bundled": true, - "dev": true - }, - "isstream": { - "version": "0.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "jodid25519": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "jsbn": "0.1.1" - } - }, - "jsbn": { - "version": "0.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "json-schema": { - "version": "0.2.3", - "bundled": true, - "dev": true, - "optional": true - }, - "json-stable-stringify": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "jsonify": "0.0.0" - } - }, - "json-stringify-safe": { - "version": "5.0.1", - "bundled": true, "dev": true, "optional": true }, - "jsonify": { - "version": "0.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "jsprim": { - "version": "1.4.0", + "minimatch": { + "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.0.2", - "json-schema": "0.2.3", - "verror": "1.3.6" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - } + "brace-expansion": "1.1.11" } }, - "mime-db": { - "version": "1.27.0", + "minimist": { + "version": "0.0.8", "bundled": true, "dev": true }, - "mime-types": { - "version": "2.1.15", + "minipass": { + "version": "2.2.4", "bundled": true, "dev": true, "requires": { - "mime-db": "1.27.0" + "safe-buffer": "5.1.1", + "yallist": "3.0.2" } }, - "minimatch": { - "version": "3.0.4", + "minizlib": { + "version": "1.1.0", "bundled": true, "dev": true, + "optional": true, "requires": { - "brace-expansion": "1.1.7" + "minipass": "2.2.4" } }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true - }, "mkdirp": { "version": "0.5.1", "bundled": true, @@ -5639,23 +5205,33 @@ "dev": true, "optional": true }, + "needle": { + "version": "2.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "2.6.9", + "iconv-lite": "0.4.21", + "sax": "1.2.4" + } + }, "node-pre-gyp": { - "version": "0.6.39", + "version": "0.9.1", "bundled": true, "dev": true, "optional": true, "requires": { - "detect-libc": "1.0.2", - "hawk": "3.1.3", + "detect-libc": "1.0.3", "mkdirp": "0.5.1", + "needle": "2.2.0", "nopt": "4.0.1", - "npmlog": "4.1.0", - "rc": "1.2.1", - "request": "2.81.0", - "rimraf": "2.6.1", - "semver": "5.3.0", - "tar": "2.2.1", - "tar-pack": "3.4.0" + "npm-packlist": "1.1.10", + "npmlog": "4.1.2", + "rc": "1.2.6", + "rimraf": "2.6.2", + "semver": "5.5.0", + "tar": "4.4.1" } }, "nopt": { @@ -5664,12 +5240,28 @@ "dev": true, "optional": true, "requires": { - "abbrev": "1.1.0", - "osenv": "0.1.4" + "abbrev": "1.1.1", + "osenv": "0.1.5" + } + }, + "npm-bundled": { + "version": "1.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "npm-packlist": { + "version": "1.1.10", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ignore-walk": "3.0.1", + "npm-bundled": "1.0.3" } }, "npmlog": { - "version": "4.1.0", + "version": "4.1.2", "bundled": true, "dev": true, "optional": true, @@ -5685,12 +5277,6 @@ "bundled": true, "dev": true }, - "oauth-sign": { - "version": "0.8.2", - "bundled": true, - "dev": true, - "optional": true - }, "object-assign": { "version": "4.1.1", "bundled": true, @@ -5718,7 +5304,7 @@ "optional": true }, "osenv": { - "version": "0.1.4", + "version": "0.1.5", "bundled": true, "dev": true, "optional": true, @@ -5730,39 +5316,23 @@ "path-is-absolute": { "version": "1.0.1", "bundled": true, - "dev": true - }, - "performance-now": { - "version": "0.2.0", - "bundled": true, "dev": true, "optional": true }, "process-nextick-args": { - "version": "1.0.7", - "bundled": true, - "dev": true - }, - "punycode": { - "version": "1.4.1", - "bundled": true, - "dev": true, - "optional": true - }, - "qs": { - "version": "6.4.0", + "version": "2.0.0", "bundled": true, "dev": true, "optional": true }, "rc": { - "version": "1.2.1", + "version": "1.2.6", "bundled": true, "dev": true, "optional": true, "requires": { "deep-extend": "0.4.2", - "ini": "1.3.4", + "ini": "1.3.5", "minimist": "1.2.0", "strip-json-comments": "2.0.1" }, @@ -5776,112 +5346,63 @@ } }, "readable-stream": { - "version": "2.2.9", + "version": "2.3.6", "bundled": true, "dev": true, + "optional": true, "requires": { - "buffer-shims": "1.0.0", "core-util-is": "1.0.2", "inherits": "2.0.3", "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "1.0.1", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.1.1", "util-deprecate": "1.0.2" } }, - "request": { - "version": "2.81.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aws-sign2": "0.6.0", - "aws4": "1.6.0", - "caseless": "0.12.0", - "combined-stream": "1.0.5", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.1.4", - "har-validator": "4.2.1", - "hawk": "3.1.3", - "http-signature": "1.1.1", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.15", - "oauth-sign": "0.8.2", - "performance-now": "0.2.0", - "qs": "6.4.0", - "safe-buffer": "5.0.1", - "stringstream": "0.0.5", - "tough-cookie": "2.3.2", - "tunnel-agent": "0.6.0", - "uuid": "3.0.1" - } - }, "rimraf": { - "version": "2.6.1", + "version": "2.6.2", "bundled": true, "dev": true, + "optional": true, "requires": { "glob": "7.1.2" } }, "safe-buffer": { - "version": "5.0.1", + "version": "5.1.1", "bundled": true, "dev": true }, - "semver": { - "version": "5.3.0", + "safer-buffer": { + "version": "2.1.2", "bundled": true, "dev": true, "optional": true }, - "set-blocking": { - "version": "2.0.0", + "sax": { + "version": "1.2.4", "bundled": true, "dev": true, "optional": true }, - "signal-exit": { - "version": "3.0.2", + "semver": { + "version": "5.5.0", "bundled": true, "dev": true, "optional": true }, - "sntp": { - "version": "1.0.9", + "set-blocking": { + "version": "2.0.0", "bundled": true, "dev": true, - "requires": { - "hoek": "2.16.3" - } + "optional": true }, - "sshpk": { - "version": "1.13.0", + "signal-exit": { + "version": "3.0.2", "bundled": true, "dev": true, - "optional": true, - "requires": { - "asn1": "0.2.3", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.1", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.1", - "getpass": "0.1.7", - "jodid25519": "1.0.2", - "jsbn": "0.1.1", - "tweetnacl": "0.14.5" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - } - } + "optional": true }, "string-width": { "version": "1.0.2", @@ -5894,19 +5415,14 @@ } }, "string_decoder": { - "version": "1.0.1", + "version": "1.1.1", "bundled": true, "dev": true, + "optional": true, "requires": { - "safe-buffer": "5.0.1" + "safe-buffer": "5.1.1" } }, - "stringstream": { - "version": "0.0.5", - "bundled": true, - "dev": true, - "optional": true - }, "strip-ansi": { "version": "3.0.1", "bundled": true, @@ -5922,80 +5438,25 @@ "optional": true }, "tar": { - "version": "2.2.1", - "bundled": true, - "dev": true, - "requires": { - "block-stream": "0.0.9", - "fstream": "1.0.11", - "inherits": "2.0.3" - } - }, - "tar-pack": { - "version": "3.4.0", + "version": "4.4.1", "bundled": true, "dev": true, "optional": true, "requires": { - "debug": "2.6.8", - "fstream": "1.0.11", - "fstream-ignore": "1.0.5", - "once": "1.4.0", - "readable-stream": "2.2.9", - "rimraf": "2.6.1", - "tar": "2.2.1", - "uid-number": "0.0.6" - } - }, - "tough-cookie": { - "version": "2.3.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "punycode": "1.4.1" - } - }, - "tunnel-agent": { - "version": "0.6.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "5.0.1" + "chownr": "1.0.1", + "fs-minipass": "1.2.5", + "minipass": "2.2.4", + "minizlib": "1.1.0", + "mkdirp": "0.5.1", + "safe-buffer": "5.1.1", + "yallist": "3.0.2" } }, - "tweetnacl": { - "version": "0.14.5", - "bundled": true, - "dev": true, - "optional": true - }, - "uid-number": { - "version": "0.0.6", - "bundled": true, - "dev": true, - "optional": true - }, "util-deprecate": { "version": "1.0.2", "bundled": true, - "dev": true - }, - "uuid": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "verror": { - "version": "1.3.6", - "bundled": true, "dev": true, - "optional": true, - "requires": { - "extsprintf": "1.0.2" - } + "optional": true }, "wide-align": { "version": "1.1.2", @@ -6010,6 +5471,11 @@ "version": "1.0.2", "bundled": true, "dev": true + }, + "yallist": { + "version": "3.0.2", + "bundled": true, + "dev": true } } }, @@ -6167,21 +5633,21 @@ "requires": { "array-union": "1.0.2", "dir-glob": "2.0.0", - "fast-glob": "2.2.0", + "fast-glob": "2.2.1", "glob": "7.1.2", - "ignore": "3.3.7", + "ignore": "3.3.8", "pify": "3.0.0", "slash": "1.0.0" } }, "google-auth-library": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-1.3.2.tgz", - "integrity": "sha512-aRz0om4Bs85uyR2Ousk3Gb8Nffx2Sr2RoKts1smg1MhRwrehE1aD1HC4RmprNt1HVJ88IDnQ8biJQ/aXjiIxlQ==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-1.4.0.tgz", + "integrity": "sha512-vWRx6pJulK7Y5V/Xyr7MPMlx2mWfmrUVbcffZ7hpq8ElFg5S8WY6PvjMovdcr6JfuAwwpAX4R0I1XOcyWuBcUw==", "requires": { "axios": "0.18.0", "gcp-metadata": "0.6.3", - "gtoken": "2.2.0", + "gtoken": "2.3.0", "jws": "3.1.4", "lodash.isstring": "4.0.1", "lru-cache": "4.1.2", @@ -6189,29 +5655,29 @@ } }, "google-auto-auth": { - "version": "0.9.7", - "resolved": "https://registry.npmjs.org/google-auto-auth/-/google-auto-auth-0.9.7.tgz", - "integrity": "sha512-Nro7aIFrL2NP0G7PoGrJqXGMZj8AjdBOcbZXRRm/8T3w08NUHIiNN3dxpuUYzDsZizslH+c8e+7HXL8vh3JXTQ==", + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/google-auto-auth/-/google-auto-auth-0.10.1.tgz", + "integrity": "sha512-iIqSbY7Ypd32mnHGbYctp80vZzXoDlvI9gEfvtl3kmyy5HzOcrZCIGCBdSlIzRsg7nHpQiHE3Zl6Ycur6TSodQ==", "requires": { "async": "2.6.0", "gcp-metadata": "0.6.3", - "google-auth-library": "1.3.2", + "google-auth-library": "1.4.0", "request": "2.85.0" } }, "google-gax": { - "version": "0.16.0", - "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.16.0.tgz", - "integrity": "sha512-sslPB7USGD8SrVUGlWFIGYVZrgZ6oj+fWUEW3f8Bk43+nxqeLyrNoI3iFBRpjLfwMCEYaXVziWNmatwLRP8azg==", + "version": "0.16.1", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.16.1.tgz", + "integrity": "sha512-eP7UUkKvaHmmvCrr+rxzkIOeEKOnXmoib7/AkENDAuqlC9T2+lWlzwpthDRnitQcV8SblDMzsk73YPMPCDwPyQ==", "requires": { "duplexify": "3.5.4", "extend": "3.0.1", "globby": "8.0.1", - "google-auto-auth": "0.9.7", + "google-auto-auth": "0.10.1", "google-proto-files": "0.15.1", - "grpc": "1.9.1", - "is-stream-ended": "0.1.3", - "lodash": "4.17.5", + "grpc": "1.11.0", + "is-stream-ended": "0.1.4", + "lodash": "4.17.10", "protobufjs": "6.8.6", "through2": "2.0.3" } @@ -6221,7 +5687,7 @@ "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-1.0.2.tgz", "integrity": "sha512-+EuKr4CLlGsnXx4XIJIVkcKYrsa2xkAmCvxRhX2HsazJzUBAJ35wARGeApHUn4nNfPD03Vl057FskNr20VaCyg==", "requires": { - "node-forge": "0.7.4", + "node-forge": "0.7.5", "pify": "3.0.0" } }, @@ -6231,7 +5697,7 @@ "integrity": "sha512-ebtmWgi/ooR5Nl63qRVZZ6VLM6JOb5zTNxTT/ZAU8yfMOdcauoOZNNMOVg0pCmTjqWXeuuVbgPP0CwO5UHHzBQ==", "requires": { "globby": "7.1.1", - "power-assert": "1.4.4", + "power-assert": "1.5.0", "protobufjs": "6.8.6" }, "dependencies": { @@ -6243,7 +5709,7 @@ "array-union": "1.0.2", "dir-glob": "2.0.0", "glob": "7.1.2", - "ignore": "3.3.7", + "ignore": "3.3.8", "pify": "3.0.0", "slash": "1.0.0" } @@ -6264,12 +5730,12 @@ "into-stream": "3.1.0", "is-retry-allowed": "1.1.0", "isurl": "1.0.0", - "lowercase-keys": "1.0.0", + "lowercase-keys": "1.0.1", "mimic-response": "1.0.0", "p-cancelable": "0.3.0", "p-timeout": "2.0.1", "pify": "3.0.0", - "safe-buffer": "5.1.1", + "safe-buffer": "5.1.2", "timed-out": "4.0.1", "url-parse-lax": "3.0.0", "url-to-options": "1.0.1" @@ -6305,13 +5771,13 @@ "dev": true }, "grpc": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.9.1.tgz", - "integrity": "sha512-WNW3MWMuAoo63AwIlzFE3T0KzzvNBSvOkg67Hm8WhvHNkXFBlIk1QyJRE3Ocm0O5eIwS7JU8Ssota53QR1zllg==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.11.0.tgz", + "integrity": "sha512-pTJjV/eatBQ6Rhc/jWNmUW9jE8fPrhcMYSWDSyf4l7ah1U3sIe4eIjqI/a3sm0zKbM5CuovV0ESrc+b04kr4Ig==", "requires": { - "lodash": "4.17.5", + "lodash": "4.17.10", "nan": "2.10.0", - "node-pre-gyp": "0.6.39", + "node-pre-gyp": "0.7.0", "protobufjs": "5.0.2" }, "dependencies": { @@ -6320,11 +5786,13 @@ "bundled": true }, "ajv": { - "version": "4.11.8", + "version": "5.5.2", "bundled": true, "requires": { "co": "4.6.0", - "json-stable-stringify": "1.0.1" + "fast-deep-equal": "1.1.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" } }, "ansi-regex": { @@ -6340,7 +5808,7 @@ "bundled": true, "requires": { "delegates": "1.0.0", - "readable-stream": "2.3.3" + "readable-stream": "2.3.6" } }, "asn1": { @@ -6348,7 +5816,7 @@ "bundled": true }, "assert-plus": { - "version": "0.2.0", + "version": "1.0.0", "bundled": true }, "asynckit": { @@ -6356,11 +5824,11 @@ "bundled": true }, "aws-sign2": { - "version": "0.6.0", + "version": "0.7.0", "bundled": true }, "aws4": { - "version": "1.6.0", + "version": "1.7.0", "bundled": true }, "balanced-match": { @@ -6383,14 +5851,14 @@ } }, "boom": { - "version": "2.10.1", + "version": "4.3.1", "bundled": true, "requires": { - "hoek": "2.16.3" + "hoek": "4.2.1" } }, "brace-expansion": { - "version": "1.1.8", + "version": "1.1.11", "bundled": true, "requires": { "balanced-match": "1.0.0", @@ -6410,7 +5878,7 @@ "bundled": true }, "combined-stream": { - "version": "1.0.5", + "version": "1.0.6", "bundled": true, "requires": { "delayed-stream": "1.0.0" @@ -6429,10 +5897,19 @@ "bundled": true }, "cryptiles": { - "version": "2.0.5", + "version": "3.1.2", "bundled": true, "requires": { - "boom": "2.10.1" + "boom": "5.2.0" + }, + "dependencies": { + "boom": { + "version": "5.2.0", + "bundled": true, + "requires": { + "hoek": "4.2.1" + } + } } }, "dashdash": { @@ -6440,12 +5917,6 @@ "bundled": true, "requires": { "assert-plus": "1.0.0" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true - } } }, "debug": { @@ -6487,17 +5958,25 @@ "version": "1.3.0", "bundled": true }, + "fast-deep-equal": { + "version": "1.1.0", + "bundled": true + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "bundled": true + }, "forever-agent": { "version": "0.6.1", "bundled": true }, "form-data": { - "version": "2.1.4", + "version": "2.3.2", "bundled": true, "requires": { "asynckit": "0.4.0", - "combined-stream": "1.0.5", - "mime-types": "2.1.17" + "combined-stream": "1.0.6", + "mime-types": "2.1.18" } }, "fs.realpath": { @@ -6542,12 +6021,6 @@ "bundled": true, "requires": { "assert-plus": "1.0.0" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true - } } }, "glob": { @@ -6567,15 +6040,15 @@ "bundled": true }, "har-schema": { - "version": "1.0.5", + "version": "2.0.0", "bundled": true }, "har-validator": { - "version": "4.2.1", + "version": "5.0.3", "bundled": true, "requires": { - "ajv": "4.11.8", - "har-schema": "1.0.5" + "ajv": "5.5.2", + "har-schema": "2.0.0" } }, "has-unicode": { @@ -6583,26 +6056,26 @@ "bundled": true }, "hawk": { - "version": "3.1.3", + "version": "6.0.2", "bundled": true, "requires": { - "boom": "2.10.1", - "cryptiles": "2.0.5", - "hoek": "2.16.3", - "sntp": "1.0.9" + "boom": "4.3.1", + "cryptiles": "3.1.2", + "hoek": "4.2.1", + "sntp": "2.1.0" } }, "hoek": { - "version": "2.16.3", + "version": "4.2.1", "bundled": true }, "http-signature": { - "version": "1.1.1", + "version": "1.2.0", "bundled": true, "requires": { - "assert-plus": "0.2.0", + "assert-plus": "1.0.0", "jsprim": "1.4.1", - "sshpk": "1.13.1" + "sshpk": "1.14.1" } }, "inflight": { @@ -6649,21 +6122,14 @@ "version": "0.2.3", "bundled": true }, - "json-stable-stringify": { - "version": "1.0.1", - "bundled": true, - "requires": { - "jsonify": "0.0.0" - } + "json-schema-traverse": { + "version": "0.3.1", + "bundled": true }, "json-stringify-safe": { "version": "5.0.1", "bundled": true }, - "jsonify": { - "version": "0.0.0", - "bundled": true - }, "jsprim": { "version": "1.4.1", "bundled": true, @@ -6672,34 +6138,28 @@ "extsprintf": "1.3.0", "json-schema": "0.2.3", "verror": "1.10.0" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true - } } }, "mime-db": { - "version": "1.30.0", + "version": "1.33.0", "bundled": true }, "mime-types": { - "version": "2.1.17", + "version": "2.1.18", "bundled": true, "requires": { - "mime-db": "1.30.0" + "mime-db": "1.33.0" } }, "minimatch": { "version": "3.0.4", "bundled": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "1.1.11" } }, "minimist": { - "version": "0.0.8", + "version": "1.2.0", "bundled": true }, "mkdirp": { @@ -6707,6 +6167,12 @@ "bundled": true, "requires": { "minimist": "0.0.8" + }, + "dependencies": { + "minimist": { + "version": "0.0.8", + "bundled": true + } } }, "ms": { @@ -6714,16 +6180,15 @@ "bundled": true }, "node-pre-gyp": { - "version": "0.6.39", + "version": "0.7.0", "bundled": true, "requires": { "detect-libc": "1.0.3", - "hawk": "3.1.3", "mkdirp": "0.5.1", "nopt": "4.0.1", "npmlog": "4.1.2", - "rc": "1.2.4", - "request": "2.81.0", + "rc": "1.2.6", + "request": "2.83.0", "rimraf": "2.6.2", "semver": "5.5.0", "tar": "2.2.1", @@ -6735,7 +6200,7 @@ "bundled": true, "requires": { "abbrev": "1.1.1", - "osenv": "0.1.4" + "osenv": "0.1.5" } }, "npmlog": { @@ -6776,7 +6241,7 @@ "bundled": true }, "osenv": { - "version": "0.1.4", + "version": "0.1.5", "bundled": true, "requires": { "os-homedir": "1.0.2", @@ -6788,11 +6253,11 @@ "bundled": true }, "performance-now": { - "version": "0.2.0", + "version": "2.1.0", "bundled": true }, "process-nextick-args": { - "version": "1.0.7", + "version": "2.0.0", "bundled": true }, "protobufjs": { @@ -6811,62 +6276,56 @@ "bundled": true }, "qs": { - "version": "6.4.0", + "version": "6.5.1", "bundled": true }, "rc": { - "version": "1.2.4", + "version": "1.2.6", "bundled": true, "requires": { "deep-extend": "0.4.2", "ini": "1.3.5", "minimist": "1.2.0", "strip-json-comments": "2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true - } } }, "readable-stream": { - "version": "2.3.3", + "version": "2.3.6", "bundled": true, "requires": { "core-util-is": "1.0.2", "inherits": "2.0.3", "isarray": "1.0.0", - "process-nextick-args": "1.0.7", + "process-nextick-args": "2.0.0", "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", + "string_decoder": "1.1.1", "util-deprecate": "1.0.2" } }, "request": { - "version": "2.81.0", + "version": "2.83.0", "bundled": true, "requires": { - "aws-sign2": "0.6.0", - "aws4": "1.6.0", + "aws-sign2": "0.7.0", + "aws4": "1.7.0", "caseless": "0.12.0", - "combined-stream": "1.0.5", + "combined-stream": "1.0.6", "extend": "3.0.1", "forever-agent": "0.6.1", - "form-data": "2.1.4", - "har-validator": "4.2.1", - "hawk": "3.1.3", - "http-signature": "1.1.1", + "form-data": "2.3.2", + "har-validator": "5.0.3", + "hawk": "6.0.2", + "http-signature": "1.2.0", "is-typedarray": "1.0.0", "isstream": "0.1.2", "json-stringify-safe": "5.0.1", - "mime-types": "2.1.17", + "mime-types": "2.1.18", "oauth-sign": "0.8.2", - "performance-now": "0.2.0", - "qs": "6.4.0", + "performance-now": "2.1.0", + "qs": "6.5.1", "safe-buffer": "5.1.1", "stringstream": "0.0.5", - "tough-cookie": "2.3.3", + "tough-cookie": "2.3.4", "tunnel-agent": "0.6.0", "uuid": "3.2.1" } @@ -6895,14 +6354,14 @@ "bundled": true }, "sntp": { - "version": "1.0.9", + "version": "2.1.0", "bundled": true, "requires": { - "hoek": "2.16.3" + "hoek": "4.2.1" } }, "sshpk": { - "version": "1.13.1", + "version": "1.14.1", "bundled": true, "requires": { "asn1": "0.2.3", @@ -6913,12 +6372,6 @@ "getpass": "0.1.7", "jsbn": "0.1.1", "tweetnacl": "0.14.5" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true - } } }, "string-width": { @@ -6931,7 +6384,7 @@ } }, "string_decoder": { - "version": "1.0.3", + "version": "1.1.1", "bundled": true, "requires": { "safe-buffer": "5.1.1" @@ -6969,14 +6422,14 @@ "fstream": "1.0.11", "fstream-ignore": "1.0.5", "once": "1.4.0", - "readable-stream": "2.3.3", + "readable-stream": "2.3.6", "rimraf": "2.6.2", "tar": "2.2.1", "uid-number": "0.0.6" } }, "tough-cookie": { - "version": "2.3.3", + "version": "2.3.4", "bundled": true, "requires": { "punycode": "1.4.1" @@ -7013,12 +6466,6 @@ "assert-plus": "1.0.0", "core-util-is": "1.0.2", "extsprintf": "1.3.0" - }, - "dependencies": { - "assert-plus": { - "version": "1.0.0", - "bundled": true - } } }, "wide-align": { @@ -7035,14 +6482,14 @@ } }, "gtoken": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-2.2.0.tgz", - "integrity": "sha512-tvQs8B1z5+I1FzMPZnq/OCuxTWFOkvy7cUJcpNdBOK2L7yEtPZTVCPtZU181sSDF+isUPebSqFTNTkIejFASAQ==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-2.3.0.tgz", + "integrity": "sha512-Jc9/8mV630cZE9FC5tIlJCZNdUjwunvlwOtCz6IDlaiB4Sz68ki29a1+q97sWTnTYroiuF9B135rod9zrQdHLw==", "requires": { "axios": "0.18.0", "google-p12-pem": "1.0.2", "jws": "3.1.4", - "mime": "2.2.0", + "mime": "2.3.1", "pify": "3.0.0" } }, @@ -7209,7 +6656,7 @@ "domutils": "1.7.0", "entities": "1.1.1", "inherits": "2.0.3", - "readable-stream": "2.3.5" + "readable-stream": "2.3.6" } }, "http-cache-semantics": { @@ -7247,19 +6694,22 @@ "package-hash": "2.0.0", "pkg-dir": "2.0.0", "resolve-from": "3.0.0", - "safe-buffer": "5.1.1" + "safe-buffer": "5.1.2" } }, "iconv-lite": { - "version": "0.4.19", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.19.tgz", - "integrity": "sha512-oTZqweIP51xaGPI4uPa56/Pri/480R+mo7SeU+YETByQNhDG55ycFyNLIgta9vXhILrxXDmF7ZGhqZIcuN0gJQ==", - "dev": true + "version": "0.4.21", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.21.tgz", + "integrity": "sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw==", + "dev": true, + "requires": { + "safer-buffer": "2.1.2" + } }, "ignore": { - "version": "3.3.7", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.7.tgz", - "integrity": "sha512-YGG3ejvBNHRqu0559EOxxNFihD0AjpvHlC/pdGKd3X3ofe+CoJkYazwNJYTNebqpPKN+VVQbh4ZFn1DivMNuHA==" + "version": "3.3.8", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.8.tgz", + "integrity": "sha512-pUh+xUQQhQzevjRHHFqqcTy0/dP/kS9I8HSrUydhihjuD09W6ldVWFtIrwhXdUJHis3i2rZNqEHpZH/cbinFbg==" }, "ignore-by-default": { "version": "1.0.1", @@ -7326,7 +6776,7 @@ "integrity": "sha512-STx5orGQU1gfrkoI/fMU7lX6CSP7LBGO10gXNgOZhwKhUqbtNjCkYSewJtNnLmWP1tAGN6oyEpG1HFPw5vpa5Q==", "dev": true, "requires": { - "moment": "2.21.0", + "moment": "2.22.1", "sanitize-html": "1.18.2" } }, @@ -7336,13 +6786,13 @@ "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==", "dev": true, "requires": { - "ansi-escapes": "3.0.0", - "chalk": "2.3.2", + "ansi-escapes": "3.1.0", + "chalk": "2.4.1", "cli-cursor": "2.1.0", "cli-width": "2.2.0", - "external-editor": "2.1.0", + "external-editor": "2.2.0", "figures": "2.0.0", - "lodash": "4.17.5", + "lodash": "4.17.10", "mute-stream": "0.0.7", "run-async": "2.3.0", "rx-lite": "4.0.8", @@ -7425,11 +6875,21 @@ "dev": true }, "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "requires": { - "kind-of": "6.0.2" + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } } }, "is-arrayish": { @@ -7471,21 +6931,38 @@ } }, "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "requires": { - "kind-of": "6.0.2" + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "requires": { + "is-buffer": "1.1.6" + } + } } }, "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" + } } }, "is-dotfile": { @@ -7627,9 +7104,9 @@ "dev": true }, "is-path-in-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz", - "integrity": "sha1-ZHdYK4IU1gI0YJRWcAO+ip6sBNw=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", + "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", "dev": true, "requires": { "is-path-inside": "1.0.1" @@ -7701,9 +7178,9 @@ "dev": true }, "is-stream-ended": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.3.tgz", - "integrity": "sha1-oEc7Jnx1ZjVIa+7cfjNE5UnRUqw=" + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.4.tgz", + "integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==" }, "is-typedarray": { "version": "1.0.0", @@ -7711,9 +7188,9 @@ "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" }, "is-url": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.2.tgz", - "integrity": "sha1-SYkFpZO/R8wtnn9zg3K792lsfyY=", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz", + "integrity": "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==", "dev": true }, "is-utf8": { @@ -7813,7 +7290,7 @@ "escape-string-regexp": "1.0.5", "js2xmlparser": "3.0.0", "klaw": "2.0.0", - "marked": "0.3.17", + "marked": "0.3.19", "mkdirp": "0.5.1", "requizzle": "0.2.1", "strip-json-comments": "2.0.1", @@ -7842,9 +7319,9 @@ "dev": true }, "json-parse-better-errors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.1.tgz", - "integrity": "sha512-xyQpxeWWMKyJps9CuGJYeng6ssI5bpqS9ltQpdVQ90t4ql6NdnxFKh95JcRt2cun/DjMVNrdjniLPuMA69xmCw==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", + "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", "dev": true }, "json-schema": { @@ -7857,15 +7334,6 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" }, - "json-stable-stringify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", - "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", - "dev": true, - "requires": { - "jsonify": "0.0.0" - } - }, "json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", @@ -7892,12 +7360,6 @@ "graceful-fs": "4.1.11" } }, - "jsonify": { - "version": "0.0.0", - "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", - "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", - "dev": true - }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -7923,7 +7385,7 @@ "base64url": "2.0.0", "buffer-equal-constant-time": "1.0.1", "ecdsa-sig-formatter": "1.0.9", - "safe-buffer": "5.1.1" + "safe-buffer": "5.1.2" } }, "jws": { @@ -7933,7 +7395,7 @@ "requires": { "base64url": "2.0.0", "jwa": "1.1.5", - "safe-buffer": "5.1.1" + "safe-buffer": "5.1.2" } }, "keyv": { @@ -8033,9 +7495,9 @@ } }, "lodash": { - "version": "4.17.5", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", - "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==" + "version": "4.17.10", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", + "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" }, "lodash.clonedeep": { "version": "4.5.0", @@ -8150,9 +7612,9 @@ } }, "lowercase-keys": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", - "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", + "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", "dev": true }, "lru-cache": { @@ -8193,9 +7655,9 @@ } }, "marked": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.3.17.tgz", - "integrity": "sha512-+AKbNsjZl6jFfLPwHhWmGTqE009wTKn3RTmn9K8oUKHrX/abPJjtcRtXpYB/FFrwPJRUA86LX/de3T0knkPCmQ==", + "version": "0.3.19", + "resolved": "https://registry.npmjs.org/marked/-/marked-0.3.19.tgz", + "integrity": "sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==", "dev": true }, "matcher": { @@ -8378,13 +7840,13 @@ "dev": true }, "micromatch": { - "version": "3.1.9", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.9.tgz", - "integrity": "sha512-SlIz6sv5UPaAVVFRKodKjCg48EbNoIhgetzfK/Cy0v5U52Z6zB136M8tp0UC9jM53LYbmIRihJszvvqpKkfm9g==", + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", "requires": { "arr-diff": "4.0.0", "array-unique": "0.3.2", - "braces": "2.3.1", + "braces": "2.3.2", "define-property": "2.0.2", "extend-shallow": "3.0.2", "extglob": "2.0.4", @@ -8398,9 +7860,9 @@ } }, "mime": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.2.0.tgz", - "integrity": "sha512-0Qz9uF1ATtl8RKJG4VRfOymh7PyEor6NbrI/61lRfuRe4vx9SNATrvAeTj2EWVRKjEQGskrzWkJBBY5NbaVHIA==" + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/mime/-/mime-2.3.1.tgz", + "integrity": "sha512-OEUllcVoydBHGN1z84yfQDimn58pZNNNXgZlHXSboxMlFvgI6MXSWpWKpFRra7H1HxpVhHTkrghfRW49k6yjeg==" }, "mime-db": { "version": "1.33.0", @@ -8470,9 +7932,9 @@ } }, "mocha": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.0.4.tgz", - "integrity": "sha512-nMOpAPFosU1B4Ix1jdhx5e3q7XO55ic5a8cgYvW27CequcEY+BabS0kUVL1Cw1V5PuVHZWeNRWFLmEPexo79VA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.1.1.tgz", + "integrity": "sha512-kKKs/H1KrMMQIEsWNxGmb4/BGsmj0dkeyotEvbrAuQ01FcWRLssUNXCEUZk6SZtyJBi6EE7SL0zDDtItw1rGhw==", "dev": true, "requires": { "browser-stdout": "1.3.1", @@ -8483,6 +7945,7 @@ "glob": "7.1.2", "growl": "1.10.3", "he": "1.1.1", + "minimatch": "3.0.4", "mkdirp": "0.5.1", "supports-color": "4.4.0" }, @@ -8514,9 +7977,9 @@ "dev": true }, "moment": { - "version": "2.21.0", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.21.0.tgz", - "integrity": "sha512-TCZ36BjURTeFTM/CwRcViQlfkMvL1/vFISuNLO5GkcVm1+QHfbSiNqZuWeMFjj1/3+uAjXswgRk30j1kkLYJBQ==", + "version": "2.22.1", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.1.tgz", + "integrity": "sha512-shJkRTSebXvsVqk56I+lkb2latjBs8I+pc2TzWc545y2iFnSjm7Wg0QMh+ZWcdSLQyGEau5jI8ocnmkyTgr9YQ==", "dev": true }, "ms": { @@ -8599,9 +8062,9 @@ "dev": true }, "nise": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/nise/-/nise-1.3.2.tgz", - "integrity": "sha512-KPKb+wvETBiwb4eTwtR/OsA2+iijXP+VnlSFYJo3EHjm2yjek1NWxHOUQat3i7xNLm1Bm18UA5j5Wor0yO2GtA==", + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/nise/-/nise-1.3.3.tgz", + "integrity": "sha512-v1J/FLUB9PfGqZLGDBhQqODkbLotP0WtLo9R4EJY2PPu5f5Xg4o0rA8FDlmrjFSv9vBBKcfnOSpfYYuu5RTHqg==", "dev": true, "requires": { "@sinonjs/formatio": "2.0.0", @@ -8612,9 +8075,9 @@ } }, "node-forge": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.4.tgz", - "integrity": "sha512-8Df0906+tq/omxuCZD6PqhPaQDYuyJ1d+VITgxoIA8zvQd1ru+nMJcDChHH324MWitIgbVkAkQoGEEVJNpn/PA==" + "version": "0.7.5", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.5.tgz", + "integrity": "sha512-MmbQJ2MTESTjt3Gi/3yG1wGpIMhUfcIypUCGtTizFR9IiccFwxSpfp0vtIZlkFclEqERemxfnSdZEMR9VqqEFQ==" }, "normalize-package-data": { "version": "2.4.0", @@ -8671,9 +8134,9 @@ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, "nyc": { - "version": "11.6.0", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.6.0.tgz", - "integrity": "sha512-ZaXCh0wmbk2aSBH2B5hZGGvK2s9aM8DIm2rVY+BG3Fx8tUS+bpJSswUVZqOD1YfCmnYRFSqgYJSr7UeeUcW0jg==", + "version": "11.7.1", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.7.1.tgz", + "integrity": "sha512-EGePURSKUEpS1jWnEKAMhY+GWZzi7JC+f8iBDOATaOsLZW5hM/9eYx2dHGaEXa1ITvMm44CJugMksvP3NwMQMw==", "dev": true, "requires": { "archy": "1.0.0", @@ -8691,7 +8154,7 @@ "istanbul-lib-instrument": "1.10.1", "istanbul-lib-report": "1.1.3", "istanbul-lib-source-maps": "1.2.3", - "istanbul-reports": "1.3.0", + "istanbul-reports": "1.4.0", "md5-hex": "1.3.0", "merge-source-map": "1.1.0", "micromatch": "2.3.11", @@ -8782,7 +8245,7 @@ "dev": true }, "atob": { - "version": "2.0.3", + "version": "2.1.0", "bundled": true, "dev": true }, @@ -8824,7 +8287,7 @@ "bundled": true, "dev": true, "requires": { - "core-js": "2.5.3", + "core-js": "2.5.5", "regenerator-runtime": "0.11.1" } }, @@ -8852,7 +8315,7 @@ "babylon": "6.18.0", "debug": "2.6.9", "globals": "9.18.0", - "invariant": "2.2.3", + "invariant": "2.2.4", "lodash": "4.17.5" } }, @@ -8899,10 +8362,41 @@ "is-descriptor": "1.0.2" } }, + "is-accessor-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, "isobject": { "version": "3.0.1", "bundled": true, "dev": true + }, + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true } } }, @@ -8992,79 +8486,28 @@ } }, "class-utils": { - "version": "0.3.6", - "bundled": true, - "dev": true, - "requires": { - "arr-union": "3.1.0", - "define-property": "0.2.5", - "isobject": "3.0.1", - "static-extend": "0.1.2" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "0.1.6" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", + "version": "0.3.6", + "bundled": true, + "dev": true, + "requires": { + "arr-union": "3.1.0", + "define-property": "0.2.5", + "isobject": "3.0.1", + "static-extend": "0.1.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", "bundled": true, "dev": true, "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" + "is-descriptor": "0.1.6" } }, "isobject": { "version": "3.0.1", "bundled": true, "dev": true - }, - "kind-of": { - "version": "5.1.0", - "bundled": true, - "dev": true } } }, @@ -9127,7 +8570,7 @@ "dev": true }, "core-js": { - "version": "2.5.3", + "version": "2.5.5", "bundled": true, "dev": true }, @@ -9180,10 +8623,41 @@ "isobject": "3.0.1" }, "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, "isobject": { "version": "3.0.1", "bundled": true, "dev": true + }, + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true } } }, @@ -9520,7 +8994,7 @@ "dev": true }, "invariant": { - "version": "2.2.3", + "version": "2.2.4", "bundled": true, "dev": true, "requires": { @@ -9533,18 +9007,11 @@ "dev": true }, "is-accessor-descriptor": { - "version": "1.0.0", + "version": "0.1.6", "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } + "kind-of": "3.2.2" } }, "is-arrayish": { @@ -9566,32 +9033,25 @@ } }, "is-data-descriptor": { - "version": "1.0.0", + "version": "0.1.4", "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } + "kind-of": "3.2.2" } }, "is-descriptor": { - "version": "1.0.2", + "version": "0.1.6", "bundled": true, "dev": true, "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" }, "dependencies": { "kind-of": { - "version": "6.0.2", + "version": "5.1.0", "bundled": true, "dev": true } @@ -9793,7 +9253,7 @@ } }, "istanbul-reports": { - "version": "1.3.0", + "version": "1.4.0", "bundled": true, "dev": true, "requires": { @@ -10096,39 +9556,6 @@ "requires": { "is-descriptor": "0.1.6" } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - } - }, - "is-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "bundled": true, - "dev": true - } - } } } }, @@ -10584,57 +10011,6 @@ "requires": { "is-extendable": "0.1.1" } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" - } - }, - "kind-of": { - "version": "5.1.0", - "bundled": true, - "dev": true } } }, @@ -10656,10 +10032,41 @@ "is-descriptor": "1.0.2" } }, + "is-accessor-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, "isobject": { "version": "3.0.1", "bundled": true, "dev": true + }, + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true } } }, @@ -10681,7 +10088,7 @@ "bundled": true, "dev": true, "requires": { - "atob": "2.0.3", + "atob": "2.1.0", "decode-uri-component": "0.2.0", "resolve-url": "0.2.1", "source-map-url": "0.4.0", @@ -10718,97 +10125,46 @@ "spdx-exceptions": { "version": "2.1.0", "bundled": true, - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "spdx-exceptions": "2.1.0", - "spdx-license-ids": "3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "split-string": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "3.0.2" - } - }, - "static-extend": { - "version": "0.1.2", - "bundled": true, - "dev": true, - "requires": { - "define-property": "0.2.5", - "object-copy": "0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "0.1.6" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "spdx-exceptions": "2.1.0", + "spdx-license-ids": "3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "split-string": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "extend-shallow": "3.0.2" + } + }, + "static-extend": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "requires": { + "define-property": "0.2.5", + "object-copy": "0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", "bundled": true, "dev": true, "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" + "is-descriptor": "0.1.6" } - }, - "kind-of": { - "version": "5.1.0", - "bundled": true, - "dev": true } } }, @@ -10868,7 +10224,7 @@ "dev": true, "requires": { "arrify": "1.0.1", - "micromatch": "3.1.9", + "micromatch": "3.1.10", "object-assign": "4.1.1", "read-pkg-up": "1.0.1", "require-main-filename": "1.0.1" @@ -10885,17 +10241,15 @@ "dev": true }, "braces": { - "version": "2.3.1", + "version": "2.3.2", "bundled": true, "dev": true, "requires": { "arr-flatten": "1.1.0", "array-unique": "0.3.2", - "define-property": "1.0.0", "extend-shallow": "2.0.1", "fill-range": "4.0.0", "isobject": "3.0.1", - "kind-of": "6.0.2", "repeat-element": "1.1.2", "snapdragon": "0.8.2", "snapdragon-node": "2.1.1", @@ -10903,14 +10257,6 @@ "to-regex": "3.0.2" }, "dependencies": { - "define-property": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "1.0.2" - } - }, "extend-shallow": { "version": "2.0.1", "bundled": true, @@ -10951,6 +10297,42 @@ "is-extendable": "0.1.1" } }, + "is-accessor-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "is-data-descriptor": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, "is-descriptor": { "version": "0.1.6", "bundled": true, @@ -11023,39 +10405,29 @@ } }, "is-accessor-descriptor": { - "version": "0.1.6", + "version": "1.0.0", "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } + "kind-of": "6.0.2" } }, "is-data-descriptor": { - "version": "0.1.4", + "version": "1.0.0", "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" } }, "is-number": { @@ -11087,13 +10459,13 @@ "dev": true }, "micromatch": { - "version": "3.1.9", + "version": "3.1.10", "bundled": true, "dev": true, "requires": { "arr-diff": "4.0.0", "array-unique": "0.3.2", - "braces": "2.3.1", + "braces": "2.3.2", "define-property": "2.0.2", "extend-shallow": "3.0.2", "extglob": "2.0.4", @@ -11470,39 +10842,6 @@ "is-descriptor": "0.1.6" } }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "requires": { - "kind-of": "3.2.2" - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "requires": { - "kind-of": "3.2.2" - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" - } - } - }, "kind-of": { "version": "3.2.2", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", @@ -11740,8 +11079,8 @@ "is-redirect": "1.0.0", "is-retry-allowed": "1.1.0", "is-stream": "1.1.0", - "lowercase-keys": "1.0.0", - "safe-buffer": "5.1.1", + "lowercase-keys": "1.0.1", + "safe-buffer": "5.1.2", "timed-out": "4.0.1", "unzip-response": "2.0.1", "url-parse-lax": "1.0.0" @@ -11911,7 +11250,7 @@ "dev": true, "requires": { "error-ex": "1.3.1", - "json-parse-better-errors": "1.0.1" + "json-parse-better-errors": "1.0.2" } } } @@ -11946,14 +11285,14 @@ "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" }, "postcss": { - "version": "6.0.20", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.20.tgz", - "integrity": "sha512-Opr6usW30Iy0xEDrJywDckRxtylfO7gTGs3Kfb2LdLQlGsUg89fTy0R3Vm1Dub2YHO7MK58avr0p70+uFFHb7A==", + "version": "6.0.22", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.22.tgz", + "integrity": "sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA==", "dev": true, "requires": { - "chalk": "2.3.2", + "chalk": "2.4.1", "source-map": "0.6.1", - "supports-color": "5.3.0" + "supports-color": "5.4.0" }, "dependencies": { "source-map": { @@ -11965,9 +11304,9 @@ } }, "power-assert": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/power-assert/-/power-assert-1.4.4.tgz", - "integrity": "sha1-kpXqdDcZb1pgH95CDwQmMRhtdRc=", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/power-assert/-/power-assert-1.5.0.tgz", + "integrity": "sha512-WaWSw+Ts283o6dzxW1BxIxoaHok7aSSGx4SaR6dW62Pk31ynv9DERDieuZpPYv5XaJ+H+zdcOaJQ+PvlasAOVw==", "requires": { "define-properties": "1.1.2", "empower": "1.2.3", @@ -11981,7 +11320,7 @@ "resolved": "https://registry.npmjs.org/power-assert-context-formatter/-/power-assert-context-formatter-1.1.1.tgz", "integrity": "sha1-7bo1LT7YpgMRTWZyZazOYNaJzN8=", "requires": { - "core-js": "2.5.3", + "core-js": "2.5.5", "power-assert-context-traversal": "1.1.1" } }, @@ -11992,7 +11331,7 @@ "requires": { "acorn": "4.0.13", "acorn-es7-plugin": "1.1.7", - "core-js": "2.5.3", + "core-js": "2.5.5", "espurify": "1.7.0", "estraverse": "4.2.0" } @@ -12002,7 +11341,7 @@ "resolved": "https://registry.npmjs.org/power-assert-context-traversal/-/power-assert-context-traversal-1.1.1.tgz", "integrity": "sha1-iMq8oNE7Y1nwfT0+ivppkmRXftk=", "requires": { - "core-js": "2.5.3", + "core-js": "2.5.5", "estraverse": "4.2.0" } }, @@ -12011,7 +11350,7 @@ "resolved": "https://registry.npmjs.org/power-assert-formatter/-/power-assert-formatter-1.4.1.tgz", "integrity": "sha1-XcEl7VCj37HdomwZNH879Y7CiEo=", "requires": { - "core-js": "2.5.3", + "core-js": "2.5.5", "power-assert-context-formatter": "1.1.1", "power-assert-context-reducer-ast": "1.1.2", "power-assert-renderer-assertion": "1.1.1", @@ -12039,7 +11378,7 @@ "resolved": "https://registry.npmjs.org/power-assert-renderer-comparison/-/power-assert-renderer-comparison-1.1.1.tgz", "integrity": "sha1-10Odl9hRVr5OMKAPL7WnJRTOPAg=", "requires": { - "core-js": "2.5.3", + "core-js": "2.5.5", "diff-match-patch": "1.0.0", "power-assert-renderer-base": "1.1.1", "stringifier": "1.3.0", @@ -12051,7 +11390,7 @@ "resolved": "https://registry.npmjs.org/power-assert-renderer-diagram/-/power-assert-renderer-diagram-1.1.2.tgz", "integrity": "sha1-ZV+PcRk1qbbVQbhjJ2VHF8Y3qYY=", "requires": { - "core-js": "2.5.3", + "core-js": "2.5.5", "power-assert-renderer-base": "1.1.1", "power-assert-util-string-width": "1.1.1", "stringifier": "1.3.0" @@ -12092,9 +11431,9 @@ "dev": true }, "prettier": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.11.1.tgz", - "integrity": "sha512-T/KD65Ot0PB97xTrG8afQ46x3oiVhnfGjGESSI9NWYcG92+OUPZKkwHqGWXH2t9jK1crnQjubECW0FuOth+hxw==", + "version": "1.12.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.12.1.tgz", + "integrity": "sha1-wa0g6APndJ+vkFpAnSNn4Gu+cyU=", "dev": true }, "pretty-ms": { @@ -12148,7 +11487,7 @@ "@protobufjs/pool": "1.1.0", "@protobufjs/utf8": "1.1.0", "@types/long": "3.0.32", - "@types/node": "8.9.5", + "@types/node": "8.10.11", "long": "4.0.0" } }, @@ -12211,12 +11550,12 @@ } }, "rc": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.6.tgz", - "integrity": "sha1-6xiYnG1PTxYsOZ953dKfODVWgJI=", + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.7.tgz", + "integrity": "sha512-LdLD8xD4zzLsAT5xyushXDNscEjB7+2ulnl8+r1pnESlYtlJtVSoCMBGr30eDRJ3+2Gq89jK9P9e4tCEH1+ywA==", "dev": true, "requires": { - "deep-extend": "0.4.2", + "deep-extend": "0.5.1", "ini": "1.3.5", "minimist": "1.2.0", "strip-json-comments": "2.0.1" @@ -12269,16 +11608,16 @@ } }, "readable-stream": { - "version": "2.3.5", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.5.tgz", - "integrity": "sha512-tK0yDhrkygt/knjowCUiWP9YdV7c5R+8cR0r/kt9ZhBU906Fs6RpQJCEilamRJj1Nx2rWI6LkW9gKqjTkshhEw==", + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "requires": { "core-util-is": "1.0.2", "inherits": "2.0.3", "isarray": "1.0.0", "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.0.3", + "safe-buffer": "5.1.2", + "string_decoder": "1.1.1", "util-deprecate": "1.0.2" } }, @@ -12290,7 +11629,7 @@ "requires": { "graceful-fs": "4.1.11", "minimatch": "3.0.4", - "readable-stream": "2.3.5", + "readable-stream": "2.3.6", "set-immediate-shim": "1.0.1" } }, @@ -12346,9 +11685,9 @@ } }, "regexpp": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-1.0.1.tgz", - "integrity": "sha512-8Ph721maXiOYSLtaDGKVmDn5wdsNaF6Px85qFNeMPQq0r8K5Y10tgP6YuR65Ws35n4DvzFcCxEnRNBIXQunzLw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-1.1.0.tgz", + "integrity": "sha512-LOPw8FpgdQF9etWMaAfG/WRthIdXJGYp4mJ2Jgn/2lpkbod9jPn0t9UqN7AxBOKNfzRbYyVfgc7Vk4t/MpnXgw==", "dev": true }, "regexpu-core": { @@ -12368,8 +11707,8 @@ "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", "dev": true, "requires": { - "rc": "1.2.6", - "safe-buffer": "5.1.1" + "rc": "1.2.7", + "safe-buffer": "5.1.2" } }, "registry-url": { @@ -12378,7 +11717,7 @@ "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", "dev": true, "requires": { - "rc": "1.2.6" + "rc": "1.2.7" } }, "regjsgen": { @@ -12436,7 +11775,7 @@ "integrity": "sha512-8H7Ehijd4js+s6wuVPLjwORxD4zeuyjYugprdOXlPSqaApmL/QOy+EB/beICHVCHkGMKNh5rvihb5ov+IDw4mg==", "requires": { "aws-sign2": "0.7.0", - "aws4": "1.6.0", + "aws4": "1.7.0", "caseless": "0.12.0", "combined-stream": "1.0.6", "extend": "3.0.1", @@ -12452,7 +11791,7 @@ "oauth-sign": "0.8.2", "performance-now": "2.1.0", "qs": "6.5.1", - "safe-buffer": "5.1.1", + "safe-buffer": "5.1.2", "stringstream": "0.0.5", "tough-cookie": "2.3.4", "tunnel-agent": "0.6.0", @@ -12544,7 +11883,7 @@ "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", "dev": true, "requires": { - "lowercase-keys": "1.0.0" + "lowercase-keys": "1.0.1" } }, "restore-cursor": { @@ -12611,9 +11950,9 @@ } }, "safe-buffer": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" }, "safe-regex": { "version": "1.1.0", @@ -12623,6 +11962,12 @@ "ret": "0.1.15" } }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "dev": true + }, "samsam": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.3.0.tgz", @@ -12635,14 +11980,14 @@ "integrity": "sha512-52ThA+Z7h6BnvpSVbURwChl10XZrps5q7ytjTwWcIe9bmJwnVP6cpEVK2NvDOUhGupoqAvNbUz3cpnJDp4+/pg==", "dev": true, "requires": { - "chalk": "2.3.2", + "chalk": "2.4.1", "htmlparser2": "3.9.2", "lodash.clonedeep": "4.5.0", "lodash.escaperegexp": "4.1.2", "lodash.isplainobject": "4.0.6", "lodash.isstring": "4.0.1", "lodash.mergewith": "4.6.1", - "postcss": "6.0.20", + "postcss": "6.0.22", "srcset": "1.0.0", "xtend": "4.0.1" } @@ -12732,8 +12077,8 @@ "diff": "3.5.0", "lodash.get": "4.4.2", "lolex": "2.3.2", - "nise": "1.3.2", - "supports-color": "5.3.0", + "nise": "1.3.3", + "supports-color": "5.4.0", "type-detect": "4.0.8" } }, @@ -12795,57 +12140,6 @@ "requires": { "is-extendable": "0.1.1" } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" } } }, @@ -12866,6 +12160,32 @@ "requires": { "is-descriptor": "1.0.2" } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } } } }, @@ -12914,7 +12234,7 @@ "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.1.tgz", "integrity": "sha512-0KW2wvzfxm8NCTb30z0LMNyPqWCdDGE2viwzUaucqJdkTRXtZiSY3I+2A6nVAjmdOy0I4gU8DwnVVGsk9jvP2A==", "requires": { - "atob": "2.0.3", + "atob": "2.1.1", "decode-uri-component": "0.2.0", "resolve-url": "0.2.1", "source-map-url": "0.4.0", @@ -12922,11 +12242,12 @@ } }, "source-map-support": { - "version": "0.5.4", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.4.tgz", - "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", + "version": "0.5.5", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.5.tgz", + "integrity": "sha512-mR7/Nd5l1z6g99010shcXJiNEaf3fEtmLhRB/sBcQVJGodcHCULPp2y4Sfa43Kv2zq7T+Izmfp/WHCR6dYkQCA==", "dev": true, "requires": { + "buffer-from": "1.0.0", "source-map": "0.6.1" }, "dependencies": { @@ -13036,57 +12357,6 @@ "requires": { "is-descriptor": "0.1.6" } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" - } - }, - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" } } }, @@ -13118,11 +12388,11 @@ } }, "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "5.1.2" } }, "stringifier": { @@ -13130,7 +12400,7 @@ "resolved": "https://registry.npmjs.org/stringifier/-/stringifier-1.3.0.tgz", "integrity": "sha1-3vGDQvaTPbDy2/yaoCF1tEjBeVk=", "requires": { - "core-js": "2.5.3", + "core-js": "2.5.5", "traverse": "0.6.6", "type-name": "2.0.2" } @@ -13185,9 +12455,9 @@ "dev": true }, "superagent": { - "version": "3.8.2", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.2.tgz", - "integrity": "sha512-gVH4QfYHcY3P0f/BZzavLreHW3T1v7hG9B+hpMQotGQqurOvhv87GcMCd6LWySmBuf+BDR44TQd0aISjVHLeNQ==", + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.3.tgz", + "integrity": "sha512-GLQtLMCoEIK4eDv6OGtkOoSMt3D+oq0y3dsxMuYuDvaNUvuT8eFBuLmfR0iYYzHC1e8hpzC6ZsxbuP6DIalMFA==", "dev": true, "requires": { "component-emitter": "1.2.1", @@ -13195,11 +12465,11 @@ "debug": "3.1.0", "extend": "3.0.1", "form-data": "2.3.2", - "formidable": "1.2.0", + "formidable": "1.2.1", "methods": "1.1.2", "mime": "1.6.0", "qs": "6.5.1", - "readable-stream": "2.3.5" + "readable-stream": "2.3.6" }, "dependencies": { "debug": { @@ -13256,13 +12526,13 @@ "dev": true, "requires": { "methods": "1.1.2", - "superagent": "3.8.2" + "superagent": "3.8.3" } }, "supports-color": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.3.0.tgz", - "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", + "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { "has-flag": "3.0.0" @@ -13290,8 +12560,8 @@ "requires": { "ajv": "5.5.2", "ajv-keywords": "2.1.1", - "chalk": "2.3.2", - "lodash": "4.17.5", + "chalk": "2.4.1", + "lodash": "4.17.10", "slice-ansi": "1.0.0", "string-width": "2.1.1" }, @@ -13367,7 +12637,7 @@ "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", "requires": { - "readable-stream": "2.3.5", + "readable-stream": "2.3.6", "xtend": "4.0.1" } }, @@ -13472,7 +12742,7 @@ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "5.1.2" } }, "tweetnacl": { @@ -13714,15 +12984,16 @@ "dev": true }, "update-notifier": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.3.0.tgz", - "integrity": "sha1-TognpruRUUCrCTVZ1wFOPruDdFE=", + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.5.0.tgz", + "integrity": "sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw==", "dev": true, "requires": { "boxen": "1.3.0", - "chalk": "2.3.2", - "configstore": "3.1.1", + "chalk": "2.4.1", + "configstore": "3.1.2", "import-lazy": "2.1.0", + "is-ci": "1.1.0", "is-installed-globally": "0.1.0", "is-npm": "1.0.0", "latest-version": "3.1.0", From bb575ffb604f4ba2cbb945edad3bb7f86a0f4594 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 2 May 2018 15:11:05 -0700 Subject: [PATCH 025/371] chore: test on node10 (#25) --- packages/google-container/.circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index f6e953acd03..c502da0706d 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -19,12 +19,17 @@ workflows: filters: tags: only: /.*/ + - node10: + filters: + tags: + only: /.*/ - lint: requires: - node4 - node6 - node8 - node9 + - node10 filters: tags: only: /.*/ @@ -34,6 +39,7 @@ workflows: - node6 - node8 - node9 + - node10 filters: tags: only: /.*/ @@ -110,6 +116,11 @@ jobs: - image: 'node:9' user: node steps: *unit_tests_steps + node10: + docker: + - image: 'node:10' + user: node + steps: *unit_tests_steps lint: docker: - image: 'node:8' From 4c5e4cdc62e63b21099129688096a74ee1e10003 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 8 May 2018 14:28:17 -0700 Subject: [PATCH 026/371] chore: lock files maintenance (#26) * chore: lock files maintenance * chore: lock files maintenance --- packages/google-container/package-lock.json | 517 +++++--------------- 1 file changed, 116 insertions(+), 401 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 96c1cf5fde9..bca4d5f8d7d 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -1907,9 +1907,9 @@ "integrity": "sha512-ZXyOOm83p7X8p3s0IYM3VeueNmHpkk/yMlP8CLeOnEcu6hIwPH7YjZBvhQkR0ZFS2DqZAxKtJ/M5fcuv3OU5BA==" }, "@types/node": { - "version": "8.10.11", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.11.tgz", - "integrity": "sha512-FM7tvbjbn2BUzM/Qsdk9LUGq3zeh7li8NcHoS398dBzqLzfmSqSP1+yKbMRTCcZzLcu2JAR5lq3IKIEYkto7iQ==" + "version": "8.10.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.12.tgz", + "integrity": "sha512-aRFUGj/f9JVA0qSQiCK9ebaa778mmqMIcy1eKnPktgfm9O6VsnIzzB5wJnjp9/jVrfm7fX1rr3OR1nndppGZUg==" }, "acorn": { "version": "4.0.13", @@ -2682,7 +2682,7 @@ "babel-generator": "6.26.1", "babylon": "6.18.0", "call-matcher": "1.0.1", - "core-js": "2.5.5", + "core-js": "2.5.6", "espower-location-detector": "1.0.0", "espurify": "1.7.0", "estraverse": "4.2.0" @@ -2829,7 +2829,7 @@ "requires": { "babel-core": "6.26.3", "babel-runtime": "6.26.0", - "core-js": "2.5.5", + "core-js": "2.5.6", "home-or-tmp": "2.0.0", "lodash": "4.17.10", "mkdirp": "0.5.1", @@ -2853,7 +2853,7 @@ "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "dev": true, "requires": { - "core-js": "2.5.5", + "core-js": "2.5.6", "regenerator-runtime": "0.11.1" } }, @@ -3206,7 +3206,7 @@ "integrity": "sha1-UTTQd5hPcSpU2tPL9i3ijc5BbKg=", "dev": true, "requires": { - "core-js": "2.5.5", + "core-js": "2.5.6", "deep-equal": "1.0.1", "espurify": "1.7.0", "estraverse": "4.2.0" @@ -3677,9 +3677,9 @@ } }, "core-js": { - "version": "2.5.5", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.5.tgz", - "integrity": "sha1-sU3ek2xkDAV5prUMq8wTLdYSfjs=" + "version": "2.5.6", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.6.tgz", + "integrity": "sha512-lQUVfQi0aLix2xpyjrrJEvfuYCqPc/HwmTKsC/VNf8q0zsjX7SQZtp4+oRONN5Tsur9GDETPjj+Ub2iDiGZfSQ==" }, "core-util-is": { "version": "1.0.2", @@ -4007,9 +4007,9 @@ "dev": true }, "duplexify": { - "version": "3.5.4", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.5.4.tgz", - "integrity": "sha512-JzYSLYMhoVVBe8+mbHQ4KgpvHpm0DZpJuL8PY93Vyv1fW7jYJ90LoXa1di/CVbJM+TgMs91rbDapE/RNIfnJsA==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.0.tgz", + "integrity": "sha512-fO3Di4tBKJpYTFHAxTU00BcfWMY9w24r/x21a6rZRbsD/ToUgGxsMbiGRmB7uVAXeGKXD9MwiLZa5E97EVgIRQ==", "requires": { "end-of-stream": "1.4.1", "inherits": "2.0.3", @@ -4045,7 +4045,7 @@ "resolved": "https://registry.npmjs.org/empower/-/empower-1.2.3.tgz", "integrity": "sha1-bw2nNEf07dg4/sXGAxOoi6XLhSs=", "requires": { - "core-js": "2.5.5", + "core-js": "2.5.6", "empower-core": "0.6.2" } }, @@ -4064,7 +4064,7 @@ "integrity": "sha1-Wt71ZgiOMfuoC6CjbfR9cJQWkUQ=", "requires": { "call-signature": "0.0.2", - "core-js": "2.5.5" + "core-js": "2.5.6" } }, "end-of-stream": { @@ -4491,7 +4491,7 @@ "resolved": "https://registry.npmjs.org/espurify/-/espurify-1.7.0.tgz", "integrity": "sha1-HFz2y8zDLm9jk4C9T5kfq5up0iY=", "requires": { - "core-js": "2.5.5" + "core-js": "2.5.6" } }, "esquery": { @@ -4662,7 +4662,7 @@ "dev": true, "requires": { "chardet": "0.4.2", - "iconv-lite": "0.4.21", + "iconv-lite": "0.4.22", "tmp": "0.0.33" } }, @@ -4749,7 +4749,7 @@ "@mrmlnc/readdir-enhanced": "2.2.1", "glob-parent": "3.1.0", "is-glob": "4.0.0", - "merge2": "1.2.1", + "merge2": "1.2.2", "micromatch": "3.1.10" } }, @@ -5670,12 +5670,12 @@ "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.16.1.tgz", "integrity": "sha512-eP7UUkKvaHmmvCrr+rxzkIOeEKOnXmoib7/AkENDAuqlC9T2+lWlzwpthDRnitQcV8SblDMzsk73YPMPCDwPyQ==", "requires": { - "duplexify": "3.5.4", + "duplexify": "3.6.0", "extend": "3.0.1", "globby": "8.0.1", "google-auto-auth": "0.10.1", "google-proto-files": "0.15.1", - "grpc": "1.11.0", + "grpc": "1.11.3", "is-stream-ended": "0.1.4", "lodash": "4.17.10", "protobufjs": "6.8.6", @@ -5771,13 +5771,13 @@ "dev": true }, "grpc": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.11.0.tgz", - "integrity": "sha512-pTJjV/eatBQ6Rhc/jWNmUW9jE8fPrhcMYSWDSyf4l7ah1U3sIe4eIjqI/a3sm0zKbM5CuovV0ESrc+b04kr4Ig==", + "version": "1.11.3", + "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.11.3.tgz", + "integrity": "sha512-7fJ40USpnP7hxGK0uRoEhJz6unA5VUdwInfwAY2rK2+OVxdDJSdTZQ/8/M+1tW68pHZYgHvg2ohvJ+clhW3ANg==", "requires": { "lodash": "4.17.10", "nan": "2.10.0", - "node-pre-gyp": "0.7.0", + "node-pre-gyp": "0.10.0", "protobufjs": "5.0.2" }, "dependencies": { @@ -5785,16 +5785,6 @@ "version": "1.1.1", "bundled": true }, - "ajv": { - "version": "5.5.2", - "bundled": true, - "requires": { - "co": "4.6.0", - "fast-deep-equal": "1.1.0", - "fast-json-stable-stringify": "2.0.0", - "json-schema-traverse": "0.3.1" - } - }, "ansi-regex": { "version": "2.1.1", "bundled": true @@ -5811,52 +5801,10 @@ "readable-stream": "2.3.6" } }, - "asn1": { - "version": "0.2.3", - "bundled": true - }, - "assert-plus": { - "version": "1.0.0", - "bundled": true - }, - "asynckit": { - "version": "0.4.0", - "bundled": true - }, - "aws-sign2": { - "version": "0.7.0", - "bundled": true - }, - "aws4": { - "version": "1.7.0", - "bundled": true - }, "balanced-match": { "version": "1.0.0", "bundled": true }, - "bcrypt-pbkdf": { - "version": "1.0.1", - "bundled": true, - "optional": true, - "requires": { - "tweetnacl": "0.14.5" - } - }, - "block-stream": { - "version": "0.0.9", - "bundled": true, - "requires": { - "inherits": "2.0.3" - } - }, - "boom": { - "version": "4.3.1", - "bundled": true, - "requires": { - "hoek": "4.2.1" - } - }, "brace-expansion": { "version": "1.1.11", "bundled": true, @@ -5865,25 +5813,14 @@ "concat-map": "0.0.1" } }, - "caseless": { - "version": "0.12.0", - "bundled": true - }, - "co": { - "version": "4.6.0", + "chownr": { + "version": "1.0.1", "bundled": true }, "code-point-at": { "version": "1.1.0", "bundled": true }, - "combined-stream": { - "version": "1.0.6", - "bundled": true, - "requires": { - "delayed-stream": "1.0.0" - } - }, "concat-map": { "version": "0.0.1", "bundled": true @@ -5896,29 +5833,6 @@ "version": "1.0.2", "bundled": true }, - "cryptiles": { - "version": "3.1.2", - "bundled": true, - "requires": { - "boom": "5.2.0" - }, - "dependencies": { - "boom": { - "version": "5.2.0", - "bundled": true, - "requires": { - "hoek": "4.2.1" - } - } - } - }, - "dashdash": { - "version": "1.14.1", - "bundled": true, - "requires": { - "assert-plus": "1.0.0" - } - }, "debug": { "version": "2.6.9", "bundled": true, @@ -5927,11 +5841,7 @@ } }, "deep-extend": { - "version": "0.4.2", - "bundled": true - }, - "delayed-stream": { - "version": "1.0.0", + "version": "0.5.1", "bundled": true }, "delegates": { @@ -5942,66 +5852,17 @@ "version": "1.0.3", "bundled": true }, - "ecc-jsbn": { - "version": "0.1.1", - "bundled": true, - "optional": true, - "requires": { - "jsbn": "0.1.1" - } - }, - "extend": { - "version": "3.0.1", - "bundled": true - }, - "extsprintf": { - "version": "1.3.0", - "bundled": true - }, - "fast-deep-equal": { - "version": "1.1.0", - "bundled": true - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "bundled": true - }, - "forever-agent": { - "version": "0.6.1", - "bundled": true - }, - "form-data": { - "version": "2.3.2", + "fs-minipass": { + "version": "1.2.5", "bundled": true, "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.6", - "mime-types": "2.1.18" + "minipass": "2.2.4" } }, "fs.realpath": { "version": "1.0.0", "bundled": true }, - "fstream": { - "version": "1.0.11", - "bundled": true, - "requires": { - "graceful-fs": "4.1.11", - "inherits": "2.0.3", - "mkdirp": "0.5.1", - "rimraf": "2.6.2" - } - }, - "fstream-ignore": { - "version": "1.0.5", - "bundled": true, - "requires": { - "fstream": "1.0.11", - "inherits": "2.0.3", - "minimatch": "3.0.4" - } - }, "gauge": { "version": "2.7.4", "bundled": true, @@ -6016,13 +5877,6 @@ "wide-align": "1.1.2" } }, - "getpass": { - "version": "0.1.7", - "bundled": true, - "requires": { - "assert-plus": "1.0.0" - } - }, "glob": { "version": "7.1.2", "bundled": true, @@ -6035,47 +5889,19 @@ "path-is-absolute": "1.0.1" } }, - "graceful-fs": { - "version": "4.1.11", - "bundled": true - }, - "har-schema": { - "version": "2.0.0", - "bundled": true - }, - "har-validator": { - "version": "5.0.3", - "bundled": true, - "requires": { - "ajv": "5.5.2", - "har-schema": "2.0.0" - } - }, "has-unicode": { "version": "2.0.1", "bundled": true }, - "hawk": { - "version": "6.0.2", - "bundled": true, - "requires": { - "boom": "4.3.1", - "cryptiles": "3.1.2", - "hoek": "4.2.1", - "sntp": "2.1.0" - } - }, - "hoek": { - "version": "4.2.1", + "iconv-lite": { + "version": "0.4.19", "bundled": true }, - "http-signature": { - "version": "1.2.0", + "ignore-walk": { + "version": "3.0.1", "bundled": true, "requires": { - "assert-plus": "1.0.0", - "jsprim": "1.4.1", - "sshpk": "1.14.1" + "minimatch": "3.0.4" } }, "inflight": { @@ -6101,67 +5927,36 @@ "number-is-nan": "1.0.1" } }, - "is-typedarray": { - "version": "1.0.0", - "bundled": true - }, "isarray": { "version": "1.0.0", "bundled": true }, - "isstream": { - "version": "0.1.2", - "bundled": true - }, - "jsbn": { - "version": "0.1.1", - "bundled": true, - "optional": true - }, - "json-schema": { - "version": "0.2.3", - "bundled": true - }, - "json-schema-traverse": { - "version": "0.3.1", - "bundled": true - }, - "json-stringify-safe": { - "version": "5.0.1", - "bundled": true - }, - "jsprim": { - "version": "1.4.1", + "minimatch": { + "version": "3.0.4", "bundled": true, "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" + "brace-expansion": "1.1.11" } }, - "mime-db": { - "version": "1.33.0", + "minimist": { + "version": "1.2.0", "bundled": true }, - "mime-types": { - "version": "2.1.18", + "minipass": { + "version": "2.2.4", "bundled": true, "requires": { - "mime-db": "1.33.0" + "safe-buffer": "5.1.1", + "yallist": "3.0.2" } }, - "minimatch": { - "version": "3.0.4", + "minizlib": { + "version": "1.1.0", "bundled": true, "requires": { - "brace-expansion": "1.1.11" + "minipass": "2.2.4" } }, - "minimist": { - "version": "1.2.0", - "bundled": true - }, "mkdirp": { "version": "0.5.1", "bundled": true, @@ -6179,20 +5974,29 @@ "version": "2.0.0", "bundled": true }, + "needle": { + "version": "2.2.1", + "bundled": true, + "requires": { + "debug": "2.6.9", + "iconv-lite": "0.4.19", + "sax": "1.2.4" + } + }, "node-pre-gyp": { - "version": "0.7.0", + "version": "0.10.0", "bundled": true, "requires": { "detect-libc": "1.0.3", "mkdirp": "0.5.1", + "needle": "2.2.1", "nopt": "4.0.1", + "npm-packlist": "1.1.10", "npmlog": "4.1.2", - "rc": "1.2.6", - "request": "2.83.0", + "rc": "1.2.7", "rimraf": "2.6.2", "semver": "5.5.0", - "tar": "2.2.1", - "tar-pack": "3.4.1" + "tar": "4.4.2" } }, "nopt": { @@ -6203,6 +6007,18 @@ "osenv": "0.1.5" } }, + "npm-bundled": { + "version": "1.0.3", + "bundled": true + }, + "npm-packlist": { + "version": "1.1.10", + "bundled": true, + "requires": { + "ignore-walk": "3.0.1", + "npm-bundled": "1.0.3" + } + }, "npmlog": { "version": "4.1.2", "bundled": true, @@ -6217,10 +6033,6 @@ "version": "1.0.1", "bundled": true }, - "oauth-sign": { - "version": "0.8.2", - "bundled": true - }, "object-assign": { "version": "4.1.1", "bundled": true @@ -6252,10 +6064,6 @@ "version": "1.0.1", "bundled": true }, - "performance-now": { - "version": "2.1.0", - "bundled": true - }, "process-nextick-args": { "version": "2.0.0", "bundled": true @@ -6271,19 +6079,11 @@ "yargs": "3.32.0" } }, - "punycode": { - "version": "1.4.1", - "bundled": true - }, - "qs": { - "version": "6.5.1", - "bundled": true - }, "rc": { - "version": "1.2.6", + "version": "1.2.7", "bundled": true, "requires": { - "deep-extend": "0.4.2", + "deep-extend": "0.5.1", "ini": "1.3.5", "minimist": "1.2.0", "strip-json-comments": "2.0.1" @@ -6302,34 +6102,6 @@ "util-deprecate": "1.0.2" } }, - "request": { - "version": "2.83.0", - "bundled": true, - "requires": { - "aws-sign2": "0.7.0", - "aws4": "1.7.0", - "caseless": "0.12.0", - "combined-stream": "1.0.6", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.3.2", - "har-validator": "5.0.3", - "hawk": "6.0.2", - "http-signature": "1.2.0", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.18", - "oauth-sign": "0.8.2", - "performance-now": "2.1.0", - "qs": "6.5.1", - "safe-buffer": "5.1.1", - "stringstream": "0.0.5", - "tough-cookie": "2.3.4", - "tunnel-agent": "0.6.0", - "uuid": "3.2.1" - } - }, "rimraf": { "version": "2.6.2", "bundled": true, @@ -6341,6 +6113,10 @@ "version": "5.1.1", "bundled": true }, + "sax": { + "version": "1.2.4", + "bundled": true + }, "semver": { "version": "5.5.0", "bundled": true @@ -6353,27 +6129,6 @@ "version": "3.0.2", "bundled": true }, - "sntp": { - "version": "2.1.0", - "bundled": true, - "requires": { - "hoek": "4.2.1" - } - }, - "sshpk": { - "version": "1.14.1", - "bundled": true, - "requires": { - "asn1": "0.2.3", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.1", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.1", - "getpass": "0.1.7", - "jsbn": "0.1.1", - "tweetnacl": "0.14.5" - } - }, "string-width": { "version": "1.0.2", "bundled": true, @@ -6390,10 +6145,6 @@ "safe-buffer": "5.1.1" } }, - "stringstream": { - "version": "0.0.5", - "bundled": true - }, "strip-ansi": { "version": "3.0.1", "bundled": true, @@ -6406,68 +6157,28 @@ "bundled": true }, "tar": { - "version": "2.2.1", - "bundled": true, - "requires": { - "block-stream": "0.0.9", - "fstream": "1.0.11", - "inherits": "2.0.3" - } - }, - "tar-pack": { - "version": "3.4.1", - "bundled": true, - "requires": { - "debug": "2.6.9", - "fstream": "1.0.11", - "fstream-ignore": "1.0.5", - "once": "1.4.0", - "readable-stream": "2.3.6", - "rimraf": "2.6.2", - "tar": "2.2.1", - "uid-number": "0.0.6" - } - }, - "tough-cookie": { - "version": "2.3.4", - "bundled": true, - "requires": { - "punycode": "1.4.1" - } - }, - "tunnel-agent": { - "version": "0.6.0", + "version": "4.4.2", "bundled": true, "requires": { - "safe-buffer": "5.1.1" + "chownr": "1.0.1", + "fs-minipass": "1.2.5", + "minipass": "2.2.4", + "minizlib": "1.1.0", + "mkdirp": "0.5.1", + "safe-buffer": "5.1.2", + "yallist": "3.0.2" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "bundled": true + } } }, - "tweetnacl": { - "version": "0.14.5", - "bundled": true, - "optional": true - }, - "uid-number": { - "version": "0.0.6", - "bundled": true - }, "util-deprecate": { "version": "1.0.2", "bundled": true }, - "uuid": { - "version": "3.2.1", - "bundled": true - }, - "verror": { - "version": "1.10.0", - "bundled": true, - "requires": { - "assert-plus": "1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "1.3.0" - } - }, "wide-align": { "version": "1.1.2", "bundled": true, @@ -6478,6 +6189,10 @@ "wrappy": { "version": "1.0.2", "bundled": true + }, + "yallist": { + "version": "3.0.2", + "bundled": true } } }, @@ -6698,9 +6413,9 @@ } }, "iconv-lite": { - "version": "0.4.21", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.21.tgz", - "integrity": "sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw==", + "version": "0.4.22", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.22.tgz", + "integrity": "sha512-1AinFBeDTnsvVEP+V1QBlHpM1UZZl7gWB6fcz7B1Ho+LI1dUh2sSrxoCfVt2PinRHzXAziSniEV3P7JbTDHcXA==", "dev": true, "requires": { "safer-buffer": "2.1.2" @@ -7829,9 +7544,9 @@ } }, "merge2": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.2.1.tgz", - "integrity": "sha512-wUqcG5pxrAcaFI1lkqkMnk3Q7nUxV/NWfpAFSeWUwG9TRODnBDCUHa75mi3o3vLWQ5N4CQERWCauSlP0I3ZqUg==" + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.2.2.tgz", + "integrity": "sha512-bgM8twH86rWni21thii6WCMQMRMmwqqdW3sGWi9IipnVAszdLXRjwDwAnyrVXo6DuP3AjRMMttZKUB48QWIFGg==" }, "methods": { "version": "1.1.2", @@ -11320,7 +11035,7 @@ "resolved": "https://registry.npmjs.org/power-assert-context-formatter/-/power-assert-context-formatter-1.1.1.tgz", "integrity": "sha1-7bo1LT7YpgMRTWZyZazOYNaJzN8=", "requires": { - "core-js": "2.5.5", + "core-js": "2.5.6", "power-assert-context-traversal": "1.1.1" } }, @@ -11331,7 +11046,7 @@ "requires": { "acorn": "4.0.13", "acorn-es7-plugin": "1.1.7", - "core-js": "2.5.5", + "core-js": "2.5.6", "espurify": "1.7.0", "estraverse": "4.2.0" } @@ -11341,7 +11056,7 @@ "resolved": "https://registry.npmjs.org/power-assert-context-traversal/-/power-assert-context-traversal-1.1.1.tgz", "integrity": "sha1-iMq8oNE7Y1nwfT0+ivppkmRXftk=", "requires": { - "core-js": "2.5.5", + "core-js": "2.5.6", "estraverse": "4.2.0" } }, @@ -11350,7 +11065,7 @@ "resolved": "https://registry.npmjs.org/power-assert-formatter/-/power-assert-formatter-1.4.1.tgz", "integrity": "sha1-XcEl7VCj37HdomwZNH879Y7CiEo=", "requires": { - "core-js": "2.5.5", + "core-js": "2.5.6", "power-assert-context-formatter": "1.1.1", "power-assert-context-reducer-ast": "1.1.2", "power-assert-renderer-assertion": "1.1.1", @@ -11378,7 +11093,7 @@ "resolved": "https://registry.npmjs.org/power-assert-renderer-comparison/-/power-assert-renderer-comparison-1.1.1.tgz", "integrity": "sha1-10Odl9hRVr5OMKAPL7WnJRTOPAg=", "requires": { - "core-js": "2.5.5", + "core-js": "2.5.6", "diff-match-patch": "1.0.0", "power-assert-renderer-base": "1.1.1", "stringifier": "1.3.0", @@ -11390,7 +11105,7 @@ "resolved": "https://registry.npmjs.org/power-assert-renderer-diagram/-/power-assert-renderer-diagram-1.1.2.tgz", "integrity": "sha1-ZV+PcRk1qbbVQbhjJ2VHF8Y3qYY=", "requires": { - "core-js": "2.5.5", + "core-js": "2.5.6", "power-assert-renderer-base": "1.1.1", "power-assert-util-string-width": "1.1.1", "stringifier": "1.3.0" @@ -11487,7 +11202,7 @@ "@protobufjs/pool": "1.1.0", "@protobufjs/utf8": "1.1.0", "@types/long": "3.0.32", - "@types/node": "8.10.11", + "@types/node": "8.10.12", "long": "4.0.0" } }, @@ -11513,9 +11228,9 @@ "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" }, "qs": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", - "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" }, "query-string": { "version": "5.1.1", @@ -11790,7 +11505,7 @@ "mime-types": "2.1.18", "oauth-sign": "0.8.2", "performance-now": "2.1.0", - "qs": "6.5.1", + "qs": "6.5.2", "safe-buffer": "5.1.2", "stringstream": "0.0.5", "tough-cookie": "2.3.4", @@ -12400,7 +12115,7 @@ "resolved": "https://registry.npmjs.org/stringifier/-/stringifier-1.3.0.tgz", "integrity": "sha1-3vGDQvaTPbDy2/yaoCF1tEjBeVk=", "requires": { - "core-js": "2.5.5", + "core-js": "2.5.6", "traverse": "0.6.6", "type-name": "2.0.2" } @@ -12468,7 +12183,7 @@ "formidable": "1.2.1", "methods": "1.1.2", "mime": "1.6.0", - "qs": "6.5.1", + "qs": "6.5.2", "readable-stream": "2.3.6" }, "dependencies": { From 985a9af2f5567962056487f6de3b7d336fae4a19 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Wed, 16 May 2018 16:52:54 -0700 Subject: [PATCH 027/371] chore: timeout for system test (#27) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 94fcd92e991..900ee4e0ad0 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -44,7 +44,7 @@ "lint": "repo-tools lint --cmd eslint -- src/ samples/ system-test/ test/ smoke-test/", "prettier": "repo-tools exec -- prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js smoke-test/*.js", "docs": "repo-tools exec -- jsdoc -c .jsdoc.js", - "system-test": "repo-tools test run --cmd mocha -- system-test/*.js smoke-test/*.js --no-timeouts" + "system-test": "repo-tools test run --cmd mocha -- system-test/*.js smoke-test/*.js --timeout 600000" }, "dependencies": { "google-gax": "^0.16.0", From 5de0d52370bd34b4a352f4aab13062f0846bdb66 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Mon, 21 May 2018 17:28:44 -0700 Subject: [PATCH 028/371] chore: the ultimate fix for repo-tools EPERM (#28) * chore: the ultimate fix for repo-tools EPERM * fix yaml references --- .../google-container/.circleci/config.yml | 77 +++++-------------- 1 file changed, 20 insertions(+), 57 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index c502da0706d..abbe1991ee6 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -4,25 +4,17 @@ workflows: tests: jobs: &workflow_jobs - node4: - filters: + filters: &all_commits tags: only: /.*/ - node6: - filters: - tags: - only: /.*/ + filters: *all_commits - node8: - filters: - tags: - only: /.*/ + filters: *all_commits - node9: - filters: - tags: - only: /.*/ + filters: *all_commits - node10: - filters: - tags: - only: /.*/ + filters: *all_commits - lint: requires: - node4 @@ -30,9 +22,7 @@ workflows: - node8 - node9 - node10 - filters: - tags: - only: /.*/ + filters: *all_commits - docs: requires: - node4 @@ -40,9 +30,7 @@ workflows: - node8 - node9 - node10 - filters: - tags: - only: /.*/ + filters: *all_commits - system_tests: requires: - lint @@ -50,7 +38,7 @@ workflows: filters: branches: only: master - tags: + tags: &releases only: '/^v[\d.]+$/' - publish_npm: requires: @@ -58,8 +46,7 @@ workflows: filters: branches: ignore: /.*/ - tags: - only: '/^v[\d.]+$/' + tags: *releases nightly: triggers: - schedule: @@ -86,14 +73,15 @@ jobs: else echo "Not a nightly build, skipping this step." fi - - run: - name: Install modules and dependencies. + - run: &npm_install_and_link + name: Install and link the module command: |- + mkdir -p /home/node/.npm-global npm install - repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools" - if ! test -x "$repo_tools"; then - chmod +x "$repo_tools" - fi + npm link + chmod +x node_modules/@google-cloud/nodejs-repo-tools/bin/tools + environment: + NPM_CONFIG_PREFIX: /home/node/.npm-global - run: name: Run unit tests. command: npm test @@ -128,19 +116,8 @@ jobs: steps: - checkout - run: *remove_package_lock - - run: - name: Install modules and dependencies. - command: | - mkdir -p /home/node/.npm-global - npm install - repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools" - if ! test -x "$repo_tools"; then - chmod +x "$repo_tools" - fi - npm link - environment: - NPM_CONFIG_PREFIX: /home/node/.npm-global - - run: + - run: *npm_install_and_link + - run: &samples_npm_install_and_link name: Link the module being tested to the samples. command: | cd samples/ @@ -161,14 +138,7 @@ jobs: steps: - checkout - run: *remove_package_lock - - run: - name: Install modules and dependencies. - command: |- - npm install - repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools" - if ! test -x "$repo_tools"; then - chmod +x "$repo_tools" - fi + - run: *npm_install_and_link - run: name: Build documentation. command: npm run docs @@ -185,14 +155,7 @@ jobs: openssl aes-256-cbc -d -in .circleci/key.json.enc \ -out .circleci/key.json \ -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" - - run: - name: Install modules and dependencies. - command: |- - npm install - repo_tools="node_modules/@google-cloud/nodejs-repo-tools/bin/tools" - if ! test -x "$repo_tools"; then - chmod +x "$repo_tools" - fi + - run: *npm_install_and_link - run: name: Run system tests. command: npm run system-test From 7d02a74e0bd65a4591f9c75c8f9c715721f695ff Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 22 May 2018 11:32:52 -0700 Subject: [PATCH 029/371] chore: lock files maintenance (#29) * chore: lock files maintenance * chore: lock files maintenance --- packages/google-container/package-lock.json | 738 +++++++++----------- 1 file changed, 312 insertions(+), 426 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index bca4d5f8d7d..5f6abc84c55 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -1832,6 +1832,11 @@ "glob-to-regexp": "0.3.0" } }, + "@nodelib/fs.stat": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.0.2.tgz", + "integrity": "sha512-vCpf75JDcdomXvUd7Rn6DfYAVqPAFI66FVjxiWGwh85OLdvfo3paBoPJaam5keIYRyUolnS7SleS/ZPCidCvzw==" + }, "@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", @@ -1894,7 +1899,7 @@ }, "@sinonjs/formatio": { "version": "2.0.0", - "resolved": "http://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz", + "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz", "integrity": "sha512-ls6CAMA6/5gG+O/IdsBcblvnd8qcO/l1TYoNeAzp3wcISOxlPXQEus0mLcdwazEkWjaBdaJ3TaxmNgCLWwvWzg==", "dev": true, "requires": { @@ -1907,9 +1912,9 @@ "integrity": "sha512-ZXyOOm83p7X8p3s0IYM3VeueNmHpkk/yMlP8CLeOnEcu6hIwPH7YjZBvhQkR0ZFS2DqZAxKtJ/M5fcuv3OU5BA==" }, "@types/node": { - "version": "8.10.12", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.12.tgz", - "integrity": "sha512-aRFUGj/f9JVA0qSQiCK9ebaa778mmqMIcy1eKnPktgfm9O6VsnIzzB5wJnjp9/jVrfm7fX1rr3OR1nndppGZUg==" + "version": "8.10.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.17.tgz", + "integrity": "sha512-3N3FRd/rA1v5glXjb90YdYUa+sOB7WrkU2rAhKZnF4TKD86Cym9swtulGuH0p9nxo7fP5woRNa8b0oFTpCO1bg==" }, "acorn": { "version": "4.0.13", @@ -2253,9 +2258,9 @@ "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" }, "async": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", - "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", + "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", "requires": { "lodash": "4.17.10" } @@ -2345,7 +2350,7 @@ "lodash.difference": "4.5.0", "lodash.flatten": "4.4.0", "loud-rejection": "1.6.0", - "make-dir": "1.2.0", + "make-dir": "1.3.0", "matcher": "1.1.0", "md5-hex": "2.0.0", "meow": "3.7.0", @@ -2362,7 +2367,7 @@ "safe-buffer": "5.1.2", "semver": "5.5.0", "slash": "1.0.0", - "source-map-support": "0.5.5", + "source-map-support": "0.5.6", "stack-utils": "1.0.1", "strip-ansi": "4.0.0", "strip-bom-buf": "1.0.0", @@ -2461,7 +2466,7 @@ "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", "requires": { - "follow-redirects": "1.4.1", + "follow-redirects": "1.5.0", "is-buffer": "1.1.6" } }, @@ -2684,7 +2689,7 @@ "call-matcher": "1.0.1", "core-js": "2.5.6", "espower-location-detector": "1.0.0", - "espurify": "1.7.0", + "espurify": "1.8.0", "estraverse": "4.2.0" } }, @@ -2960,11 +2965,6 @@ } } }, - "base64url": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/base64url/-/base64url-2.0.0.tgz", - "integrity": "sha1-6sFuA+oUOO/5Qj1puqNiYu0fcLs=" - }, "bcrypt-pbkdf": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", @@ -2986,14 +2986,6 @@ "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==", "dev": true }, - "boom": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/boom/-/boom-4.3.1.tgz", - "integrity": "sha1-T4owBctKfjiJ90kDD9JbluAdLjE=", - "requires": { - "hoek": "4.2.1" - } - }, "boxen": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz", @@ -3208,7 +3200,7 @@ "requires": { "core-js": "2.5.6", "deep-equal": "1.0.1", - "espurify": "1.7.0", + "espurify": "1.8.0", "estraverse": "4.2.0" } }, @@ -3308,7 +3300,7 @@ "requires": { "anymatch": "1.3.2", "async-each": "1.0.1", - "fsevents": "1.2.3", + "fsevents": "1.2.4", "glob-parent": "2.0.0", "inherits": "2.0.3", "is-binary-path": "1.0.1", @@ -3506,13 +3498,13 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, "codecov": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.0.1.tgz", - "integrity": "sha512-0TjnXrbvcPzAkRPv/Y5D8aZju/M5adkFxShRyMMgDReB8EV9nF4XMERXs6ajgLA1di9LUFW2tgePDQd2JPWy7g==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.0.2.tgz", + "integrity": "sha512-9ljtIROIjPIUmMRqO+XuDITDoV8xRrZmA0jcEq6p2hg2+wY9wGmLfreAZGIL72IzUfdEDZaU8+Vjidg1fBQ8GQ==", "dev": true, "requires": { "argv": "0.0.2", - "request": "2.85.0", + "request": "2.87.0", "urlgrey": "0.4.4" } }, @@ -3560,9 +3552,9 @@ } }, "commander": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", - "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", + "version": "2.15.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", + "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", "dev": true }, "common-path-prefix": { @@ -3637,7 +3629,7 @@ "requires": { "dot-prop": "4.2.0", "graceful-fs": "4.1.11", - "make-dir": "1.2.0", + "make-dir": "1.3.0", "unique-string": "1.0.0", "write-file-atomic": "2.3.0", "xdg-basedir": "3.0.0" @@ -3701,29 +3693,11 @@ "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", "dev": true, "requires": { - "lru-cache": "4.1.2", + "lru-cache": "4.1.3", "shebang-command": "1.2.0", "which": "1.3.0" } }, - "cryptiles": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", - "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", - "requires": { - "boom": "5.2.0" - }, - "dependencies": { - "boom": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", - "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", - "requires": { - "hoek": "4.2.1" - } - } - } - }, "crypto-random-string": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", @@ -3926,9 +3900,9 @@ "dev": true }, "diff-match-patch": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.0.tgz", - "integrity": "sha1-HMPIOkkNZ/ldkeOfatHy4Ia2MEg=" + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.1.tgz", + "integrity": "sha512-A0QEhr4PxGUMEtKxd6X+JLnOTFd3BfIPSDpsc4dMvj+CbSaErDwTpoTo/nFJDMSrjxLW4BiNq+FbNisAAHhWeQ==" }, "dir-glob": { "version": "2.0.0", @@ -3973,9 +3947,9 @@ "dev": true }, "domhandler": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.1.tgz", - "integrity": "sha1-iS5HAAqZvlW783dP/qBWHYh5wlk=", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz", + "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", "dev": true, "requires": { "domelementtype": "1.3.0" @@ -4032,11 +4006,10 @@ } }, "ecdsa-sig-formatter": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.9.tgz", - "integrity": "sha1-S8kmJ07Dtau1AW5+HWCSGsJisqE=", + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.10.tgz", + "integrity": "sha1-HFlQAPBKiJffuFAAiSoPTDOvhsM=", "requires": { - "base64url": "2.0.0", "safe-buffer": "5.1.2" } }, @@ -4382,9 +4355,9 @@ "dev": true }, "espower": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/espower/-/espower-2.1.0.tgz", - "integrity": "sha1-zh7bPZhwKEH99ZbRy46FvcSujkg=", + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/espower/-/espower-2.1.1.tgz", + "integrity": "sha512-F4TY1qYJB1aUyzB03NsZksZzUQmQoEBaTUjRJGR30GxbkbjKI41NhCyYjrF+bGgWN7x/ZsczYppRpz/0WdI0ug==", "dev": true, "requires": { "array-find": "1.0.0", @@ -4392,7 +4365,7 @@ "escodegen": "1.9.1", "escope": "3.6.0", "espower-location-detector": "1.0.0", - "espurify": "1.7.0", + "espurify": "1.8.0", "estraverse": "4.2.0", "source-map": "0.5.7", "type-name": "2.0.2", @@ -4446,7 +4419,7 @@ "convert-source-map": "1.5.1", "empower-assert": "1.1.0", "escodegen": "1.9.1", - "espower": "2.1.0", + "espower": "2.1.1", "estraverse": "4.2.0", "merge-estraverse-visitors": "1.0.0", "multi-stage-sourcemap": "0.2.1", @@ -4487,9 +4460,9 @@ "dev": true }, "espurify": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/espurify/-/espurify-1.7.0.tgz", - "integrity": "sha1-HFz2y8zDLm9jk4C9T5kfq5up0iY=", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/espurify/-/espurify-1.8.0.tgz", + "integrity": "sha512-jdkJG9jswjKCCDmEridNUuIQei9algr+o66ZZ19610ZoBsiWLRsQGNYS4HGez3Z/DsR0lhANGAqiwBUclPuNag==", "requires": { "core-js": "2.5.6" } @@ -4586,18 +4559,18 @@ "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", "dev": true, "requires": { - "fill-range": "2.2.3" + "fill-range": "2.2.4" }, "dependencies": { "fill-range": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", - "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", + "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", "dev": true, "requires": { "is-number": "2.1.0", "isobject": "2.1.0", - "randomatic": "1.1.7", + "randomatic": "3.0.0", "repeat-element": "1.1.2", "repeat-string": "1.6.1" } @@ -4662,7 +4635,7 @@ "dev": true, "requires": { "chardet": "0.4.2", - "iconv-lite": "0.4.22", + "iconv-lite": "0.4.23", "tmp": "0.0.33" } }, @@ -4742,11 +4715,12 @@ "dev": true }, "fast-glob": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-2.2.1.tgz", - "integrity": "sha512-wSyW1TBK3ia5V+te0rGPXudeMHoUQW6O5Y9oATiaGhpENmEifPDlOdhpsnlj5HoG6ttIvGiY1DdCmI9X2xGMhg==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-2.2.2.tgz", + "integrity": "sha512-TR6zxCKftDQnUAPvkrCWdBgDq/gbqx8A3ApnBrR5rMvpp6+KMJI0Igw7fkWPgeVK0uhRXTXdvO3O+YP0CaUX2g==", "requires": { "@mrmlnc/readdir-enhanced": "2.2.1", + "@nodelib/fs.stat": "1.0.2", "glob-parent": "3.1.0", "is-glob": "4.0.0", "merge2": "1.2.2", @@ -4827,7 +4801,7 @@ "dev": true, "requires": { "commondir": "1.0.1", - "make-dir": "1.2.0", + "make-dir": "1.3.0", "pkg-dir": "2.0.0" } }, @@ -4859,9 +4833,9 @@ "dev": true }, "follow-redirects": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.4.1.tgz", - "integrity": "sha512-uxYePVPogtya1ktGnAAXOacnbIuRMB4dkvqeNz2qTtTQsuzSfbDolV+wMMKxAmCx0bLgAKLbBOkjItMbbkR1vg==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.0.tgz", + "integrity": "sha512-fdrt472/9qQ6Kgjvb935ig6vJCuofpBUD14f9Vb+SLlm7xIe4Qva5gey8EKtv8lp7ahE1wilg3xL1znpVGtZIA==", "requires": { "debug": "3.1.0" }, @@ -4951,14 +4925,14 @@ "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" }, "fsevents": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.3.tgz", - "integrity": "sha512-X+57O5YkDTiEQGiw8i7wYc2nQgweIekqkepI8Q3y4wVlurgBt2SuwxTeYUYMZIGpLZH3r/TsMjczCMXE5ZOt7Q==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", + "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", "dev": true, "optional": true, "requires": { "nan": "2.10.0", - "node-pre-gyp": "0.9.1" + "node-pre-gyp": "0.10.0" }, "dependencies": { "abbrev": { @@ -5039,7 +5013,7 @@ } }, "deep-extend": { - "version": "0.4.2", + "version": "0.5.1", "bundled": true, "dev": true, "optional": true @@ -5217,7 +5191,7 @@ } }, "node-pre-gyp": { - "version": "0.9.1", + "version": "0.10.0", "bundled": true, "dev": true, "optional": true, @@ -5228,7 +5202,7 @@ "nopt": "4.0.1", "npm-packlist": "1.1.10", "npmlog": "4.1.2", - "rc": "1.2.6", + "rc": "1.2.7", "rimraf": "2.6.2", "semver": "5.5.0", "tar": "4.4.1" @@ -5326,12 +5300,12 @@ "optional": true }, "rc": { - "version": "1.2.6", + "version": "1.2.7", "bundled": true, "dev": true, "optional": true, "requires": { - "deep-extend": "0.4.2", + "deep-extend": "0.5.1", "ini": "1.3.5", "minimist": "1.2.0", "strip-json-comments": "2.0.1" @@ -5633,7 +5607,7 @@ "requires": { "array-union": "1.0.2", "dir-glob": "2.0.0", - "fast-glob": "2.2.1", + "fast-glob": "2.2.2", "glob": "7.1.2", "ignore": "3.3.8", "pify": "3.0.0", @@ -5641,16 +5615,16 @@ } }, "google-auth-library": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-1.4.0.tgz", - "integrity": "sha512-vWRx6pJulK7Y5V/Xyr7MPMlx2mWfmrUVbcffZ7hpq8ElFg5S8WY6PvjMovdcr6JfuAwwpAX4R0I1XOcyWuBcUw==", + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-1.5.0.tgz", + "integrity": "sha512-xpibA/hkq4waBcpIkSJg4GiDAqcBWjJee3c47zj7xP3RQ0A9mc8MP3Vc9sc8SGRoDYA0OszZxTjW7SbcC4pJIA==", "requires": { "axios": "0.18.0", "gcp-metadata": "0.6.3", "gtoken": "2.3.0", - "jws": "3.1.4", + "jws": "3.1.5", "lodash.isstring": "4.0.1", - "lru-cache": "4.1.2", + "lru-cache": "4.1.3", "retry-axios": "0.3.2" } }, @@ -5659,10 +5633,10 @@ "resolved": "https://registry.npmjs.org/google-auto-auth/-/google-auto-auth-0.10.1.tgz", "integrity": "sha512-iIqSbY7Ypd32mnHGbYctp80vZzXoDlvI9gEfvtl3kmyy5HzOcrZCIGCBdSlIzRsg7nHpQiHE3Zl6Ycur6TSodQ==", "requires": { - "async": "2.6.0", + "async": "2.6.1", "gcp-metadata": "0.6.3", - "google-auth-library": "1.4.0", - "request": "2.85.0" + "google-auth-library": "1.5.0", + "request": "2.87.0" } }, "google-gax": { @@ -5765,9 +5739,9 @@ "dev": true }, "growl": { - "version": "1.10.3", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz", - "integrity": "sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q==", + "version": "1.10.5", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", + "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", "dev": true }, "grpc": { @@ -5778,7 +5752,7 @@ "lodash": "4.17.10", "nan": "2.10.0", "node-pre-gyp": "0.10.0", - "protobufjs": "5.0.2" + "protobufjs": "5.0.3" }, "dependencies": { "abbrev": { @@ -6069,9 +6043,9 @@ "bundled": true }, "protobufjs": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.2.tgz", - "integrity": "sha1-WXSNfc8D0tsiwT2p/rAk4Wq4DJE=", + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.3.tgz", + "integrity": "sha512-55Kcx1MhPZX0zTbVosMQEO5R6/rikNXd9b6RQK4KSPcrSIIwoXTtebIczUrXlwaSrbz4x8XUVThGPob1n8I4QA==", "requires": { "ascli": "1.0.1", "bytebuffer": "5.0.1", @@ -6203,7 +6177,7 @@ "requires": { "axios": "0.18.0", "google-p12-pem": "1.0.2", - "jws": "3.1.4", + "jws": "3.1.5", "mime": "2.3.1", "pify": "3.0.0" } @@ -6322,28 +6296,12 @@ "integrity": "sha1-ieJdtgS3Jcj1l2//Ct3JIbgopac=", "dev": true }, - "hawk": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/hawk/-/hawk-6.0.2.tgz", - "integrity": "sha512-miowhl2+U7Qle4vdLqDdPt9m09K6yZhkLDTWGoUiUzrQCn+mHHSmfJgAyGaLRZbPmTqfFFjRV1QWCW0VWUJBbQ==", - "requires": { - "boom": "4.3.1", - "cryptiles": "3.1.2", - "hoek": "4.2.1", - "sntp": "2.1.0" - } - }, "he": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", "dev": true }, - "hoek": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.1.tgz", - "integrity": "sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==" - }, "home-or-tmp": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", @@ -6367,7 +6325,7 @@ "dev": true, "requires": { "domelementtype": "1.3.0", - "domhandler": "2.4.1", + "domhandler": "2.4.2", "domutils": "1.7.0", "entities": "1.1.1", "inherits": "2.0.3", @@ -6413,9 +6371,9 @@ } }, "iconv-lite": { - "version": "0.4.22", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.22.tgz", - "integrity": "sha512-1AinFBeDTnsvVEP+V1QBlHpM1UZZl7gWB6fcz7B1Ho+LI1dUh2sSrxoCfVt2PinRHzXAziSniEV3P7JbTDHcXA==", + "version": "0.4.23", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", + "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", "dev": true, "requires": { "safer-buffer": "2.1.2" @@ -7093,23 +7051,21 @@ "dev": true }, "jwa": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.1.5.tgz", - "integrity": "sha1-oFUs4CIHQs1S4VN3SjKQXDDnVuU=", + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.1.6.tgz", + "integrity": "sha512-tBO/cf++BUsJkYql/kBbJroKOgHWEigTKBAjjBEmrMGYd1QMBC74Hr4Wo2zCZw6ZrVhlJPvoMrkcOnlWR/DJfw==", "requires": { - "base64url": "2.0.0", "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.9", + "ecdsa-sig-formatter": "1.0.10", "safe-buffer": "5.1.2" } }, "jws": { - "version": "3.1.4", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.1.4.tgz", - "integrity": "sha1-+ei5M46KhHJ31kRLFGT2GIDgUKI=", + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/jws/-/jws-3.1.5.tgz", + "integrity": "sha512-GsCSexFADNQUr8T5HPJvayTjvPIfoyJPtLQBwn5a4WZQchcrPMPMAWcC1AzJVRDKyD6ZPROPAxgv6rfHViO4uQ==", "requires": { - "base64url": "2.0.0", - "jwa": "1.1.5", + "jwa": "1.1.6", "safe-buffer": "5.1.2" } }, @@ -7291,9 +7247,9 @@ "dev": true }, "lolex": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.3.2.tgz", - "integrity": "sha512-A5pN2tkFj7H0dGIAM6MFvHKMJcPnjZsOMvR7ujCjfgW5TbV6H9vb1PgxLtHvjqNZTHsUolz+6/WEO0N1xNx2ng==", + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.6.0.tgz", + "integrity": "sha512-e1UtIo1pbrIqEXib/yMjHciyqkng5lc0rrIbytgjmRgDR9+2ceNIAcwOWSgylRjoEP9VdVguCSRwnNmlbnOUwA==", "dev": true }, "long": { @@ -7333,18 +7289,18 @@ "dev": true }, "lru-cache": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.2.tgz", - "integrity": "sha512-wgeVXhrDwAWnIF/yZARsFnMBtdFXOg1b8RIrhilp+0iDYN4mdQcNZElDZ0e4B64BhaxeQ5zN7PMyvu7we1kPeQ==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.3.tgz", + "integrity": "sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA==", "requires": { "pseudomap": "1.0.2", "yallist": "2.1.2" } }, "make-dir": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.2.0.tgz", - "integrity": "sha512-aNUAa4UMg/UougV25bbrU4ZaaKNjJ/3/xnvg/twpmKROPdKZPZ9wGgI0opdZzO8q/zUFawoUuixuOv33eZ61Iw==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", + "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", "dev": true, "requires": { "pify": "3.0.0" @@ -7384,6 +7340,12 @@ "escape-string-regexp": "1.0.5" } }, + "math-random": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.1.tgz", + "integrity": "sha1-izqsWIuKZuSXXjzepn97sylgH6w=", + "dev": true + }, "md5-hex": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-2.0.0.tgz", @@ -7647,22 +7609,22 @@ } }, "mocha": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.1.1.tgz", - "integrity": "sha512-kKKs/H1KrMMQIEsWNxGmb4/BGsmj0dkeyotEvbrAuQ01FcWRLssUNXCEUZk6SZtyJBi6EE7SL0zDDtItw1rGhw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz", + "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==", "dev": true, "requires": { "browser-stdout": "1.3.1", - "commander": "2.11.0", + "commander": "2.15.1", "debug": "3.1.0", "diff": "3.5.0", "escape-string-regexp": "1.0.5", "glob": "7.1.2", - "growl": "1.10.3", + "growl": "1.10.5", "he": "1.1.1", "minimatch": "3.0.4", "mkdirp": "0.5.1", - "supports-color": "4.4.0" + "supports-color": "5.4.0" }, "dependencies": { "debug": { @@ -7673,15 +7635,6 @@ "requires": { "ms": "2.0.0" } - }, - "supports-color": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", - "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", - "dev": true, - "requires": { - "has-flag": "2.0.0" - } } } }, @@ -7784,7 +7737,7 @@ "requires": { "@sinonjs/formatio": "2.0.0", "just-extend": "1.1.27", - "lolex": "2.3.2", + "lolex": "2.6.0", "path-to-regexp": "1.7.0", "text-encoding": "0.6.4" } @@ -7849,9 +7802,9 @@ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, "nyc": { - "version": "11.7.1", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.7.1.tgz", - "integrity": "sha512-EGePURSKUEpS1jWnEKAMhY+GWZzi7JC+f8iBDOATaOsLZW5hM/9eYx2dHGaEXa1ITvMm44CJugMksvP3NwMQMw==", + "version": "11.8.0", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.8.0.tgz", + "integrity": "sha512-PUFq1PSsx5OinSk5g5aaZygcDdI3QQT5XUlbR9QRMihtMS6w0Gm8xj4BxmKeeAlpQXC5M2DIhH16Y+KejceivQ==", "dev": true, "requires": { "archy": "1.0.0", @@ -7872,7 +7825,7 @@ "istanbul-reports": "1.4.0", "md5-hex": "1.3.0", "merge-source-map": "1.1.0", - "micromatch": "2.3.11", + "micromatch": "3.1.10", "mkdirp": "0.5.1", "resolve-from": "2.0.0", "rimraf": "2.6.2", @@ -7922,12 +7875,9 @@ "dev": true }, "arr-diff": { - "version": "2.0.0", + "version": "4.0.0", "bundled": true, - "dev": true, - "requires": { - "arr-flatten": "1.1.0" - } + "dev": true }, "arr-flatten": { "version": "1.1.0", @@ -7940,7 +7890,7 @@ "dev": true }, "array-unique": { - "version": "0.2.1", + "version": "0.3.2", "bundled": true, "dev": true }, @@ -7960,7 +7910,7 @@ "dev": true }, "atob": { - "version": "2.1.0", + "version": "2.1.1", "bundled": true, "dev": true }, @@ -7984,7 +7934,7 @@ "babel-types": "6.26.0", "detect-indent": "4.0.0", "jsesc": "1.3.0", - "lodash": "4.17.5", + "lodash": "4.17.10", "source-map": "0.5.7", "trim-right": "1.0.1" } @@ -8002,7 +7952,7 @@ "bundled": true, "dev": true, "requires": { - "core-js": "2.5.5", + "core-js": "2.5.6", "regenerator-runtime": "0.11.1" } }, @@ -8015,7 +7965,7 @@ "babel-traverse": "6.26.0", "babel-types": "6.26.0", "babylon": "6.18.0", - "lodash": "4.17.5" + "lodash": "4.17.10" } }, "babel-traverse": { @@ -8031,7 +7981,7 @@ "debug": "2.6.9", "globals": "9.18.0", "invariant": "2.2.4", - "lodash": "4.17.5" + "lodash": "4.17.10" } }, "babel-types": { @@ -8041,7 +7991,7 @@ "requires": { "babel-runtime": "6.26.0", "esutils": "2.0.2", - "lodash": "4.17.5", + "lodash": "4.17.10", "to-fast-properties": "1.0.3" } }, @@ -8125,13 +8075,30 @@ } }, "braces": { - "version": "1.8.5", + "version": "2.3.2", "bundled": true, "dev": true, "requires": { - "expand-range": "1.8.2", - "preserve": "0.2.0", - "repeat-element": "1.1.2" + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "repeat-element": "1.1.2", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } } }, "builtin-modules": { @@ -8285,7 +8252,7 @@ "dev": true }, "core-js": { - "version": "2.5.5", + "version": "2.5.6", "bundled": true, "dev": true }, @@ -8294,7 +8261,7 @@ "bundled": true, "dev": true, "requires": { - "lru-cache": "4.1.2", + "lru-cache": "4.1.3", "which": "1.3.0" } }, @@ -8421,7 +8388,7 @@ "bundled": true, "dev": true, "requires": { - "lru-cache": "4.1.2", + "lru-cache": "4.1.3", "shebang-command": "1.2.0", "which": "1.3.0" } @@ -8429,19 +8396,35 @@ } }, "expand-brackets": { - "version": "0.1.5", - "bundled": true, - "dev": true, - "requires": { - "is-posix-bracket": "0.1.1" - } - }, - "expand-range": { - "version": "1.8.2", + "version": "2.1.4", "bundled": true, "dev": true, "requires": { - "fill-range": "2.2.3" + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "0.1.6" + } + }, + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } } }, "extend-shallow": { @@ -8464,28 +8447,88 @@ } }, "extglob": { - "version": "0.3.2", + "version": "2.0.4", "bundled": true, "dev": true, "requires": { - "is-extglob": "1.0.0" + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "1.0.2" + } + }, + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "6.0.2" + } + }, + "is-descriptor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" + } + }, + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } } }, - "filename-regex": { - "version": "2.0.1", - "bundled": true, - "dev": true - }, "fill-range": { - "version": "2.2.3", + "version": "4.0.0", "bundled": true, "dev": true, "requires": { - "is-number": "2.1.0", - "isobject": "2.1.0", - "randomatic": "1.1.7", - "repeat-element": "1.1.2", - "repeat-string": "1.6.1" + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "0.1.1" + } + } } }, "find-cache-dir": { @@ -8511,14 +8554,6 @@ "bundled": true, "dev": true }, - "for-own": { - "version": "0.1.5", - "bundled": true, - "dev": true, - "requires": { - "for-in": "1.0.2" - } - }, "foreground-child": { "version": "1.5.6", "bundled": true, @@ -8569,23 +8604,6 @@ "path-is-absolute": "1.0.1" } }, - "glob-base": { - "version": "0.3.0", - "bundled": true, - "dev": true, - "requires": { - "glob-parent": "2.0.0", - "is-glob": "2.0.1" - } - }, - "glob-parent": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-glob": "2.0.1" - } - }, "globals": { "version": "9.18.0", "bundled": true, @@ -8772,29 +8790,11 @@ } } }, - "is-dotfile": { - "version": "1.0.3", - "bundled": true, - "dev": true - }, - "is-equal-shallow": { - "version": "0.1.3", - "bundled": true, - "dev": true, - "requires": { - "is-primitive": "2.0.0" - } - }, "is-extendable": { "version": "0.1.1", "bundled": true, "dev": true }, - "is-extglob": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, "is-finite": { "version": "1.0.2", "bundled": true, @@ -8808,16 +8808,8 @@ "bundled": true, "dev": true }, - "is-glob": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extglob": "1.0.0" - } - }, "is-number": { - "version": "2.1.0", + "version": "3.0.0", "bundled": true, "dev": true, "requires": { @@ -8854,16 +8846,6 @@ } } }, - "is-posix-bracket": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "is-primitive": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, "is-stream": { "version": "1.1.0", "bundled": true, @@ -8890,12 +8872,9 @@ "dev": true }, "isobject": { - "version": "2.1.0", + "version": "3.0.1", "bundled": true, - "dev": true, - "requires": { - "isarray": "1.0.0" - } + "dev": true }, "istanbul-lib-coverage": { "version": "1.2.0", @@ -9036,7 +9015,7 @@ } }, "lodash": { - "version": "4.17.5", + "version": "4.17.10", "bundled": true, "dev": true }, @@ -9054,7 +9033,7 @@ } }, "lru-cache": { - "version": "4.1.2", + "version": "4.1.3", "bundled": true, "dev": true, "requires": { @@ -9112,23 +9091,30 @@ } }, "micromatch": { - "version": "2.3.11", + "version": "3.1.10", "bundled": true, "dev": true, "requires": { - "arr-diff": "2.0.0", - "array-unique": "0.2.1", - "braces": "1.8.5", - "expand-brackets": "0.1.5", - "extglob": "0.3.2", - "filename-regex": "2.0.1", - "is-extglob": "1.0.0", - "is-glob": "2.0.1", - "kind-of": "3.2.2", - "normalize-path": "2.1.1", - "object.omit": "2.0.1", - "parse-glob": "3.0.4", - "regex-cache": "0.4.4" + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.9", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } } }, "mimic-fn": { @@ -9228,14 +9214,6 @@ "validate-npm-package-license": "3.0.3" } }, - "normalize-path": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "requires": { - "remove-trailing-separator": "1.1.0" - } - }, "npm-run-path": { "version": "2.0.2", "bundled": true, @@ -9289,15 +9267,6 @@ } } }, - "object.omit": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "for-own": "0.1.5", - "is-extendable": "0.1.1" - } - }, "object.pick": { "version": "1.3.0", "bundled": true, @@ -9371,17 +9340,6 @@ "bundled": true, "dev": true }, - "parse-glob": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "requires": { - "glob-base": "0.3.0", - "is-dotfile": "1.0.3", - "is-extglob": "1.0.0", - "is-glob": "2.0.1" - } - }, "parse-json": { "version": "2.2.0", "bundled": true, @@ -9470,53 +9428,11 @@ "bundled": true, "dev": true }, - "preserve": { - "version": "0.2.0", - "bundled": true, - "dev": true - }, "pseudomap": { "version": "1.0.2", "bundled": true, "dev": true }, - "randomatic": { - "version": "1.1.7", - "bundled": true, - "dev": true, - "requires": { - "is-number": "3.0.0", - "kind-of": "4.0.0" - }, - "dependencies": { - "is-number": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "kind-of": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, "read-pkg": { "version": "1.1.0", "bundled": true, @@ -9552,14 +9468,6 @@ "bundled": true, "dev": true }, - "regex-cache": { - "version": "0.4.4", - "bundled": true, - "dev": true, - "requires": { - "is-equal-shallow": "0.1.3" - } - }, "regex-not": { "version": "1.0.2", "bundled": true, @@ -9569,11 +9477,6 @@ "safe-regex": "1.1.0" } }, - "remove-trailing-separator": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, "repeat-element": { "version": "1.1.2", "bundled": true, @@ -9803,7 +9706,7 @@ "bundled": true, "dev": true, "requires": { - "atob": "2.1.0", + "atob": "2.1.1", "decode-uri-component": "0.2.0", "resolve-url": "0.2.1", "source-map-url": "0.4.0", @@ -10459,7 +10362,7 @@ "bundled": true, "dev": true, "requires": { - "cliui": "4.0.0", + "cliui": "4.1.0", "decamelize": "1.2.0", "find-up": "2.1.0", "get-caller-file": "1.0.2", @@ -10484,7 +10387,7 @@ "dev": true }, "cliui": { - "version": "4.0.0", + "version": "4.1.0", "bundled": true, "dev": true, "requires": { @@ -11047,7 +10950,7 @@ "acorn": "4.0.13", "acorn-es7-plugin": "1.1.7", "core-js": "2.5.6", - "espurify": "1.7.0", + "espurify": "1.8.0", "estraverse": "4.2.0" } }, @@ -11094,7 +10997,7 @@ "integrity": "sha1-10Odl9hRVr5OMKAPL7WnJRTOPAg=", "requires": { "core-js": "2.5.6", - "diff-match-patch": "1.0.0", + "diff-match-patch": "1.0.1", "power-assert-renderer-base": "1.1.1", "stringifier": "1.3.0", "type-name": "2.0.2" @@ -11202,7 +11105,7 @@ "@protobufjs/pool": "1.1.0", "@protobufjs/utf8": "1.1.0", "@types/long": "3.0.32", - "@types/node": "8.10.12", + "@types/node": "8.10.17", "long": "4.0.0" } }, @@ -11244,23 +11147,21 @@ } }, "randomatic": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", - "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.0.0.tgz", + "integrity": "sha512-VdxFOIEY3mNO5PtSRkkle/hPJDHvQhK21oa73K4yAc9qmp6N429gAyF1gZMOTMeS0/AYzaV/2Trcef+NaIonSA==", "dev": true, "requires": { - "is-number": "3.0.0", - "kind-of": "4.0.0" + "is-number": "4.0.0", + "kind-of": "6.0.2", + "math-random": "1.0.1" }, "dependencies": { - "kind-of": { + "is-number": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } + "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", + "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", + "dev": true } } }, @@ -11370,9 +11271,9 @@ } }, "regenerate": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.3.3.tgz", - "integrity": "sha512-jVpo1GadrDAK59t/0jRx5VxYWQEDkkEKi6+HjE3joFVLfDOh9Xrdh0dF1eSq+BI/SwvTQ44gSscJ8N5zYL61sg==", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", + "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", "dev": true }, "regenerator-runtime": { @@ -11411,7 +11312,7 @@ "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", "dev": true, "requires": { - "regenerate": "1.3.3", + "regenerate": "1.4.0", "regjsgen": "0.2.0", "regjsparser": "0.1.5" } @@ -11485,9 +11386,9 @@ } }, "request": { - "version": "2.85.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.85.0.tgz", - "integrity": "sha512-8H7Ehijd4js+s6wuVPLjwORxD4zeuyjYugprdOXlPSqaApmL/QOy+EB/beICHVCHkGMKNh5rvihb5ov+IDw4mg==", + "version": "2.87.0", + "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", + "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", "requires": { "aws-sign2": "0.7.0", "aws4": "1.7.0", @@ -11497,7 +11398,6 @@ "forever-agent": "0.6.1", "form-data": "2.3.2", "har-validator": "5.0.3", - "hawk": "6.0.2", "http-signature": "1.2.0", "is-typedarray": "1.0.0", "isstream": "0.1.2", @@ -11507,7 +11407,6 @@ "performance-now": "2.1.0", "qs": "6.5.2", "safe-buffer": "5.1.2", - "stringstream": "0.0.5", "tough-cookie": "2.3.4", "tunnel-agent": "0.6.0", "uuid": "3.2.1" @@ -11791,7 +11690,7 @@ "@sinonjs/formatio": "2.0.0", "diff": "3.5.0", "lodash.get": "4.4.2", - "lolex": "2.3.2", + "lolex": "2.6.0", "nise": "1.3.3", "supports-color": "5.4.0", "type-detect": "4.0.8" @@ -11836,7 +11735,7 @@ "extend-shallow": "2.0.1", "map-cache": "0.2.2", "source-map": "0.5.7", - "source-map-resolve": "0.5.1", + "source-map-resolve": "0.5.2", "use": "3.1.0" }, "dependencies": { @@ -11922,14 +11821,6 @@ } } }, - "sntp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/sntp/-/sntp-2.1.0.tgz", - "integrity": "sha512-FL1b58BDrqS3A11lJ0zEdnJ3UOKqVxawAkF3k7F0CVN7VQ34aZrV+G8BZ1WC9ZL7NyrwsW0oviwsWDgRuVYtJg==", - "requires": { - "hoek": "4.2.1" - } - }, "sort-keys": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", @@ -11945,9 +11836,9 @@ "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" }, "source-map-resolve": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.1.tgz", - "integrity": "sha512-0KW2wvzfxm8NCTb30z0LMNyPqWCdDGE2viwzUaucqJdkTRXtZiSY3I+2A6nVAjmdOy0I4gU8DwnVVGsk9jvP2A==", + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", + "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", "requires": { "atob": "2.1.1", "decode-uri-component": "0.2.0", @@ -11957,9 +11848,9 @@ } }, "source-map-support": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.5.tgz", - "integrity": "sha512-mR7/Nd5l1z6g99010shcXJiNEaf3fEtmLhRB/sBcQVJGodcHCULPp2y4Sfa43Kv2zq7T+Izmfp/WHCR6dYkQCA==", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.6.tgz", + "integrity": "sha512-N4KXEz7jcKqPf2b2vZF11lQIz9W5ZMuUcIOGj243lduidkf2fjkVKJS9vNxVWn3u/uxX38AcE8U9nnH9FPcq+g==", "dev": true, "requires": { "buffer-from": "1.0.0", @@ -12120,11 +12011,6 @@ "type-name": "2.0.2" } }, - "stringstream": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", - "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=" - }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", @@ -12896,7 +12782,7 @@ "requires": { "detect-indent": "5.0.0", "graceful-fs": "4.1.11", - "make-dir": "1.2.0", + "make-dir": "1.3.0", "pify": "3.0.0", "sort-keys": "2.0.0", "write-file-atomic": "2.3.0" From 5b51d2710e55287eeebc07761cc6628c0c5eae50 Mon Sep 17 00:00:00 2001 From: "greenkeeper[bot]" Date: Mon, 4 Jun 2018 19:30:55 -0700 Subject: [PATCH 030/371] =?UTF-8?q?Update=20nyc=20to=20the=20latest=20vers?= =?UTF-8?q?ion=20=F0=9F=9A=80=20(#30)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(package): update nyc to version 12.0.1 * Update package.json --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 900ee4e0ad0..c2da5c3c743 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -63,7 +63,7 @@ "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.5.5", "mocha": "^5.0.0", - "nyc": "^11.3.0", + "nyc": "^12.0.2", "power-assert": "^1.4.4", "prettier": "^1.9.2", "through2": "^2.0.3" From a96fc24c629771b3f12106c2070989e96c4f412d Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 25 Jun 2018 17:10:55 -0700 Subject: [PATCH 031/371] fix: update linking for samples (#36) --- packages/google-container/.circleci/config.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index abbe1991ee6..5a1d0b7eb01 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -78,7 +78,6 @@ jobs: command: |- mkdir -p /home/node/.npm-global npm install - npm link chmod +x node_modules/@google-cloud/nodejs-repo-tools/bin/tools environment: NPM_CONFIG_PREFIX: /home/node/.npm-global @@ -121,9 +120,8 @@ jobs: name: Link the module being tested to the samples. command: | cd samples/ - npm link ../ npm install - cd .. + npm link ../ environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: From 89a330e16a30c99780e0681fb930505e4f2cc499 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 25 Jun 2018 22:51:13 -0700 Subject: [PATCH 032/371] refactor: drop repo-tool as an exec wrapper (#39) --- packages/google-container/.circleci/config.yml | 1 - packages/google-container/package.json | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 5a1d0b7eb01..cfffc3c8cd4 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -78,7 +78,6 @@ jobs: command: |- mkdir -p /home/node/.npm-global npm install - chmod +x node_modules/@google-cloud/nodejs-repo-tools/bin/tools environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: diff --git a/packages/google-container/package.json b/packages/google-container/package.json index c2da5c3c743..6520a28a5a6 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -35,16 +35,16 @@ "greenkeeper[bot] " ], "scripts": { - "test": "repo-tools test run --cmd npm -- run cover", + "test": "npm run cover", "generate-scaffolding": "repo-tools generate all", "generate-scaffolding-samples": "repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json", "cover": "nyc --reporter=lcov mocha --require intelli-espower-loader test/*.js && nyc report", "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", - "test-no-cover": "repo-tools test run --cmd mocha -- test/*.js --no-timeouts", - "lint": "repo-tools lint --cmd eslint -- src/ samples/ system-test/ test/ smoke-test/", - "prettier": "repo-tools exec -- prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js smoke-test/*.js", - "docs": "repo-tools exec -- jsdoc -c .jsdoc.js", - "system-test": "repo-tools test run --cmd mocha -- system-test/*.js smoke-test/*.js --timeout 600000" + "test-no-cover": "mocha test/*.js --no-timeouts", + "lint": "eslint src/ samples/ system-test/ test/ smoke-test/", + "prettier": "prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js smoke-test/*.js", + "docs": "jsdoc -c .jsdoc.js", + "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000" }, "dependencies": { "google-gax": "^0.16.0", From bc154615b37ac3f42caed39a82a6d555ab150cf9 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 26 Jun 2018 10:32:12 -0700 Subject: [PATCH 033/371] fix: update to the latest eslint (#40) --- packages/google-container/package-lock.json | 5483 ++++++++--------- packages/google-container/package.json | 2 +- .../google-container/system-test/container.js | 18 + 3 files changed, 2634 insertions(+), 2869 deletions(-) create mode 100644 packages/google-container/system-test/container.js diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 5f6abc84c55..6e309a0ddb5 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -16,18 +16,18 @@ "integrity": "sha512-oWqTnIGXW3k72UFidXzW0ONlO7hnO9x02S/QReJ7NBGeiBH9cUHY9+EfV6C8PXC6YJH++WrliEq03wMSJGNZFg==", "dev": true, "requires": { - "babel-plugin-check-es2015-constants": "6.22.0", - "babel-plugin-syntax-trailing-function-commas": "6.22.0", - "babel-plugin-transform-async-to-generator": "6.24.1", - "babel-plugin-transform-es2015-destructuring": "6.23.0", - "babel-plugin-transform-es2015-function-name": "6.24.1", - "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", - "babel-plugin-transform-es2015-parameters": "6.24.1", - "babel-plugin-transform-es2015-spread": "6.22.0", - "babel-plugin-transform-es2015-sticky-regex": "6.24.1", - "babel-plugin-transform-es2015-unicode-regex": "6.24.1", - "babel-plugin-transform-exponentiation-operator": "6.24.1", - "package-hash": "1.2.0" + "babel-plugin-check-es2015-constants": "^6.8.0", + "babel-plugin-syntax-trailing-function-commas": "^6.20.0", + "babel-plugin-transform-async-to-generator": "^6.16.0", + "babel-plugin-transform-es2015-destructuring": "^6.19.0", + "babel-plugin-transform-es2015-function-name": "^6.9.0", + "babel-plugin-transform-es2015-modules-commonjs": "^6.18.0", + "babel-plugin-transform-es2015-parameters": "^6.21.0", + "babel-plugin-transform-es2015-spread": "^6.8.0", + "babel-plugin-transform-es2015-sticky-regex": "^6.8.0", + "babel-plugin-transform-es2015-unicode-regex": "^6.11.0", + "babel-plugin-transform-exponentiation-operator": "^6.8.0", + "package-hash": "^1.2.0" }, "dependencies": { "md5-hex": { @@ -36,7 +36,7 @@ "integrity": "sha1-0sSv6YPENwZiF5uMrRRSGRNQRsQ=", "dev": true, "requires": { - "md5-o-matic": "0.1.1" + "md5-o-matic": "^0.1.1" } }, "package-hash": { @@ -45,7 +45,7 @@ "integrity": "sha1-AD5WzVe3NqbtYRTMK4FUJnJ3DkQ=", "dev": true, "requires": { - "md5-hex": "1.3.0" + "md5-hex": "^1.3.0" } } } @@ -56,8 +56,8 @@ "integrity": "sha1-ze0RlqjY2TgaUJJAq5LpGl7Aafc=", "dev": true, "requires": { - "@ava/babel-plugin-throws-helper": "2.0.0", - "babel-plugin-espower": "2.4.0" + "@ava/babel-plugin-throws-helper": "^2.0.0", + "babel-plugin-espower": "^2.3.2" } }, "@ava/write-file-atomic": { @@ -66,9 +66,151 @@ "integrity": "sha512-BTNB3nGbEfJT+69wuqXFr/bQH7Vr7ihx2xGOMNqPgDGhwspoZhiWumDDZNjBy7AScmqS5CELIOGtPVXESyrnDA==", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "imurmurhash": "0.1.4", - "slide": "1.1.6" + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "slide": "^1.1.5" + } + }, + "@babel/code-frame": { + "version": "7.0.0-beta.49", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.49.tgz", + "integrity": "sha1-vs2AVIJzREDJ0TfkbXc0DmTX9Rs=", + "dev": true, + "requires": { + "@babel/highlight": "7.0.0-beta.49" + } + }, + "@babel/generator": { + "version": "7.0.0-beta.49", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.49.tgz", + "integrity": "sha1-6c/9qROZaszseTu8JauRvBnQv3o=", + "dev": true, + "requires": { + "@babel/types": "7.0.0-beta.49", + "jsesc": "^2.5.1", + "lodash": "^4.17.5", + "source-map": "^0.5.0", + "trim-right": "^1.0.1" + }, + "dependencies": { + "jsesc": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.1.tgz", + "integrity": "sha1-5CGiqOINawgZ3yiQj3glJrlt0f4=", + "dev": true + } + } + }, + "@babel/helper-function-name": { + "version": "7.0.0-beta.49", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.49.tgz", + "integrity": "sha1-olwRGbnwNSeGcBJuAiXAMEHI3jI=", + "dev": true, + "requires": { + "@babel/helper-get-function-arity": "7.0.0-beta.49", + "@babel/template": "7.0.0-beta.49", + "@babel/types": "7.0.0-beta.49" + } + }, + "@babel/helper-get-function-arity": { + "version": "7.0.0-beta.49", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.49.tgz", + "integrity": "sha1-z1Aj8y0q2S0Ic3STnOwJUby1FEE=", + "dev": true, + "requires": { + "@babel/types": "7.0.0-beta.49" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.0.0-beta.49", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.49.tgz", + "integrity": "sha1-QNeO2glo0BGxxShm5XRs+yPldUg=", + "dev": true, + "requires": { + "@babel/types": "7.0.0-beta.49" + } + }, + "@babel/highlight": { + "version": "7.0.0-beta.49", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.49.tgz", + "integrity": "sha1-lr3GtD4TSCASumaRsQGEktOWIsw=", + "dev": true, + "requires": { + "chalk": "^2.0.0", + "esutils": "^2.0.2", + "js-tokens": "^3.0.0" + } + }, + "@babel/parser": { + "version": "7.0.0-beta.49", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.49.tgz", + "integrity": "sha1-lE0MW6KBK7FZ7b0iZ0Ov0mUXm9w=", + "dev": true + }, + "@babel/template": { + "version": "7.0.0-beta.49", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.49.tgz", + "integrity": "sha1-44q+ghfLl5P0YaUwbXrXRdg+HSc=", + "dev": true, + "requires": { + "@babel/code-frame": "7.0.0-beta.49", + "@babel/parser": "7.0.0-beta.49", + "@babel/types": "7.0.0-beta.49", + "lodash": "^4.17.5" + } + }, + "@babel/traverse": { + "version": "7.0.0-beta.49", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.49.tgz", + "integrity": "sha1-TypzaCoYM07WYl0QCo0nMZ98LWg=", + "dev": true, + "requires": { + "@babel/code-frame": "7.0.0-beta.49", + "@babel/generator": "7.0.0-beta.49", + "@babel/helper-function-name": "7.0.0-beta.49", + "@babel/helper-split-export-declaration": "7.0.0-beta.49", + "@babel/parser": "7.0.0-beta.49", + "@babel/types": "7.0.0-beta.49", + "debug": "^3.1.0", + "globals": "^11.1.0", + "invariant": "^2.2.0", + "lodash": "^4.17.5" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "globals": { + "version": "11.7.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.7.0.tgz", + "integrity": "sha512-K8BNSPySfeShBQXsahYB/AbbWruVOTyVpgoIDnl8odPpeSfP2J5QO2oLFFdl2j7GfDCtZj2bMKar2T49itTPCg==", + "dev": true + } + } + }, + "@babel/types": { + "version": "7.0.0-beta.49", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.49.tgz", + "integrity": "sha1-t+Oxw/TUz+Eb34yJ8e/V4WF7h6Y=", + "dev": true, + "requires": { + "esutils": "^2.0.2", + "lodash": "^4.17.5", + "to-fast-properties": "^2.0.0" + }, + "dependencies": { + "to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", + "dev": true + } } }, "@concordance/react": { @@ -77,7 +219,7 @@ "integrity": "sha512-htrsRaQX8Iixlsek8zQU7tE8wcsTQJ5UhZkSPEA8slCDAisKpC/2VgU/ucPn32M5/LjGGXRaUEKvEw1Wiuu4zQ==", "dev": true, "requires": { - "arrify": "1.0.1" + "arrify": "^1.0.1" } }, "@google-cloud/nodejs-repo-tools": { @@ -94,7 +236,7 @@ "lodash": "4.17.5", "nyc": "11.4.1", "proxyquire": "1.8.0", - "semver": "5.5.0", + "semver": "^5.5.0", "sinon": "4.3.0", "string": "3.3.3", "supertest": "3.0.0", @@ -114,9 +256,9 @@ "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", "dev": true, "requires": { - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "wrap-ansi": "2.1.0" + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" } }, "is-fullwidth-code-point": { @@ -137,33 +279,33 @@ "integrity": "sha512-5eCZpvaksFVjP2rt1r60cfXmt3MUtsQDw8bAzNqNEr4WLvUMLgiVENMf/B9bE9YAX0mGVvaGA3v9IS9ekNqB1Q==", "dev": true, "requires": { - "archy": "1.0.0", - "arrify": "1.0.1", - "caching-transform": "1.0.1", - "convert-source-map": "1.5.1", - "debug-log": "1.0.1", - "default-require-extensions": "1.0.0", - "find-cache-dir": "0.1.1", - "find-up": "2.1.0", - "foreground-child": "1.5.6", - "glob": "7.1.2", - "istanbul-lib-coverage": "1.1.1", - "istanbul-lib-hook": "1.1.0", - "istanbul-lib-instrument": "1.9.1", - "istanbul-lib-report": "1.1.2", - "istanbul-lib-source-maps": "1.2.2", - "istanbul-reports": "1.1.3", - "md5-hex": "1.3.0", - "merge-source-map": "1.0.4", - "micromatch": "2.3.11", - "mkdirp": "0.5.1", - "resolve-from": "2.0.0", - "rimraf": "2.6.2", - "signal-exit": "3.0.2", - "spawn-wrap": "1.4.2", - "test-exclude": "4.1.1", - "yargs": "10.0.3", - "yargs-parser": "8.0.0" + "archy": "^1.0.0", + "arrify": "^1.0.1", + "caching-transform": "^1.0.0", + "convert-source-map": "^1.3.0", + "debug-log": "^1.0.1", + "default-require-extensions": "^1.0.0", + "find-cache-dir": "^0.1.1", + "find-up": "^2.1.0", + "foreground-child": "^1.5.3", + "glob": "^7.0.6", + "istanbul-lib-coverage": "^1.1.1", + "istanbul-lib-hook": "^1.1.0", + "istanbul-lib-instrument": "^1.9.1", + "istanbul-lib-report": "^1.1.2", + "istanbul-lib-source-maps": "^1.2.2", + "istanbul-reports": "^1.1.3", + "md5-hex": "^1.2.0", + "merge-source-map": "^1.0.2", + "micromatch": "^2.3.11", + "mkdirp": "^0.5.0", + "resolve-from": "^2.0.0", + "rimraf": "^2.5.4", + "signal-exit": "^3.0.1", + "spawn-wrap": "^1.4.2", + "test-exclude": "^4.1.1", + "yargs": "^10.0.3", + "yargs-parser": "^8.0.0" }, "dependencies": { "align-text": { @@ -171,9 +313,9 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2", - "longest": "1.0.1", - "repeat-string": "1.6.1" + "kind-of": "^3.0.2", + "longest": "^1.0.1", + "repeat-string": "^1.5.2" } }, "amdefine": { @@ -196,7 +338,7 @@ "bundled": true, "dev": true, "requires": { - "default-require-extensions": "1.0.0" + "default-require-extensions": "^1.0.0" } }, "archy": { @@ -209,7 +351,7 @@ "bundled": true, "dev": true, "requires": { - "arr-flatten": "1.1.0" + "arr-flatten": "^1.0.1" } }, "arr-flatten": { @@ -237,9 +379,9 @@ "bundled": true, "dev": true, "requires": { - "chalk": "1.1.3", - "esutils": "2.0.2", - "js-tokens": "3.0.2" + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" } }, "babel-generator": { @@ -247,14 +389,14 @@ "bundled": true, "dev": true, "requires": { - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "detect-indent": "4.0.0", - "jsesc": "1.3.0", - "lodash": "4.17.4", - "source-map": "0.5.7", - "trim-right": "1.0.1" + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "detect-indent": "^4.0.0", + "jsesc": "^1.3.0", + "lodash": "^4.17.4", + "source-map": "^0.5.6", + "trim-right": "^1.0.1" } }, "babel-messages": { @@ -262,7 +404,7 @@ "bundled": true, "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-runtime": { @@ -270,8 +412,8 @@ "bundled": true, "dev": true, "requires": { - "core-js": "2.5.3", - "regenerator-runtime": "0.11.1" + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" } }, "babel-template": { @@ -279,11 +421,11 @@ "bundled": true, "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "lodash": "4.17.4" + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" } }, "babel-traverse": { @@ -291,15 +433,15 @@ "bundled": true, "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "debug": "2.6.9", - "globals": "9.18.0", - "invariant": "2.2.2", - "lodash": "4.17.4" + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" } }, "babel-types": { @@ -307,10 +449,10 @@ "bundled": true, "dev": true, "requires": { - "babel-runtime": "6.26.0", - "esutils": "2.0.2", - "lodash": "4.17.4", - "to-fast-properties": "1.0.3" + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" } }, "babylon": { @@ -328,7 +470,7 @@ "bundled": true, "dev": true, "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, @@ -337,9 +479,9 @@ "bundled": true, "dev": true, "requires": { - "expand-range": "1.8.2", - "preserve": "0.2.0", - "repeat-element": "1.1.2" + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" } }, "builtin-modules": { @@ -352,9 +494,9 @@ "bundled": true, "dev": true, "requires": { - "md5-hex": "1.3.0", - "mkdirp": "0.5.1", - "write-file-atomic": "1.3.4" + "md5-hex": "^1.2.0", + "mkdirp": "^0.5.1", + "write-file-atomic": "^1.1.4" } }, "camelcase": { @@ -369,8 +511,8 @@ "dev": true, "optional": true, "requires": { - "align-text": "0.1.4", - "lazy-cache": "1.0.4" + "align-text": "^0.1.3", + "lazy-cache": "^1.0.3" } }, "chalk": { @@ -378,11 +520,11 @@ "bundled": true, "dev": true, "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" } }, "cliui": { @@ -391,8 +533,8 @@ "dev": true, "optional": true, "requires": { - "center-align": "0.1.3", - "right-align": "0.1.3", + "center-align": "^0.1.1", + "right-align": "^0.1.1", "wordwrap": "0.0.2" }, "dependencies": { @@ -434,8 +576,8 @@ "bundled": true, "dev": true, "requires": { - "lru-cache": "4.1.1", - "which": "1.3.0" + "lru-cache": "^4.0.1", + "which": "^1.2.9" } }, "debug": { @@ -461,7 +603,7 @@ "bundled": true, "dev": true, "requires": { - "strip-bom": "2.0.0" + "strip-bom": "^2.0.0" } }, "detect-indent": { @@ -469,7 +611,7 @@ "bundled": true, "dev": true, "requires": { - "repeating": "2.0.1" + "repeating": "^2.0.0" } }, "error-ex": { @@ -477,7 +619,7 @@ "bundled": true, "dev": true, "requires": { - "is-arrayish": "0.2.1" + "is-arrayish": "^0.2.1" } }, "escape-string-regexp": { @@ -495,13 +637,13 @@ "bundled": true, "dev": true, "requires": { - "cross-spawn": "5.1.0", - "get-stream": "3.0.0", - "is-stream": "1.1.0", - "npm-run-path": "2.0.2", - "p-finally": "1.0.0", - "signal-exit": "3.0.2", - "strip-eof": "1.0.0" + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" }, "dependencies": { "cross-spawn": { @@ -509,9 +651,9 @@ "bundled": true, "dev": true, "requires": { - "lru-cache": "4.1.1", - "shebang-command": "1.2.0", - "which": "1.3.0" + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" } } } @@ -521,7 +663,7 @@ "bundled": true, "dev": true, "requires": { - "is-posix-bracket": "0.1.1" + "is-posix-bracket": "^0.1.0" } }, "expand-range": { @@ -529,7 +671,7 @@ "bundled": true, "dev": true, "requires": { - "fill-range": "2.2.3" + "fill-range": "^2.1.0" } }, "extglob": { @@ -537,7 +679,7 @@ "bundled": true, "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } }, "filename-regex": { @@ -550,11 +692,11 @@ "bundled": true, "dev": true, "requires": { - "is-number": "2.1.0", - "isobject": "2.1.0", - "randomatic": "1.1.7", - "repeat-element": "1.1.2", - "repeat-string": "1.6.1" + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^1.1.3", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" } }, "find-cache-dir": { @@ -562,9 +704,9 @@ "bundled": true, "dev": true, "requires": { - "commondir": "1.0.1", - "mkdirp": "0.5.1", - "pkg-dir": "1.0.0" + "commondir": "^1.0.1", + "mkdirp": "^0.5.1", + "pkg-dir": "^1.0.0" } }, "find-up": { @@ -572,7 +714,7 @@ "bundled": true, "dev": true, "requires": { - "locate-path": "2.0.0" + "locate-path": "^2.0.0" } }, "for-in": { @@ -585,7 +727,7 @@ "bundled": true, "dev": true, "requires": { - "for-in": "1.0.2" + "for-in": "^1.0.1" } }, "foreground-child": { @@ -593,8 +735,8 @@ "bundled": true, "dev": true, "requires": { - "cross-spawn": "4.0.2", - "signal-exit": "3.0.2" + "cross-spawn": "^4", + "signal-exit": "^3.0.0" } }, "fs.realpath": { @@ -617,12 +759,12 @@ "bundled": true, "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "glob-base": { @@ -630,8 +772,8 @@ "bundled": true, "dev": true, "requires": { - "glob-parent": "2.0.0", - "is-glob": "2.0.1" + "glob-parent": "^2.0.0", + "is-glob": "^2.0.0" } }, "glob-parent": { @@ -639,7 +781,7 @@ "bundled": true, "dev": true, "requires": { - "is-glob": "2.0.1" + "is-glob": "^2.0.0" } }, "globals": { @@ -657,10 +799,10 @@ "bundled": true, "dev": true, "requires": { - "async": "1.5.2", - "optimist": "0.6.1", - "source-map": "0.4.4", - "uglify-js": "2.8.29" + "async": "^1.4.0", + "optimist": "^0.6.1", + "source-map": "^0.4.4", + "uglify-js": "^2.6" }, "dependencies": { "source-map": { @@ -668,7 +810,7 @@ "bundled": true, "dev": true, "requires": { - "amdefine": "1.0.1" + "amdefine": ">=0.0.4" } } } @@ -678,7 +820,7 @@ "bundled": true, "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "has-flag": { @@ -701,8 +843,8 @@ "bundled": true, "dev": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { @@ -715,7 +857,7 @@ "bundled": true, "dev": true, "requires": { - "loose-envify": "1.3.1" + "loose-envify": "^1.0.0" } }, "invert-kv": { @@ -738,7 +880,7 @@ "bundled": true, "dev": true, "requires": { - "builtin-modules": "1.1.1" + "builtin-modules": "^1.0.0" } }, "is-dotfile": { @@ -751,7 +893,7 @@ "bundled": true, "dev": true, "requires": { - "is-primitive": "2.0.0" + "is-primitive": "^2.0.0" } }, "is-extendable": { @@ -769,7 +911,7 @@ "bundled": true, "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "is-fullwidth-code-point": { @@ -777,7 +919,7 @@ "bundled": true, "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "is-glob": { @@ -785,7 +927,7 @@ "bundled": true, "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } }, "is-number": { @@ -793,7 +935,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" } }, "is-posix-bracket": { @@ -844,7 +986,7 @@ "bundled": true, "dev": true, "requires": { - "append-transform": "0.4.0" + "append-transform": "^0.4.0" } }, "istanbul-lib-instrument": { @@ -852,13 +994,13 @@ "bundled": true, "dev": true, "requires": { - "babel-generator": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "istanbul-lib-coverage": "1.1.1", - "semver": "5.4.1" + "babel-generator": "^6.18.0", + "babel-template": "^6.16.0", + "babel-traverse": "^6.18.0", + "babel-types": "^6.18.0", + "babylon": "^6.18.0", + "istanbul-lib-coverage": "^1.1.1", + "semver": "^5.3.0" } }, "istanbul-lib-report": { @@ -866,10 +1008,10 @@ "bundled": true, "dev": true, "requires": { - "istanbul-lib-coverage": "1.1.1", - "mkdirp": "0.5.1", - "path-parse": "1.0.5", - "supports-color": "3.2.3" + "istanbul-lib-coverage": "^1.1.1", + "mkdirp": "^0.5.1", + "path-parse": "^1.0.5", + "supports-color": "^3.1.2" }, "dependencies": { "supports-color": { @@ -877,7 +1019,7 @@ "bundled": true, "dev": true, "requires": { - "has-flag": "1.0.0" + "has-flag": "^1.0.0" } } } @@ -887,11 +1029,11 @@ "bundled": true, "dev": true, "requires": { - "debug": "3.1.0", - "istanbul-lib-coverage": "1.1.1", - "mkdirp": "0.5.1", - "rimraf": "2.6.2", - "source-map": "0.5.7" + "debug": "^3.1.0", + "istanbul-lib-coverage": "^1.1.1", + "mkdirp": "^0.5.1", + "rimraf": "^2.6.1", + "source-map": "^0.5.3" }, "dependencies": { "debug": { @@ -909,7 +1051,7 @@ "bundled": true, "dev": true, "requires": { - "handlebars": "4.0.11" + "handlebars": "^4.0.3" } }, "js-tokens": { @@ -927,7 +1069,7 @@ "bundled": true, "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } }, "lazy-cache": { @@ -941,7 +1083,7 @@ "bundled": true, "dev": true, "requires": { - "invert-kv": "1.0.0" + "invert-kv": "^1.0.0" } }, "load-json-file": { @@ -949,11 +1091,11 @@ "bundled": true, "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", - "strip-bom": "2.0.0" + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" } }, "locate-path": { @@ -961,8 +1103,8 @@ "bundled": true, "dev": true, "requires": { - "p-locate": "2.0.0", - "path-exists": "3.0.0" + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" }, "dependencies": { "path-exists": { @@ -987,7 +1129,7 @@ "bundled": true, "dev": true, "requires": { - "js-tokens": "3.0.2" + "js-tokens": "^3.0.0" } }, "lru-cache": { @@ -995,8 +1137,8 @@ "bundled": true, "dev": true, "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" } }, "md5-hex": { @@ -1004,7 +1146,7 @@ "bundled": true, "dev": true, "requires": { - "md5-o-matic": "0.1.1" + "md5-o-matic": "^0.1.1" } }, "md5-o-matic": { @@ -1017,7 +1159,7 @@ "bundled": true, "dev": true, "requires": { - "mimic-fn": "1.1.0" + "mimic-fn": "^1.0.0" } }, "merge-source-map": { @@ -1025,7 +1167,7 @@ "bundled": true, "dev": true, "requires": { - "source-map": "0.5.7" + "source-map": "^0.5.6" } }, "micromatch": { @@ -1033,19 +1175,19 @@ "bundled": true, "dev": true, "requires": { - "arr-diff": "2.0.0", - "array-unique": "0.2.1", - "braces": "1.8.5", - "expand-brackets": "0.1.5", - "extglob": "0.3.2", - "filename-regex": "2.0.1", - "is-extglob": "1.0.0", - "is-glob": "2.0.1", - "kind-of": "3.2.2", - "normalize-path": "2.1.1", - "object.omit": "2.0.1", - "parse-glob": "3.0.4", - "regex-cache": "0.4.4" + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" } }, "mimic-fn": { @@ -1058,7 +1200,7 @@ "bundled": true, "dev": true, "requires": { - "brace-expansion": "1.1.8" + "brace-expansion": "^1.1.7" } }, "minimist": { @@ -1084,10 +1226,10 @@ "bundled": true, "dev": true, "requires": { - "hosted-git-info": "2.5.0", - "is-builtin-module": "1.0.0", - "semver": "5.4.1", - "validate-npm-package-license": "3.0.1" + "hosted-git-info": "^2.1.4", + "is-builtin-module": "^1.0.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" } }, "normalize-path": { @@ -1095,7 +1237,7 @@ "bundled": true, "dev": true, "requires": { - "remove-trailing-separator": "1.1.0" + "remove-trailing-separator": "^1.0.1" } }, "npm-run-path": { @@ -1103,7 +1245,7 @@ "bundled": true, "dev": true, "requires": { - "path-key": "2.0.1" + "path-key": "^2.0.0" } }, "number-is-nan": { @@ -1121,8 +1263,8 @@ "bundled": true, "dev": true, "requires": { - "for-own": "0.1.5", - "is-extendable": "0.1.1" + "for-own": "^0.1.4", + "is-extendable": "^0.1.1" } }, "once": { @@ -1130,7 +1272,7 @@ "bundled": true, "dev": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "optimist": { @@ -1138,8 +1280,8 @@ "bundled": true, "dev": true, "requires": { - "minimist": "0.0.8", - "wordwrap": "0.0.3" + "minimist": "~0.0.1", + "wordwrap": "~0.0.2" } }, "os-homedir": { @@ -1152,9 +1294,9 @@ "bundled": true, "dev": true, "requires": { - "execa": "0.7.0", - "lcid": "1.0.0", - "mem": "1.1.0" + "execa": "^0.7.0", + "lcid": "^1.0.0", + "mem": "^1.1.0" } }, "p-finally": { @@ -1172,7 +1314,7 @@ "bundled": true, "dev": true, "requires": { - "p-limit": "1.1.0" + "p-limit": "^1.1.0" } }, "parse-glob": { @@ -1180,10 +1322,10 @@ "bundled": true, "dev": true, "requires": { - "glob-base": "0.3.0", - "is-dotfile": "1.0.3", - "is-extglob": "1.0.0", - "is-glob": "2.0.1" + "glob-base": "^0.3.0", + "is-dotfile": "^1.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.0" } }, "parse-json": { @@ -1191,7 +1333,7 @@ "bundled": true, "dev": true, "requires": { - "error-ex": "1.3.1" + "error-ex": "^1.2.0" } }, "path-exists": { @@ -1199,7 +1341,7 @@ "bundled": true, "dev": true, "requires": { - "pinkie-promise": "2.0.1" + "pinkie-promise": "^2.0.0" } }, "path-is-absolute": { @@ -1222,9 +1364,9 @@ "bundled": true, "dev": true, "requires": { - "graceful-fs": "4.1.11", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "pify": { @@ -1242,7 +1384,7 @@ "bundled": true, "dev": true, "requires": { - "pinkie": "2.0.4" + "pinkie": "^2.0.0" } }, "pkg-dir": { @@ -1250,7 +1392,7 @@ "bundled": true, "dev": true, "requires": { - "find-up": "1.1.2" + "find-up": "^1.0.0" }, "dependencies": { "find-up": { @@ -1258,8 +1400,8 @@ "bundled": true, "dev": true, "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" } } } @@ -1279,8 +1421,8 @@ "bundled": true, "dev": true, "requires": { - "is-number": "3.0.0", - "kind-of": "4.0.0" + "is-number": "^3.0.0", + "kind-of": "^4.0.0" }, "dependencies": { "is-number": { @@ -1288,7 +1430,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" }, "dependencies": { "kind-of": { @@ -1296,7 +1438,7 @@ "bundled": true, "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -1306,7 +1448,7 @@ "bundled": true, "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -1316,9 +1458,9 @@ "bundled": true, "dev": true, "requires": { - "load-json-file": "1.1.0", - "normalize-package-data": "2.4.0", - "path-type": "1.1.0" + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" } }, "read-pkg-up": { @@ -1326,8 +1468,8 @@ "bundled": true, "dev": true, "requires": { - "find-up": "1.1.2", - "read-pkg": "1.1.0" + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" }, "dependencies": { "find-up": { @@ -1335,8 +1477,8 @@ "bundled": true, "dev": true, "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" } } } @@ -1351,7 +1493,7 @@ "bundled": true, "dev": true, "requires": { - "is-equal-shallow": "0.1.3" + "is-equal-shallow": "^0.1.3" } }, "remove-trailing-separator": { @@ -1374,7 +1516,7 @@ "bundled": true, "dev": true, "requires": { - "is-finite": "1.0.2" + "is-finite": "^1.0.0" } }, "require-directory": { @@ -1398,7 +1540,7 @@ "dev": true, "optional": true, "requires": { - "align-text": "0.1.4" + "align-text": "^0.1.1" } }, "rimraf": { @@ -1406,7 +1548,7 @@ "bundled": true, "dev": true, "requires": { - "glob": "7.1.2" + "glob": "^7.0.5" } }, "semver": { @@ -1424,7 +1566,7 @@ "bundled": true, "dev": true, "requires": { - "shebang-regex": "1.0.0" + "shebang-regex": "^1.0.0" } }, "shebang-regex": { @@ -1452,12 +1594,12 @@ "bundled": true, "dev": true, "requires": { - "foreground-child": "1.5.6", - "mkdirp": "0.5.1", - "os-homedir": "1.0.2", - "rimraf": "2.6.2", - "signal-exit": "3.0.2", - "which": "1.3.0" + "foreground-child": "^1.5.6", + "mkdirp": "^0.5.0", + "os-homedir": "^1.0.1", + "rimraf": "^2.6.2", + "signal-exit": "^3.0.2", + "which": "^1.3.0" } }, "spdx-correct": { @@ -1465,7 +1607,7 @@ "bundled": true, "dev": true, "requires": { - "spdx-license-ids": "1.2.2" + "spdx-license-ids": "^1.0.2" } }, "spdx-expression-parse": { @@ -1483,8 +1625,8 @@ "bundled": true, "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" }, "dependencies": { "ansi-regex": { @@ -1502,7 +1644,7 @@ "bundled": true, "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -1512,7 +1654,7 @@ "bundled": true, "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "strip-bom": { @@ -1520,7 +1662,7 @@ "bundled": true, "dev": true, "requires": { - "is-utf8": "0.2.1" + "is-utf8": "^0.2.0" } }, "strip-eof": { @@ -1538,11 +1680,11 @@ "bundled": true, "dev": true, "requires": { - "arrify": "1.0.1", - "micromatch": "2.3.11", - "object-assign": "4.1.1", - "read-pkg-up": "1.0.1", - "require-main-filename": "1.0.1" + "arrify": "^1.0.1", + "micromatch": "^2.3.11", + "object-assign": "^4.1.0", + "read-pkg-up": "^1.0.1", + "require-main-filename": "^1.0.1" } }, "to-fast-properties": { @@ -1561,9 +1703,9 @@ "dev": true, "optional": true, "requires": { - "source-map": "0.5.7", - "uglify-to-browserify": "1.0.2", - "yargs": "3.10.0" + "source-map": "~0.5.1", + "uglify-to-browserify": "~1.0.0", + "yargs": "~3.10.0" }, "dependencies": { "yargs": { @@ -1572,9 +1714,9 @@ "dev": true, "optional": true, "requires": { - "camelcase": "1.2.1", - "cliui": "2.1.0", - "decamelize": "1.2.0", + "camelcase": "^1.0.2", + "cliui": "^2.1.0", + "decamelize": "^1.0.0", "window-size": "0.1.0" } } @@ -1591,8 +1733,8 @@ "bundled": true, "dev": true, "requires": { - "spdx-correct": "1.0.2", - "spdx-expression-parse": "1.0.4" + "spdx-correct": "~1.0.0", + "spdx-expression-parse": "~1.0.0" } }, "which": { @@ -1600,7 +1742,7 @@ "bundled": true, "dev": true, "requires": { - "isexe": "2.0.0" + "isexe": "^2.0.0" } }, "which-module": { @@ -1624,8 +1766,8 @@ "bundled": true, "dev": true, "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" }, "dependencies": { "string-width": { @@ -1633,9 +1775,9 @@ "bundled": true, "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } } } @@ -1650,9 +1792,9 @@ "bundled": true, "dev": true, "requires": { - "graceful-fs": "4.1.11", - "imurmurhash": "0.1.4", - "slide": "1.1.6" + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "slide": "^1.1.5" } }, "y18n": { @@ -1670,18 +1812,18 @@ "bundled": true, "dev": true, "requires": { - "cliui": "3.2.0", - "decamelize": "1.2.0", - "find-up": "2.1.0", - "get-caller-file": "1.0.2", - "os-locale": "2.1.0", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "2.1.1", - "which-module": "2.0.0", - "y18n": "3.2.1", - "yargs-parser": "8.0.0" + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "find-up": "^2.1.0", + "get-caller-file": "^1.0.1", + "os-locale": "^2.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^8.0.0" }, "dependencies": { "cliui": { @@ -1689,9 +1831,9 @@ "bundled": true, "dev": true, "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wrap-ansi": "2.1.0" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" }, "dependencies": { "string-width": { @@ -1699,9 +1841,9 @@ "bundled": true, "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } } } @@ -1713,7 +1855,7 @@ "bundled": true, "dev": true, "requires": { - "camelcase": "4.1.0" + "camelcase": "^4.1.0" }, "dependencies": { "camelcase": { @@ -1731,9 +1873,9 @@ "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", "dev": true, "requires": { - "execa": "0.7.0", - "lcid": "1.0.0", - "mem": "1.1.0" + "execa": "^0.7.0", + "lcid": "^1.0.0", + "mem": "^1.1.0" } }, "string-width": { @@ -1742,8 +1884,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -1752,7 +1894,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } }, "yargs": { @@ -1761,18 +1903,18 @@ "integrity": "sha512-Rjp+lMYQOWtgqojx1dEWorjCofi1YN7AoFvYV7b1gx/7dAAeuI4kN5SZiEvr0ZmsZTOpDRcCqrpI10L31tFkBw==", "dev": true, "requires": { - "cliui": "4.1.0", - "decamelize": "1.2.0", - "find-up": "2.1.0", - "get-caller-file": "1.0.2", - "os-locale": "2.1.0", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "2.1.1", - "which-module": "2.0.0", - "y18n": "3.2.1", - "yargs-parser": "9.0.2" + "cliui": "^4.0.0", + "decamelize": "^1.1.1", + "find-up": "^2.1.0", + "get-caller-file": "^1.0.1", + "os-locale": "^2.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^9.0.2" } } } @@ -1783,10 +1925,10 @@ "integrity": "sha512-weIbJqTMfQ4r1YX85u54DKfjLZs2jwn1XZ6tIOP/pFgMwhIN5BAtaCp/1wn9DzyLsDR9tW0R2NIePcVJ45ivQQ==", "dev": true, "requires": { - "chalk": "0.4.0", - "date-time": "0.1.1", - "pretty-ms": "0.2.2", - "text-table": "0.2.0" + "chalk": "^0.4.0", + "date-time": "^0.1.1", + "pretty-ms": "^0.2.1", + "text-table": "^0.2.0" }, "dependencies": { "ansi-styles": { @@ -1801,9 +1943,9 @@ "integrity": "sha1-UZmj3c0MHv4jvAjBsCewYXbgxk8=", "dev": true, "requires": { - "ansi-styles": "1.0.0", - "has-color": "0.1.7", - "strip-ansi": "0.1.1" + "ansi-styles": "~1.0.0", + "has-color": "~0.1.0", + "strip-ansi": "~0.1.0" } }, "pretty-ms": { @@ -1812,7 +1954,7 @@ "integrity": "sha1-2oeaaC/zOjcBEEbxPWJ/Z8c7hPY=", "dev": true, "requires": { - "parse-ms": "0.1.2" + "parse-ms": "^0.1.0" } }, "strip-ansi": { @@ -1828,8 +1970,8 @@ "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", "integrity": "sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g==", "requires": { - "call-me-maybe": "1.0.1", - "glob-to-regexp": "0.3.0" + "call-me-maybe": "^1.0.1", + "glob-to-regexp": "^0.3.0" } }, "@nodelib/fs.stat": { @@ -1862,8 +2004,8 @@ "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", "requires": { - "@protobufjs/aspromise": "1.1.2", - "@protobufjs/inquire": "1.1.0" + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" } }, "@protobufjs/float": { @@ -1927,18 +2069,18 @@ "integrity": "sha1-8u4fMiipDurRJF+asZIusucdM2s=" }, "acorn-jsx": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-3.0.1.tgz", - "integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-4.1.1.tgz", + "integrity": "sha512-JY+iV6r+cO21KtntVvFkD+iqjtdpRUpGqKWgfkCdZq1R+kbreEl8EcdcJR4SmiIgsIQT33s6QzheQ9a275Q8xw==", "dev": true, "requires": { - "acorn": "3.3.0" + "acorn": "^5.0.3" }, "dependencies": { "acorn": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz", - "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", + "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==", "dev": true } } @@ -1948,16 +2090,16 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", "requires": { - "co": "4.6.0", - "fast-deep-equal": "1.1.0", - "fast-json-stable-stringify": "2.0.0", - "json-schema-traverse": "0.3.1" + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" } }, "ajv-keywords": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.1.tgz", - "integrity": "sha1-YXmX/F9gV2iUxDX5QNgZ4TW4B2I=", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.2.0.tgz", + "integrity": "sha1-6GuBnGAs+IIa1jdBNpjx3sAhhHo=", "dev": true }, "align-text": { @@ -1966,9 +2108,9 @@ "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "dev": true, "requires": { - "kind-of": "3.2.2", - "longest": "1.0.1", - "repeat-string": "1.6.1" + "kind-of": "^3.0.2", + "longest": "^1.0.1", + "repeat-string": "^1.5.2" }, "dependencies": { "kind-of": { @@ -1977,7 +2119,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -1994,7 +2136,7 @@ "integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=", "dev": true, "requires": { - "string-width": "2.1.1" + "string-width": "^2.0.0" }, "dependencies": { "ansi-regex": { @@ -2015,8 +2157,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -2025,7 +2167,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -2047,7 +2189,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.1" + "color-convert": "^1.9.0" } }, "anymatch": { @@ -2056,8 +2198,8 @@ "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", "dev": true, "requires": { - "micromatch": "2.3.11", - "normalize-path": "2.1.1" + "micromatch": "^2.1.5", + "normalize-path": "^2.0.0" }, "dependencies": { "arr-diff": { @@ -2066,7 +2208,7 @@ "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", "dev": true, "requires": { - "arr-flatten": "1.1.0" + "arr-flatten": "^1.0.1" } }, "array-unique": { @@ -2081,9 +2223,9 @@ "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", "dev": true, "requires": { - "expand-range": "1.8.2", - "preserve": "0.2.0", - "repeat-element": "1.1.2" + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" } }, "expand-brackets": { @@ -2092,7 +2234,7 @@ "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", "dev": true, "requires": { - "is-posix-bracket": "0.1.1" + "is-posix-bracket": "^0.1.0" } }, "extglob": { @@ -2101,7 +2243,7 @@ "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } }, "is-extglob": { @@ -2116,7 +2258,7 @@ "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } }, "kind-of": { @@ -2125,7 +2267,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } }, "micromatch": { @@ -2134,19 +2276,19 @@ "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", "dev": true, "requires": { - "arr-diff": "2.0.0", - "array-unique": "0.2.1", - "braces": "1.8.5", - "expand-brackets": "0.1.5", - "extglob": "0.3.2", - "filename-regex": "2.0.1", - "is-extglob": "1.0.0", - "is-glob": "2.0.1", - "kind-of": "3.2.2", - "normalize-path": "2.1.1", - "object.omit": "2.0.1", - "parse-glob": "3.0.4", - "regex-cache": "0.4.4" + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" } } } @@ -2157,7 +2299,7 @@ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, "requires": { - "sprintf-js": "1.0.3" + "sprintf-js": "~1.0.2" } }, "argv": { @@ -2215,7 +2357,7 @@ "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", "requires": { - "array-uniq": "1.0.3" + "array-uniq": "^1.0.1" } }, "array-uniq": { @@ -2238,8 +2380,8 @@ "resolved": "https://registry.npmjs.org/ascli/-/ascli-1.0.1.tgz", "integrity": "sha1-vPpZdKYvGOgcq660lzKrSoj5Brw=", "requires": { - "colour": "0.7.1", - "optjs": "3.2.2" + "colour": "~0.7.1", + "optjs": "~3.2.2" } }, "asn1": { @@ -2262,7 +2404,7 @@ "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", "requires": { - "lodash": "4.17.10" + "lodash": "^4.17.10" } }, "async-each": { @@ -2293,89 +2435,89 @@ "integrity": "sha512-4lGNJCf6xL8SvsKVEKxEE46se7JAUIAZoKHw9itTQuwcsydhpAMkBs5gOOiWiwt0JKNIuXWc2/r4r8ZdcNrBEw==", "dev": true, "requires": { - "@ava/babel-preset-stage-4": "1.1.0", - "@ava/babel-preset-transform-test-files": "3.0.0", - "@ava/write-file-atomic": "2.2.0", - "@concordance/react": "1.0.0", - "@ladjs/time-require": "0.1.4", - "ansi-escapes": "3.1.0", - "ansi-styles": "3.2.1", - "arr-flatten": "1.1.0", - "array-union": "1.0.2", - "array-uniq": "1.0.3", - "arrify": "1.0.1", - "auto-bind": "1.2.0", - "ava-init": "0.2.1", - "babel-core": "6.26.3", - "babel-generator": "6.26.1", - "babel-plugin-syntax-object-rest-spread": "6.13.0", - "bluebird": "3.5.1", - "caching-transform": "1.0.1", - "chalk": "2.4.1", - "chokidar": "1.7.0", - "clean-stack": "1.3.0", - "clean-yaml-object": "0.1.0", - "cli-cursor": "2.1.0", - "cli-spinners": "1.3.1", - "cli-truncate": "1.1.0", - "co-with-promise": "4.6.0", - "code-excerpt": "2.1.1", - "common-path-prefix": "1.0.0", - "concordance": "3.0.0", - "convert-source-map": "1.5.1", - "core-assert": "0.2.1", - "currently-unhandled": "0.4.1", - "debug": "3.1.0", - "dot-prop": "4.2.0", - "empower-core": "0.6.2", - "equal-length": "1.0.1", - "figures": "2.0.0", - "find-cache-dir": "1.0.0", - "fn-name": "2.0.1", - "get-port": "3.2.0", - "globby": "6.1.0", - "has-flag": "2.0.0", - "hullabaloo-config-manager": "1.1.1", - "ignore-by-default": "1.0.1", - "import-local": "0.1.1", - "indent-string": "3.2.0", - "is-ci": "1.1.0", - "is-generator-fn": "1.0.0", - "is-obj": "1.0.1", - "is-observable": "1.1.0", - "is-promise": "2.1.0", - "last-line-stream": "1.0.0", - "lodash.clonedeepwith": "4.5.0", - "lodash.debounce": "4.0.8", - "lodash.difference": "4.5.0", - "lodash.flatten": "4.4.0", - "loud-rejection": "1.6.0", - "make-dir": "1.3.0", - "matcher": "1.1.0", - "md5-hex": "2.0.0", - "meow": "3.7.0", - "ms": "2.0.0", - "multimatch": "2.1.0", - "observable-to-promise": "0.5.0", - "option-chain": "1.0.0", - "package-hash": "2.0.0", - "pkg-conf": "2.1.0", - "plur": "2.1.2", - "pretty-ms": "3.1.0", - "require-precompiled": "0.1.0", - "resolve-cwd": "2.0.0", - "safe-buffer": "5.1.2", - "semver": "5.5.0", - "slash": "1.0.0", - "source-map-support": "0.5.6", - "stack-utils": "1.0.1", - "strip-ansi": "4.0.0", - "strip-bom-buf": "1.0.0", - "supertap": "1.0.0", - "supports-color": "5.4.0", - "trim-off-newlines": "1.0.1", - "unique-temp-dir": "1.0.0", - "update-notifier": "2.5.0" + "@ava/babel-preset-stage-4": "^1.1.0", + "@ava/babel-preset-transform-test-files": "^3.0.0", + "@ava/write-file-atomic": "^2.2.0", + "@concordance/react": "^1.0.0", + "@ladjs/time-require": "^0.1.4", + "ansi-escapes": "^3.0.0", + "ansi-styles": "^3.1.0", + "arr-flatten": "^1.0.1", + "array-union": "^1.0.1", + "array-uniq": "^1.0.2", + "arrify": "^1.0.0", + "auto-bind": "^1.1.0", + "ava-init": "^0.2.0", + "babel-core": "^6.17.0", + "babel-generator": "^6.26.0", + "babel-plugin-syntax-object-rest-spread": "^6.13.0", + "bluebird": "^3.0.0", + "caching-transform": "^1.0.0", + "chalk": "^2.0.1", + "chokidar": "^1.4.2", + "clean-stack": "^1.1.1", + "clean-yaml-object": "^0.1.0", + "cli-cursor": "^2.1.0", + "cli-spinners": "^1.0.0", + "cli-truncate": "^1.0.0", + "co-with-promise": "^4.6.0", + "code-excerpt": "^2.1.1", + "common-path-prefix": "^1.0.0", + "concordance": "^3.0.0", + "convert-source-map": "^1.5.1", + "core-assert": "^0.2.0", + "currently-unhandled": "^0.4.1", + "debug": "^3.0.1", + "dot-prop": "^4.1.0", + "empower-core": "^0.6.1", + "equal-length": "^1.0.0", + "figures": "^2.0.0", + "find-cache-dir": "^1.0.0", + "fn-name": "^2.0.0", + "get-port": "^3.0.0", + "globby": "^6.0.0", + "has-flag": "^2.0.0", + "hullabaloo-config-manager": "^1.1.0", + "ignore-by-default": "^1.0.0", + "import-local": "^0.1.1", + "indent-string": "^3.0.0", + "is-ci": "^1.0.7", + "is-generator-fn": "^1.0.0", + "is-obj": "^1.0.0", + "is-observable": "^1.0.0", + "is-promise": "^2.1.0", + "last-line-stream": "^1.0.0", + "lodash.clonedeepwith": "^4.5.0", + "lodash.debounce": "^4.0.3", + "lodash.difference": "^4.3.0", + "lodash.flatten": "^4.2.0", + "loud-rejection": "^1.2.0", + "make-dir": "^1.0.0", + "matcher": "^1.0.0", + "md5-hex": "^2.0.0", + "meow": "^3.7.0", + "ms": "^2.0.0", + "multimatch": "^2.1.0", + "observable-to-promise": "^0.5.0", + "option-chain": "^1.0.0", + "package-hash": "^2.0.0", + "pkg-conf": "^2.0.0", + "plur": "^2.0.0", + "pretty-ms": "^3.0.0", + "require-precompiled": "^0.1.0", + "resolve-cwd": "^2.0.0", + "safe-buffer": "^5.1.1", + "semver": "^5.4.1", + "slash": "^1.0.0", + "source-map-support": "^0.5.0", + "stack-utils": "^1.0.1", + "strip-ansi": "^4.0.0", + "strip-bom-buf": "^1.0.0", + "supertap": "^1.0.0", + "supports-color": "^5.0.0", + "trim-off-newlines": "^1.0.1", + "unique-temp-dir": "^1.0.0", + "update-notifier": "^2.3.0" }, "dependencies": { "ansi-regex": { @@ -2399,11 +2541,11 @@ "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", "dev": true, "requires": { - "array-union": "1.0.2", - "glob": "7.1.2", - "object-assign": "4.1.1", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "array-union": "^1.0.1", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "pify": { @@ -2424,7 +2566,7 @@ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { - "pinkie": "2.0.4" + "pinkie": "^2.0.0" } }, "strip-ansi": { @@ -2433,7 +2575,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -2444,11 +2586,11 @@ "integrity": "sha512-lXwK5LM+2g1euDRqW1mcSX/tqzY1QU7EjKpqayFPPtNRmbSYZ8RzPO5tqluTToijmtjp2M+pNpVdbcHssC4glg==", "dev": true, "requires": { - "arr-exclude": "1.0.0", - "execa": "0.7.0", - "has-yarn": "1.0.0", - "read-pkg-up": "2.0.0", - "write-pkg": "3.1.0" + "arr-exclude": "^1.0.0", + "execa": "^0.7.0", + "has-yarn": "^1.0.0", + "read-pkg-up": "^2.0.0", + "write-pkg": "^3.1.0" } }, "aws-sign2": { @@ -2466,8 +2608,8 @@ "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", "requires": { - "follow-redirects": "1.5.0", - "is-buffer": "1.1.6" + "follow-redirects": "^1.3.0", + "is-buffer": "^1.1.5" } }, "babel-code-frame": { @@ -2476,9 +2618,9 @@ "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", "dev": true, "requires": { - "chalk": "1.1.3", - "esutils": "2.0.2", - "js-tokens": "3.0.2" + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" }, "dependencies": { "ansi-styles": { @@ -2493,11 +2635,11 @@ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" } }, "supports-color": { @@ -2514,25 +2656,25 @@ "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-generator": "6.26.1", - "babel-helpers": "6.24.1", - "babel-messages": "6.23.0", - "babel-register": "6.26.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "convert-source-map": "1.5.1", - "debug": "2.6.9", - "json5": "0.5.1", - "lodash": "4.17.10", - "minimatch": "3.0.4", - "path-is-absolute": "1.0.1", - "private": "0.1.8", - "slash": "1.0.0", - "source-map": "0.5.7" + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" } }, "babel-generator": { @@ -2541,14 +2683,14 @@ "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", "dev": true, "requires": { - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "detect-indent": "4.0.0", - "jsesc": "1.3.0", - "lodash": "4.17.10", - "source-map": "0.5.7", - "trim-right": "1.0.1" + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "detect-indent": "^4.0.0", + "jsesc": "^1.3.0", + "lodash": "^4.17.4", + "source-map": "^0.5.7", + "trim-right": "^1.0.1" }, "dependencies": { "jsesc": { @@ -2565,9 +2707,9 @@ "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", "dev": true, "requires": { - "babel-helper-explode-assignable-expression": "6.24.1", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-explode-assignable-expression": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-call-delegate": { @@ -2576,10 +2718,10 @@ "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", "dev": true, "requires": { - "babel-helper-hoist-variables": "6.24.1", - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-hoist-variables": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-explode-assignable-expression": { @@ -2588,9 +2730,9 @@ "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-function-name": { @@ -2599,11 +2741,11 @@ "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", "dev": true, "requires": { - "babel-helper-get-function-arity": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-get-function-arity": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-get-function-arity": { @@ -2612,8 +2754,8 @@ "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-hoist-variables": { @@ -2622,8 +2764,8 @@ "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-regex": { @@ -2632,9 +2774,9 @@ "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "lodash": "4.17.10" + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" } }, "babel-helper-remap-async-to-generator": { @@ -2643,11 +2785,11 @@ "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", "dev": true, "requires": { - "babel-helper-function-name": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helpers": { @@ -2656,8 +2798,8 @@ "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-messages": { @@ -2666,7 +2808,7 @@ "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-check-es2015-constants": { @@ -2675,7 +2817,7 @@ "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-espower": { @@ -2684,13 +2826,13 @@ "integrity": "sha512-/+SRpy7pKgTI28oEHfn1wkuM5QFAdRq8WNsOOih1dVrdV6A/WbNbRZyl0eX5eyDgtb0lOE27PeDFuCX2j8OxVg==", "dev": true, "requires": { - "babel-generator": "6.26.1", - "babylon": "6.18.0", - "call-matcher": "1.0.1", - "core-js": "2.5.6", - "espower-location-detector": "1.0.0", - "espurify": "1.8.0", - "estraverse": "4.2.0" + "babel-generator": "^6.1.0", + "babylon": "^6.1.0", + "call-matcher": "^1.0.0", + "core-js": "^2.0.0", + "espower-location-detector": "^1.0.0", + "espurify": "^1.6.0", + "estraverse": "^4.1.1" } }, "babel-plugin-syntax-async-functions": { @@ -2723,9 +2865,9 @@ "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", "dev": true, "requires": { - "babel-helper-remap-async-to-generator": "6.24.1", - "babel-plugin-syntax-async-functions": "6.13.0", - "babel-runtime": "6.26.0" + "babel-helper-remap-async-to-generator": "^6.24.1", + "babel-plugin-syntax-async-functions": "^6.8.0", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-destructuring": { @@ -2734,7 +2876,7 @@ "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-function-name": { @@ -2743,9 +2885,9 @@ "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", "dev": true, "requires": { - "babel-helper-function-name": "6.24.1", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-modules-commonjs": { @@ -2754,10 +2896,10 @@ "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", "dev": true, "requires": { - "babel-plugin-transform-strict-mode": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-types": "6.26.0" + "babel-plugin-transform-strict-mode": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-types": "^6.26.0" } }, "babel-plugin-transform-es2015-parameters": { @@ -2766,12 +2908,12 @@ "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", "dev": true, "requires": { - "babel-helper-call-delegate": "6.24.1", - "babel-helper-get-function-arity": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-call-delegate": "^6.24.1", + "babel-helper-get-function-arity": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-spread": { @@ -2780,7 +2922,7 @@ "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-sticky-regex": { @@ -2789,9 +2931,9 @@ "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", "dev": true, "requires": { - "babel-helper-regex": "6.26.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-regex": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-unicode-regex": { @@ -2800,9 +2942,9 @@ "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", "dev": true, "requires": { - "babel-helper-regex": "6.26.0", - "babel-runtime": "6.26.0", - "regexpu-core": "2.0.0" + "babel-helper-regex": "^6.24.1", + "babel-runtime": "^6.22.0", + "regexpu-core": "^2.0.0" } }, "babel-plugin-transform-exponentiation-operator": { @@ -2811,9 +2953,9 @@ "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", "dev": true, "requires": { - "babel-helper-builder-binary-assignment-operator-visitor": "6.24.1", - "babel-plugin-syntax-exponentiation-operator": "6.13.0", - "babel-runtime": "6.26.0" + "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", + "babel-plugin-syntax-exponentiation-operator": "^6.8.0", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-strict-mode": { @@ -2822,8 +2964,8 @@ "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-register": { @@ -2832,13 +2974,13 @@ "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", "dev": true, "requires": { - "babel-core": "6.26.3", - "babel-runtime": "6.26.0", - "core-js": "2.5.6", - "home-or-tmp": "2.0.0", - "lodash": "4.17.10", - "mkdirp": "0.5.1", - "source-map-support": "0.4.18" + "babel-core": "^6.26.0", + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "home-or-tmp": "^2.0.0", + "lodash": "^4.17.4", + "mkdirp": "^0.5.1", + "source-map-support": "^0.4.15" }, "dependencies": { "source-map-support": { @@ -2847,7 +2989,7 @@ "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", "dev": true, "requires": { - "source-map": "0.5.7" + "source-map": "^0.5.6" } } } @@ -2858,8 +3000,8 @@ "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "dev": true, "requires": { - "core-js": "2.5.6", - "regenerator-runtime": "0.11.1" + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" } }, "babel-template": { @@ -2868,11 +3010,11 @@ "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "lodash": "4.17.10" + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" } }, "babel-traverse": { @@ -2881,15 +3023,15 @@ "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "debug": "2.6.9", - "globals": "9.18.0", - "invariant": "2.2.4", - "lodash": "4.17.10" + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" } }, "babel-types": { @@ -2898,10 +3040,10 @@ "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "esutils": "2.0.2", - "lodash": "4.17.10", - "to-fast-properties": "1.0.3" + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" } }, "babylon": { @@ -2920,13 +3062,13 @@ "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", "requires": { - "cache-base": "1.0.1", - "class-utils": "0.3.6", - "component-emitter": "1.2.1", - "define-property": "1.0.0", - "isobject": "3.0.1", - "mixin-deep": "1.3.1", - "pascalcase": "0.1.1" + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" }, "dependencies": { "define-property": { @@ -2934,7 +3076,7 @@ "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "requires": { - "is-descriptor": "1.0.2" + "is-descriptor": "^1.0.0" } }, "is-accessor-descriptor": { @@ -2942,7 +3084,7 @@ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -2950,7 +3092,7 @@ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -2958,9 +3100,9 @@ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } } } @@ -2971,7 +3113,7 @@ "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", "optional": true, "requires": { - "tweetnacl": "0.14.5" + "tweetnacl": "^0.14.3" } }, "binary-extensions": { @@ -2992,13 +3134,13 @@ "integrity": "sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==", "dev": true, "requires": { - "ansi-align": "2.0.0", - "camelcase": "4.1.0", - "chalk": "2.4.1", - "cli-boxes": "1.0.0", - "string-width": "2.1.1", - "term-size": "1.2.0", - "widest-line": "2.0.0" + "ansi-align": "^2.0.0", + "camelcase": "^4.0.0", + "chalk": "^2.0.1", + "cli-boxes": "^1.0.0", + "string-width": "^2.0.0", + "term-size": "^1.2.0", + "widest-line": "^2.0.0" }, "dependencies": { "ansi-regex": { @@ -3025,8 +3167,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -3035,7 +3177,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -3045,7 +3187,7 @@ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, @@ -3054,16 +3196,16 @@ "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", "requires": { - "arr-flatten": "1.1.0", - "array-unique": "0.3.2", - "extend-shallow": "2.0.1", - "fill-range": "4.0.0", - "isobject": "3.0.1", - "repeat-element": "1.1.2", - "snapdragon": "0.8.2", - "snapdragon-node": "2.1.1", - "split-string": "3.1.0", - "to-regex": "3.0.2" + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" }, "dependencies": { "extend-shallow": { @@ -3071,7 +3213,7 @@ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -3110,7 +3252,7 @@ "resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz", "integrity": "sha1-WC7qSxqHO20CCkjVjfhfC7ps/d0=", "requires": { - "long": "3.2.0" + "long": "~3" }, "dependencies": { "long": { @@ -3125,15 +3267,15 @@ "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", "requires": { - "collection-visit": "1.0.0", - "component-emitter": "1.2.1", - "get-value": "2.0.6", - "has-value": "1.0.0", - "isobject": "3.0.1", - "set-value": "2.0.0", - "to-object-path": "0.3.0", - "union-value": "1.0.0", - "unset-value": "1.0.0" + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" } }, "cacheable-request": { @@ -3165,9 +3307,9 @@ "integrity": "sha1-bb2y8g+Nj7znnz6U6dF0Lc31wKE=", "dev": true, "requires": { - "md5-hex": "1.3.0", - "mkdirp": "0.5.1", - "write-file-atomic": "1.3.4" + "md5-hex": "^1.2.0", + "mkdirp": "^0.5.1", + "write-file-atomic": "^1.1.4" }, "dependencies": { "md5-hex": { @@ -3176,7 +3318,7 @@ "integrity": "sha1-0sSv6YPENwZiF5uMrRRSGRNQRsQ=", "dev": true, "requires": { - "md5-o-matic": "0.1.1" + "md5-o-matic": "^0.1.1" } }, "write-file-atomic": { @@ -3185,9 +3327,9 @@ "integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "imurmurhash": "0.1.4", - "slide": "1.1.6" + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "slide": "^1.1.5" } } } @@ -3198,10 +3340,10 @@ "integrity": "sha1-UTTQd5hPcSpU2tPL9i3ijc5BbKg=", "dev": true, "requires": { - "core-js": "2.5.6", - "deep-equal": "1.0.1", - "espurify": "1.8.0", - "estraverse": "4.2.0" + "core-js": "^2.0.0", + "deep-equal": "^1.0.0", + "espurify": "^1.6.0", + "estraverse": "^4.0.0" } }, "call-me-maybe": { @@ -3220,7 +3362,7 @@ "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", "dev": true, "requires": { - "callsites": "0.2.0" + "callsites": "^0.2.0" } }, "callsites": { @@ -3240,8 +3382,8 @@ "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", "dev": true, "requires": { - "camelcase": "2.1.1", - "map-obj": "1.0.1" + "camelcase": "^2.0.0", + "map-obj": "^1.0.0" } }, "capture-stack-trace": { @@ -3261,7 +3403,7 @@ "integrity": "sha1-mMyJDKZS3S7w5ws3klMQ/56Q/Is=", "dev": true, "requires": { - "underscore-contrib": "0.3.0" + "underscore-contrib": "~0.3.0" } }, "center-align": { @@ -3271,8 +3413,8 @@ "dev": true, "optional": true, "requires": { - "align-text": "0.1.4", - "lazy-cache": "1.0.4" + "align-text": "^0.1.3", + "lazy-cache": "^1.0.3" } }, "chalk": { @@ -3281,9 +3423,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "chardet": { @@ -3298,15 +3440,15 @@ "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", "dev": true, "requires": { - "anymatch": "1.3.2", - "async-each": "1.0.1", - "fsevents": "1.2.4", - "glob-parent": "2.0.0", - "inherits": "2.0.3", - "is-binary-path": "1.0.1", - "is-glob": "2.0.1", - "path-is-absolute": "1.0.1", - "readdirp": "2.1.0" + "anymatch": "^1.3.0", + "async-each": "^1.0.0", + "fsevents": "^1.0.0", + "glob-parent": "^2.0.0", + "inherits": "^2.0.1", + "is-binary-path": "^1.0.0", + "is-glob": "^2.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.0.0" }, "dependencies": { "glob-parent": { @@ -3315,7 +3457,7 @@ "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", "dev": true, "requires": { - "is-glob": "2.0.1" + "is-glob": "^2.0.0" } }, "is-extglob": { @@ -3330,7 +3472,7 @@ "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } } } @@ -3352,10 +3494,10 @@ "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", "requires": { - "arr-union": "3.1.0", - "define-property": "0.2.5", - "isobject": "3.0.1", - "static-extend": "0.1.2" + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" }, "dependencies": { "define-property": { @@ -3363,7 +3505,7 @@ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } } } @@ -3392,7 +3534,7 @@ "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", "dev": true, "requires": { - "restore-cursor": "2.0.0" + "restore-cursor": "^2.0.0" } }, "cli-spinners": { @@ -3407,8 +3549,8 @@ "integrity": "sha512-bAtZo0u82gCfaAGfSNxUdTI9mNyza7D8w4CVCcaOsy7sgwDzvx6ekr6cuWJqY3UGzgnQ1+4wgENup5eIhgxEYA==", "dev": true, "requires": { - "slice-ansi": "1.0.0", - "string-width": "2.1.1" + "slice-ansi": "^1.0.0", + "string-width": "^2.0.0" }, "dependencies": { "ansi-regex": { @@ -3429,8 +3571,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -3439,7 +3581,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -3455,9 +3597,9 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wrap-ansi": "2.1.0" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" } }, "clone-response": { @@ -3466,7 +3608,7 @@ "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", "dev": true, "requires": { - "mimic-response": "1.0.0" + "mimic-response": "^1.0.0" } }, "co": { @@ -3480,7 +3622,7 @@ "integrity": "sha1-QT59tvWJOmC5Qs9JLEvsk9tBWrc=", "dev": true, "requires": { - "pinkie-promise": "1.0.0" + "pinkie-promise": "^1.0.0" } }, "code-excerpt": { @@ -3489,7 +3631,7 @@ "integrity": "sha512-tJLhH3EpFm/1x7heIW0hemXJTUU5EWl2V0EIX558jp05Mt1U6DVryCgkp3l37cxqs+DNbNgxG43SkwJXpQ14Jw==", "dev": true, "requires": { - "convert-to-spaces": "1.0.2" + "convert-to-spaces": "^1.0.1" } }, "code-point-at": { @@ -3504,7 +3646,7 @@ "dev": true, "requires": { "argv": "0.0.2", - "request": "2.87.0", + "request": "^2.81.0", "urlgrey": "0.4.4" } }, @@ -3513,8 +3655,8 @@ "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", "requires": { - "map-visit": "1.0.0", - "object-visit": "1.0.1" + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" } }, "color-convert": { @@ -3523,7 +3665,7 @@ "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", "dev": true, "requires": { - "color-name": "1.1.3" + "color-name": "^1.1.1" } }, "color-name": { @@ -3548,7 +3690,7 @@ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", "requires": { - "delayed-stream": "1.0.0" + "delayed-stream": "~1.0.0" } }, "commander": { @@ -3579,35 +3721,23 @@ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, - "concat-stream": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", - "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", - "dev": true, - "requires": { - "buffer-from": "1.0.0", - "inherits": "2.0.3", - "readable-stream": "2.3.6", - "typedarray": "0.0.6" - } - }, "concordance": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/concordance/-/concordance-3.0.0.tgz", "integrity": "sha512-CZBzJ3/l5QJjlZM20WY7+5GP5pMTw+1UEbThcpMw8/rojsi5sBCiD8ZbBLtD+jYpRGAkwuKuqk108c154V9eyQ==", "dev": true, "requires": { - "date-time": "2.1.0", - "esutils": "2.0.2", - "fast-diff": "1.1.2", - "function-name-support": "0.2.0", - "js-string-escape": "1.0.1", - "lodash.clonedeep": "4.5.0", - "lodash.flattendeep": "4.4.0", - "lodash.merge": "4.6.1", - "md5-hex": "2.0.0", - "semver": "5.5.0", - "well-known-symbols": "1.0.0" + "date-time": "^2.1.0", + "esutils": "^2.0.2", + "fast-diff": "^1.1.1", + "function-name-support": "^0.2.0", + "js-string-escape": "^1.0.1", + "lodash.clonedeep": "^4.5.0", + "lodash.flattendeep": "^4.4.0", + "lodash.merge": "^4.6.0", + "md5-hex": "^2.0.0", + "semver": "^5.3.0", + "well-known-symbols": "^1.0.0" }, "dependencies": { "date-time": { @@ -3616,7 +3746,7 @@ "integrity": "sha512-/9+C44X7lot0IeiyfgJmETtRMhBidBYM2QFFIkGa0U1k+hSyY87Nw7PY3eDqpvCBm7I3WCSfPeZskW/YYq6m4g==", "dev": true, "requires": { - "time-zone": "1.0.0" + "time-zone": "^1.0.0" } } } @@ -3627,12 +3757,12 @@ "integrity": "sha512-vtv5HtGjcYUgFrXc6Kx747B83MRRVS5R1VTEQoXvuP+kMI+if6uywV0nDGoiydJRy4yk7h9od5Og0kxx4zUXmw==", "dev": true, "requires": { - "dot-prop": "4.2.0", - "graceful-fs": "4.1.11", - "make-dir": "1.3.0", - "unique-string": "1.0.0", - "write-file-atomic": "2.3.0", - "xdg-basedir": "3.0.0" + "dot-prop": "^4.1.0", + "graceful-fs": "^4.1.2", + "make-dir": "^1.0.0", + "unique-string": "^1.0.0", + "write-file-atomic": "^2.0.0", + "xdg-basedir": "^3.0.0" } }, "convert-source-map": { @@ -3664,8 +3794,8 @@ "integrity": "sha1-+F4s+b/tKPdzzIs/pcW2m9wC/j8=", "dev": true, "requires": { - "buf-compare": "1.0.1", - "is-error": "2.2.1" + "buf-compare": "^1.0.0", + "is-error": "^2.2.0" } }, "core-js": { @@ -3684,7 +3814,7 @@ "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", "dev": true, "requires": { - "capture-stack-trace": "1.0.0" + "capture-stack-trace": "^1.0.0" } }, "cross-spawn": { @@ -3693,9 +3823,9 @@ "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", "dev": true, "requires": { - "lru-cache": "4.1.3", - "shebang-command": "1.2.0", - "which": "1.3.0" + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" } }, "crypto-random-string": { @@ -3710,7 +3840,7 @@ "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", "dev": true, "requires": { - "array-find-index": "1.0.2" + "array-find-index": "^1.0.1" } }, "d": { @@ -3719,7 +3849,7 @@ "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "dev": true, "requires": { - "es5-ext": "0.10.42" + "es5-ext": "^0.10.9" } }, "dashdash": { @@ -3727,7 +3857,7 @@ "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "requires": { - "assert-plus": "1.0.0" + "assert-plus": "^1.0.0" } }, "date-time": { @@ -3760,7 +3890,7 @@ "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", "dev": true, "requires": { - "mimic-response": "1.0.0" + "mimic-response": "^1.0.0" } }, "deep-equal": { @@ -3786,8 +3916,8 @@ "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", "requires": { - "foreach": "2.0.5", - "object-keys": "1.0.11" + "foreach": "^2.0.5", + "object-keys": "^1.0.8" } }, "define-property": { @@ -3795,8 +3925,8 @@ "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", "requires": { - "is-descriptor": "1.0.2", - "isobject": "3.0.1" + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" }, "dependencies": { "is-accessor-descriptor": { @@ -3804,7 +3934,7 @@ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -3812,7 +3942,7 @@ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -3820,9 +3950,9 @@ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } } } @@ -3833,13 +3963,13 @@ "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", "dev": true, "requires": { - "globby": "5.0.0", - "is-path-cwd": "1.0.0", - "is-path-in-cwd": "1.0.1", - "object-assign": "4.1.1", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", - "rimraf": "2.6.2" + "globby": "^5.0.0", + "is-path-cwd": "^1.0.0", + "is-path-in-cwd": "^1.0.0", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "rimraf": "^2.2.8" }, "dependencies": { "globby": { @@ -3848,12 +3978,12 @@ "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", "dev": true, "requires": { - "array-union": "1.0.2", - "arrify": "1.0.1", - "glob": "7.1.2", - "object-assign": "4.1.1", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "pify": { @@ -3874,7 +4004,7 @@ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { - "pinkie": "2.0.4" + "pinkie": "^2.0.0" } } } @@ -3890,7 +4020,7 @@ "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", "dev": true, "requires": { - "repeating": "2.0.1" + "repeating": "^2.0.0" } }, "diff": { @@ -3909,8 +4039,8 @@ "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.0.0.tgz", "integrity": "sha512-37qirFDz8cA5fimp9feo43fSuRo2gHwaIn6dXL8Ber1dGwUosDrGZeCCXq57WnIqE4aQ+u3eQZzsk1yOzhdwag==", "requires": { - "arrify": "1.0.1", - "path-type": "3.0.0" + "arrify": "^1.0.1", + "path-type": "^3.0.0" } }, "doctrine": { @@ -3919,7 +4049,7 @@ "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, "requires": { - "esutils": "2.0.2" + "esutils": "^2.0.2" } }, "dom-serializer": { @@ -3928,8 +4058,8 @@ "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", "dev": true, "requires": { - "domelementtype": "1.1.3", - "entities": "1.1.1" + "domelementtype": "~1.1.1", + "entities": "~1.1.1" }, "dependencies": { "domelementtype": { @@ -3952,7 +4082,7 @@ "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", "dev": true, "requires": { - "domelementtype": "1.3.0" + "domelementtype": "1" } }, "domutils": { @@ -3961,8 +4091,8 @@ "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", "dev": true, "requires": { - "dom-serializer": "0.1.0", - "domelementtype": "1.3.0" + "dom-serializer": "0", + "domelementtype": "1" } }, "dot-prop": { @@ -3971,7 +4101,7 @@ "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", "dev": true, "requires": { - "is-obj": "1.0.1" + "is-obj": "^1.0.0" } }, "duplexer3": { @@ -3985,10 +4115,10 @@ "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.0.tgz", "integrity": "sha512-fO3Di4tBKJpYTFHAxTU00BcfWMY9w24r/x21a6rZRbsD/ToUgGxsMbiGRmB7uVAXeGKXD9MwiLZa5E97EVgIRQ==", "requires": { - "end-of-stream": "1.4.1", - "inherits": "2.0.3", - "readable-stream": "2.3.6", - "stream-shift": "1.0.0" + "end-of-stream": "^1.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.0.0", + "stream-shift": "^1.0.0" } }, "eastasianwidth": { @@ -4002,7 +4132,7 @@ "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", "optional": true, "requires": { - "jsbn": "0.1.1" + "jsbn": "~0.1.0" } }, "ecdsa-sig-formatter": { @@ -4010,7 +4140,7 @@ "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.10.tgz", "integrity": "sha1-HFlQAPBKiJffuFAAiSoPTDOvhsM=", "requires": { - "safe-buffer": "5.1.2" + "safe-buffer": "^5.0.1" } }, "empower": { @@ -4018,8 +4148,8 @@ "resolved": "https://registry.npmjs.org/empower/-/empower-1.2.3.tgz", "integrity": "sha1-bw2nNEf07dg4/sXGAxOoi6XLhSs=", "requires": { - "core-js": "2.5.6", - "empower-core": "0.6.2" + "core-js": "^2.0.0", + "empower-core": "^0.6.2" } }, "empower-assert": { @@ -4028,7 +4158,7 @@ "integrity": "sha512-Ylck0Q6p8y/LpNzYeBccaxAPm2ZyuqBgErgZpO9KT0HuQWF0sJckBKCLmgS1/DEXEiyBi9XtYh3clZm5cAdARw==", "dev": true, "requires": { - "estraverse": "4.2.0" + "estraverse": "^4.2.0" } }, "empower-core": { @@ -4037,7 +4167,7 @@ "integrity": "sha1-Wt71ZgiOMfuoC6CjbfR9cJQWkUQ=", "requires": { "call-signature": "0.0.2", - "core-js": "2.5.6" + "core-js": "^2.0.0" } }, "end-of-stream": { @@ -4045,7 +4175,7 @@ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", "requires": { - "once": "1.4.0" + "once": "^1.4.0" } }, "entities": { @@ -4066,7 +4196,31 @@ "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", "dev": true, "requires": { - "is-arrayish": "0.2.1" + "is-arrayish": "^0.2.1" + } + }, + "es-abstract": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz", + "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", + "dev": true, + "requires": { + "es-to-primitive": "^1.1.1", + "function-bind": "^1.1.1", + "has": "^1.0.1", + "is-callable": "^1.1.3", + "is-regex": "^1.0.4" + } + }, + "es-to-primitive": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz", + "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", + "dev": true, + "requires": { + "is-callable": "^1.1.1", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.1" } }, "es5-ext": { @@ -4075,9 +4229,9 @@ "integrity": "sha512-AJxO1rmPe1bDEfSR6TJ/FgMFYuTBhR5R57KW58iCkYACMyFbrkqVyzXSurYoScDGvgyMpk7uRF/lPUPPTmsRSA==", "dev": true, "requires": { - "es6-iterator": "2.0.3", - "es6-symbol": "3.1.1", - "next-tick": "1.0.0" + "es6-iterator": "~2.0.3", + "es6-symbol": "~3.1.1", + "next-tick": "1" } }, "es6-error": { @@ -4092,9 +4246,9 @@ "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42", - "es6-symbol": "3.1.1" + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" } }, "es6-map": { @@ -4103,12 +4257,12 @@ "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42", - "es6-iterator": "2.0.3", - "es6-set": "0.1.5", - "es6-symbol": "3.1.1", - "event-emitter": "0.3.5" + "d": "1", + "es5-ext": "~0.10.14", + "es6-iterator": "~2.0.1", + "es6-set": "~0.1.5", + "es6-symbol": "~3.1.1", + "event-emitter": "~0.3.5" } }, "es6-set": { @@ -4117,11 +4271,11 @@ "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42", - "es6-iterator": "2.0.3", + "d": "1", + "es5-ext": "~0.10.14", + "es6-iterator": "~2.0.1", "es6-symbol": "3.1.1", - "event-emitter": "0.3.5" + "event-emitter": "~0.3.5" } }, "es6-symbol": { @@ -4130,8 +4284,8 @@ "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42" + "d": "1", + "es5-ext": "~0.10.14" } }, "es6-weak-map": { @@ -4140,10 +4294,10 @@ "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42", - "es6-iterator": "2.0.3", - "es6-symbol": "3.1.1" + "d": "1", + "es5-ext": "^0.10.14", + "es6-iterator": "^2.0.1", + "es6-symbol": "^3.1.1" } }, "escallmatch": { @@ -4152,8 +4306,8 @@ "integrity": "sha1-UAmdhugJGwkt+N37w/mm+wWgJNA=", "dev": true, "requires": { - "call-matcher": "1.0.1", - "esprima": "2.7.3" + "call-matcher": "^1.0.0", + "esprima": "^2.0.0" }, "dependencies": { "esprima": { @@ -4176,11 +4330,11 @@ "integrity": "sha512-6hTjO1NAWkHnDk3OqQ4YrCuwwmGHL9S3nPlzBOUG/R44rda3wLNrfvQ5fkSGjyhHFKM7ALPKcKGrwvCLe0lC7Q==", "dev": true, "requires": { - "esprima": "3.1.3", - "estraverse": "4.2.0", - "esutils": "2.0.2", - "optionator": "0.8.2", - "source-map": "0.6.1" + "esprima": "^3.1.3", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" }, "dependencies": { "esprima": { @@ -4204,64 +4358,89 @@ "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", "dev": true, "requires": { - "es6-map": "0.1.5", - "es6-weak-map": "2.0.2", - "esrecurse": "4.2.1", - "estraverse": "4.2.0" + "es6-map": "^0.1.3", + "es6-weak-map": "^2.0.1", + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" } }, "eslint": { - "version": "4.19.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-4.19.1.tgz", - "integrity": "sha512-bT3/1x1EbZB7phzYu7vCr1v3ONuzDtX8WjuM9c0iYxe+cq+pwcKEoQjl7zd3RpC6YOLgnSy3cTN58M2jcoPDIQ==", - "dev": true, - "requires": { - "ajv": "5.5.2", - "babel-code-frame": "6.26.0", - "chalk": "2.4.1", - "concat-stream": "1.6.2", - "cross-spawn": "5.1.0", - "debug": "3.1.0", - "doctrine": "2.1.0", - "eslint-scope": "3.7.1", - "eslint-visitor-keys": "1.0.0", - "espree": "3.5.4", - "esquery": "1.0.1", - "esutils": "2.0.2", - "file-entry-cache": "2.0.0", - "functional-red-black-tree": "1.0.1", - "glob": "7.1.2", - "globals": "11.5.0", - "ignore": "3.3.8", - "imurmurhash": "0.1.4", - "inquirer": "3.3.0", - "is-resolvable": "1.1.0", - "js-yaml": "3.11.0", - "json-stable-stringify-without-jsonify": "1.0.1", - "levn": "0.3.0", - "lodash": "4.17.10", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "natural-compare": "1.4.0", - "optionator": "0.8.2", - "path-is-inside": "1.0.2", - "pluralize": "7.0.0", - "progress": "2.0.0", - "regexpp": "1.1.0", - "require-uncached": "1.0.3", - "semver": "5.5.0", - "strip-ansi": "4.0.0", - "strip-json-comments": "2.0.1", - "table": "4.0.2", - "text-table": "0.2.0" + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.0.1.tgz", + "integrity": "sha512-D5nG2rErquLUstgUaxJlWB5+gu+U/3VDY0fk/Iuq8y9CUFy/7Y6oF4N2cR1tV8knzQvciIbfqfohd359xTLIKQ==", + "dev": true, + "requires": { + "ajv": "^6.5.0", + "babel-code-frame": "^6.26.0", + "chalk": "^2.1.0", + "cross-spawn": "^6.0.5", + "debug": "^3.1.0", + "doctrine": "^2.1.0", + "eslint-scope": "^4.0.0", + "eslint-visitor-keys": "^1.0.0", + "espree": "^4.0.0", + "esquery": "^1.0.1", + "esutils": "^2.0.2", + "file-entry-cache": "^2.0.0", + "functional-red-black-tree": "^1.0.1", + "glob": "^7.1.2", + "globals": "^11.5.0", + "ignore": "^3.3.3", + "imurmurhash": "^0.1.4", + "inquirer": "^5.2.0", + "is-resolvable": "^1.1.0", + "js-yaml": "^3.11.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.3.0", + "lodash": "^4.17.5", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "optionator": "^0.8.2", + "path-is-inside": "^1.0.2", + "pluralize": "^7.0.0", + "progress": "^2.0.0", + "regexpp": "^1.1.0", + "require-uncached": "^1.0.3", + "semver": "^5.5.0", + "string.prototype.matchall": "^2.0.0", + "strip-ansi": "^4.0.0", + "strip-json-comments": "^2.0.1", + "table": "^4.0.3", + "text-table": "^0.2.0" }, "dependencies": { + "ajv": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.1.tgz", + "integrity": "sha512-pgZos1vgOHDiC7gKNbZW8eKvCnNXARv2oqrGQT7Hzbq5Azp7aZG6DJzADnkuSq7RH6qkXp4J/m68yPX/2uBHyQ==", + "dev": true, + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.1" + } + }, "ansi-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "dev": true }, + "cross-spawn": { + "version": "6.0.5", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", + "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", + "dev": true, + "requires": { + "nice-try": "^1.0.4", + "path-key": "^2.0.1", + "semver": "^5.5.0", + "shebang-command": "^1.2.0", + "which": "^1.2.9" + } + }, "debug": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", @@ -4271,10 +4450,22 @@ "ms": "2.0.0" } }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, "globals": { - "version": "11.5.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.5.0.tgz", - "integrity": "sha512-hYyf+kI8dm3nORsiiXUQigOU62hDLfJ9G01uyGMxhc6BKsircrUhC4uJPQPUSuq2GrTmiiEt7ewxlMdBewfmKQ==", + "version": "11.7.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.7.0.tgz", + "integrity": "sha512-K8BNSPySfeShBQXsahYB/AbbWruVOTyVpgoIDnl8odPpeSfP2J5QO2oLFFdl2j7GfDCtZj2bMKar2T49itTPCg==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, "strip-ansi": { @@ -4283,7 +4474,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -4294,7 +4485,7 @@ "integrity": "sha512-ag8YEyBXsm3nmOv1Hz991VtNNDMRa+MNy8cY47Pl4bw6iuzqKbJajXdqUpiw13STdLLrznxgm1hj9NhxeOYq0A==", "dev": true, "requires": { - "get-stdin": "5.0.1" + "get-stdin": "^5.0.1" }, "dependencies": { "get-stdin": { @@ -4311,10 +4502,10 @@ "integrity": "sha512-Q/Cc2sW1OAISDS+Ji6lZS2KV4b7ueA/WydVWd1BECTQwVvfQy5JAi3glhINoKzoMnfnuRgNP+ZWKrGAbp3QDxw==", "dev": true, "requires": { - "ignore": "3.3.8", - "minimatch": "3.0.4", - "resolve": "1.7.1", - "semver": "5.5.0" + "ignore": "^3.3.6", + "minimatch": "^3.0.4", + "resolve": "^1.3.3", + "semver": "^5.4.1" }, "dependencies": { "resolve": { @@ -4323,7 +4514,7 @@ "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", "dev": true, "requires": { - "path-parse": "1.0.5" + "path-parse": "^1.0.5" } } } @@ -4334,18 +4525,18 @@ "integrity": "sha512-floiaI4F7hRkTrFe8V2ItOK97QYrX75DjmdzmVITZoAP6Cn06oEDPQRsO6MlHEP/u2SxI3xQ52Kpjw6j5WGfeQ==", "dev": true, "requires": { - "fast-diff": "1.1.2", - "jest-docblock": "21.2.0" + "fast-diff": "^1.1.1", + "jest-docblock": "^21.0.0" } }, "eslint-scope": { - "version": "3.7.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-3.7.1.tgz", - "integrity": "sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.0.tgz", + "integrity": "sha512-1G6UTDi7Jc1ELFwnR58HV4fK9OQK4S6N985f166xqXxpjU6plxFISJa2Ba9KCQuFa8RCnj/lSFJbHo7UFDBnUA==", "dev": true, "requires": { - "esrecurse": "4.2.1", - "estraverse": "4.2.0" + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" } }, "eslint-visitor-keys": { @@ -4360,16 +4551,16 @@ "integrity": "sha512-F4TY1qYJB1aUyzB03NsZksZzUQmQoEBaTUjRJGR30GxbkbjKI41NhCyYjrF+bGgWN7x/ZsczYppRpz/0WdI0ug==", "dev": true, "requires": { - "array-find": "1.0.0", - "escallmatch": "1.5.0", - "escodegen": "1.9.1", - "escope": "3.6.0", - "espower-location-detector": "1.0.0", - "espurify": "1.8.0", - "estraverse": "4.2.0", - "source-map": "0.5.7", - "type-name": "2.0.2", - "xtend": "4.0.1" + "array-find": "^1.0.0", + "escallmatch": "^1.5.0", + "escodegen": "^1.7.0", + "escope": "^3.3.0", + "espower-location-detector": "^1.0.0", + "espurify": "^1.3.0", + "estraverse": "^4.1.0", + "source-map": "^0.5.0", + "type-name": "^2.0.0", + "xtend": "^4.0.0" } }, "espower-loader": { @@ -4378,11 +4569,11 @@ "integrity": "sha1-7bRsPFmga6yOpzppXIblxaC8gto=", "dev": true, "requires": { - "convert-source-map": "1.5.1", - "espower-source": "2.2.0", - "minimatch": "3.0.4", - "source-map-support": "0.4.18", - "xtend": "4.0.1" + "convert-source-map": "^1.1.0", + "espower-source": "^2.0.0", + "minimatch": "^3.0.0", + "source-map-support": "^0.4.0", + "xtend": "^4.0.0" }, "dependencies": { "source-map-support": { @@ -4391,7 +4582,7 @@ "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", "dev": true, "requires": { - "source-map": "0.5.7" + "source-map": "^0.5.6" } } } @@ -4402,10 +4593,10 @@ "integrity": "sha1-oXt+zFnTDheeK+9z+0E3cEyzMbU=", "dev": true, "requires": { - "is-url": "1.2.4", - "path-is-absolute": "1.0.1", - "source-map": "0.5.7", - "xtend": "4.0.1" + "is-url": "^1.2.1", + "path-is-absolute": "^1.0.0", + "source-map": "^0.5.0", + "xtend": "^4.0.0" } }, "espower-source": { @@ -4414,17 +4605,17 @@ "integrity": "sha1-fgBSVa5HtcE2RIZEs/PYAtUD91I=", "dev": true, "requires": { - "acorn": "5.5.3", - "acorn-es7-plugin": "1.1.7", - "convert-source-map": "1.5.1", - "empower-assert": "1.1.0", - "escodegen": "1.9.1", - "espower": "2.1.1", - "estraverse": "4.2.0", - "merge-estraverse-visitors": "1.0.0", - "multi-stage-sourcemap": "0.2.1", - "path-is-absolute": "1.0.1", - "xtend": "4.0.1" + "acorn": "^5.0.0", + "acorn-es7-plugin": "^1.0.10", + "convert-source-map": "^1.1.1", + "empower-assert": "^1.0.0", + "escodegen": "^1.6.1", + "espower": "^2.0.0", + "estraverse": "^4.0.0", + "merge-estraverse-visitors": "^1.0.0", + "multi-stage-sourcemap": "^0.2.1", + "path-is-absolute": "^1.0.0", + "xtend": "^4.0.0" }, "dependencies": { "acorn": { @@ -4436,19 +4627,19 @@ } }, "espree": { - "version": "3.5.4", - "resolved": "https://registry.npmjs.org/espree/-/espree-3.5.4.tgz", - "integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/espree/-/espree-4.0.0.tgz", + "integrity": "sha512-kapdTCt1bjmspxStVKX6huolXVV5ZfyZguY1lcfhVVZstce3bqxH9mcLzNn3/mlgW6wQ732+0fuG9v7h0ZQoKg==", "dev": true, "requires": { - "acorn": "5.5.3", - "acorn-jsx": "3.0.1" + "acorn": "^5.6.0", + "acorn-jsx": "^4.1.1" }, "dependencies": { "acorn": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", - "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", + "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==", "dev": true } } @@ -4464,7 +4655,7 @@ "resolved": "https://registry.npmjs.org/espurify/-/espurify-1.8.0.tgz", "integrity": "sha512-jdkJG9jswjKCCDmEridNUuIQei9algr+o66ZZ19610ZoBsiWLRsQGNYS4HGez3Z/DsR0lhANGAqiwBUclPuNag==", "requires": { - "core-js": "2.5.6" + "core-js": "^2.0.0" } }, "esquery": { @@ -4473,7 +4664,7 @@ "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", "dev": true, "requires": { - "estraverse": "4.2.0" + "estraverse": "^4.0.0" } }, "esrecurse": { @@ -4482,7 +4673,7 @@ "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", "dev": true, "requires": { - "estraverse": "4.2.0" + "estraverse": "^4.1.0" } }, "estraverse": { @@ -4502,8 +4693,8 @@ "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42" + "d": "1", + "es5-ext": "~0.10.14" } }, "execa": { @@ -4512,13 +4703,13 @@ "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", "dev": true, "requires": { - "cross-spawn": "5.1.0", - "get-stream": "3.0.0", - "is-stream": "1.1.0", - "npm-run-path": "2.0.2", - "p-finally": "1.0.0", - "signal-exit": "3.0.2", - "strip-eof": "1.0.0" + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" } }, "expand-brackets": { @@ -4526,13 +4717,13 @@ "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", "requires": { - "debug": "2.6.9", - "define-property": "0.2.5", - "extend-shallow": "2.0.1", - "posix-character-classes": "0.1.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" }, "dependencies": { "define-property": { @@ -4540,7 +4731,7 @@ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } }, "extend-shallow": { @@ -4548,7 +4739,7 @@ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -4559,7 +4750,7 @@ "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", "dev": true, "requires": { - "fill-range": "2.2.4" + "fill-range": "^2.1.0" }, "dependencies": { "fill-range": { @@ -4568,11 +4759,11 @@ "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", "dev": true, "requires": { - "is-number": "2.1.0", - "isobject": "2.1.0", - "randomatic": "3.0.0", - "repeat-element": "1.1.2", - "repeat-string": "1.6.1" + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" } }, "is-number": { @@ -4581,7 +4772,7 @@ "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" } }, "isobject": { @@ -4599,7 +4790,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -4614,8 +4805,8 @@ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", "requires": { - "assign-symbols": "1.0.0", - "is-extendable": "1.0.1" + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" }, "dependencies": { "is-extendable": { @@ -4623,7 +4814,7 @@ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "requires": { - "is-plain-object": "2.0.4" + "is-plain-object": "^2.0.4" } } } @@ -4634,9 +4825,9 @@ "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", "dev": true, "requires": { - "chardet": "0.4.2", - "iconv-lite": "0.4.23", - "tmp": "0.0.33" + "chardet": "^0.4.0", + "iconv-lite": "^0.4.17", + "tmp": "^0.0.33" } }, "extglob": { @@ -4644,14 +4835,14 @@ "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", "requires": { - "array-unique": "0.3.2", - "define-property": "1.0.0", - "expand-brackets": "2.1.4", - "extend-shallow": "2.0.1", - "fragment-cache": "0.2.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" }, "dependencies": { "define-property": { @@ -4659,7 +4850,7 @@ "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "requires": { - "is-descriptor": "1.0.2" + "is-descriptor": "^1.0.0" } }, "extend-shallow": { @@ -4667,7 +4858,7 @@ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } }, "is-accessor-descriptor": { @@ -4675,7 +4866,7 @@ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -4683,7 +4874,7 @@ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -4691,9 +4882,9 @@ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } } } @@ -4719,12 +4910,12 @@ "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-2.2.2.tgz", "integrity": "sha512-TR6zxCKftDQnUAPvkrCWdBgDq/gbqx8A3ApnBrR5rMvpp6+KMJI0Igw7fkWPgeVK0uhRXTXdvO3O+YP0CaUX2g==", "requires": { - "@mrmlnc/readdir-enhanced": "2.2.1", - "@nodelib/fs.stat": "1.0.2", - "glob-parent": "3.1.0", - "is-glob": "4.0.0", - "merge2": "1.2.2", - "micromatch": "3.1.10" + "@mrmlnc/readdir-enhanced": "^2.2.1", + "@nodelib/fs.stat": "^1.0.1", + "glob-parent": "^3.1.0", + "is-glob": "^4.0.0", + "merge2": "^1.2.1", + "micromatch": "^3.1.10" } }, "fast-json-stable-stringify": { @@ -4744,7 +4935,7 @@ "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", "dev": true, "requires": { - "escape-string-regexp": "1.0.5" + "escape-string-regexp": "^1.0.5" } }, "file-entry-cache": { @@ -4753,8 +4944,8 @@ "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", "dev": true, "requires": { - "flat-cache": "1.3.0", - "object-assign": "4.1.1" + "flat-cache": "^1.2.1", + "object-assign": "^4.0.1" } }, "filename-regex": { @@ -4769,8 +4960,8 @@ "integrity": "sha1-mo+jb06K1jTjv2tPPIiCVRRS6yA=", "dev": true, "requires": { - "is-object": "1.0.1", - "merge-descriptors": "1.0.1" + "is-object": "~1.0.1", + "merge-descriptors": "~1.0.0" } }, "fill-range": { @@ -4778,10 +4969,10 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", "requires": { - "extend-shallow": "2.0.1", - "is-number": "3.0.0", - "repeat-string": "1.6.1", - "to-regex-range": "2.1.1" + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" }, "dependencies": { "extend-shallow": { @@ -4789,7 +4980,7 @@ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -4800,9 +4991,9 @@ "integrity": "sha1-kojj6ePMN0hxfTnq3hfPcfww7m8=", "dev": true, "requires": { - "commondir": "1.0.1", - "make-dir": "1.3.0", - "pkg-dir": "2.0.0" + "commondir": "^1.0.1", + "make-dir": "^1.0.0", + "pkg-dir": "^2.0.0" } }, "find-up": { @@ -4811,7 +5002,7 @@ "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { - "locate-path": "2.0.0" + "locate-path": "^2.0.0" } }, "flat-cache": { @@ -4820,10 +5011,10 @@ "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=", "dev": true, "requires": { - "circular-json": "0.3.3", - "del": "2.2.2", - "graceful-fs": "4.1.11", - "write": "0.2.1" + "circular-json": "^0.3.1", + "del": "^2.0.2", + "graceful-fs": "^4.1.2", + "write": "^0.2.1" } }, "fn-name": { @@ -4837,7 +5028,7 @@ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.0.tgz", "integrity": "sha512-fdrt472/9qQ6Kgjvb935ig6vJCuofpBUD14f9Vb+SLlm7xIe4Qva5gey8EKtv8lp7ahE1wilg3xL1znpVGtZIA==", "requires": { - "debug": "3.1.0" + "debug": "^3.1.0" }, "dependencies": { "debug": { @@ -4861,7 +5052,7 @@ "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", "dev": true, "requires": { - "for-in": "1.0.2" + "for-in": "^1.0.1" } }, "foreach": { @@ -4879,9 +5070,9 @@ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", "requires": { - "asynckit": "0.4.0", + "asynckit": "^0.4.0", "combined-stream": "1.0.6", - "mime-types": "2.1.18" + "mime-types": "^2.1.12" } }, "formidable": { @@ -4895,7 +5086,7 @@ "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", "requires": { - "map-cache": "0.2.2" + "map-cache": "^0.2.2" } }, "from2": { @@ -4904,8 +5095,8 @@ "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.6" + "inherits": "^2.0.1", + "readable-stream": "^2.0.0" } }, "fs-extra": { @@ -4914,9 +5105,9 @@ "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "jsonfile": "4.0.0", - "universalify": "0.1.1" + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" } }, "fs.realpath": { @@ -4931,8 +5122,8 @@ "dev": true, "optional": true, "requires": { - "nan": "2.10.0", - "node-pre-gyp": "0.10.0" + "nan": "^2.9.2", + "node-pre-gyp": "^0.10.0" }, "dependencies": { "abbrev": { @@ -4958,8 +5149,8 @@ "dev": true, "optional": true, "requires": { - "delegates": "1.0.0", - "readable-stream": "2.3.6" + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" } }, "balanced-match": { @@ -4972,7 +5163,7 @@ "bundled": true, "dev": true, "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, @@ -5036,7 +5227,7 @@ "dev": true, "optional": true, "requires": { - "minipass": "2.2.4" + "minipass": "^2.2.1" } }, "fs.realpath": { @@ -5051,14 +5242,14 @@ "dev": true, "optional": true, "requires": { - "aproba": "1.2.0", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.2" + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" } }, "glob": { @@ -5067,12 +5258,12 @@ "dev": true, "optional": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "has-unicode": { @@ -5087,7 +5278,7 @@ "dev": true, "optional": true, "requires": { - "safer-buffer": "2.1.2" + "safer-buffer": "^2.1.0" } }, "ignore-walk": { @@ -5096,7 +5287,7 @@ "dev": true, "optional": true, "requires": { - "minimatch": "3.0.4" + "minimatch": "^3.0.4" } }, "inflight": { @@ -5105,8 +5296,8 @@ "dev": true, "optional": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { @@ -5125,7 +5316,7 @@ "bundled": true, "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "isarray": { @@ -5139,7 +5330,7 @@ "bundled": true, "dev": true, "requires": { - "brace-expansion": "1.1.11" + "brace-expansion": "^1.1.7" } }, "minimist": { @@ -5152,8 +5343,8 @@ "bundled": true, "dev": true, "requires": { - "safe-buffer": "5.1.1", - "yallist": "3.0.2" + "safe-buffer": "^5.1.1", + "yallist": "^3.0.0" } }, "minizlib": { @@ -5162,7 +5353,7 @@ "dev": true, "optional": true, "requires": { - "minipass": "2.2.4" + "minipass": "^2.2.1" } }, "mkdirp": { @@ -5185,9 +5376,9 @@ "dev": true, "optional": true, "requires": { - "debug": "2.6.9", - "iconv-lite": "0.4.21", - "sax": "1.2.4" + "debug": "^2.1.2", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" } }, "node-pre-gyp": { @@ -5196,16 +5387,16 @@ "dev": true, "optional": true, "requires": { - "detect-libc": "1.0.3", - "mkdirp": "0.5.1", - "needle": "2.2.0", - "nopt": "4.0.1", - "npm-packlist": "1.1.10", - "npmlog": "4.1.2", - "rc": "1.2.7", - "rimraf": "2.6.2", - "semver": "5.5.0", - "tar": "4.4.1" + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.0", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.1.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" } }, "nopt": { @@ -5214,8 +5405,8 @@ "dev": true, "optional": true, "requires": { - "abbrev": "1.1.1", - "osenv": "0.1.5" + "abbrev": "1", + "osenv": "^0.1.4" } }, "npm-bundled": { @@ -5230,8 +5421,8 @@ "dev": true, "optional": true, "requires": { - "ignore-walk": "3.0.1", - "npm-bundled": "1.0.3" + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" } }, "npmlog": { @@ -5240,10 +5431,10 @@ "dev": true, "optional": true, "requires": { - "are-we-there-yet": "1.1.4", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" } }, "number-is-nan": { @@ -5262,7 +5453,7 @@ "bundled": true, "dev": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "os-homedir": { @@ -5283,8 +5474,8 @@ "dev": true, "optional": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, "path-is-absolute": { @@ -5305,10 +5496,10 @@ "dev": true, "optional": true, "requires": { - "deep-extend": "0.5.1", - "ini": "1.3.5", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" + "deep-extend": "^0.5.1", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" }, "dependencies": { "minimist": { @@ -5325,13 +5516,13 @@ "dev": true, "optional": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "rimraf": { @@ -5340,7 +5531,7 @@ "dev": true, "optional": true, "requires": { - "glob": "7.1.2" + "glob": "^7.0.5" } }, "safe-buffer": { @@ -5383,9 +5574,9 @@ "bundled": true, "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, "string_decoder": { @@ -5394,7 +5585,7 @@ "dev": true, "optional": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } }, "strip-ansi": { @@ -5402,7 +5593,7 @@ "bundled": true, "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "strip-json-comments": { @@ -5417,13 +5608,13 @@ "dev": true, "optional": true, "requires": { - "chownr": "1.0.1", - "fs-minipass": "1.2.5", - "minipass": "2.2.4", - "minizlib": "1.1.0", - "mkdirp": "0.5.1", - "safe-buffer": "5.1.1", - "yallist": "3.0.2" + "chownr": "^1.0.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.2.4", + "minizlib": "^1.1.0", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.1", + "yallist": "^3.0.2" } }, "util-deprecate": { @@ -5438,7 +5629,7 @@ "dev": true, "optional": true, "requires": { - "string-width": "1.0.2" + "string-width": "^1.0.2" } }, "wrappy": { @@ -5453,6 +5644,12 @@ } } }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, "function-name-support": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/function-name-support/-/function-name-support-0.2.0.tgz", @@ -5470,8 +5667,8 @@ "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-0.6.3.tgz", "integrity": "sha512-MSmczZctbz91AxCvqp9GHBoZOSbJKAICV7Ow/AIWSJZRrRchUd5NL1b2P4OfP+4m490BEUPhhARfpHdqCxuCvg==", "requires": { - "axios": "0.18.0", - "extend": "3.0.1", + "axios": "^0.18.0", + "extend": "^3.0.1", "retry-axios": "0.3.2" } }, @@ -5509,7 +5706,7 @@ "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "requires": { - "assert-plus": "1.0.0" + "assert-plus": "^1.0.0" } }, "glob": { @@ -5517,12 +5714,12 @@ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "glob-base": { @@ -5531,8 +5728,8 @@ "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", "dev": true, "requires": { - "glob-parent": "2.0.0", - "is-glob": "2.0.1" + "glob-parent": "^2.0.0", + "is-glob": "^2.0.0" }, "dependencies": { "glob-parent": { @@ -5541,7 +5738,7 @@ "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", "dev": true, "requires": { - "is-glob": "2.0.1" + "is-glob": "^2.0.0" } }, "is-extglob": { @@ -5556,7 +5753,7 @@ "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } } } @@ -5566,8 +5763,8 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "requires": { - "is-glob": "3.1.0", - "path-dirname": "1.0.2" + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" }, "dependencies": { "is-glob": { @@ -5575,7 +5772,7 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "requires": { - "is-extglob": "2.1.1" + "is-extglob": "^2.1.0" } } } @@ -5591,7 +5788,7 @@ "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", "dev": true, "requires": { - "ini": "1.3.5" + "ini": "^1.3.4" } }, "globals": { @@ -5605,13 +5802,13 @@ "resolved": "https://registry.npmjs.org/globby/-/globby-8.0.1.tgz", "integrity": "sha512-oMrYrJERnKBLXNLVTqhm3vPEdJ/b2ZE28xN4YARiix1NOIOBPEpOUnm844K1iu/BkphCaf2WNFwMszv8Soi1pw==", "requires": { - "array-union": "1.0.2", - "dir-glob": "2.0.0", - "fast-glob": "2.2.2", - "glob": "7.1.2", - "ignore": "3.3.8", - "pify": "3.0.0", - "slash": "1.0.0" + "array-union": "^1.0.1", + "dir-glob": "^2.0.0", + "fast-glob": "^2.0.2", + "glob": "^7.1.2", + "ignore": "^3.3.5", + "pify": "^3.0.0", + "slash": "^1.0.0" } }, "google-auth-library": { @@ -5619,13 +5816,13 @@ "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-1.5.0.tgz", "integrity": "sha512-xpibA/hkq4waBcpIkSJg4GiDAqcBWjJee3c47zj7xP3RQ0A9mc8MP3Vc9sc8SGRoDYA0OszZxTjW7SbcC4pJIA==", "requires": { - "axios": "0.18.0", - "gcp-metadata": "0.6.3", - "gtoken": "2.3.0", - "jws": "3.1.5", - "lodash.isstring": "4.0.1", - "lru-cache": "4.1.3", - "retry-axios": "0.3.2" + "axios": "^0.18.0", + "gcp-metadata": "^0.6.3", + "gtoken": "^2.3.0", + "jws": "^3.1.4", + "lodash.isstring": "^4.0.1", + "lru-cache": "^4.1.2", + "retry-axios": "^0.3.2" } }, "google-auto-auth": { @@ -5633,10 +5830,10 @@ "resolved": "https://registry.npmjs.org/google-auto-auth/-/google-auto-auth-0.10.1.tgz", "integrity": "sha512-iIqSbY7Ypd32mnHGbYctp80vZzXoDlvI9gEfvtl3kmyy5HzOcrZCIGCBdSlIzRsg7nHpQiHE3Zl6Ycur6TSodQ==", "requires": { - "async": "2.6.1", - "gcp-metadata": "0.6.3", - "google-auth-library": "1.5.0", - "request": "2.87.0" + "async": "^2.3.0", + "gcp-metadata": "^0.6.1", + "google-auth-library": "^1.3.1", + "request": "^2.79.0" } }, "google-gax": { @@ -5644,16 +5841,16 @@ "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.16.1.tgz", "integrity": "sha512-eP7UUkKvaHmmvCrr+rxzkIOeEKOnXmoib7/AkENDAuqlC9T2+lWlzwpthDRnitQcV8SblDMzsk73YPMPCDwPyQ==", "requires": { - "duplexify": "3.6.0", - "extend": "3.0.1", - "globby": "8.0.1", - "google-auto-auth": "0.10.1", - "google-proto-files": "0.15.1", - "grpc": "1.11.3", - "is-stream-ended": "0.1.4", - "lodash": "4.17.10", - "protobufjs": "6.8.6", - "through2": "2.0.3" + "duplexify": "^3.5.4", + "extend": "^3.0.0", + "globby": "^8.0.0", + "google-auto-auth": "^0.10.0", + "google-proto-files": "^0.15.0", + "grpc": "^1.10.0", + "is-stream-ended": "^0.1.0", + "lodash": "^4.17.2", + "protobufjs": "^6.8.0", + "through2": "^2.0.3" } }, "google-p12-pem": { @@ -5661,8 +5858,8 @@ "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-1.0.2.tgz", "integrity": "sha512-+EuKr4CLlGsnXx4XIJIVkcKYrsa2xkAmCvxRhX2HsazJzUBAJ35wARGeApHUn4nNfPD03Vl057FskNr20VaCyg==", "requires": { - "node-forge": "0.7.5", - "pify": "3.0.0" + "node-forge": "^0.7.4", + "pify": "^3.0.0" } }, "google-proto-files": { @@ -5670,9 +5867,9 @@ "resolved": "https://registry.npmjs.org/google-proto-files/-/google-proto-files-0.15.1.tgz", "integrity": "sha512-ebtmWgi/ooR5Nl63qRVZZ6VLM6JOb5zTNxTT/ZAU8yfMOdcauoOZNNMOVg0pCmTjqWXeuuVbgPP0CwO5UHHzBQ==", "requires": { - "globby": "7.1.1", - "power-assert": "1.5.0", - "protobufjs": "6.8.6" + "globby": "^7.1.1", + "power-assert": "^1.4.4", + "protobufjs": "^6.8.0" }, "dependencies": { "globby": { @@ -5680,12 +5877,12 @@ "resolved": "https://registry.npmjs.org/globby/-/globby-7.1.1.tgz", "integrity": "sha1-+yzP+UAfhgCUXfral0QMypcrhoA=", "requires": { - "array-union": "1.0.2", - "dir-glob": "2.0.0", - "glob": "7.1.2", - "ignore": "3.3.8", - "pify": "3.0.0", - "slash": "1.0.0" + "array-union": "^1.0.1", + "dir-glob": "^2.0.0", + "glob": "^7.1.2", + "ignore": "^3.3.5", + "pify": "^3.0.0", + "slash": "^1.0.0" } } } @@ -5696,23 +5893,23 @@ "integrity": "sha512-giadqJpXIwjY+ZsuWys8p2yjZGhOHiU4hiJHjS/oeCxw1u8vANQz3zPlrxW2Zw/siCXsSMI3hvzWGcnFyujyAg==", "dev": true, "requires": { - "@sindresorhus/is": "0.7.0", - "cacheable-request": "2.1.4", - "decompress-response": "3.3.0", - "duplexer3": "0.1.4", - "get-stream": "3.0.0", - "into-stream": "3.1.0", - "is-retry-allowed": "1.1.0", - "isurl": "1.0.0", - "lowercase-keys": "1.0.1", - "mimic-response": "1.0.0", - "p-cancelable": "0.3.0", - "p-timeout": "2.0.1", - "pify": "3.0.0", - "safe-buffer": "5.1.2", - "timed-out": "4.0.1", - "url-parse-lax": "3.0.0", - "url-to-options": "1.0.1" + "@sindresorhus/is": "^0.7.0", + "cacheable-request": "^2.1.1", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "into-stream": "^3.1.0", + "is-retry-allowed": "^1.1.0", + "isurl": "^1.0.0-alpha5", + "lowercase-keys": "^1.0.0", + "mimic-response": "^1.0.0", + "p-cancelable": "^0.3.0", + "p-timeout": "^2.0.1", + "pify": "^3.0.0", + "safe-buffer": "^5.1.1", + "timed-out": "^4.0.1", + "url-parse-lax": "^3.0.0", + "url-to-options": "^1.0.1" }, "dependencies": { "prepend-http": { @@ -5727,7 +5924,7 @@ "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", "dev": true, "requires": { - "prepend-http": "2.0.0" + "prepend-http": "^2.0.0" } } } @@ -5749,10 +5946,10 @@ "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.11.3.tgz", "integrity": "sha512-7fJ40USpnP7hxGK0uRoEhJz6unA5VUdwInfwAY2rK2+OVxdDJSdTZQ/8/M+1tW68pHZYgHvg2ohvJ+clhW3ANg==", "requires": { - "lodash": "4.17.10", - "nan": "2.10.0", - "node-pre-gyp": "0.10.0", - "protobufjs": "5.0.3" + "lodash": "^4.15.0", + "nan": "^2.0.0", + "node-pre-gyp": "^0.10.0", + "protobufjs": "^5.0.0" }, "dependencies": { "abbrev": { @@ -5771,8 +5968,8 @@ "version": "1.1.4", "bundled": true, "requires": { - "delegates": "1.0.0", - "readable-stream": "2.3.6" + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" } }, "balanced-match": { @@ -5783,7 +5980,7 @@ "version": "1.1.11", "bundled": true, "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, @@ -5830,7 +6027,7 @@ "version": "1.2.5", "bundled": true, "requires": { - "minipass": "2.2.4" + "minipass": "^2.2.1" } }, "fs.realpath": { @@ -5841,26 +6038,26 @@ "version": "2.7.4", "bundled": true, "requires": { - "aproba": "1.2.0", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.2" + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" } }, "glob": { "version": "7.1.2", "bundled": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "has-unicode": { @@ -5875,15 +6072,15 @@ "version": "3.0.1", "bundled": true, "requires": { - "minimatch": "3.0.4" + "minimatch": "^3.0.4" } }, "inflight": { "version": "1.0.6", "bundled": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { @@ -5898,7 +6095,7 @@ "version": "1.0.0", "bundled": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "isarray": { @@ -5909,7 +6106,7 @@ "version": "3.0.4", "bundled": true, "requires": { - "brace-expansion": "1.1.11" + "brace-expansion": "^1.1.7" } }, "minimist": { @@ -5920,15 +6117,15 @@ "version": "2.2.4", "bundled": true, "requires": { - "safe-buffer": "5.1.1", - "yallist": "3.0.2" + "safe-buffer": "^5.1.1", + "yallist": "^3.0.0" } }, "minizlib": { "version": "1.1.0", "bundled": true, "requires": { - "minipass": "2.2.4" + "minipass": "^2.2.1" } }, "mkdirp": { @@ -5952,33 +6149,33 @@ "version": "2.2.1", "bundled": true, "requires": { - "debug": "2.6.9", - "iconv-lite": "0.4.19", - "sax": "1.2.4" + "debug": "^2.1.2", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" } }, "node-pre-gyp": { "version": "0.10.0", "bundled": true, "requires": { - "detect-libc": "1.0.3", - "mkdirp": "0.5.1", - "needle": "2.2.1", - "nopt": "4.0.1", - "npm-packlist": "1.1.10", - "npmlog": "4.1.2", - "rc": "1.2.7", - "rimraf": "2.6.2", - "semver": "5.5.0", - "tar": "4.4.2" + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.0", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.1.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" } }, "nopt": { "version": "4.0.1", "bundled": true, "requires": { - "abbrev": "1.1.1", - "osenv": "0.1.5" + "abbrev": "1", + "osenv": "^0.1.4" } }, "npm-bundled": { @@ -5989,18 +6186,18 @@ "version": "1.1.10", "bundled": true, "requires": { - "ignore-walk": "3.0.1", - "npm-bundled": "1.0.3" + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" } }, "npmlog": { "version": "4.1.2", "bundled": true, "requires": { - "are-we-there-yet": "1.1.4", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" } }, "number-is-nan": { @@ -6015,7 +6212,7 @@ "version": "1.4.0", "bundled": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "os-homedir": { @@ -6030,8 +6227,8 @@ "version": "0.1.5", "bundled": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, "path-is-absolute": { @@ -6047,40 +6244,40 @@ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.3.tgz", "integrity": "sha512-55Kcx1MhPZX0zTbVosMQEO5R6/rikNXd9b6RQK4KSPcrSIIwoXTtebIczUrXlwaSrbz4x8XUVThGPob1n8I4QA==", "requires": { - "ascli": "1.0.1", - "bytebuffer": "5.0.1", - "glob": "7.1.2", - "yargs": "3.32.0" + "ascli": "~1", + "bytebuffer": "~5", + "glob": "^7.0.5", + "yargs": "^3.10.0" } }, "rc": { "version": "1.2.7", "bundled": true, "requires": { - "deep-extend": "0.5.1", - "ini": "1.3.5", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" + "deep-extend": "^0.5.1", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" } }, "readable-stream": { "version": "2.3.6", "bundled": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "rimraf": { "version": "2.6.2", "bundled": true, "requires": { - "glob": "7.1.2" + "glob": "^7.0.5" } }, "safe-buffer": { @@ -6107,23 +6304,23 @@ "version": "1.0.2", "bundled": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, "string_decoder": { "version": "1.1.1", "bundled": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } }, "strip-ansi": { "version": "3.0.1", "bundled": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "strip-json-comments": { @@ -6134,13 +6331,13 @@ "version": "4.4.2", "bundled": true, "requires": { - "chownr": "1.0.1", - "fs-minipass": "1.2.5", - "minipass": "2.2.4", - "minizlib": "1.1.0", - "mkdirp": "0.5.1", - "safe-buffer": "5.1.2", - "yallist": "3.0.2" + "chownr": "^1.0.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.2.4", + "minizlib": "^1.1.0", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.2" }, "dependencies": { "safe-buffer": { @@ -6157,7 +6354,7 @@ "version": "1.1.2", "bundled": true, "requires": { - "string-width": "1.0.2" + "string-width": "^1.0.2" } }, "wrappy": { @@ -6175,11 +6372,11 @@ "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-2.3.0.tgz", "integrity": "sha512-Jc9/8mV630cZE9FC5tIlJCZNdUjwunvlwOtCz6IDlaiB4Sz68ki29a1+q97sWTnTYroiuF9B135rod9zrQdHLw==", "requires": { - "axios": "0.18.0", - "google-p12-pem": "1.0.2", - "jws": "3.1.5", - "mime": "2.3.1", - "pify": "3.0.0" + "axios": "^0.18.0", + "google-p12-pem": "^1.0.0", + "jws": "^3.1.4", + "mime": "^2.2.0", + "pify": "^3.0.0" } }, "handlebars": { @@ -6188,10 +6385,10 @@ "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", "dev": true, "requires": { - "async": "1.5.2", - "optimist": "0.6.1", - "source-map": "0.4.4", - "uglify-js": "2.8.29" + "async": "^1.4.0", + "optimist": "^0.6.1", + "source-map": "^0.4.4", + "uglify-js": "^2.6" }, "dependencies": { "async": { @@ -6206,7 +6403,7 @@ "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", "dev": true, "requires": { - "amdefine": "1.0.1" + "amdefine": ">=0.0.4" } } } @@ -6221,8 +6418,17 @@ "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", "requires": { - "ajv": "5.5.2", - "har-schema": "2.0.0" + "ajv": "^5.1.0", + "har-schema": "^2.0.0" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" } }, "has-ansi": { @@ -6231,7 +6437,7 @@ "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "has-color": { @@ -6252,13 +6458,19 @@ "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==", "dev": true }, + "has-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", + "dev": true + }, "has-to-string-tag-x": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==", "dev": true, "requires": { - "has-symbol-support-x": "1.4.2" + "has-symbol-support-x": "^1.4.1" } }, "has-value": { @@ -6266,9 +6478,9 @@ "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", "requires": { - "get-value": "2.0.6", - "has-values": "1.0.0", - "isobject": "3.0.1" + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" } }, "has-values": { @@ -6276,8 +6488,8 @@ "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", "requires": { - "is-number": "3.0.0", - "kind-of": "4.0.0" + "is-number": "^3.0.0", + "kind-of": "^4.0.0" }, "dependencies": { "kind-of": { @@ -6285,7 +6497,7 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -6308,8 +6520,8 @@ "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", "dev": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.1" } }, "hosted-git-info": { @@ -6324,12 +6536,12 @@ "integrity": "sha1-G9+HrMoPP55T+k/M6w9LTLsAszg=", "dev": true, "requires": { - "domelementtype": "1.3.0", - "domhandler": "2.4.2", - "domutils": "1.7.0", - "entities": "1.1.1", - "inherits": "2.0.3", - "readable-stream": "2.3.6" + "domelementtype": "^1.3.0", + "domhandler": "^2.3.0", + "domutils": "^1.5.1", + "entities": "^1.1.1", + "inherits": "^2.0.1", + "readable-stream": "^2.0.2" } }, "http-cache-semantics": { @@ -6343,9 +6555,9 @@ "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "requires": { - "assert-plus": "1.0.0", - "jsprim": "1.4.1", - "sshpk": "1.14.1" + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" } }, "hullabaloo-config-manager": { @@ -6354,20 +6566,20 @@ "integrity": "sha512-ztKnkZV0TmxnumCDHHgLGNiDnotu4EHCp9YMkznWuo4uTtCyJ+cu+RNcxUeXYKTllpvLFWnbfWry09yzszgg+A==", "dev": true, "requires": { - "dot-prop": "4.2.0", - "es6-error": "4.1.1", - "graceful-fs": "4.1.11", - "indent-string": "3.2.0", - "json5": "0.5.1", - "lodash.clonedeep": "4.5.0", - "lodash.clonedeepwith": "4.5.0", - "lodash.isequal": "4.5.0", - "lodash.merge": "4.6.1", - "md5-hex": "2.0.0", - "package-hash": "2.0.0", - "pkg-dir": "2.0.0", - "resolve-from": "3.0.0", - "safe-buffer": "5.1.2" + "dot-prop": "^4.1.0", + "es6-error": "^4.0.2", + "graceful-fs": "^4.1.11", + "indent-string": "^3.1.0", + "json5": "^0.5.1", + "lodash.clonedeep": "^4.5.0", + "lodash.clonedeepwith": "^4.5.0", + "lodash.isequal": "^4.5.0", + "lodash.merge": "^4.6.0", + "md5-hex": "^2.0.0", + "package-hash": "^2.0.0", + "pkg-dir": "^2.0.0", + "resolve-from": "^3.0.0", + "safe-buffer": "^5.0.1" } }, "iconv-lite": { @@ -6376,7 +6588,7 @@ "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", "dev": true, "requires": { - "safer-buffer": "2.1.2" + "safer-buffer": ">= 2.1.2 < 3" } }, "ignore": { @@ -6402,8 +6614,8 @@ "integrity": "sha1-sReVcqrNwRxqkQCftDDbyrX2aKg=", "dev": true, "requires": { - "pkg-dir": "2.0.0", - "resolve-cwd": "2.0.0" + "pkg-dir": "^2.0.0", + "resolve-cwd": "^2.0.0" } }, "imurmurhash": { @@ -6428,8 +6640,8 @@ "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { @@ -6449,30 +6661,29 @@ "integrity": "sha512-STx5orGQU1gfrkoI/fMU7lX6CSP7LBGO10gXNgOZhwKhUqbtNjCkYSewJtNnLmWP1tAGN6oyEpG1HFPw5vpa5Q==", "dev": true, "requires": { - "moment": "2.22.1", - "sanitize-html": "1.18.2" + "moment": "^2.14.1", + "sanitize-html": "^1.13.0" } }, "inquirer": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-3.3.0.tgz", - "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-5.2.0.tgz", + "integrity": "sha512-E9BmnJbAKLPGonz0HeWHtbKf+EeSP93paWO3ZYoUpq/aowXvYGjjCSuashhXPpzbArIjBbji39THkxTz9ZeEUQ==", "dev": true, "requires": { - "ansi-escapes": "3.1.0", - "chalk": "2.4.1", - "cli-cursor": "2.1.0", - "cli-width": "2.2.0", - "external-editor": "2.2.0", - "figures": "2.0.0", - "lodash": "4.17.10", + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.0", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^2.1.0", + "figures": "^2.0.0", + "lodash": "^4.3.0", "mute-stream": "0.0.7", - "run-async": "2.3.0", - "rx-lite": "4.0.8", - "rx-lite-aggregates": "4.0.8", - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "through": "2.3.8" + "run-async": "^2.2.0", + "rxjs": "^5.5.2", + "string-width": "^2.1.0", + "strip-ansi": "^4.0.0", + "through": "^2.3.6" }, "dependencies": { "ansi-regex": { @@ -6493,8 +6704,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -6503,7 +6714,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -6514,7 +6725,7 @@ "integrity": "sha1-LHsDFGvB1GvyENCgOXxckatMorA=", "dev": true, "requires": { - "espower-loader": "1.2.2" + "espower-loader": "^1.0.0" } }, "into-stream": { @@ -6523,8 +6734,8 @@ "integrity": "sha1-lvsKk2wSur1v8XUqF9BWFqvQlMY=", "dev": true, "requires": { - "from2": "2.3.0", - "p-is-promise": "1.1.0" + "from2": "^2.1.1", + "p-is-promise": "^1.1.0" } }, "invariant": { @@ -6533,7 +6744,7 @@ "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", "dev": true, "requires": { - "loose-envify": "1.3.1" + "loose-envify": "^1.0.0" } }, "invert-kv": { @@ -6552,7 +6763,7 @@ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" }, "dependencies": { "kind-of": { @@ -6560,7 +6771,7 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -6577,7 +6788,7 @@ "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", "dev": true, "requires": { - "binary-extensions": "1.11.0" + "binary-extensions": "^1.0.0" } }, "is-buffer": { @@ -6591,16 +6802,22 @@ "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", "dev": true, "requires": { - "builtin-modules": "1.1.1" + "builtin-modules": "^1.0.0" } }, + "is-callable": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.3.tgz", + "integrity": "sha1-hut1OSgF3cM69xySoO7fdO52BLI=", + "dev": true + }, "is-ci": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.1.0.tgz", "integrity": "sha512-c7TnwxLePuqIlxHgr7xtxzycJPegNHFuIrBkwbf8hc58//+Op1CqFkyS+xnIMkwn9UsJIwc174BIjkyBmSpjKg==", "dev": true, "requires": { - "ci-info": "1.1.3" + "ci-info": "^1.0.0" } }, "is-data-descriptor": { @@ -6608,7 +6825,7 @@ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" }, "dependencies": { "kind-of": { @@ -6616,19 +6833,25 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } }, + "is-date-object": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", + "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", + "dev": true + }, "is-descriptor": { "version": "0.1.6", "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" }, "dependencies": { "kind-of": { @@ -6650,7 +6873,7 @@ "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", "dev": true, "requires": { - "is-primitive": "2.0.0" + "is-primitive": "^2.0.0" } }, "is-error": { @@ -6675,7 +6898,7 @@ "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "is-fullwidth-code-point": { @@ -6683,7 +6906,7 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "is-generator-fn": { @@ -6697,7 +6920,7 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", "requires": { - "is-extglob": "2.1.1" + "is-extglob": "^2.1.1" } }, "is-installed-globally": { @@ -6706,8 +6929,8 @@ "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", "dev": true, "requires": { - "global-dirs": "0.1.1", - "is-path-inside": "1.0.1" + "global-dirs": "^0.1.0", + "is-path-inside": "^1.0.0" } }, "is-npm": { @@ -6721,7 +6944,7 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" }, "dependencies": { "kind-of": { @@ -6729,7 +6952,7 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -6752,7 +6975,7 @@ "integrity": "sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==", "dev": true, "requires": { - "symbol-observable": "1.2.0" + "symbol-observable": "^1.1.0" } }, "is-odd": { @@ -6760,7 +6983,7 @@ "resolved": "https://registry.npmjs.org/is-odd/-/is-odd-2.0.0.tgz", "integrity": "sha512-OTiixgpZAT1M4NHgS5IguFp/Vz2VI3U7Goh4/HA1adtwyLtSBrxYlcSYkhpAE07s4fKEcjrFxyvtQBND4vFQyQ==", "requires": { - "is-number": "4.0.0" + "is-number": "^4.0.0" }, "dependencies": { "is-number": { @@ -6782,7 +7005,7 @@ "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", "dev": true, "requires": { - "is-path-inside": "1.0.1" + "is-path-inside": "^1.0.0" } }, "is-path-inside": { @@ -6791,7 +7014,7 @@ "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", "dev": true, "requires": { - "path-is-inside": "1.0.2" + "path-is-inside": "^1.0.1" } }, "is-plain-obj": { @@ -6805,7 +7028,7 @@ "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "requires": { - "isobject": "3.0.1" + "isobject": "^3.0.1" } }, "is-posix-bracket": { @@ -6832,6 +7055,15 @@ "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", "dev": true }, + "is-regex": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", + "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", + "dev": true, + "requires": { + "has": "^1.0.1" + } + }, "is-resolvable": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", @@ -6855,6 +7087,12 @@ "resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.4.tgz", "integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==" }, + "is-symbol": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz", + "integrity": "sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI=", + "dev": true + }, "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", @@ -6898,14 +7136,35 @@ "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" }, + "istanbul-lib-coverage": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.0.tgz", + "integrity": "sha512-yMSw5xLIbdaxiVXHk3amfNM2WeBxLrwH/BCyZ9HvA/fylwziAIJOG2rKqWyLqEJqwKT725vxxqidv+SyynnGAA==", + "dev": true + }, + "istanbul-lib-instrument": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-2.2.1.tgz", + "integrity": "sha512-azWDq6BXKEZV1dGAnqCzBO5S+k3hX6IP63NHKXI9+sPNtaWEymJ6vh0rl65ZLgt8kbn7lmt63kdcOMXomW4B4Q==", + "dev": true, + "requires": { + "@babel/generator": "7.0.0-beta.49", + "@babel/parser": "7.0.0-beta.49", + "@babel/template": "7.0.0-beta.49", + "@babel/traverse": "7.0.0-beta.49", + "@babel/types": "7.0.0-beta.49", + "istanbul-lib-coverage": "^2.0.0", + "semver": "^5.5.0" + } + }, "isurl": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==", "dev": true, "requires": { - "has-to-string-tag-x": "1.4.1", - "is-object": "1.0.1" + "has-to-string-tag-x": "^1.2.0", + "is-object": "^1.0.1" } }, "jest-docblock": { @@ -6932,8 +7191,8 @@ "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", "dev": true, "requires": { - "argparse": "1.0.10", - "esprima": "4.0.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" } }, "js2xmlparser": { @@ -6942,7 +7201,7 @@ "integrity": "sha1-P7YOqgicVED5MZ9RdgzNB+JJlzM=", "dev": true, "requires": { - "xmlcreate": "1.0.2" + "xmlcreate": "^1.0.1" } }, "jsbn": { @@ -6958,17 +7217,17 @@ "dev": true, "requires": { "babylon": "7.0.0-beta.19", - "bluebird": "3.5.1", - "catharsis": "0.8.9", - "escape-string-regexp": "1.0.5", - "js2xmlparser": "3.0.0", - "klaw": "2.0.0", - "marked": "0.3.19", - "mkdirp": "0.5.1", - "requizzle": "0.2.1", - "strip-json-comments": "2.0.1", + "bluebird": "~3.5.0", + "catharsis": "~0.8.9", + "escape-string-regexp": "~1.0.5", + "js2xmlparser": "~3.0.0", + "klaw": "~2.0.0", + "marked": "~0.3.6", + "mkdirp": "~0.5.1", + "requizzle": "~0.2.1", + "strip-json-comments": "~2.0.1", "taffydb": "2.6.2", - "underscore": "1.8.3" + "underscore": "~1.8.3" }, "dependencies": { "babylon": { @@ -7030,7 +7289,7 @@ "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", "dev": true, "requires": { - "graceful-fs": "4.1.11" + "graceful-fs": "^4.1.6" } }, "jsprim": { @@ -7057,7 +7316,7 @@ "requires": { "buffer-equal-constant-time": "1.0.1", "ecdsa-sig-formatter": "1.0.10", - "safe-buffer": "5.1.2" + "safe-buffer": "^5.0.1" } }, "jws": { @@ -7065,8 +7324,8 @@ "resolved": "https://registry.npmjs.org/jws/-/jws-3.1.5.tgz", "integrity": "sha512-GsCSexFADNQUr8T5HPJvayTjvPIfoyJPtLQBwn5a4WZQchcrPMPMAWcC1AzJVRDKyD6ZPROPAxgv6rfHViO4uQ==", "requires": { - "jwa": "1.1.6", - "safe-buffer": "5.1.2" + "jwa": "^1.1.5", + "safe-buffer": "^5.0.1" } }, "keyv": { @@ -7089,7 +7348,7 @@ "integrity": "sha1-WcEo4Nxc5BAgEVEZTuucv4WGUPY=", "dev": true, "requires": { - "graceful-fs": "4.1.11" + "graceful-fs": "^4.1.9" } }, "last-line-stream": { @@ -7098,7 +7357,7 @@ "integrity": "sha1-0bZNafhv8kry0EiDos7uFFIKVgA=", "dev": true, "requires": { - "through2": "2.0.3" + "through2": "^2.0.0" } }, "latest-version": { @@ -7107,7 +7366,7 @@ "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=", "dev": true, "requires": { - "package-json": "4.0.1" + "package-json": "^4.0.0" } }, "lazy-cache": { @@ -7122,7 +7381,7 @@ "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "requires": { - "invert-kv": "1.0.0" + "invert-kv": "^1.0.0" } }, "levn": { @@ -7131,8 +7390,8 @@ "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", "dev": true, "requires": { - "prelude-ls": "1.1.2", - "type-check": "0.3.2" + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" } }, "load-json-file": { @@ -7141,10 +7400,10 @@ "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "strip-bom": "3.0.0" + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "strip-bom": "^3.0.0" }, "dependencies": { "pify": { @@ -7161,8 +7420,8 @@ "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "dev": true, "requires": { - "p-locate": "2.0.0", - "path-exists": "3.0.0" + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" } }, "lodash": { @@ -7269,7 +7528,7 @@ "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", "dev": true, "requires": { - "js-tokens": "3.0.2" + "js-tokens": "^3.0.0" } }, "loud-rejection": { @@ -7278,8 +7537,8 @@ "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", "dev": true, "requires": { - "currently-unhandled": "0.4.1", - "signal-exit": "3.0.2" + "currently-unhandled": "^0.4.1", + "signal-exit": "^3.0.0" } }, "lowercase-keys": { @@ -7293,8 +7552,8 @@ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.3.tgz", "integrity": "sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA==", "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" } }, "make-dir": { @@ -7303,7 +7562,7 @@ "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", "dev": true, "requires": { - "pify": "3.0.0" + "pify": "^3.0.0" } }, "map-cache": { @@ -7322,7 +7581,7 @@ "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", "requires": { - "object-visit": "1.0.1" + "object-visit": "^1.0.0" } }, "marked": { @@ -7337,7 +7596,7 @@ "integrity": "sha512-aZGv6JBTHqfqAd09jmAlbKnAICTfIvb5Z8gXVxPB5WZtFfHMaAMdACL7tQflD2V+6/8KNcY8s6DYtWLgpJP5lA==", "dev": true, "requires": { - "escape-string-regexp": "1.0.5" + "escape-string-regexp": "^1.0.4" } }, "math-random": { @@ -7352,7 +7611,7 @@ "integrity": "sha1-0FiOnxx0lUSS7NJKwKxs6ZfZLjM=", "dev": true, "requires": { - "md5-o-matic": "0.1.1" + "md5-o-matic": "^0.1.1" } }, "md5-o-matic": { @@ -7367,7 +7626,7 @@ "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", "dev": true, "requires": { - "mimic-fn": "1.2.0" + "mimic-fn": "^1.0.0" } }, "meow": { @@ -7376,16 +7635,16 @@ "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", "dev": true, "requires": { - "camelcase-keys": "2.1.0", - "decamelize": "1.2.0", - "loud-rejection": "1.6.0", - "map-obj": "1.0.1", - "minimist": "1.2.0", - "normalize-package-data": "2.4.0", - "object-assign": "4.1.1", - "read-pkg-up": "1.0.1", - "redent": "1.0.0", - "trim-newlines": "1.0.0" + "camelcase-keys": "^2.0.0", + "decamelize": "^1.1.2", + "loud-rejection": "^1.0.0", + "map-obj": "^1.0.1", + "minimist": "^1.1.3", + "normalize-package-data": "^2.3.4", + "object-assign": "^4.0.1", + "read-pkg-up": "^1.0.1", + "redent": "^1.0.0", + "trim-newlines": "^1.0.0" }, "dependencies": { "find-up": { @@ -7394,8 +7653,8 @@ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "load-json-file": { @@ -7404,11 +7663,11 @@ "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", - "strip-bom": "2.0.0" + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" } }, "minimist": { @@ -7423,7 +7682,7 @@ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "dev": true, "requires": { - "pinkie-promise": "2.0.1" + "pinkie-promise": "^2.0.0" } }, "path-type": { @@ -7432,9 +7691,9 @@ "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "pify": { @@ -7455,7 +7714,7 @@ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { - "pinkie": "2.0.4" + "pinkie": "^2.0.0" } }, "read-pkg": { @@ -7464,9 +7723,9 @@ "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", "dev": true, "requires": { - "load-json-file": "1.1.0", - "normalize-package-data": "2.4.0", - "path-type": "1.1.0" + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" } }, "read-pkg-up": { @@ -7475,8 +7734,8 @@ "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", "dev": true, "requires": { - "find-up": "1.1.2", - "read-pkg": "1.1.0" + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" } }, "strip-bom": { @@ -7485,7 +7744,7 @@ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { - "is-utf8": "0.2.1" + "is-utf8": "^0.2.0" } } } @@ -7502,7 +7761,7 @@ "integrity": "sha1-65aDOLXe1c7tgs7AMH3sui2OqZQ=", "dev": true, "requires": { - "estraverse": "4.2.0" + "estraverse": "^4.0.0" } }, "merge2": { @@ -7521,19 +7780,19 @@ "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", "requires": { - "arr-diff": "4.0.0", - "array-unique": "0.3.2", - "braces": "2.3.2", - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "extglob": "2.0.4", - "fragment-cache": "0.2.1", - "kind-of": "6.0.2", - "nanomatch": "1.2.9", - "object.pick": "1.3.0", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" } }, "mime": { @@ -7551,7 +7810,7 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "requires": { - "mime-db": "1.33.0" + "mime-db": "~1.33.0" } }, "mimic-fn": { @@ -7571,7 +7830,7 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "requires": { - "brace-expansion": "1.1.11" + "brace-expansion": "^1.1.7" } }, "minimist": { @@ -7585,8 +7844,8 @@ "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", "requires": { - "for-in": "1.0.2", - "is-extendable": "1.0.1" + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" }, "dependencies": { "is-extendable": { @@ -7594,7 +7853,7 @@ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "requires": { - "is-plain-object": "2.0.4" + "is-plain-object": "^2.0.4" } } } @@ -7661,7 +7920,7 @@ "integrity": "sha1-sJ/IWG6qF/gdV1xK0C4Pej9rEQU=", "dev": true, "requires": { - "source-map": "0.1.43" + "source-map": "^0.1.34" }, "dependencies": { "source-map": { @@ -7670,7 +7929,7 @@ "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", "dev": true, "requires": { - "amdefine": "1.0.1" + "amdefine": ">=0.0.4" } } } @@ -7681,10 +7940,10 @@ "integrity": "sha1-nHkGoi+0wCkZ4vX3UWG0zb1LKis=", "dev": true, "requires": { - "array-differ": "1.0.0", - "array-union": "1.0.2", - "arrify": "1.0.1", - "minimatch": "3.0.4" + "array-differ": "^1.0.0", + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "minimatch": "^3.0.0" } }, "mute-stream": { @@ -7703,18 +7962,18 @@ "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.9.tgz", "integrity": "sha512-n8R9bS8yQ6eSXaV6jHUpKzD8gLsin02w1HSFiegwrs9E098Ylhw5jdyKPaYqvHknHaSCKTPp7C8dGCQ0q9koXA==", "requires": { - "arr-diff": "4.0.0", - "array-unique": "0.3.2", - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "fragment-cache": "0.2.1", - "is-odd": "2.0.0", - "is-windows": "1.0.2", - "kind-of": "6.0.2", - "object.pick": "1.3.0", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-odd": "^2.0.0", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" } }, "natural-compare": { @@ -7729,17 +7988,23 @@ "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", "dev": true }, + "nice-try": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.4.tgz", + "integrity": "sha512-2NpiFHqC87y/zFke0fC0spBXL3bBsoh/p5H1EFhshxjCR5+0g2d6BiXbUFz9v1sAcxsk2htp2eQnNIci2dIYcA==", + "dev": true + }, "nise": { "version": "1.3.3", "resolved": "https://registry.npmjs.org/nise/-/nise-1.3.3.tgz", "integrity": "sha512-v1J/FLUB9PfGqZLGDBhQqODkbLotP0WtLo9R4EJY2PPu5f5Xg4o0rA8FDlmrjFSv9vBBKcfnOSpfYYuu5RTHqg==", "dev": true, "requires": { - "@sinonjs/formatio": "2.0.0", - "just-extend": "1.1.27", - "lolex": "2.6.0", - "path-to-regexp": "1.7.0", - "text-encoding": "0.6.4" + "@sinonjs/formatio": "^2.0.0", + "just-extend": "^1.1.27", + "lolex": "^2.3.2", + "path-to-regexp": "^1.7.0", + "text-encoding": "^0.6.4" } }, "node-forge": { @@ -7753,10 +8018,10 @@ "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", "dev": true, "requires": { - "hosted-git-info": "2.6.0", - "is-builtin-module": "1.0.0", - "semver": "5.5.0", - "validate-npm-package-license": "3.0.3" + "hosted-git-info": "^2.1.4", + "is-builtin-module": "^1.0.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" } }, "normalize-path": { @@ -7765,7 +8030,7 @@ "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", "dev": true, "requires": { - "remove-trailing-separator": "1.1.0" + "remove-trailing-separator": "^1.0.1" } }, "normalize-url": { @@ -7774,9 +8039,9 @@ "integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==", "dev": true, "requires": { - "prepend-http": "2.0.0", - "query-string": "5.1.1", - "sort-keys": "2.0.0" + "prepend-http": "^2.0.0", + "query-string": "^5.0.1", + "sort-keys": "^2.0.0" }, "dependencies": { "prepend-http": { @@ -7793,7 +8058,7 @@ "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, "requires": { - "path-key": "2.0.1" + "path-key": "^2.0.0" } }, "number-is-nan": { @@ -7802,38 +8067,38 @@ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, "nyc": { - "version": "11.8.0", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.8.0.tgz", - "integrity": "sha512-PUFq1PSsx5OinSk5g5aaZygcDdI3QQT5XUlbR9QRMihtMS6w0Gm8xj4BxmKeeAlpQXC5M2DIhH16Y+KejceivQ==", - "dev": true, - "requires": { - "archy": "1.0.0", - "arrify": "1.0.1", - "caching-transform": "1.0.1", - "convert-source-map": "1.5.1", - "debug-log": "1.0.1", - "default-require-extensions": "1.0.0", - "find-cache-dir": "0.1.1", - "find-up": "2.1.0", - "foreground-child": "1.5.6", - "glob": "7.1.2", - "istanbul-lib-coverage": "1.2.0", - "istanbul-lib-hook": "1.1.0", - "istanbul-lib-instrument": "1.10.1", - "istanbul-lib-report": "1.1.3", - "istanbul-lib-source-maps": "1.2.3", - "istanbul-reports": "1.4.0", - "md5-hex": "1.3.0", - "merge-source-map": "1.1.0", - "micromatch": "3.1.10", - "mkdirp": "0.5.1", - "resolve-from": "2.0.0", - "rimraf": "2.6.2", - "signal-exit": "3.0.2", - "spawn-wrap": "1.4.2", - "test-exclude": "4.2.1", + "version": "12.0.2", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-12.0.2.tgz", + "integrity": "sha1-ikpO1pCWbBHsWH/4fuoMEsl0upk=", + "dev": true, + "requires": { + "archy": "^1.0.0", + "arrify": "^1.0.1", + "caching-transform": "^1.0.0", + "convert-source-map": "^1.5.1", + "debug-log": "^1.0.1", + "default-require-extensions": "^1.0.0", + "find-cache-dir": "^0.1.1", + "find-up": "^2.1.0", + "foreground-child": "^1.5.3", + "glob": "^7.0.6", + "istanbul-lib-coverage": "^1.2.0", + "istanbul-lib-hook": "^1.1.0", + "istanbul-lib-instrument": "^2.1.0", + "istanbul-lib-report": "^1.1.3", + "istanbul-lib-source-maps": "^1.2.5", + "istanbul-reports": "^1.4.1", + "md5-hex": "^1.2.0", + "merge-source-map": "^1.1.0", + "micromatch": "^3.1.10", + "mkdirp": "^0.5.0", + "resolve-from": "^2.0.0", + "rimraf": "^2.6.2", + "signal-exit": "^3.0.1", + "spawn-wrap": "^1.4.2", + "test-exclude": "^4.2.0", "yargs": "11.1.0", - "yargs-parser": "8.1.0" + "yargs-parser": "^8.0.0" }, "dependencies": { "align-text": { @@ -7841,9 +8106,9 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2", - "longest": "1.0.1", - "repeat-string": "1.6.1" + "kind-of": "^3.0.2", + "longest": "^1.0.1", + "repeat-string": "^1.5.2" } }, "amdefine": { @@ -7852,12 +8117,7 @@ "dev": true }, "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", + "version": "3.0.0", "bundled": true, "dev": true }, @@ -7866,7 +8126,7 @@ "bundled": true, "dev": true, "requires": { - "default-require-extensions": "1.0.0" + "default-require-extensions": "^1.0.0" } }, "archy": { @@ -7914,92 +8174,6 @@ "bundled": true, "dev": true }, - "babel-code-frame": { - "version": "6.26.0", - "bundled": true, - "dev": true, - "requires": { - "chalk": "1.1.3", - "esutils": "2.0.2", - "js-tokens": "3.0.2" - } - }, - "babel-generator": { - "version": "6.26.1", - "bundled": true, - "dev": true, - "requires": { - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "detect-indent": "4.0.0", - "jsesc": "1.3.0", - "lodash": "4.17.10", - "source-map": "0.5.7", - "trim-right": "1.0.1" - } - }, - "babel-messages": { - "version": "6.23.0", - "bundled": true, - "dev": true, - "requires": { - "babel-runtime": "6.26.0" - } - }, - "babel-runtime": { - "version": "6.26.0", - "bundled": true, - "dev": true, - "requires": { - "core-js": "2.5.6", - "regenerator-runtime": "0.11.1" - } - }, - "babel-template": { - "version": "6.26.0", - "bundled": true, - "dev": true, - "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "lodash": "4.17.10" - } - }, - "babel-traverse": { - "version": "6.26.0", - "bundled": true, - "dev": true, - "requires": { - "babel-code-frame": "6.26.0", - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "debug": "2.6.9", - "globals": "9.18.0", - "invariant": "2.2.4", - "lodash": "4.17.10" - } - }, - "babel-types": { - "version": "6.26.0", - "bundled": true, - "dev": true, - "requires": { - "babel-runtime": "6.26.0", - "esutils": "2.0.2", - "lodash": "4.17.10", - "to-fast-properties": "1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "bundled": true, - "dev": true - }, "balanced-match": { "version": "1.0.0", "bundled": true, @@ -8010,13 +8184,13 @@ "bundled": true, "dev": true, "requires": { - "cache-base": "1.0.1", - "class-utils": "0.3.6", - "component-emitter": "1.2.1", - "define-property": "1.0.0", - "isobject": "3.0.1", - "mixin-deep": "1.3.1", - "pascalcase": "0.1.1" + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" }, "dependencies": { "define-property": { @@ -8024,7 +8198,7 @@ "bundled": true, "dev": true, "requires": { - "is-descriptor": "1.0.2" + "is-descriptor": "^1.0.0" } }, "is-accessor-descriptor": { @@ -8032,7 +8206,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -8040,7 +8214,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -8048,16 +8222,11 @@ "bundled": true, "dev": true, "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } }, - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - }, "kind-of": { "version": "6.0.2", "bundled": true, @@ -8070,7 +8239,7 @@ "bundled": true, "dev": true, "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, @@ -8079,16 +8248,16 @@ "bundled": true, "dev": true, "requires": { - "arr-flatten": "1.1.0", - "array-unique": "0.3.2", - "extend-shallow": "2.0.1", - "fill-range": "4.0.0", - "isobject": "3.0.1", - "repeat-element": "1.1.2", - "snapdragon": "0.8.2", - "snapdragon-node": "2.1.1", - "split-string": "3.1.0", - "to-regex": "3.0.2" + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" }, "dependencies": { "extend-shallow": { @@ -8096,7 +8265,7 @@ "bundled": true, "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -8111,22 +8280,15 @@ "bundled": true, "dev": true, "requires": { - "collection-visit": "1.0.0", - "component-emitter": "1.2.1", - "get-value": "2.0.6", - "has-value": "1.0.0", - "isobject": "3.0.1", - "set-value": "2.0.0", - "to-object-path": "0.3.0", - "union-value": "1.0.0", - "unset-value": "1.0.0" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - } + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" } }, "caching-transform": { @@ -8134,9 +8296,9 @@ "bundled": true, "dev": true, "requires": { - "md5-hex": "1.3.0", - "mkdirp": "0.5.1", - "write-file-atomic": "1.3.4" + "md5-hex": "^1.2.0", + "mkdirp": "^0.5.1", + "write-file-atomic": "^1.1.4" } }, "camelcase": { @@ -8151,20 +8313,8 @@ "dev": true, "optional": true, "requires": { - "align-text": "0.1.4", - "lazy-cache": "1.0.4" - } - }, - "chalk": { - "version": "1.1.3", - "bundled": true, - "dev": true, - "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" + "align-text": "^0.1.3", + "lazy-cache": "^1.0.3" } }, "class-utils": { @@ -8172,10 +8322,10 @@ "bundled": true, "dev": true, "requires": { - "arr-union": "3.1.0", - "define-property": "0.2.5", - "isobject": "3.0.1", - "static-extend": "0.1.2" + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" }, "dependencies": { "define-property": { @@ -8183,13 +8333,8 @@ "bundled": true, "dev": true, "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } - }, - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true } } }, @@ -8199,8 +8344,8 @@ "dev": true, "optional": true, "requires": { - "center-align": "0.1.3", - "right-align": "0.1.3", + "center-align": "^0.1.1", + "right-align": "^0.1.1", "wordwrap": "0.0.2" }, "dependencies": { @@ -8222,8 +8367,8 @@ "bundled": true, "dev": true, "requires": { - "map-visit": "1.0.0", - "object-visit": "1.0.1" + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" } }, "commondir": { @@ -8251,22 +8396,17 @@ "bundled": true, "dev": true }, - "core-js": { - "version": "2.5.6", - "bundled": true, - "dev": true - }, "cross-spawn": { "version": "4.0.2", "bundled": true, "dev": true, "requires": { - "lru-cache": "4.1.3", - "which": "1.3.0" + "lru-cache": "^4.0.1", + "which": "^1.2.9" } }, "debug": { - "version": "2.6.9", + "version": "3.1.0", "bundled": true, "dev": true, "requires": { @@ -8293,7 +8433,7 @@ "bundled": true, "dev": true, "requires": { - "strip-bom": "2.0.0" + "strip-bom": "^2.0.0" } }, "define-property": { @@ -8301,8 +8441,8 @@ "bundled": true, "dev": true, "requires": { - "is-descriptor": "1.0.2", - "isobject": "3.0.1" + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" }, "dependencies": { "is-accessor-descriptor": { @@ -8310,7 +8450,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -8318,7 +8458,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -8326,16 +8466,11 @@ "bundled": true, "dev": true, "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } }, - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - }, "kind-of": { "version": "6.0.2", "bundled": true, @@ -8343,44 +8478,26 @@ } } }, - "detect-indent": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "repeating": "2.0.1" - } - }, "error-ex": { "version": "1.3.1", "bundled": true, "dev": true, "requires": { - "is-arrayish": "0.2.1" + "is-arrayish": "^0.2.1" } }, - "escape-string-regexp": { - "version": "1.0.5", - "bundled": true, - "dev": true - }, - "esutils": { - "version": "2.0.2", - "bundled": true, - "dev": true - }, - "execa": { - "version": "0.7.0", + "execa": { + "version": "0.7.0", "bundled": true, "dev": true, "requires": { - "cross-spawn": "5.1.0", - "get-stream": "3.0.0", - "is-stream": "1.1.0", - "npm-run-path": "2.0.2", - "p-finally": "1.0.0", - "signal-exit": "3.0.2", - "strip-eof": "1.0.0" + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" }, "dependencies": { "cross-spawn": { @@ -8388,9 +8505,9 @@ "bundled": true, "dev": true, "requires": { - "lru-cache": "4.1.3", - "shebang-command": "1.2.0", - "which": "1.3.0" + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" } } } @@ -8400,21 +8517,29 @@ "bundled": true, "dev": true, "requires": { - "debug": "2.6.9", - "define-property": "0.2.5", - "extend-shallow": "2.0.1", - "posix-character-classes": "0.1.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" }, "dependencies": { + "debug": { + "version": "2.6.9", + "bundled": true, + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, "define-property": { "version": "0.2.5", "bundled": true, "dev": true, "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } }, "extend-shallow": { @@ -8422,7 +8547,7 @@ "bundled": true, "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -8432,8 +8557,8 @@ "bundled": true, "dev": true, "requires": { - "assign-symbols": "1.0.0", - "is-extendable": "1.0.1" + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" }, "dependencies": { "is-extendable": { @@ -8441,7 +8566,7 @@ "bundled": true, "dev": true, "requires": { - "is-plain-object": "2.0.4" + "is-plain-object": "^2.0.4" } } } @@ -8451,14 +8576,14 @@ "bundled": true, "dev": true, "requires": { - "array-unique": "0.3.2", - "define-property": "1.0.0", - "expand-brackets": "2.1.4", - "extend-shallow": "2.0.1", - "fragment-cache": "0.2.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" }, "dependencies": { "define-property": { @@ -8466,7 +8591,7 @@ "bundled": true, "dev": true, "requires": { - "is-descriptor": "1.0.2" + "is-descriptor": "^1.0.0" } }, "extend-shallow": { @@ -8474,7 +8599,7 @@ "bundled": true, "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } }, "is-accessor-descriptor": { @@ -8482,7 +8607,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -8490,7 +8615,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -8498,9 +8623,9 @@ "bundled": true, "dev": true, "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } }, "kind-of": { @@ -8515,10 +8640,10 @@ "bundled": true, "dev": true, "requires": { - "extend-shallow": "2.0.1", - "is-number": "3.0.0", - "repeat-string": "1.6.1", - "to-regex-range": "2.1.1" + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" }, "dependencies": { "extend-shallow": { @@ -8526,7 +8651,7 @@ "bundled": true, "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -8536,9 +8661,9 @@ "bundled": true, "dev": true, "requires": { - "commondir": "1.0.1", - "mkdirp": "0.5.1", - "pkg-dir": "1.0.0" + "commondir": "^1.0.1", + "mkdirp": "^0.5.1", + "pkg-dir": "^1.0.0" } }, "find-up": { @@ -8546,7 +8671,7 @@ "bundled": true, "dev": true, "requires": { - "locate-path": "2.0.0" + "locate-path": "^2.0.0" } }, "for-in": { @@ -8559,8 +8684,8 @@ "bundled": true, "dev": true, "requires": { - "cross-spawn": "4.0.2", - "signal-exit": "3.0.2" + "cross-spawn": "^4", + "signal-exit": "^3.0.0" } }, "fragment-cache": { @@ -8568,7 +8693,7 @@ "bundled": true, "dev": true, "requires": { - "map-cache": "0.2.2" + "map-cache": "^0.2.2" } }, "fs.realpath": { @@ -8596,19 +8721,14 @@ "bundled": true, "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, - "globals": { - "version": "9.18.0", - "bundled": true, - "dev": true - }, "graceful-fs": { "version": "4.1.11", "bundled": true, @@ -8619,10 +8739,10 @@ "bundled": true, "dev": true, "requires": { - "async": "1.5.2", - "optimist": "0.6.1", - "source-map": "0.4.4", - "uglify-js": "2.8.29" + "async": "^1.4.0", + "optimist": "^0.6.1", + "source-map": "^0.4.4", + "uglify-js": "^2.6" }, "dependencies": { "source-map": { @@ -8630,39 +8750,19 @@ "bundled": true, "dev": true, "requires": { - "amdefine": "1.0.1" + "amdefine": ">=0.0.4" } } } }, - "has-ansi": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "2.1.1" - } - }, - "has-flag": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, "has-value": { "version": "1.0.0", "bundled": true, "dev": true, "requires": { - "get-value": "2.0.6", - "has-values": "1.0.0", - "isobject": "3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - } + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" } }, "has-values": { @@ -8670,34 +8770,16 @@ "bundled": true, "dev": true, "requires": { - "is-number": "3.0.0", - "kind-of": "4.0.0" + "is-number": "^3.0.0", + "kind-of": "^4.0.0" }, "dependencies": { - "is-number": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, "kind-of": { "version": "4.0.0", "bundled": true, "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -8717,8 +8799,8 @@ "bundled": true, "dev": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { @@ -8726,14 +8808,6 @@ "bundled": true, "dev": true }, - "invariant": { - "version": "2.2.4", - "bundled": true, - "dev": true, - "requires": { - "loose-envify": "1.3.1" - } - }, "invert-kv": { "version": "1.0.0", "bundled": true, @@ -8744,7 +8818,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" } }, "is-arrayish": { @@ -8762,7 +8836,7 @@ "bundled": true, "dev": true, "requires": { - "builtin-modules": "1.1.1" + "builtin-modules": "^1.0.0" } }, "is-data-descriptor": { @@ -8770,7 +8844,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" } }, "is-descriptor": { @@ -8778,9 +8852,9 @@ "bundled": true, "dev": true, "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" }, "dependencies": { "kind-of": { @@ -8795,14 +8869,6 @@ "bundled": true, "dev": true }, - "is-finite": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "number-is-nan": "1.0.1" - } - }, "is-fullwidth-code-point": { "version": "2.0.0", "bundled": true, @@ -8813,7 +8879,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" } }, "is-odd": { @@ -8821,7 +8887,7 @@ "bundled": true, "dev": true, "requires": { - "is-number": "4.0.0" + "is-number": "^4.0.0" }, "dependencies": { "is-number": { @@ -8836,14 +8902,7 @@ "bundled": true, "dev": true, "requires": { - "isobject": "3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - } + "isobject": "^3.0.1" } }, "is-stream": { @@ -8886,21 +8945,7 @@ "bundled": true, "dev": true, "requires": { - "append-transform": "0.4.0" - } - }, - "istanbul-lib-instrument": { - "version": "1.10.1", - "bundled": true, - "dev": true, - "requires": { - "babel-generator": "6.26.1", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "istanbul-lib-coverage": "1.2.0", - "semver": "5.5.0" + "append-transform": "^0.4.0" } }, "istanbul-lib-report": { @@ -8908,68 +8953,53 @@ "bundled": true, "dev": true, "requires": { - "istanbul-lib-coverage": "1.2.0", - "mkdirp": "0.5.1", - "path-parse": "1.0.5", - "supports-color": "3.2.3" + "istanbul-lib-coverage": "^1.1.2", + "mkdirp": "^0.5.1", + "path-parse": "^1.0.5", + "supports-color": "^3.1.2" }, "dependencies": { + "has-flag": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, "supports-color": { "version": "3.2.3", "bundled": true, "dev": true, "requires": { - "has-flag": "1.0.0" + "has-flag": "^1.0.0" } } } }, "istanbul-lib-source-maps": { - "version": "1.2.3", + "version": "1.2.5", "bundled": true, "dev": true, "requires": { - "debug": "3.1.0", - "istanbul-lib-coverage": "1.2.0", - "mkdirp": "0.5.1", - "rimraf": "2.6.2", - "source-map": "0.5.7" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "ms": "2.0.0" - } - } + "debug": "^3.1.0", + "istanbul-lib-coverage": "^1.2.0", + "mkdirp": "^0.5.1", + "rimraf": "^2.6.1", + "source-map": "^0.5.3" } }, "istanbul-reports": { - "version": "1.4.0", + "version": "1.4.1", "bundled": true, "dev": true, "requires": { - "handlebars": "4.0.11" + "handlebars": "^4.0.3" } }, - "js-tokens": { - "version": "3.0.2", - "bundled": true, - "dev": true - }, - "jsesc": { - "version": "1.3.0", - "bundled": true, - "dev": true - }, "kind-of": { "version": "3.2.2", "bundled": true, "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } }, "lazy-cache": { @@ -8983,7 +9013,7 @@ "bundled": true, "dev": true, "requires": { - "invert-kv": "1.0.0" + "invert-kv": "^1.0.0" } }, "load-json-file": { @@ -8991,11 +9021,11 @@ "bundled": true, "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", - "strip-bom": "2.0.0" + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" } }, "locate-path": { @@ -9003,8 +9033,8 @@ "bundled": true, "dev": true, "requires": { - "p-locate": "2.0.0", - "path-exists": "3.0.0" + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" }, "dependencies": { "path-exists": { @@ -9014,31 +9044,18 @@ } } }, - "lodash": { - "version": "4.17.10", - "bundled": true, - "dev": true - }, "longest": { "version": "1.0.1", "bundled": true, "dev": true }, - "loose-envify": { - "version": "1.3.1", - "bundled": true, - "dev": true, - "requires": { - "js-tokens": "3.0.2" - } - }, "lru-cache": { "version": "4.1.3", "bundled": true, "dev": true, "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" } }, "map-cache": { @@ -9051,7 +9068,7 @@ "bundled": true, "dev": true, "requires": { - "object-visit": "1.0.1" + "object-visit": "^1.0.0" } }, "md5-hex": { @@ -9059,7 +9076,7 @@ "bundled": true, "dev": true, "requires": { - "md5-o-matic": "0.1.1" + "md5-o-matic": "^0.1.1" } }, "md5-o-matic": { @@ -9072,7 +9089,7 @@ "bundled": true, "dev": true, "requires": { - "mimic-fn": "1.2.0" + "mimic-fn": "^1.0.0" } }, "merge-source-map": { @@ -9080,7 +9097,7 @@ "bundled": true, "dev": true, "requires": { - "source-map": "0.6.1" + "source-map": "^0.6.1" }, "dependencies": { "source-map": { @@ -9095,19 +9112,19 @@ "bundled": true, "dev": true, "requires": { - "arr-diff": "4.0.0", - "array-unique": "0.3.2", - "braces": "2.3.2", - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "extglob": "2.0.4", - "fragment-cache": "0.2.1", - "kind-of": "6.0.2", - "nanomatch": "1.2.9", - "object.pick": "1.3.0", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" }, "dependencies": { "kind-of": { @@ -9127,7 +9144,7 @@ "bundled": true, "dev": true, "requires": { - "brace-expansion": "1.1.11" + "brace-expansion": "^1.1.7" } }, "minimist": { @@ -9140,8 +9157,8 @@ "bundled": true, "dev": true, "requires": { - "for-in": "1.0.2", - "is-extendable": "1.0.1" + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" }, "dependencies": { "is-extendable": { @@ -9149,7 +9166,7 @@ "bundled": true, "dev": true, "requires": { - "is-plain-object": "2.0.4" + "is-plain-object": "^2.0.4" } } } @@ -9172,30 +9189,20 @@ "bundled": true, "dev": true, "requires": { - "arr-diff": "4.0.0", - "array-unique": "0.3.2", - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "fragment-cache": "0.2.1", - "is-odd": "2.0.0", - "is-windows": "1.0.2", - "kind-of": "6.0.2", - "object.pick": "1.3.0", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-odd": "^2.0.0", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" }, "dependencies": { - "arr-diff": { - "version": "4.0.0", - "bundled": true, - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "bundled": true, - "dev": true - }, "kind-of": { "version": "6.0.2", "bundled": true, @@ -9208,10 +9215,10 @@ "bundled": true, "dev": true, "requires": { - "hosted-git-info": "2.6.0", - "is-builtin-module": "1.0.0", - "semver": "5.5.0", - "validate-npm-package-license": "3.0.3" + "hosted-git-info": "^2.1.4", + "is-builtin-module": "^1.0.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" } }, "npm-run-path": { @@ -9219,7 +9226,7 @@ "bundled": true, "dev": true, "requires": { - "path-key": "2.0.1" + "path-key": "^2.0.0" } }, "number-is-nan": { @@ -9237,9 +9244,9 @@ "bundled": true, "dev": true, "requires": { - "copy-descriptor": "0.1.1", - "define-property": "0.2.5", - "kind-of": "3.2.2" + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" }, "dependencies": { "define-property": { @@ -9247,7 +9254,7 @@ "bundled": true, "dev": true, "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } } } @@ -9257,14 +9264,7 @@ "bundled": true, "dev": true, "requires": { - "isobject": "3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - } + "isobject": "^3.0.0" } }, "object.pick": { @@ -9272,14 +9272,7 @@ "bundled": true, "dev": true, "requires": { - "isobject": "3.0.1" - }, - "dependencies": { - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - } + "isobject": "^3.0.1" } }, "once": { @@ -9287,7 +9280,7 @@ "bundled": true, "dev": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "optimist": { @@ -9295,8 +9288,8 @@ "bundled": true, "dev": true, "requires": { - "minimist": "0.0.8", - "wordwrap": "0.0.3" + "minimist": "~0.0.1", + "wordwrap": "~0.0.2" } }, "os-homedir": { @@ -9309,9 +9302,9 @@ "bundled": true, "dev": true, "requires": { - "execa": "0.7.0", - "lcid": "1.0.0", - "mem": "1.1.0" + "execa": "^0.7.0", + "lcid": "^1.0.0", + "mem": "^1.1.0" } }, "p-finally": { @@ -9324,7 +9317,7 @@ "bundled": true, "dev": true, "requires": { - "p-try": "1.0.0" + "p-try": "^1.0.0" } }, "p-locate": { @@ -9332,7 +9325,7 @@ "bundled": true, "dev": true, "requires": { - "p-limit": "1.2.0" + "p-limit": "^1.1.0" } }, "p-try": { @@ -9345,7 +9338,7 @@ "bundled": true, "dev": true, "requires": { - "error-ex": "1.3.1" + "error-ex": "^1.2.0" } }, "pascalcase": { @@ -9358,7 +9351,7 @@ "bundled": true, "dev": true, "requires": { - "pinkie-promise": "2.0.1" + "pinkie-promise": "^2.0.0" } }, "path-is-absolute": { @@ -9381,9 +9374,9 @@ "bundled": true, "dev": true, "requires": { - "graceful-fs": "4.1.11", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "pify": { @@ -9401,7 +9394,7 @@ "bundled": true, "dev": true, "requires": { - "pinkie": "2.0.4" + "pinkie": "^2.0.0" } }, "pkg-dir": { @@ -9409,7 +9402,7 @@ "bundled": true, "dev": true, "requires": { - "find-up": "1.1.2" + "find-up": "^1.0.0" }, "dependencies": { "find-up": { @@ -9417,8 +9410,8 @@ "bundled": true, "dev": true, "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" } } } @@ -9438,9 +9431,9 @@ "bundled": true, "dev": true, "requires": { - "load-json-file": "1.1.0", - "normalize-package-data": "2.4.0", - "path-type": "1.1.0" + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" } }, "read-pkg-up": { @@ -9448,8 +9441,8 @@ "bundled": true, "dev": true, "requires": { - "find-up": "1.1.2", - "read-pkg": "1.1.0" + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" }, "dependencies": { "find-up": { @@ -9457,24 +9450,19 @@ "bundled": true, "dev": true, "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" } } } }, - "regenerator-runtime": { - "version": "0.11.1", - "bundled": true, - "dev": true - }, "regex-not": { "version": "1.0.2", "bundled": true, "dev": true, "requires": { - "extend-shallow": "3.0.2", - "safe-regex": "1.1.0" + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" } }, "repeat-element": { @@ -9487,14 +9475,6 @@ "bundled": true, "dev": true }, - "repeating": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-finite": "1.0.2" - } - }, "require-directory": { "version": "2.1.1", "bundled": true, @@ -9526,7 +9506,7 @@ "dev": true, "optional": true, "requires": { - "align-text": "0.1.4" + "align-text": "^0.1.1" } }, "rimraf": { @@ -9534,7 +9514,7 @@ "bundled": true, "dev": true, "requires": { - "glob": "7.1.2" + "glob": "^7.0.5" } }, "safe-regex": { @@ -9542,7 +9522,7 @@ "bundled": true, "dev": true, "requires": { - "ret": "0.1.15" + "ret": "~0.1.10" } }, "semver": { @@ -9560,10 +9540,10 @@ "bundled": true, "dev": true, "requires": { - "extend-shallow": "2.0.1", - "is-extendable": "0.1.1", - "is-plain-object": "2.0.4", - "split-string": "3.1.0" + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" }, "dependencies": { "extend-shallow": { @@ -9571,7 +9551,7 @@ "bundled": true, "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -9581,7 +9561,7 @@ "bundled": true, "dev": true, "requires": { - "shebang-regex": "1.0.0" + "shebang-regex": "^1.0.0" } }, "shebang-regex": { @@ -9604,22 +9584,30 @@ "bundled": true, "dev": true, "requires": { - "base": "0.11.2", - "debug": "2.6.9", - "define-property": "0.2.5", - "extend-shallow": "2.0.1", - "map-cache": "0.2.2", - "source-map": "0.5.7", - "source-map-resolve": "0.5.1", - "use": "3.1.0" + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" }, "dependencies": { + "debug": { + "version": "2.6.9", + "bundled": true, + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, "define-property": { "version": "0.2.5", "bundled": true, "dev": true, "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } }, "extend-shallow": { @@ -9627,7 +9615,7 @@ "bundled": true, "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -9637,9 +9625,9 @@ "bundled": true, "dev": true, "requires": { - "define-property": "1.0.0", - "isobject": "3.0.1", - "snapdragon-util": "3.0.1" + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" }, "dependencies": { "define-property": { @@ -9647,7 +9635,7 @@ "bundled": true, "dev": true, "requires": { - "is-descriptor": "1.0.2" + "is-descriptor": "^1.0.0" } }, "is-accessor-descriptor": { @@ -9655,7 +9643,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -9663,7 +9651,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -9671,16 +9659,11 @@ "bundled": true, "dev": true, "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } }, - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - }, "kind-of": { "version": "6.0.2", "bundled": true, @@ -9693,7 +9676,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.2.0" } }, "source-map": { @@ -9702,15 +9685,15 @@ "dev": true }, "source-map-resolve": { - "version": "0.5.1", + "version": "0.5.2", "bundled": true, "dev": true, "requires": { - "atob": "2.1.1", - "decode-uri-component": "0.2.0", - "resolve-url": "0.2.1", - "source-map-url": "0.4.0", - "urix": "0.1.0" + "atob": "^2.1.1", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" } }, "source-map-url": { @@ -9723,12 +9706,12 @@ "bundled": true, "dev": true, "requires": { - "foreground-child": "1.5.6", - "mkdirp": "0.5.1", - "os-homedir": "1.0.2", - "rimraf": "2.6.2", - "signal-exit": "3.0.2", - "which": "1.3.0" + "foreground-child": "^1.5.6", + "mkdirp": "^0.5.0", + "os-homedir": "^1.0.1", + "rimraf": "^2.6.2", + "signal-exit": "^3.0.2", + "which": "^1.3.0" } }, "spdx-correct": { @@ -9736,8 +9719,8 @@ "bundled": true, "dev": true, "requires": { - "spdx-expression-parse": "3.0.0", - "spdx-license-ids": "3.0.0" + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" } }, "spdx-exceptions": { @@ -9750,8 +9733,8 @@ "bundled": true, "dev": true, "requires": { - "spdx-exceptions": "2.1.0", - "spdx-license-ids": "3.0.0" + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" } }, "spdx-license-ids": { @@ -9764,7 +9747,7 @@ "bundled": true, "dev": true, "requires": { - "extend-shallow": "3.0.2" + "extend-shallow": "^3.0.0" } }, "static-extend": { @@ -9772,8 +9755,8 @@ "bundled": true, "dev": true, "requires": { - "define-property": "0.2.5", - "object-copy": "0.1.0" + "define-property": "^0.2.5", + "object-copy": "^0.1.0" }, "dependencies": { "define-property": { @@ -9781,7 +9764,7 @@ "bundled": true, "dev": true, "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } } } @@ -9791,31 +9774,16 @@ "bundled": true, "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "strip-ansi": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "3.0.0" - } - } + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { - "version": "3.0.1", + "version": "4.0.0", "bundled": true, "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^3.0.0" } }, "strip-bom": { @@ -9823,7 +9791,7 @@ "bundled": true, "dev": true, "requires": { - "is-utf8": "0.2.1" + "is-utf8": "^0.2.0" } }, "strip-eof": { @@ -9831,284 +9799,24 @@ "bundled": true, "dev": true }, - "supports-color": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, "test-exclude": { "version": "4.2.1", "bundled": true, "dev": true, "requires": { - "arrify": "1.0.1", - "micromatch": "3.1.10", - "object-assign": "4.1.1", - "read-pkg-up": "1.0.1", - "require-main-filename": "1.0.1" - }, - "dependencies": { - "arr-diff": { - "version": "4.0.0", - "bundled": true, - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "bundled": true, - "dev": true - }, - "braces": { - "version": "2.3.2", - "bundled": true, - "dev": true, - "requires": { - "arr-flatten": "1.1.0", - "array-unique": "0.3.2", - "extend-shallow": "2.0.1", - "fill-range": "4.0.0", - "isobject": "3.0.1", - "repeat-element": "1.1.2", - "snapdragon": "0.8.2", - "snapdragon-node": "2.1.1", - "split-string": "3.1.0", - "to-regex": "3.0.2" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } - } - }, - "expand-brackets": { - "version": "2.1.4", - "bundled": true, - "dev": true, - "requires": { - "debug": "2.6.9", - "define-property": "0.2.5", - "extend-shallow": "2.0.1", - "posix-character-classes": "0.1.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "0.1.6" - } - }, - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "is-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" - } - }, - "kind-of": { - "version": "5.1.0", - "bundled": true, - "dev": true - } - } - }, - "extglob": { - "version": "2.0.4", - "bundled": true, - "dev": true, - "requires": { - "array-unique": "0.3.2", - "define-property": "1.0.0", - "expand-brackets": "2.1.4", - "extend-shallow": "2.0.1", - "fragment-cache": "0.2.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "1.0.2" - } - }, - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } - } - }, - "fill-range": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "2.0.1", - "is-number": "3.0.0", - "repeat-string": "1.6.1", - "to-regex-range": "2.1.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "0.1.1" - } - } - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "6.0.2" - } - }, - "is-descriptor": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" - } - }, - "is-number": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "1.1.6" - } - } - } - }, - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - }, - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - }, - "micromatch": { - "version": "3.1.10", - "bundled": true, - "dev": true, - "requires": { - "arr-diff": "4.0.0", - "array-unique": "0.3.2", - "braces": "2.3.2", - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "extglob": "2.0.4", - "fragment-cache": "0.2.1", - "kind-of": "6.0.2", - "nanomatch": "1.2.9", - "object.pick": "1.3.0", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" - } - } + "arrify": "^1.0.1", + "micromatch": "^3.1.8", + "object-assign": "^4.1.0", + "read-pkg-up": "^1.0.1", + "require-main-filename": "^1.0.1" } }, - "to-fast-properties": { - "version": "1.0.3", - "bundled": true, - "dev": true - }, "to-object-path": { "version": "0.3.0", "bundled": true, "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" } }, "to-regex": { @@ -10116,10 +9824,10 @@ "bundled": true, "dev": true, "requires": { - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "regex-not": "1.0.2", - "safe-regex": "1.1.0" + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" } }, "to-regex-range": { @@ -10127,34 +9835,19 @@ "bundled": true, "dev": true, "requires": { - "is-number": "3.0.0", - "repeat-string": "1.6.1" - }, - "dependencies": { - "is-number": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "3.2.2" - } - } + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" } }, - "trim-right": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, "uglify-js": { "version": "2.8.29", "bundled": true, "dev": true, "optional": true, "requires": { - "source-map": "0.5.7", - "uglify-to-browserify": "1.0.2", - "yargs": "3.10.0" + "source-map": "~0.5.1", + "uglify-to-browserify": "~1.0.0", + "yargs": "~3.10.0" }, "dependencies": { "yargs": { @@ -10163,9 +9856,9 @@ "dev": true, "optional": true, "requires": { - "camelcase": "1.2.1", - "cliui": "2.1.0", - "decamelize": "1.2.0", + "camelcase": "^1.0.2", + "cliui": "^2.1.0", + "decamelize": "^1.0.0", "window-size": "0.1.0" } } @@ -10182,10 +9875,10 @@ "bundled": true, "dev": true, "requires": { - "arr-union": "3.1.0", - "get-value": "2.0.6", - "is-extendable": "0.1.1", - "set-value": "0.4.3" + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^0.4.3" }, "dependencies": { "extend-shallow": { @@ -10193,7 +9886,7 @@ "bundled": true, "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } }, "set-value": { @@ -10201,10 +9894,10 @@ "bundled": true, "dev": true, "requires": { - "extend-shallow": "2.0.1", - "is-extendable": "0.1.1", - "is-plain-object": "2.0.4", - "to-object-path": "0.3.0" + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.1", + "to-object-path": "^0.3.0" } } } @@ -10214,8 +9907,8 @@ "bundled": true, "dev": true, "requires": { - "has-value": "0.3.1", - "isobject": "3.0.1" + "has-value": "^0.3.1", + "isobject": "^3.0.0" }, "dependencies": { "has-value": { @@ -10223,9 +9916,9 @@ "bundled": true, "dev": true, "requires": { - "get-value": "2.0.6", - "has-values": "0.1.4", - "isobject": "2.1.0" + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" }, "dependencies": { "isobject": { @@ -10242,11 +9935,6 @@ "version": "0.1.4", "bundled": true, "dev": true - }, - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true } } }, @@ -10260,7 +9948,7 @@ "bundled": true, "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.2" }, "dependencies": { "kind-of": { @@ -10275,16 +9963,16 @@ "bundled": true, "dev": true, "requires": { - "spdx-correct": "3.0.0", - "spdx-expression-parse": "3.0.0" + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" } }, "which": { - "version": "1.3.0", + "version": "1.3.1", "bundled": true, "dev": true, "requires": { - "isexe": "2.0.0" + "isexe": "^2.0.0" } }, "which-module": { @@ -10308,16 +9996,21 @@ "bundled": true, "dev": true, "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" }, "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "string-width": { @@ -10325,9 +10018,17 @@ "bundled": true, "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" } } } @@ -10342,9 +10043,9 @@ "bundled": true, "dev": true, "requires": { - "graceful-fs": "4.1.11", - "imurmurhash": "0.1.4", - "slide": "1.1.6" + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "slide": "^1.1.5" } }, "y18n": { @@ -10362,25 +10063,20 @@ "bundled": true, "dev": true, "requires": { - "cliui": "4.1.0", - "decamelize": "1.2.0", - "find-up": "2.1.0", - "get-caller-file": "1.0.2", - "os-locale": "2.1.0", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "2.1.1", - "which-module": "2.0.0", - "y18n": "3.2.1", - "yargs-parser": "9.0.2" + "cliui": "^4.0.0", + "decamelize": "^1.1.1", + "find-up": "^2.1.0", + "get-caller-file": "^1.0.1", + "os-locale": "^2.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^9.0.2" }, "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, "camelcase": { "version": "4.1.0", "bundled": true, @@ -10391,17 +10087,9 @@ "bundled": true, "dev": true, "requires": { - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "wrap-ansi": "2.1.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "3.0.0" + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" } }, "yargs-parser": { @@ -10409,7 +10097,7 @@ "bundled": true, "dev": true, "requires": { - "camelcase": "4.1.0" + "camelcase": "^4.1.0" } } } @@ -10419,7 +10107,7 @@ "bundled": true, "dev": true, "requires": { - "camelcase": "4.1.0" + "camelcase": "^4.1.0" }, "dependencies": { "camelcase": { @@ -10447,9 +10135,9 @@ "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", "requires": { - "copy-descriptor": "0.1.1", - "define-property": "0.2.5", - "kind-of": "3.2.2" + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" }, "dependencies": { "define-property": { @@ -10457,7 +10145,7 @@ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } }, "kind-of": { @@ -10465,7 +10153,7 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -10480,7 +10168,7 @@ "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", "requires": { - "isobject": "3.0.1" + "isobject": "^3.0.0" } }, "object.omit": { @@ -10489,8 +10177,8 @@ "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", "dev": true, "requires": { - "for-own": "0.1.5", - "is-extendable": "0.1.1" + "for-own": "^0.1.4", + "is-extendable": "^0.1.1" } }, "object.pick": { @@ -10498,7 +10186,7 @@ "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "requires": { - "isobject": "3.0.1" + "isobject": "^3.0.1" } }, "observable-to-promise": { @@ -10507,8 +10195,8 @@ "integrity": "sha1-yCjw8NxH6fhq+KSXfF1VB2znqR8=", "dev": true, "requires": { - "is-observable": "0.2.0", - "symbol-observable": "1.2.0" + "is-observable": "^0.2.0", + "symbol-observable": "^1.0.4" }, "dependencies": { "is-observable": { @@ -10517,7 +10205,7 @@ "integrity": "sha1-s2ExHYPG5dcmyr9eJQsCNxBvWuI=", "dev": true, "requires": { - "symbol-observable": "0.2.4" + "symbol-observable": "^0.2.2" }, "dependencies": { "symbol-observable": { @@ -10535,7 +10223,7 @@ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "onetime": { @@ -10544,7 +10232,7 @@ "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", "dev": true, "requires": { - "mimic-fn": "1.2.0" + "mimic-fn": "^1.0.0" } }, "optimist": { @@ -10553,8 +10241,8 @@ "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", "dev": true, "requires": { - "minimist": "0.0.8", - "wordwrap": "0.0.3" + "minimist": "~0.0.1", + "wordwrap": "~0.0.2" } }, "option-chain": { @@ -10569,12 +10257,12 @@ "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", "dev": true, "requires": { - "deep-is": "0.1.3", - "fast-levenshtein": "2.0.6", - "levn": "0.3.0", - "prelude-ls": "1.1.2", - "type-check": "0.3.2", - "wordwrap": "1.0.0" + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.4", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "wordwrap": "~1.0.0" }, "dependencies": { "wordwrap": { @@ -10601,7 +10289,7 @@ "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", "requires": { - "lcid": "1.0.0" + "lcid": "^1.0.0" } }, "os-tmpdir": { @@ -10634,7 +10322,7 @@ "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", "dev": true, "requires": { - "p-try": "1.0.0" + "p-try": "^1.0.0" } }, "p-locate": { @@ -10643,7 +10331,7 @@ "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "requires": { - "p-limit": "1.2.0" + "p-limit": "^1.1.0" } }, "p-timeout": { @@ -10652,7 +10340,7 @@ "integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==", "dev": true, "requires": { - "p-finally": "1.0.0" + "p-finally": "^1.0.0" } }, "p-try": { @@ -10667,10 +10355,10 @@ "integrity": "sha1-eK4ybIngWk2BO2hgGXevBcANKg0=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "lodash.flattendeep": "4.4.0", - "md5-hex": "2.0.0", - "release-zalgo": "1.0.0" + "graceful-fs": "^4.1.11", + "lodash.flattendeep": "^4.4.0", + "md5-hex": "^2.0.0", + "release-zalgo": "^1.0.0" } }, "package-json": { @@ -10679,10 +10367,10 @@ "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=", "dev": true, "requires": { - "got": "6.7.1", - "registry-auth-token": "3.3.2", - "registry-url": "3.1.0", - "semver": "5.5.0" + "got": "^6.7.1", + "registry-auth-token": "^3.0.1", + "registry-url": "^3.0.3", + "semver": "^5.1.0" }, "dependencies": { "got": { @@ -10691,17 +10379,17 @@ "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", "dev": true, "requires": { - "create-error-class": "3.0.2", - "duplexer3": "0.1.4", - "get-stream": "3.0.0", - "is-redirect": "1.0.0", - "is-retry-allowed": "1.1.0", - "is-stream": "1.1.0", - "lowercase-keys": "1.0.1", - "safe-buffer": "5.1.2", - "timed-out": "4.0.1", - "unzip-response": "2.0.1", - "url-parse-lax": "1.0.0" + "create-error-class": "^3.0.0", + "duplexer3": "^0.1.4", + "get-stream": "^3.0.0", + "is-redirect": "^1.0.0", + "is-retry-allowed": "^1.0.0", + "is-stream": "^1.0.0", + "lowercase-keys": "^1.0.0", + "safe-buffer": "^5.0.1", + "timed-out": "^4.0.0", + "unzip-response": "^2.0.1", + "url-parse-lax": "^1.0.0" } } } @@ -10712,10 +10400,10 @@ "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", "dev": true, "requires": { - "glob-base": "0.3.0", - "is-dotfile": "1.0.3", - "is-extglob": "1.0.0", - "is-glob": "2.0.1" + "glob-base": "^0.3.0", + "is-dotfile": "^1.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.0" }, "dependencies": { "is-extglob": { @@ -10730,7 +10418,7 @@ "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } } } @@ -10741,7 +10429,7 @@ "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "dev": true, "requires": { - "error-ex": "1.3.1" + "error-ex": "^1.2.0" } }, "parse-ms": { @@ -10811,7 +10499,7 @@ "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", "requires": { - "pify": "3.0.0" + "pify": "^3.0.0" } }, "performance-now": { @@ -10836,7 +10524,7 @@ "integrity": "sha1-0dpn9UglY7t89X8oauKCLs+/NnA=", "dev": true, "requires": { - "pinkie": "1.0.0" + "pinkie": "^1.0.0" } }, "pkg-conf": { @@ -10845,8 +10533,8 @@ "integrity": "sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg=", "dev": true, "requires": { - "find-up": "2.1.0", - "load-json-file": "4.0.0" + "find-up": "^2.0.0", + "load-json-file": "^4.0.0" }, "dependencies": { "load-json-file": { @@ -10855,10 +10543,10 @@ "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "4.0.0", - "pify": "3.0.0", - "strip-bom": "3.0.0" + "graceful-fs": "^4.1.2", + "parse-json": "^4.0.0", + "pify": "^3.0.0", + "strip-bom": "^3.0.0" } }, "parse-json": { @@ -10867,8 +10555,8 @@ "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "dev": true, "requires": { - "error-ex": "1.3.1", - "json-parse-better-errors": "1.0.2" + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1" } } } @@ -10879,7 +10567,7 @@ "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", "dev": true, "requires": { - "find-up": "2.1.0" + "find-up": "^2.1.0" } }, "plur": { @@ -10888,7 +10576,7 @@ "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", "dev": true, "requires": { - "irregular-plurals": "1.4.0" + "irregular-plurals": "^1.0.0" } }, "pluralize": { @@ -10908,9 +10596,9 @@ "integrity": "sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA==", "dev": true, "requires": { - "chalk": "2.4.1", - "source-map": "0.6.1", - "supports-color": "5.4.0" + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.4.0" }, "dependencies": { "source-map": { @@ -10926,11 +10614,11 @@ "resolved": "https://registry.npmjs.org/power-assert/-/power-assert-1.5.0.tgz", "integrity": "sha512-WaWSw+Ts283o6dzxW1BxIxoaHok7aSSGx4SaR6dW62Pk31ynv9DERDieuZpPYv5XaJ+H+zdcOaJQ+PvlasAOVw==", "requires": { - "define-properties": "1.1.2", - "empower": "1.2.3", - "power-assert-formatter": "1.4.1", - "universal-deep-strict-equal": "1.2.2", - "xtend": "4.0.1" + "define-properties": "^1.1.2", + "empower": "^1.2.3", + "power-assert-formatter": "^1.3.1", + "universal-deep-strict-equal": "^1.2.1", + "xtend": "^4.0.0" } }, "power-assert-context-formatter": { @@ -10938,8 +10626,8 @@ "resolved": "https://registry.npmjs.org/power-assert-context-formatter/-/power-assert-context-formatter-1.1.1.tgz", "integrity": "sha1-7bo1LT7YpgMRTWZyZazOYNaJzN8=", "requires": { - "core-js": "2.5.6", - "power-assert-context-traversal": "1.1.1" + "core-js": "^2.0.0", + "power-assert-context-traversal": "^1.1.1" } }, "power-assert-context-reducer-ast": { @@ -10947,11 +10635,11 @@ "resolved": "https://registry.npmjs.org/power-assert-context-reducer-ast/-/power-assert-context-reducer-ast-1.1.2.tgz", "integrity": "sha1-SEqZ4m9Jc/+IMuXFzHVnAuYJQXQ=", "requires": { - "acorn": "4.0.13", - "acorn-es7-plugin": "1.1.7", - "core-js": "2.5.6", - "espurify": "1.8.0", - "estraverse": "4.2.0" + "acorn": "^4.0.0", + "acorn-es7-plugin": "^1.0.12", + "core-js": "^2.0.0", + "espurify": "^1.6.0", + "estraverse": "^4.2.0" } }, "power-assert-context-traversal": { @@ -10959,8 +10647,8 @@ "resolved": "https://registry.npmjs.org/power-assert-context-traversal/-/power-assert-context-traversal-1.1.1.tgz", "integrity": "sha1-iMq8oNE7Y1nwfT0+ivppkmRXftk=", "requires": { - "core-js": "2.5.6", - "estraverse": "4.2.0" + "core-js": "^2.0.0", + "estraverse": "^4.1.0" } }, "power-assert-formatter": { @@ -10968,13 +10656,13 @@ "resolved": "https://registry.npmjs.org/power-assert-formatter/-/power-assert-formatter-1.4.1.tgz", "integrity": "sha1-XcEl7VCj37HdomwZNH879Y7CiEo=", "requires": { - "core-js": "2.5.6", - "power-assert-context-formatter": "1.1.1", - "power-assert-context-reducer-ast": "1.1.2", - "power-assert-renderer-assertion": "1.1.1", - "power-assert-renderer-comparison": "1.1.1", - "power-assert-renderer-diagram": "1.1.2", - "power-assert-renderer-file": "1.1.1" + "core-js": "^2.0.0", + "power-assert-context-formatter": "^1.0.7", + "power-assert-context-reducer-ast": "^1.0.7", + "power-assert-renderer-assertion": "^1.0.7", + "power-assert-renderer-comparison": "^1.0.7", + "power-assert-renderer-diagram": "^1.0.7", + "power-assert-renderer-file": "^1.0.7" } }, "power-assert-renderer-assertion": { @@ -10982,8 +10670,8 @@ "resolved": "https://registry.npmjs.org/power-assert-renderer-assertion/-/power-assert-renderer-assertion-1.1.1.tgz", "integrity": "sha1-y/wOd+AIao+Wrz8djme57n4ozpg=", "requires": { - "power-assert-renderer-base": "1.1.1", - "power-assert-util-string-width": "1.1.1" + "power-assert-renderer-base": "^1.1.1", + "power-assert-util-string-width": "^1.1.1" } }, "power-assert-renderer-base": { @@ -10996,11 +10684,11 @@ "resolved": "https://registry.npmjs.org/power-assert-renderer-comparison/-/power-assert-renderer-comparison-1.1.1.tgz", "integrity": "sha1-10Odl9hRVr5OMKAPL7WnJRTOPAg=", "requires": { - "core-js": "2.5.6", - "diff-match-patch": "1.0.1", - "power-assert-renderer-base": "1.1.1", - "stringifier": "1.3.0", - "type-name": "2.0.2" + "core-js": "^2.0.0", + "diff-match-patch": "^1.0.0", + "power-assert-renderer-base": "^1.1.1", + "stringifier": "^1.3.0", + "type-name": "^2.0.1" } }, "power-assert-renderer-diagram": { @@ -11008,10 +10696,10 @@ "resolved": "https://registry.npmjs.org/power-assert-renderer-diagram/-/power-assert-renderer-diagram-1.1.2.tgz", "integrity": "sha1-ZV+PcRk1qbbVQbhjJ2VHF8Y3qYY=", "requires": { - "core-js": "2.5.6", - "power-assert-renderer-base": "1.1.1", - "power-assert-util-string-width": "1.1.1", - "stringifier": "1.3.0" + "core-js": "^2.0.0", + "power-assert-renderer-base": "^1.1.1", + "power-assert-util-string-width": "^1.1.1", + "stringifier": "^1.3.0" } }, "power-assert-renderer-file": { @@ -11019,7 +10707,7 @@ "resolved": "https://registry.npmjs.org/power-assert-renderer-file/-/power-assert-renderer-file-1.1.1.tgz", "integrity": "sha1-o34rvReMys0E5427eckv40kzxec=", "requires": { - "power-assert-renderer-base": "1.1.1" + "power-assert-renderer-base": "^1.1.1" } }, "power-assert-util-string-width": { @@ -11027,7 +10715,7 @@ "resolved": "https://registry.npmjs.org/power-assert-util-string-width/-/power-assert-util-string-width-1.1.1.tgz", "integrity": "sha1-vmWet5N/3S5smncmjar2S9W3xZI=", "requires": { - "eastasianwidth": "0.1.1" + "eastasianwidth": "^0.1.1" } }, "prelude-ls": { @@ -11060,8 +10748,8 @@ "integrity": "sha1-6crJx2v27lL+lC3ZxsQhMVOxKIE=", "dev": true, "requires": { - "parse-ms": "1.0.1", - "plur": "2.1.2" + "parse-ms": "^1.0.0", + "plur": "^2.1.2" }, "dependencies": { "parse-ms": { @@ -11094,19 +10782,19 @@ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.6.tgz", "integrity": "sha512-eH2OTP9s55vojr3b7NBaF9i4WhWPkv/nq55nznWNp/FomKrLViprUcqnBjHph2tFQ+7KciGPTPsVWGz0SOhL0Q==", "requires": { - "@protobufjs/aspromise": "1.1.2", - "@protobufjs/base64": "1.1.2", - "@protobufjs/codegen": "2.0.4", - "@protobufjs/eventemitter": "1.1.0", - "@protobufjs/fetch": "1.1.0", - "@protobufjs/float": "1.0.2", - "@protobufjs/inquire": "1.1.0", - "@protobufjs/path": "1.1.2", - "@protobufjs/pool": "1.1.0", - "@protobufjs/utf8": "1.1.0", - "@types/long": "3.0.32", - "@types/node": "8.10.17", - "long": "4.0.0" + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^3.0.32", + "@types/node": "^8.9.4", + "long": "^4.0.0" } }, "proxyquire": { @@ -11115,9 +10803,9 @@ "integrity": "sha1-AtUUpb7ZhvBMuyCTrxZ0FTX3ntw=", "dev": true, "requires": { - "fill-keys": "1.0.2", - "module-not-found-error": "1.0.1", - "resolve": "1.1.7" + "fill-keys": "^1.0.2", + "module-not-found-error": "^1.0.0", + "resolve": "~1.1.7" } }, "pseudomap": { @@ -11141,9 +10829,9 @@ "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", "dev": true, "requires": { - "decode-uri-component": "0.2.0", - "object-assign": "4.1.1", - "strict-uri-encode": "1.1.0" + "decode-uri-component": "^0.2.0", + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" } }, "randomatic": { @@ -11152,9 +10840,9 @@ "integrity": "sha512-VdxFOIEY3mNO5PtSRkkle/hPJDHvQhK21oa73K4yAc9qmp6N429gAyF1gZMOTMeS0/AYzaV/2Trcef+NaIonSA==", "dev": true, "requires": { - "is-number": "4.0.0", - "kind-of": "6.0.2", - "math-random": "1.0.1" + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "math-random": "^1.0.1" }, "dependencies": { "is-number": { @@ -11171,10 +10859,10 @@ "integrity": "sha512-LdLD8xD4zzLsAT5xyushXDNscEjB7+2ulnl8+r1pnESlYtlJtVSoCMBGr30eDRJ3+2Gq89jK9P9e4tCEH1+ywA==", "dev": true, "requires": { - "deep-extend": "0.5.1", - "ini": "1.3.5", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" + "deep-extend": "^0.5.1", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" }, "dependencies": { "minimist": { @@ -11191,9 +10879,9 @@ "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", "dev": true, "requires": { - "load-json-file": "2.0.0", - "normalize-package-data": "2.4.0", - "path-type": "2.0.0" + "load-json-file": "^2.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^2.0.0" }, "dependencies": { "path-type": { @@ -11202,7 +10890,7 @@ "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", "dev": true, "requires": { - "pify": "2.3.0" + "pify": "^2.0.0" } }, "pify": { @@ -11219,8 +10907,8 @@ "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", "dev": true, "requires": { - "find-up": "2.1.0", - "read-pkg": "2.0.0" + "find-up": "^2.0.0", + "read-pkg": "^2.0.0" } }, "readable-stream": { @@ -11228,13 +10916,13 @@ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.2", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "readdirp": { @@ -11243,10 +10931,10 @@ "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "readable-stream": "2.3.6", - "set-immediate-shim": "1.0.1" + "graceful-fs": "^4.1.2", + "minimatch": "^3.0.2", + "readable-stream": "^2.0.2", + "set-immediate-shim": "^1.0.1" } }, "redent": { @@ -11255,8 +10943,8 @@ "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", "dev": true, "requires": { - "indent-string": "2.1.0", - "strip-indent": "1.0.1" + "indent-string": "^2.1.0", + "strip-indent": "^1.0.1" }, "dependencies": { "indent-string": { @@ -11265,7 +10953,7 @@ "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", "dev": true, "requires": { - "repeating": "2.0.1" + "repeating": "^2.0.0" } } } @@ -11288,7 +10976,7 @@ "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", "dev": true, "requires": { - "is-equal-shallow": "0.1.3" + "is-equal-shallow": "^0.1.3" } }, "regex-not": { @@ -11296,8 +10984,17 @@ "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", "requires": { - "extend-shallow": "3.0.2", - "safe-regex": "1.1.0" + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + } + }, + "regexp.prototype.flags": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.2.0.tgz", + "integrity": "sha512-ztaw4M1VqgMwl9HlPpOuiYgItcHlunW0He2fE6eNfT6E/CF2FtYi9ofOYe4mKntstYk0Fyh/rDRBdS3AnxjlrA==", + "dev": true, + "requires": { + "define-properties": "^1.1.2" } }, "regexpp": { @@ -11312,9 +11009,9 @@ "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", "dev": true, "requires": { - "regenerate": "1.4.0", - "regjsgen": "0.2.0", - "regjsparser": "0.1.5" + "regenerate": "^1.2.1", + "regjsgen": "^0.2.0", + "regjsparser": "^0.1.4" } }, "registry-auth-token": { @@ -11323,8 +11020,8 @@ "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", "dev": true, "requires": { - "rc": "1.2.7", - "safe-buffer": "5.1.2" + "rc": "^1.1.6", + "safe-buffer": "^5.0.1" } }, "registry-url": { @@ -11333,7 +11030,7 @@ "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", "dev": true, "requires": { - "rc": "1.2.7" + "rc": "^1.0.1" } }, "regjsgen": { @@ -11348,7 +11045,7 @@ "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", "dev": true, "requires": { - "jsesc": "0.5.0" + "jsesc": "~0.5.0" } }, "release-zalgo": { @@ -11357,7 +11054,7 @@ "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", "dev": true, "requires": { - "es6-error": "4.1.1" + "es6-error": "^4.0.1" } }, "remove-trailing-separator": { @@ -11382,7 +11079,7 @@ "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", "dev": true, "requires": { - "is-finite": "1.0.2" + "is-finite": "^1.0.0" } }, "request": { @@ -11390,26 +11087,26 @@ "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", "requires": { - "aws-sign2": "0.7.0", - "aws4": "1.7.0", - "caseless": "0.12.0", - "combined-stream": "1.0.6", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.3.2", - "har-validator": "5.0.3", - "http-signature": "1.2.0", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.18", - "oauth-sign": "0.8.2", - "performance-now": "2.1.0", - "qs": "6.5.2", - "safe-buffer": "5.1.2", - "tough-cookie": "2.3.4", - "tunnel-agent": "0.6.0", - "uuid": "3.2.1" + "aws-sign2": "~0.7.0", + "aws4": "^1.6.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.5", + "extend": "~3.0.1", + "forever-agent": "~0.6.1", + "form-data": "~2.3.1", + "har-validator": "~5.0.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.17", + "oauth-sign": "~0.8.2", + "performance-now": "^2.1.0", + "qs": "~6.5.1", + "safe-buffer": "^5.1.1", + "tough-cookie": "~2.3.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.1.0" } }, "require-directory": { @@ -11436,8 +11133,8 @@ "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", "dev": true, "requires": { - "caller-path": "0.1.0", - "resolve-from": "1.0.1" + "caller-path": "^0.1.0", + "resolve-from": "^1.0.0" }, "dependencies": { "resolve-from": { @@ -11454,7 +11151,7 @@ "integrity": "sha1-aUPDUwxNmn5G8c3dUcFY/GcM294=", "dev": true, "requires": { - "underscore": "1.6.0" + "underscore": "~1.6.0" }, "dependencies": { "underscore": { @@ -11477,7 +11174,7 @@ "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", "dev": true, "requires": { - "resolve-from": "3.0.0" + "resolve-from": "^3.0.0" } }, "resolve-from": { @@ -11497,7 +11194,7 @@ "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", "dev": true, "requires": { - "lowercase-keys": "1.0.1" + "lowercase-keys": "^1.0.0" } }, "restore-cursor": { @@ -11506,8 +11203,8 @@ "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", "dev": true, "requires": { - "onetime": "2.0.1", - "signal-exit": "3.0.2" + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" } }, "ret": { @@ -11527,7 +11224,7 @@ "dev": true, "optional": true, "requires": { - "align-text": "0.1.4" + "align-text": "^0.1.1" } }, "rimraf": { @@ -11536,7 +11233,7 @@ "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, "requires": { - "glob": "7.1.2" + "glob": "^7.0.5" } }, "run-async": { @@ -11545,22 +11242,24 @@ "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", "dev": true, "requires": { - "is-promise": "2.1.0" + "is-promise": "^2.1.0" } }, - "rx-lite": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/rx-lite/-/rx-lite-4.0.8.tgz", - "integrity": "sha1-Cx4Rr4vESDbwSmQH6S2kJGe3lEQ=", - "dev": true - }, - "rx-lite-aggregates": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/rx-lite-aggregates/-/rx-lite-aggregates-4.0.8.tgz", - "integrity": "sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74=", + "rxjs": { + "version": "5.5.11", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.11.tgz", + "integrity": "sha512-3bjO7UwWfA2CV7lmwYMBzj4fQ6Cq+ftHc2MvUe+WMS7wcdJ1LosDWmdjPQanYp2dBRj572p7PeU81JUxHKOcBA==", "dev": true, "requires": { - "rx-lite": "4.0.8" + "symbol-observable": "1.0.1" + }, + "dependencies": { + "symbol-observable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz", + "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=", + "dev": true + } } }, "safe-buffer": { @@ -11573,7 +11272,7 @@ "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "requires": { - "ret": "0.1.15" + "ret": "~0.1.10" } }, "safer-buffer": { @@ -11594,16 +11293,16 @@ "integrity": "sha512-52ThA+Z7h6BnvpSVbURwChl10XZrps5q7ytjTwWcIe9bmJwnVP6cpEVK2NvDOUhGupoqAvNbUz3cpnJDp4+/pg==", "dev": true, "requires": { - "chalk": "2.4.1", - "htmlparser2": "3.9.2", - "lodash.clonedeep": "4.5.0", - "lodash.escaperegexp": "4.1.2", - "lodash.isplainobject": "4.0.6", - "lodash.isstring": "4.0.1", - "lodash.mergewith": "4.6.1", - "postcss": "6.0.22", - "srcset": "1.0.0", - "xtend": "4.0.1" + "chalk": "^2.3.0", + "htmlparser2": "^3.9.0", + "lodash.clonedeep": "^4.5.0", + "lodash.escaperegexp": "^4.1.2", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.mergewith": "^4.6.0", + "postcss": "^6.0.14", + "srcset": "^1.0.0", + "xtend": "^4.0.0" } }, "semver": { @@ -11618,7 +11317,7 @@ "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", "dev": true, "requires": { - "semver": "5.5.0" + "semver": "^5.0.3" } }, "serialize-error": { @@ -11644,10 +11343,10 @@ "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", "requires": { - "extend-shallow": "2.0.1", - "is-extendable": "0.1.1", - "is-plain-object": "2.0.4", - "split-string": "3.1.0" + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" }, "dependencies": { "extend-shallow": { @@ -11655,7 +11354,7 @@ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -11666,7 +11365,7 @@ "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, "requires": { - "shebang-regex": "1.0.0" + "shebang-regex": "^1.0.0" } }, "shebang-regex": { @@ -11687,13 +11386,13 @@ "integrity": "sha512-pmf05hFgEZUS52AGJcsVjOjqAyJW2yo14cOwVYvzCyw7+inv06YXkLyW75WG6X6p951lzkoKh51L2sNbR9CDvw==", "dev": true, "requires": { - "@sinonjs/formatio": "2.0.0", - "diff": "3.5.0", - "lodash.get": "4.4.2", - "lolex": "2.6.0", - "nise": "1.3.3", - "supports-color": "5.4.0", - "type-detect": "4.0.8" + "@sinonjs/formatio": "^2.0.0", + "diff": "^3.1.0", + "lodash.get": "^4.4.2", + "lolex": "^2.2.0", + "nise": "^1.2.0", + "supports-color": "^5.1.0", + "type-detect": "^4.0.5" } }, "slash": { @@ -11707,7 +11406,7 @@ "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0" + "is-fullwidth-code-point": "^2.0.0" }, "dependencies": { "is-fullwidth-code-point": { @@ -11729,14 +11428,14 @@ "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", "requires": { - "base": "0.11.2", - "debug": "2.6.9", - "define-property": "0.2.5", - "extend-shallow": "2.0.1", - "map-cache": "0.2.2", - "source-map": "0.5.7", - "source-map-resolve": "0.5.2", - "use": "3.1.0" + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" }, "dependencies": { "define-property": { @@ -11744,7 +11443,7 @@ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } }, "extend-shallow": { @@ -11752,7 +11451,7 @@ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -11762,9 +11461,9 @@ "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", "requires": { - "define-property": "1.0.0", - "isobject": "3.0.1", - "snapdragon-util": "3.0.1" + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" }, "dependencies": { "define-property": { @@ -11772,7 +11471,7 @@ "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "requires": { - "is-descriptor": "1.0.2" + "is-descriptor": "^1.0.0" } }, "is-accessor-descriptor": { @@ -11780,7 +11479,7 @@ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -11788,7 +11487,7 @@ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -11796,9 +11495,9 @@ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } } } @@ -11808,7 +11507,7 @@ "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.2.0" }, "dependencies": { "kind-of": { @@ -11816,7 +11515,7 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -11827,7 +11526,7 @@ "integrity": "sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg=", "dev": true, "requires": { - "is-plain-obj": "1.1.0" + "is-plain-obj": "^1.0.0" } }, "source-map": { @@ -11840,11 +11539,11 @@ "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", "requires": { - "atob": "2.1.1", - "decode-uri-component": "0.2.0", - "resolve-url": "0.2.1", - "source-map-url": "0.4.0", - "urix": "0.1.0" + "atob": "^2.1.1", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" } }, "source-map-support": { @@ -11853,8 +11552,8 @@ "integrity": "sha512-N4KXEz7jcKqPf2b2vZF11lQIz9W5ZMuUcIOGj243lduidkf2fjkVKJS9vNxVWn3u/uxX38AcE8U9nnH9FPcq+g==", "dev": true, "requires": { - "buffer-from": "1.0.0", - "source-map": "0.6.1" + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" }, "dependencies": { "source-map": { @@ -11876,8 +11575,8 @@ "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", "dev": true, "requires": { - "spdx-expression-parse": "3.0.0", - "spdx-license-ids": "3.0.0" + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" } }, "spdx-exceptions": { @@ -11892,8 +11591,8 @@ "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "dev": true, "requires": { - "spdx-exceptions": "2.1.0", - "spdx-license-ids": "3.0.0" + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" } }, "spdx-license-ids": { @@ -11907,7 +11606,7 @@ "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", "requires": { - "extend-shallow": "3.0.2" + "extend-shallow": "^3.0.0" } }, "sprintf-js": { @@ -11922,8 +11621,8 @@ "integrity": "sha1-pWad4StC87HV6D7QPHEEb8SPQe8=", "dev": true, "requires": { - "array-uniq": "1.0.3", - "number-is-nan": "1.0.1" + "array-uniq": "^1.0.2", + "number-is-nan": "^1.0.0" } }, "sshpk": { @@ -11931,14 +11630,14 @@ "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", "requires": { - "asn1": "0.2.3", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.1", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.1", - "getpass": "0.1.7", - "jsbn": "0.1.1", - "tweetnacl": "0.14.5" + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "tweetnacl": "~0.14.0" } }, "stack-utils": { @@ -11952,8 +11651,8 @@ "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", "requires": { - "define-property": "0.2.5", - "object-copy": "0.1.0" + "define-property": "^0.2.5", + "object-copy": "^0.1.0" }, "dependencies": { "define-property": { @@ -11961,7 +11660,7 @@ "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } } } @@ -11988,9 +11687,22 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string.prototype.matchall": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-2.0.0.tgz", + "integrity": "sha512-WoZ+B2ypng1dp4iFLF2kmZlwwlE19gmjgKuhL1FJfDgCREWb3ye3SDVHSzLH6bxfnvYmkCxbzkmWcQZHA4P//Q==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "es-abstract": "^1.10.0", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "regexp.prototype.flags": "^1.2.0" } }, "string_decoder": { @@ -11998,7 +11710,7 @@ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "requires": { - "safe-buffer": "5.1.2" + "safe-buffer": "~5.1.0" } }, "stringifier": { @@ -12006,9 +11718,9 @@ "resolved": "https://registry.npmjs.org/stringifier/-/stringifier-1.3.0.tgz", "integrity": "sha1-3vGDQvaTPbDy2/yaoCF1tEjBeVk=", "requires": { - "core-js": "2.5.6", - "traverse": "0.6.6", - "type-name": "2.0.2" + "core-js": "^2.0.0", + "traverse": "^0.6.6", + "type-name": "^2.0.1" } }, "strip-ansi": { @@ -12016,7 +11728,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "strip-bom": { @@ -12031,7 +11743,7 @@ "integrity": "sha1-HLRar1dTD0yvhsf3UXnSyaUd1XI=", "dev": true, "requires": { - "is-utf8": "0.2.1" + "is-utf8": "^0.2.1" } }, "strip-eof": { @@ -12046,7 +11758,7 @@ "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", "dev": true, "requires": { - "get-stdin": "4.0.1" + "get-stdin": "^4.0.1" } }, "strip-json-comments": { @@ -12061,16 +11773,16 @@ "integrity": "sha512-GLQtLMCoEIK4eDv6OGtkOoSMt3D+oq0y3dsxMuYuDvaNUvuT8eFBuLmfR0iYYzHC1e8hpzC6ZsxbuP6DIalMFA==", "dev": true, "requires": { - "component-emitter": "1.2.1", - "cookiejar": "2.1.1", - "debug": "3.1.0", - "extend": "3.0.1", - "form-data": "2.3.2", - "formidable": "1.2.1", - "methods": "1.1.2", - "mime": "1.6.0", - "qs": "6.5.2", - "readable-stream": "2.3.6" + "component-emitter": "^1.2.0", + "cookiejar": "^2.1.0", + "debug": "^3.1.0", + "extend": "^3.0.0", + "form-data": "^2.3.1", + "formidable": "^1.2.0", + "methods": "^1.1.1", + "mime": "^1.4.1", + "qs": "^6.5.1", + "readable-stream": "^2.3.5" }, "dependencies": { "debug": { @@ -12096,11 +11808,11 @@ "integrity": "sha512-HZJ3geIMPgVwKk2VsmO5YHqnnJYl6bV5A9JW2uzqV43WmpgliNEYbuvukfor7URpaqpxuw3CfZ3ONdVbZjCgIA==", "dev": true, "requires": { - "arrify": "1.0.1", - "indent-string": "3.2.0", - "js-yaml": "3.11.0", - "serialize-error": "2.1.0", - "strip-ansi": "4.0.0" + "arrify": "^1.0.1", + "indent-string": "^3.2.0", + "js-yaml": "^3.10.0", + "serialize-error": "^2.1.0", + "strip-ansi": "^4.0.0" }, "dependencies": { "ansi-regex": { @@ -12115,7 +11827,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -12126,8 +11838,8 @@ "integrity": "sha1-jUu2j9GDDuBwM7HFpamkAhyWUpY=", "dev": true, "requires": { - "methods": "1.1.2", - "superagent": "3.8.3" + "methods": "~1.1.2", + "superagent": "^3.0.0" } }, "supports-color": { @@ -12136,7 +11848,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" }, "dependencies": { "has-flag": { @@ -12154,39 +11866,63 @@ "dev": true }, "table": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/table/-/table-4.0.2.tgz", - "integrity": "sha512-UUkEAPdSGxtRpiV9ozJ5cMTtYiqz7Ni1OGqLXRCynrvzdtR1p+cfOWe2RJLwvUG8hNanaSRjecIqwOjqeatDsA==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/table/-/table-4.0.3.tgz", + "integrity": "sha512-S7rnFITmBH1EnyKcvxBh1LjYeQMmnZtCXSEbHcH6S0NoKit24ZuFO/T1vDcLdYsLQkM188PVVhQmzKIuThNkKg==", "dev": true, "requires": { - "ajv": "5.5.2", - "ajv-keywords": "2.1.1", - "chalk": "2.4.1", - "lodash": "4.17.10", + "ajv": "^6.0.1", + "ajv-keywords": "^3.0.0", + "chalk": "^2.1.0", + "lodash": "^4.17.4", "slice-ansi": "1.0.0", - "string-width": "2.1.1" + "string-width": "^2.1.1" }, "dependencies": { + "ajv": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.1.tgz", + "integrity": "sha512-pgZos1vgOHDiC7gKNbZW8eKvCnNXARv2oqrGQT7Hzbq5Azp7aZG6DJzADnkuSq7RH6qkXp4J/m68yPX/2uBHyQ==", + "dev": true, + "requires": { + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.1" + } + }, "ansi-regex": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "dev": true }, + "fast-deep-equal": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", + "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", + "dev": true + }, "is-fullwidth-code-point": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true + }, "string-width": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -12195,7 +11931,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -12212,7 +11948,7 @@ "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", "dev": true, "requires": { - "execa": "0.7.0" + "execa": "^0.7.0" } }, "text-encoding": { @@ -12238,8 +11974,8 @@ "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", "requires": { - "readable-stream": "2.3.6", - "xtend": "4.0.1" + "readable-stream": "^2.1.5", + "xtend": "~4.0.1" } }, "time-zone": { @@ -12260,7 +11996,7 @@ "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, "requires": { - "os-tmpdir": "1.0.2" + "os-tmpdir": "~1.0.2" } }, "to-fast-properties": { @@ -12274,7 +12010,7 @@ "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" }, "dependencies": { "kind-of": { @@ -12282,7 +12018,7 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -12292,10 +12028,10 @@ "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", "requires": { - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "regex-not": "1.0.2", - "safe-regex": "1.1.0" + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" } }, "to-regex-range": { @@ -12303,8 +12039,8 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", "requires": { - "is-number": "3.0.0", - "repeat-string": "1.6.1" + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" } }, "tough-cookie": { @@ -12312,7 +12048,7 @@ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", "requires": { - "punycode": "1.4.1" + "punycode": "^1.4.1" } }, "traverse": { @@ -12343,7 +12079,7 @@ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "requires": { - "safe-buffer": "5.1.2" + "safe-buffer": "^5.0.1" } }, "tweetnacl": { @@ -12358,7 +12094,7 @@ "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", "dev": true, "requires": { - "prelude-ls": "1.1.2" + "prelude-ls": "~1.1.2" } }, "type-detect": { @@ -12372,12 +12108,6 @@ "resolved": "https://registry.npmjs.org/type-name/-/type-name-2.0.2.tgz", "integrity": "sha1-7+fUEj2KxSr/9/QMfk3sUmYAj7Q=" }, - "typedarray": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", - "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", - "dev": true - }, "uglify-js": { "version": "2.8.29", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", @@ -12385,9 +12115,9 @@ "dev": true, "optional": true, "requires": { - "source-map": "0.5.7", - "uglify-to-browserify": "1.0.2", - "yargs": "3.10.0" + "source-map": "~0.5.1", + "uglify-to-browserify": "~1.0.0", + "yargs": "~3.10.0" }, "dependencies": { "camelcase": { @@ -12404,8 +12134,8 @@ "dev": true, "optional": true, "requires": { - "center-align": "0.1.3", - "right-align": "0.1.3", + "center-align": "^0.1.1", + "right-align": "^0.1.1", "wordwrap": "0.0.2" } }, @@ -12430,9 +12160,9 @@ "dev": true, "optional": true, "requires": { - "camelcase": "1.2.1", - "cliui": "2.1.0", - "decamelize": "1.2.0", + "camelcase": "^1.0.2", + "cliui": "^2.1.0", + "decamelize": "^1.0.0", "window-size": "0.1.0" } } @@ -12479,10 +12209,10 @@ "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", "requires": { - "arr-union": "3.1.0", - "get-value": "2.0.6", - "is-extendable": "0.1.1", - "set-value": "0.4.3" + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^0.4.3" }, "dependencies": { "extend-shallow": { @@ -12490,7 +12220,7 @@ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } }, "set-value": { @@ -12498,10 +12228,10 @@ "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", "requires": { - "extend-shallow": "2.0.1", - "is-extendable": "0.1.1", - "is-plain-object": "2.0.4", - "to-object-path": "0.3.0" + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.1", + "to-object-path": "^0.3.0" } } } @@ -12512,7 +12242,7 @@ "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", "dev": true, "requires": { - "crypto-random-string": "1.0.0" + "crypto-random-string": "^1.0.0" } }, "unique-temp-dir": { @@ -12521,8 +12251,8 @@ "integrity": "sha1-bc6VsmgcoAPuv7MEpBX5y6vMU4U=", "dev": true, "requires": { - "mkdirp": "0.5.1", - "os-tmpdir": "1.0.2", + "mkdirp": "^0.5.1", + "os-tmpdir": "^1.0.1", "uid2": "0.0.3" } }, @@ -12531,9 +12261,9 @@ "resolved": "https://registry.npmjs.org/universal-deep-strict-equal/-/universal-deep-strict-equal-1.2.2.tgz", "integrity": "sha1-DaSsL3PP95JMgfpN4BjKViyisKc=", "requires": { - "array-filter": "1.0.0", + "array-filter": "^1.0.0", "indexof": "0.0.1", - "object-keys": "1.0.11" + "object-keys": "^1.0.0" } }, "universalify": { @@ -12547,8 +12277,8 @@ "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", "requires": { - "has-value": "0.3.1", - "isobject": "3.0.1" + "has-value": "^0.3.1", + "isobject": "^3.0.0" }, "dependencies": { "has-value": { @@ -12556,9 +12286,9 @@ "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", "requires": { - "get-value": "2.0.6", - "has-values": "0.1.4", - "isobject": "2.1.0" + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" }, "dependencies": { "isobject": { @@ -12590,16 +12320,33 @@ "integrity": "sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw==", "dev": true, "requires": { - "boxen": "1.3.0", - "chalk": "2.4.1", - "configstore": "3.1.2", - "import-lazy": "2.1.0", - "is-ci": "1.1.0", - "is-installed-globally": "0.1.0", - "is-npm": "1.0.0", - "latest-version": "3.1.0", - "semver-diff": "2.1.0", - "xdg-basedir": "3.0.0" + "boxen": "^1.2.1", + "chalk": "^2.0.1", + "configstore": "^3.0.0", + "import-lazy": "^2.1.0", + "is-ci": "^1.0.10", + "is-installed-globally": "^0.1.0", + "is-npm": "^1.0.0", + "latest-version": "^3.0.0", + "semver-diff": "^2.0.0", + "xdg-basedir": "^3.0.0" + } + }, + "uri-js": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", + "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", + "dev": true, + "requires": { + "punycode": "^2.1.0" + }, + "dependencies": { + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "dev": true + } } }, "urix": { @@ -12613,7 +12360,7 @@ "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", "dev": true, "requires": { - "prepend-http": "1.0.4" + "prepend-http": "^1.0.1" } }, "url-to-options": { @@ -12633,7 +12380,7 @@ "resolved": "https://registry.npmjs.org/use/-/use-3.1.0.tgz", "integrity": "sha512-6UJEQM/L+mzC3ZJNM56Q4DFGLX/evKGRg15UJHGB9X5j5Z3AFbgZvjUh2yq/UJUY4U5dh7Fal++XbNg1uzpRAw==", "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.2" } }, "util-deprecate": { @@ -12652,8 +12399,8 @@ "integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==", "dev": true, "requires": { - "spdx-correct": "3.0.0", - "spdx-expression-parse": "3.0.0" + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" } }, "verror": { @@ -12661,9 +12408,9 @@ "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "requires": { - "assert-plus": "1.0.0", + "assert-plus": "^1.0.0", "core-util-is": "1.0.2", - "extsprintf": "1.3.0" + "extsprintf": "^1.2.0" } }, "well-known-symbols": { @@ -12678,7 +12425,7 @@ "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", "dev": true, "requires": { - "isexe": "2.0.0" + "isexe": "^2.0.0" } }, "which-module": { @@ -12693,7 +12440,7 @@ "integrity": "sha1-AUKk6KJD+IgsAjOqDgKBqnYVInM=", "dev": true, "requires": { - "string-width": "2.1.1" + "string-width": "^2.1.1" }, "dependencies": { "ansi-regex": { @@ -12714,8 +12461,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -12724,7 +12471,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -12745,8 +12492,8 @@ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" } }, "wrappy": { @@ -12760,7 +12507,7 @@ "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", "dev": true, "requires": { - "mkdirp": "0.5.1" + "mkdirp": "^0.5.1" } }, "write-file-atomic": { @@ -12769,9 +12516,9 @@ "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "imurmurhash": "0.1.4", - "signal-exit": "3.0.2" + "graceful-fs": "^4.1.11", + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.2" } }, "write-json-file": { @@ -12780,12 +12527,12 @@ "integrity": "sha1-K2TIozAE1UuGmMdtWFp3zrYdoy8=", "dev": true, "requires": { - "detect-indent": "5.0.0", - "graceful-fs": "4.1.11", - "make-dir": "1.3.0", - "pify": "3.0.0", - "sort-keys": "2.0.0", - "write-file-atomic": "2.3.0" + "detect-indent": "^5.0.0", + "graceful-fs": "^4.1.2", + "make-dir": "^1.0.0", + "pify": "^3.0.0", + "sort-keys": "^2.0.0", + "write-file-atomic": "^2.0.0" }, "dependencies": { "detect-indent": { @@ -12802,8 +12549,8 @@ "integrity": "sha1-AwqZlMyZk9JbTnWp8aGSNgcpHOk=", "dev": true, "requires": { - "sort-keys": "2.0.0", - "write-json-file": "2.3.0" + "sort-keys": "^2.0.0", + "write-json-file": "^2.2.0" } }, "xdg-basedir": { @@ -12838,13 +12585,13 @@ "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", "requires": { - "camelcase": "2.1.1", - "cliui": "3.2.0", - "decamelize": "1.2.0", - "os-locale": "1.4.0", - "string-width": "1.0.2", - "window-size": "0.1.4", - "y18n": "3.2.1" + "camelcase": "^2.0.1", + "cliui": "^3.0.3", + "decamelize": "^1.1.1", + "os-locale": "^1.4.0", + "string-width": "^1.0.1", + "window-size": "^0.1.4", + "y18n": "^3.2.0" } }, "yargs-parser": { @@ -12853,7 +12600,7 @@ "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", "dev": true, "requires": { - "camelcase": "4.1.0" + "camelcase": "^4.1.0" }, "dependencies": { "camelcase": { diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 6520a28a5a6..6a9f27d9467 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -54,7 +54,7 @@ "@google-cloud/nodejs-repo-tools": "^2.2.4", "async": "^2.6.0", "codecov": "^3.0.0", - "eslint": "^4.13.1", + "eslint": "^5.0.1", "eslint-config-prettier": "^2.9.0", "eslint-plugin-node": "^6.0.0", "eslint-plugin-prettier": "^2.3.1", diff --git a/packages/google-container/system-test/container.js b/packages/google-container/system-test/container.js new file mode 100644 index 00000000000..2ccff07db26 --- /dev/null +++ b/packages/google-container/system-test/container.js @@ -0,0 +1,18 @@ +/** + * Copyright 2018, Google, LLC. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * 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. + */ + +'use strict'; + +console.warn('No system tests available!'); From 4b6f80d12761e1aa19d765c16c17e365d5b43b38 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Wed, 27 Jun 2018 12:41:43 -0700 Subject: [PATCH 034/371] chore(deps): update dependency @google-cloud/nodejs-repo-tools to v2.3.0 (#41) --- packages/google-container/samples/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 1c3168de549..d63ae903c90 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -17,9 +17,9 @@ "test": "node -e 'console.log(`no tests`);'" }, "dependencies": { - "@google-cloud/container": "0.2.0" + "@google-cloud/container": "^0.2.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "2.2.4" + "@google-cloud/nodejs-repo-tools": "^2.3.0" } } From f763d7a4452b05c5cc8e2a17df983f40dbd23fe8 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Thu, 28 Jun 2018 12:03:04 -0700 Subject: [PATCH 035/371] Check in synth script and update gax dependency (#43) --- packages/google-container/package-lock.json | 1816 +++++++++++------ packages/google-container/package.json | 2 +- .../smoke-test/cluster_manager_smoke_test.js | 4 +- .../src/v1/cluster_manager_client.js | 12 +- .../container/v1/doc_cluster_service.js | 4 +- .../src/v1/doc/google/protobuf/doc_empty.js | 34 + packages/google-container/src/v1/index.js | 4 +- packages/google-container/synth.py | 29 + packages/google-container/test/gapic-v1.js | 4 +- 9 files changed, 1264 insertions(+), 645 deletions(-) create mode 100644 packages/google-container/src/v1/doc/google/protobuf/doc_empty.js create mode 100644 packages/google-container/synth.py diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 6e309a0ddb5..18b9eb91d13 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -310,7 +310,8 @@ "dependencies": { "align-text": { "version": "0.1.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "dev": true, "requires": { "kind-of": "^3.0.2", @@ -320,22 +321,26 @@ }, "amdefine": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", "dev": true }, "ansi-regex": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true }, "ansi-styles": { "version": "2.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, "append-transform": { "version": "0.4.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-126/jKlNJ24keja61EpLdKthGZE=", "dev": true, "requires": { "default-require-extensions": "^1.0.0" @@ -343,12 +348,14 @@ }, "archy": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", "dev": true }, "arr-diff": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", "dev": true, "requires": { "arr-flatten": "^1.0.1" @@ -356,27 +363,32 @@ }, "arr-flatten": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", "dev": true }, "array-unique": { "version": "0.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", "dev": true }, "arrify": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", "dev": true }, "async": { "version": "1.5.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "dev": true }, "babel-code-frame": { "version": "6.26.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", "dev": true, "requires": { "chalk": "^1.1.3", @@ -386,7 +398,8 @@ }, "babel-generator": { "version": "6.26.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-rBriAHC3n248odMmlhMFN3TyDcU=", "dev": true, "requires": { "babel-messages": "^6.23.0", @@ -401,7 +414,8 @@ }, "babel-messages": { "version": "6.23.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", "dev": true, "requires": { "babel-runtime": "^6.22.0" @@ -409,7 +423,8 @@ }, "babel-runtime": { "version": "6.26.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "dev": true, "requires": { "core-js": "^2.4.0", @@ -418,7 +433,8 @@ }, "babel-template": { "version": "6.26.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", "dev": true, "requires": { "babel-runtime": "^6.26.0", @@ -430,7 +446,8 @@ }, "babel-traverse": { "version": "6.26.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", "dev": true, "requires": { "babel-code-frame": "^6.26.0", @@ -446,7 +463,8 @@ }, "babel-types": { "version": "6.26.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", "dev": true, "requires": { "babel-runtime": "^6.26.0", @@ -457,17 +475,20 @@ }, "babylon": { "version": "6.18.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", "dev": true }, "balanced-match": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, "brace-expansion": { "version": "1.1.8", - "bundled": true, + "resolved": false, + "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -476,7 +497,8 @@ }, "braces": { "version": "1.8.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", "dev": true, "requires": { "expand-range": "^1.8.1", @@ -486,12 +508,14 @@ }, "builtin-modules": { "version": "1.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", "dev": true }, "caching-transform": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-bb2y8g+Nj7znnz6U6dF0Lc31wKE=", "dev": true, "requires": { "md5-hex": "^1.2.0", @@ -501,13 +525,15 @@ }, "camelcase": { "version": "1.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", "dev": true, "optional": true }, "center-align": { "version": "0.1.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", "dev": true, "optional": true, "requires": { @@ -517,7 +543,8 @@ }, "chalk": { "version": "1.1.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { "ansi-styles": "^2.2.1", @@ -529,7 +556,8 @@ }, "cliui": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", "dev": true, "optional": true, "requires": { @@ -540,7 +568,8 @@ "dependencies": { "wordwrap": { "version": "0.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", "dev": true, "optional": true } @@ -548,32 +577,38 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, "commondir": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", "dev": true }, "concat-map": { "version": "0.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, "convert-source-map": { "version": "1.5.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", "dev": true }, "core-js": { "version": "2.5.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4=", "dev": true }, "cross-spawn": { "version": "4.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=", "dev": true, "requires": { "lru-cache": "^4.0.1", @@ -582,7 +617,8 @@ }, "debug": { "version": "2.6.9", - "bundled": true, + "resolved": false, + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, "requires": { "ms": "2.0.0" @@ -590,17 +626,20 @@ }, "debug-log": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-IwdjLUwEOCuN+KMvcLiVBG1SdF8=", "dev": true }, "decamelize": { "version": "1.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true }, "default-require-extensions": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-836hXT4T/9m0N9M+GnW1+5eHTLg=", "dev": true, "requires": { "strip-bom": "^2.0.0" @@ -608,7 +647,8 @@ }, "detect-indent": { "version": "4.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", "dev": true, "requires": { "repeating": "^2.0.0" @@ -616,7 +656,8 @@ }, "error-ex": { "version": "1.3.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", "dev": true, "requires": { "is-arrayish": "^0.2.1" @@ -624,17 +665,20 @@ }, "escape-string-regexp": { "version": "1.0.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", "dev": true }, "esutils": { "version": "2.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", "dev": true }, "execa": { "version": "0.7.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", "dev": true, "requires": { "cross-spawn": "^5.0.1", @@ -648,7 +692,8 @@ "dependencies": { "cross-spawn": { "version": "5.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", "dev": true, "requires": { "lru-cache": "^4.0.1", @@ -660,7 +705,8 @@ }, "expand-brackets": { "version": "0.1.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", "dev": true, "requires": { "is-posix-bracket": "^0.1.0" @@ -668,7 +714,8 @@ }, "expand-range": { "version": "1.8.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", "dev": true, "requires": { "fill-range": "^2.1.0" @@ -676,7 +723,8 @@ }, "extglob": { "version": "0.3.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", "dev": true, "requires": { "is-extglob": "^1.0.0" @@ -684,12 +732,14 @@ }, "filename-regex": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", "dev": true }, "fill-range": { "version": "2.2.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", "dev": true, "requires": { "is-number": "^2.1.0", @@ -701,7 +751,8 @@ }, "find-cache-dir": { "version": "0.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-yN765XyKUqinhPnjHFfHQumToLk=", "dev": true, "requires": { "commondir": "^1.0.1", @@ -711,7 +762,8 @@ }, "find-up": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { "locate-path": "^2.0.0" @@ -719,12 +771,14 @@ }, "for-in": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, "for-own": { "version": "0.1.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", "dev": true, "requires": { "for-in": "^1.0.1" @@ -732,7 +786,8 @@ }, "foreground-child": { "version": "1.5.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-T9ca0t/elnibmApcCilZN8svXOk=", "dev": true, "requires": { "cross-spawn": "^4", @@ -741,22 +796,26 @@ }, "fs.realpath": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, "get-caller-file": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", "dev": true }, "get-stream": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", "dev": true }, "glob": { "version": "7.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -769,7 +828,8 @@ }, "glob-base": { "version": "0.3.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", "dev": true, "requires": { "glob-parent": "^2.0.0", @@ -778,7 +838,8 @@ }, "glob-parent": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", "dev": true, "requires": { "is-glob": "^2.0.0" @@ -786,17 +847,20 @@ }, "globals": { "version": "9.18.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", "dev": true }, "graceful-fs": { "version": "4.1.11", - "bundled": true, + "resolved": false, + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", "dev": true }, "handlebars": { "version": "4.0.11", - "bundled": true, + "resolved": false, + "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", "dev": true, "requires": { "async": "^1.4.0", @@ -807,7 +871,8 @@ "dependencies": { "source-map": { "version": "0.4.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", "dev": true, "requires": { "amdefine": ">=0.0.4" @@ -817,7 +882,8 @@ }, "has-ansi": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, "requires": { "ansi-regex": "^2.0.0" @@ -825,22 +891,26 @@ }, "has-flag": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", "dev": true }, "hosted-git-info": { "version": "2.5.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", "dev": true }, "imurmurhash": { "version": "0.1.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, "inflight": { "version": "1.0.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { "once": "^1.3.0", @@ -849,12 +919,14 @@ }, "inherits": { "version": "2.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", "dev": true }, "invariant": { "version": "2.2.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-nh9WrArNtr8wMwbzOL47IErmA2A=", "dev": true, "requires": { "loose-envify": "^1.0.0" @@ -862,22 +934,26 @@ }, "invert-kv": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", "dev": true }, "is-arrayish": { "version": "0.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, "is-buffer": { "version": "1.1.6", - "bundled": true, + "resolved": false, + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", "dev": true }, "is-builtin-module": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", "dev": true, "requires": { "builtin-modules": "^1.0.0" @@ -885,12 +961,14 @@ }, "is-dotfile": { "version": "1.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", "dev": true }, "is-equal-shallow": { "version": "0.1.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", "dev": true, "requires": { "is-primitive": "^2.0.0" @@ -898,17 +976,20 @@ }, "is-extendable": { "version": "0.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", "dev": true }, "is-extglob": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", "dev": true }, "is-finite": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", "dev": true, "requires": { "number-is-nan": "^1.0.0" @@ -916,7 +997,8 @@ }, "is-fullwidth-code-point": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { "number-is-nan": "^1.0.0" @@ -924,7 +1006,8 @@ }, "is-glob": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, "requires": { "is-extglob": "^1.0.0" @@ -932,7 +1015,8 @@ }, "is-number": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -940,37 +1024,44 @@ }, "is-posix-bracket": { "version": "0.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", "dev": true }, "is-primitive": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", "dev": true }, "is-stream": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", "dev": true }, "is-utf8": { "version": "0.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", "dev": true }, "isarray": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, "isexe": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, "isobject": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", "dev": true, "requires": { "isarray": "1.0.0" @@ -978,12 +1069,14 @@ }, "istanbul-lib-coverage": { "version": "1.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-0+1vDkmzxqJIn5rcoEqapSB4DmPxE31EtI2dF2aCkV5esN9EWHxZ0dwgDClivMXJqE7zaYQxq30hj5L0nlTN5Q==", "dev": true }, "istanbul-lib-hook": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-U3qEgwVDUerZ0bt8cfl3dSP3S6opBoOtk3ROO5f2EfBr/SRiD9FQqzwaZBqFORu8W7O0EXpai+k7kxHK13beRg==", "dev": true, "requires": { "append-transform": "^0.4.0" @@ -991,7 +1084,8 @@ }, "istanbul-lib-instrument": { "version": "1.9.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-RQmXeQ7sphar7k7O1wTNzVczF9igKpaeGQAG9qR2L+BS4DCJNTI9nytRmIVYevwO0bbq+2CXvJmYDuz0gMrywA==", "dev": true, "requires": { "babel-generator": "^6.18.0", @@ -1005,7 +1099,8 @@ }, "istanbul-lib-report": { "version": "1.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-UTv4VGx+HZivJQwAo1wnRwe1KTvFpfi/NYwN7DcsrdzMXwpRT/Yb6r4SBPoHWj4VuQPakR32g4PUUeyKkdDkBA==", "dev": true, "requires": { "istanbul-lib-coverage": "^1.1.1", @@ -1016,7 +1111,8 @@ "dependencies": { "supports-color": { "version": "3.2.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", "dev": true, "requires": { "has-flag": "^1.0.0" @@ -1026,7 +1122,8 @@ }, "istanbul-lib-source-maps": { "version": "1.2.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-8BfdqSfEdtip7/wo1RnrvLpHVEd8zMZEDmOFEnpC6dg0vXflHt9nvoAyQUzig2uMSXfF2OBEYBV3CVjIL9JvaQ==", "dev": true, "requires": { "debug": "^3.1.0", @@ -1038,7 +1135,8 @@ "dependencies": { "debug": { "version": "3.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", "dev": true, "requires": { "ms": "2.0.0" @@ -1048,7 +1146,8 @@ }, "istanbul-reports": { "version": "1.1.3", - "bundled": true, + "resolved": false, + "integrity": "sha512-ZEelkHh8hrZNI5xDaKwPMFwDsUf5wIEI2bXAFGp1e6deR2mnEKBPhLJEgr4ZBt8Gi6Mj38E/C8kcy9XLggVO2Q==", "dev": true, "requires": { "handlebars": "^4.0.3" @@ -1056,17 +1155,20 @@ }, "js-tokens": { "version": "3.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", "dev": true }, "jsesc": { "version": "1.3.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", "dev": true }, "kind-of": { "version": "3.2.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -1074,13 +1176,15 @@ }, "lazy-cache": { "version": "1.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", "dev": true, "optional": true }, "lcid": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "dev": true, "requires": { "invert-kv": "^1.0.0" @@ -1088,7 +1192,8 @@ }, "load-json-file": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -1100,7 +1205,8 @@ }, "locate-path": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "dev": true, "requires": { "p-locate": "^2.0.0", @@ -1109,24 +1215,28 @@ "dependencies": { "path-exists": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", "dev": true } } }, "lodash": { "version": "4.17.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", "dev": true }, "longest": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", "dev": true }, "loose-envify": { "version": "1.3.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", "dev": true, "requires": { "js-tokens": "^3.0.0" @@ -1134,7 +1244,8 @@ }, "lru-cache": { "version": "4.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", "dev": true, "requires": { "pseudomap": "^1.0.2", @@ -1143,7 +1254,8 @@ }, "md5-hex": { "version": "1.3.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-0sSv6YPENwZiF5uMrRRSGRNQRsQ=", "dev": true, "requires": { "md5-o-matic": "^0.1.1" @@ -1151,12 +1263,14 @@ }, "md5-o-matic": { "version": "0.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-givM1l4RfFFPqxdrJZRdVBAKA8M=", "dev": true }, "mem": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", "dev": true, "requires": { "mimic-fn": "^1.0.0" @@ -1164,7 +1278,8 @@ }, "merge-source-map": { "version": "1.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-pd5GU42uhNQRTMXqArR3KmNGcB8=", "dev": true, "requires": { "source-map": "^0.5.6" @@ -1172,7 +1287,8 @@ }, "micromatch": { "version": "2.3.11", - "bundled": true, + "resolved": false, + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", "dev": true, "requires": { "arr-diff": "^2.0.0", @@ -1192,12 +1308,14 @@ }, "mimic-fn": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-5md4PZLonb00KBi1IwudYqZyrRg=", "dev": true }, "minimatch": { "version": "3.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { "brace-expansion": "^1.1.7" @@ -1205,12 +1323,14 @@ }, "minimist": { "version": "0.0.8", - "bundled": true, + "resolved": false, + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, "mkdirp": { "version": "0.5.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { "minimist": "0.0.8" @@ -1218,12 +1338,14 @@ }, "ms": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, "normalize-package-data": { "version": "2.4.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", "dev": true, "requires": { "hosted-git-info": "^2.1.4", @@ -1234,7 +1356,8 @@ }, "normalize-path": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", "dev": true, "requires": { "remove-trailing-separator": "^1.0.1" @@ -1242,7 +1365,8 @@ }, "npm-run-path": { "version": "2.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, "requires": { "path-key": "^2.0.0" @@ -1250,17 +1374,20 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true }, "object-assign": { "version": "4.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true }, "object.omit": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", "dev": true, "requires": { "for-own": "^0.1.4", @@ -1269,7 +1396,8 @@ }, "once": { "version": "1.4.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { "wrappy": "1" @@ -1277,7 +1405,8 @@ }, "optimist": { "version": "0.6.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", "dev": true, "requires": { "minimist": "~0.0.1", @@ -1286,12 +1415,14 @@ }, "os-homedir": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true }, "os-locale": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", "dev": true, "requires": { "execa": "^0.7.0", @@ -1301,17 +1432,20 @@ }, "p-finally": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", "dev": true }, "p-limit": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-sH/y2aXYi+yAYDWJWiurZqJ5iLw=", "dev": true }, "p-locate": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "requires": { "p-limit": "^1.1.0" @@ -1319,7 +1453,8 @@ }, "parse-glob": { "version": "3.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", "dev": true, "requires": { "glob-base": "^0.3.0", @@ -1330,7 +1465,8 @@ }, "parse-json": { "version": "2.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "dev": true, "requires": { "error-ex": "^1.2.0" @@ -1338,7 +1474,8 @@ }, "path-exists": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "dev": true, "requires": { "pinkie-promise": "^2.0.0" @@ -1346,22 +1483,26 @@ }, "path-is-absolute": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, "path-key": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", "dev": true }, "path-parse": { "version": "1.0.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", "dev": true }, "path-type": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -1371,17 +1512,20 @@ }, "pify": { "version": "2.3.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", "dev": true }, "pinkie": { "version": "2.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", "dev": true }, "pinkie-promise": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { "pinkie": "^2.0.0" @@ -1389,7 +1533,8 @@ }, "pkg-dir": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", "dev": true, "requires": { "find-up": "^1.0.0" @@ -1397,7 +1542,8 @@ "dependencies": { "find-up": { "version": "1.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { "path-exists": "^2.0.0", @@ -1408,17 +1554,20 @@ }, "preserve": { "version": "0.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", "dev": true }, "pseudomap": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", "dev": true }, "randomatic": { "version": "1.1.7", - "bundled": true, + "resolved": false, + "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", "dev": true, "requires": { "is-number": "^3.0.0", @@ -1427,7 +1576,8 @@ "dependencies": { "is-number": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -1435,7 +1585,8 @@ "dependencies": { "kind-of": { "version": "3.2.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -1445,7 +1596,8 @@ }, "kind-of": { "version": "4.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -1455,7 +1607,8 @@ }, "read-pkg": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", "dev": true, "requires": { "load-json-file": "^1.0.0", @@ -1465,7 +1618,8 @@ }, "read-pkg-up": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", "dev": true, "requires": { "find-up": "^1.0.0", @@ -1474,7 +1628,8 @@ "dependencies": { "find-up": { "version": "1.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { "path-exists": "^2.0.0", @@ -1485,12 +1640,14 @@ }, "regenerator-runtime": { "version": "0.11.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", "dev": true }, "regex-cache": { "version": "0.4.4", - "bundled": true, + "resolved": false, + "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", "dev": true, "requires": { "is-equal-shallow": "^0.1.3" @@ -1498,22 +1655,26 @@ }, "remove-trailing-separator": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", "dev": true }, "repeat-element": { "version": "1.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", "dev": true }, "repeat-string": { "version": "1.6.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", "dev": true }, "repeating": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", "dev": true, "requires": { "is-finite": "^1.0.0" @@ -1521,22 +1682,26 @@ }, "require-directory": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true }, "require-main-filename": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", "dev": true }, "resolve-from": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=", "dev": true }, "right-align": { "version": "0.1.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", "dev": true, "optional": true, "requires": { @@ -1545,7 +1710,8 @@ }, "rimraf": { "version": "2.6.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, "requires": { "glob": "^7.0.5" @@ -1553,17 +1719,20 @@ }, "semver": { "version": "5.4.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", "dev": true }, "set-blocking": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, "shebang-command": { "version": "1.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, "requires": { "shebang-regex": "^1.0.0" @@ -1571,27 +1740,32 @@ }, "shebang-regex": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", "dev": true }, "signal-exit": { "version": "3.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, "slide": { "version": "1.1.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=", "dev": true }, "source-map": { "version": "0.5.7", - "bundled": true, + "resolved": false, + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true }, "spawn-wrap": { "version": "1.4.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-vMwR3OmmDhnxCVxM8M+xO/FtIp6Ju/mNaDfCMMW7FDcLRTPFWUswec4LXJHTJE2hwTI9O0YBfygu4DalFl7Ylg==", "dev": true, "requires": { "foreground-child": "^1.5.6", @@ -1604,7 +1778,8 @@ }, "spdx-correct": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", "dev": true, "requires": { "spdx-license-ids": "^1.0.2" @@ -1612,17 +1787,20 @@ }, "spdx-expression-parse": { "version": "1.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", "dev": true }, "spdx-license-ids": { "version": "1.2.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", "dev": true }, "string-width": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { "is-fullwidth-code-point": "^2.0.0", @@ -1631,17 +1809,20 @@ "dependencies": { "ansi-regex": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "dev": true }, "is-fullwidth-code-point": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, "strip-ansi": { "version": "4.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { "ansi-regex": "^3.0.0" @@ -1651,7 +1832,8 @@ }, "strip-ansi": { "version": "3.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { "ansi-regex": "^2.0.0" @@ -1659,7 +1841,8 @@ }, "strip-bom": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { "is-utf8": "^0.2.0" @@ -1667,17 +1850,20 @@ }, "strip-eof": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", "dev": true }, "supports-color": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", "dev": true }, "test-exclude": { "version": "4.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-35+Asrsk3XHJDBgf/VRFexPgh3UyETv8IAn/LRTiZjVy6rjPVqdEk8dJcJYBzl1w0XCJM48lvTy8SfEsCWS4nA==", "dev": true, "requires": { "arrify": "^1.0.1", @@ -1689,17 +1875,20 @@ }, "to-fast-properties": { "version": "1.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", "dev": true }, "trim-right": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", "dev": true }, "uglify-js": { "version": "2.8.29", - "bundled": true, + "resolved": false, + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", "dev": true, "optional": true, "requires": { @@ -1710,7 +1899,8 @@ "dependencies": { "yargs": { "version": "3.10.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", "dev": true, "optional": true, "requires": { @@ -1724,13 +1914,15 @@ }, "uglify-to-browserify": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", "dev": true, "optional": true }, "validate-npm-package-license": { "version": "3.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", "dev": true, "requires": { "spdx-correct": "~1.0.0", @@ -1739,7 +1931,8 @@ }, "which": { "version": "1.3.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", "dev": true, "requires": { "isexe": "^2.0.0" @@ -1747,23 +1940,27 @@ }, "which-module": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, "window-size": { "version": "0.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", "dev": true, "optional": true }, "wordwrap": { "version": "0.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", "dev": true }, "wrap-ansi": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "dev": true, "requires": { "string-width": "^1.0.1", @@ -1772,7 +1969,8 @@ "dependencies": { "string-width": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { "code-point-at": "^1.0.0", @@ -1784,12 +1982,14 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, "write-file-atomic": { "version": "1.3.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=", "dev": true, "requires": { "graceful-fs": "^4.1.11", @@ -1799,17 +1999,20 @@ }, "y18n": { "version": "3.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", "dev": true }, "yallist": { "version": "2.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", "dev": true }, "yargs": { "version": "10.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha512-DqBpQ8NAUX4GyPP/ijDGHsJya4tYqLQrjPr95HNsr1YwL3+daCfvBwg7+gIC6IdJhR2kATh3hb61vjzMWEtjdw==", "dev": true, "requires": { "cliui": "^3.2.0", @@ -1828,7 +2031,8 @@ "dependencies": { "cliui": { "version": "3.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", "dev": true, "requires": { "string-width": "^1.0.1", @@ -1838,7 +2042,8 @@ "dependencies": { "string-width": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { "code-point-at": "^1.0.0", @@ -1852,7 +2057,8 @@ }, "yargs-parser": { "version": "8.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-IdR2Mw5agieaS4gTRb8GYQLiGcY=", "dev": true, "requires": { "camelcase": "^4.1.0" @@ -1860,7 +2066,8 @@ "dependencies": { "camelcase": { "version": "4.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", "dev": true } } @@ -1975,9 +2182,9 @@ } }, "@nodelib/fs.stat": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.0.2.tgz", - "integrity": "sha512-vCpf75JDcdomXvUd7Rn6DfYAVqPAFI66FVjxiWGwh85OLdvfo3paBoPJaam5keIYRyUolnS7SleS/ZPCidCvzw==" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.0.tgz", + "integrity": "sha512-LAQ1d4OPfSJ/BMbI2DuizmYrrkD9JMaTdi2hQTlI53lQ4kRQPyZQRS4CYQ7O66bnBBnP/oYdRxbk++X0xuFU6A==" }, "@protobufjs/aspromise": { "version": "1.1.2", @@ -2054,9 +2261,9 @@ "integrity": "sha512-ZXyOOm83p7X8p3s0IYM3VeueNmHpkk/yMlP8CLeOnEcu6hIwPH7YjZBvhQkR0ZFS2DqZAxKtJ/M5fcuv3OU5BA==" }, "@types/node": { - "version": "8.10.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.17.tgz", - "integrity": "sha512-3N3FRd/rA1v5glXjb90YdYUa+sOB7WrkU2rAhKZnF4TKD86Cym9swtulGuH0p9nxo7fP5woRNa8b0oFTpCO1bg==" + "version": "8.10.20", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.20.tgz", + "integrity": "sha512-M7x8+5D1k/CuA6jhiwuSCmE8sbUWJF0wYsjcig9WrXvwUI5ArEoUBdOXpV4JcEMrLp02/QbDjw+kI+vQeKyQgg==" }, "acorn": { "version": "4.0.13", @@ -2089,6 +2296,7 @@ "version": "5.5.2", "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", + "dev": true, "requires": { "co": "^4.6.0", "fast-deep-equal": "^1.0.0", @@ -2387,12 +2595,14 @@ "asn1": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", - "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=" + "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", + "dev": true }, "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "dev": true }, "assign-symbols": { "version": "1.0.0", @@ -2403,6 +2613,7 @@ "version": "2.6.1", "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", + "dev": true, "requires": { "lodash": "^4.17.10" } @@ -2416,7 +2627,8 @@ "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "dev": true }, "atob": { "version": "2.1.1", @@ -2596,12 +2808,14 @@ "aws-sign2": { "version": "0.7.0", "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", + "dev": true }, "aws4": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz", - "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w==" + "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w==", + "dev": true }, "axios": { "version": "0.18.0", @@ -3111,6 +3325,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "dev": true, "optional": true, "requires": { "tweetnacl": "^0.14.3" @@ -3395,7 +3610,8 @@ "caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", + "dev": true }, "catharsis": { "version": "0.8.9", @@ -3614,7 +3830,8 @@ "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=" + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true }, "co-with-promise": { "version": "4.6.0", @@ -3689,6 +3906,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", + "dev": true, "requires": { "delayed-stream": "~1.0.0" } @@ -3856,6 +4074,7 @@ "version": "1.14.1", "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "dev": true, "requires": { "assert-plus": "^1.0.0" } @@ -4012,7 +4231,8 @@ "delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "dev": true }, "detect-indent": { "version": "4.0.0", @@ -4130,6 +4350,7 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "dev": true, "optional": true, "requires": { "jsbn": "~0.1.0" @@ -4892,12 +5113,14 @@ "extsprintf": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", + "dev": true }, "fast-deep-equal": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=" + "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", + "dev": true }, "fast-diff": { "version": "1.1.2", @@ -4921,7 +5144,8 @@ "fast-json-stable-stringify": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=" + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "dev": true }, "fast-levenshtein": { "version": "2.0.6", @@ -5063,12 +5287,14 @@ "forever-agent": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", + "dev": true }, "form-data": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", + "dev": true, "requires": { "asynckit": "^0.4.0", "combined-stream": "1.0.6", @@ -5128,24 +5354,28 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "dev": true, "optional": true }, "ansi-regex": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true }, "aproba": { "version": "1.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", "dev": true, "optional": true, "requires": { @@ -5155,12 +5385,14 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, "brace-expansion": { "version": "1.1.11", - "bundled": true, + "resolved": false, + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -5169,34 +5401,40 @@ }, "chownr": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", "dev": true, "optional": true }, "code-point-at": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, "concat-map": { "version": "0.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "dev": true }, "core-util-is": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true, "optional": true }, "debug": { "version": "2.6.9", - "bundled": true, + "resolved": false, + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, "optional": true, "requires": { @@ -5205,25 +5443,29 @@ }, "deep-extend": { "version": "0.5.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w==", "dev": true, "optional": true }, "delegates": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "dev": true, "optional": true }, "detect-libc": { "version": "1.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "dev": true, "optional": true }, "fs-minipass": { "version": "1.2.5", - "bundled": true, + "resolved": false, + "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", "dev": true, "optional": true, "requires": { @@ -5232,13 +5474,15 @@ }, "fs.realpath": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true, "optional": true }, "gauge": { "version": "2.7.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, "optional": true, "requires": { @@ -5254,7 +5498,8 @@ }, "glob": { "version": "7.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "optional": true, "requires": { @@ -5268,13 +5513,15 @@ }, "has-unicode": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true, "optional": true }, "iconv-lite": { "version": "0.4.21", - "bundled": true, + "resolved": false, + "integrity": "sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw==", "dev": true, "optional": true, "requires": { @@ -5283,7 +5530,8 @@ }, "ignore-walk": { "version": "3.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", "dev": true, "optional": true, "requires": { @@ -5292,7 +5540,8 @@ }, "inflight": { "version": "1.0.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "optional": true, "requires": { @@ -5302,18 +5551,21 @@ }, "inherits": { "version": "2.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", "dev": true }, "ini": { "version": "1.3.5", - "bundled": true, + "resolved": false, + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true, "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { "number-is-nan": "^1.0.0" @@ -5321,13 +5573,15 @@ }, "isarray": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true, "optional": true }, "minimatch": { "version": "3.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { "brace-expansion": "^1.1.7" @@ -5335,12 +5589,14 @@ }, "minimist": { "version": "0.0.8", - "bundled": true, + "resolved": false, + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, "minipass": { "version": "2.2.4", - "bundled": true, + "resolved": false, + "integrity": "sha512-hzXIWWet/BzWhYs2b+u7dRHlruXhwdgvlTMDKC6Cb1U7ps6Ac6yQlR39xsbjWJE377YTCtKwIXIpJ5oP+j5y8g==", "dev": true, "requires": { "safe-buffer": "^5.1.1", @@ -5349,7 +5605,8 @@ }, "minizlib": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-4T6Ur/GctZ27nHfpt9THOdRZNgyJ9FZchYO1ceg5S8Q3DNLCKYy44nCZzgCJgcvx2UM8czmqak5BCxJMrq37lA==", "dev": true, "optional": true, "requires": { @@ -5358,7 +5615,8 @@ }, "mkdirp": { "version": "0.5.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { "minimist": "0.0.8" @@ -5366,13 +5624,15 @@ }, "ms": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true, "optional": true }, "needle": { "version": "2.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-eFagy6c+TYayorXw/qtAdSvaUpEbBsDwDyxYFgLZ0lTojfH7K+OdBqAF7TAFwDokJaGpubpSGG0wO3iC0XPi8w==", "dev": true, "optional": true, "requires": { @@ -5383,7 +5643,8 @@ }, "node-pre-gyp": { "version": "0.10.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-G7kEonQLRbcA/mOoFoxvlMrw6Q6dPf92+t/l0DFSMuSlDoWaI9JWIyPwK0jyE1bph//CUEL65/Fz1m2vJbmjQQ==", "dev": true, "optional": true, "requires": { @@ -5401,7 +5662,8 @@ }, "nopt": { "version": "4.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", "dev": true, "optional": true, "requires": { @@ -5411,13 +5673,15 @@ }, "npm-bundled": { "version": "1.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha512-ByQ3oJ/5ETLyglU2+8dBObvhfWXX8dtPZDMePCahptliFX2iIuhyEszyFk401PZUNQH20vvdW5MLjJxkwU80Ow==", "dev": true, "optional": true }, "npm-packlist": { "version": "1.1.10", - "bundled": true, + "resolved": false, + "integrity": "sha512-AQC0Dyhzn4EiYEfIUjCdMl0JJ61I2ER9ukf/sLxJUcZHfo+VyEfz2rMJgLZSS1v30OxPQe1cN0LZA1xbcaVfWA==", "dev": true, "optional": true, "requires": { @@ -5427,7 +5691,8 @@ }, "npmlog": { "version": "4.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, "optional": true, "requires": { @@ -5439,18 +5704,21 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true }, "object-assign": { "version": "4.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true, "optional": true }, "once": { "version": "1.4.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { "wrappy": "1" @@ -5458,19 +5726,22 @@ }, "os-homedir": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true, "optional": true }, "os-tmpdir": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true, "optional": true }, "osenv": { "version": "0.1.5", - "bundled": true, + "resolved": false, + "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "dev": true, "optional": true, "requires": { @@ -5480,19 +5751,22 @@ }, "path-is-absolute": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true, "optional": true }, "process-nextick-args": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", "dev": true, "optional": true }, "rc": { "version": "1.2.7", - "bundled": true, + "resolved": false, + "integrity": "sha512-LdLD8xD4zzLsAT5xyushXDNscEjB7+2ulnl8+r1pnESlYtlJtVSoCMBGr30eDRJ3+2Gq89jK9P9e4tCEH1+ywA==", "dev": true, "optional": true, "requires": { @@ -5504,7 +5778,8 @@ "dependencies": { "minimist": { "version": "1.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true, "optional": true } @@ -5512,7 +5787,8 @@ }, "readable-stream": { "version": "2.3.6", - "bundled": true, + "resolved": false, + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "optional": true, "requires": { @@ -5527,7 +5803,8 @@ }, "rimraf": { "version": "2.6.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, "optional": true, "requires": { @@ -5536,42 +5813,49 @@ }, "safe-buffer": { "version": "5.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", "dev": true }, "safer-buffer": { "version": "2.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true, "optional": true }, "sax": { "version": "1.2.4", - "bundled": true, + "resolved": false, + "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true, "optional": true }, "semver": { "version": "5.5.0", - "bundled": true, + "resolved": false, + "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "dev": true, "optional": true }, "set-blocking": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true, "optional": true }, "signal-exit": { "version": "3.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true, "optional": true }, "string-width": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { "code-point-at": "^1.0.0", @@ -5581,7 +5865,8 @@ }, "string_decoder": { "version": "1.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "optional": true, "requires": { @@ -5590,7 +5875,8 @@ }, "strip-ansi": { "version": "3.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { "ansi-regex": "^2.0.0" @@ -5598,13 +5884,15 @@ }, "strip-json-comments": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true, "optional": true }, "tar": { "version": "4.4.1", - "bundled": true, + "resolved": false, + "integrity": "sha512-O+v1r9yN4tOsvl90p5HAP4AEqbYhx4036AGMm075fH9F8Qwi3oJ+v4u50FkT/KkvywNGtwkk0zRI+8eYm1X/xg==", "dev": true, "optional": true, "requires": { @@ -5619,13 +5907,15 @@ }, "util-deprecate": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true, "optional": true }, "wide-align": { "version": "1.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", "dev": true, "optional": true, "requires": { @@ -5634,12 +5924,14 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, "yallist": { "version": "3.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-hFK0u36Dx8GI2AQcGoN8dz1ti7k=", "dev": true } } @@ -5705,6 +5997,7 @@ "version": "0.1.7", "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "dev": true, "requires": { "assert-plus": "^1.0.0" } @@ -5812,44 +6105,34 @@ } }, "google-auth-library": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-1.5.0.tgz", - "integrity": "sha512-xpibA/hkq4waBcpIkSJg4GiDAqcBWjJee3c47zj7xP3RQ0A9mc8MP3Vc9sc8SGRoDYA0OszZxTjW7SbcC4pJIA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-1.6.1.tgz", + "integrity": "sha512-jYiWC8NA9n9OtQM7ANn0Tk464do9yhKEtaJ72pKcaBiEwn4LwcGYIYOfwtfsSm3aur/ed3tlSxbmg24IAT6gAg==", "requires": { "axios": "^0.18.0", "gcp-metadata": "^0.6.3", "gtoken": "^2.3.0", - "jws": "^3.1.4", + "jws": "^3.1.5", "lodash.isstring": "^4.0.1", - "lru-cache": "^4.1.2", + "lru-cache": "^4.1.3", "retry-axios": "^0.3.2" } }, - "google-auto-auth": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/google-auto-auth/-/google-auto-auth-0.10.1.tgz", - "integrity": "sha512-iIqSbY7Ypd32mnHGbYctp80vZzXoDlvI9gEfvtl3kmyy5HzOcrZCIGCBdSlIzRsg7nHpQiHE3Zl6Ycur6TSodQ==", - "requires": { - "async": "^2.3.0", - "gcp-metadata": "^0.6.1", - "google-auth-library": "^1.3.1", - "request": "^2.79.0" - } - }, "google-gax": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.16.1.tgz", - "integrity": "sha512-eP7UUkKvaHmmvCrr+rxzkIOeEKOnXmoib7/AkENDAuqlC9T2+lWlzwpthDRnitQcV8SblDMzsk73YPMPCDwPyQ==", + "version": "0.17.1", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.17.1.tgz", + "integrity": "sha512-fAKvFx++SRr6bGWamWuVOkJzJnQqMgpJkhaB2oEwfFJ91rbFgEmIPRmZZ/MeIVVFUOuHUVyZ8nwjm5peyTZJ6g==", "requires": { - "duplexify": "^3.5.4", - "extend": "^3.0.0", - "globby": "^8.0.0", - "google-auto-auth": "^0.10.0", - "google-proto-files": "^0.15.0", - "grpc": "^1.10.0", - "is-stream-ended": "^0.1.0", - "lodash": "^4.17.2", - "protobufjs": "^6.8.0", + "duplexify": "^3.6.0", + "extend": "^3.0.1", + "globby": "^8.0.1", + "google-auth-library": "^1.6.1", + "google-proto-files": "^0.16.0", + "grpc": "^1.12.2", + "is-stream-ended": "^0.1.4", + "lodash": "^4.17.10", + "protobufjs": "^6.8.6", + "retry-request": "^4.0.0", "through2": "^2.0.3" } }, @@ -5863,28 +6146,13 @@ } }, "google-proto-files": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/google-proto-files/-/google-proto-files-0.15.1.tgz", - "integrity": "sha512-ebtmWgi/ooR5Nl63qRVZZ6VLM6JOb5zTNxTT/ZAU8yfMOdcauoOZNNMOVg0pCmTjqWXeuuVbgPP0CwO5UHHzBQ==", + "version": "0.16.1", + "resolved": "https://registry.npmjs.org/google-proto-files/-/google-proto-files-0.16.1.tgz", + "integrity": "sha512-ykdhaYDiU/jlyrkzZDPemraKwVIgLT31XMHVNSJW//R9VED56hqSDRMx1Jlxbf0O4iDZnBWQ0JQLHbM2r5+wuA==", "requires": { - "globby": "^7.1.1", + "globby": "^8.0.0", "power-assert": "^1.4.4", "protobufjs": "^6.8.0" - }, - "dependencies": { - "globby": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/globby/-/globby-7.1.1.tgz", - "integrity": "sha1-+yzP+UAfhgCUXfral0QMypcrhoA=", - "requires": { - "array-union": "^1.0.1", - "dir-glob": "^2.0.0", - "glob": "^7.1.2", - "ignore": "^3.3.5", - "pify": "^3.0.0", - "slash": "^1.0.0" - } - } } }, "got": { @@ -5942,14 +6210,14 @@ "dev": true }, "grpc": { - "version": "1.11.3", - "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.11.3.tgz", - "integrity": "sha512-7fJ40USpnP7hxGK0uRoEhJz6unA5VUdwInfwAY2rK2+OVxdDJSdTZQ/8/M+1tW68pHZYgHvg2ohvJ+clhW3ANg==", + "version": "1.12.4", + "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.12.4.tgz", + "integrity": "sha512-t0Hy4yoHHYLkK0b+ULTHw5ZuSFmWokCABY0C4bKQbE4jnm1hpjA23cQVD0xAqDcRHN5CkvFzlqb34ngV22dqoQ==", "requires": { - "lodash": "^4.15.0", + "lodash": "^4.17.5", "nan": "^2.0.0", "node-pre-gyp": "^0.10.0", - "protobufjs": "^5.0.0" + "protobufjs": "^5.0.3" }, "dependencies": { "abbrev": { @@ -5965,7 +6233,7 @@ "bundled": true }, "are-we-there-yet": { - "version": "1.1.4", + "version": "1.1.5", "bundled": true, "requires": { "delegates": "^1.0.0", @@ -6012,7 +6280,7 @@ } }, "deep-extend": { - "version": "0.5.1", + "version": "0.6.0", "bundled": true }, "delegates": { @@ -6065,8 +6333,11 @@ "bundled": true }, "iconv-lite": { - "version": "0.4.19", - "bundled": true + "version": "0.4.23", + "bundled": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } }, "ignore-walk": { "version": "3.0.1", @@ -6114,10 +6385,10 @@ "bundled": true }, "minipass": { - "version": "2.2.4", + "version": "2.3.3", "bundled": true, "requires": { - "safe-buffer": "^5.1.1", + "safe-buffer": "^5.1.2", "yallist": "^3.0.0" } }, @@ -6251,10 +6522,10 @@ } }, "rc": { - "version": "1.2.7", + "version": "1.2.8", "bundled": true, "requires": { - "deep-extend": "^0.5.1", + "deep-extend": "^0.6.0", "ini": "~1.3.0", "minimist": "^1.2.0", "strip-json-comments": "~2.0.1" @@ -6281,7 +6552,11 @@ } }, "safe-buffer": { - "version": "5.1.1", + "version": "5.1.2", + "bundled": true + }, + "safer-buffer": { + "version": "2.1.2", "bundled": true }, "sax": { @@ -6328,22 +6603,16 @@ "bundled": true }, "tar": { - "version": "4.4.2", + "version": "4.4.4", "bundled": true, "requires": { "chownr": "^1.0.1", "fs-minipass": "^1.2.5", - "minipass": "^2.2.4", + "minipass": "^2.3.3", "minizlib": "^1.1.0", "mkdirp": "^0.5.0", "safe-buffer": "^5.1.2", "yallist": "^3.0.2" - }, - "dependencies": { - "safe-buffer": { - "version": "5.1.2", - "bundled": true - } } }, "util-deprecate": { @@ -6351,10 +6620,10 @@ "bundled": true }, "wide-align": { - "version": "1.1.2", + "version": "1.1.3", "bundled": true, "requires": { - "string-width": "^1.0.2" + "string-width": "^1.0.2 || 2" } }, "wrappy": { @@ -6411,12 +6680,14 @@ "har-schema": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", + "dev": true }, "har-validator": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", + "dev": true, "requires": { "ajv": "^5.1.0", "har-schema": "^2.0.0" @@ -6554,6 +6825,7 @@ "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "dev": true, "requires": { "assert-plus": "^1.0.0", "jsprim": "^1.2.2", @@ -7096,7 +7368,8 @@ "is-typedarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", + "dev": true }, "is-url": { "version": "1.2.4", @@ -7134,7 +7407,8 @@ "isstream": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", + "dev": true }, "istanbul-lib-coverage": { "version": "2.0.0", @@ -7208,6 +7482,7 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", + "dev": true, "optional": true }, "jsdoc": { @@ -7259,12 +7534,14 @@ "json-schema": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", + "dev": true }, "json-schema-traverse": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=" + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", + "dev": true }, "json-stable-stringify-without-jsonify": { "version": "1.0.1", @@ -7275,7 +7552,8 @@ "json-stringify-safe": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true }, "json5": { "version": "0.5.1", @@ -7296,6 +7574,7 @@ "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "dev": true, "requires": { "assert-plus": "1.0.0", "extsprintf": "1.3.0", @@ -7803,12 +8082,14 @@ "mime-db": { "version": "1.33.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==" + "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", + "dev": true }, "mime-types": { "version": "2.1.18", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "dev": true, "requires": { "mime-db": "~1.33.0" } @@ -8103,7 +8384,8 @@ "dependencies": { "align-text": { "version": "0.1.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "dev": true, "requires": { "kind-of": "^3.0.2", @@ -8113,17 +8395,20 @@ }, "amdefine": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", "dev": true }, "ansi-regex": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "dev": true }, "append-transform": { "version": "0.4.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-126/jKlNJ24keja61EpLdKthGZE=", "dev": true, "requires": { "default-require-extensions": "^1.0.0" @@ -8131,57 +8416,68 @@ }, "archy": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", "dev": true }, "arr-diff": { "version": "4.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", "dev": true }, "arr-flatten": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-NgSLv/TntH4TZkQxbJlmnqWukfE=", "dev": true }, "arr-union": { "version": "3.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", "dev": true }, "array-unique": { "version": "0.3.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", "dev": true }, "arrify": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", "dev": true }, "assign-symbols": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", "dev": true }, "async": { "version": "1.5.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", "dev": true }, "atob": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=", "dev": true }, "balanced-match": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, "base": { "version": "0.11.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-e95c7RRbbVUakNuH+DxVi060io8=", "dev": true, "requires": { "cache-base": "^1.0.1", @@ -8195,7 +8491,8 @@ "dependencies": { "define-property": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { "is-descriptor": "^1.0.0" @@ -8203,7 +8500,8 @@ }, "is-accessor-descriptor": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8211,7 +8509,8 @@ }, "is-data-descriptor": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8219,7 +8518,8 @@ }, "is-descriptor": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -8229,14 +8529,16 @@ }, "kind-of": { "version": "6.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } }, "brace-expansion": { "version": "1.1.11", - "bundled": true, + "resolved": false, + "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=", "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -8245,7 +8547,8 @@ }, "braces": { "version": "2.3.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-WXn9PxTNUxVl5fot8av/8d+u5yk=", "dev": true, "requires": { "arr-flatten": "^1.1.0", @@ -8262,7 +8565,8 @@ "dependencies": { "extend-shallow": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -8272,12 +8576,14 @@ }, "builtin-modules": { "version": "1.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", "dev": true }, "cache-base": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Cn9GQWgxyLZi7jb+TnxZ129marI=", "dev": true, "requires": { "collection-visit": "^1.0.0", @@ -8293,7 +8599,8 @@ }, "caching-transform": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-bb2y8g+Nj7znnz6U6dF0Lc31wKE=", "dev": true, "requires": { "md5-hex": "^1.2.0", @@ -8303,13 +8610,15 @@ }, "camelcase": { "version": "1.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", "dev": true, "optional": true }, "center-align": { "version": "0.1.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", "dev": true, "optional": true, "requires": { @@ -8319,7 +8628,8 @@ }, "class-utils": { "version": "0.3.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-+TNprouafOAv1B+q0MqDAzGQxGM=", "dev": true, "requires": { "arr-union": "^3.1.0", @@ -8330,7 +8640,8 @@ "dependencies": { "define-property": { "version": "0.2.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -8340,7 +8651,8 @@ }, "cliui": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", "dev": true, "optional": true, "requires": { @@ -8351,7 +8663,8 @@ "dependencies": { "wordwrap": { "version": "0.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", "dev": true, "optional": true } @@ -8359,12 +8672,14 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, "collection-visit": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", "dev": true, "requires": { "map-visit": "^1.0.0", @@ -8373,32 +8688,38 @@ }, "commondir": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", "dev": true }, "component-emitter": { "version": "1.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", "dev": true }, "concat-map": { "version": "0.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, "convert-source-map": { "version": "1.5.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", "dev": true }, "copy-descriptor": { "version": "0.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", "dev": true }, "cross-spawn": { "version": "4.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=", "dev": true, "requires": { "lru-cache": "^4.0.1", @@ -8407,7 +8728,8 @@ }, "debug": { "version": "3.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=", "dev": true, "requires": { "ms": "2.0.0" @@ -8415,22 +8737,26 @@ }, "debug-log": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-IwdjLUwEOCuN+KMvcLiVBG1SdF8=", "dev": true }, "decamelize": { "version": "1.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", "dev": true }, "decode-uri-component": { "version": "0.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", "dev": true }, "default-require-extensions": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-836hXT4T/9m0N9M+GnW1+5eHTLg=", "dev": true, "requires": { "strip-bom": "^2.0.0" @@ -8438,7 +8764,8 @@ }, "define-property": { "version": "2.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-1Flono1lS6d+AqgX+HENcCyxbp0=", "dev": true, "requires": { "is-descriptor": "^1.0.2", @@ -8447,7 +8774,8 @@ "dependencies": { "is-accessor-descriptor": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8455,7 +8783,8 @@ }, "is-data-descriptor": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8463,7 +8792,8 @@ }, "is-descriptor": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -8473,14 +8803,16 @@ }, "kind-of": { "version": "6.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } }, "error-ex": { "version": "1.3.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", "dev": true, "requires": { "is-arrayish": "^0.2.1" @@ -8488,7 +8820,8 @@ }, "execa": { "version": "0.7.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", "dev": true, "requires": { "cross-spawn": "^5.0.1", @@ -8502,7 +8835,8 @@ "dependencies": { "cross-spawn": { "version": "5.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", "dev": true, "requires": { "lru-cache": "^4.0.1", @@ -8514,7 +8848,8 @@ }, "expand-brackets": { "version": "2.1.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", "dev": true, "requires": { "debug": "^2.3.3", @@ -8528,7 +8863,8 @@ "dependencies": { "debug": { "version": "2.6.9", - "bundled": true, + "resolved": false, + "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=", "dev": true, "requires": { "ms": "2.0.0" @@ -8536,7 +8872,8 @@ }, "define-property": { "version": "0.2.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -8544,7 +8881,8 @@ }, "extend-shallow": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -8554,7 +8892,8 @@ }, "extend-shallow": { "version": "3.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", "dev": true, "requires": { "assign-symbols": "^1.0.0", @@ -8563,7 +8902,8 @@ "dependencies": { "is-extendable": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-p0cPnkJnM9gb2B4RVSZOOjUHyrQ=", "dev": true, "requires": { "is-plain-object": "^2.0.4" @@ -8573,7 +8913,8 @@ }, "extglob": { "version": "2.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-rQD+TcYSqSMuhxhxHcXLWrAoVUM=", "dev": true, "requires": { "array-unique": "^0.3.2", @@ -8588,7 +8929,8 @@ "dependencies": { "define-property": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { "is-descriptor": "^1.0.0" @@ -8596,7 +8938,8 @@ }, "extend-shallow": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -8604,7 +8947,8 @@ }, "is-accessor-descriptor": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8612,7 +8956,8 @@ }, "is-data-descriptor": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8620,7 +8965,8 @@ }, "is-descriptor": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -8630,14 +8976,16 @@ }, "kind-of": { "version": "6.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } }, "fill-range": { "version": "4.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", "dev": true, "requires": { "extend-shallow": "^2.0.1", @@ -8648,7 +8996,8 @@ "dependencies": { "extend-shallow": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -8658,7 +9007,8 @@ }, "find-cache-dir": { "version": "0.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-yN765XyKUqinhPnjHFfHQumToLk=", "dev": true, "requires": { "commondir": "^1.0.1", @@ -8668,7 +9018,8 @@ }, "find-up": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { "locate-path": "^2.0.0" @@ -8676,12 +9027,14 @@ }, "for-in": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", "dev": true }, "foreground-child": { "version": "1.5.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-T9ca0t/elnibmApcCilZN8svXOk=", "dev": true, "requires": { "cross-spawn": "^4", @@ -8690,7 +9043,8 @@ }, "fragment-cache": { "version": "0.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", "dev": true, "requires": { "map-cache": "^0.2.2" @@ -8698,27 +9052,32 @@ }, "fs.realpath": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true }, "get-caller-file": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", "dev": true }, "get-stream": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", "dev": true }, "get-value": { "version": "2.0.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", "dev": true }, "glob": { "version": "7.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=", "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -8731,12 +9090,14 @@ }, "graceful-fs": { "version": "4.1.11", - "bundled": true, + "resolved": false, + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", "dev": true }, "handlebars": { "version": "4.0.11", - "bundled": true, + "resolved": false, + "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", "dev": true, "requires": { "async": "^1.4.0", @@ -8747,7 +9108,8 @@ "dependencies": { "source-map": { "version": "0.4.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", "dev": true, "requires": { "amdefine": ">=0.0.4" @@ -8757,7 +9119,8 @@ }, "has-value": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", "dev": true, "requires": { "get-value": "^2.0.6", @@ -8767,7 +9130,8 @@ }, "has-values": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", "dev": true, "requires": { "is-number": "^3.0.0", @@ -8776,7 +9140,8 @@ "dependencies": { "kind-of": { "version": "4.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -8786,17 +9151,20 @@ }, "hosted-git-info": { "version": "2.6.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-IyNbKasjDFdqqw1PE/wEawsDgiI=", "dev": true }, "imurmurhash": { "version": "0.1.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", "dev": true }, "inflight": { "version": "1.0.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { "once": "^1.3.0", @@ -8805,17 +9173,20 @@ }, "inherits": { "version": "2.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", "dev": true }, "invert-kv": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", "dev": true }, "is-accessor-descriptor": { "version": "0.1.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -8823,17 +9194,20 @@ }, "is-arrayish": { "version": "0.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", "dev": true }, "is-buffer": { "version": "1.1.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-76ouqdqg16suoTqXsritUf776L4=", "dev": true }, "is-builtin-module": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", "dev": true, "requires": { "builtin-modules": "^1.0.0" @@ -8841,7 +9215,8 @@ }, "is-data-descriptor": { "version": "0.1.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -8849,7 +9224,8 @@ }, "is-descriptor": { "version": "0.1.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-Nm2CQN3kh8pRgjsaufB6EKeCUco=", "dev": true, "requires": { "is-accessor-descriptor": "^0.1.6", @@ -8859,24 +9235,28 @@ "dependencies": { "kind-of": { "version": "5.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-cpyR4thXt6QZofmqZWhcTDP1hF0=", "dev": true } } }, "is-extendable": { "version": "0.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", "dev": true }, "is-fullwidth-code-point": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, "is-number": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -8884,7 +9264,8 @@ }, "is-odd": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-dkZiRnH9fqVYzNmieVGC8pWPGyQ=", "dev": true, "requires": { "is-number": "^4.0.0" @@ -8892,14 +9273,16 @@ "dependencies": { "is-number": { "version": "4.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-ACbjf1RU1z41bf5lZGmYZ8an8P8=", "dev": true } } }, "is-plain-object": { "version": "2.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-LBY7P6+xtgbZ0Xko8FwqHDjgdnc=", "dev": true, "requires": { "isobject": "^3.0.1" @@ -8907,42 +9290,50 @@ }, "is-stream": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", "dev": true }, "is-utf8": { "version": "0.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", "dev": true }, "is-windows": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-0YUOuXkezRjmGCzhKjDzlmNLsZ0=", "dev": true }, "isarray": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true }, "isexe": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", "dev": true }, "isobject": { "version": "3.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", "dev": true }, "istanbul-lib-coverage": { "version": "1.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-99jy5CuX43/nlhFMsPnWi146Q0E=", "dev": true }, "istanbul-lib-hook": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-hTjZcDcss3FtU+VVI91UtVeo2Js=", "dev": true, "requires": { "append-transform": "^0.4.0" @@ -8950,7 +9341,8 @@ }, "istanbul-lib-report": { "version": "1.1.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-LfEhiMD6d5kMDSF20tC6M5QYglk=", "dev": true, "requires": { "istanbul-lib-coverage": "^1.1.2", @@ -8961,12 +9353,14 @@ "dependencies": { "has-flag": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", "dev": true }, "supports-color": { "version": "3.2.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", "dev": true, "requires": { "has-flag": "^1.0.0" @@ -8976,7 +9370,8 @@ }, "istanbul-lib-source-maps": { "version": "1.2.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-/+a+Tnq4bTYD5CkNVJkLFFBvybE=", "dev": true, "requires": { "debug": "^3.1.0", @@ -8988,7 +9383,8 @@ }, "istanbul-reports": { "version": "1.4.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Ty6OkoqnoF0dpsQn1AmLJlXsczQ=", "dev": true, "requires": { "handlebars": "^4.0.3" @@ -8996,7 +9392,8 @@ }, "kind-of": { "version": "3.2.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -9004,13 +9401,15 @@ }, "lazy-cache": { "version": "1.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", "dev": true, "optional": true }, "lcid": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "dev": true, "requires": { "invert-kv": "^1.0.0" @@ -9018,7 +9417,8 @@ }, "load-json-file": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -9030,7 +9430,8 @@ }, "locate-path": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "dev": true, "requires": { "p-locate": "^2.0.0", @@ -9039,19 +9440,22 @@ "dependencies": { "path-exists": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", "dev": true } } }, "longest": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", "dev": true }, "lru-cache": { "version": "4.1.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-oRdc80lt/IQ2wVbDNLSVWZK85pw=", "dev": true, "requires": { "pseudomap": "^1.0.2", @@ -9060,12 +9464,14 @@ }, "map-cache": { "version": "0.2.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", "dev": true }, "map-visit": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", "dev": true, "requires": { "object-visit": "^1.0.0" @@ -9073,7 +9479,8 @@ }, "md5-hex": { "version": "1.3.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-0sSv6YPENwZiF5uMrRRSGRNQRsQ=", "dev": true, "requires": { "md5-o-matic": "^0.1.1" @@ -9081,12 +9488,14 @@ }, "md5-o-matic": { "version": "0.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-givM1l4RfFFPqxdrJZRdVBAKA8M=", "dev": true }, "mem": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", "dev": true, "requires": { "mimic-fn": "^1.0.0" @@ -9094,7 +9503,8 @@ }, "merge-source-map": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-L93n5gIJOfcJBqaPLXrmheTIxkY=", "dev": true, "requires": { "source-map": "^0.6.1" @@ -9102,14 +9512,16 @@ "dependencies": { "source-map": { "version": "0.6.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", "dev": true } } }, "micromatch": { "version": "3.1.10", - "bundled": true, + "resolved": false, + "integrity": "sha1-cIWbyVyYQJUvNZoGij/En57PrCM=", "dev": true, "requires": { "arr-diff": "^4.0.0", @@ -9129,19 +9541,22 @@ "dependencies": { "kind-of": { "version": "6.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } }, "mimic-fn": { "version": "1.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-ggyGo5M0ZA6ZUWkovQP8qIBX0CI=", "dev": true }, "minimatch": { "version": "3.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", "dev": true, "requires": { "brace-expansion": "^1.1.7" @@ -9149,12 +9564,14 @@ }, "minimist": { "version": "0.0.8", - "bundled": true, + "resolved": false, + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, "mixin-deep": { "version": "1.3.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-pJ5yaNzhoNlpjkUybFYm3zVD0P4=", "dev": true, "requires": { "for-in": "^1.0.2", @@ -9163,7 +9580,8 @@ "dependencies": { "is-extendable": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-p0cPnkJnM9gb2B4RVSZOOjUHyrQ=", "dev": true, "requires": { "is-plain-object": "^2.0.4" @@ -9173,7 +9591,8 @@ }, "mkdirp": { "version": "0.5.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { "minimist": "0.0.8" @@ -9181,12 +9600,14 @@ }, "ms": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, "nanomatch": { "version": "1.2.9", - "bundled": true, + "resolved": false, + "integrity": "sha1-h59xUMstq3pHElkGbBBO7m4Pp8I=", "dev": true, "requires": { "arr-diff": "^4.0.0", @@ -9205,14 +9626,16 @@ "dependencies": { "kind-of": { "version": "6.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } }, "normalize-package-data": { "version": "2.4.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-EvlaMH1YNSB1oEkHuErIvpisAS8=", "dev": true, "requires": { "hosted-git-info": "^2.1.4", @@ -9223,7 +9646,8 @@ }, "npm-run-path": { "version": "2.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, "requires": { "path-key": "^2.0.0" @@ -9231,17 +9655,20 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true }, "object-assign": { "version": "4.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true }, "object-copy": { "version": "0.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", "dev": true, "requires": { "copy-descriptor": "^0.1.0", @@ -9251,7 +9678,8 @@ "dependencies": { "define-property": { "version": "0.2.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -9261,7 +9689,8 @@ }, "object-visit": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", "dev": true, "requires": { "isobject": "^3.0.0" @@ -9269,7 +9698,8 @@ }, "object.pick": { "version": "1.3.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "dev": true, "requires": { "isobject": "^3.0.1" @@ -9277,7 +9707,8 @@ }, "once": { "version": "1.4.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { "wrappy": "1" @@ -9285,7 +9716,8 @@ }, "optimist": { "version": "0.6.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", "dev": true, "requires": { "minimist": "~0.0.1", @@ -9294,12 +9726,14 @@ }, "os-homedir": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true }, "os-locale": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-QrwpAKa1uL0XN2yOiCtlr8zyS/I=", "dev": true, "requires": { "execa": "^0.7.0", @@ -9309,12 +9743,14 @@ }, "p-finally": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", "dev": true }, "p-limit": { "version": "1.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-DpK2vty1nwIsE9DxlJ3ILRWQnxw=", "dev": true, "requires": { "p-try": "^1.0.0" @@ -9322,7 +9758,8 @@ }, "p-locate": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "requires": { "p-limit": "^1.1.0" @@ -9330,12 +9767,14 @@ }, "p-try": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", "dev": true }, "parse-json": { "version": "2.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "dev": true, "requires": { "error-ex": "^1.2.0" @@ -9343,12 +9782,14 @@ }, "pascalcase": { "version": "0.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", "dev": true }, "path-exists": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "dev": true, "requires": { "pinkie-promise": "^2.0.0" @@ -9356,22 +9797,26 @@ }, "path-is-absolute": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true }, "path-key": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", "dev": true }, "path-parse": { "version": "1.0.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", "dev": true }, "path-type": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -9381,17 +9826,20 @@ }, "pify": { "version": "2.3.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", "dev": true }, "pinkie": { "version": "2.0.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", "dev": true }, "pinkie-promise": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { "pinkie": "^2.0.0" @@ -9399,7 +9847,8 @@ }, "pkg-dir": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", "dev": true, "requires": { "find-up": "^1.0.0" @@ -9407,7 +9856,8 @@ "dependencies": { "find-up": { "version": "1.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { "path-exists": "^2.0.0", @@ -9418,17 +9868,20 @@ }, "posix-character-classes": { "version": "0.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", "dev": true }, "pseudomap": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", "dev": true }, "read-pkg": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", "dev": true, "requires": { "load-json-file": "^1.0.0", @@ -9438,7 +9891,8 @@ }, "read-pkg-up": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", "dev": true, "requires": { "find-up": "^1.0.0", @@ -9447,7 +9901,8 @@ "dependencies": { "find-up": { "version": "1.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { "path-exists": "^2.0.0", @@ -9458,7 +9913,8 @@ }, "regex-not": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-H07OJ+ALC2XgJHpoEOaoXYOldSw=", "dev": true, "requires": { "extend-shallow": "^3.0.2", @@ -9467,42 +9923,50 @@ }, "repeat-element": { "version": "1.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", "dev": true }, "repeat-string": { "version": "1.6.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", "dev": true }, "require-directory": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", "dev": true }, "require-main-filename": { "version": "1.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", "dev": true }, "resolve-from": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=", "dev": true }, "resolve-url": { "version": "0.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", "dev": true }, "ret": { "version": "0.1.15", - "bundled": true, + "resolved": false, + "integrity": "sha1-uKSCXVvbH8P29Twrwz+BOIaBx7w=", "dev": true }, "right-align": { "version": "0.1.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", "dev": true, "optional": true, "requires": { @@ -9511,7 +9975,8 @@ }, "rimraf": { "version": "2.6.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-LtgVDSShbqhlHm1u8PR8QVjOejY=", "dev": true, "requires": { "glob": "^7.0.5" @@ -9519,7 +9984,8 @@ }, "safe-regex": { "version": "1.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "dev": true, "requires": { "ret": "~0.1.10" @@ -9527,17 +9993,20 @@ }, "semver": { "version": "5.5.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-3Eu8emyp2Rbe5dQ1FvAJK1j3uKs=", "dev": true }, "set-blocking": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true }, "set-value": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-ca5KiPD+77v1LR6mBPP7MV67YnQ=", "dev": true, "requires": { "extend-shallow": "^2.0.1", @@ -9548,7 +10017,8 @@ "dependencies": { "extend-shallow": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -9558,7 +10028,8 @@ }, "shebang-command": { "version": "1.2.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, "requires": { "shebang-regex": "^1.0.0" @@ -9566,22 +10037,26 @@ }, "shebang-regex": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", "dev": true }, "signal-exit": { "version": "3.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, "slide": { "version": "1.1.6", - "bundled": true, + "resolved": false, + "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=", "dev": true }, "snapdragon": { "version": "0.8.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ZJIufFZbDhQgS6GqfWlkJ40lGC0=", "dev": true, "requires": { "base": "^0.11.1", @@ -9596,7 +10071,8 @@ "dependencies": { "debug": { "version": "2.6.9", - "bundled": true, + "resolved": false, + "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=", "dev": true, "requires": { "ms": "2.0.0" @@ -9604,7 +10080,8 @@ }, "define-property": { "version": "0.2.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -9612,7 +10089,8 @@ }, "extend-shallow": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -9622,7 +10100,8 @@ }, "snapdragon-node": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-bBdfhv8UvbByRWPo88GwIaKGhTs=", "dev": true, "requires": { "define-property": "^1.0.0", @@ -9632,7 +10111,8 @@ "dependencies": { "define-property": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { "is-descriptor": "^1.0.0" @@ -9640,7 +10120,8 @@ }, "is-accessor-descriptor": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -9648,7 +10129,8 @@ }, "is-data-descriptor": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", "dev": true, "requires": { "kind-of": "^6.0.0" @@ -9656,7 +10138,8 @@ }, "is-descriptor": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -9666,14 +10149,16 @@ }, "kind-of": { "version": "6.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } }, "snapdragon-util": { "version": "3.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-+VZHlIbyrNeXAGk/b3uAXkWrVuI=", "dev": true, "requires": { "kind-of": "^3.2.0" @@ -9681,12 +10166,14 @@ }, "source-map": { "version": "0.5.7", - "bundled": true, + "resolved": false, + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", "dev": true }, "source-map-resolve": { "version": "0.5.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-cuLMNAlVQ+Q7LGKyxMENSpBU8lk=", "dev": true, "requires": { "atob": "^2.1.1", @@ -9698,12 +10185,14 @@ }, "source-map-url": { "version": "0.4.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", "dev": true }, "spawn-wrap": { "version": "1.4.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-z/WOc6giRhe2Vhq9wyWG6gyCJIw=", "dev": true, "requires": { "foreground-child": "^1.5.6", @@ -9716,7 +10205,8 @@ }, "spdx-correct": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-BaW01xU6GVvJLDxCW2nzsqlSTII=", "dev": true, "requires": { "spdx-expression-parse": "^3.0.0", @@ -9725,12 +10215,14 @@ }, "spdx-exceptions": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-LHrmEFbHFKW5ubKyr30xHvXHj+k=", "dev": true }, "spdx-expression-parse": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-meEZt6XaAOBUkcn6M4t5BII7QdA=", "dev": true, "requires": { "spdx-exceptions": "^2.1.0", @@ -9739,12 +10231,14 @@ }, "spdx-license-ids": { "version": "3.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-enzShHDMbToc/m1miG9rxDDTrIc=", "dev": true }, "split-string": { "version": "3.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-fLCd2jqGWFcFxks5pkZgOGguj+I=", "dev": true, "requires": { "extend-shallow": "^3.0.0" @@ -9752,7 +10246,8 @@ }, "static-extend": { "version": "0.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", "dev": true, "requires": { "define-property": "^0.2.5", @@ -9761,7 +10256,8 @@ "dependencies": { "define-property": { "version": "0.2.5", - "bundled": true, + "resolved": false, + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -9771,7 +10267,8 @@ }, "string-width": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-q5Pyeo3BPSjKyBXEYhQ6bZASrp4=", "dev": true, "requires": { "is-fullwidth-code-point": "^2.0.0", @@ -9780,7 +10277,8 @@ }, "strip-ansi": { "version": "4.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { "ansi-regex": "^3.0.0" @@ -9788,7 +10286,8 @@ }, "strip-bom": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { "is-utf8": "^0.2.0" @@ -9796,12 +10295,14 @@ }, "strip-eof": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", "dev": true }, "test-exclude": { "version": "4.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-36Ii8DSAvKaSB8pyizfXS0X3JPo=", "dev": true, "requires": { "arrify": "^1.0.1", @@ -9813,7 +10314,8 @@ }, "to-object-path": { "version": "0.3.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", "dev": true, "requires": { "kind-of": "^3.0.2" @@ -9821,7 +10323,8 @@ }, "to-regex": { "version": "3.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-E8/dmzNlUvMLUfM6iuG0Knp1mc4=", "dev": true, "requires": { "define-property": "^2.0.2", @@ -9832,7 +10335,8 @@ }, "to-regex-range": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", "dev": true, "requires": { "is-number": "^3.0.0", @@ -9841,7 +10345,8 @@ }, "uglify-js": { "version": "2.8.29", - "bundled": true, + "resolved": false, + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", "dev": true, "optional": true, "requires": { @@ -9852,7 +10357,8 @@ "dependencies": { "yargs": { "version": "3.10.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", "dev": true, "optional": true, "requires": { @@ -9866,13 +10372,15 @@ }, "uglify-to-browserify": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", "dev": true, "optional": true }, "union-value": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", "dev": true, "requires": { "arr-union": "^3.1.0", @@ -9883,7 +10391,8 @@ "dependencies": { "extend-shallow": { "version": "2.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -9891,7 +10400,8 @@ }, "set-value": { "version": "0.4.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", "dev": true, "requires": { "extend-shallow": "^2.0.1", @@ -9904,7 +10414,8 @@ }, "unset-value": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", "dev": true, "requires": { "has-value": "^0.3.1", @@ -9913,7 +10424,8 @@ "dependencies": { "has-value": { "version": "0.3.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", "dev": true, "requires": { "get-value": "^2.0.3", @@ -9923,7 +10435,8 @@ "dependencies": { "isobject": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", "dev": true, "requires": { "isarray": "1.0.0" @@ -9933,19 +10446,22 @@ }, "has-values": { "version": "0.1.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", "dev": true } } }, "urix": { "version": "0.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", "dev": true }, "use": { "version": "3.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-FHFr8D/f79AwQK71jYtLhfOnxUQ=", "dev": true, "requires": { "kind-of": "^6.0.2" @@ -9953,14 +10469,16 @@ "dependencies": { "kind-of": { "version": "6.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", "dev": true } } }, "validate-npm-package-license": { "version": "3.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-gWQ7y+8b3+zUYjeT3EZIlIupgzg=", "dev": true, "requires": { "spdx-correct": "^3.0.0", @@ -9969,7 +10487,8 @@ }, "which": { "version": "1.3.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-pFBD1U9YBTFtqNYvn1CRjT2nCwo=", "dev": true, "requires": { "isexe": "^2.0.0" @@ -9977,23 +10496,27 @@ }, "which-module": { "version": "2.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, "window-size": { "version": "0.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", "dev": true, "optional": true }, "wordwrap": { "version": "0.0.3", - "bundled": true, + "resolved": false, + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", "dev": true }, "wrap-ansi": { "version": "2.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "dev": true, "requires": { "string-width": "^1.0.1", @@ -10002,12 +10525,14 @@ "dependencies": { "ansi-regex": { "version": "2.1.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true }, "is-fullwidth-code-point": { "version": "1.0.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { "number-is-nan": "^1.0.0" @@ -10015,7 +10540,8 @@ }, "string-width": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { "code-point-at": "^1.0.0", @@ -10025,7 +10551,8 @@ }, "strip-ansi": { "version": "3.0.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { "ansi-regex": "^2.0.0" @@ -10035,12 +10562,14 @@ }, "wrappy": { "version": "1.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, "write-file-atomic": { "version": "1.3.4", - "bundled": true, + "resolved": false, + "integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=", "dev": true, "requires": { "graceful-fs": "^4.1.11", @@ -10050,17 +10579,20 @@ }, "y18n": { "version": "3.2.1", - "bundled": true, + "resolved": false, + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", "dev": true }, "yallist": { "version": "2.1.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", "dev": true }, "yargs": { "version": "11.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-kLhpk07W6HERXqL/WLA/RyTtLXc=", "dev": true, "requires": { "cliui": "^4.0.0", @@ -10079,12 +10611,14 @@ "dependencies": { "camelcase": { "version": "4.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", "dev": true }, "cliui": { "version": "4.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-NIQi2+gtgAswIu709qwQvy5NG0k=", "dev": true, "requires": { "string-width": "^2.1.1", @@ -10094,7 +10628,8 @@ }, "yargs-parser": { "version": "9.0.2", - "bundled": true, + "resolved": false, + "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", "dev": true, "requires": { "camelcase": "^4.1.0" @@ -10104,7 +10639,8 @@ }, "yargs-parser": { "version": "8.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-8TdqM7Ziml0GN4KUTacyYx6WaVA=", "dev": true, "requires": { "camelcase": "^4.1.0" @@ -10112,7 +10648,8 @@ "dependencies": { "camelcase": { "version": "4.1.0", - "bundled": true, + "resolved": false, + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", "dev": true } } @@ -10122,7 +10659,8 @@ "oauth-sign": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=" + "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", + "dev": true }, "object-assign": { "version": "4.1.1", @@ -10505,7 +11043,8 @@ "performance-now": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", + "dev": true }, "pify": { "version": "3.0.0", @@ -10816,12 +11355,14 @@ "punycode": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=" + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true }, "qs": { "version": "6.5.2", "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", + "dev": true }, "query-string": { "version": "5.1.1", @@ -11086,6 +11627,7 @@ "version": "2.87.0", "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", + "dev": true, "requires": { "aws-sign2": "~0.7.0", "aws4": "^1.6.0", @@ -11217,6 +11759,14 @@ "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-0.3.2.tgz", "integrity": "sha512-jp4YlI0qyDFfXiXGhkCOliBN1G7fRH03Nqy8YdShzGqbY5/9S2x/IR6C88ls2DFkbWuL3ASkP7QD3pVrNpPgwQ==" }, + "retry-request": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-4.0.0.tgz", + "integrity": "sha512-S4HNLaWcMP6r8E4TMH52Y7/pM8uNayOcTDDQNBwsCccL1uI+Ol2TljxRDPzaNfbhOB30+XWP5NnZkB3LiJxi1w==", + "requires": { + "through2": "^2.0.0" + } + }, "right-align": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", @@ -11629,6 +12179,7 @@ "version": "1.14.1", "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", + "dev": true, "requires": { "asn1": "~0.2.3", "assert-plus": "^1.0.0", @@ -12047,6 +12598,7 @@ "version": "2.3.4", "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", + "dev": true, "requires": { "punycode": "^1.4.1" } @@ -12078,6 +12630,7 @@ "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, "requires": { "safe-buffer": "^5.0.1" } @@ -12086,6 +12639,7 @@ "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", + "dev": true, "optional": true }, "type-check": { @@ -12391,7 +12945,8 @@ "uuid": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz", - "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==" + "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==", + "dev": true }, "validate-npm-package-license": { "version": "3.0.3", @@ -12407,6 +12962,7 @@ "version": "1.10.0", "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "dev": true, "requires": { "assert-plus": "^1.0.0", "core-util-is": "1.0.2", diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 6a9f27d9467..385f459b8aa 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -47,7 +47,7 @@ "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000" }, "dependencies": { - "google-gax": "^0.16.0", + "google-gax": "^0.17.0", "lodash.merge": "^4.6.0" }, "devDependencies": { diff --git a/packages/google-container/smoke-test/cluster_manager_smoke_test.js b/packages/google-container/smoke-test/cluster_manager_smoke_test.js index ceadb9a44b0..1692b3d3ac9 100644 --- a/packages/google-container/smoke-test/cluster_manager_smoke_test.js +++ b/packages/google-container/smoke-test/cluster_manager_smoke_test.js @@ -1,10 +1,10 @@ -// Copyright 2017, Google LLC All rights reserved. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index b84e07d63e4..d6cde3e11cd 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -1,10 +1,10 @@ -// Copyright 2017, Google LLC All rights reserved. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, @@ -37,10 +37,10 @@ class ClusterManagerClient { * @param {string} [options.credentials.client_email] * @param {string} [options.credentials.private_key] * @param {string} [options.email] - Account email address. Required when - * usaing a .pem or .p12 keyFilename. + * using a .pem or .p12 keyFilename. * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or * .p12 key downloaded from the Google Developers Console. If you provide - * a path to a JSON file, the projectId option above is not necessary. + * a path to a JSON file, the projectId option below is not necessary. * NOTE: .pem and .p12 require you to specify options.email as well. * @param {number} [options.port] - The port on which to connect to * the remote host. @@ -71,14 +71,14 @@ class ClusterManagerClient { // Create a `gaxGrpc` object, with any grpc-specific options // sent to the client. opts.scopes = this.constructor.scopes; - var gaxGrpc = gax.grpc(opts); + var gaxGrpc = new gax.GrpcClient(opts); // Save the auth object to the client, for use by other methods. this.auth = gaxGrpc.auth; // Determine the client header string. var clientHeader = [ - `gl-node/${process.version.node}`, + `gl-node/${process.version}`, `grpc/${gaxGrpc.grpcVersion}`, `gax/${gax.version}`, `gapic/${VERSION}`, diff --git a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js index 7f4b1b8c122..2884c5eeb81 100644 --- a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js +++ b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js @@ -1,10 +1,10 @@ -// Copyright 2017, Google LLC All rights reserved. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js b/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js new file mode 100644 index 00000000000..5e3640e90d8 --- /dev/null +++ b/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js @@ -0,0 +1,34 @@ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +// Note: this file is purely for documentation. Any contents are not expected +// to be loaded as the JS file. + +/** + * A generic empty message that you can re-use to avoid defining duplicated + * empty messages in your APIs. A typical example is to use it as the request + * or the response type of an API method. For instance: + * + * service Foo { + * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); + * } + * + * The JSON representation for `Empty` is empty JSON object `{}`. + * @typedef Empty + * @memberof google.protobuf + * @see [google.protobuf.Empty definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/empty.proto} + */ +var Empty = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; \ No newline at end of file diff --git a/packages/google-container/src/v1/index.js b/packages/google-container/src/v1/index.js index 93296644a48..32340c91a0a 100644 --- a/packages/google-container/src/v1/index.js +++ b/packages/google-container/src/v1/index.js @@ -1,10 +1,10 @@ -// Copyright 2017, Google LLC All rights reserved. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py new file mode 100644 index 00000000000..27a77d7fa3c --- /dev/null +++ b/packages/google-container/synth.py @@ -0,0 +1,29 @@ +import synthtool as s +import synthtool.gcp as gcp +import logging +from pathlib import Path +import subprocess + +logging.basicConfig(level=logging.DEBUG) + +gapic = gcp.GAPICGenerator() + +version = 'v1' + +library = gapic.node_library( + 'container', version, + config_path="/google/container/" + "artman_container.yaml") + +# skip index, protos, package.json, and README.md +s.copy( + library, + excludes=['package.json', 'README.md', 'src/index.js'], +) + +# +# Node.js specific cleanup +# +subprocess.run(['npm', 'ci']) +subprocess.run(['npm', 'run', 'prettier']) +subprocess.run(['npm', 'run', 'lint']) diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js index c9244a5725f..b9a59e856e7 100644 --- a/packages/google-container/test/gapic-v1.js +++ b/packages/google-container/test/gapic-v1.js @@ -1,10 +1,10 @@ -// Copyright 2017, Google LLC All rights reserved. +// Copyright 2018 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, From b3af53a9980d7b0de11a103e95a5f606b5002b2d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Mon, 2 Jul 2018 20:52:13 -0700 Subject: [PATCH 036/371] chore(deps): lock file maintenance (#44) --- packages/google-container/package-lock.json | 2061 +++++++------------ 1 file changed, 751 insertions(+), 1310 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 18b9eb91d13..e82fd08ace4 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -72,21 +72,21 @@ } }, "@babel/code-frame": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.49.tgz", - "integrity": "sha1-vs2AVIJzREDJ0TfkbXc0DmTX9Rs=", + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.51.tgz", + "integrity": "sha1-vXHZsZKvl435FYKdOdQJRFZDmgw=", "dev": true, "requires": { - "@babel/highlight": "7.0.0-beta.49" + "@babel/highlight": "7.0.0-beta.51" } }, "@babel/generator": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.49.tgz", - "integrity": "sha1-6c/9qROZaszseTu8JauRvBnQv3o=", + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.51.tgz", + "integrity": "sha1-bHV1/952HQdIXgS67cA5LG2eMPY=", "dev": true, "requires": { - "@babel/types": "7.0.0-beta.49", + "@babel/types": "7.0.0-beta.51", "jsesc": "^2.5.1", "lodash": "^4.17.5", "source-map": "^0.5.0", @@ -102,38 +102,38 @@ } }, "@babel/helper-function-name": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.49.tgz", - "integrity": "sha1-olwRGbnwNSeGcBJuAiXAMEHI3jI=", + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.51.tgz", + "integrity": "sha1-IbSHSiJ8+Z7K/MMKkDAtpaJkBWE=", "dev": true, "requires": { - "@babel/helper-get-function-arity": "7.0.0-beta.49", - "@babel/template": "7.0.0-beta.49", - "@babel/types": "7.0.0-beta.49" + "@babel/helper-get-function-arity": "7.0.0-beta.51", + "@babel/template": "7.0.0-beta.51", + "@babel/types": "7.0.0-beta.51" } }, "@babel/helper-get-function-arity": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.49.tgz", - "integrity": "sha1-z1Aj8y0q2S0Ic3STnOwJUby1FEE=", + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.51.tgz", + "integrity": "sha1-MoGy0EWvlcFyzpGyCCXYXqRnZBE=", "dev": true, "requires": { - "@babel/types": "7.0.0-beta.49" + "@babel/types": "7.0.0-beta.51" } }, "@babel/helper-split-export-declaration": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.49.tgz", - "integrity": "sha1-QNeO2glo0BGxxShm5XRs+yPldUg=", + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.51.tgz", + "integrity": "sha1-imw/ZsTSZTUvwHdIT59ugKUauXg=", "dev": true, "requires": { - "@babel/types": "7.0.0-beta.49" + "@babel/types": "7.0.0-beta.51" } }, "@babel/highlight": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.49.tgz", - "integrity": "sha1-lr3GtD4TSCASumaRsQGEktOWIsw=", + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.51.tgz", + "integrity": "sha1-6IRK4loVlcz9QriWI7Q3bKBtIl0=", "dev": true, "requires": { "chalk": "^2.0.0", @@ -142,35 +142,35 @@ } }, "@babel/parser": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.49.tgz", - "integrity": "sha1-lE0MW6KBK7FZ7b0iZ0Ov0mUXm9w=", + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.51.tgz", + "integrity": "sha1-J87C30Cd9gr1gnDtj2qlVAnqhvY=", "dev": true }, "@babel/template": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.49.tgz", - "integrity": "sha1-44q+ghfLl5P0YaUwbXrXRdg+HSc=", + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.51.tgz", + "integrity": "sha1-lgKkCuvPNXrpZ34lMu9fyBD1+/8=", "dev": true, "requires": { - "@babel/code-frame": "7.0.0-beta.49", - "@babel/parser": "7.0.0-beta.49", - "@babel/types": "7.0.0-beta.49", + "@babel/code-frame": "7.0.0-beta.51", + "@babel/parser": "7.0.0-beta.51", + "@babel/types": "7.0.0-beta.51", "lodash": "^4.17.5" } }, "@babel/traverse": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.49.tgz", - "integrity": "sha1-TypzaCoYM07WYl0QCo0nMZ98LWg=", + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.51.tgz", + "integrity": "sha1-mB2vLOw0emIx06odnhgDsDqqpKg=", "dev": true, "requires": { - "@babel/code-frame": "7.0.0-beta.49", - "@babel/generator": "7.0.0-beta.49", - "@babel/helper-function-name": "7.0.0-beta.49", - "@babel/helper-split-export-declaration": "7.0.0-beta.49", - "@babel/parser": "7.0.0-beta.49", - "@babel/types": "7.0.0-beta.49", + "@babel/code-frame": "7.0.0-beta.51", + "@babel/generator": "7.0.0-beta.51", + "@babel/helper-function-name": "7.0.0-beta.51", + "@babel/helper-split-export-declaration": "7.0.0-beta.51", + "@babel/parser": "7.0.0-beta.51", + "@babel/types": "7.0.0-beta.51", "debug": "^3.1.0", "globals": "^11.1.0", "invariant": "^2.2.0", @@ -195,9 +195,9 @@ } }, "@babel/types": { - "version": "7.0.0-beta.49", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.49.tgz", - "integrity": "sha1-t+Oxw/TUz+Eb34yJ8e/V4WF7h6Y=", + "version": "7.0.0-beta.51", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.51.tgz", + "integrity": "sha1-2AK3tUO1g2x3iqaReXq/APPZfqk=", "dev": true, "requires": { "esutils": "^2.0.2", @@ -310,8 +310,7 @@ "dependencies": { "align-text": { "version": "0.1.4", - "resolved": false, - "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "bundled": true, "dev": true, "requires": { "kind-of": "^3.0.2", @@ -321,26 +320,22 @@ }, "amdefine": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "bundled": true, "dev": true }, "ansi-regex": { "version": "2.1.1", - "resolved": false, - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "bundled": true, "dev": true }, "ansi-styles": { "version": "2.2.1", - "resolved": false, - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "bundled": true, "dev": true }, "append-transform": { "version": "0.4.0", - "resolved": false, - "integrity": "sha1-126/jKlNJ24keja61EpLdKthGZE=", + "bundled": true, "dev": true, "requires": { "default-require-extensions": "^1.0.0" @@ -348,14 +343,12 @@ }, "archy": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", + "bundled": true, "dev": true }, "arr-diff": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "bundled": true, "dev": true, "requires": { "arr-flatten": "^1.0.1" @@ -363,32 +356,27 @@ }, "arr-flatten": { "version": "1.1.0", - "resolved": false, - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "bundled": true, "dev": true }, "array-unique": { "version": "0.2.1", - "resolved": false, - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "bundled": true, "dev": true }, "arrify": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "bundled": true, "dev": true }, "async": { "version": "1.5.2", - "resolved": false, - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "bundled": true, "dev": true }, "babel-code-frame": { "version": "6.26.0", - "resolved": false, - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "bundled": true, "dev": true, "requires": { "chalk": "^1.1.3", @@ -398,8 +386,7 @@ }, "babel-generator": { "version": "6.26.0", - "resolved": false, - "integrity": "sha1-rBriAHC3n248odMmlhMFN3TyDcU=", + "bundled": true, "dev": true, "requires": { "babel-messages": "^6.23.0", @@ -414,8 +401,7 @@ }, "babel-messages": { "version": "6.23.0", - "resolved": false, - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "bundled": true, "dev": true, "requires": { "babel-runtime": "^6.22.0" @@ -423,8 +409,7 @@ }, "babel-runtime": { "version": "6.26.0", - "resolved": false, - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "bundled": true, "dev": true, "requires": { "core-js": "^2.4.0", @@ -433,8 +418,7 @@ }, "babel-template": { "version": "6.26.0", - "resolved": false, - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "bundled": true, "dev": true, "requires": { "babel-runtime": "^6.26.0", @@ -446,8 +430,7 @@ }, "babel-traverse": { "version": "6.26.0", - "resolved": false, - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "bundled": true, "dev": true, "requires": { "babel-code-frame": "^6.26.0", @@ -463,8 +446,7 @@ }, "babel-types": { "version": "6.26.0", - "resolved": false, - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "bundled": true, "dev": true, "requires": { "babel-runtime": "^6.26.0", @@ -475,20 +457,17 @@ }, "babylon": { "version": "6.18.0", - "resolved": false, - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "bundled": true, "dev": true }, "balanced-match": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "bundled": true, "dev": true }, "brace-expansion": { "version": "1.1.8", - "resolved": false, - "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "bundled": true, "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -497,8 +476,7 @@ }, "braces": { "version": "1.8.5", - "resolved": false, - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "bundled": true, "dev": true, "requires": { "expand-range": "^1.8.1", @@ -508,14 +486,12 @@ }, "builtin-modules": { "version": "1.1.1", - "resolved": false, - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "bundled": true, "dev": true }, "caching-transform": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-bb2y8g+Nj7znnz6U6dF0Lc31wKE=", + "bundled": true, "dev": true, "requires": { "md5-hex": "^1.2.0", @@ -525,15 +501,13 @@ }, "camelcase": { "version": "1.2.1", - "resolved": false, - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "bundled": true, "dev": true, "optional": true }, "center-align": { "version": "0.1.3", - "resolved": false, - "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -543,8 +517,7 @@ }, "chalk": { "version": "1.1.3", - "resolved": false, - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "bundled": true, "dev": true, "requires": { "ansi-styles": "^2.2.1", @@ -556,8 +529,7 @@ }, "cliui": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -568,8 +540,7 @@ "dependencies": { "wordwrap": { "version": "0.0.2", - "resolved": false, - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", + "bundled": true, "dev": true, "optional": true } @@ -577,38 +548,32 @@ }, "code-point-at": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "bundled": true, "dev": true }, "commondir": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "bundled": true, "dev": true }, "concat-map": { "version": "0.0.1", - "resolved": false, - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "bundled": true, "dev": true }, "convert-source-map": { "version": "1.5.1", - "resolved": false, - "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", + "bundled": true, "dev": true }, "core-js": { "version": "2.5.3", - "resolved": false, - "integrity": "sha1-isw4NFgk8W2DZbfJtCWRaOjtYD4=", + "bundled": true, "dev": true }, "cross-spawn": { "version": "4.0.2", - "resolved": false, - "integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=", + "bundled": true, "dev": true, "requires": { "lru-cache": "^4.0.1", @@ -617,8 +582,7 @@ }, "debug": { "version": "2.6.9", - "resolved": false, - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "bundled": true, "dev": true, "requires": { "ms": "2.0.0" @@ -626,20 +590,17 @@ }, "debug-log": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-IwdjLUwEOCuN+KMvcLiVBG1SdF8=", + "bundled": true, "dev": true }, "decamelize": { "version": "1.2.0", - "resolved": false, - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "bundled": true, "dev": true }, "default-require-extensions": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-836hXT4T/9m0N9M+GnW1+5eHTLg=", + "bundled": true, "dev": true, "requires": { "strip-bom": "^2.0.0" @@ -647,8 +608,7 @@ }, "detect-indent": { "version": "4.0.0", - "resolved": false, - "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "bundled": true, "dev": true, "requires": { "repeating": "^2.0.0" @@ -656,8 +616,7 @@ }, "error-ex": { "version": "1.3.1", - "resolved": false, - "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "bundled": true, "dev": true, "requires": { "is-arrayish": "^0.2.1" @@ -665,20 +624,17 @@ }, "escape-string-regexp": { "version": "1.0.5", - "resolved": false, - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "bundled": true, "dev": true }, "esutils": { "version": "2.0.2", - "resolved": false, - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "bundled": true, "dev": true }, "execa": { "version": "0.7.0", - "resolved": false, - "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", + "bundled": true, "dev": true, "requires": { "cross-spawn": "^5.0.1", @@ -692,8 +648,7 @@ "dependencies": { "cross-spawn": { "version": "5.1.0", - "resolved": false, - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "bundled": true, "dev": true, "requires": { "lru-cache": "^4.0.1", @@ -705,8 +660,7 @@ }, "expand-brackets": { "version": "0.1.5", - "resolved": false, - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "bundled": true, "dev": true, "requires": { "is-posix-bracket": "^0.1.0" @@ -714,8 +668,7 @@ }, "expand-range": { "version": "1.8.2", - "resolved": false, - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "bundled": true, "dev": true, "requires": { "fill-range": "^2.1.0" @@ -723,8 +676,7 @@ }, "extglob": { "version": "0.3.2", - "resolved": false, - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "bundled": true, "dev": true, "requires": { "is-extglob": "^1.0.0" @@ -732,14 +684,12 @@ }, "filename-regex": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", + "bundled": true, "dev": true }, "fill-range": { "version": "2.2.3", - "resolved": false, - "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", + "bundled": true, "dev": true, "requires": { "is-number": "^2.1.0", @@ -751,8 +701,7 @@ }, "find-cache-dir": { "version": "0.1.1", - "resolved": false, - "integrity": "sha1-yN765XyKUqinhPnjHFfHQumToLk=", + "bundled": true, "dev": true, "requires": { "commondir": "^1.0.1", @@ -762,8 +711,7 @@ }, "find-up": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "bundled": true, "dev": true, "requires": { "locate-path": "^2.0.0" @@ -771,14 +719,12 @@ }, "for-in": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "bundled": true, "dev": true }, "for-own": { "version": "0.1.5", - "resolved": false, - "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", + "bundled": true, "dev": true, "requires": { "for-in": "^1.0.1" @@ -786,8 +732,7 @@ }, "foreground-child": { "version": "1.5.6", - "resolved": false, - "integrity": "sha1-T9ca0t/elnibmApcCilZN8svXOk=", + "bundled": true, "dev": true, "requires": { "cross-spawn": "^4", @@ -796,26 +741,22 @@ }, "fs.realpath": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "bundled": true, "dev": true }, "get-caller-file": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", + "bundled": true, "dev": true }, "get-stream": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "bundled": true, "dev": true }, "glob": { "version": "7.1.2", - "resolved": false, - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "bundled": true, "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -828,8 +769,7 @@ }, "glob-base": { "version": "0.3.0", - "resolved": false, - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", + "bundled": true, "dev": true, "requires": { "glob-parent": "^2.0.0", @@ -838,8 +778,7 @@ }, "glob-parent": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "bundled": true, "dev": true, "requires": { "is-glob": "^2.0.0" @@ -847,20 +786,17 @@ }, "globals": { "version": "9.18.0", - "resolved": false, - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "bundled": true, "dev": true }, "graceful-fs": { "version": "4.1.11", - "resolved": false, - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "bundled": true, "dev": true }, "handlebars": { "version": "4.0.11", - "resolved": false, - "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", + "bundled": true, "dev": true, "requires": { "async": "^1.4.0", @@ -871,8 +807,7 @@ "dependencies": { "source-map": { "version": "0.4.4", - "resolved": false, - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "bundled": true, "dev": true, "requires": { "amdefine": ">=0.0.4" @@ -882,8 +817,7 @@ }, "has-ansi": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "bundled": true, "dev": true, "requires": { "ansi-regex": "^2.0.0" @@ -891,26 +825,22 @@ }, "has-flag": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", + "bundled": true, "dev": true }, "hosted-git-info": { "version": "2.5.0", - "resolved": false, - "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", + "bundled": true, "dev": true }, "imurmurhash": { "version": "0.1.4", - "resolved": false, - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "bundled": true, "dev": true }, "inflight": { "version": "1.0.6", - "resolved": false, - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "bundled": true, "dev": true, "requires": { "once": "^1.3.0", @@ -919,14 +849,12 @@ }, "inherits": { "version": "2.0.3", - "resolved": false, - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "bundled": true, "dev": true }, "invariant": { "version": "2.2.2", - "resolved": false, - "integrity": "sha1-nh9WrArNtr8wMwbzOL47IErmA2A=", + "bundled": true, "dev": true, "requires": { "loose-envify": "^1.0.0" @@ -934,26 +862,22 @@ }, "invert-kv": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "bundled": true, "dev": true }, "is-arrayish": { "version": "0.2.1", - "resolved": false, - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "bundled": true, "dev": true }, "is-buffer": { "version": "1.1.6", - "resolved": false, - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "bundled": true, "dev": true }, "is-builtin-module": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", + "bundled": true, "dev": true, "requires": { "builtin-modules": "^1.0.0" @@ -961,14 +885,12 @@ }, "is-dotfile": { "version": "1.0.3", - "resolved": false, - "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", + "bundled": true, "dev": true }, "is-equal-shallow": { "version": "0.1.3", - "resolved": false, - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", + "bundled": true, "dev": true, "requires": { "is-primitive": "^2.0.0" @@ -976,20 +898,17 @@ }, "is-extendable": { "version": "0.1.1", - "resolved": false, - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "bundled": true, "dev": true }, "is-extglob": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "bundled": true, "dev": true }, "is-finite": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "bundled": true, "dev": true, "requires": { "number-is-nan": "^1.0.0" @@ -997,8 +916,7 @@ }, "is-fullwidth-code-point": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "bundled": true, "dev": true, "requires": { "number-is-nan": "^1.0.0" @@ -1006,8 +924,7 @@ }, "is-glob": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "bundled": true, "dev": true, "requires": { "is-extglob": "^1.0.0" @@ -1015,8 +932,7 @@ }, "is-number": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "bundled": true, "dev": true, "requires": { "kind-of": "^3.0.2" @@ -1024,44 +940,37 @@ }, "is-posix-bracket": { "version": "0.1.1", - "resolved": false, - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", + "bundled": true, "dev": true }, "is-primitive": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", + "bundled": true, "dev": true }, "is-stream": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "bundled": true, "dev": true }, "is-utf8": { "version": "0.2.1", - "resolved": false, - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "bundled": true, "dev": true }, "isarray": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "bundled": true, "dev": true }, "isexe": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "bundled": true, "dev": true }, "isobject": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "bundled": true, "dev": true, "requires": { "isarray": "1.0.0" @@ -1069,14 +978,12 @@ }, "istanbul-lib-coverage": { "version": "1.1.1", - "resolved": false, - "integrity": "sha512-0+1vDkmzxqJIn5rcoEqapSB4DmPxE31EtI2dF2aCkV5esN9EWHxZ0dwgDClivMXJqE7zaYQxq30hj5L0nlTN5Q==", + "bundled": true, "dev": true }, "istanbul-lib-hook": { "version": "1.1.0", - "resolved": false, - "integrity": "sha512-U3qEgwVDUerZ0bt8cfl3dSP3S6opBoOtk3ROO5f2EfBr/SRiD9FQqzwaZBqFORu8W7O0EXpai+k7kxHK13beRg==", + "bundled": true, "dev": true, "requires": { "append-transform": "^0.4.0" @@ -1084,8 +991,7 @@ }, "istanbul-lib-instrument": { "version": "1.9.1", - "resolved": false, - "integrity": "sha512-RQmXeQ7sphar7k7O1wTNzVczF9igKpaeGQAG9qR2L+BS4DCJNTI9nytRmIVYevwO0bbq+2CXvJmYDuz0gMrywA==", + "bundled": true, "dev": true, "requires": { "babel-generator": "^6.18.0", @@ -1099,8 +1005,7 @@ }, "istanbul-lib-report": { "version": "1.1.2", - "resolved": false, - "integrity": "sha512-UTv4VGx+HZivJQwAo1wnRwe1KTvFpfi/NYwN7DcsrdzMXwpRT/Yb6r4SBPoHWj4VuQPakR32g4PUUeyKkdDkBA==", + "bundled": true, "dev": true, "requires": { "istanbul-lib-coverage": "^1.1.1", @@ -1111,8 +1016,7 @@ "dependencies": { "supports-color": { "version": "3.2.3", - "resolved": false, - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", + "bundled": true, "dev": true, "requires": { "has-flag": "^1.0.0" @@ -1122,8 +1026,7 @@ }, "istanbul-lib-source-maps": { "version": "1.2.2", - "resolved": false, - "integrity": "sha512-8BfdqSfEdtip7/wo1RnrvLpHVEd8zMZEDmOFEnpC6dg0vXflHt9nvoAyQUzig2uMSXfF2OBEYBV3CVjIL9JvaQ==", + "bundled": true, "dev": true, "requires": { "debug": "^3.1.0", @@ -1135,8 +1038,7 @@ "dependencies": { "debug": { "version": "3.1.0", - "resolved": false, - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "bundled": true, "dev": true, "requires": { "ms": "2.0.0" @@ -1146,8 +1048,7 @@ }, "istanbul-reports": { "version": "1.1.3", - "resolved": false, - "integrity": "sha512-ZEelkHh8hrZNI5xDaKwPMFwDsUf5wIEI2bXAFGp1e6deR2mnEKBPhLJEgr4ZBt8Gi6Mj38E/C8kcy9XLggVO2Q==", + "bundled": true, "dev": true, "requires": { "handlebars": "^4.0.3" @@ -1155,20 +1056,17 @@ }, "js-tokens": { "version": "3.0.2", - "resolved": false, - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "bundled": true, "dev": true }, "jsesc": { "version": "1.3.0", - "resolved": false, - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", + "bundled": true, "dev": true }, "kind-of": { "version": "3.2.2", - "resolved": false, - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "bundled": true, "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -1176,15 +1074,13 @@ }, "lazy-cache": { "version": "1.0.4", - "resolved": false, - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", + "bundled": true, "dev": true, "optional": true }, "lcid": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "bundled": true, "dev": true, "requires": { "invert-kv": "^1.0.0" @@ -1192,8 +1088,7 @@ }, "load-json-file": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "bundled": true, "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -1205,8 +1100,7 @@ }, "locate-path": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "bundled": true, "dev": true, "requires": { "p-locate": "^2.0.0", @@ -1215,28 +1109,24 @@ "dependencies": { "path-exists": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "bundled": true, "dev": true } } }, "lodash": { "version": "4.17.4", - "resolved": false, - "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "bundled": true, "dev": true }, "longest": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "bundled": true, "dev": true }, "loose-envify": { "version": "1.3.1", - "resolved": false, - "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "bundled": true, "dev": true, "requires": { "js-tokens": "^3.0.0" @@ -1244,8 +1134,7 @@ }, "lru-cache": { "version": "4.1.1", - "resolved": false, - "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", + "bundled": true, "dev": true, "requires": { "pseudomap": "^1.0.2", @@ -1254,8 +1143,7 @@ }, "md5-hex": { "version": "1.3.0", - "resolved": false, - "integrity": "sha1-0sSv6YPENwZiF5uMrRRSGRNQRsQ=", + "bundled": true, "dev": true, "requires": { "md5-o-matic": "^0.1.1" @@ -1263,14 +1151,12 @@ }, "md5-o-matic": { "version": "0.1.1", - "resolved": false, - "integrity": "sha1-givM1l4RfFFPqxdrJZRdVBAKA8M=", + "bundled": true, "dev": true }, "mem": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", + "bundled": true, "dev": true, "requires": { "mimic-fn": "^1.0.0" @@ -1278,8 +1164,7 @@ }, "merge-source-map": { "version": "1.0.4", - "resolved": false, - "integrity": "sha1-pd5GU42uhNQRTMXqArR3KmNGcB8=", + "bundled": true, "dev": true, "requires": { "source-map": "^0.5.6" @@ -1287,8 +1172,7 @@ }, "micromatch": { "version": "2.3.11", - "resolved": false, - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "bundled": true, "dev": true, "requires": { "arr-diff": "^2.0.0", @@ -1308,14 +1192,12 @@ }, "mimic-fn": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-5md4PZLonb00KBi1IwudYqZyrRg=", + "bundled": true, "dev": true }, "minimatch": { "version": "3.0.4", - "resolved": false, - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "bundled": true, "dev": true, "requires": { "brace-expansion": "^1.1.7" @@ -1323,14 +1205,12 @@ }, "minimist": { "version": "0.0.8", - "resolved": false, - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "bundled": true, "dev": true }, "mkdirp": { "version": "0.5.1", - "resolved": false, - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "bundled": true, "dev": true, "requires": { "minimist": "0.0.8" @@ -1338,14 +1218,12 @@ }, "ms": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "bundled": true, "dev": true }, "normalize-package-data": { "version": "2.4.0", - "resolved": false, - "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "bundled": true, "dev": true, "requires": { "hosted-git-info": "^2.1.4", @@ -1356,8 +1234,7 @@ }, "normalize-path": { "version": "2.1.1", - "resolved": false, - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "bundled": true, "dev": true, "requires": { "remove-trailing-separator": "^1.0.1" @@ -1365,8 +1242,7 @@ }, "npm-run-path": { "version": "2.0.2", - "resolved": false, - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "bundled": true, "dev": true, "requires": { "path-key": "^2.0.0" @@ -1374,20 +1250,17 @@ }, "number-is-nan": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "bundled": true, "dev": true }, "object-assign": { "version": "4.1.1", - "resolved": false, - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "bundled": true, "dev": true }, "object.omit": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "bundled": true, "dev": true, "requires": { "for-own": "^0.1.4", @@ -1396,8 +1269,7 @@ }, "once": { "version": "1.4.0", - "resolved": false, - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "bundled": true, "dev": true, "requires": { "wrappy": "1" @@ -1405,8 +1277,7 @@ }, "optimist": { "version": "0.6.1", - "resolved": false, - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", + "bundled": true, "dev": true, "requires": { "minimist": "~0.0.1", @@ -1415,14 +1286,12 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "bundled": true, "dev": true }, "os-locale": { "version": "2.1.0", - "resolved": false, - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", + "bundled": true, "dev": true, "requires": { "execa": "^0.7.0", @@ -1432,20 +1301,17 @@ }, "p-finally": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "bundled": true, "dev": true }, "p-limit": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-sH/y2aXYi+yAYDWJWiurZqJ5iLw=", + "bundled": true, "dev": true }, "p-locate": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "bundled": true, "dev": true, "requires": { "p-limit": "^1.1.0" @@ -1453,8 +1319,7 @@ }, "parse-glob": { "version": "3.0.4", - "resolved": false, - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", + "bundled": true, "dev": true, "requires": { "glob-base": "^0.3.0", @@ -1465,8 +1330,7 @@ }, "parse-json": { "version": "2.2.0", - "resolved": false, - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "bundled": true, "dev": true, "requires": { "error-ex": "^1.2.0" @@ -1474,8 +1338,7 @@ }, "path-exists": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "bundled": true, "dev": true, "requires": { "pinkie-promise": "^2.0.0" @@ -1483,26 +1346,22 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "bundled": true, "dev": true }, "path-key": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "bundled": true, "dev": true }, "path-parse": { "version": "1.0.5", - "resolved": false, - "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "bundled": true, "dev": true }, "path-type": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "bundled": true, "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -1512,20 +1371,17 @@ }, "pify": { "version": "2.3.0", - "resolved": false, - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "bundled": true, "dev": true }, "pinkie": { "version": "2.0.4", - "resolved": false, - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "bundled": true, "dev": true }, "pinkie-promise": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "bundled": true, "dev": true, "requires": { "pinkie": "^2.0.0" @@ -1533,8 +1389,7 @@ }, "pkg-dir": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", + "bundled": true, "dev": true, "requires": { "find-up": "^1.0.0" @@ -1542,8 +1397,7 @@ "dependencies": { "find-up": { "version": "1.1.2", - "resolved": false, - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "bundled": true, "dev": true, "requires": { "path-exists": "^2.0.0", @@ -1554,20 +1408,17 @@ }, "preserve": { "version": "0.2.0", - "resolved": false, - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", + "bundled": true, "dev": true }, "pseudomap": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "bundled": true, "dev": true }, "randomatic": { "version": "1.1.7", - "resolved": false, - "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", + "bundled": true, "dev": true, "requires": { "is-number": "^3.0.0", @@ -1576,8 +1427,7 @@ "dependencies": { "is-number": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "bundled": true, "dev": true, "requires": { "kind-of": "^3.0.2" @@ -1585,8 +1435,7 @@ "dependencies": { "kind-of": { "version": "3.2.2", - "resolved": false, - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "bundled": true, "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -1596,8 +1445,7 @@ }, "kind-of": { "version": "4.0.0", - "resolved": false, - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "bundled": true, "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -1607,8 +1455,7 @@ }, "read-pkg": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "bundled": true, "dev": true, "requires": { "load-json-file": "^1.0.0", @@ -1618,8 +1465,7 @@ }, "read-pkg-up": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "bundled": true, "dev": true, "requires": { "find-up": "^1.0.0", @@ -1628,8 +1474,7 @@ "dependencies": { "find-up": { "version": "1.1.2", - "resolved": false, - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "bundled": true, "dev": true, "requires": { "path-exists": "^2.0.0", @@ -1640,14 +1485,12 @@ }, "regenerator-runtime": { "version": "0.11.1", - "resolved": false, - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", + "bundled": true, "dev": true }, "regex-cache": { "version": "0.4.4", - "resolved": false, - "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", + "bundled": true, "dev": true, "requires": { "is-equal-shallow": "^0.1.3" @@ -1655,26 +1498,22 @@ }, "remove-trailing-separator": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "bundled": true, "dev": true }, "repeat-element": { "version": "1.1.2", - "resolved": false, - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "bundled": true, "dev": true }, "repeat-string": { "version": "1.6.1", - "resolved": false, - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "bundled": true, "dev": true }, "repeating": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "bundled": true, "dev": true, "requires": { "is-finite": "^1.0.0" @@ -1682,26 +1521,22 @@ }, "require-directory": { "version": "2.1.1", - "resolved": false, - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "bundled": true, "dev": true }, "require-main-filename": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "bundled": true, "dev": true }, "resolve-from": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=", + "bundled": true, "dev": true }, "right-align": { "version": "0.1.3", - "resolved": false, - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -1710,8 +1545,7 @@ }, "rimraf": { "version": "2.6.2", - "resolved": false, - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "bundled": true, "dev": true, "requires": { "glob": "^7.0.5" @@ -1719,20 +1553,17 @@ }, "semver": { "version": "5.4.1", - "resolved": false, - "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", + "bundled": true, "dev": true }, "set-blocking": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "bundled": true, "dev": true }, "shebang-command": { "version": "1.2.0", - "resolved": false, - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "bundled": true, "dev": true, "requires": { "shebang-regex": "^1.0.0" @@ -1740,32 +1571,27 @@ }, "shebang-regex": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "bundled": true, "dev": true }, "signal-exit": { "version": "3.0.2", - "resolved": false, - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "bundled": true, "dev": true }, "slide": { "version": "1.1.6", - "resolved": false, - "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=", + "bundled": true, "dev": true }, "source-map": { "version": "0.5.7", - "resolved": false, - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "bundled": true, "dev": true }, "spawn-wrap": { "version": "1.4.2", - "resolved": false, - "integrity": "sha512-vMwR3OmmDhnxCVxM8M+xO/FtIp6Ju/mNaDfCMMW7FDcLRTPFWUswec4LXJHTJE2hwTI9O0YBfygu4DalFl7Ylg==", + "bundled": true, "dev": true, "requires": { "foreground-child": "^1.5.6", @@ -1778,8 +1604,7 @@ }, "spdx-correct": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", + "bundled": true, "dev": true, "requires": { "spdx-license-ids": "^1.0.2" @@ -1787,20 +1612,17 @@ }, "spdx-expression-parse": { "version": "1.0.4", - "resolved": false, - "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", + "bundled": true, "dev": true }, "spdx-license-ids": { "version": "1.2.2", - "resolved": false, - "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", + "bundled": true, "dev": true }, "string-width": { "version": "2.1.1", - "resolved": false, - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "bundled": true, "dev": true, "requires": { "is-fullwidth-code-point": "^2.0.0", @@ -1809,20 +1631,17 @@ "dependencies": { "ansi-regex": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "bundled": true, "dev": true }, "is-fullwidth-code-point": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "bundled": true, "dev": true }, "strip-ansi": { "version": "4.0.0", - "resolved": false, - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "bundled": true, "dev": true, "requires": { "ansi-regex": "^3.0.0" @@ -1832,8 +1651,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": false, - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "bundled": true, "dev": true, "requires": { "ansi-regex": "^2.0.0" @@ -1841,8 +1659,7 @@ }, "strip-bom": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "bundled": true, "dev": true, "requires": { "is-utf8": "^0.2.0" @@ -1850,20 +1667,17 @@ }, "strip-eof": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "bundled": true, "dev": true }, "supports-color": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "bundled": true, "dev": true }, "test-exclude": { "version": "4.1.1", - "resolved": false, - "integrity": "sha512-35+Asrsk3XHJDBgf/VRFexPgh3UyETv8IAn/LRTiZjVy6rjPVqdEk8dJcJYBzl1w0XCJM48lvTy8SfEsCWS4nA==", + "bundled": true, "dev": true, "requires": { "arrify": "^1.0.1", @@ -1875,20 +1689,17 @@ }, "to-fast-properties": { "version": "1.0.3", - "resolved": false, - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "bundled": true, "dev": true }, "trim-right": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "bundled": true, "dev": true }, "uglify-js": { "version": "2.8.29", - "resolved": false, - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -1899,8 +1710,7 @@ "dependencies": { "yargs": { "version": "3.10.0", - "resolved": false, - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -1914,15 +1724,13 @@ }, "uglify-to-browserify": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", + "bundled": true, "dev": true, "optional": true }, "validate-npm-package-license": { "version": "3.0.1", - "resolved": false, - "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", + "bundled": true, "dev": true, "requires": { "spdx-correct": "~1.0.0", @@ -1931,8 +1739,7 @@ }, "which": { "version": "1.3.0", - "resolved": false, - "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", + "bundled": true, "dev": true, "requires": { "isexe": "^2.0.0" @@ -1940,27 +1747,23 @@ }, "which-module": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "bundled": true, "dev": true }, "window-size": { "version": "0.1.0", - "resolved": false, - "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", + "bundled": true, "dev": true, "optional": true }, "wordwrap": { "version": "0.0.3", - "resolved": false, - "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", + "bundled": true, "dev": true }, "wrap-ansi": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "bundled": true, "dev": true, "requires": { "string-width": "^1.0.1", @@ -1969,8 +1772,7 @@ "dependencies": { "string-width": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "bundled": true, "dev": true, "requires": { "code-point-at": "^1.0.0", @@ -1982,14 +1784,12 @@ }, "wrappy": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "bundled": true, "dev": true }, "write-file-atomic": { "version": "1.3.4", - "resolved": false, - "integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=", + "bundled": true, "dev": true, "requires": { "graceful-fs": "^4.1.11", @@ -1999,20 +1799,17 @@ }, "y18n": { "version": "3.2.1", - "resolved": false, - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "bundled": true, "dev": true }, "yallist": { "version": "2.1.2", - "resolved": false, - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "bundled": true, "dev": true }, "yargs": { "version": "10.0.3", - "resolved": false, - "integrity": "sha512-DqBpQ8NAUX4GyPP/ijDGHsJya4tYqLQrjPr95HNsr1YwL3+daCfvBwg7+gIC6IdJhR2kATh3hb61vjzMWEtjdw==", + "bundled": true, "dev": true, "requires": { "cliui": "^3.2.0", @@ -2031,8 +1828,7 @@ "dependencies": { "cliui": { "version": "3.2.0", - "resolved": false, - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "bundled": true, "dev": true, "requires": { "string-width": "^1.0.1", @@ -2042,8 +1838,7 @@ "dependencies": { "string-width": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "bundled": true, "dev": true, "requires": { "code-point-at": "^1.0.0", @@ -2057,8 +1852,7 @@ }, "yargs-parser": { "version": "8.0.0", - "resolved": false, - "integrity": "sha1-IdR2Mw5agieaS4gTRb8GYQLiGcY=", + "bundled": true, "dev": true, "requires": { "camelcase": "^4.1.0" @@ -2066,8 +1860,7 @@ "dependencies": { "camelcase": { "version": "4.1.0", - "resolved": false, - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "bundled": true, "dev": true } } @@ -2266,9 +2059,9 @@ "integrity": "sha512-M7x8+5D1k/CuA6jhiwuSCmE8sbUWJF0wYsjcig9WrXvwUI5ArEoUBdOXpV4JcEMrLp02/QbDjw+kI+vQeKyQgg==" }, "acorn": { - "version": "4.0.13", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", - "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=" + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", + "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==" }, "acorn-es7-plugin": { "version": "1.1.7", @@ -2282,14 +2075,6 @@ "dev": true, "requires": { "acorn": "^5.0.3" - }, - "dependencies": { - "acorn": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", - "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==", - "dev": true - } } }, "ajv": { @@ -2636,9 +2421,9 @@ "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=" }, "auto-bind": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-1.2.0.tgz", - "integrity": "sha512-Zw7pZp7tztvKnWWtoII4AmqH5a2PV3ZN5F0BPRTGcc1kpRm4b6QXQnPU7Znbl6BfPfqOVOV29g4JeMqZQaqqOA==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-1.2.1.tgz", + "integrity": "sha512-/W9yj1yKmBLwpexwAujeD9YHwYmRuWFGV8HWE7smQab797VeHa4/cnE2NFeDhA+E+5e/OGBI8763EhLjfZ/MXA==", "dev": true }, "ava": { @@ -2747,6 +2532,16 @@ "ms": "2.0.0" } }, + "empower-core": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/empower-core/-/empower-core-0.6.2.tgz", + "integrity": "sha1-Wt71ZgiOMfuoC6CjbfR9cJQWkUQ=", + "dev": true, + "requires": { + "call-signature": "0.0.2", + "core-js": "^2.0.0" + } + }, "globby": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", @@ -3322,9 +3117,9 @@ } }, "bcrypt-pbkdf": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", - "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", "dev": true, "optional": true, "requires": { @@ -3451,9 +3246,9 @@ "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" }, "buffer-from": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.0.0.tgz", - "integrity": "sha512-83apNb8KK0Se60UE1+4Ukbe3HbfELJ6UlI4ldtOGs7So4KD26orJM8hIY9lxdzP+UpItH1Yh/Y8GUvNFWFFRxA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz", + "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==", "dev": true }, "builtin-modules": { @@ -3877,18 +3672,18 @@ } }, "color-convert": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", - "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz", + "integrity": "sha512-3NUJZdhMhcdPn8vJ9v2UQJoH0qqoGUkYTgFEPZaPjEtwmmKUfNV46zZmgB2M5M4DCEQHMaCfWHCxiBflLm04Tg==", "dev": true, "requires": { - "color-name": "^1.1.1" + "color-name": "1.1.1" } }, "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz", + "integrity": "sha1-SxQVMEz1ACjqgWQ2Q72C6gWANok=", "dev": true }, "colors": { @@ -3996,9 +3791,9 @@ "dev": true }, "cookiejar": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.1.tgz", - "integrity": "sha1-Qa1XsbVVlR7BcUEqgZQrHoIA00o=", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", + "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==", "dev": true }, "copy-descriptor": { @@ -4017,9 +3812,9 @@ } }, "core-js": { - "version": "2.5.6", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.6.tgz", - "integrity": "sha512-lQUVfQi0aLix2xpyjrrJEvfuYCqPc/HwmTKsC/VNf8q0zsjX7SQZtp4+oRONN5Tsur9GDETPjj+Ub2iDiGZfSQ==" + "version": "2.5.7", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", + "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==" }, "core-util-is": { "version": "1.0.2", @@ -4119,9 +3914,9 @@ "dev": true }, "deep-extend": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.5.1.tgz", - "integrity": "sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w==", + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true }, "deep-is": { @@ -4342,9 +4137,9 @@ } }, "eastasianwidth": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.1.1.tgz", - "integrity": "sha1-RNZW3p2kFWlEZzNTZfsxR7hXK3w=" + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" }, "ecc-jsbn": { "version": "0.1.1", @@ -4365,12 +4160,12 @@ } }, "empower": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/empower/-/empower-1.2.3.tgz", - "integrity": "sha1-bw2nNEf07dg4/sXGAxOoi6XLhSs=", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/empower/-/empower-1.3.0.tgz", + "integrity": "sha512-tP2WqM7QzrPguCCQEQfFFDF+6Pw6YWLQal3+GHQaV+0uIr0S+jyREQPWljE02zFCYPFYLZ3LosiRV+OzTrxPpQ==", "requires": { "core-js": "^2.0.0", - "empower-core": "^0.6.2" + "empower-core": "^1.2.0" } }, "empower-assert": { @@ -4383,9 +4178,9 @@ } }, "empower-core": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/empower-core/-/empower-core-0.6.2.tgz", - "integrity": "sha1-Wt71ZgiOMfuoC6CjbfR9cJQWkUQ=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/empower-core/-/empower-core-1.2.0.tgz", + "integrity": "sha512-g6+K6Geyc1o6FdXs9HwrXleCFan7d66G5xSCfSF7x1mJDCes6t0om9lFQG3zOrzh3Bkb/45N0cZ5Gqsf7YrzGQ==", "requires": { "call-signature": "0.0.2", "core-js": "^2.0.0" @@ -4412,9 +4207,9 @@ "dev": true }, "error-ex": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", - "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, "requires": { "is-arrayish": "^0.2.1" @@ -4445,9 +4240,9 @@ } }, "es5-ext": { - "version": "0.10.42", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.42.tgz", - "integrity": "sha512-AJxO1rmPe1bDEfSR6TJ/FgMFYuTBhR5R57KW58iCkYACMyFbrkqVyzXSurYoScDGvgyMpk7uRF/lPUPPTmsRSA==", + "version": "0.10.45", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.45.tgz", + "integrity": "sha512-FkfM6Vxxfmztilbxxz5UKSD4ICMf5tSpRFtDNtkAhOxZ0EKtX6qwmXNyH/sFyIbX2P/nU5AMiA9jilWsUGJzCQ==", "dev": true, "requires": { "es6-iterator": "~2.0.3", @@ -4546,9 +4341,9 @@ "dev": true }, "escodegen": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.9.1.tgz", - "integrity": "sha512-6hTjO1NAWkHnDk3OqQ4YrCuwwmGHL9S3nPlzBOUG/R44rda3wLNrfvQ5fkSGjyhHFKM7ALPKcKGrwvCLe0lC7Q==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.10.0.tgz", + "integrity": "sha512-fjUOf8johsv23WuIKdNQU4P9t9jhQ4Qzx6pC2uW890OloK3Zs1ZAoCNpg/2larNF501jLl3UNy0kIRcF6VI22g==", "dev": true, "requires": { "esprima": "^3.1.3", @@ -4632,9 +4427,9 @@ }, "dependencies": { "ajv": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.1.tgz", - "integrity": "sha512-pgZos1vgOHDiC7gKNbZW8eKvCnNXARv2oqrGQT7Hzbq5Azp7aZG6DJzADnkuSq7RH6qkXp4J/m68yPX/2uBHyQ==", + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", + "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", "dev": true, "requires": { "fast-deep-equal": "^2.0.1", @@ -4730,9 +4525,9 @@ }, "dependencies": { "resolve": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.7.1.tgz", - "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", + "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", "dev": true, "requires": { "path-parse": "^1.0.5" @@ -4741,9 +4536,9 @@ } }, "eslint-plugin-prettier": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.0.tgz", - "integrity": "sha512-floiaI4F7hRkTrFe8V2ItOK97QYrX75DjmdzmVITZoAP6Cn06oEDPQRsO6MlHEP/u2SxI3xQ52Kpjw6j5WGfeQ==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.1.tgz", + "integrity": "sha512-wNZ2z0oVCWnf+3BSI7roS+z4gGu2AwcPKUek+SlLZMZg+X0KbZLsB2knul7fd0K3iuIp402HIYzm4f2+OyfXxA==", "dev": true, "requires": { "fast-diff": "^1.1.1", @@ -4821,30 +4616,22 @@ } }, "espower-source": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/espower-source/-/espower-source-2.2.0.tgz", - "integrity": "sha1-fgBSVa5HtcE2RIZEs/PYAtUD91I=", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/espower-source/-/espower-source-2.3.0.tgz", + "integrity": "sha512-Wc4kC4zUAEV7Qt31JRPoBUc5jjowHRylml2L2VaDQ1XEbnqQofGWx+gPR03TZAPokAMl5dqyL36h3ITyMXy3iA==", "dev": true, "requires": { "acorn": "^5.0.0", "acorn-es7-plugin": "^1.0.10", "convert-source-map": "^1.1.1", "empower-assert": "^1.0.0", - "escodegen": "^1.6.1", - "espower": "^2.0.0", + "escodegen": "^1.10.0", + "espower": "^2.1.1", "estraverse": "^4.0.0", "merge-estraverse-visitors": "^1.0.0", "multi-stage-sourcemap": "^0.2.1", "path-is-absolute": "^1.0.0", "xtend": "^4.0.0" - }, - "dependencies": { - "acorn": { - "version": "5.5.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.5.3.tgz", - "integrity": "sha512-jd5MkIUlbbmb07nXH0DT3y7rDVtkzDi4XZOUVWAer8ajmF/DTSSbl5oNFyDOl/OXA33Bl79+ypHhl2pN20VeOQ==", - "dev": true - } } }, "espree": { @@ -4855,14 +4642,6 @@ "requires": { "acorn": "^5.6.0", "acorn-jsx": "^4.1.1" - }, - "dependencies": { - "acorn": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", - "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==", - "dev": true - } } }, "esprima": { @@ -5354,28 +5133,24 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "resolved": false, - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "bundled": true, "dev": true, "optional": true }, "ansi-regex": { "version": "2.1.1", - "resolved": false, - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "bundled": true, "dev": true }, "aproba": { "version": "1.2.0", - "resolved": false, - "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "bundled": true, "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.4", - "resolved": false, - "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5385,14 +5160,12 @@ }, "balanced-match": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "bundled": true, "dev": true }, "brace-expansion": { "version": "1.1.11", - "resolved": false, - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "bundled": true, "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -5401,40 +5174,34 @@ }, "chownr": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", + "bundled": true, "dev": true, "optional": true }, "code-point-at": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "bundled": true, "dev": true }, "concat-map": { "version": "0.0.1", - "resolved": false, - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "bundled": true, "dev": true }, "console-control-strings": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "bundled": true, "dev": true }, "core-util-is": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "bundled": true, "dev": true, "optional": true }, "debug": { "version": "2.6.9", - "resolved": false, - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5443,29 +5210,25 @@ }, "deep-extend": { "version": "0.5.1", - "resolved": false, - "integrity": "sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w==", + "bundled": true, "dev": true, "optional": true }, "delegates": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "bundled": true, "dev": true, "optional": true }, "detect-libc": { "version": "1.0.3", - "resolved": false, - "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", + "bundled": true, "dev": true, "optional": true }, "fs-minipass": { "version": "1.2.5", - "resolved": false, - "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5474,15 +5237,13 @@ }, "fs.realpath": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "bundled": true, "dev": true, "optional": true }, "gauge": { "version": "2.7.4", - "resolved": false, - "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5498,8 +5259,7 @@ }, "glob": { "version": "7.1.2", - "resolved": false, - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5513,15 +5273,13 @@ }, "has-unicode": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "bundled": true, "dev": true, "optional": true }, "iconv-lite": { "version": "0.4.21", - "resolved": false, - "integrity": "sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5530,8 +5288,7 @@ }, "ignore-walk": { "version": "3.0.1", - "resolved": false, - "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5540,8 +5297,7 @@ }, "inflight": { "version": "1.0.6", - "resolved": false, - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5551,21 +5307,18 @@ }, "inherits": { "version": "2.0.3", - "resolved": false, - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "bundled": true, "dev": true }, "ini": { "version": "1.3.5", - "resolved": false, - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "bundled": true, "dev": true, "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "bundled": true, "dev": true, "requires": { "number-is-nan": "^1.0.0" @@ -5573,15 +5326,13 @@ }, "isarray": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "bundled": true, "dev": true, "optional": true }, "minimatch": { "version": "3.0.4", - "resolved": false, - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "bundled": true, "dev": true, "requires": { "brace-expansion": "^1.1.7" @@ -5589,14 +5340,12 @@ }, "minimist": { "version": "0.0.8", - "resolved": false, - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "bundled": true, "dev": true }, "minipass": { "version": "2.2.4", - "resolved": false, - "integrity": "sha512-hzXIWWet/BzWhYs2b+u7dRHlruXhwdgvlTMDKC6Cb1U7ps6Ac6yQlR39xsbjWJE377YTCtKwIXIpJ5oP+j5y8g==", + "bundled": true, "dev": true, "requires": { "safe-buffer": "^5.1.1", @@ -5605,8 +5354,7 @@ }, "minizlib": { "version": "1.1.0", - "resolved": false, - "integrity": "sha512-4T6Ur/GctZ27nHfpt9THOdRZNgyJ9FZchYO1ceg5S8Q3DNLCKYy44nCZzgCJgcvx2UM8czmqak5BCxJMrq37lA==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5615,8 +5363,7 @@ }, "mkdirp": { "version": "0.5.1", - "resolved": false, - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "bundled": true, "dev": true, "requires": { "minimist": "0.0.8" @@ -5624,15 +5371,13 @@ }, "ms": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "bundled": true, "dev": true, "optional": true }, "needle": { "version": "2.2.0", - "resolved": false, - "integrity": "sha512-eFagy6c+TYayorXw/qtAdSvaUpEbBsDwDyxYFgLZ0lTojfH7K+OdBqAF7TAFwDokJaGpubpSGG0wO3iC0XPi8w==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5643,8 +5388,7 @@ }, "node-pre-gyp": { "version": "0.10.0", - "resolved": false, - "integrity": "sha512-G7kEonQLRbcA/mOoFoxvlMrw6Q6dPf92+t/l0DFSMuSlDoWaI9JWIyPwK0jyE1bph//CUEL65/Fz1m2vJbmjQQ==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5662,8 +5406,7 @@ }, "nopt": { "version": "4.0.1", - "resolved": false, - "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5673,15 +5416,13 @@ }, "npm-bundled": { "version": "1.0.3", - "resolved": false, - "integrity": "sha512-ByQ3oJ/5ETLyglU2+8dBObvhfWXX8dtPZDMePCahptliFX2iIuhyEszyFk401PZUNQH20vvdW5MLjJxkwU80Ow==", + "bundled": true, "dev": true, "optional": true }, "npm-packlist": { "version": "1.1.10", - "resolved": false, - "integrity": "sha512-AQC0Dyhzn4EiYEfIUjCdMl0JJ61I2ER9ukf/sLxJUcZHfo+VyEfz2rMJgLZSS1v30OxPQe1cN0LZA1xbcaVfWA==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5691,8 +5432,7 @@ }, "npmlog": { "version": "4.1.2", - "resolved": false, - "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5704,21 +5444,18 @@ }, "number-is-nan": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "bundled": true, "dev": true }, "object-assign": { "version": "4.1.1", - "resolved": false, - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "bundled": true, "dev": true, "optional": true }, "once": { "version": "1.4.0", - "resolved": false, - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "bundled": true, "dev": true, "requires": { "wrappy": "1" @@ -5726,22 +5463,19 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "bundled": true, "dev": true, "optional": true }, "os-tmpdir": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "bundled": true, "dev": true, "optional": true }, "osenv": { "version": "0.1.5", - "resolved": false, - "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5751,22 +5485,19 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "bundled": true, "dev": true, "optional": true }, "process-nextick-args": { "version": "2.0.0", - "resolved": false, - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "bundled": true, "dev": true, "optional": true }, "rc": { "version": "1.2.7", - "resolved": false, - "integrity": "sha512-LdLD8xD4zzLsAT5xyushXDNscEjB7+2ulnl8+r1pnESlYtlJtVSoCMBGr30eDRJ3+2Gq89jK9P9e4tCEH1+ywA==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5778,8 +5509,7 @@ "dependencies": { "minimist": { "version": "1.2.0", - "resolved": false, - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "bundled": true, "dev": true, "optional": true } @@ -5787,8 +5517,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": false, - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5803,8 +5532,7 @@ }, "rimraf": { "version": "2.6.2", - "resolved": false, - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5813,49 +5541,42 @@ }, "safe-buffer": { "version": "5.1.1", - "resolved": false, - "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", + "bundled": true, "dev": true }, "safer-buffer": { "version": "2.1.2", - "resolved": false, - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "bundled": true, "dev": true, "optional": true }, "sax": { "version": "1.2.4", - "resolved": false, - "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", + "bundled": true, "dev": true, "optional": true }, "semver": { "version": "5.5.0", - "resolved": false, - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", + "bundled": true, "dev": true, "optional": true }, "set-blocking": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "bundled": true, "dev": true, "optional": true }, "signal-exit": { "version": "3.0.2", - "resolved": false, - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "bundled": true, "dev": true, "optional": true }, "string-width": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "bundled": true, "dev": true, "requires": { "code-point-at": "^1.0.0", @@ -5865,8 +5586,7 @@ }, "string_decoder": { "version": "1.1.1", - "resolved": false, - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5875,8 +5595,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": false, - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "bundled": true, "dev": true, "requires": { "ansi-regex": "^2.0.0" @@ -5884,15 +5603,13 @@ }, "strip-json-comments": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "bundled": true, "dev": true, "optional": true }, "tar": { "version": "4.4.1", - "resolved": false, - "integrity": "sha512-O+v1r9yN4tOsvl90p5HAP4AEqbYhx4036AGMm075fH9F8Qwi3oJ+v4u50FkT/KkvywNGtwkk0zRI+8eYm1X/xg==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5907,15 +5624,13 @@ }, "util-deprecate": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "bundled": true, "dev": true, "optional": true }, "wide-align": { "version": "1.1.2", - "resolved": false, - "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -5924,14 +5639,12 @@ }, "wrappy": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "bundled": true, "dev": true }, "yallist": { "version": "3.0.2", - "resolved": false, - "integrity": "sha1-hFK0u36Dx8GI2AQcGoN8dz1ti7k=", + "bundled": true, "dev": true } } @@ -6796,9 +6509,9 @@ } }, "hosted-git-info": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.0.tgz", - "integrity": "sha512-lIbgIIQA3lz5XaB6vxakj6sDHADJiZadYEJB+FgA+C4nubM1NwcuvUr9EJPmnH1skZqpqUzWborWo8EIUi0Sdw==", + "version": "2.6.1", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.1.tgz", + "integrity": "sha512-Ba4+0M4YvIDUUsprMjhVTU1yN9F2/LJSAl69ZpzaLT4l4j5mwTS6jqqW9Ojvj6lKz/veqPzpJBqGbXspOb533A==", "dev": true }, "htmlparser2": { @@ -6864,9 +6577,9 @@ } }, "ignore": { - "version": "3.3.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.8.tgz", - "integrity": "sha512-pUh+xUQQhQzevjRHHFqqcTy0/dP/kS9I8HSrUydhihjuD09W6ldVWFtIrwhXdUJHis3i2rZNqEHpZH/cbinFbg==" + "version": "3.3.10", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", + "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==" }, "ignore-by-default": { "version": "1.0.1", @@ -7250,21 +6963,6 @@ "symbol-observable": "^1.1.0" } }, - "is-odd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-odd/-/is-odd-2.0.0.tgz", - "integrity": "sha512-OTiixgpZAT1M4NHgS5IguFp/Vz2VI3U7Goh4/HA1adtwyLtSBrxYlcSYkhpAE07s4fKEcjrFxyvtQBND4vFQyQ==", - "requires": { - "is-number": "^4.0.0" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==" - } - } - }, "is-path-cwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", @@ -7417,16 +7115,16 @@ "dev": true }, "istanbul-lib-instrument": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-2.2.1.tgz", - "integrity": "sha512-azWDq6BXKEZV1dGAnqCzBO5S+k3hX6IP63NHKXI9+sPNtaWEymJ6vh0rl65ZLgt8kbn7lmt63kdcOMXomW4B4Q==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-2.3.0.tgz", + "integrity": "sha512-Ie1LGWJVCFDDJKKH4g1ffpFcZTEXEd6ay5l9fE8539y4qPErJnzo4psnGzDH92tcKvdUDdbxrKySYIbt6zB9hw==", "dev": true, "requires": { - "@babel/generator": "7.0.0-beta.49", - "@babel/parser": "7.0.0-beta.49", - "@babel/template": "7.0.0-beta.49", - "@babel/traverse": "7.0.0-beta.49", - "@babel/types": "7.0.0-beta.49", + "@babel/generator": "7.0.0-beta.51", + "@babel/parser": "7.0.0-beta.51", + "@babel/template": "7.0.0-beta.51", + "@babel/traverse": "7.0.0-beta.51", + "@babel/types": "7.0.0-beta.51", "istanbul-lib-coverage": "^2.0.0", "semver": "^5.5.0" } @@ -7460,9 +7158,9 @@ "dev": true }, "js-yaml": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.11.0.tgz", - "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz", + "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", "dev": true, "requires": { "argparse": "^1.0.7", @@ -7785,9 +7483,9 @@ "dev": true }, "lolex": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.6.0.tgz", - "integrity": "sha512-e1UtIo1pbrIqEXib/yMjHciyqkng5lc0rrIbytgjmRgDR9+2ceNIAcwOWSgylRjoEP9VdVguCSRwnNmlbnOUwA==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.7.0.tgz", + "integrity": "sha512-uJkH2e0BVfU5KOJUevbTOtpDduooSarH5PopO+LfM/vZf8Z9sJzODqKev804JYM2i++ktJfUmC1le4LwFQ1VMg==", "dev": true }, "long": { @@ -7870,9 +7568,9 @@ "dev": true }, "matcher": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/matcher/-/matcher-1.1.0.tgz", - "integrity": "sha512-aZGv6JBTHqfqAd09jmAlbKnAICTfIvb5Z8gXVxPB5WZtFfHMaAMdACL7tQflD2V+6/8KNcY8s6DYtWLgpJP5lA==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/matcher/-/matcher-1.1.1.tgz", + "integrity": "sha512-+BmqxWIubKTRKNWx/ahnCkk3mG8m7OturVlqq6HiojGJTd5hVYbgZm6WzcYPCoB+KBT4Vd6R7WSRG2OADNaCjg==", "dev": true, "requires": { "escape-string-regexp": "^1.0.4" @@ -8185,9 +7883,9 @@ "dev": true }, "moment": { - "version": "2.22.1", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.1.tgz", - "integrity": "sha512-shJkRTSebXvsVqk56I+lkb2latjBs8I+pc2TzWc545y2iFnSjm7Wg0QMh+ZWcdSLQyGEau5jI8ocnmkyTgr9YQ==", + "version": "2.22.2", + "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz", + "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=", "dev": true }, "ms": { @@ -8239,16 +7937,15 @@ "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==" }, "nanomatch": { - "version": "1.2.9", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.9.tgz", - "integrity": "sha512-n8R9bS8yQ6eSXaV6jHUpKzD8gLsin02w1HSFiegwrs9E098Ylhw5jdyKPaYqvHknHaSCKTPp7C8dGCQ0q9koXA==", + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", "requires": { "arr-diff": "^4.0.0", "array-unique": "^0.3.2", "define-property": "^2.0.2", "extend-shallow": "^3.0.2", "fragment-cache": "^0.2.1", - "is-odd": "^2.0.0", "is-windows": "^1.0.2", "kind-of": "^6.0.2", "object.pick": "^1.3.0", @@ -8276,9 +7973,9 @@ "dev": true }, "nise": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/nise/-/nise-1.3.3.tgz", - "integrity": "sha512-v1J/FLUB9PfGqZLGDBhQqODkbLotP0WtLo9R4EJY2PPu5f5Xg4o0rA8FDlmrjFSv9vBBKcfnOSpfYYuu5RTHqg==", + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/nise/-/nise-1.4.2.tgz", + "integrity": "sha512-BxH/DxoQYYdhKgVAfqVy4pzXRZELHOIewzoesxpjYvpU+7YOalQhGNPf7wAx8pLrTNPrHRDlLOkAl8UI0ZpXjw==", "dev": true, "requires": { "@sinonjs/formatio": "^2.0.0", @@ -8384,8 +8081,7 @@ "dependencies": { "align-text": { "version": "0.1.4", - "resolved": false, - "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "bundled": true, "dev": true, "requires": { "kind-of": "^3.0.2", @@ -8395,20 +8091,17 @@ }, "amdefine": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "bundled": true, "dev": true }, "ansi-regex": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "bundled": true, "dev": true }, "append-transform": { "version": "0.4.0", - "resolved": false, - "integrity": "sha1-126/jKlNJ24keja61EpLdKthGZE=", + "bundled": true, "dev": true, "requires": { "default-require-extensions": "^1.0.0" @@ -8416,68 +8109,57 @@ }, "archy": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", + "bundled": true, "dev": true }, "arr-diff": { "version": "4.0.0", - "resolved": false, - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", + "bundled": true, "dev": true }, "arr-flatten": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-NgSLv/TntH4TZkQxbJlmnqWukfE=", + "bundled": true, "dev": true }, "arr-union": { "version": "3.1.0", - "resolved": false, - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", + "bundled": true, "dev": true }, "array-unique": { "version": "0.3.2", - "resolved": false, - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", + "bundled": true, "dev": true }, "arrify": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", + "bundled": true, "dev": true }, "assign-symbols": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", + "bundled": true, "dev": true }, "async": { "version": "1.5.2", - "resolved": false, - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "bundled": true, "dev": true }, "atob": { "version": "2.1.1", - "resolved": false, - "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=", + "bundled": true, "dev": true }, "balanced-match": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "bundled": true, "dev": true }, "base": { "version": "0.11.2", - "resolved": false, - "integrity": "sha1-e95c7RRbbVUakNuH+DxVi060io8=", + "bundled": true, "dev": true, "requires": { "cache-base": "^1.0.1", @@ -8491,8 +8173,7 @@ "dependencies": { "define-property": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "bundled": true, "dev": true, "requires": { "is-descriptor": "^1.0.0" @@ -8500,8 +8181,7 @@ }, "is-accessor-descriptor": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", + "bundled": true, "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8509,8 +8189,7 @@ }, "is-data-descriptor": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", + "bundled": true, "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8518,8 +8197,7 @@ }, "is-descriptor": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", + "bundled": true, "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -8529,16 +8207,14 @@ }, "kind-of": { "version": "6.0.2", - "resolved": false, - "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", + "bundled": true, "dev": true } } }, "brace-expansion": { "version": "1.1.11", - "resolved": false, - "integrity": "sha1-PH/L9SnYcibz0vUrlm/1Jx60Qd0=", + "bundled": true, "dev": true, "requires": { "balanced-match": "^1.0.0", @@ -8547,8 +8223,7 @@ }, "braces": { "version": "2.3.2", - "resolved": false, - "integrity": "sha1-WXn9PxTNUxVl5fot8av/8d+u5yk=", + "bundled": true, "dev": true, "requires": { "arr-flatten": "^1.1.0", @@ -8565,8 +8240,7 @@ "dependencies": { "extend-shallow": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "bundled": true, "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -8576,14 +8250,12 @@ }, "builtin-modules": { "version": "1.1.1", - "resolved": false, - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "bundled": true, "dev": true }, "cache-base": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-Cn9GQWgxyLZi7jb+TnxZ129marI=", + "bundled": true, "dev": true, "requires": { "collection-visit": "^1.0.0", @@ -8599,8 +8271,7 @@ }, "caching-transform": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-bb2y8g+Nj7znnz6U6dF0Lc31wKE=", + "bundled": true, "dev": true, "requires": { "md5-hex": "^1.2.0", @@ -8610,15 +8281,13 @@ }, "camelcase": { "version": "1.2.1", - "resolved": false, - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "bundled": true, "dev": true, "optional": true }, "center-align": { "version": "0.1.3", - "resolved": false, - "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -8628,8 +8297,7 @@ }, "class-utils": { "version": "0.3.6", - "resolved": false, - "integrity": "sha1-+TNprouafOAv1B+q0MqDAzGQxGM=", + "bundled": true, "dev": true, "requires": { "arr-union": "^3.1.0", @@ -8640,8 +8308,7 @@ "dependencies": { "define-property": { "version": "0.2.5", - "resolved": false, - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "bundled": true, "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -8651,8 +8318,7 @@ }, "cliui": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -8663,8 +8329,7 @@ "dependencies": { "wordwrap": { "version": "0.0.2", - "resolved": false, - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", + "bundled": true, "dev": true, "optional": true } @@ -8672,14 +8337,12 @@ }, "code-point-at": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "bundled": true, "dev": true }, "collection-visit": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "bundled": true, "dev": true, "requires": { "map-visit": "^1.0.0", @@ -8688,38 +8351,32 @@ }, "commondir": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "bundled": true, "dev": true }, "component-emitter": { "version": "1.2.1", - "resolved": false, - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "bundled": true, "dev": true }, "concat-map": { "version": "0.0.1", - "resolved": false, - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "bundled": true, "dev": true }, "convert-source-map": { "version": "1.5.1", - "resolved": false, - "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", + "bundled": true, "dev": true }, "copy-descriptor": { "version": "0.1.1", - "resolved": false, - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", + "bundled": true, "dev": true }, "cross-spawn": { "version": "4.0.2", - "resolved": false, - "integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=", + "bundled": true, "dev": true, "requires": { "lru-cache": "^4.0.1", @@ -8728,8 +8385,7 @@ }, "debug": { "version": "3.1.0", - "resolved": false, - "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=", + "bundled": true, "dev": true, "requires": { "ms": "2.0.0" @@ -8737,26 +8393,22 @@ }, "debug-log": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-IwdjLUwEOCuN+KMvcLiVBG1SdF8=", + "bundled": true, "dev": true }, "decamelize": { "version": "1.2.0", - "resolved": false, - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "bundled": true, "dev": true }, "decode-uri-component": { "version": "0.2.0", - "resolved": false, - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=", + "bundled": true, "dev": true }, "default-require-extensions": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-836hXT4T/9m0N9M+GnW1+5eHTLg=", + "bundled": true, "dev": true, "requires": { "strip-bom": "^2.0.0" @@ -8764,8 +8416,7 @@ }, "define-property": { "version": "2.0.2", - "resolved": false, - "integrity": "sha1-1Flono1lS6d+AqgX+HENcCyxbp0=", + "bundled": true, "dev": true, "requires": { "is-descriptor": "^1.0.2", @@ -8774,8 +8425,7 @@ "dependencies": { "is-accessor-descriptor": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", + "bundled": true, "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8783,8 +8433,7 @@ }, "is-data-descriptor": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", + "bundled": true, "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8792,8 +8441,7 @@ }, "is-descriptor": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", + "bundled": true, "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -8803,16 +8451,14 @@ }, "kind-of": { "version": "6.0.2", - "resolved": false, - "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", + "bundled": true, "dev": true } } }, "error-ex": { "version": "1.3.1", - "resolved": false, - "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "bundled": true, "dev": true, "requires": { "is-arrayish": "^0.2.1" @@ -8820,8 +8466,7 @@ }, "execa": { "version": "0.7.0", - "resolved": false, - "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", + "bundled": true, "dev": true, "requires": { "cross-spawn": "^5.0.1", @@ -8835,8 +8480,7 @@ "dependencies": { "cross-spawn": { "version": "5.1.0", - "resolved": false, - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "bundled": true, "dev": true, "requires": { "lru-cache": "^4.0.1", @@ -8848,8 +8492,7 @@ }, "expand-brackets": { "version": "2.1.4", - "resolved": false, - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "bundled": true, "dev": true, "requires": { "debug": "^2.3.3", @@ -8863,8 +8506,7 @@ "dependencies": { "debug": { "version": "2.6.9", - "resolved": false, - "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=", + "bundled": true, "dev": true, "requires": { "ms": "2.0.0" @@ -8872,8 +8514,7 @@ }, "define-property": { "version": "0.2.5", - "resolved": false, - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "bundled": true, "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -8881,8 +8522,7 @@ }, "extend-shallow": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "bundled": true, "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -8892,8 +8532,7 @@ }, "extend-shallow": { "version": "3.0.2", - "resolved": false, - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", + "bundled": true, "dev": true, "requires": { "assign-symbols": "^1.0.0", @@ -8902,8 +8541,7 @@ "dependencies": { "is-extendable": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-p0cPnkJnM9gb2B4RVSZOOjUHyrQ=", + "bundled": true, "dev": true, "requires": { "is-plain-object": "^2.0.4" @@ -8913,8 +8551,7 @@ }, "extglob": { "version": "2.0.4", - "resolved": false, - "integrity": "sha1-rQD+TcYSqSMuhxhxHcXLWrAoVUM=", + "bundled": true, "dev": true, "requires": { "array-unique": "^0.3.2", @@ -8929,8 +8566,7 @@ "dependencies": { "define-property": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "bundled": true, "dev": true, "requires": { "is-descriptor": "^1.0.0" @@ -8938,8 +8574,7 @@ }, "extend-shallow": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "bundled": true, "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -8947,8 +8582,7 @@ }, "is-accessor-descriptor": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", + "bundled": true, "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8956,8 +8590,7 @@ }, "is-data-descriptor": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", + "bundled": true, "dev": true, "requires": { "kind-of": "^6.0.0" @@ -8965,8 +8598,7 @@ }, "is-descriptor": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", + "bundled": true, "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -8976,16 +8608,14 @@ }, "kind-of": { "version": "6.0.2", - "resolved": false, - "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", + "bundled": true, "dev": true } } }, "fill-range": { "version": "4.0.0", - "resolved": false, - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", + "bundled": true, "dev": true, "requires": { "extend-shallow": "^2.0.1", @@ -8996,8 +8626,7 @@ "dependencies": { "extend-shallow": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "bundled": true, "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -9007,8 +8636,7 @@ }, "find-cache-dir": { "version": "0.1.1", - "resolved": false, - "integrity": "sha1-yN765XyKUqinhPnjHFfHQumToLk=", + "bundled": true, "dev": true, "requires": { "commondir": "^1.0.1", @@ -9018,8 +8646,7 @@ }, "find-up": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "bundled": true, "dev": true, "requires": { "locate-path": "^2.0.0" @@ -9027,14 +8654,12 @@ }, "for-in": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "bundled": true, "dev": true }, "foreground-child": { "version": "1.5.6", - "resolved": false, - "integrity": "sha1-T9ca0t/elnibmApcCilZN8svXOk=", + "bundled": true, "dev": true, "requires": { "cross-spawn": "^4", @@ -9043,8 +8668,7 @@ }, "fragment-cache": { "version": "0.2.1", - "resolved": false, - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", + "bundled": true, "dev": true, "requires": { "map-cache": "^0.2.2" @@ -9052,32 +8676,27 @@ }, "fs.realpath": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "bundled": true, "dev": true }, "get-caller-file": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", + "bundled": true, "dev": true }, "get-stream": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "bundled": true, "dev": true }, "get-value": { "version": "2.0.6", - "resolved": false, - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "bundled": true, "dev": true }, "glob": { "version": "7.1.2", - "resolved": false, - "integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=", + "bundled": true, "dev": true, "requires": { "fs.realpath": "^1.0.0", @@ -9090,14 +8709,12 @@ }, "graceful-fs": { "version": "4.1.11", - "resolved": false, - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", + "bundled": true, "dev": true }, "handlebars": { "version": "4.0.11", - "resolved": false, - "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", + "bundled": true, "dev": true, "requires": { "async": "^1.4.0", @@ -9108,8 +8725,7 @@ "dependencies": { "source-map": { "version": "0.4.4", - "resolved": false, - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", + "bundled": true, "dev": true, "requires": { "amdefine": ">=0.0.4" @@ -9119,8 +8735,7 @@ }, "has-value": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "bundled": true, "dev": true, "requires": { "get-value": "^2.0.6", @@ -9130,8 +8745,7 @@ }, "has-values": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "bundled": true, "dev": true, "requires": { "is-number": "^3.0.0", @@ -9140,8 +8754,7 @@ "dependencies": { "kind-of": { "version": "4.0.0", - "resolved": false, - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "bundled": true, "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -9151,20 +8764,17 @@ }, "hosted-git-info": { "version": "2.6.0", - "resolved": false, - "integrity": "sha1-IyNbKasjDFdqqw1PE/wEawsDgiI=", + "bundled": true, "dev": true }, "imurmurhash": { "version": "0.1.4", - "resolved": false, - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "bundled": true, "dev": true }, "inflight": { "version": "1.0.6", - "resolved": false, - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "bundled": true, "dev": true, "requires": { "once": "^1.3.0", @@ -9173,20 +8783,17 @@ }, "inherits": { "version": "2.0.3", - "resolved": false, - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "bundled": true, "dev": true }, "invert-kv": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "bundled": true, "dev": true }, "is-accessor-descriptor": { "version": "0.1.6", - "resolved": false, - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "bundled": true, "dev": true, "requires": { "kind-of": "^3.0.2" @@ -9194,20 +8801,17 @@ }, "is-arrayish": { "version": "0.2.1", - "resolved": false, - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "bundled": true, "dev": true }, "is-buffer": { "version": "1.1.6", - "resolved": false, - "integrity": "sha1-76ouqdqg16suoTqXsritUf776L4=", + "bundled": true, "dev": true }, "is-builtin-module": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", + "bundled": true, "dev": true, "requires": { "builtin-modules": "^1.0.0" @@ -9215,8 +8819,7 @@ }, "is-data-descriptor": { "version": "0.1.4", - "resolved": false, - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "bundled": true, "dev": true, "requires": { "kind-of": "^3.0.2" @@ -9224,8 +8827,7 @@ }, "is-descriptor": { "version": "0.1.6", - "resolved": false, - "integrity": "sha1-Nm2CQN3kh8pRgjsaufB6EKeCUco=", + "bundled": true, "dev": true, "requires": { "is-accessor-descriptor": "^0.1.6", @@ -9235,28 +8837,24 @@ "dependencies": { "kind-of": { "version": "5.1.0", - "resolved": false, - "integrity": "sha1-cpyR4thXt6QZofmqZWhcTDP1hF0=", + "bundled": true, "dev": true } } }, "is-extendable": { "version": "0.1.1", - "resolved": false, - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "bundled": true, "dev": true }, "is-fullwidth-code-point": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "bundled": true, "dev": true }, "is-number": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "bundled": true, "dev": true, "requires": { "kind-of": "^3.0.2" @@ -9264,8 +8862,7 @@ }, "is-odd": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-dkZiRnH9fqVYzNmieVGC8pWPGyQ=", + "bundled": true, "dev": true, "requires": { "is-number": "^4.0.0" @@ -9273,16 +8870,14 @@ "dependencies": { "is-number": { "version": "4.0.0", - "resolved": false, - "integrity": "sha1-ACbjf1RU1z41bf5lZGmYZ8an8P8=", + "bundled": true, "dev": true } } }, "is-plain-object": { "version": "2.0.4", - "resolved": false, - "integrity": "sha1-LBY7P6+xtgbZ0Xko8FwqHDjgdnc=", + "bundled": true, "dev": true, "requires": { "isobject": "^3.0.1" @@ -9290,50 +8885,42 @@ }, "is-stream": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "bundled": true, "dev": true }, "is-utf8": { "version": "0.2.1", - "resolved": false, - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "bundled": true, "dev": true }, "is-windows": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-0YUOuXkezRjmGCzhKjDzlmNLsZ0=", + "bundled": true, "dev": true }, "isarray": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "bundled": true, "dev": true }, "isexe": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "bundled": true, "dev": true }, "isobject": { "version": "3.0.1", - "resolved": false, - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "bundled": true, "dev": true }, "istanbul-lib-coverage": { "version": "1.2.0", - "resolved": false, - "integrity": "sha1-99jy5CuX43/nlhFMsPnWi146Q0E=", + "bundled": true, "dev": true }, "istanbul-lib-hook": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-hTjZcDcss3FtU+VVI91UtVeo2Js=", + "bundled": true, "dev": true, "requires": { "append-transform": "^0.4.0" @@ -9341,8 +8928,7 @@ }, "istanbul-lib-report": { "version": "1.1.3", - "resolved": false, - "integrity": "sha1-LfEhiMD6d5kMDSF20tC6M5QYglk=", + "bundled": true, "dev": true, "requires": { "istanbul-lib-coverage": "^1.1.2", @@ -9353,14 +8939,12 @@ "dependencies": { "has-flag": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-nZ55MWXOAXoA8AQYxD+UKnsdEfo=", + "bundled": true, "dev": true }, "supports-color": { "version": "3.2.3", - "resolved": false, - "integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=", + "bundled": true, "dev": true, "requires": { "has-flag": "^1.0.0" @@ -9370,8 +8954,7 @@ }, "istanbul-lib-source-maps": { "version": "1.2.5", - "resolved": false, - "integrity": "sha1-/+a+Tnq4bTYD5CkNVJkLFFBvybE=", + "bundled": true, "dev": true, "requires": { "debug": "^3.1.0", @@ -9383,8 +8966,7 @@ }, "istanbul-reports": { "version": "1.4.1", - "resolved": false, - "integrity": "sha1-Ty6OkoqnoF0dpsQn1AmLJlXsczQ=", + "bundled": true, "dev": true, "requires": { "handlebars": "^4.0.3" @@ -9392,8 +8974,7 @@ }, "kind-of": { "version": "3.2.2", - "resolved": false, - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "bundled": true, "dev": true, "requires": { "is-buffer": "^1.1.5" @@ -9401,15 +8982,13 @@ }, "lazy-cache": { "version": "1.0.4", - "resolved": false, - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", + "bundled": true, "dev": true, "optional": true }, "lcid": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "bundled": true, "dev": true, "requires": { "invert-kv": "^1.0.0" @@ -9417,8 +8996,7 @@ }, "load-json-file": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "bundled": true, "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -9430,8 +9008,7 @@ }, "locate-path": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "bundled": true, "dev": true, "requires": { "p-locate": "^2.0.0", @@ -9440,22 +9017,19 @@ "dependencies": { "path-exists": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "bundled": true, "dev": true } } }, "longest": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "bundled": true, "dev": true }, "lru-cache": { "version": "4.1.3", - "resolved": false, - "integrity": "sha1-oRdc80lt/IQ2wVbDNLSVWZK85pw=", + "bundled": true, "dev": true, "requires": { "pseudomap": "^1.0.2", @@ -9464,14 +9038,12 @@ }, "map-cache": { "version": "0.2.2", - "resolved": false, - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "bundled": true, "dev": true }, "map-visit": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "bundled": true, "dev": true, "requires": { "object-visit": "^1.0.0" @@ -9479,8 +9051,7 @@ }, "md5-hex": { "version": "1.3.0", - "resolved": false, - "integrity": "sha1-0sSv6YPENwZiF5uMrRRSGRNQRsQ=", + "bundled": true, "dev": true, "requires": { "md5-o-matic": "^0.1.1" @@ -9488,14 +9059,12 @@ }, "md5-o-matic": { "version": "0.1.1", - "resolved": false, - "integrity": "sha1-givM1l4RfFFPqxdrJZRdVBAKA8M=", + "bundled": true, "dev": true }, "mem": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", + "bundled": true, "dev": true, "requires": { "mimic-fn": "^1.0.0" @@ -9503,8 +9072,7 @@ }, "merge-source-map": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-L93n5gIJOfcJBqaPLXrmheTIxkY=", + "bundled": true, "dev": true, "requires": { "source-map": "^0.6.1" @@ -9512,16 +9080,14 @@ "dependencies": { "source-map": { "version": "0.6.1", - "resolved": false, - "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=", + "bundled": true, "dev": true } } }, "micromatch": { "version": "3.1.10", - "resolved": false, - "integrity": "sha1-cIWbyVyYQJUvNZoGij/En57PrCM=", + "bundled": true, "dev": true, "requires": { "arr-diff": "^4.0.0", @@ -9541,22 +9107,19 @@ "dependencies": { "kind-of": { "version": "6.0.2", - "resolved": false, - "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", + "bundled": true, "dev": true } } }, "mimic-fn": { "version": "1.2.0", - "resolved": false, - "integrity": "sha1-ggyGo5M0ZA6ZUWkovQP8qIBX0CI=", + "bundled": true, "dev": true }, "minimatch": { "version": "3.0.4", - "resolved": false, - "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", + "bundled": true, "dev": true, "requires": { "brace-expansion": "^1.1.7" @@ -9564,14 +9127,12 @@ }, "minimist": { "version": "0.0.8", - "resolved": false, - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", + "bundled": true, "dev": true }, "mixin-deep": { "version": "1.3.1", - "resolved": false, - "integrity": "sha1-pJ5yaNzhoNlpjkUybFYm3zVD0P4=", + "bundled": true, "dev": true, "requires": { "for-in": "^1.0.2", @@ -9580,8 +9141,7 @@ "dependencies": { "is-extendable": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-p0cPnkJnM9gb2B4RVSZOOjUHyrQ=", + "bundled": true, "dev": true, "requires": { "is-plain-object": "^2.0.4" @@ -9591,8 +9151,7 @@ }, "mkdirp": { "version": "0.5.1", - "resolved": false, - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "bundled": true, "dev": true, "requires": { "minimist": "0.0.8" @@ -9600,14 +9159,12 @@ }, "ms": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "bundled": true, "dev": true }, "nanomatch": { "version": "1.2.9", - "resolved": false, - "integrity": "sha1-h59xUMstq3pHElkGbBBO7m4Pp8I=", + "bundled": true, "dev": true, "requires": { "arr-diff": "^4.0.0", @@ -9626,16 +9183,14 @@ "dependencies": { "kind-of": { "version": "6.0.2", - "resolved": false, - "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", + "bundled": true, "dev": true } } }, "normalize-package-data": { "version": "2.4.0", - "resolved": false, - "integrity": "sha1-EvlaMH1YNSB1oEkHuErIvpisAS8=", + "bundled": true, "dev": true, "requires": { "hosted-git-info": "^2.1.4", @@ -9646,8 +9201,7 @@ }, "npm-run-path": { "version": "2.0.2", - "resolved": false, - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "bundled": true, "dev": true, "requires": { "path-key": "^2.0.0" @@ -9655,20 +9209,17 @@ }, "number-is-nan": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "bundled": true, "dev": true }, "object-assign": { "version": "4.1.1", - "resolved": false, - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "bundled": true, "dev": true }, "object-copy": { "version": "0.1.0", - "resolved": false, - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "bundled": true, "dev": true, "requires": { "copy-descriptor": "^0.1.0", @@ -9678,8 +9229,7 @@ "dependencies": { "define-property": { "version": "0.2.5", - "resolved": false, - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "bundled": true, "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -9689,8 +9239,7 @@ }, "object-visit": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "bundled": true, "dev": true, "requires": { "isobject": "^3.0.0" @@ -9698,8 +9247,7 @@ }, "object.pick": { "version": "1.3.0", - "resolved": false, - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "bundled": true, "dev": true, "requires": { "isobject": "^3.0.1" @@ -9707,8 +9255,7 @@ }, "once": { "version": "1.4.0", - "resolved": false, - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "bundled": true, "dev": true, "requires": { "wrappy": "1" @@ -9716,8 +9263,7 @@ }, "optimist": { "version": "0.6.1", - "resolved": false, - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", + "bundled": true, "dev": true, "requires": { "minimist": "~0.0.1", @@ -9726,14 +9272,12 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "bundled": true, "dev": true }, "os-locale": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-QrwpAKa1uL0XN2yOiCtlr8zyS/I=", + "bundled": true, "dev": true, "requires": { "execa": "^0.7.0", @@ -9743,14 +9287,12 @@ }, "p-finally": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "bundled": true, "dev": true }, "p-limit": { "version": "1.2.0", - "resolved": false, - "integrity": "sha1-DpK2vty1nwIsE9DxlJ3ILRWQnxw=", + "bundled": true, "dev": true, "requires": { "p-try": "^1.0.0" @@ -9758,8 +9300,7 @@ }, "p-locate": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "bundled": true, "dev": true, "requires": { "p-limit": "^1.1.0" @@ -9767,14 +9308,12 @@ }, "p-try": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "bundled": true, "dev": true }, "parse-json": { "version": "2.2.0", - "resolved": false, - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "bundled": true, "dev": true, "requires": { "error-ex": "^1.2.0" @@ -9782,14 +9321,12 @@ }, "pascalcase": { "version": "0.1.1", - "resolved": false, - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "bundled": true, "dev": true }, "path-exists": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "bundled": true, "dev": true, "requires": { "pinkie-promise": "^2.0.0" @@ -9797,26 +9334,22 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "bundled": true, "dev": true }, "path-key": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "bundled": true, "dev": true }, "path-parse": { "version": "1.0.5", - "resolved": false, - "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "bundled": true, "dev": true }, "path-type": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "bundled": true, "dev": true, "requires": { "graceful-fs": "^4.1.2", @@ -9826,20 +9359,17 @@ }, "pify": { "version": "2.3.0", - "resolved": false, - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "bundled": true, "dev": true }, "pinkie": { "version": "2.0.4", - "resolved": false, - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "bundled": true, "dev": true }, "pinkie-promise": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "bundled": true, "dev": true, "requires": { "pinkie": "^2.0.0" @@ -9847,8 +9377,7 @@ }, "pkg-dir": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", + "bundled": true, "dev": true, "requires": { "find-up": "^1.0.0" @@ -9856,8 +9385,7 @@ "dependencies": { "find-up": { "version": "1.1.2", - "resolved": false, - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "bundled": true, "dev": true, "requires": { "path-exists": "^2.0.0", @@ -9868,20 +9396,17 @@ }, "posix-character-classes": { "version": "0.1.1", - "resolved": false, - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "bundled": true, "dev": true }, "pseudomap": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "bundled": true, "dev": true }, "read-pkg": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "bundled": true, "dev": true, "requires": { "load-json-file": "^1.0.0", @@ -9891,8 +9416,7 @@ }, "read-pkg-up": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "bundled": true, "dev": true, "requires": { "find-up": "^1.0.0", @@ -9901,8 +9425,7 @@ "dependencies": { "find-up": { "version": "1.1.2", - "resolved": false, - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "bundled": true, "dev": true, "requires": { "path-exists": "^2.0.0", @@ -9913,8 +9436,7 @@ }, "regex-not": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-H07OJ+ALC2XgJHpoEOaoXYOldSw=", + "bundled": true, "dev": true, "requires": { "extend-shallow": "^3.0.2", @@ -9923,50 +9445,42 @@ }, "repeat-element": { "version": "1.1.2", - "resolved": false, - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "bundled": true, "dev": true }, "repeat-string": { "version": "1.6.1", - "resolved": false, - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "bundled": true, "dev": true }, "require-directory": { "version": "2.1.1", - "resolved": false, - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "bundled": true, "dev": true }, "require-main-filename": { "version": "1.0.1", - "resolved": false, - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "bundled": true, "dev": true }, "resolve-from": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-lICrIOlP+h2egKgEx+oUdhGWa1c=", + "bundled": true, "dev": true }, "resolve-url": { "version": "0.2.1", - "resolved": false, - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "bundled": true, "dev": true }, "ret": { "version": "0.1.15", - "resolved": false, - "integrity": "sha1-uKSCXVvbH8P29Twrwz+BOIaBx7w=", + "bundled": true, "dev": true }, "right-align": { "version": "0.1.3", - "resolved": false, - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -9975,8 +9489,7 @@ }, "rimraf": { "version": "2.6.2", - "resolved": false, - "integrity": "sha1-LtgVDSShbqhlHm1u8PR8QVjOejY=", + "bundled": true, "dev": true, "requires": { "glob": "^7.0.5" @@ -9984,8 +9497,7 @@ }, "safe-regex": { "version": "1.1.0", - "resolved": false, - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "bundled": true, "dev": true, "requires": { "ret": "~0.1.10" @@ -9993,20 +9505,17 @@ }, "semver": { "version": "5.5.0", - "resolved": false, - "integrity": "sha1-3Eu8emyp2Rbe5dQ1FvAJK1j3uKs=", + "bundled": true, "dev": true }, "set-blocking": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "bundled": true, "dev": true }, "set-value": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-ca5KiPD+77v1LR6mBPP7MV67YnQ=", + "bundled": true, "dev": true, "requires": { "extend-shallow": "^2.0.1", @@ -10017,8 +9526,7 @@ "dependencies": { "extend-shallow": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "bundled": true, "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -10028,8 +9536,7 @@ }, "shebang-command": { "version": "1.2.0", - "resolved": false, - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "bundled": true, "dev": true, "requires": { "shebang-regex": "^1.0.0" @@ -10037,26 +9544,22 @@ }, "shebang-regex": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "bundled": true, "dev": true }, "signal-exit": { "version": "3.0.2", - "resolved": false, - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "bundled": true, "dev": true }, "slide": { "version": "1.1.6", - "resolved": false, - "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=", + "bundled": true, "dev": true }, "snapdragon": { "version": "0.8.2", - "resolved": false, - "integrity": "sha1-ZJIufFZbDhQgS6GqfWlkJ40lGC0=", + "bundled": true, "dev": true, "requires": { "base": "^0.11.1", @@ -10071,8 +9574,7 @@ "dependencies": { "debug": { "version": "2.6.9", - "resolved": false, - "integrity": "sha1-XRKFFd8TT/Mn6QpMk/Tgd6U2NB8=", + "bundled": true, "dev": true, "requires": { "ms": "2.0.0" @@ -10080,8 +9582,7 @@ }, "define-property": { "version": "0.2.5", - "resolved": false, - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "bundled": true, "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -10089,8 +9590,7 @@ }, "extend-shallow": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "bundled": true, "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -10100,8 +9600,7 @@ }, "snapdragon-node": { "version": "2.1.1", - "resolved": false, - "integrity": "sha1-bBdfhv8UvbByRWPo88GwIaKGhTs=", + "bundled": true, "dev": true, "requires": { "define-property": "^1.0.0", @@ -10111,8 +9610,7 @@ "dependencies": { "define-property": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "bundled": true, "dev": true, "requires": { "is-descriptor": "^1.0.0" @@ -10120,8 +9618,7 @@ }, "is-accessor-descriptor": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-FpwvbT3x+ZJhgHI2XJsOofaHhlY=", + "bundled": true, "dev": true, "requires": { "kind-of": "^6.0.0" @@ -10129,8 +9626,7 @@ }, "is-data-descriptor": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-2Eh2Mh0Oet0DmQQGq7u9NrqSaMc=", + "bundled": true, "dev": true, "requires": { "kind-of": "^6.0.0" @@ -10138,8 +9634,7 @@ }, "is-descriptor": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-OxWXRqZmBLBPjIFSS6NlxfFNhuw=", + "bundled": true, "dev": true, "requires": { "is-accessor-descriptor": "^1.0.0", @@ -10149,16 +9644,14 @@ }, "kind-of": { "version": "6.0.2", - "resolved": false, - "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", + "bundled": true, "dev": true } } }, "snapdragon-util": { "version": "3.0.1", - "resolved": false, - "integrity": "sha1-+VZHlIbyrNeXAGk/b3uAXkWrVuI=", + "bundled": true, "dev": true, "requires": { "kind-of": "^3.2.0" @@ -10166,14 +9659,12 @@ }, "source-map": { "version": "0.5.7", - "resolved": false, - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "bundled": true, "dev": true }, "source-map-resolve": { "version": "0.5.2", - "resolved": false, - "integrity": "sha1-cuLMNAlVQ+Q7LGKyxMENSpBU8lk=", + "bundled": true, "dev": true, "requires": { "atob": "^2.1.1", @@ -10185,14 +9676,12 @@ }, "source-map-url": { "version": "0.4.0", - "resolved": false, - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "bundled": true, "dev": true }, "spawn-wrap": { "version": "1.4.2", - "resolved": false, - "integrity": "sha1-z/WOc6giRhe2Vhq9wyWG6gyCJIw=", + "bundled": true, "dev": true, "requires": { "foreground-child": "^1.5.6", @@ -10205,8 +9694,7 @@ }, "spdx-correct": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-BaW01xU6GVvJLDxCW2nzsqlSTII=", + "bundled": true, "dev": true, "requires": { "spdx-expression-parse": "^3.0.0", @@ -10215,14 +9703,12 @@ }, "spdx-exceptions": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-LHrmEFbHFKW5ubKyr30xHvXHj+k=", + "bundled": true, "dev": true }, "spdx-expression-parse": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-meEZt6XaAOBUkcn6M4t5BII7QdA=", + "bundled": true, "dev": true, "requires": { "spdx-exceptions": "^2.1.0", @@ -10231,14 +9717,12 @@ }, "spdx-license-ids": { "version": "3.0.0", - "resolved": false, - "integrity": "sha1-enzShHDMbToc/m1miG9rxDDTrIc=", + "bundled": true, "dev": true }, "split-string": { "version": "3.1.0", - "resolved": false, - "integrity": "sha1-fLCd2jqGWFcFxks5pkZgOGguj+I=", + "bundled": true, "dev": true, "requires": { "extend-shallow": "^3.0.0" @@ -10246,8 +9730,7 @@ }, "static-extend": { "version": "0.1.2", - "resolved": false, - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "bundled": true, "dev": true, "requires": { "define-property": "^0.2.5", @@ -10256,8 +9739,7 @@ "dependencies": { "define-property": { "version": "0.2.5", - "resolved": false, - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "bundled": true, "dev": true, "requires": { "is-descriptor": "^0.1.0" @@ -10267,8 +9749,7 @@ }, "string-width": { "version": "2.1.1", - "resolved": false, - "integrity": "sha1-q5Pyeo3BPSjKyBXEYhQ6bZASrp4=", + "bundled": true, "dev": true, "requires": { "is-fullwidth-code-point": "^2.0.0", @@ -10277,8 +9758,7 @@ }, "strip-ansi": { "version": "4.0.0", - "resolved": false, - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "bundled": true, "dev": true, "requires": { "ansi-regex": "^3.0.0" @@ -10286,8 +9766,7 @@ }, "strip-bom": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "bundled": true, "dev": true, "requires": { "is-utf8": "^0.2.0" @@ -10295,14 +9774,12 @@ }, "strip-eof": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "bundled": true, "dev": true }, "test-exclude": { "version": "4.2.1", - "resolved": false, - "integrity": "sha1-36Ii8DSAvKaSB8pyizfXS0X3JPo=", + "bundled": true, "dev": true, "requires": { "arrify": "^1.0.1", @@ -10314,8 +9791,7 @@ }, "to-object-path": { "version": "0.3.0", - "resolved": false, - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "bundled": true, "dev": true, "requires": { "kind-of": "^3.0.2" @@ -10323,8 +9799,7 @@ }, "to-regex": { "version": "3.0.2", - "resolved": false, - "integrity": "sha1-E8/dmzNlUvMLUfM6iuG0Knp1mc4=", + "bundled": true, "dev": true, "requires": { "define-property": "^2.0.2", @@ -10335,8 +9810,7 @@ }, "to-regex-range": { "version": "2.1.1", - "resolved": false, - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "bundled": true, "dev": true, "requires": { "is-number": "^3.0.0", @@ -10345,8 +9819,7 @@ }, "uglify-js": { "version": "2.8.29", - "resolved": false, - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -10357,8 +9830,7 @@ "dependencies": { "yargs": { "version": "3.10.0", - "resolved": false, - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "bundled": true, "dev": true, "optional": true, "requires": { @@ -10372,15 +9844,13 @@ }, "uglify-to-browserify": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", + "bundled": true, "dev": true, "optional": true }, "union-value": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "bundled": true, "dev": true, "requires": { "arr-union": "^3.1.0", @@ -10391,8 +9861,7 @@ "dependencies": { "extend-shallow": { "version": "2.0.1", - "resolved": false, - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "bundled": true, "dev": true, "requires": { "is-extendable": "^0.1.0" @@ -10400,8 +9869,7 @@ }, "set-value": { "version": "0.4.3", - "resolved": false, - "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", + "bundled": true, "dev": true, "requires": { "extend-shallow": "^2.0.1", @@ -10414,8 +9882,7 @@ }, "unset-value": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "bundled": true, "dev": true, "requires": { "has-value": "^0.3.1", @@ -10424,8 +9891,7 @@ "dependencies": { "has-value": { "version": "0.3.1", - "resolved": false, - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "bundled": true, "dev": true, "requires": { "get-value": "^2.0.3", @@ -10435,8 +9901,7 @@ "dependencies": { "isobject": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "bundled": true, "dev": true, "requires": { "isarray": "1.0.0" @@ -10446,22 +9911,19 @@ }, "has-values": { "version": "0.1.4", - "resolved": false, - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "bundled": true, "dev": true } } }, "urix": { "version": "0.1.0", - "resolved": false, - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "bundled": true, "dev": true }, "use": { "version": "3.1.0", - "resolved": false, - "integrity": "sha1-FHFr8D/f79AwQK71jYtLhfOnxUQ=", + "bundled": true, "dev": true, "requires": { "kind-of": "^6.0.2" @@ -10469,16 +9931,14 @@ "dependencies": { "kind-of": { "version": "6.0.2", - "resolved": false, - "integrity": "sha1-ARRrNqYhjmTljzqNZt5df8b20FE=", + "bundled": true, "dev": true } } }, "validate-npm-package-license": { "version": "3.0.3", - "resolved": false, - "integrity": "sha1-gWQ7y+8b3+zUYjeT3EZIlIupgzg=", + "bundled": true, "dev": true, "requires": { "spdx-correct": "^3.0.0", @@ -10487,8 +9947,7 @@ }, "which": { "version": "1.3.1", - "resolved": false, - "integrity": "sha1-pFBD1U9YBTFtqNYvn1CRjT2nCwo=", + "bundled": true, "dev": true, "requires": { "isexe": "^2.0.0" @@ -10496,27 +9955,23 @@ }, "which-module": { "version": "2.0.0", - "resolved": false, - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "bundled": true, "dev": true }, "window-size": { "version": "0.1.0", - "resolved": false, - "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", + "bundled": true, "dev": true, "optional": true }, "wordwrap": { "version": "0.0.3", - "resolved": false, - "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", + "bundled": true, "dev": true }, "wrap-ansi": { "version": "2.1.0", - "resolved": false, - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "bundled": true, "dev": true, "requires": { "string-width": "^1.0.1", @@ -10525,14 +9980,12 @@ "dependencies": { "ansi-regex": { "version": "2.1.1", - "resolved": false, - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "bundled": true, "dev": true }, "is-fullwidth-code-point": { "version": "1.0.0", - "resolved": false, - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "bundled": true, "dev": true, "requires": { "number-is-nan": "^1.0.0" @@ -10540,8 +9993,7 @@ }, "string-width": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "bundled": true, "dev": true, "requires": { "code-point-at": "^1.0.0", @@ -10551,8 +10003,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": false, - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "bundled": true, "dev": true, "requires": { "ansi-regex": "^2.0.0" @@ -10562,14 +10013,12 @@ }, "wrappy": { "version": "1.0.2", - "resolved": false, - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "bundled": true, "dev": true }, "write-file-atomic": { "version": "1.3.4", - "resolved": false, - "integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=", + "bundled": true, "dev": true, "requires": { "graceful-fs": "^4.1.11", @@ -10579,20 +10028,17 @@ }, "y18n": { "version": "3.2.1", - "resolved": false, - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "bundled": true, "dev": true }, "yallist": { "version": "2.1.2", - "resolved": false, - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "bundled": true, "dev": true }, "yargs": { "version": "11.1.0", - "resolved": false, - "integrity": "sha1-kLhpk07W6HERXqL/WLA/RyTtLXc=", + "bundled": true, "dev": true, "requires": { "cliui": "^4.0.0", @@ -10611,14 +10057,12 @@ "dependencies": { "camelcase": { "version": "4.1.0", - "resolved": false, - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "bundled": true, "dev": true }, "cliui": { "version": "4.1.0", - "resolved": false, - "integrity": "sha1-NIQi2+gtgAswIu709qwQvy5NG0k=", + "bundled": true, "dev": true, "requires": { "string-width": "^2.1.1", @@ -10628,8 +10072,7 @@ }, "yargs-parser": { "version": "9.0.2", - "resolved": false, - "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", + "bundled": true, "dev": true, "requires": { "camelcase": "^4.1.0" @@ -10639,8 +10082,7 @@ }, "yargs-parser": { "version": "8.1.0", - "resolved": false, - "integrity": "sha1-8TdqM7Ziml0GN4KUTacyYx6WaVA=", + "bundled": true, "dev": true, "requires": { "camelcase": "^4.1.0" @@ -10648,8 +10090,7 @@ "dependencies": { "camelcase": { "version": "4.1.0", - "resolved": false, - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "bundled": true, "dev": true } } @@ -10697,9 +10138,9 @@ } }, "object-keys": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.11.tgz", - "integrity": "sha1-xUYBd4rVYPEULODgG8yotW0TQm0=" + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", + "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==" }, "object-visit": { "version": "1.0.1", @@ -10855,9 +10296,9 @@ "dev": true }, "p-limit": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.2.0.tgz", - "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", + "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "dev": true, "requires": { "p-try": "^1.0.0" @@ -11130,9 +10571,9 @@ "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" }, "postcss": { - "version": "6.0.22", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.22.tgz", - "integrity": "sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA==", + "version": "6.0.23", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", + "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", "dev": true, "requires": { "chalk": "^2.4.1", @@ -11149,32 +10590,32 @@ } }, "power-assert": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/power-assert/-/power-assert-1.5.0.tgz", - "integrity": "sha512-WaWSw+Ts283o6dzxW1BxIxoaHok7aSSGx4SaR6dW62Pk31ynv9DERDieuZpPYv5XaJ+H+zdcOaJQ+PvlasAOVw==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/power-assert/-/power-assert-1.6.0.tgz", + "integrity": "sha512-nDb6a+p2C7Wj8Y2zmFtLpuv+xobXz4+bzT5s7dr0nn71tLozn7nRMQqzwbefzwZN5qOm0N7Cxhw4kXP75xboKA==", "requires": { "define-properties": "^1.1.2", - "empower": "^1.2.3", - "power-assert-formatter": "^1.3.1", + "empower": "^1.3.0", + "power-assert-formatter": "^1.4.1", "universal-deep-strict-equal": "^1.2.1", "xtend": "^4.0.0" } }, "power-assert-context-formatter": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/power-assert-context-formatter/-/power-assert-context-formatter-1.1.1.tgz", - "integrity": "sha1-7bo1LT7YpgMRTWZyZazOYNaJzN8=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/power-assert-context-formatter/-/power-assert-context-formatter-1.2.0.tgz", + "integrity": "sha512-HLNEW8Bin+BFCpk/zbyKwkEu9W8/zThIStxGo7weYcFkKgMuGCHUJhvJeBGXDZf0Qm2xis4pbnnciGZiX0EpSg==", "requires": { "core-js": "^2.0.0", - "power-assert-context-traversal": "^1.1.1" + "power-assert-context-traversal": "^1.2.0" } }, "power-assert-context-reducer-ast": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/power-assert-context-reducer-ast/-/power-assert-context-reducer-ast-1.1.2.tgz", - "integrity": "sha1-SEqZ4m9Jc/+IMuXFzHVnAuYJQXQ=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/power-assert-context-reducer-ast/-/power-assert-context-reducer-ast-1.2.0.tgz", + "integrity": "sha512-EgOxmZ/Lb7tw4EwSKX7ZnfC0P/qRZFEG28dx/690qvhmOJ6hgThYFm5TUWANDLK5NiNKlPBi5WekVGd2+5wPrw==", "requires": { - "acorn": "^4.0.0", + "acorn": "^5.0.0", "acorn-es7-plugin": "^1.0.12", "core-js": "^2.0.0", "espurify": "^1.6.0", @@ -11182,9 +10623,9 @@ } }, "power-assert-context-traversal": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/power-assert-context-traversal/-/power-assert-context-traversal-1.1.1.tgz", - "integrity": "sha1-iMq8oNE7Y1nwfT0+ivppkmRXftk=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/power-assert-context-traversal/-/power-assert-context-traversal-1.2.0.tgz", + "integrity": "sha512-NFoHU6g2umNajiP2l4qb0BRWD773Aw9uWdWYH9EQsVwIZnog5bd2YYLFCVvaxWpwNzWeEfZIon2xtyc63026pQ==", "requires": { "core-js": "^2.0.0", "estraverse": "^4.1.0" @@ -11205,12 +10646,12 @@ } }, "power-assert-renderer-assertion": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/power-assert-renderer-assertion/-/power-assert-renderer-assertion-1.1.1.tgz", - "integrity": "sha1-y/wOd+AIao+Wrz8djme57n4ozpg=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/power-assert-renderer-assertion/-/power-assert-renderer-assertion-1.2.0.tgz", + "integrity": "sha512-3F7Q1ZLmV2ZCQv7aV7NJLNK9G7QsostrhOU7U0RhEQS/0vhEqrRg2jEJl1jtUL4ZyL2dXUlaaqrmPv5r9kRvIg==", "requires": { "power-assert-renderer-base": "^1.1.1", - "power-assert-util-string-width": "^1.1.1" + "power-assert-util-string-width": "^1.2.0" } }, "power-assert-renderer-base": { @@ -11219,9 +10660,9 @@ "integrity": "sha1-lqZQxv0F7hvB9mtUrWFELIs/Y+s=" }, "power-assert-renderer-comparison": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/power-assert-renderer-comparison/-/power-assert-renderer-comparison-1.1.1.tgz", - "integrity": "sha1-10Odl9hRVr5OMKAPL7WnJRTOPAg=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/power-assert-renderer-comparison/-/power-assert-renderer-comparison-1.2.0.tgz", + "integrity": "sha512-7c3RKPDBKK4E3JqdPtYRE9cM8AyX4LC4yfTvvTYyx8zSqmT5kJnXwzR0yWQLOavACllZfwrAGQzFiXPc5sWa+g==", "requires": { "core-js": "^2.0.0", "diff-match-patch": "^1.0.0", @@ -11231,30 +10672,30 @@ } }, "power-assert-renderer-diagram": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/power-assert-renderer-diagram/-/power-assert-renderer-diagram-1.1.2.tgz", - "integrity": "sha1-ZV+PcRk1qbbVQbhjJ2VHF8Y3qYY=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/power-assert-renderer-diagram/-/power-assert-renderer-diagram-1.2.0.tgz", + "integrity": "sha512-JZ6PC+DJPQqfU6dwSmpcoD7gNnb/5U77bU5KgNwPPa+i1Pxiz6UuDeM3EUBlhZ1HvH9tMjI60anqVyi5l2oNdg==", "requires": { "core-js": "^2.0.0", "power-assert-renderer-base": "^1.1.1", - "power-assert-util-string-width": "^1.1.1", + "power-assert-util-string-width": "^1.2.0", "stringifier": "^1.3.0" } }, "power-assert-renderer-file": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/power-assert-renderer-file/-/power-assert-renderer-file-1.1.1.tgz", - "integrity": "sha1-o34rvReMys0E5427eckv40kzxec=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/power-assert-renderer-file/-/power-assert-renderer-file-1.2.0.tgz", + "integrity": "sha512-/oaVrRbeOtGoyyd7e4IdLP/jIIUFJdqJtsYzP9/88R39CMnfF/S/rUc8ZQalENfUfQ/wQHu+XZYRMaCEZmEesg==", "requires": { "power-assert-renderer-base": "^1.1.1" } }, "power-assert-util-string-width": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/power-assert-util-string-width/-/power-assert-util-string-width-1.1.1.tgz", - "integrity": "sha1-vmWet5N/3S5smncmjar2S9W3xZI=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/power-assert-util-string-width/-/power-assert-util-string-width-1.2.0.tgz", + "integrity": "sha512-lX90G0igAW0iyORTILZ/QjZWsa1MZ6VVY3L0K86e2eKun3S4LKPH4xZIl8fdeMYLfOjkaszbNSzf1uugLeAm2A==", "requires": { - "eastasianwidth": "^0.1.1" + "eastasianwidth": "^0.2.0" } }, "prelude-ls": { @@ -11276,19 +10717,18 @@ "dev": true }, "prettier": { - "version": "1.12.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.12.1.tgz", - "integrity": "sha1-wa0g6APndJ+vkFpAnSNn4Gu+cyU=", + "version": "1.13.7", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.13.7.tgz", + "integrity": "sha512-KIU72UmYPGk4MujZGYMFwinB7lOf2LsDNGSOC8ufevsrPLISrZbNJlWstRi3m0AMuszbH+EFSQ/r6w56RSPK6w==", "dev": true }, "pretty-ms": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-3.1.0.tgz", - "integrity": "sha1-6crJx2v27lL+lC3ZxsQhMVOxKIE=", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-3.2.0.tgz", + "integrity": "sha512-ZypexbfVUGTFxb0v+m1bUyy92DHe5SyYlnyY0msyms5zd3RwyvNgyxZZsXXgoyzlxjx5MiqtXUdhUfvQbe0A2Q==", "dev": true, "requires": { - "parse-ms": "^1.0.0", - "plur": "^2.1.2" + "parse-ms": "^1.0.0" }, "dependencies": { "parse-ms": { @@ -11395,12 +10835,12 @@ } }, "rc": { - "version": "1.2.7", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.7.tgz", - "integrity": "sha512-LdLD8xD4zzLsAT5xyushXDNscEjB7+2ulnl8+r1pnESlYtlJtVSoCMBGr30eDRJ3+2Gq89jK9P9e4tCEH1+ywA==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, "requires": { - "deep-extend": "^0.5.1", + "deep-extend": "^0.6.0", "ini": "~1.3.0", "minimist": "^1.2.0", "strip-json-comments": "~2.0.1" @@ -12176,9 +11616,9 @@ } }, "sshpk": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", - "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", + "version": "1.14.2", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", + "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", "dev": true, "requires": { "asn1": "~0.2.3", @@ -12188,6 +11628,7 @@ "ecc-jsbn": "~0.1.1", "getpass": "^0.1.1", "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", "tweetnacl": "~0.14.0" } }, @@ -12431,9 +11872,9 @@ }, "dependencies": { "ajv": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.1.tgz", - "integrity": "sha512-pgZos1vgOHDiC7gKNbZW8eKvCnNXARv2oqrGQT7Hzbq5Azp7aZG6DJzADnkuSq7RH6qkXp4J/m68yPX/2uBHyQ==", + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", + "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", "dev": true, "requires": { "fast-deep-equal": "^2.0.1", @@ -12821,9 +12262,9 @@ } }, "universalify": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.1.tgz", - "integrity": "sha1-+nG63UQ3r0wUiEHjs7Fl+enlkLc=", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", "dev": true }, "unset-value": { @@ -12943,9 +12384,9 @@ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" }, "uuid": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.2.1.tgz", - "integrity": "sha512-jZnMwlb9Iku/O3smGWvZhauCf6cvvpKi4BKRiliS3cxnI+Gz9j5MEpTz2UFuXiKPJocb7gnsLHwiS05ige5BEA==", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", + "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", "dev": true }, "validate-npm-package-license": { @@ -12976,9 +12417,9 @@ "dev": true }, "which": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", - "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, "requires": { "isexe": "^2.0.0" @@ -13100,9 +12541,9 @@ } }, "write-pkg": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/write-pkg/-/write-pkg-3.1.0.tgz", - "integrity": "sha1-AwqZlMyZk9JbTnWp8aGSNgcpHOk=", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/write-pkg/-/write-pkg-3.2.0.tgz", + "integrity": "sha512-tX2ifZ0YqEFOF1wjRW2Pk93NLsj02+n1UP5RvO6rCs0K6R2g1padvf006cY74PQJKMGS2r42NK7FD0dG6Y6paw==", "dev": true, "requires": { "sort-keys": "^2.0.0", From 27e60ecde24d60a52dbd7ab1414ba4853eee6128 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Tue, 3 Jul 2018 09:40:50 -0700 Subject: [PATCH 037/371] chore(deps): lock file maintenance (#45) --- packages/google-container/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index e82fd08ace4..a8507afb21c 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -6791,9 +6791,9 @@ } }, "is-callable": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.3.tgz", - "integrity": "sha1-hut1OSgF3cM69xySoO7fdO52BLI=", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", + "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", "dev": true }, "is-ci": { From de84cc587341b0b9dd249120b6ca5914098a55e5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Mon, 9 Jul 2018 19:41:26 -0700 Subject: [PATCH 038/371] chore(deps): lock file maintenance (#47) --- packages/google-container/package-lock.json | 91 ++++++++++++--------- 1 file changed, 54 insertions(+), 37 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index a8507afb21c..a00c7788fa3 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -2054,9 +2054,9 @@ "integrity": "sha512-ZXyOOm83p7X8p3s0IYM3VeueNmHpkk/yMlP8CLeOnEcu6hIwPH7YjZBvhQkR0ZFS2DqZAxKtJ/M5fcuv3OU5BA==" }, "@types/node": { - "version": "8.10.20", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.20.tgz", - "integrity": "sha512-M7x8+5D1k/CuA6jhiwuSCmE8sbUWJF0wYsjcig9WrXvwUI5ArEoUBdOXpV4JcEMrLp02/QbDjw+kI+vQeKyQgg==" + "version": "8.10.21", + "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.21.tgz", + "integrity": "sha512-87XkD9qDXm8fIax+5y7drx84cXsu34ZZqfB7Cial3Q/2lxSoJ/+DRaWckkCbxP41wFSIrrb939VhzaNxj4eY1w==" }, "acorn": { "version": "5.7.1", @@ -3652,14 +3652,15 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" }, "codecov": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.0.2.tgz", - "integrity": "sha512-9ljtIROIjPIUmMRqO+XuDITDoV8xRrZmA0jcEq6p2hg2+wY9wGmLfreAZGIL72IzUfdEDZaU8+Vjidg1fBQ8GQ==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.0.4.tgz", + "integrity": "sha512-KJyzHdg9B8U9LxXa7hS6jnEW5b1cNckLYc2YpnJ1nEFiOW+/iSzDHp+5MYEIQd9fN3/tC6WmGZmYiwxzkuGp/A==", "dev": true, "requires": { - "argv": "0.0.2", - "request": "^2.81.0", - "urlgrey": "0.4.4" + "argv": "^0.0.2", + "ignore-walk": "^3.0.1", + "request": "^2.87.0", + "urlgrey": "^0.4.4" } }, "collection-visit": { @@ -4381,9 +4382,9 @@ } }, "eslint": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.0.1.tgz", - "integrity": "sha512-D5nG2rErquLUstgUaxJlWB5+gu+U/3VDY0fk/Iuq8y9CUFy/7Y6oF4N2cR1tV8knzQvciIbfqfohd359xTLIKQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.1.0.tgz", + "integrity": "sha512-DyH6JsoA1KzA5+OSWFjg56DFJT+sDLO0yokaPZ9qY0UEmYrPA1gEX/G1MnVkmRDsksG4H1foIVz2ZXXM3hHYvw==", "dev": true, "requires": { "ajv": "^6.5.0", @@ -4393,6 +4394,7 @@ "debug": "^3.1.0", "doctrine": "^2.1.0", "eslint-scope": "^4.0.0", + "eslint-utils": "^1.3.1", "eslint-visitor-keys": "^1.0.0", "espree": "^4.0.0", "esquery": "^1.0.1", @@ -4400,7 +4402,7 @@ "file-entry-cache": "^2.0.0", "functional-red-black-tree": "^1.0.1", "glob": "^7.1.2", - "globals": "^11.5.0", + "globals": "^11.7.0", "ignore": "^3.3.3", "imurmurhash": "^0.1.4", "inquirer": "^5.2.0", @@ -4536,9 +4538,9 @@ } }, "eslint-plugin-prettier": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.1.tgz", - "integrity": "sha512-wNZ2z0oVCWnf+3BSI7roS+z4gGu2AwcPKUek+SlLZMZg+X0KbZLsB2knul7fd0K3iuIp402HIYzm4f2+OyfXxA==", + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.2.tgz", + "integrity": "sha512-tGek5clmW5swrAx1mdPYM8oThrBE83ePh7LeseZHBWfHVGrHPhKn7Y5zgRMbU/9D5Td9K4CEmUPjGxA7iw98Og==", "dev": true, "requires": { "fast-diff": "^1.1.1", @@ -4555,6 +4557,12 @@ "estraverse": "^4.1.1" } }, + "eslint-utils": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.3.1.tgz", + "integrity": "sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==", + "dev": true + }, "eslint-visitor-keys": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", @@ -5027,9 +5035,9 @@ "dev": true }, "follow-redirects": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.0.tgz", - "integrity": "sha512-fdrt472/9qQ6Kgjvb935ig6vJCuofpBUD14f9Vb+SLlm7xIe4Qva5gey8EKtv8lp7ahE1wilg3xL1znpVGtZIA==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.1.tgz", + "integrity": "sha512-v9GI1hpaqq1ZZR6pBD1+kI7O24PhDvNGNodjS3MdcEqyrahCp8zbtpv+2B/krUnSmUH80lbAS7MrdeK5IylgKg==", "requires": { "debug": "^3.1.0" }, @@ -5923,9 +5931,9 @@ "dev": true }, "grpc": { - "version": "1.12.4", - "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.12.4.tgz", - "integrity": "sha512-t0Hy4yoHHYLkK0b+ULTHw5ZuSFmWokCABY0C4bKQbE4jnm1hpjA23cQVD0xAqDcRHN5CkvFzlqb34ngV22dqoQ==", + "version": "1.13.0", + "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.13.0.tgz", + "integrity": "sha512-jGxWFYzttSz9pi8mu283jZvo2zIluWonQ918GMHKx8grT57GIVlvx7/82fo7AGS75lbkPoO1T6PZLvCRD9Pbtw==", "requires": { "lodash": "^4.17.5", "nan": "^2.0.0", @@ -6139,7 +6147,7 @@ } }, "node-pre-gyp": { - "version": "0.10.0", + "version": "0.10.2", "bundled": true, "requires": { "detect-libc": "^1.0.2", @@ -6148,7 +6156,7 @@ "nopt": "^4.0.1", "npm-packlist": "^1.1.6", "npmlog": "^4.0.2", - "rc": "^1.1.7", + "rc": "^1.2.7", "rimraf": "^2.6.1", "semver": "^5.3.0", "tar": "^4" @@ -6509,9 +6517,9 @@ } }, "hosted-git-info": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.6.1.tgz", - "integrity": "sha512-Ba4+0M4YvIDUUsprMjhVTU1yN9F2/LJSAl69ZpzaLT4l4j5mwTS6jqqW9Ojvj6lKz/veqPzpJBqGbXspOb533A==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", + "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", "dev": true }, "htmlparser2": { @@ -6587,6 +6595,15 @@ "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", "dev": true }, + "ignore-walk": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", + "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", + "dev": true, + "requires": { + "minimatch": "^3.0.4" + } + }, "import-lazy": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", @@ -7109,15 +7126,15 @@ "dev": true }, "istanbul-lib-coverage": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.0.tgz", - "integrity": "sha512-yMSw5xLIbdaxiVXHk3amfNM2WeBxLrwH/BCyZ9HvA/fylwziAIJOG2rKqWyLqEJqwKT725vxxqidv+SyynnGAA==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", + "integrity": "sha512-nPvSZsVlbG9aLhZYaC3Oi1gT/tpyo3Yt5fNyf6NmcKIayz4VV/txxJFFKAK/gU4dcNn8ehsanBbVHVl0+amOLA==", "dev": true }, "istanbul-lib-instrument": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-2.3.0.tgz", - "integrity": "sha512-Ie1LGWJVCFDDJKKH4g1ffpFcZTEXEd6ay5l9fE8539y4qPErJnzo4psnGzDH92tcKvdUDdbxrKySYIbt6zB9hw==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-2.3.1.tgz", + "integrity": "sha512-h9Vg3nfbxrF0PK0kZiNiMAyL8zXaLiBP/BXniaKSwVvAi1TaumYV2b0wPdmy1CRX3irYbYD1p4Wjbv4uyECiiQ==", "dev": true, "requires": { "@babel/generator": "7.0.0-beta.51", @@ -7125,7 +7142,7 @@ "@babel/template": "7.0.0-beta.51", "@babel/traverse": "7.0.0-beta.51", "@babel/types": "7.0.0-beta.51", - "istanbul-lib-coverage": "^2.0.0", + "istanbul-lib-coverage": "^2.0.1", "semver": "^5.5.0" } }, @@ -7483,9 +7500,9 @@ "dev": true }, "lolex": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.7.0.tgz", - "integrity": "sha512-uJkH2e0BVfU5KOJUevbTOtpDduooSarH5PopO+LfM/vZf8Z9sJzODqKev804JYM2i++ktJfUmC1le4LwFQ1VMg==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.7.1.tgz", + "integrity": "sha512-Oo2Si3RMKV3+lV5MsSWplDQFoTClz/24S0MMHYcgGWWmFXr6TMlqcqk/l1GtH+d5wLBwNRiqGnwDRMirtFalJw==", "dev": true }, "long": { From 59938d05547dc8fdbe15938c2c7c196a7e0744c7 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 9 Jul 2018 22:55:54 -0700 Subject: [PATCH 039/371] fix: drop support for node.js 4.x and 9.x (#46) * fix: drop support for node.js 4.x and 9.x * fix my blunder --- .../google-container/.circleci/config.yml | 41 ++++--------------- packages/google-container/package.json | 2 +- .../google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 36 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index cfffc3c8cd4..4c8e5b5d46f 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -3,32 +3,24 @@ workflows: version: 2 tests: jobs: &workflow_jobs - - node4: + - node6: filters: &all_commits tags: only: /.*/ - - node6: - filters: *all_commits - node8: filters: *all_commits - - node9: - filters: *all_commits - node10: filters: *all_commits - lint: requires: - - node4 - node6 - node8 - - node9 - node10 filters: *all_commits - docs: requires: - - node4 - node6 - node8 - - node9 - node10 filters: *all_commits - system_tests: @@ -56,9 +48,9 @@ workflows: only: master jobs: *workflow_jobs jobs: - node4: + node6: docker: - - image: 'node:4' + - image: 'node:6' user: node steps: &unit_tests_steps - checkout @@ -80,28 +72,13 @@ jobs: npm install environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - - run: - name: Run unit tests. - command: npm test - - run: - name: Submit coverage data to codecov. - command: node_modules/.bin/codecov - when: always - node6: - docker: - - image: 'node:6' - user: node - steps: *unit_tests_steps + - run: npm test + - run: node_modules/.bin/codecov node8: docker: - image: 'node:8' user: node steps: *unit_tests_steps - node9: - docker: - - image: 'node:9' - user: node - steps: *unit_tests_steps node10: docker: - image: 'node:10' @@ -169,9 +146,5 @@ jobs: user: node steps: - checkout - - run: - name: Set NPM authentication. - command: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc' - - run: - name: Publish the module to npm. - command: npm publish --access=public + - run: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc' + - run: npm publish --access=public diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 385f459b8aa..0a91fa47b80 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "author": "Google Inc", "engines": { - "node": ">=4.0.0" + "node": ">=6.0.0" }, "repository": "googleapis/nodejs-cloud-container", "main": "src/index.js", diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index d63ae903c90..66c5034c475 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=4.0.0" + "node": ">=6.0.0" }, "repository": "googleapis/nodejs-cloud-container", "private": true, From 4e9720403447f1611afe9773cb4e3f3b041afaba Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Tue, 10 Jul 2018 08:07:37 -0700 Subject: [PATCH 040/371] chore(deps): lock file maintenance (#48) --- packages/google-container/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index a00c7788fa3..6fbe8d7db8a 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -4659,9 +4659,9 @@ "dev": true }, "espurify": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/espurify/-/espurify-1.8.0.tgz", - "integrity": "sha512-jdkJG9jswjKCCDmEridNUuIQei9algr+o66ZZ19610ZoBsiWLRsQGNYS4HGez3Z/DsR0lhANGAqiwBUclPuNag==", + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/espurify/-/espurify-1.8.1.tgz", + "integrity": "sha512-ZDko6eY/o+D/gHCWyHTU85mKDgYcS4FJj7S+YD6WIInm7GQ6AnOjmcL4+buFV/JOztVLELi/7MmuGU5NHta0Mg==", "requires": { "core-js": "^2.0.0" } From f805fedd8ea2e025e3cd986c122b9fb3c167375e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Tue, 10 Jul 2018 09:41:41 -0700 Subject: [PATCH 041/371] chore(deps): lock file maintenance (#49) --- packages/google-container/package-lock.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 6fbe8d7db8a..f5a6c6308dc 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -7517,12 +7517,12 @@ "dev": true }, "loose-envify": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", - "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", "dev": true, "requires": { - "js-tokens": "^3.0.0" + "js-tokens": "^3.0.0 || ^4.0.0" } }, "loud-rejection": { From 2290d27141af7a4b0f3f368fdf777b8293908f62 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Mon, 16 Jul 2018 19:10:16 -0700 Subject: [PATCH 042/371] chore(deps): lock file maintenance (#51) --- packages/google-container/package-lock.json | 1308 ++++++++++++++----- 1 file changed, 1005 insertions(+), 303 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index f5a6c6308dc..97fc6f65a63 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -223,25 +223,25 @@ } }, "@google-cloud/nodejs-repo-tools": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-2.3.0.tgz", - "integrity": "sha512-c8dIGESnNkmM88duFxGHvMQP5QKPgp/sfJq0QhC6+gOcJC7/PKjqd0PkmgPPeIgVl6SXy5Zf/KLbxnJUVgNT1Q==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-2.3.1.tgz", + "integrity": "sha512-yIOn92sjHwpF/eORQWjv7QzQPcESSRCsZshdmeX40RGRlB0+HPODRDghZq0GiCqe6zpIYZvKmiKiYd3u52P/7Q==", "dev": true, "requires": { "ava": "0.25.0", "colors": "1.1.2", "fs-extra": "5.0.0", - "got": "8.2.0", + "got": "8.3.0", "handlebars": "4.0.11", "lodash": "4.17.5", - "nyc": "11.4.1", + "nyc": "11.7.2", "proxyquire": "1.8.0", "semver": "^5.5.0", - "sinon": "4.3.0", + "sinon": "6.0.1", "string": "3.3.3", - "supertest": "3.0.0", + "supertest": "3.1.0", "yargs": "11.0.0", - "yargs-parser": "9.0.2" + "yargs-parser": "10.1.0" }, "dependencies": { "ansi-regex": { @@ -250,6 +250,12 @@ "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", "dev": true }, + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, "cliui": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", @@ -274,37 +280,37 @@ "dev": true }, "nyc": { - "version": "11.4.1", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.4.1.tgz", - "integrity": "sha512-5eCZpvaksFVjP2rt1r60cfXmt3MUtsQDw8bAzNqNEr4WLvUMLgiVENMf/B9bE9YAX0mGVvaGA3v9IS9ekNqB1Q==", + "version": "11.7.2", + "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.7.2.tgz", + "integrity": "sha512-gBt7qwsR1vryYfglVjQRx1D+AtMZW5NbUKxb+lZe8SN8KsheGCPGWEsSC9AGQG+r2+te1+10uPHUCahuqm1nGQ==", "dev": true, "requires": { "archy": "^1.0.0", "arrify": "^1.0.1", "caching-transform": "^1.0.0", - "convert-source-map": "^1.3.0", + "convert-source-map": "^1.5.1", "debug-log": "^1.0.1", "default-require-extensions": "^1.0.0", "find-cache-dir": "^0.1.1", "find-up": "^2.1.0", "foreground-child": "^1.5.3", "glob": "^7.0.6", - "istanbul-lib-coverage": "^1.1.1", + "istanbul-lib-coverage": "^1.1.2", "istanbul-lib-hook": "^1.1.0", - "istanbul-lib-instrument": "^1.9.1", - "istanbul-lib-report": "^1.1.2", - "istanbul-lib-source-maps": "^1.2.2", - "istanbul-reports": "^1.1.3", + "istanbul-lib-instrument": "^1.10.0", + "istanbul-lib-report": "^1.1.3", + "istanbul-lib-source-maps": "^1.2.3", + "istanbul-reports": "^1.4.0", "md5-hex": "^1.2.0", - "merge-source-map": "^1.0.2", - "micromatch": "^2.3.11", + "merge-source-map": "^1.1.0", + "micromatch": "^3.1.10", "mkdirp": "^0.5.0", "resolve-from": "^2.0.0", - "rimraf": "^2.5.4", + "rimraf": "^2.6.2", "signal-exit": "^3.0.1", "spawn-wrap": "^1.4.2", - "test-exclude": "^4.1.1", - "yargs": "^10.0.3", + "test-exclude": "^4.2.0", + "yargs": "11.1.0", "yargs-parser": "^8.0.0" }, "dependencies": { @@ -347,20 +353,22 @@ "dev": true }, "arr-diff": { - "version": "2.0.0", + "version": "4.0.0", "bundled": true, - "dev": true, - "requires": { - "arr-flatten": "^1.0.1" - } + "dev": true }, "arr-flatten": { "version": "1.1.0", "bundled": true, "dev": true }, + "arr-union": { + "version": "3.1.0", + "bundled": true, + "dev": true + }, "array-unique": { - "version": "0.2.1", + "version": "0.3.2", "bundled": true, "dev": true }, @@ -369,11 +377,21 @@ "bundled": true, "dev": true }, + "assign-symbols": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, "async": { "version": "1.5.2", "bundled": true, "dev": true }, + "atob": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, "babel-code-frame": { "version": "6.26.0", "bundled": true, @@ -385,7 +403,7 @@ } }, "babel-generator": { - "version": "6.26.0", + "version": "6.26.1", "bundled": true, "dev": true, "requires": { @@ -395,7 +413,7 @@ "detect-indent": "^4.0.0", "jsesc": "^1.3.0", "lodash": "^4.17.4", - "source-map": "^0.5.6", + "source-map": "^0.5.7", "trim-right": "^1.0.1" } }, @@ -465,8 +483,63 @@ "bundled": true, "dev": true }, + "base": { + "version": "0.11.2", + "bundled": true, + "dev": true, + "requires": { + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + }, + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } + } + }, "brace-expansion": { - "version": "1.1.8", + "version": "1.1.11", "bundled": true, "dev": true, "requires": { @@ -475,13 +548,30 @@ } }, "braces": { - "version": "1.8.5", + "version": "2.3.2", "bundled": true, "dev": true, "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } } }, "builtin-modules": { @@ -489,6 +579,22 @@ "bundled": true, "dev": true }, + "cache-base": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" + } + }, "caching-transform": { "version": "1.0.1", "bundled": true, @@ -527,6 +633,27 @@ "supports-color": "^2.0.0" } }, + "class-utils": { + "version": "0.3.6", + "bundled": true, + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, "cliui": { "version": "2.1.0", "bundled": true, @@ -551,11 +678,25 @@ "bundled": true, "dev": true }, + "collection-visit": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" + } + }, "commondir": { "version": "1.0.1", "bundled": true, "dev": true }, + "component-emitter": { + "version": "1.2.1", + "bundled": true, + "dev": true + }, "concat-map": { "version": "0.0.1", "bundled": true, @@ -566,8 +707,13 @@ "bundled": true, "dev": true }, + "copy-descriptor": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, "core-js": { - "version": "2.5.3", + "version": "2.5.6", "bundled": true, "dev": true }, @@ -598,6 +744,11 @@ "bundled": true, "dev": true }, + "decode-uri-component": { + "version": "0.2.0", + "bundled": true, + "dev": true + }, "default-require-extensions": { "version": "1.0.0", "bundled": true, @@ -606,6 +757,48 @@ "strip-bom": "^2.0.0" } }, + "define-property": { + "version": "2.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" + }, + "dependencies": { + "is-accessor-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + }, + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } + } + }, "detect-indent": { "version": "4.0.0", "bundled": true, @@ -659,44 +852,139 @@ } }, "expand-brackets": { - "version": "0.1.5", + "version": "2.1.4", "bundled": true, "dev": true, "requires": { - "is-posix-bracket": "^0.1.0" + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } } }, - "expand-range": { - "version": "1.8.2", + "extend-shallow": { + "version": "3.0.2", "bundled": true, "dev": true, "requires": { - "fill-range": "^2.1.0" + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } } }, "extglob": { - "version": "0.3.2", + "version": "2.0.4", "bundled": true, "dev": true, "requires": { - "is-extglob": "^1.0.0" + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + }, + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } } }, - "filename-regex": { - "version": "2.0.1", - "bundled": true, - "dev": true - }, "fill-range": { - "version": "2.2.3", + "version": "4.0.0", "bundled": true, "dev": true, "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^1.1.3", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } } }, "find-cache-dir": { @@ -722,21 +1010,21 @@ "bundled": true, "dev": true }, - "for-own": { - "version": "0.1.5", + "foreground-child": { + "version": "1.5.6", "bundled": true, "dev": true, "requires": { - "for-in": "^1.0.1" + "cross-spawn": "^4", + "signal-exit": "^3.0.0" } }, - "foreground-child": { - "version": "1.5.6", + "fragment-cache": { + "version": "0.2.1", "bundled": true, "dev": true, "requires": { - "cross-spawn": "^4", - "signal-exit": "^3.0.0" + "map-cache": "^0.2.2" } }, "fs.realpath": { @@ -754,6 +1042,11 @@ "bundled": true, "dev": true }, + "get-value": { + "version": "2.0.6", + "bundled": true, + "dev": true + }, "glob": { "version": "7.1.2", "bundled": true, @@ -767,23 +1060,6 @@ "path-is-absolute": "^1.0.0" } }, - "glob-base": { - "version": "0.3.0", - "bundled": true, - "dev": true, - "requires": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" - } - }, - "glob-parent": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, "globals": { "version": "9.18.0", "bundled": true, @@ -828,8 +1104,37 @@ "bundled": true, "dev": true }, + "has-value": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "has-values": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, "hosted-git-info": { - "version": "2.5.0", + "version": "2.6.0", "bundled": true, "dev": true }, @@ -853,7 +1158,7 @@ "dev": true }, "invariant": { - "version": "2.2.2", + "version": "2.2.4", "bundled": true, "dev": true, "requires": { @@ -865,6 +1170,14 @@ "bundled": true, "dev": true }, + "is-accessor-descriptor": { + "version": "0.1.6", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, "is-arrayish": { "version": "0.2.1", "bundled": true, @@ -883,17 +1196,29 @@ "builtin-modules": "^1.0.0" } }, - "is-dotfile": { - "version": "1.0.3", + "is-data-descriptor": { + "version": "0.1.4", "bundled": true, - "dev": true + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } }, - "is-equal-shallow": { - "version": "0.1.3", + "is-descriptor": { + "version": "0.1.6", "bundled": true, "dev": true, "requires": { - "is-primitive": "^2.0.0" + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "bundled": true, + "dev": true + } } }, "is-extendable": { @@ -901,11 +1226,6 @@ "bundled": true, "dev": true }, - "is-extglob": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, "is-finite": { "version": "1.0.2", "bundled": true, @@ -915,39 +1235,41 @@ } }, "is-fullwidth-code-point": { - "version": "1.0.0", + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "is-number": { + "version": "3.0.0", "bundled": true, "dev": true, "requires": { - "number-is-nan": "^1.0.0" + "kind-of": "^3.0.2" } }, - "is-glob": { - "version": "2.0.1", + "is-odd": { + "version": "2.0.0", "bundled": true, "dev": true, "requires": { - "is-extglob": "^1.0.0" + "is-number": "^4.0.0" + }, + "dependencies": { + "is-number": { + "version": "4.0.0", + "bundled": true, + "dev": true + } } }, - "is-number": { - "version": "2.1.0", + "is-plain-object": { + "version": "2.0.4", "bundled": true, "dev": true, "requires": { - "kind-of": "^3.0.2" + "isobject": "^3.0.1" } }, - "is-posix-bracket": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "is-primitive": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, "is-stream": { "version": "1.1.0", "bundled": true, @@ -958,6 +1280,11 @@ "bundled": true, "dev": true }, + "is-windows": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, "isarray": { "version": "1.0.0", "bundled": true, @@ -969,15 +1296,12 @@ "dev": true }, "isobject": { - "version": "2.1.0", + "version": "3.0.1", "bundled": true, - "dev": true, - "requires": { - "isarray": "1.0.0" - } + "dev": true }, "istanbul-lib-coverage": { - "version": "1.1.1", + "version": "1.2.0", "bundled": true, "dev": true }, @@ -990,7 +1314,7 @@ } }, "istanbul-lib-instrument": { - "version": "1.9.1", + "version": "1.10.1", "bundled": true, "dev": true, "requires": { @@ -999,16 +1323,16 @@ "babel-traverse": "^6.18.0", "babel-types": "^6.18.0", "babylon": "^6.18.0", - "istanbul-lib-coverage": "^1.1.1", + "istanbul-lib-coverage": "^1.2.0", "semver": "^5.3.0" } }, "istanbul-lib-report": { - "version": "1.1.2", + "version": "1.1.3", "bundled": true, "dev": true, "requires": { - "istanbul-lib-coverage": "^1.1.1", + "istanbul-lib-coverage": "^1.1.2", "mkdirp": "^0.5.1", "path-parse": "^1.0.5", "supports-color": "^3.1.2" @@ -1025,12 +1349,12 @@ } }, "istanbul-lib-source-maps": { - "version": "1.2.2", + "version": "1.2.3", "bundled": true, "dev": true, "requires": { "debug": "^3.1.0", - "istanbul-lib-coverage": "^1.1.1", + "istanbul-lib-coverage": "^1.1.2", "mkdirp": "^0.5.1", "rimraf": "^2.6.1", "source-map": "^0.5.3" @@ -1047,7 +1371,7 @@ } }, "istanbul-reports": { - "version": "1.1.3", + "version": "1.4.0", "bundled": true, "dev": true, "requires": { @@ -1115,7 +1439,7 @@ } }, "lodash": { - "version": "4.17.4", + "version": "4.17.10", "bundled": true, "dev": true }, @@ -1133,7 +1457,7 @@ } }, "lru-cache": { - "version": "4.1.1", + "version": "4.1.3", "bundled": true, "dev": true, "requires": { @@ -1141,6 +1465,19 @@ "yallist": "^2.1.2" } }, + "map-cache": { + "version": "0.2.2", + "bundled": true, + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "object-visit": "^1.0.0" + } + }, "md5-hex": { "version": "1.3.0", "bundled": true, @@ -1163,35 +1500,49 @@ } }, "merge-source-map": { - "version": "1.0.4", + "version": "1.1.0", "bundled": true, "dev": true, "requires": { - "source-map": "^0.5.6" + "source-map": "^0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "bundled": true, + "dev": true + } } }, "micromatch": { - "version": "2.3.11", - "bundled": true, - "dev": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" + "version": "3.1.10", + "bundled": true, + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } } }, "mimic-fn": { - "version": "1.1.0", + "version": "1.2.0", "bundled": true, "dev": true }, @@ -1208,6 +1559,25 @@ "bundled": true, "dev": true }, + "mixin-deep": { + "version": "1.3.1", + "bundled": true, + "dev": true, + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, "mkdirp": { "version": "0.5.1", "bundled": true, @@ -1221,6 +1591,32 @@ "bundled": true, "dev": true }, + "nanomatch": { + "version": "1.2.9", + "bundled": true, + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-odd": "^2.0.0", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } + } + }, "normalize-package-data": { "version": "2.4.0", "bundled": true, @@ -1232,14 +1628,6 @@ "validate-npm-package-license": "^3.0.1" } }, - "normalize-path": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - }, "npm-run-path": { "version": "2.0.2", "bundled": true, @@ -1258,13 +1646,40 @@ "bundled": true, "dev": true }, - "object.omit": { - "version": "2.0.1", + "object-copy": { + "version": "0.1.0", "bundled": true, "dev": true, "requires": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "object-visit": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "isobject": "^3.0.0" + } + }, + "object.pick": { + "version": "1.3.0", + "bundled": true, + "dev": true, + "requires": { + "isobject": "^3.0.1" } }, "once": { @@ -1305,9 +1720,12 @@ "dev": true }, "p-limit": { - "version": "1.1.0", + "version": "1.2.0", "bundled": true, - "dev": true + "dev": true, + "requires": { + "p-try": "^1.0.0" + } }, "p-locate": { "version": "2.0.0", @@ -1317,16 +1735,10 @@ "p-limit": "^1.1.0" } }, - "parse-glob": { - "version": "3.0.4", + "p-try": { + "version": "1.0.0", "bundled": true, - "dev": true, - "requires": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" - } + "dev": true }, "parse-json": { "version": "2.2.0", @@ -1336,6 +1748,11 @@ "error-ex": "^1.2.0" } }, + "pascalcase": { + "version": "0.1.1", + "bundled": true, + "dev": true + }, "path-exists": { "version": "2.1.0", "bundled": true, @@ -1406,8 +1823,8 @@ } } }, - "preserve": { - "version": "0.2.0", + "posix-character-classes": { + "version": "0.1.1", "bundled": true, "dev": true }, @@ -1416,43 +1833,6 @@ "bundled": true, "dev": true }, - "randomatic": { - "version": "1.1.7", - "bundled": true, - "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "is-number": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "kind-of": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, "read-pkg": { "version": "1.1.0", "bundled": true, @@ -1488,19 +1868,15 @@ "bundled": true, "dev": true }, - "regex-cache": { - "version": "0.4.4", + "regex-not": { + "version": "1.0.2", "bundled": true, "dev": true, "requires": { - "is-equal-shallow": "^0.1.3" + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" } }, - "remove-trailing-separator": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, "repeat-element": { "version": "1.1.2", "bundled": true, @@ -1534,6 +1910,16 @@ "bundled": true, "dev": true }, + "resolve-url": { + "version": "0.2.1", + "bundled": true, + "dev": true + }, + "ret": { + "version": "0.1.15", + "bundled": true, + "dev": true + }, "right-align": { "version": "0.1.3", "bundled": true, @@ -1551,16 +1937,45 @@ "glob": "^7.0.5" } }, - "semver": { - "version": "5.4.1", - "bundled": true, - "dev": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, + "safe-regex": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "requires": { + "ret": "~0.1.10" + } + }, + "semver": { + "version": "5.5.0", + "bundled": true, + "dev": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true + }, + "set-value": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, "shebang-command": { "version": "1.2.0", "bundled": true, @@ -1584,11 +1999,120 @@ "bundled": true, "dev": true }, + "snapdragon": { + "version": "0.8.2", + "bundled": true, + "dev": true, + "requires": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "bundled": true, + "dev": true, + "requires": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + }, + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^3.2.0" + } + }, "source-map": { "version": "0.5.7", "bundled": true, "dev": true }, + "source-map-resolve": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "atob": "^2.0.0", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "source-map-url": { + "version": "0.4.0", + "bundled": true, + "dev": true + }, "spawn-wrap": { "version": "1.4.2", "bundled": true, @@ -1603,23 +2127,60 @@ } }, "spdx-correct": { - "version": "1.0.2", + "version": "3.0.0", "bundled": true, "dev": true, "requires": { - "spdx-license-ids": "^1.0.2" + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" } }, - "spdx-expression-parse": { - "version": "1.0.4", + "spdx-exceptions": { + "version": "2.1.0", "bundled": true, "dev": true }, + "spdx-expression-parse": { + "version": "3.0.0", + "bundled": true, + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, "spdx-license-ids": { - "version": "1.2.2", + "version": "3.0.0", "bundled": true, "dev": true }, + "split-string": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "extend-shallow": "^3.0.0" + } + }, + "static-extend": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "requires": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "bundled": true, + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, "string-width": { "version": "2.1.1", "bundled": true, @@ -1634,11 +2195,6 @@ "bundled": true, "dev": true }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, "strip-ansi": { "version": "4.0.0", "bundled": true, @@ -1676,12 +2232,12 @@ "dev": true }, "test-exclude": { - "version": "4.1.1", + "version": "4.2.1", "bundled": true, "dev": true, "requires": { "arrify": "^1.0.1", - "micromatch": "^2.3.11", + "micromatch": "^3.1.8", "object-assign": "^4.1.0", "read-pkg-up": "^1.0.1", "require-main-filename": "^1.0.1" @@ -1692,6 +2248,34 @@ "bundled": true, "dev": true }, + "to-object-path": { + "version": "0.3.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^3.0.2" + } + }, + "to-regex": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "requires": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "bundled": true, + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + }, "trim-right": { "version": "1.0.1", "bundled": true, @@ -1728,13 +2312,101 @@ "dev": true, "optional": true }, + "union-value": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^0.4.3" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "set-value": { + "version": "0.4.3", + "bundled": true, + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.1", + "to-object-path": "^0.3.0" + } + } + } + }, + "unset-value": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "bundled": true, + "dev": true, + "requires": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "bundled": true, + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "bundled": true, + "dev": true + } + } + }, + "urix": { + "version": "0.1.0", + "bundled": true, + "dev": true + }, + "use": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "requires": { + "kind-of": "^6.0.2" + }, + "dependencies": { + "kind-of": { + "version": "6.0.2", + "bundled": true, + "dev": true + } + } + }, "validate-npm-package-license": { - "version": "3.0.1", + "version": "3.0.3", "bundled": true, "dev": true, "requires": { - "spdx-correct": "~1.0.0", - "spdx-expression-parse": "~1.0.0" + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" } }, "which": { @@ -1770,6 +2442,14 @@ "strip-ansi": "^3.0.1" }, "dependencies": { + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, "string-width": { "version": "1.0.2", "bundled": true, @@ -1808,11 +2488,11 @@ "dev": true }, "yargs": { - "version": "10.0.3", + "version": "11.1.0", "bundled": true, "dev": true, "requires": { - "cliui": "^3.2.0", + "cliui": "^4.0.0", "decamelize": "^1.1.1", "find-up": "^2.1.0", "get-caller-file": "^1.0.1", @@ -1823,35 +2503,49 @@ "string-width": "^2.0.0", "which-module": "^2.0.0", "y18n": "^3.2.1", - "yargs-parser": "^8.0.0" + "yargs-parser": "^9.0.2" }, "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "bundled": true, + "dev": true + }, + "camelcase": { + "version": "4.1.0", + "bundled": true, + "dev": true + }, "cliui": { - "version": "3.2.0", + "version": "4.1.0", "bundled": true, "dev": true, "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", "wrap-ansi": "^2.0.0" - }, - "dependencies": { - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - } + } + }, + "strip-ansi": { + "version": "4.0.0", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "^3.0.0" + } + }, + "yargs-parser": { + "version": "9.0.2", + "bundled": true, + "dev": true, + "requires": { + "camelcase": "^4.1.0" } } } }, "yargs-parser": { - "version": "8.0.0", + "version": "8.1.0", "bundled": true, "dev": true, "requires": { @@ -1915,6 +2609,17 @@ "which-module": "^2.0.0", "y18n": "^3.2.1", "yargs-parser": "^9.0.2" + }, + "dependencies": { + "yargs-parser": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-9.0.2.tgz", + "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", + "dev": true, + "requires": { + "camelcase": "^4.1.0" + } + } } } } @@ -4342,9 +5047,9 @@ "dev": true }, "escodegen": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.10.0.tgz", - "integrity": "sha512-fjUOf8johsv23WuIKdNQU4P9t9jhQ4Qzx6pC2uW890OloK3Zs1ZAoCNpg/2larNF501jLl3UNy0kIRcF6VI22g==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.11.0.tgz", + "integrity": "sha512-IeMV45ReixHS53K/OmfKAIztN/igDHzTJUhZM3k1jMhIZWjk45SMwAtBsEXiJp3vSPmTcu6CXn7mDvFHRN66fw==", "dev": true, "requires": { "esprima": "^3.1.3", @@ -4653,9 +5358,9 @@ } }, "esprima": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.0.tgz", - "integrity": "sha512-oftTcaMu/EGrEIu904mWteKIv8vMuOgGYo7EhVJJN00R/EED9DCua/xxHRdYnKtcECzVg7xOWhflvJMnqcFZjw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true }, "espurify": { @@ -5686,9 +6391,9 @@ } }, "get-caller-file": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", - "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", "dev": true }, "get-port": { @@ -5877,9 +6582,9 @@ } }, "got": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/got/-/got-8.2.0.tgz", - "integrity": "sha512-giadqJpXIwjY+ZsuWys8p2yjZGhOHiU4hiJHjS/oeCxw1u8vANQz3zPlrxW2Zw/siCXsSMI3hvzWGcnFyujyAg==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/got/-/got-8.3.0.tgz", + "integrity": "sha512-kBNy/S2CGwrYgDSec5KTWGKUvupwkkTVAjIsVFF2shXO13xpZdFP4d4kxa//CLX2tN/rV0aYwK8vY6UKWGn2vQ==", "dev": true, "requires": { "@sindresorhus/is": "^0.7.0", @@ -5892,7 +6597,7 @@ "isurl": "^1.0.0-alpha5", "lowercase-keys": "^1.0.0", "mimic-response": "^1.0.0", - "p-cancelable": "^0.3.0", + "p-cancelable": "^0.4.0", "p-timeout": "^2.0.1", "pify": "^3.0.0", "safe-buffer": "^5.1.1", @@ -7816,9 +8521,9 @@ "dev": true }, "mimic-response": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.0.tgz", - "integrity": "sha1-3z02Uqc/3ta5sLJBRub9BSNTRY4=", + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", + "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", "dev": true }, "minimatch": { @@ -10295,9 +11000,9 @@ "dev": true }, "p-cancelable": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.3.0.tgz", - "integrity": "sha512-RVbZPLso8+jFeq1MfNvgXtCRED2raz/dKpacfTNxsx6pLEpEomM7gah6VeHSYV3+vo0OAi4MkArtQcWWXuQoyw==", + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz", + "integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==", "dev": true }, "p-finally": { @@ -11388,18 +12093,18 @@ "dev": true }, "sinon": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-4.3.0.tgz", - "integrity": "sha512-pmf05hFgEZUS52AGJcsVjOjqAyJW2yo14cOwVYvzCyw7+inv06YXkLyW75WG6X6p951lzkoKh51L2sNbR9CDvw==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/sinon/-/sinon-6.0.1.tgz", + "integrity": "sha512-rfszhNcfamK2+ofIPi9XqeH89pH7KGDcAtM+F9CsjHXOK3jzWG99vyhyD2V+r7s4IipmWcWUFYq4ftZ9/Eu2Wg==", "dev": true, "requires": { "@sinonjs/formatio": "^2.0.0", - "diff": "^3.1.0", + "diff": "^3.5.0", "lodash.get": "^4.4.2", - "lolex": "^2.2.0", - "nise": "^1.2.0", - "supports-color": "^5.1.0", - "type-detect": "^4.0.5" + "lolex": "^2.4.2", + "nise": "^1.3.3", + "supports-color": "^5.4.0", + "type-detect": "^4.0.8" } }, "slash": { @@ -11777,9 +12482,9 @@ "dev": true }, "superagent": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.3.tgz", - "integrity": "sha512-GLQtLMCoEIK4eDv6OGtkOoSMt3D+oq0y3dsxMuYuDvaNUvuT8eFBuLmfR0iYYzHC1e8hpzC6ZsxbuP6DIalMFA==", + "version": "3.8.2", + "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.2.tgz", + "integrity": "sha512-gVH4QfYHcY3P0f/BZzavLreHW3T1v7hG9B+hpMQotGQqurOvhv87GcMCd6LWySmBuf+BDR44TQd0aISjVHLeNQ==", "dev": true, "requires": { "component-emitter": "^1.2.0", @@ -11787,11 +12492,11 @@ "debug": "^3.1.0", "extend": "^3.0.0", "form-data": "^2.3.1", - "formidable": "^1.2.0", + "formidable": "^1.1.1", "methods": "^1.1.1", "mime": "^1.4.1", "qs": "^6.5.1", - "readable-stream": "^2.3.5" + "readable-stream": "^2.0.5" }, "dependencies": { "debug": { @@ -11842,13 +12547,13 @@ } }, "supertest": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/supertest/-/supertest-3.0.0.tgz", - "integrity": "sha1-jUu2j9GDDuBwM7HFpamkAhyWUpY=", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/supertest/-/supertest-3.1.0.tgz", + "integrity": "sha512-O44AMnmJqx294uJQjfUmEyYOg7d9mylNFsMw/Wkz4evKd1njyPrtCN+U6ZIC7sKtfEVQhfTqFFijlXx8KP/Czw==", "dev": true, "requires": { "methods": "~1.1.2", - "superagent": "^3.0.0" + "superagent": "3.8.2" } }, "supports-color": { @@ -12388,12 +13093,9 @@ "dev": true }, "use": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.0.tgz", - "integrity": "sha512-6UJEQM/L+mzC3ZJNM56Q4DFGLX/evKGRg15UJHGB9X5j5Z3AFbgZvjUh2yq/UJUY4U5dh7Fal++XbNg1uzpRAw==", - "requires": { - "kind-of": "^6.0.2" - } + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" }, "util-deprecate": { "version": "1.0.2", @@ -12609,9 +13311,9 @@ } }, "yargs-parser": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-9.0.2.tgz", - "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", + "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", "dev": true, "requires": { "camelcase": "^4.1.0" From e790e2f922d49569c1d7edab43dcd6bad604ddc4 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 18 Jul 2018 00:58:59 -0700 Subject: [PATCH 043/371] test: use strictEqual in tests (#53) --- packages/google-container/test/gapic-v1.js | 60 +++++++++++----------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js index b9a59e856e7..33e3a12d5ec 100644 --- a/packages/google-container/test/gapic-v1.js +++ b/packages/google-container/test/gapic-v1.js @@ -77,7 +77,7 @@ describe('ClusterManagerClient', () => { client.listClusters(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -187,7 +187,7 @@ describe('ClusterManagerClient', () => { client.getCluster(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -269,7 +269,7 @@ describe('ClusterManagerClient', () => { client.createCluster(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -355,7 +355,7 @@ describe('ClusterManagerClient', () => { client.updateCluster(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -449,7 +449,7 @@ describe('ClusterManagerClient', () => { client.updateNodePool(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -539,7 +539,7 @@ describe('ClusterManagerClient', () => { client.setNodePoolAutoscaling(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -625,7 +625,7 @@ describe('ClusterManagerClient', () => { client.setLoggingService(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -711,7 +711,7 @@ describe('ClusterManagerClient', () => { client.setMonitoringService(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -797,7 +797,7 @@ describe('ClusterManagerClient', () => { client.setAddonsConfig(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -883,7 +883,7 @@ describe('ClusterManagerClient', () => { client.setLocations(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -969,7 +969,7 @@ describe('ClusterManagerClient', () => { client.updateMaster(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1059,7 +1059,7 @@ describe('ClusterManagerClient', () => { client.setMasterAuth(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1141,7 +1141,7 @@ describe('ClusterManagerClient', () => { client.deleteCluster(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1202,7 +1202,7 @@ describe('ClusterManagerClient', () => { client.listOperations(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1284,7 +1284,7 @@ describe('ClusterManagerClient', () => { client.getOperation(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1342,7 +1342,7 @@ describe('ClusterManagerClient', () => { client.cancelOperation(request, err => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); done(); }); }); @@ -1407,7 +1407,7 @@ describe('ClusterManagerClient', () => { client.getServerConfig(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1472,7 +1472,7 @@ describe('ClusterManagerClient', () => { client.listNodePools(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1552,7 +1552,7 @@ describe('ClusterManagerClient', () => { client.getNodePool(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1638,7 +1638,7 @@ describe('ClusterManagerClient', () => { client.createNodePool(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1724,7 +1724,7 @@ describe('ClusterManagerClient', () => { client.deleteNodePool(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1810,7 +1810,7 @@ describe('ClusterManagerClient', () => { client.rollbackNodePoolUpgrade(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1900,7 +1900,7 @@ describe('ClusterManagerClient', () => { client.setNodePoolManagement(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -1990,7 +1990,7 @@ describe('ClusterManagerClient', () => { client.setLabels(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -2076,7 +2076,7 @@ describe('ClusterManagerClient', () => { client.setLegacyAbac(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -2158,7 +2158,7 @@ describe('ClusterManagerClient', () => { client.startIPRotation(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -2240,7 +2240,7 @@ describe('ClusterManagerClient', () => { client.completeIPRotation(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -2330,7 +2330,7 @@ describe('ClusterManagerClient', () => { client.setNodePoolSize(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -2416,7 +2416,7 @@ describe('ClusterManagerClient', () => { client.setNetworkPolicy(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); @@ -2502,7 +2502,7 @@ describe('ClusterManagerClient', () => { client.setMaintenancePolicy(request, (err, response) => { assert(err instanceof Error); - assert.equal(err.code, FAKE_STATUS_CODE); + assert.strictEqual(err.code, FAKE_STATUS_CODE); assert(typeof response === 'undefined'); done(); }); From de614961619c22ace7d843d588a7144d261efc08 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Wed, 18 Jul 2018 07:28:00 -0700 Subject: [PATCH 044/371] chore(deps): update dependency eslint-plugin-node to v7 (#52) --- packages/google-container/package-lock.json | 79 ++++++++++++++++----- packages/google-container/package.json | 2 +- 2 files changed, 64 insertions(+), 17 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 97fc6f65a63..4b129ff9866 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -318,6 +318,7 @@ "version": "0.1.4", "bundled": true, "dev": true, + "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -1446,7 +1447,8 @@ "longest": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "loose-envify": { "version": "1.3.1", @@ -2805,6 +2807,7 @@ "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "dev": true, + "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -2816,6 +2819,7 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, + "optional": true, "requires": { "is-buffer": "^1.1.5" } @@ -5219,18 +5223,44 @@ } } }, + "eslint-plugin-es": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-1.3.1.tgz", + "integrity": "sha512-9XcVyZiQRVeFjqHw8qHNDAZcQLqaHlOGGpeYqzYh8S4JYCWTCO3yzyen8yVmA5PratfzTRWDwCOFphtDEG+w/w==", + "dev": true, + "requires": { + "eslint-utils": "^1.3.0", + "regexpp": "^2.0.0" + }, + "dependencies": { + "regexpp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.0.tgz", + "integrity": "sha512-g2FAVtR8Uh8GO1Nv5wpxW7VFVwHcCEr4wyA8/MHiRkO8uHoR5ntAA8Uq3P1vvMTX/BeQiRVSpDGLd+Wn5HNOTA==", + "dev": true + } + } + }, "eslint-plugin-node": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-6.0.1.tgz", - "integrity": "sha512-Q/Cc2sW1OAISDS+Ji6lZS2KV4b7ueA/WydVWd1BECTQwVvfQy5JAi3glhINoKzoMnfnuRgNP+ZWKrGAbp3QDxw==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-7.0.1.tgz", + "integrity": "sha512-lfVw3TEqThwq0j2Ba/Ckn2ABdwmL5dkOgAux1rvOk6CO7A6yGyPI2+zIxN6FyNkp1X1X/BSvKOceD6mBWSj4Yw==", "dev": true, "requires": { - "ignore": "^3.3.6", + "eslint-plugin-es": "^1.3.1", + "eslint-utils": "^1.3.1", + "ignore": "^4.0.2", "minimatch": "^3.0.4", - "resolve": "^1.3.3", - "semver": "^5.4.1" + "resolve": "^1.8.1", + "semver": "^5.5.0" }, "dependencies": { + "ignore": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.2.tgz", + "integrity": "sha512-uoxnT7PYpyEnsja+yX+7v49B7LXxmzDJ2JALqHH3oEGzpM2U1IGcbfnOr8Dt57z3B/UWs7/iAgPFbmye8m4I0g==", + "dev": true + }, "resolve": { "version": "1.8.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", @@ -5874,12 +5904,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -5894,17 +5926,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -6021,7 +6056,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -6033,6 +6069,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -6047,6 +6084,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -6054,12 +6092,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -6078,6 +6118,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -6158,7 +6199,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -6170,6 +6212,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -6291,6 +6334,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -8219,7 +8263,8 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true + "dev": true, + "optional": true }, "loose-envify": { "version": "1.4.0", @@ -8805,6 +8850,7 @@ "version": "0.1.4", "bundled": true, "dev": true, + "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -9747,7 +9793,8 @@ "longest": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "lru-cache": { "version": "4.1.3", diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 0a91fa47b80..d1e0885dacd 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -56,7 +56,7 @@ "codecov": "^3.0.0", "eslint": "^5.0.1", "eslint-config-prettier": "^2.9.0", - "eslint-plugin-node": "^6.0.0", + "eslint-plugin-node": "^7.0.0", "eslint-plugin-prettier": "^2.3.1", "extend": "^3.0.1", "ink-docstrap": "^1.3.2", From d3c3e661f81a04c48ce3940accd4c07f304c7d92 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Tue, 24 Jul 2018 10:05:17 -0700 Subject: [PATCH 045/371] chore(deps): lock file maintenance (#54) --- packages/google-container/package-lock.json | 103 +++++++++----------- 1 file changed, 44 insertions(+), 59 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 4b129ff9866..05978409301 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -223,9 +223,9 @@ } }, "@google-cloud/nodejs-repo-tools": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-2.3.1.tgz", - "integrity": "sha512-yIOn92sjHwpF/eORQWjv7QzQPcESSRCsZshdmeX40RGRlB0+HPODRDghZq0GiCqe6zpIYZvKmiKiYd3u52P/7Q==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-2.3.2.tgz", + "integrity": "sha512-Zah0wZcVifSpKIy5ulTFyGpHYAA8h/biYy8X7J2UvaXga5XlyruKrXo2K1VmBxB9MDPXa0Duz8M003pe2Ras3w==", "dev": true, "requires": { "ava": "0.25.0", @@ -318,7 +318,6 @@ "version": "0.1.4", "bundled": true, "dev": true, - "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -1447,8 +1446,7 @@ "longest": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "loose-envify": { "version": "1.3.1", @@ -2756,14 +2754,14 @@ } }, "@types/long": { - "version": "3.0.32", - "resolved": "https://registry.npmjs.org/@types/long/-/long-3.0.32.tgz", - "integrity": "sha512-ZXyOOm83p7X8p3s0IYM3VeueNmHpkk/yMlP8CLeOnEcu6hIwPH7YjZBvhQkR0ZFS2DqZAxKtJ/M5fcuv3OU5BA==" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz", + "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" }, "@types/node": { - "version": "8.10.21", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.21.tgz", - "integrity": "sha512-87XkD9qDXm8fIax+5y7drx84cXsu34ZZqfB7Cial3Q/2lxSoJ/+DRaWckkCbxP41wFSIrrb939VhzaNxj4eY1w==" + "version": "10.5.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.2.tgz", + "integrity": "sha512-m9zXmifkZsMHZBOyxZWilMwmTlpC8x5Ty360JKTiXvlXZfBWYpsg9ZZvP/Ye+iZUh+Q+MxDLjItVTWIsfwz+8Q==" }, "acorn": { "version": "5.7.1", @@ -2807,7 +2805,6 @@ "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "dev": true, - "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -2819,7 +2816,6 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, - "optional": true, "requires": { "is-buffer": "^1.1.5" } @@ -5091,9 +5087,9 @@ } }, "eslint": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.1.0.tgz", - "integrity": "sha512-DyH6JsoA1KzA5+OSWFjg56DFJT+sDLO0yokaPZ9qY0UEmYrPA1gEX/G1MnVkmRDsksG4H1foIVz2ZXXM3hHYvw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.2.0.tgz", + "integrity": "sha512-zlggW1qp7/TBjwLfouRoY7eWXrXwJZFqCdIxxh0/LVB/QuuKuIMkzyUZEcDo6LBadsry5JcEMxIqd3H/66CXVg==", "dev": true, "requires": { "ajv": "^6.5.0", @@ -5112,7 +5108,7 @@ "functional-red-black-tree": "^1.0.1", "glob": "^7.1.2", "globals": "^11.7.0", - "ignore": "^3.3.3", + "ignore": "^4.0.2", "imurmurhash": "^0.1.4", "inquirer": "^5.2.0", "is-resolvable": "^1.1.0", @@ -5189,6 +5185,12 @@ "integrity": "sha512-K8BNSPySfeShBQXsahYB/AbbWruVOTyVpgoIDnl8odPpeSfP2J5QO2oLFFdl2j7GfDCtZj2bMKar2T49itTPCg==", "dev": true }, + "ignore": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.2.tgz", + "integrity": "sha512-uoxnT7PYpyEnsja+yX+7v49B7LXxmzDJ2JALqHH3oEGzpM2U1IGcbfnOr8Dt57z3B/UWs7/iAgPFbmye8m4I0g==", + "dev": true + }, "json-schema-traverse": { "version": "0.4.1", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", @@ -5539,9 +5541,9 @@ } }, "extend": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", - "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=" + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "extend-shallow": { "version": "3.0.2", @@ -5904,14 +5906,12 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -5926,20 +5926,17 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -6056,8 +6053,7 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -6069,7 +6065,6 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -6084,7 +6079,6 @@ "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -6092,14 +6086,12 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, - "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -6118,7 +6110,6 @@ "version": "0.5.1", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -6199,8 +6190,7 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "object-assign": { "version": "4.1.1", @@ -6212,7 +6202,6 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { "wrappy": "1" } @@ -6334,7 +6323,6 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -8263,8 +8251,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true, - "optional": true + "dev": true }, "loose-envify": { "version": "1.4.0", @@ -8545,18 +8532,18 @@ "integrity": "sha512-OEUllcVoydBHGN1z84yfQDimn58pZNNNXgZlHXSboxMlFvgI6MXSWpWKpFRra7H1HxpVhHTkrghfRW49k6yjeg==" }, "mime-db": { - "version": "1.33.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.33.0.tgz", - "integrity": "sha512-BHJ/EKruNIqJf/QahvxwQZXKygOQ256myeN/Ew+THcAa5q+PjyTTMMeNQC4DZw5AwfvelsUrA6B67NKMqXDbzQ==", + "version": "1.35.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz", + "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg==", "dev": true }, "mime-types": { - "version": "2.1.18", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", - "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", + "version": "2.1.19", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz", + "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==", "dev": true, "requires": { - "mime-db": "~1.33.0" + "mime-db": "~1.35.0" } }, "mimic-fn": { @@ -8850,7 +8837,6 @@ "version": "0.1.4", "bundled": true, "dev": true, - "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -9793,8 +9779,7 @@ "longest": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "lru-cache": { "version": "4.1.3", @@ -11526,9 +11511,9 @@ "dev": true }, "protobufjs": { - "version": "6.8.6", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.6.tgz", - "integrity": "sha512-eH2OTP9s55vojr3b7NBaF9i4WhWPkv/nq55nznWNp/FomKrLViprUcqnBjHph2tFQ+7KciGPTPsVWGz0SOhL0Q==", + "version": "6.8.8", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz", + "integrity": "sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw==", "requires": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -11540,8 +11525,8 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", - "@types/long": "^3.0.32", - "@types/node": "^8.9.4", + "@types/long": "^4.0.0", + "@types/node": "^10.1.0", "long": "^4.0.0" } }, From e0d7af51d912ef2ddd245d1f19aca4d7bba82a25 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 30 Jul 2018 07:52:04 -0700 Subject: [PATCH 046/371] chore: require node 8 for samples (#56) --- packages/google-container/samples/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 66c5034c475..a301bdca496 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -4,7 +4,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=6.0.0" + "node": ">=8" }, "repository": "googleapis/nodejs-cloud-container", "private": true, From 0cf0eaea2de1c21f203e8d88e2d826ac5e9bed1f Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 30 Jul 2018 13:49:30 -0700 Subject: [PATCH 047/371] chore: move mocha options to mocha.opts (#55) --- packages/google-container/package.json | 4 ++-- packages/google-container/test/mocha.opts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 packages/google-container/test/mocha.opts diff --git a/packages/google-container/package.json b/packages/google-container/package.json index d1e0885dacd..e1836ab4d2f 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -38,9 +38,9 @@ "test": "npm run cover", "generate-scaffolding": "repo-tools generate all", "generate-scaffolding-samples": "repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json", - "cover": "nyc --reporter=lcov mocha --require intelli-espower-loader test/*.js && nyc report", + "cover": "nyc --reporter=lcov mocha test/*.js && nyc report", "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", - "test-no-cover": "mocha test/*.js --no-timeouts", + "test-no-cover": "mocha test/*.js", "lint": "eslint src/ samples/ system-test/ test/ smoke-test/", "prettier": "prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js smoke-test/*.js", "docs": "jsdoc -c .jsdoc.js", diff --git a/packages/google-container/test/mocha.opts b/packages/google-container/test/mocha.opts new file mode 100644 index 00000000000..3e740ac6e4c --- /dev/null +++ b/packages/google-container/test/mocha.opts @@ -0,0 +1,2 @@ +--require intelli-espower-loader +--timeout 10000 From 26719c99fc0cdea3e5edfc5bcd4af7ff5792ba2b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Mon, 30 Jul 2018 18:45:21 -0700 Subject: [PATCH 048/371] chore(deps): lock file maintenance (#57) --- packages/google-container/package-lock.json | 45 +++++++++++---------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 05978409301..b0f5db3b899 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -223,9 +223,9 @@ } }, "@google-cloud/nodejs-repo-tools": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-2.3.2.tgz", - "integrity": "sha512-Zah0wZcVifSpKIy5ulTFyGpHYAA8h/biYy8X7J2UvaXga5XlyruKrXo2K1VmBxB9MDPXa0Duz8M003pe2Ras3w==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-2.3.3.tgz", + "integrity": "sha512-aow6Os43uhdgshSe/fr43ESHNl/kHhikim9AOqIMUzEb6mip6H4d8GFKgpO/yoqUUTIhCN3sbpkKktMI5mOQHw==", "dev": true, "requires": { "ava": "0.25.0", @@ -2759,9 +2759,9 @@ "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" }, "@types/node": { - "version": "10.5.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.2.tgz", - "integrity": "sha512-m9zXmifkZsMHZBOyxZWilMwmTlpC8x5Ty360JKTiXvlXZfBWYpsg9ZZvP/Ye+iZUh+Q+MxDLjItVTWIsfwz+8Q==" + "version": "10.5.4", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.4.tgz", + "integrity": "sha512-8TqvB0ReZWwtcd3LXq3YSrBoLyXFgBX/sBZfGye9+YS8zH7/g+i6QRIuiDmwBoTzcQ/pk89nZYTYU4c5akKkzw==" }, "acorn": { "version": "5.7.1", @@ -4848,13 +4848,14 @@ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" }, "ecc-jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", - "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", "dev": true, "optional": true, "requires": { - "jsbn": "~0.1.0" + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" } }, "ecdsa-sig-formatter": { @@ -6668,9 +6669,9 @@ "dev": true }, "grpc": { - "version": "1.13.0", - "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.13.0.tgz", - "integrity": "sha512-jGxWFYzttSz9pi8mu283jZvo2zIluWonQ918GMHKx8grT57GIVlvx7/82fo7AGS75lbkPoO1T6PZLvCRD9Pbtw==", + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.13.1.tgz", + "integrity": "sha512-yl0xChnlUISTefOPU2NQ1cYPh5m/DTatEUV6jdRyQPE9NCrtPq7Gn6J2alMTglN7ufYbJapOd00dvhGurHH6HQ==", "requires": { "lodash": "^4.17.5", "nan": "^2.0.0", @@ -6884,12 +6885,12 @@ } }, "node-pre-gyp": { - "version": "0.10.2", + "version": "0.10.3", "bundled": true, "requires": { "detect-libc": "^1.0.2", "mkdirp": "^0.5.1", - "needle": "^2.2.0", + "needle": "^2.2.1", "nopt": "^4.0.1", "npm-packlist": "^1.1.6", "npmlog": "^4.0.2", @@ -6912,7 +6913,7 @@ "bundled": true }, "npm-packlist": { - "version": "1.1.10", + "version": "1.1.11", "bundled": true, "requires": { "ignore-walk": "^3.0.1", @@ -7869,9 +7870,9 @@ "dev": true }, "istanbul-lib-instrument": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-2.3.1.tgz", - "integrity": "sha512-h9Vg3nfbxrF0PK0kZiNiMAyL8zXaLiBP/BXniaKSwVvAi1TaumYV2b0wPdmy1CRX3irYbYD1p4Wjbv4uyECiiQ==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-2.3.2.tgz", + "integrity": "sha512-l7TD/VnBsIB2OJvSyxaLW/ab1+92dxZNH9wLH7uHPPioy3JZ8tnx2UXUdKmdkgmP2EFPzg64CToUP6dAS3U32Q==", "dev": true, "requires": { "@babel/generator": "7.0.0-beta.51", @@ -11471,9 +11472,9 @@ "dev": true }, "prettier": { - "version": "1.13.7", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.13.7.tgz", - "integrity": "sha512-KIU72UmYPGk4MujZGYMFwinB7lOf2LsDNGSOC8ufevsrPLISrZbNJlWstRi3m0AMuszbH+EFSQ/r6w56RSPK6w==", + "version": "1.14.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.0.tgz", + "integrity": "sha512-KtQ2EGaUwf2EyDfp1fxyEb0PqGKakVm0WyXwDt6u+cAoxbO2Z2CwKvOe3+b4+F2IlO9lYHi1kqFuRM70ddBnow==", "dev": true }, "pretty-ms": { From 261752b4cf1364f4b9ca553682808aded939c3ce Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Wed, 1 Aug 2018 17:17:52 -0700 Subject: [PATCH 049/371] fix(deps): update dependency google-gax to ^0.18.0 (#58) --- packages/google-container/package-lock.json | 85 ++++++++++++++++----- packages/google-container/package.json | 2 +- 2 files changed, 66 insertions(+), 21 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index b0f5db3b899..697063d1626 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -318,6 +318,7 @@ "version": "0.1.4", "bundled": true, "dev": true, + "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -1446,7 +1447,8 @@ "longest": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "loose-envify": { "version": "1.3.1", @@ -2624,6 +2626,17 @@ } } }, + "@grpc/proto-loader": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.3.0.tgz", + "integrity": "sha512-9b8S/V+3W4Gv7G/JKSZ48zApgyYbfIR7mAC9XNnaSWme3zj57MIESu0ELzm9j5oxNIpFG8DgO00iJMIUZ5luqw==", + "requires": { + "@types/lodash": "^4.14.104", + "@types/node": "^9.4.6", + "lodash": "^4.17.5", + "protobufjs": "^6.8.6" + } + }, "@ladjs/time-require": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/@ladjs/time-require/-/time-require-0.1.4.tgz", @@ -2753,15 +2766,20 @@ "samsam": "1.3.0" } }, + "@types/lodash": { + "version": "4.14.115", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.115.tgz", + "integrity": "sha512-9K/P4XMQxk61omAzQh3bbbFiqnG17eLcFysjlAYz0aPcYrVo8T+ujaCeIeY0Gpzux7x1YbxtEtLKB7ZWf79qdg==" + }, "@types/long": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz", "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" }, "@types/node": { - "version": "10.5.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.4.tgz", - "integrity": "sha512-8TqvB0ReZWwtcd3LXq3YSrBoLyXFgBX/sBZfGye9+YS8zH7/g+i6QRIuiDmwBoTzcQ/pk89nZYTYU4c5akKkzw==" + "version": "9.6.25", + "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.25.tgz", + "integrity": "sha512-uZpzO9MKSHy7zBiTtziA3JgZP3upcAvLTASkKgheLj6/rNZmRX4UyvsFYaY2kbYcmmh8bNZ2T0eocBRCfZdGvQ==" }, "acorn": { "version": "5.7.1", @@ -2805,6 +2823,7 @@ "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "dev": true, + "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -2816,6 +2835,7 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, + "optional": true, "requires": { "is-buffer": "^1.1.5" } @@ -5773,9 +5793,9 @@ "dev": true }, "follow-redirects": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.1.tgz", - "integrity": "sha512-v9GI1hpaqq1ZZR6pBD1+kI7O24PhDvNGNodjS3MdcEqyrahCp8zbtpv+2B/krUnSmUH80lbAS7MrdeK5IylgKg==", + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.2.tgz", + "integrity": "sha512-kssLorP/9acIdpQ2udQVTiCS5LQmdEz9mvdIfDcl1gYX2tPKFADHSyFdvJS040XdFsPzemWtgI3q8mFVCxtX8A==", "requires": { "debug": "^3.1.0" }, @@ -5907,12 +5927,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -5927,17 +5949,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -6054,7 +6079,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -6066,6 +6092,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -6080,6 +6107,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -6087,12 +6115,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -6111,6 +6141,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -6191,7 +6222,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -6203,6 +6235,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -6324,6 +6357,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -6578,10 +6612,11 @@ } }, "google-gax": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.17.1.tgz", - "integrity": "sha512-fAKvFx++SRr6bGWamWuVOkJzJnQqMgpJkhaB2oEwfFJ91rbFgEmIPRmZZ/MeIVVFUOuHUVyZ8nwjm5peyTZJ6g==", + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.18.0.tgz", + "integrity": "sha512-cF2s3aTw1cWDHsjaYfIizJZT0KJF0FSM3laiCX4O/K0ZcdmeE9PitG2bxRH+dY+Sz094//m+JoH1hBtSyOf67A==", "requires": { + "@grpc/proto-loader": "^0.3.0", "duplexify": "^3.6.0", "extend": "^3.0.1", "globby": "^8.0.1", @@ -6590,7 +6625,7 @@ "grpc": "^1.12.2", "is-stream-ended": "^0.1.4", "lodash": "^4.17.10", - "protobufjs": "^6.8.6", + "protobufjs": "^6.8.8", "retry-request": "^4.0.0", "through2": "^2.0.3" } @@ -8252,7 +8287,8 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true + "dev": true, + "optional": true }, "loose-envify": { "version": "1.4.0", @@ -8838,6 +8874,7 @@ "version": "0.1.4", "bundled": true, "dev": true, + "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -9780,7 +9817,8 @@ "longest": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "lru-cache": { "version": "4.1.3", @@ -11529,6 +11567,13 @@ "@types/long": "^4.0.0", "@types/node": "^10.1.0", "long": "^4.0.0" + }, + "dependencies": { + "@types/node": { + "version": "10.5.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.5.tgz", + "integrity": "sha512-6Qnb1gXbp3g1JX9QVJj3A6ORzc9XCyhokxUKaoonHgNXcQhmk8adhotxfkeK8El9TnFeUuH72yI6jQ5nDJKS6w==" + } } }, "proxyquire": { diff --git a/packages/google-container/package.json b/packages/google-container/package.json index e1836ab4d2f..635a72063a9 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -47,7 +47,7 @@ "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000" }, "dependencies": { - "google-gax": "^0.17.0", + "google-gax": "^0.18.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From bf7e03bdc78ed2f24526fc84595cbc2fc1b33035 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 2 Aug 2018 05:12:28 -0700 Subject: [PATCH 050/371] remove that whitespace (#59) --- packages/google-container/test/mocha.opts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/google-container/test/mocha.opts b/packages/google-container/test/mocha.opts index 3e740ac6e4c..8751e7bae37 100644 --- a/packages/google-container/test/mocha.opts +++ b/packages/google-container/test/mocha.opts @@ -1,2 +1,3 @@ --require intelli-espower-loader --timeout 10000 +--throw-deprecation From c8f1fa7ff13338c3038e4ac016d074d6b80dae19 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Mon, 6 Aug 2018 19:07:57 -0700 Subject: [PATCH 051/371] chore(deps): lock file maintenance (#61) --- packages/google-container/package-lock.json | 128 ++++++++------------ 1 file changed, 51 insertions(+), 77 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 697063d1626..1c36fc071ac 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -318,7 +318,6 @@ "version": "0.1.4", "bundled": true, "dev": true, - "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -1447,8 +1446,7 @@ "longest": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "loose-envify": { "version": "1.3.1", @@ -2767,9 +2765,9 @@ } }, "@types/lodash": { - "version": "4.14.115", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.115.tgz", - "integrity": "sha512-9K/P4XMQxk61omAzQh3bbbFiqnG17eLcFysjlAYz0aPcYrVo8T+ujaCeIeY0Gpzux7x1YbxtEtLKB7ZWf79qdg==" + "version": "4.14.116", + "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.116.tgz", + "integrity": "sha512-lRnAtKnxMXcYYXqOiotTmJd74uawNWuPnsnPrrO7HiFuE3npE2iQhfABatbYDyxTNqZNuXzcKGhw37R7RjBFLg==" }, "@types/long": { "version": "4.0.0", @@ -2823,7 +2821,6 @@ "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", "dev": true, - "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -2835,7 +2832,6 @@ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, - "optional": true, "requires": { "is-buffer": "^1.1.5" } @@ -3103,10 +3099,13 @@ } }, "asn1": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", - "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", - "dev": true + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "dev": true, + "requires": { + "safer-buffer": "~2.1.0" + } }, "assert-plus": { "version": "1.0.0", @@ -3332,9 +3331,9 @@ "dev": true }, "aws4": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.7.0.tgz", - "integrity": "sha512-32NDda82rhwD9/JBCCkB+MRYDp0oSvlo2IL6rQWA10PQi7tDUM3eqMSltXmY+Oyl/7N3P3qNtAlv7X0d9bI28w==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", + "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", "dev": true }, "axios": { @@ -3971,9 +3970,9 @@ "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" }, "buffer-from": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.0.tgz", - "integrity": "sha512-c5mRlguI/Pe2dSZmpER62rSCu0ryKmWddzRYsuXc50U2/g8jMOulc31VZMa4mYx31U5xsmSOpDCgH88Vl9cDGQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", "dev": true }, "builtin-modules": { @@ -5108,9 +5107,9 @@ } }, "eslint": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.2.0.tgz", - "integrity": "sha512-zlggW1qp7/TBjwLfouRoY7eWXrXwJZFqCdIxxh0/LVB/QuuKuIMkzyUZEcDo6LBadsry5JcEMxIqd3H/66CXVg==", + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.3.0.tgz", + "integrity": "sha512-N/tCqlMKkyNvAvLu+zI9AqDasnSLt00K+Hu8kdsERliC9jYEc8ck12XtjvOXrBKu8fK6RrBcN9bat6Xk++9jAg==", "dev": true, "requires": { "ajv": "^6.5.0", @@ -5144,7 +5143,7 @@ "path-is-inside": "^1.0.2", "pluralize": "^7.0.0", "progress": "^2.0.0", - "regexpp": "^1.1.0", + "regexpp": "^2.0.0", "require-uncached": "^1.0.3", "semver": "^5.5.0", "string.prototype.matchall": "^2.0.0", @@ -5207,9 +5206,9 @@ "dev": true }, "ignore": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.2.tgz", - "integrity": "sha512-uoxnT7PYpyEnsja+yX+7v49B7LXxmzDJ2JALqHH3oEGzpM2U1IGcbfnOr8Dt57z3B/UWs7/iAgPFbmye8m4I0g==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.3.tgz", + "integrity": "sha512-Z/vAH2GGIEATQnBVXMclE2IGV6i0GyVngKThcGZ5kHgHMxLo9Ow2+XHRq1aEKEej5vOF1TPJNbvX6J/anT0M7A==", "dev": true }, "json-schema-traverse": { @@ -5254,14 +5253,6 @@ "requires": { "eslint-utils": "^1.3.0", "regexpp": "^2.0.0" - }, - "dependencies": { - "regexpp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.0.tgz", - "integrity": "sha512-g2FAVtR8Uh8GO1Nv5wpxW7VFVwHcCEr4wyA8/MHiRkO8uHoR5ntAA8Uq3P1vvMTX/BeQiRVSpDGLd+Wn5HNOTA==", - "dev": true - } } }, "eslint-plugin-node": { @@ -5279,9 +5270,9 @@ }, "dependencies": { "ignore": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.2.tgz", - "integrity": "sha512-uoxnT7PYpyEnsja+yX+7v49B7LXxmzDJ2JALqHH3oEGzpM2U1IGcbfnOr8Dt57z3B/UWs7/iAgPFbmye8m4I0g==", + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.3.tgz", + "integrity": "sha512-Z/vAH2GGIEATQnBVXMclE2IGV6i0GyVngKThcGZ5kHgHMxLo9Ow2+XHRq1aEKEej5vOF1TPJNbvX6J/anT0M7A==", "dev": true }, "resolve": { @@ -5927,14 +5918,12 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -5949,20 +5938,17 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -6079,8 +6065,7 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -6092,7 +6077,6 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -6107,7 +6091,6 @@ "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -6115,14 +6098,12 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, - "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -6141,7 +6122,6 @@ "version": "0.5.1", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -6222,8 +6202,7 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "object-assign": { "version": "4.1.1", @@ -6235,7 +6214,6 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { "wrappy": "1" } @@ -6357,7 +6335,6 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -8287,8 +8264,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true, - "optional": true + "dev": true }, "loose-envify": { "version": "1.4.0", @@ -8874,7 +8850,6 @@ "version": "0.1.4", "bundled": true, "dev": true, - "optional": true, "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -9817,8 +9792,7 @@ "longest": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "lru-cache": { "version": "4.1.3", @@ -11244,9 +11218,9 @@ "dev": true }, "path-parse": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", - "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", "dev": true }, "path-to-regexp": { @@ -11570,9 +11544,9 @@ }, "dependencies": { "@types/node": { - "version": "10.5.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.5.tgz", - "integrity": "sha512-6Qnb1gXbp3g1JX9QVJj3A6ORzc9XCyhokxUKaoonHgNXcQhmk8adhotxfkeK8El9TnFeUuH72yI6jQ5nDJKS6w==" + "version": "10.5.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.7.tgz", + "integrity": "sha512-VkKcfuitP+Nc/TaTFH0B8qNmn+6NbI6crLkQonbedViVz7O2w8QV/GERPlkJ4bg42VGHiEWa31CoTOPs1q6z1w==" } } }, @@ -11779,9 +11753,9 @@ } }, "regexpp": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-1.1.0.tgz", - "integrity": "sha512-LOPw8FpgdQF9etWMaAfG/WRthIdXJGYp4mJ2Jgn/2lpkbod9jPn0t9UqN7AxBOKNfzRbYyVfgc7Vk4t/MpnXgw==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.0.tgz", + "integrity": "sha512-g2FAVtR8Uh8GO1Nv5wpxW7VFVwHcCEr4wyA8/MHiRkO8uHoR5ntAA8Uq3P1vvMTX/BeQiRVSpDGLd+Wn5HNOTA==", "dev": true }, "regexpu-core": { @@ -12078,9 +12052,9 @@ "dev": true }, "sanitize-html": { - "version": "1.18.2", - "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.18.2.tgz", - "integrity": "sha512-52ThA+Z7h6BnvpSVbURwChl10XZrps5q7ytjTwWcIe9bmJwnVP6cpEVK2NvDOUhGupoqAvNbUz3cpnJDp4+/pg==", + "version": "1.18.4", + "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.18.4.tgz", + "integrity": "sha512-hjyDYCYrQuhnEjq+5lenLlIfdPBtnZ7z0DkQOC8YGxvkuOInH+1SrkNTj30t4f2/SSv9c5kLniB+uCIpBvYuew==", "dev": true, "requires": { "chalk": "^2.3.0", @@ -13187,9 +13161,9 @@ "dev": true }, "validate-npm-package-license": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.3.tgz", - "integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, "requires": { "spdx-correct": "^3.0.0", From 79da78b1be5dfcfb80ceb1f4d49a937b43c57884 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Tue, 7 Aug 2018 07:50:24 -0700 Subject: [PATCH 052/371] chore(deps): lock file maintenance (#62) --- packages/google-container/package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json index 1c36fc071ac..4d63145c333 100644 --- a/packages/google-container/package-lock.json +++ b/packages/google-container/package-lock.json @@ -2775,9 +2775,9 @@ "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" }, "@types/node": { - "version": "9.6.25", - "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.25.tgz", - "integrity": "sha512-uZpzO9MKSHy7zBiTtziA3JgZP3upcAvLTASkKgheLj6/rNZmRX4UyvsFYaY2kbYcmmh8bNZ2T0eocBRCfZdGvQ==" + "version": "9.6.26", + "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.26.tgz", + "integrity": "sha512-3LKKscYUZdZreOuvnly8oWsCA1TOWtmkV3mbcUnV34f+nqDWJic+4SGjRi1C/sPHnZcSs/x209O+Dgy8aWHt2A==" }, "acorn": { "version": "5.7.1", From 1baec06d121d8eb73bd61568a7b379175a55ae2f Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 7 Aug 2018 14:15:17 -0700 Subject: [PATCH 053/371] chore: ignore package-lock.json (#63) --- .../google-container/.circleci/config.yml | 14 - .../.circleci/get_workflow_name.py | 67 - packages/google-container/.gitignore | 3 +- packages/google-container/package-lock.json | 13383 ---------------- 4 files changed, 2 insertions(+), 13465 deletions(-) delete mode 100644 packages/google-container/.circleci/get_workflow_name.py delete mode 100644 packages/google-container/package-lock.json diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 4c8e5b5d46f..a133c2c5352 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -54,17 +54,6 @@ jobs: user: node steps: &unit_tests_steps - checkout - - run: &remove_package_lock - name: Remove package-lock.json if needed. - command: | - WORKFLOW_NAME=`python .circleci/get_workflow_name.py` - echo "Workflow name: $WORKFLOW_NAME" - if [ "$WORKFLOW_NAME" = "nightly" ]; then - echo "Nightly build detected, removing package-lock.json" - rm -f package-lock.json samples/package-lock.json - else - echo "Not a nightly build, skipping this step." - fi - run: &npm_install_and_link name: Install and link the module command: |- @@ -90,7 +79,6 @@ jobs: user: node steps: - checkout - - run: *remove_package_lock - run: *npm_install_and_link - run: &samples_npm_install_and_link name: Link the module being tested to the samples. @@ -111,7 +99,6 @@ jobs: user: node steps: - checkout - - run: *remove_package_lock - run: *npm_install_and_link - run: name: Build documentation. @@ -122,7 +109,6 @@ jobs: user: node steps: - checkout - - run: *remove_package_lock - run: name: Decrypt credentials. command: | diff --git a/packages/google-container/.circleci/get_workflow_name.py b/packages/google-container/.circleci/get_workflow_name.py deleted file mode 100644 index ff6b58fd24f..00000000000 --- a/packages/google-container/.circleci/get_workflow_name.py +++ /dev/null @@ -1,67 +0,0 @@ -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# 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. - -""" -Get workflow name for the current build using CircleCI API. -Would be great if this information is available in one of -CircleCI environment variables, but it's not there. -https://circleci.ideas.aha.io/ideas/CCI-I-295 -""" - -import json -import os -import sys -import urllib2 - - -def main(): - try: - username = os.environ['CIRCLE_PROJECT_USERNAME'] - reponame = os.environ['CIRCLE_PROJECT_REPONAME'] - build_num = os.environ['CIRCLE_BUILD_NUM'] - except: - sys.stderr.write( - 'Looks like we are not inside CircleCI container. Exiting...\n') - return 1 - - try: - request = urllib2.Request( - "https://circleci.com/api/v1.1/project/github/%s/%s/%s" % - (username, reponame, build_num), - headers={"Accept": "application/json"}) - contents = urllib2.urlopen(request).read() - except: - sys.stderr.write('Cannot query CircleCI API. Exiting...\n') - return 1 - - try: - build_info = json.loads(contents) - except: - sys.stderr.write( - 'Cannot parse JSON received from CircleCI API. Exiting...\n') - return 1 - - try: - workflow_name = build_info['workflows']['workflow_name'] - except: - sys.stderr.write( - 'Cannot get workflow name from CircleCI build info. Exiting...\n') - return 1 - - print workflow_name - return 0 - - -retval = main() -exit(retval) diff --git a/packages/google-container/.gitignore b/packages/google-container/.gitignore index 082cf01ed78..531c77e628b 100644 --- a/packages/google-container/.gitignore +++ b/packages/google-container/.gitignore @@ -10,4 +10,5 @@ system-test/*key.json *.lock .DS_Store google-cloud-logging-winston-*.tgz -google-cloud-logging-bunyan-*.tgz \ No newline at end of file +google-cloud-logging-bunyan-*.tgz +package-lock.json diff --git a/packages/google-container/package-lock.json b/packages/google-container/package-lock.json deleted file mode 100644 index 4d63145c333..00000000000 --- a/packages/google-container/package-lock.json +++ /dev/null @@ -1,13383 +0,0 @@ -{ - "name": "@google-cloud/container", - "version": "0.2.0", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@ava/babel-plugin-throws-helper": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@ava/babel-plugin-throws-helper/-/babel-plugin-throws-helper-2.0.0.tgz", - "integrity": "sha1-L8H+PCEacQcaTsp7j3r1hCzRrnw=", - "dev": true - }, - "@ava/babel-preset-stage-4": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@ava/babel-preset-stage-4/-/babel-preset-stage-4-1.1.0.tgz", - "integrity": "sha512-oWqTnIGXW3k72UFidXzW0ONlO7hnO9x02S/QReJ7NBGeiBH9cUHY9+EfV6C8PXC6YJH++WrliEq03wMSJGNZFg==", - "dev": true, - "requires": { - "babel-plugin-check-es2015-constants": "^6.8.0", - "babel-plugin-syntax-trailing-function-commas": "^6.20.0", - "babel-plugin-transform-async-to-generator": "^6.16.0", - "babel-plugin-transform-es2015-destructuring": "^6.19.0", - "babel-plugin-transform-es2015-function-name": "^6.9.0", - "babel-plugin-transform-es2015-modules-commonjs": "^6.18.0", - "babel-plugin-transform-es2015-parameters": "^6.21.0", - "babel-plugin-transform-es2015-spread": "^6.8.0", - "babel-plugin-transform-es2015-sticky-regex": "^6.8.0", - "babel-plugin-transform-es2015-unicode-regex": "^6.11.0", - "babel-plugin-transform-exponentiation-operator": "^6.8.0", - "package-hash": "^1.2.0" - }, - "dependencies": { - "md5-hex": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-1.3.0.tgz", - "integrity": "sha1-0sSv6YPENwZiF5uMrRRSGRNQRsQ=", - "dev": true, - "requires": { - "md5-o-matic": "^0.1.1" - } - }, - "package-hash": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-1.2.0.tgz", - "integrity": "sha1-AD5WzVe3NqbtYRTMK4FUJnJ3DkQ=", - "dev": true, - "requires": { - "md5-hex": "^1.3.0" - } - } - } - }, - "@ava/babel-preset-transform-test-files": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@ava/babel-preset-transform-test-files/-/babel-preset-transform-test-files-3.0.0.tgz", - "integrity": "sha1-ze0RlqjY2TgaUJJAq5LpGl7Aafc=", - "dev": true, - "requires": { - "@ava/babel-plugin-throws-helper": "^2.0.0", - "babel-plugin-espower": "^2.3.2" - } - }, - "@ava/write-file-atomic": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ava/write-file-atomic/-/write-file-atomic-2.2.0.tgz", - "integrity": "sha512-BTNB3nGbEfJT+69wuqXFr/bQH7Vr7ihx2xGOMNqPgDGhwspoZhiWumDDZNjBy7AScmqS5CELIOGtPVXESyrnDA==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "slide": "^1.1.5" - } - }, - "@babel/code-frame": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0-beta.51.tgz", - "integrity": "sha1-vXHZsZKvl435FYKdOdQJRFZDmgw=", - "dev": true, - "requires": { - "@babel/highlight": "7.0.0-beta.51" - } - }, - "@babel/generator": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.0.0-beta.51.tgz", - "integrity": "sha1-bHV1/952HQdIXgS67cA5LG2eMPY=", - "dev": true, - "requires": { - "@babel/types": "7.0.0-beta.51", - "jsesc": "^2.5.1", - "lodash": "^4.17.5", - "source-map": "^0.5.0", - "trim-right": "^1.0.1" - }, - "dependencies": { - "jsesc": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.1.tgz", - "integrity": "sha1-5CGiqOINawgZ3yiQj3glJrlt0f4=", - "dev": true - } - } - }, - "@babel/helper-function-name": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.0.0-beta.51.tgz", - "integrity": "sha1-IbSHSiJ8+Z7K/MMKkDAtpaJkBWE=", - "dev": true, - "requires": { - "@babel/helper-get-function-arity": "7.0.0-beta.51", - "@babel/template": "7.0.0-beta.51", - "@babel/types": "7.0.0-beta.51" - } - }, - "@babel/helper-get-function-arity": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.0.0-beta.51.tgz", - "integrity": "sha1-MoGy0EWvlcFyzpGyCCXYXqRnZBE=", - "dev": true, - "requires": { - "@babel/types": "7.0.0-beta.51" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.0.0-beta.51.tgz", - "integrity": "sha1-imw/ZsTSZTUvwHdIT59ugKUauXg=", - "dev": true, - "requires": { - "@babel/types": "7.0.0-beta.51" - } - }, - "@babel/highlight": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.0.0-beta.51.tgz", - "integrity": "sha1-6IRK4loVlcz9QriWI7Q3bKBtIl0=", - "dev": true, - "requires": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", - "js-tokens": "^3.0.0" - } - }, - "@babel/parser": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.0.0-beta.51.tgz", - "integrity": "sha1-J87C30Cd9gr1gnDtj2qlVAnqhvY=", - "dev": true - }, - "@babel/template": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.0.0-beta.51.tgz", - "integrity": "sha1-lgKkCuvPNXrpZ34lMu9fyBD1+/8=", - "dev": true, - "requires": { - "@babel/code-frame": "7.0.0-beta.51", - "@babel/parser": "7.0.0-beta.51", - "@babel/types": "7.0.0-beta.51", - "lodash": "^4.17.5" - } - }, - "@babel/traverse": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.0.0-beta.51.tgz", - "integrity": "sha1-mB2vLOw0emIx06odnhgDsDqqpKg=", - "dev": true, - "requires": { - "@babel/code-frame": "7.0.0-beta.51", - "@babel/generator": "7.0.0-beta.51", - "@babel/helper-function-name": "7.0.0-beta.51", - "@babel/helper-split-export-declaration": "7.0.0-beta.51", - "@babel/parser": "7.0.0-beta.51", - "@babel/types": "7.0.0-beta.51", - "debug": "^3.1.0", - "globals": "^11.1.0", - "invariant": "^2.2.0", - "lodash": "^4.17.5" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "globals": { - "version": "11.7.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.7.0.tgz", - "integrity": "sha512-K8BNSPySfeShBQXsahYB/AbbWruVOTyVpgoIDnl8odPpeSfP2J5QO2oLFFdl2j7GfDCtZj2bMKar2T49itTPCg==", - "dev": true - } - } - }, - "@babel/types": { - "version": "7.0.0-beta.51", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.0.0-beta.51.tgz", - "integrity": "sha1-2AK3tUO1g2x3iqaReXq/APPZfqk=", - "dev": true, - "requires": { - "esutils": "^2.0.2", - "lodash": "^4.17.5", - "to-fast-properties": "^2.0.0" - }, - "dependencies": { - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true - } - } - }, - "@concordance/react": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@concordance/react/-/react-1.0.0.tgz", - "integrity": "sha512-htrsRaQX8Iixlsek8zQU7tE8wcsTQJ5UhZkSPEA8slCDAisKpC/2VgU/ucPn32M5/LjGGXRaUEKvEw1Wiuu4zQ==", - "dev": true, - "requires": { - "arrify": "^1.0.1" - } - }, - "@google-cloud/nodejs-repo-tools": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/@google-cloud/nodejs-repo-tools/-/nodejs-repo-tools-2.3.3.tgz", - "integrity": "sha512-aow6Os43uhdgshSe/fr43ESHNl/kHhikim9AOqIMUzEb6mip6H4d8GFKgpO/yoqUUTIhCN3sbpkKktMI5mOQHw==", - "dev": true, - "requires": { - "ava": "0.25.0", - "colors": "1.1.2", - "fs-extra": "5.0.0", - "got": "8.3.0", - "handlebars": "4.0.11", - "lodash": "4.17.5", - "nyc": "11.7.2", - "proxyquire": "1.8.0", - "semver": "^5.5.0", - "sinon": "6.0.1", - "string": "3.3.3", - "supertest": "3.1.0", - "yargs": "11.0.0", - "yargs-parser": "10.1.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "cliui": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", - "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", - "dev": true, - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "lodash": { - "version": "4.17.5", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.5.tgz", - "integrity": "sha512-svL3uiZf1RwhH+cWrfZn3A4+U58wbP0tGVTLQPbjplZxZ8ROD9VLuNgsRniTlLe7OlSqR79RUehXgpBW/s0IQw==", - "dev": true - }, - "nyc": { - "version": "11.7.2", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-11.7.2.tgz", - "integrity": "sha512-gBt7qwsR1vryYfglVjQRx1D+AtMZW5NbUKxb+lZe8SN8KsheGCPGWEsSC9AGQG+r2+te1+10uPHUCahuqm1nGQ==", - "dev": true, - "requires": { - "archy": "^1.0.0", - "arrify": "^1.0.1", - "caching-transform": "^1.0.0", - "convert-source-map": "^1.5.1", - "debug-log": "^1.0.1", - "default-require-extensions": "^1.0.0", - "find-cache-dir": "^0.1.1", - "find-up": "^2.1.0", - "foreground-child": "^1.5.3", - "glob": "^7.0.6", - "istanbul-lib-coverage": "^1.1.2", - "istanbul-lib-hook": "^1.1.0", - "istanbul-lib-instrument": "^1.10.0", - "istanbul-lib-report": "^1.1.3", - "istanbul-lib-source-maps": "^1.2.3", - "istanbul-reports": "^1.4.0", - "md5-hex": "^1.2.0", - "merge-source-map": "^1.1.0", - "micromatch": "^3.1.10", - "mkdirp": "^0.5.0", - "resolve-from": "^2.0.0", - "rimraf": "^2.6.2", - "signal-exit": "^3.0.1", - "spawn-wrap": "^1.4.2", - "test-exclude": "^4.2.0", - "yargs": "11.1.0", - "yargs-parser": "^8.0.0" - }, - "dependencies": { - "align-text": { - "version": "0.1.4", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2", - "longest": "^1.0.1", - "repeat-string": "^1.5.2" - } - }, - "amdefine": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "ansi-styles": { - "version": "2.2.1", - "bundled": true, - "dev": true - }, - "append-transform": { - "version": "0.4.0", - "bundled": true, - "dev": true, - "requires": { - "default-require-extensions": "^1.0.0" - } - }, - "archy": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "arr-diff": { - "version": "4.0.0", - "bundled": true, - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "arr-union": { - "version": "3.1.0", - "bundled": true, - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "bundled": true, - "dev": true - }, - "arrify": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "assign-symbols": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "async": { - "version": "1.5.2", - "bundled": true, - "dev": true - }, - "atob": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "babel-code-frame": { - "version": "6.26.0", - "bundled": true, - "dev": true, - "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" - } - }, - "babel-generator": { - "version": "6.26.1", - "bundled": true, - "dev": true, - "requires": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.17.4", - "source-map": "^0.5.7", - "trim-right": "^1.0.1" - } - }, - "babel-messages": { - "version": "6.23.0", - "bundled": true, - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-runtime": { - "version": "6.26.0", - "bundled": true, - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-template": { - "version": "6.26.0", - "bundled": true, - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "babel-traverse": { - "version": "6.26.0", - "bundled": true, - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } - }, - "babel-types": { - "version": "6.26.0", - "bundled": true, - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "bundled": true, - "dev": true - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "base": { - "version": "0.11.2", - "bundled": true, - "dev": true, - "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "2.3.2", - "bundled": true, - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "builtin-modules": { - "version": "1.1.1", - "bundled": true, - "dev": true - }, - "cache-base": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - } - }, - "caching-transform": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "md5-hex": "^1.2.0", - "mkdirp": "^0.5.1", - "write-file-atomic": "^1.1.4" - } - }, - "camelcase": { - "version": "1.2.1", - "bundled": true, - "dev": true, - "optional": true - }, - "center-align": { - "version": "0.1.3", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "align-text": "^0.1.3", - "lazy-cache": "^1.0.3" - } - }, - "chalk": { - "version": "1.1.3", - "bundled": true, - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "class-utils": { - "version": "0.3.6", - "bundled": true, - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "cliui": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "center-align": "^0.1.1", - "right-align": "^0.1.1", - "wordwrap": "0.0.2" - }, - "dependencies": { - "wordwrap": { - "version": "0.0.2", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "collection-visit": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - } - }, - "commondir": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "component-emitter": { - "version": "1.2.1", - "bundled": true, - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true, - "dev": true - }, - "convert-source-map": { - "version": "1.5.1", - "bundled": true, - "dev": true - }, - "copy-descriptor": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "core-js": { - "version": "2.5.6", - "bundled": true, - "dev": true - }, - "cross-spawn": { - "version": "4.0.2", - "bundled": true, - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "which": "^1.2.9" - } - }, - "debug": { - "version": "2.6.9", - "bundled": true, - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "debug-log": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "decamelize": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "decode-uri-component": { - "version": "0.2.0", - "bundled": true, - "dev": true - }, - "default-require-extensions": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "strip-bom": "^2.0.0" - } - }, - "define-property": { - "version": "2.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "detect-indent": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "repeating": "^2.0.0" - } - }, - "error-ex": { - "version": "1.3.1", - "bundled": true, - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "bundled": true, - "dev": true - }, - "esutils": { - "version": "2.0.2", - "bundled": true, - "dev": true - }, - "execa": { - "version": "0.7.0", - "bundled": true, - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "dependencies": { - "cross-spawn": { - "version": "5.1.0", - "bundled": true, - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - } - } - }, - "expand-brackets": { - "version": "2.1.4", - "bundled": true, - "dev": true, - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "extend-shallow": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "extglob": { - "version": "2.0.4", - "bundled": true, - "dev": true, - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "fill-range": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "find-cache-dir": { - "version": "0.1.1", - "bundled": true, - "dev": true, - "requires": { - "commondir": "^1.0.1", - "mkdirp": "^0.5.1", - "pkg-dir": "^1.0.0" - } - }, - "find-up": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "for-in": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "foreground-child": { - "version": "1.5.6", - "bundled": true, - "dev": true, - "requires": { - "cross-spawn": "^4", - "signal-exit": "^3.0.0" - } - }, - "fragment-cache": { - "version": "0.2.1", - "bundled": true, - "dev": true, - "requires": { - "map-cache": "^0.2.2" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "get-caller-file": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "get-stream": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "get-value": { - "version": "2.0.6", - "bundled": true, - "dev": true - }, - "glob": { - "version": "7.1.2", - "bundled": true, - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "globals": { - "version": "9.18.0", - "bundled": true, - "dev": true - }, - "graceful-fs": { - "version": "4.1.11", - "bundled": true, - "dev": true - }, - "handlebars": { - "version": "4.0.11", - "bundled": true, - "dev": true, - "requires": { - "async": "^1.4.0", - "optimist": "^0.6.1", - "source-map": "^0.4.4", - "uglify-js": "^2.6" - }, - "dependencies": { - "source-map": { - "version": "0.4.4", - "bundled": true, - "dev": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, - "has-ansi": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "has-flag": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "has-value": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "has-values": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "kind-of": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "hosted-git-info": { - "version": "2.6.0", - "bundled": true, - "dev": true - }, - "imurmurhash": { - "version": "0.1.4", - "bundled": true, - "dev": true - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "bundled": true, - "dev": true - }, - "invariant": { - "version": "2.2.4", - "bundled": true, - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "invert-kv": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-arrayish": { - "version": "0.2.1", - "bundled": true, - "dev": true - }, - "is-buffer": { - "version": "1.1.6", - "bundled": true, - "dev": true - }, - "is-builtin-module": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "builtin-modules": "^1.0.0" - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "bundled": true, - "dev": true - } - } - }, - "is-extendable": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "is-finite": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "is-number": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-odd": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-number": "^4.0.0" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "bundled": true, - "dev": true - } - } - }, - "is-plain-object": { - "version": "2.0.4", - "bundled": true, - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "is-stream": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "is-utf8": { - "version": "0.2.1", - "bundled": true, - "dev": true - }, - "is-windows": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "isexe": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - }, - "istanbul-lib-coverage": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "istanbul-lib-hook": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "append-transform": "^0.4.0" - } - }, - "istanbul-lib-instrument": { - "version": "1.10.1", - "bundled": true, - "dev": true, - "requires": { - "babel-generator": "^6.18.0", - "babel-template": "^6.16.0", - "babel-traverse": "^6.18.0", - "babel-types": "^6.18.0", - "babylon": "^6.18.0", - "istanbul-lib-coverage": "^1.2.0", - "semver": "^5.3.0" - } - }, - "istanbul-lib-report": { - "version": "1.1.3", - "bundled": true, - "dev": true, - "requires": { - "istanbul-lib-coverage": "^1.1.2", - "mkdirp": "^0.5.1", - "path-parse": "^1.0.5", - "supports-color": "^3.1.2" - }, - "dependencies": { - "supports-color": { - "version": "3.2.3", - "bundled": true, - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "istanbul-lib-source-maps": { - "version": "1.2.3", - "bundled": true, - "dev": true, - "requires": { - "debug": "^3.1.0", - "istanbul-lib-coverage": "^1.1.2", - "mkdirp": "^0.5.1", - "rimraf": "^2.6.1", - "source-map": "^0.5.3" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "istanbul-reports": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "requires": { - "handlebars": "^4.0.3" - } - }, - "js-tokens": { - "version": "3.0.2", - "bundled": true, - "dev": true - }, - "jsesc": { - "version": "1.3.0", - "bundled": true, - "dev": true - }, - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - }, - "lazy-cache": { - "version": "1.0.4", - "bundled": true, - "dev": true, - "optional": true - }, - "lcid": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "invert-kv": "^1.0.0" - } - }, - "load-json-file": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - } - }, - "locate-path": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "dependencies": { - "path-exists": { - "version": "3.0.0", - "bundled": true, - "dev": true - } - } - }, - "lodash": { - "version": "4.17.10", - "bundled": true, - "dev": true - }, - "longest": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "loose-envify": { - "version": "1.3.1", - "bundled": true, - "dev": true, - "requires": { - "js-tokens": "^3.0.0" - } - }, - "lru-cache": { - "version": "4.1.3", - "bundled": true, - "dev": true, - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "map-cache": { - "version": "0.2.2", - "bundled": true, - "dev": true - }, - "map-visit": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "object-visit": "^1.0.0" - } - }, - "md5-hex": { - "version": "1.3.0", - "bundled": true, - "dev": true, - "requires": { - "md5-o-matic": "^0.1.1" - } - }, - "md5-o-matic": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "mem": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - } - }, - "merge-source-map": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "bundled": true, - "dev": true - } - } - }, - "micromatch": { - "version": "3.1.10", - "bundled": true, - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "mimic-fn": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true - }, - "mixin-deep": { - "version": "1.3.1", - "bundled": true, - "dev": true, - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "nanomatch": { - "version": "1.2.9", - "bundled": true, - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-odd": "^2.0.0", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "normalize-package-data": { - "version": "2.4.0", - "bundled": true, - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "is-builtin-module": "^1.0.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "npm-run-path": { - "version": "2.0.2", - "bundled": true, - "dev": true, - "requires": { - "path-key": "^2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "dev": true - }, - "object-copy": { - "version": "0.1.0", - "bundled": true, - "dev": true, - "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "object-visit": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "isobject": "^3.0.0" - } - }, - "object.pick": { - "version": "1.3.0", - "bundled": true, - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "once": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "optimist": { - "version": "0.6.1", - "bundled": true, - "dev": true, - "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "os-locale": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "execa": "^0.7.0", - "lcid": "^1.0.0", - "mem": "^1.1.0" - } - }, - "p-finally": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "p-limit": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "parse-json": { - "version": "2.2.0", - "bundled": true, - "dev": true, - "requires": { - "error-ex": "^1.2.0" - } - }, - "pascalcase": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "path-exists": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "path-key": { - "version": "2.0.1", - "bundled": true, - "dev": true - }, - "path-parse": { - "version": "1.0.5", - "bundled": true, - "dev": true - }, - "path-type": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "pify": { - "version": "2.3.0", - "bundled": true, - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "bundled": true, - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "pinkie": "^2.0.0" - } - }, - "pkg-dir": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "find-up": "^1.0.0" - }, - "dependencies": { - "find-up": { - "version": "1.1.2", - "bundled": true, - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - } - } - }, - "posix-character-classes": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "pseudomap": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "read-pkg": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - } - }, - "read-pkg-up": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - }, - "dependencies": { - "find-up": { - "version": "1.1.2", - "bundled": true, - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - } - } - }, - "regenerator-runtime": { - "version": "0.11.1", - "bundled": true, - "dev": true - }, - "regex-not": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - } - }, - "repeat-element": { - "version": "1.1.2", - "bundled": true, - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "bundled": true, - "dev": true - }, - "repeating": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-finite": "^1.0.0" - } - }, - "require-directory": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "require-main-filename": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "resolve-from": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "resolve-url": { - "version": "0.2.1", - "bundled": true, - "dev": true - }, - "ret": { - "version": "0.1.15", - "bundled": true, - "dev": true - }, - "right-align": { - "version": "0.1.3", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "align-text": "^0.1.1" - } - }, - "rimraf": { - "version": "2.6.2", - "bundled": true, - "dev": true, - "requires": { - "glob": "^7.0.5" - } - }, - "safe-regex": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "ret": "~0.1.10" - } - }, - "semver": { - "version": "5.5.0", - "bundled": true, - "dev": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "set-value": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "shebang-command": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "dev": true - }, - "slide": { - "version": "1.1.6", - "bundled": true, - "dev": true - }, - "snapdragon": { - "version": "0.8.2", - "bundled": true, - "dev": true, - "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.2.0" - } - }, - "source-map": { - "version": "0.5.7", - "bundled": true, - "dev": true - }, - "source-map-resolve": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "requires": { - "atob": "^2.0.0", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "source-map-url": { - "version": "0.4.0", - "bundled": true, - "dev": true - }, - "spawn-wrap": { - "version": "1.4.2", - "bundled": true, - "dev": true, - "requires": { - "foreground-child": "^1.5.6", - "mkdirp": "^0.5.0", - "os-homedir": "^1.0.1", - "rimraf": "^2.6.2", - "signal-exit": "^3.0.2", - "which": "^1.3.0" - } - }, - "spdx-correct": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.1.0", - "bundled": true, - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "split-string": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "^3.0.0" - } - }, - "static-extend": { - "version": "0.1.2", - "bundled": true, - "dev": true, - "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "string-width": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "strip-ansi": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-bom": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-utf8": "^0.2.0" - } - }, - "strip-eof": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "supports-color": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "test-exclude": { - "version": "4.2.1", - "bundled": true, - "dev": true, - "requires": { - "arrify": "^1.0.1", - "micromatch": "^3.1.8", - "object-assign": "^4.1.0", - "read-pkg-up": "^1.0.1", - "require-main-filename": "^1.0.1" - } - }, - "to-fast-properties": { - "version": "1.0.3", - "bundled": true, - "dev": true - }, - "to-object-path": { - "version": "0.3.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "to-regex": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - }, - "trim-right": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "uglify-js": { - "version": "2.8.29", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "source-map": "~0.5.1", - "uglify-to-browserify": "~1.0.0", - "yargs": "~3.10.0" - }, - "dependencies": { - "yargs": { - "version": "3.10.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "camelcase": "^1.0.2", - "cliui": "^2.1.0", - "decamelize": "^1.0.0", - "window-size": "0.1.0" - } - } - } - }, - "uglify-to-browserify": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "union-value": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^0.4.3" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "set-value": { - "version": "0.4.3", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.1", - "to-object-path": "^0.3.0" - } - } - } - }, - "unset-value": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "bundled": true, - "dev": true, - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "bundled": true, - "dev": true - } - } - }, - "urix": { - "version": "0.1.0", - "bundled": true, - "dev": true - }, - "use": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.2" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "validate-npm-package-license": { - "version": "3.0.3", - "bundled": true, - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "which": { - "version": "1.3.0", - "bundled": true, - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "window-size": { - "version": "0.1.0", - "bundled": true, - "dev": true, - "optional": true - }, - "wordwrap": { - "version": "0.0.3", - "bundled": true, - "dev": true - }, - "wrap-ansi": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "dependencies": { - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "write-file-atomic": { - "version": "1.3.4", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "slide": "^1.1.5" - } - }, - "y18n": { - "version": "3.2.1", - "bundled": true, - "dev": true - }, - "yallist": { - "version": "2.1.2", - "bundled": true, - "dev": true - }, - "yargs": { - "version": "11.1.0", - "bundled": true, - "dev": true, - "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.1.1", - "find-up": "^2.1.0", - "get-caller-file": "^1.0.1", - "os-locale": "^2.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^9.0.2" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "camelcase": { - "version": "4.1.0", - "bundled": true, - "dev": true - }, - "cliui": { - "version": "4.1.0", - "bundled": true, - "dev": true, - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "yargs-parser": { - "version": "9.0.2", - "bundled": true, - "dev": true, - "requires": { - "camelcase": "^4.1.0" - } - } - } - }, - "yargs-parser": { - "version": "8.1.0", - "bundled": true, - "dev": true, - "requires": { - "camelcase": "^4.1.0" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "bundled": true, - "dev": true - } - } - } - } - }, - "os-locale": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", - "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", - "dev": true, - "requires": { - "execa": "^0.7.0", - "lcid": "^1.0.0", - "mem": "^1.1.0" - } - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "yargs": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-11.0.0.tgz", - "integrity": "sha512-Rjp+lMYQOWtgqojx1dEWorjCofi1YN7AoFvYV7b1gx/7dAAeuI4kN5SZiEvr0ZmsZTOpDRcCqrpI10L31tFkBw==", - "dev": true, - "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.1.1", - "find-up": "^2.1.0", - "get-caller-file": "^1.0.1", - "os-locale": "^2.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^9.0.2" - }, - "dependencies": { - "yargs-parser": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-9.0.2.tgz", - "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", - "dev": true, - "requires": { - "camelcase": "^4.1.0" - } - } - } - } - } - }, - "@grpc/proto-loader": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.3.0.tgz", - "integrity": "sha512-9b8S/V+3W4Gv7G/JKSZ48zApgyYbfIR7mAC9XNnaSWme3zj57MIESu0ELzm9j5oxNIpFG8DgO00iJMIUZ5luqw==", - "requires": { - "@types/lodash": "^4.14.104", - "@types/node": "^9.4.6", - "lodash": "^4.17.5", - "protobufjs": "^6.8.6" - } - }, - "@ladjs/time-require": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/@ladjs/time-require/-/time-require-0.1.4.tgz", - "integrity": "sha512-weIbJqTMfQ4r1YX85u54DKfjLZs2jwn1XZ6tIOP/pFgMwhIN5BAtaCp/1wn9DzyLsDR9tW0R2NIePcVJ45ivQQ==", - "dev": true, - "requires": { - "chalk": "^0.4.0", - "date-time": "^0.1.1", - "pretty-ms": "^0.2.1", - "text-table": "^0.2.0" - }, - "dependencies": { - "ansi-styles": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.0.0.tgz", - "integrity": "sha1-yxAt8cVvUSPquLZ817mAJ6AnkXg=", - "dev": true - }, - "chalk": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.4.0.tgz", - "integrity": "sha1-UZmj3c0MHv4jvAjBsCewYXbgxk8=", - "dev": true, - "requires": { - "ansi-styles": "~1.0.0", - "has-color": "~0.1.0", - "strip-ansi": "~0.1.0" - } - }, - "pretty-ms": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-0.2.2.tgz", - "integrity": "sha1-2oeaaC/zOjcBEEbxPWJ/Z8c7hPY=", - "dev": true, - "requires": { - "parse-ms": "^0.1.0" - } - }, - "strip-ansi": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.1.1.tgz", - "integrity": "sha1-OeipjQRNFQZgq+SmgIrPcLt7yZE=", - "dev": true - } - } - }, - "@mrmlnc/readdir-enhanced": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz", - "integrity": "sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g==", - "requires": { - "call-me-maybe": "^1.0.1", - "glob-to-regexp": "^0.3.0" - } - }, - "@nodelib/fs.stat": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-1.1.0.tgz", - "integrity": "sha512-LAQ1d4OPfSJ/BMbI2DuizmYrrkD9JMaTdi2hQTlI53lQ4kRQPyZQRS4CYQ7O66bnBBnP/oYdRxbk++X0xuFU6A==" - }, - "@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" - }, - "@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" - }, - "@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" - }, - "@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" - }, - "@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", - "requires": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" - }, - "@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" - }, - "@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" - }, - "@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" - }, - "@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" - }, - "@sindresorhus/is": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.7.0.tgz", - "integrity": "sha512-ONhaKPIufzzrlNbqtWFFd+jlnemX6lJAgq9ZeiZtS7I1PIf/la7CW4m83rTXRnVnsMbW2k56pGYu7AUFJD9Pow==", - "dev": true - }, - "@sinonjs/formatio": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz", - "integrity": "sha512-ls6CAMA6/5gG+O/IdsBcblvnd8qcO/l1TYoNeAzp3wcISOxlPXQEus0mLcdwazEkWjaBdaJ3TaxmNgCLWwvWzg==", - "dev": true, - "requires": { - "samsam": "1.3.0" - } - }, - "@types/lodash": { - "version": "4.14.116", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.116.tgz", - "integrity": "sha512-lRnAtKnxMXcYYXqOiotTmJd74uawNWuPnsnPrrO7HiFuE3npE2iQhfABatbYDyxTNqZNuXzcKGhw37R7RjBFLg==" - }, - "@types/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz", - "integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" - }, - "@types/node": { - "version": "9.6.26", - "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.26.tgz", - "integrity": "sha512-3LKKscYUZdZreOuvnly8oWsCA1TOWtmkV3mbcUnV34f+nqDWJic+4SGjRi1C/sPHnZcSs/x209O+Dgy8aWHt2A==" - }, - "acorn": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz", - "integrity": "sha512-d+nbxBUGKg7Arpsvbnlq61mc12ek3EY8EQldM3GPAhWJ1UVxC6TDGbIvUMNU6obBX3i1+ptCIzV4vq0gFPEGVQ==" - }, - "acorn-es7-plugin": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/acorn-es7-plugin/-/acorn-es7-plugin-1.1.7.tgz", - "integrity": "sha1-8u4fMiipDurRJF+asZIusucdM2s=" - }, - "acorn-jsx": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-4.1.1.tgz", - "integrity": "sha512-JY+iV6r+cO21KtntVvFkD+iqjtdpRUpGqKWgfkCdZq1R+kbreEl8EcdcJR4SmiIgsIQT33s6QzheQ9a275Q8xw==", - "dev": true, - "requires": { - "acorn": "^5.0.3" - } - }, - "ajv": { - "version": "5.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.2.tgz", - "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", - "dev": true, - "requires": { - "co": "^4.6.0", - "fast-deep-equal": "^1.0.0", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.3.0" - } - }, - "ajv-keywords": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.2.0.tgz", - "integrity": "sha1-6GuBnGAs+IIa1jdBNpjx3sAhhHo=", - "dev": true - }, - "align-text": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", - "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", - "dev": true, - "requires": { - "kind-of": "^3.0.2", - "longest": "^1.0.1", - "repeat-string": "^1.5.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "amdefine": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", - "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", - "dev": true - }, - "ansi-align": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", - "integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=", - "dev": true, - "requires": { - "string-width": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "ansi-escapes": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.1.0.tgz", - "integrity": "sha512-UgAb8H9D41AQnu/PbWlCofQVcnV4Gs2bBJi9eZPxfU/hgglFh3SMDMENRIqdr7H6XFnXdoknctFByVsCOotTVw==", - "dev": true - }, - "ansi-regex": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "anymatch": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", - "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", - "dev": true, - "requires": { - "micromatch": "^2.1.5", - "normalize-path": "^2.0.0" - }, - "dependencies": { - "arr-diff": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", - "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", - "dev": true, - "requires": { - "arr-flatten": "^1.0.1" - } - }, - "array-unique": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", - "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", - "dev": true - }, - "braces": { - "version": "1.8.5", - "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", - "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", - "dev": true, - "requires": { - "expand-range": "^1.8.1", - "preserve": "^0.2.0", - "repeat-element": "^1.1.2" - } - }, - "expand-brackets": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", - "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", - "dev": true, - "requires": { - "is-posix-bracket": "^0.1.0" - } - }, - "extglob": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", - "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - }, - "micromatch": { - "version": "2.3.11", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", - "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", - "dev": true, - "requires": { - "arr-diff": "^2.0.0", - "array-unique": "^0.2.1", - "braces": "^1.8.2", - "expand-brackets": "^0.1.4", - "extglob": "^0.3.1", - "filename-regex": "^2.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.1", - "kind-of": "^3.0.2", - "normalize-path": "^2.0.1", - "object.omit": "^2.0.0", - "parse-glob": "^3.0.4", - "regex-cache": "^0.4.2" - } - } - } - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "argv": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/argv/-/argv-0.0.2.tgz", - "integrity": "sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas=", - "dev": true - }, - "arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=" - }, - "arr-exclude": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/arr-exclude/-/arr-exclude-1.0.0.tgz", - "integrity": "sha1-38fC5VKicHI8zaBM8xKMjL/lxjE=", - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==" - }, - "arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=" - }, - "array-differ": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-differ/-/array-differ-1.0.0.tgz", - "integrity": "sha1-7/UuN1gknTO+QCuLuOVkuytdQDE=", - "dev": true - }, - "array-filter": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-1.0.0.tgz", - "integrity": "sha1-uveeYubvTCpMC4MSMtr/7CUfnYM=" - }, - "array-find": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/array-find/-/array-find-1.0.0.tgz", - "integrity": "sha1-bI4obRHtdoMn+OYuzuhzU8o+eLg=", - "dev": true - }, - "array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", - "dev": true - }, - "array-union": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", - "requires": { - "array-uniq": "^1.0.1" - } - }, - "array-uniq": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=" - }, - "array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" - }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" - }, - "ascli": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ascli/-/ascli-1.0.1.tgz", - "integrity": "sha1-vPpZdKYvGOgcq660lzKrSoj5Brw=", - "requires": { - "colour": "~0.7.1", - "optjs": "~3.2.2" - } - }, - "asn1": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", - "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", - "dev": true, - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "assert-plus": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true - }, - "assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" - }, - "async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", - "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", - "dev": true, - "requires": { - "lodash": "^4.17.10" - } - }, - "async-each": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", - "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, - "atob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.1.tgz", - "integrity": "sha1-ri1acpR38onWDdf5amMUoi3Wwio=" - }, - "auto-bind": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/auto-bind/-/auto-bind-1.2.1.tgz", - "integrity": "sha512-/W9yj1yKmBLwpexwAujeD9YHwYmRuWFGV8HWE7smQab797VeHa4/cnE2NFeDhA+E+5e/OGBI8763EhLjfZ/MXA==", - "dev": true - }, - "ava": { - "version": "0.25.0", - "resolved": "https://registry.npmjs.org/ava/-/ava-0.25.0.tgz", - "integrity": "sha512-4lGNJCf6xL8SvsKVEKxEE46se7JAUIAZoKHw9itTQuwcsydhpAMkBs5gOOiWiwt0JKNIuXWc2/r4r8ZdcNrBEw==", - "dev": true, - "requires": { - "@ava/babel-preset-stage-4": "^1.1.0", - "@ava/babel-preset-transform-test-files": "^3.0.0", - "@ava/write-file-atomic": "^2.2.0", - "@concordance/react": "^1.0.0", - "@ladjs/time-require": "^0.1.4", - "ansi-escapes": "^3.0.0", - "ansi-styles": "^3.1.0", - "arr-flatten": "^1.0.1", - "array-union": "^1.0.1", - "array-uniq": "^1.0.2", - "arrify": "^1.0.0", - "auto-bind": "^1.1.0", - "ava-init": "^0.2.0", - "babel-core": "^6.17.0", - "babel-generator": "^6.26.0", - "babel-plugin-syntax-object-rest-spread": "^6.13.0", - "bluebird": "^3.0.0", - "caching-transform": "^1.0.0", - "chalk": "^2.0.1", - "chokidar": "^1.4.2", - "clean-stack": "^1.1.1", - "clean-yaml-object": "^0.1.0", - "cli-cursor": "^2.1.0", - "cli-spinners": "^1.0.0", - "cli-truncate": "^1.0.0", - "co-with-promise": "^4.6.0", - "code-excerpt": "^2.1.1", - "common-path-prefix": "^1.0.0", - "concordance": "^3.0.0", - "convert-source-map": "^1.5.1", - "core-assert": "^0.2.0", - "currently-unhandled": "^0.4.1", - "debug": "^3.0.1", - "dot-prop": "^4.1.0", - "empower-core": "^0.6.1", - "equal-length": "^1.0.0", - "figures": "^2.0.0", - "find-cache-dir": "^1.0.0", - "fn-name": "^2.0.0", - "get-port": "^3.0.0", - "globby": "^6.0.0", - "has-flag": "^2.0.0", - "hullabaloo-config-manager": "^1.1.0", - "ignore-by-default": "^1.0.0", - "import-local": "^0.1.1", - "indent-string": "^3.0.0", - "is-ci": "^1.0.7", - "is-generator-fn": "^1.0.0", - "is-obj": "^1.0.0", - "is-observable": "^1.0.0", - "is-promise": "^2.1.0", - "last-line-stream": "^1.0.0", - "lodash.clonedeepwith": "^4.5.0", - "lodash.debounce": "^4.0.3", - "lodash.difference": "^4.3.0", - "lodash.flatten": "^4.2.0", - "loud-rejection": "^1.2.0", - "make-dir": "^1.0.0", - "matcher": "^1.0.0", - "md5-hex": "^2.0.0", - "meow": "^3.7.0", - "ms": "^2.0.0", - "multimatch": "^2.1.0", - "observable-to-promise": "^0.5.0", - "option-chain": "^1.0.0", - "package-hash": "^2.0.0", - "pkg-conf": "^2.0.0", - "plur": "^2.0.0", - "pretty-ms": "^3.0.0", - "require-precompiled": "^0.1.0", - "resolve-cwd": "^2.0.0", - "safe-buffer": "^5.1.1", - "semver": "^5.4.1", - "slash": "^1.0.0", - "source-map-support": "^0.5.0", - "stack-utils": "^1.0.1", - "strip-ansi": "^4.0.0", - "strip-bom-buf": "^1.0.0", - "supertap": "^1.0.0", - "supports-color": "^5.0.0", - "trim-off-newlines": "^1.0.1", - "unique-temp-dir": "^1.0.0", - "update-notifier": "^2.3.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "empower-core": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/empower-core/-/empower-core-0.6.2.tgz", - "integrity": "sha1-Wt71ZgiOMfuoC6CjbfR9cJQWkUQ=", - "dev": true, - "requires": { - "call-signature": "0.0.2", - "core-js": "^2.0.0" - } - }, - "globby": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-6.1.0.tgz", - "integrity": "sha1-9abXDoOV4hyFj7BInWTfAkJNUGw=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "dev": true, - "requires": { - "pinkie": "^2.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "ava-init": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/ava-init/-/ava-init-0.2.1.tgz", - "integrity": "sha512-lXwK5LM+2g1euDRqW1mcSX/tqzY1QU7EjKpqayFPPtNRmbSYZ8RzPO5tqluTToijmtjp2M+pNpVdbcHssC4glg==", - "dev": true, - "requires": { - "arr-exclude": "^1.0.0", - "execa": "^0.7.0", - "has-yarn": "^1.0.0", - "read-pkg-up": "^2.0.0", - "write-pkg": "^3.1.0" - } - }, - "aws-sign2": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", - "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", - "dev": true - }, - "aws4": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", - "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", - "dev": true - }, - "axios": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", - "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", - "requires": { - "follow-redirects": "^1.3.0", - "is-buffer": "^1.1.5" - } - }, - "babel-code-frame": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - } - } - }, - "babel-core": { - "version": "6.26.3", - "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", - "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-generator": "^6.26.0", - "babel-helpers": "^6.24.1", - "babel-messages": "^6.23.0", - "babel-register": "^6.26.0", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "convert-source-map": "^1.5.1", - "debug": "^2.6.9", - "json5": "^0.5.1", - "lodash": "^4.17.4", - "minimatch": "^3.0.4", - "path-is-absolute": "^1.0.1", - "private": "^0.1.8", - "slash": "^1.0.0", - "source-map": "^0.5.7" - } - }, - "babel-generator": { - "version": "6.26.1", - "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", - "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", - "dev": true, - "requires": { - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "detect-indent": "^4.0.0", - "jsesc": "^1.3.0", - "lodash": "^4.17.4", - "source-map": "^0.5.7", - "trim-right": "^1.0.1" - }, - "dependencies": { - "jsesc": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", - "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", - "dev": true - } - } - }, - "babel-helper-builder-binary-assignment-operator-visitor": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz", - "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", - "dev": true, - "requires": { - "babel-helper-explode-assignable-expression": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-call-delegate": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", - "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", - "dev": true, - "requires": { - "babel-helper-hoist-variables": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-explode-assignable-expression": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-explode-assignable-expression/-/babel-helper-explode-assignable-expression-6.24.1.tgz", - "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", - "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", - "dev": true, - "requires": { - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helper-get-function-arity": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", - "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-hoist-variables": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", - "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-helper-regex": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", - "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "lodash": "^4.17.4" - } - }, - "babel-helper-remap-async-to-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helper-remap-async-to-generator/-/babel-helper-remap-async-to-generator-6.24.1.tgz", - "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-helpers": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", - "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1" - } - }, - "babel-messages": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-check-es2015-constants": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", - "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-espower": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/babel-plugin-espower/-/babel-plugin-espower-2.4.0.tgz", - "integrity": "sha512-/+SRpy7pKgTI28oEHfn1wkuM5QFAdRq8WNsOOih1dVrdV6A/WbNbRZyl0eX5eyDgtb0lOE27PeDFuCX2j8OxVg==", - "dev": true, - "requires": { - "babel-generator": "^6.1.0", - "babylon": "^6.1.0", - "call-matcher": "^1.0.0", - "core-js": "^2.0.0", - "espower-location-detector": "^1.0.0", - "espurify": "^1.6.0", - "estraverse": "^4.1.1" - } - }, - "babel-plugin-syntax-async-functions": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", - "integrity": "sha1-ytnK0RkbWtY0vzCuCHI5HgZHvpU=", - "dev": true - }, - "babel-plugin-syntax-exponentiation-operator": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz", - "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=", - "dev": true - }, - "babel-plugin-syntax-object-rest-spread": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz", - "integrity": "sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=", - "dev": true - }, - "babel-plugin-syntax-trailing-function-commas": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz", - "integrity": "sha1-ugNgk3+NBuQBgKQ/4NVhb/9TLPM=", - "dev": true - }, - "babel-plugin-transform-async-to-generator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz", - "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", - "dev": true, - "requires": { - "babel-helper-remap-async-to-generator": "^6.24.1", - "babel-plugin-syntax-async-functions": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-destructuring": { - "version": "6.23.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", - "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-function-name": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", - "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", - "dev": true, - "requires": { - "babel-helper-function-name": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-modules-commonjs": { - "version": "6.26.2", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", - "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", - "dev": true, - "requires": { - "babel-plugin-transform-strict-mode": "^6.24.1", - "babel-runtime": "^6.26.0", - "babel-template": "^6.26.0", - "babel-types": "^6.26.0" - } - }, - "babel-plugin-transform-es2015-parameters": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", - "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", - "dev": true, - "requires": { - "babel-helper-call-delegate": "^6.24.1", - "babel-helper-get-function-arity": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-template": "^6.24.1", - "babel-traverse": "^6.24.1", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-spread": { - "version": "6.22.0", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", - "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-es2015-sticky-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", - "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", - "dev": true, - "requires": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-plugin-transform-es2015-unicode-regex": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", - "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", - "dev": true, - "requires": { - "babel-helper-regex": "^6.24.1", - "babel-runtime": "^6.22.0", - "regexpu-core": "^2.0.0" - } - }, - "babel-plugin-transform-exponentiation-operator": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz", - "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", - "dev": true, - "requires": { - "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", - "babel-plugin-syntax-exponentiation-operator": "^6.8.0", - "babel-runtime": "^6.22.0" - } - }, - "babel-plugin-transform-strict-mode": { - "version": "6.24.1", - "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", - "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", - "dev": true, - "requires": { - "babel-runtime": "^6.22.0", - "babel-types": "^6.24.1" - } - }, - "babel-register": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", - "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", - "dev": true, - "requires": { - "babel-core": "^6.26.0", - "babel-runtime": "^6.26.0", - "core-js": "^2.5.0", - "home-or-tmp": "^2.0.0", - "lodash": "^4.17.4", - "mkdirp": "^0.5.1", - "source-map-support": "^0.4.15" - }, - "dependencies": { - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "dev": true, - "requires": { - "source-map": "^0.5.6" - } - } - } - }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - } - }, - "babel-template": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "babel-traverse": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "lodash": "^4.17.4" - } - }, - "babel-traverse": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", - "dev": true, - "requires": { - "babel-code-frame": "^6.26.0", - "babel-messages": "^6.23.0", - "babel-runtime": "^6.26.0", - "babel-types": "^6.26.0", - "babylon": "^6.18.0", - "debug": "^2.6.8", - "globals": "^9.18.0", - "invariant": "^2.2.2", - "lodash": "^4.17.4" - } - }, - "babel-types": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "esutils": "^2.0.2", - "lodash": "^4.17.4", - "to-fast-properties": "^1.0.3" - } - }, - "babylon": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", - "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", - "dev": true - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" - }, - "base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "bcrypt-pbkdf": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", - "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", - "dev": true, - "optional": true, - "requires": { - "tweetnacl": "^0.14.3" - } - }, - "binary-extensions": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", - "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=", - "dev": true - }, - "bluebird": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", - "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==", - "dev": true - }, - "boxen": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz", - "integrity": "sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==", - "dev": true, - "requires": { - "ansi-align": "^2.0.0", - "camelcase": "^4.0.0", - "chalk": "^2.0.1", - "cli-boxes": "^1.0.0", - "string-width": "^2.0.0", - "term-size": "^1.2.0", - "widest-line": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "buf-compare": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buf-compare/-/buf-compare-1.0.1.tgz", - "integrity": "sha1-/vKNqLgROgoNtEMLC2Rntpcws0o=", - "dev": true - }, - "buffer-equal-constant-time": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", - "integrity": "sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk=" - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true - }, - "builtin-modules": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", - "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", - "dev": true - }, - "bytebuffer": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/bytebuffer/-/bytebuffer-5.0.1.tgz", - "integrity": "sha1-WC7qSxqHO20CCkjVjfhfC7ps/d0=", - "requires": { - "long": "~3" - }, - "dependencies": { - "long": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/long/-/long-3.2.0.tgz", - "integrity": "sha1-2CG3E4yhy1gcFymQ7xTbIAtcR0s=" - } - } - }, - "cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - } - }, - "cacheable-request": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-2.1.4.tgz", - "integrity": "sha1-DYCIAbY0KtM8kd+dC0TcCbkeXD0=", - "dev": true, - "requires": { - "clone-response": "1.0.2", - "get-stream": "3.0.0", - "http-cache-semantics": "3.8.1", - "keyv": "3.0.0", - "lowercase-keys": "1.0.0", - "normalize-url": "2.0.1", - "responselike": "1.0.2" - }, - "dependencies": { - "lowercase-keys": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", - "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", - "dev": true - } - } - }, - "caching-transform": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-1.0.1.tgz", - "integrity": "sha1-bb2y8g+Nj7znnz6U6dF0Lc31wKE=", - "dev": true, - "requires": { - "md5-hex": "^1.2.0", - "mkdirp": "^0.5.1", - "write-file-atomic": "^1.1.4" - }, - "dependencies": { - "md5-hex": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-1.3.0.tgz", - "integrity": "sha1-0sSv6YPENwZiF5uMrRRSGRNQRsQ=", - "dev": true, - "requires": { - "md5-o-matic": "^0.1.1" - } - }, - "write-file-atomic": { - "version": "1.3.4", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.3.4.tgz", - "integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "slide": "^1.1.5" - } - } - } - }, - "call-matcher": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/call-matcher/-/call-matcher-1.0.1.tgz", - "integrity": "sha1-UTTQd5hPcSpU2tPL9i3ijc5BbKg=", - "dev": true, - "requires": { - "core-js": "^2.0.0", - "deep-equal": "^1.0.0", - "espurify": "^1.6.0", - "estraverse": "^4.0.0" - } - }, - "call-me-maybe": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", - "integrity": "sha1-JtII6onje1y95gJQoV8DHBak1ms=" - }, - "call-signature": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/call-signature/-/call-signature-0.0.2.tgz", - "integrity": "sha1-qEq8glpV70yysCi9dOIFpluaSZY=" - }, - "caller-path": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-0.1.0.tgz", - "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", - "dev": true, - "requires": { - "callsites": "^0.2.0" - } - }, - "callsites": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-0.2.0.tgz", - "integrity": "sha1-r6uWJikQp/M8GaV3WCXGnzTjUMo=", - "dev": true - }, - "camelcase": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", - "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=" - }, - "camelcase-keys": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", - "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", - "dev": true, - "requires": { - "camelcase": "^2.0.0", - "map-obj": "^1.0.0" - } - }, - "capture-stack-trace": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz", - "integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=", - "dev": true - }, - "caseless": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", - "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", - "dev": true - }, - "catharsis": { - "version": "0.8.9", - "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.8.9.tgz", - "integrity": "sha1-mMyJDKZS3S7w5ws3klMQ/56Q/Is=", - "dev": true, - "requires": { - "underscore-contrib": "~0.3.0" - } - }, - "center-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", - "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", - "dev": true, - "optional": true, - "requires": { - "align-text": "^0.1.3", - "lazy-cache": "^1.0.3" - } - }, - "chalk": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.1.tgz", - "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "chardet": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.4.2.tgz", - "integrity": "sha1-tUc7M9yXxCTl2Y3IfVXU2KKci/I=", - "dev": true - }, - "chokidar": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", - "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", - "dev": true, - "requires": { - "anymatch": "^1.3.0", - "async-each": "^1.0.0", - "fsevents": "^1.0.0", - "glob-parent": "^2.0.0", - "inherits": "^2.0.1", - "is-binary-path": "^1.0.0", - "is-glob": "^2.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.0.0" - }, - "dependencies": { - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - } - } - }, - "ci-info": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-1.1.3.tgz", - "integrity": "sha512-SK/846h/Rcy8q9Z9CAwGBLfCJ6EkjJWdpelWDufQpqVDYq2Wnnv8zlSO6AMQap02jvhVruKKpEtQOufo3pFhLg==", - "dev": true - }, - "circular-json": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/circular-json/-/circular-json-0.3.3.tgz", - "integrity": "sha512-UZK3NBx2Mca+b5LsG7bY183pHWt5Y1xts4P3Pz7ENTwGVnJOUWbRb3ocjvX7hx9tq/yTAdclXm9sZ38gNuem4A==", - "dev": true - }, - "class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "clean-stack": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-1.3.0.tgz", - "integrity": "sha1-noIVAa6XmYbEax1m0tQy2y/UrjE=", - "dev": true - }, - "clean-yaml-object": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/clean-yaml-object/-/clean-yaml-object-0.1.0.tgz", - "integrity": "sha1-Y/sRDcLOGoTcIfbZM0h20BCui2g=", - "dev": true - }, - "cli-boxes": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", - "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=", - "dev": true - }, - "cli-cursor": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", - "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", - "dev": true, - "requires": { - "restore-cursor": "^2.0.0" - } - }, - "cli-spinners": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-1.3.1.tgz", - "integrity": "sha512-1QL4544moEsDVH9T/l6Cemov/37iv1RtoKf7NJ04A60+4MREXNfx/QvavbH6QoGdsD4N4Mwy49cmaINR/o2mdg==", - "dev": true - }, - "cli-truncate": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-1.1.0.tgz", - "integrity": "sha512-bAtZo0u82gCfaAGfSNxUdTI9mNyza7D8w4CVCcaOsy7sgwDzvx6ekr6cuWJqY3UGzgnQ1+4wgENup5eIhgxEYA==", - "dev": true, - "requires": { - "slice-ansi": "^1.0.0", - "string-width": "^2.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "cli-width": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.0.tgz", - "integrity": "sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk=", - "dev": true - }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - }, - "clone-response": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", - "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", - "dev": true, - "requires": { - "mimic-response": "^1.0.0" - } - }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", - "dev": true - }, - "co-with-promise": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co-with-promise/-/co-with-promise-4.6.0.tgz", - "integrity": "sha1-QT59tvWJOmC5Qs9JLEvsk9tBWrc=", - "dev": true, - "requires": { - "pinkie-promise": "^1.0.0" - } - }, - "code-excerpt": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-2.1.1.tgz", - "integrity": "sha512-tJLhH3EpFm/1x7heIW0hemXJTUU5EWl2V0EIX558jp05Mt1U6DVryCgkp3l37cxqs+DNbNgxG43SkwJXpQ14Jw==", - "dev": true, - "requires": { - "convert-to-spaces": "^1.0.1" - } - }, - "code-point-at": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", - "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=" - }, - "codecov": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/codecov/-/codecov-3.0.4.tgz", - "integrity": "sha512-KJyzHdg9B8U9LxXa7hS6jnEW5b1cNckLYc2YpnJ1nEFiOW+/iSzDHp+5MYEIQd9fN3/tC6WmGZmYiwxzkuGp/A==", - "dev": true, - "requires": { - "argv": "^0.0.2", - "ignore-walk": "^3.0.1", - "request": "^2.87.0", - "urlgrey": "^0.4.4" - } - }, - "collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", - "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - } - }, - "color-convert": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.2.tgz", - "integrity": "sha512-3NUJZdhMhcdPn8vJ9v2UQJoH0qqoGUkYTgFEPZaPjEtwmmKUfNV46zZmgB2M5M4DCEQHMaCfWHCxiBflLm04Tg==", - "dev": true, - "requires": { - "color-name": "1.1.1" - } - }, - "color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha1-SxQVMEz1ACjqgWQ2Q72C6gWANok=", - "dev": true - }, - "colors": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", - "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", - "dev": true - }, - "colour": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/colour/-/colour-0.7.1.tgz", - "integrity": "sha1-nLFpkX7F0SwHNtPoaFdG3xyt93g=" - }, - "combined-stream": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", - "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", - "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commander": { - "version": "2.15.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-2.15.1.tgz", - "integrity": "sha512-VlfT9F3V0v+jr4yxPc5gg9s62/fIVWsd2Bk2iD435um1NlGMYdVCq+MjcXnhYq2icNOizHr1kK+5TI6H0Hy0ag==", - "dev": true - }, - "common-path-prefix": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-1.0.0.tgz", - "integrity": "sha1-zVL28HEuC6q5fW+XModPIvR3UsA=", - "dev": true - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, - "component-emitter": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", - "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=" - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" - }, - "concordance": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/concordance/-/concordance-3.0.0.tgz", - "integrity": "sha512-CZBzJ3/l5QJjlZM20WY7+5GP5pMTw+1UEbThcpMw8/rojsi5sBCiD8ZbBLtD+jYpRGAkwuKuqk108c154V9eyQ==", - "dev": true, - "requires": { - "date-time": "^2.1.0", - "esutils": "^2.0.2", - "fast-diff": "^1.1.1", - "function-name-support": "^0.2.0", - "js-string-escape": "^1.0.1", - "lodash.clonedeep": "^4.5.0", - "lodash.flattendeep": "^4.4.0", - "lodash.merge": "^4.6.0", - "md5-hex": "^2.0.0", - "semver": "^5.3.0", - "well-known-symbols": "^1.0.0" - }, - "dependencies": { - "date-time": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/date-time/-/date-time-2.1.0.tgz", - "integrity": "sha512-/9+C44X7lot0IeiyfgJmETtRMhBidBYM2QFFIkGa0U1k+hSyY87Nw7PY3eDqpvCBm7I3WCSfPeZskW/YYq6m4g==", - "dev": true, - "requires": { - "time-zone": "^1.0.0" - } - } - } - }, - "configstore": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.2.tgz", - "integrity": "sha512-vtv5HtGjcYUgFrXc6Kx747B83MRRVS5R1VTEQoXvuP+kMI+if6uywV0nDGoiydJRy4yk7h9od5Og0kxx4zUXmw==", - "dev": true, - "requires": { - "dot-prop": "^4.1.0", - "graceful-fs": "^4.1.2", - "make-dir": "^1.0.0", - "unique-string": "^1.0.0", - "write-file-atomic": "^2.0.0", - "xdg-basedir": "^3.0.0" - } - }, - "convert-source-map": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", - "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", - "dev": true - }, - "convert-to-spaces": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-1.0.2.tgz", - "integrity": "sha1-fj5Iu+bZl7FBfdyihoIEtNPYVxU=", - "dev": true - }, - "cookiejar": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.2.tgz", - "integrity": "sha512-Mw+adcfzPxcPeI+0WlvRrr/3lGVO0bD75SxX6811cxSh1Wbxx7xZBGK1eVtDf6si8rg2lhnUjsVLMFMfbRIuwA==", - "dev": true - }, - "copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" - }, - "core-assert": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/core-assert/-/core-assert-0.2.1.tgz", - "integrity": "sha1-+F4s+b/tKPdzzIs/pcW2m9wC/j8=", - "dev": true, - "requires": { - "buf-compare": "^1.0.0", - "is-error": "^2.2.0" - } - }, - "core-js": { - "version": "2.5.7", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.7.tgz", - "integrity": "sha512-RszJCAxg/PP6uzXVXL6BsxSXx/B05oJAQ2vkJRjyjrEcNVycaqOmNb5OTxZPE3xa5gwZduqza6L9JOCenh/Ecw==" - }, - "core-util-is": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", - "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" - }, - "create-error-class": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", - "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", - "dev": true, - "requires": { - "capture-stack-trace": "^1.0.0" - } - }, - "cross-spawn": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", - "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "crypto-random-string": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", - "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=", - "dev": true - }, - "currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", - "dev": true, - "requires": { - "array-find-index": "^1.0.1" - } - }, - "d": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", - "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", - "dev": true, - "requires": { - "es5-ext": "^0.10.9" - } - }, - "dashdash": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", - "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "date-time": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/date-time/-/date-time-0.1.1.tgz", - "integrity": "sha1-7S9tk9l5DOL9ZtW1/z7dW7y/Owc=", - "dev": true - }, - "debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "requires": { - "ms": "2.0.0" - } - }, - "decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" - }, - "decode-uri-component": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz", - "integrity": "sha1-6zkTMzRYd1y4TNGh+uBiEGu4dUU=" - }, - "decompress-response": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", - "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", - "dev": true, - "requires": { - "mimic-response": "^1.0.0" - } - }, - "deep-equal": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", - "integrity": "sha1-9dJgKStmDghO/0zbyfCK0yR0SLU=", - "dev": true - }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true - }, - "deep-is": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz", - "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=", - "dev": true - }, - "define-properties": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz", - "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", - "requires": { - "foreach": "^2.0.5", - "object-keys": "^1.0.8" - } - }, - "define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "del": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/del/-/del-2.2.2.tgz", - "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", - "dev": true, - "requires": { - "globby": "^5.0.0", - "is-path-cwd": "^1.0.0", - "is-path-in-cwd": "^1.0.0", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "rimraf": "^2.2.8" - }, - "dependencies": { - "globby": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-5.0.0.tgz", - "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", - "dev": true, - "requires": { - "array-union": "^1.0.1", - "arrify": "^1.0.0", - "glob": "^7.0.3", - "object-assign": "^4.0.1", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "dev": true, - "requires": { - "pinkie": "^2.0.0" - } - } - } - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true - }, - "detect-indent": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", - "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", - "dev": true, - "requires": { - "repeating": "^2.0.0" - } - }, - "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true - }, - "diff-match-patch": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/diff-match-patch/-/diff-match-patch-1.0.1.tgz", - "integrity": "sha512-A0QEhr4PxGUMEtKxd6X+JLnOTFd3BfIPSDpsc4dMvj+CbSaErDwTpoTo/nFJDMSrjxLW4BiNq+FbNisAAHhWeQ==" - }, - "dir-glob": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-2.0.0.tgz", - "integrity": "sha512-37qirFDz8cA5fimp9feo43fSuRo2gHwaIn6dXL8Ber1dGwUosDrGZeCCXq57WnIqE4aQ+u3eQZzsk1yOzhdwag==", - "requires": { - "arrify": "^1.0.1", - "path-type": "^3.0.0" - } - }, - "doctrine": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", - "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", - "dev": true, - "requires": { - "esutils": "^2.0.2" - } - }, - "dom-serializer": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz", - "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", - "dev": true, - "requires": { - "domelementtype": "~1.1.1", - "entities": "~1.1.1" - }, - "dependencies": { - "domelementtype": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz", - "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=", - "dev": true - } - } - }, - "domelementtype": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz", - "integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=", - "dev": true - }, - "domhandler": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz", - "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", - "dev": true, - "requires": { - "domelementtype": "1" - } - }, - "domutils": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz", - "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==", - "dev": true, - "requires": { - "dom-serializer": "0", - "domelementtype": "1" - } - }, - "dot-prop": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", - "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", - "dev": true, - "requires": { - "is-obj": "^1.0.0" - } - }, - "duplexer3": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", - "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", - "dev": true - }, - "duplexify": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.6.0.tgz", - "integrity": "sha512-fO3Di4tBKJpYTFHAxTU00BcfWMY9w24r/x21a6rZRbsD/ToUgGxsMbiGRmB7uVAXeGKXD9MwiLZa5E97EVgIRQ==", - "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" - } - }, - "eastasianwidth": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", - "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" - }, - "ecc-jsbn": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", - "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", - "dev": true, - "optional": true, - "requires": { - "jsbn": "~0.1.0", - "safer-buffer": "^2.1.0" - } - }, - "ecdsa-sig-formatter": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.10.tgz", - "integrity": "sha1-HFlQAPBKiJffuFAAiSoPTDOvhsM=", - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "empower": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/empower/-/empower-1.3.0.tgz", - "integrity": "sha512-tP2WqM7QzrPguCCQEQfFFDF+6Pw6YWLQal3+GHQaV+0uIr0S+jyREQPWljE02zFCYPFYLZ3LosiRV+OzTrxPpQ==", - "requires": { - "core-js": "^2.0.0", - "empower-core": "^1.2.0" - } - }, - "empower-assert": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/empower-assert/-/empower-assert-1.1.0.tgz", - "integrity": "sha512-Ylck0Q6p8y/LpNzYeBccaxAPm2ZyuqBgErgZpO9KT0HuQWF0sJckBKCLmgS1/DEXEiyBi9XtYh3clZm5cAdARw==", - "dev": true, - "requires": { - "estraverse": "^4.2.0" - } - }, - "empower-core": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/empower-core/-/empower-core-1.2.0.tgz", - "integrity": "sha512-g6+K6Geyc1o6FdXs9HwrXleCFan7d66G5xSCfSF7x1mJDCes6t0om9lFQG3zOrzh3Bkb/45N0cZ5Gqsf7YrzGQ==", - "requires": { - "call-signature": "0.0.2", - "core-js": "^2.0.0" - } - }, - "end-of-stream": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", - "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", - "requires": { - "once": "^1.4.0" - } - }, - "entities": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz", - "integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA=", - "dev": true - }, - "equal-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/equal-length/-/equal-length-1.0.1.tgz", - "integrity": "sha1-IcoRLUirJLTh5//A5TOdMf38J0w=", - "dev": true - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-abstract": { - "version": "1.12.0", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.12.0.tgz", - "integrity": "sha512-C8Fx/0jFmV5IPoMOFPA9P9G5NtqW+4cOPit3MIuvR2t7Ag2K15EJTpxnHAYTzL+aYQJIESYeXZmDBfOBE1HcpA==", - "dev": true, - "requires": { - "es-to-primitive": "^1.1.1", - "function-bind": "^1.1.1", - "has": "^1.0.1", - "is-callable": "^1.1.3", - "is-regex": "^1.0.4" - } - }, - "es-to-primitive": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.1.1.tgz", - "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", - "dev": true, - "requires": { - "is-callable": "^1.1.1", - "is-date-object": "^1.0.1", - "is-symbol": "^1.0.1" - } - }, - "es5-ext": { - "version": "0.10.45", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.45.tgz", - "integrity": "sha512-FkfM6Vxxfmztilbxxz5UKSD4ICMf5tSpRFtDNtkAhOxZ0EKtX6qwmXNyH/sFyIbX2P/nU5AMiA9jilWsUGJzCQ==", - "dev": true, - "requires": { - "es6-iterator": "~2.0.3", - "es6-symbol": "~3.1.1", - "next-tick": "1" - } - }, - "es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", - "dev": true - }, - "es6-iterator": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", - "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - } - }, - "es6-map": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", - "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14", - "es6-iterator": "~2.0.1", - "es6-set": "~0.1.5", - "es6-symbol": "~3.1.1", - "event-emitter": "~0.3.5" - } - }, - "es6-set": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", - "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14", - "es6-iterator": "~2.0.1", - "es6-symbol": "3.1.1", - "event-emitter": "~0.3.5" - } - }, - "es6-symbol": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", - "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - } - }, - "es6-weak-map": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", - "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "^0.10.14", - "es6-iterator": "^2.0.1", - "es6-symbol": "^3.1.1" - } - }, - "escallmatch": { - "version": "1.5.0", - "resolved": "https://registry.npmjs.org/escallmatch/-/escallmatch-1.5.0.tgz", - "integrity": "sha1-UAmdhugJGwkt+N37w/mm+wWgJNA=", - "dev": true, - "requires": { - "call-matcher": "^1.0.0", - "esprima": "^2.0.0" - }, - "dependencies": { - "esprima": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz", - "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=", - "dev": true - } - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "escodegen": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.11.0.tgz", - "integrity": "sha512-IeMV45ReixHS53K/OmfKAIztN/igDHzTJUhZM3k1jMhIZWjk45SMwAtBsEXiJp3vSPmTcu6CXn7mDvFHRN66fw==", - "dev": true, - "requires": { - "esprima": "^3.1.3", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "esprima": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz", - "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "optional": true - } - } - }, - "escope": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", - "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", - "dev": true, - "requires": { - "es6-map": "^0.1.3", - "es6-weak-map": "^2.0.1", - "esrecurse": "^4.1.0", - "estraverse": "^4.1.1" - } - }, - "eslint": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-5.3.0.tgz", - "integrity": "sha512-N/tCqlMKkyNvAvLu+zI9AqDasnSLt00K+Hu8kdsERliC9jYEc8ck12XtjvOXrBKu8fK6RrBcN9bat6Xk++9jAg==", - "dev": true, - "requires": { - "ajv": "^6.5.0", - "babel-code-frame": "^6.26.0", - "chalk": "^2.1.0", - "cross-spawn": "^6.0.5", - "debug": "^3.1.0", - "doctrine": "^2.1.0", - "eslint-scope": "^4.0.0", - "eslint-utils": "^1.3.1", - "eslint-visitor-keys": "^1.0.0", - "espree": "^4.0.0", - "esquery": "^1.0.1", - "esutils": "^2.0.2", - "file-entry-cache": "^2.0.0", - "functional-red-black-tree": "^1.0.1", - "glob": "^7.1.2", - "globals": "^11.7.0", - "ignore": "^4.0.2", - "imurmurhash": "^0.1.4", - "inquirer": "^5.2.0", - "is-resolvable": "^1.1.0", - "js-yaml": "^3.11.0", - "json-stable-stringify-without-jsonify": "^1.0.1", - "levn": "^0.3.0", - "lodash": "^4.17.5", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", - "natural-compare": "^1.4.0", - "optionator": "^0.8.2", - "path-is-inside": "^1.0.2", - "pluralize": "^7.0.0", - "progress": "^2.0.0", - "regexpp": "^2.0.0", - "require-uncached": "^1.0.3", - "semver": "^5.5.0", - "string.prototype.matchall": "^2.0.0", - "strip-ansi": "^4.0.0", - "strip-json-comments": "^2.0.1", - "table": "^4.0.3", - "text-table": "^0.2.0" - }, - "dependencies": { - "ajv": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", - "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", - "dev": true, - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.1" - } - }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "requires": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - }, - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true - }, - "globals": { - "version": "11.7.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.7.0.tgz", - "integrity": "sha512-K8BNSPySfeShBQXsahYB/AbbWruVOTyVpgoIDnl8odPpeSfP2J5QO2oLFFdl2j7GfDCtZj2bMKar2T49itTPCg==", - "dev": true - }, - "ignore": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.3.tgz", - "integrity": "sha512-Z/vAH2GGIEATQnBVXMclE2IGV6i0GyVngKThcGZ5kHgHMxLo9Ow2+XHRq1aEKEej5vOF1TPJNbvX6J/anT0M7A==", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "eslint-config-prettier": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-2.9.0.tgz", - "integrity": "sha512-ag8YEyBXsm3nmOv1Hz991VtNNDMRa+MNy8cY47Pl4bw6iuzqKbJajXdqUpiw13STdLLrznxgm1hj9NhxeOYq0A==", - "dev": true, - "requires": { - "get-stdin": "^5.0.1" - }, - "dependencies": { - "get-stdin": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-5.0.1.tgz", - "integrity": "sha1-Ei4WFZHiH/TFJTAwVpPyDmOTo5g=", - "dev": true - } - } - }, - "eslint-plugin-es": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-1.3.1.tgz", - "integrity": "sha512-9XcVyZiQRVeFjqHw8qHNDAZcQLqaHlOGGpeYqzYh8S4JYCWTCO3yzyen8yVmA5PratfzTRWDwCOFphtDEG+w/w==", - "dev": true, - "requires": { - "eslint-utils": "^1.3.0", - "regexpp": "^2.0.0" - } - }, - "eslint-plugin-node": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-7.0.1.tgz", - "integrity": "sha512-lfVw3TEqThwq0j2Ba/Ckn2ABdwmL5dkOgAux1rvOk6CO7A6yGyPI2+zIxN6FyNkp1X1X/BSvKOceD6mBWSj4Yw==", - "dev": true, - "requires": { - "eslint-plugin-es": "^1.3.1", - "eslint-utils": "^1.3.1", - "ignore": "^4.0.2", - "minimatch": "^3.0.4", - "resolve": "^1.8.1", - "semver": "^5.5.0" - }, - "dependencies": { - "ignore": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.3.tgz", - "integrity": "sha512-Z/vAH2GGIEATQnBVXMclE2IGV6i0GyVngKThcGZ5kHgHMxLo9Ow2+XHRq1aEKEej5vOF1TPJNbvX6J/anT0M7A==", - "dev": true - }, - "resolve": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.8.1.tgz", - "integrity": "sha512-AicPrAC7Qu1JxPCZ9ZgCZlY35QgFnNqc+0LtbRNxnVw4TXvjQ72wnuL9JQcEBgXkI9JM8MsT9kaQoHcpCRJOYA==", - "dev": true, - "requires": { - "path-parse": "^1.0.5" - } - } - } - }, - "eslint-plugin-prettier": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.2.tgz", - "integrity": "sha512-tGek5clmW5swrAx1mdPYM8oThrBE83ePh7LeseZHBWfHVGrHPhKn7Y5zgRMbU/9D5Td9K4CEmUPjGxA7iw98Og==", - "dev": true, - "requires": { - "fast-diff": "^1.1.1", - "jest-docblock": "^21.0.0" - } - }, - "eslint-scope": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-4.0.0.tgz", - "integrity": "sha512-1G6UTDi7Jc1ELFwnR58HV4fK9OQK4S6N985f166xqXxpjU6plxFISJa2Ba9KCQuFa8RCnj/lSFJbHo7UFDBnUA==", - "dev": true, - "requires": { - "esrecurse": "^4.1.0", - "estraverse": "^4.1.1" - } - }, - "eslint-utils": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-1.3.1.tgz", - "integrity": "sha512-Z7YjnIldX+2XMcjr7ZkgEsOj/bREONV60qYeB/bjMAqqqZ4zxKyWX+BOUkdmRmA9riiIPVvo5x86m5elviOk0Q==", - "dev": true - }, - "eslint-visitor-keys": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz", - "integrity": "sha512-qzm/XxIbxm/FHyH341ZrbnMUpe+5Bocte9xkmFMzPMjRaZMcXww+MpBptFvtU+79L362nqiLhekCxCxDPaUMBQ==", - "dev": true - }, - "espower": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/espower/-/espower-2.1.1.tgz", - "integrity": "sha512-F4TY1qYJB1aUyzB03NsZksZzUQmQoEBaTUjRJGR30GxbkbjKI41NhCyYjrF+bGgWN7x/ZsczYppRpz/0WdI0ug==", - "dev": true, - "requires": { - "array-find": "^1.0.0", - "escallmatch": "^1.5.0", - "escodegen": "^1.7.0", - "escope": "^3.3.0", - "espower-location-detector": "^1.0.0", - "espurify": "^1.3.0", - "estraverse": "^4.1.0", - "source-map": "^0.5.0", - "type-name": "^2.0.0", - "xtend": "^4.0.0" - } - }, - "espower-loader": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/espower-loader/-/espower-loader-1.2.2.tgz", - "integrity": "sha1-7bRsPFmga6yOpzppXIblxaC8gto=", - "dev": true, - "requires": { - "convert-source-map": "^1.1.0", - "espower-source": "^2.0.0", - "minimatch": "^3.0.0", - "source-map-support": "^0.4.0", - "xtend": "^4.0.0" - }, - "dependencies": { - "source-map-support": { - "version": "0.4.18", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", - "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", - "dev": true, - "requires": { - "source-map": "^0.5.6" - } - } - } - }, - "espower-location-detector": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/espower-location-detector/-/espower-location-detector-1.0.0.tgz", - "integrity": "sha1-oXt+zFnTDheeK+9z+0E3cEyzMbU=", - "dev": true, - "requires": { - "is-url": "^1.2.1", - "path-is-absolute": "^1.0.0", - "source-map": "^0.5.0", - "xtend": "^4.0.0" - } - }, - "espower-source": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/espower-source/-/espower-source-2.3.0.tgz", - "integrity": "sha512-Wc4kC4zUAEV7Qt31JRPoBUc5jjowHRylml2L2VaDQ1XEbnqQofGWx+gPR03TZAPokAMl5dqyL36h3ITyMXy3iA==", - "dev": true, - "requires": { - "acorn": "^5.0.0", - "acorn-es7-plugin": "^1.0.10", - "convert-source-map": "^1.1.1", - "empower-assert": "^1.0.0", - "escodegen": "^1.10.0", - "espower": "^2.1.1", - "estraverse": "^4.0.0", - "merge-estraverse-visitors": "^1.0.0", - "multi-stage-sourcemap": "^0.2.1", - "path-is-absolute": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "espree": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/espree/-/espree-4.0.0.tgz", - "integrity": "sha512-kapdTCt1bjmspxStVKX6huolXVV5ZfyZguY1lcfhVVZstce3bqxH9mcLzNn3/mlgW6wQ732+0fuG9v7h0ZQoKg==", - "dev": true, - "requires": { - "acorn": "^5.6.0", - "acorn-jsx": "^4.1.1" - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "espurify": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/espurify/-/espurify-1.8.1.tgz", - "integrity": "sha512-ZDko6eY/o+D/gHCWyHTU85mKDgYcS4FJj7S+YD6WIInm7GQ6AnOjmcL4+buFV/JOztVLELi/7MmuGU5NHta0Mg==", - "requires": { - "core-js": "^2.0.0" - } - }, - "esquery": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.0.1.tgz", - "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", - "dev": true, - "requires": { - "estraverse": "^4.0.0" - } - }, - "esrecurse": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.1.tgz", - "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", - "dev": true, - "requires": { - "estraverse": "^4.1.0" - } - }, - "estraverse": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", - "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=" - }, - "esutils": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true - }, - "event-emitter": { - "version": "0.3.5", - "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", - "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", - "dev": true, - "requires": { - "d": "1", - "es5-ext": "~0.10.14" - } - }, - "execa": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", - "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "expand-range": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", - "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", - "dev": true, - "requires": { - "fill-range": "^2.1.0" - }, - "dependencies": { - "fill-range": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.4.tgz", - "integrity": "sha512-cnrcCbj01+j2gTG921VZPnHbjmdAf8oQV/iGeV2kZxGSyfYjjTyY79ErsK1WJWMpw6DaApEX72binqJE+/d+5Q==", - "dev": true, - "requires": { - "is-number": "^2.1.0", - "isobject": "^2.0.0", - "randomatic": "^3.0.0", - "repeat-element": "^1.1.2", - "repeat-string": "^1.5.2" - } - }, - "is-number": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", - "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "dev": true, - "requires": { - "isarray": "1.0.0" - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "extend": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", - "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" - }, - "extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "external-editor": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-2.2.0.tgz", - "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", - "dev": true, - "requires": { - "chardet": "^0.4.0", - "iconv-lite": "^0.4.17", - "tmp": "^0.0.33" - } - }, - "extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "extsprintf": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", - "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true - }, - "fast-deep-equal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz", - "integrity": "sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ=", - "dev": true - }, - "fast-diff": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.1.2.tgz", - "integrity": "sha512-KaJUt+M9t1qaIteSvjc6P3RbMdXsNhK61GRftR6SNxqmhthcd9MGIi4T+o0jD8LUSpSnSKXE20nLtJ3fOHxQig==", - "dev": true - }, - "fast-glob": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-2.2.2.tgz", - "integrity": "sha512-TR6zxCKftDQnUAPvkrCWdBgDq/gbqx8A3ApnBrR5rMvpp6+KMJI0Igw7fkWPgeVK0uhRXTXdvO3O+YP0CaUX2g==", - "requires": { - "@mrmlnc/readdir-enhanced": "^2.2.1", - "@nodelib/fs.stat": "^1.0.1", - "glob-parent": "^3.1.0", - "is-glob": "^4.0.0", - "merge2": "^1.2.1", - "micromatch": "^3.1.10" - } - }, - "fast-json-stable-stringify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", - "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, - "figures": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", - "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, - "file-entry-cache": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-2.0.0.tgz", - "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", - "dev": true, - "requires": { - "flat-cache": "^1.2.1", - "object-assign": "^4.0.1" - } - }, - "filename-regex": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", - "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", - "dev": true - }, - "fill-keys": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/fill-keys/-/fill-keys-1.0.2.tgz", - "integrity": "sha1-mo+jb06K1jTjv2tPPIiCVRRS6yA=", - "dev": true, - "requires": { - "is-object": "~1.0.1", - "merge-descriptors": "~1.0.0" - } - }, - "fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "find-cache-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz", - "integrity": "sha1-kojj6ePMN0hxfTnq3hfPcfww7m8=", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^1.0.0", - "pkg-dir": "^2.0.0" - } - }, - "find-up": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "flat-cache": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-1.3.0.tgz", - "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=", - "dev": true, - "requires": { - "circular-json": "^0.3.1", - "del": "^2.0.2", - "graceful-fs": "^4.1.2", - "write": "^0.2.1" - } - }, - "fn-name": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fn-name/-/fn-name-2.0.1.tgz", - "integrity": "sha1-UhTXU3pNBqSjAcDMJi/rhBiAAuc=", - "dev": true - }, - "follow-redirects": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.2.tgz", - "integrity": "sha512-kssLorP/9acIdpQ2udQVTiCS5LQmdEz9mvdIfDcl1gYX2tPKFADHSyFdvJS040XdFsPzemWtgI3q8mFVCxtX8A==", - "requires": { - "debug": "^3.1.0" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "requires": { - "ms": "2.0.0" - } - } - } - }, - "for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=" - }, - "for-own": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", - "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", - "dev": true, - "requires": { - "for-in": "^1.0.1" - } - }, - "foreach": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", - "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=" - }, - "forever-agent": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", - "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", - "dev": true - }, - "form-data": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", - "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "1.0.6", - "mime-types": "^2.1.12" - } - }, - "formidable": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.1.tgz", - "integrity": "sha512-Fs9VRguL0gqGHkXS5GQiMCr1VhZBxz0JnJs4JmMp/2jL18Fmbzvv7vOFRU+U8TBkHEE/CX1qDXzJplVULgsLeg==", - "dev": true - }, - "fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "requires": { - "map-cache": "^0.2.2" - } - }, - "from2": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", - "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", - "dev": true, - "requires": { - "inherits": "^2.0.1", - "readable-stream": "^2.0.0" - } - }, - "fs-extra": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz", - "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" - }, - "fsevents": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.2.4.tgz", - "integrity": "sha512-z8H8/diyk76B7q5wg+Ud0+CqzcAF3mBBI/bA5ne5zrRUUIvNkJY//D3BqyH571KuAC4Nr7Rw7CjWX4r0y9DvNg==", - "dev": true, - "optional": true, - "requires": { - "nan": "^2.9.2", - "node-pre-gyp": "^0.10.0" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "aproba": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - }, - "are-we-there-yet": { - "version": "1.1.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true, - "dev": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "debug": { - "version": "2.6.9", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ms": "2.0.0" - } - }, - "deep-extend": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "optional": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "detect-libc": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "optional": true - }, - "fs-minipass": { - "version": "1.2.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "glob": { - "version": "7.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "iconv-lite": { - "version": "0.4.21", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safer-buffer": "^2.1.0" - } - }, - "ignore-walk": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "bundled": true, - "dev": true - }, - "ini": { - "version": "1.3.5", - "bundled": true, - "dev": true, - "optional": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true - }, - "minipass": { - "version": "2.2.4", - "bundled": true, - "dev": true, - "requires": { - "safe-buffer": "^5.1.1", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "needle": { - "version": "2.2.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "debug": "^2.1.2", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.10.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.0", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.1.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" - } - }, - "nopt": { - "version": "4.0.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.0.3", - "bundled": true, - "dev": true, - "optional": true - }, - "npm-packlist": { - "version": "1.1.10", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "npmlog": { - "version": "4.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "dev": true, - "optional": true - }, - "once": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "process-nextick-args": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "rc": { - "version": "1.2.7", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "deep-extend": "^0.5.1", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "rimraf": { - "version": "2.6.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "glob": "^7.0.5" - } - }, - "safe-buffer": { - "version": "5.1.1", - "bundled": true, - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true, - "dev": true, - "optional": true - }, - "sax": { - "version": "1.2.4", - "bundled": true, - "dev": true, - "optional": true - }, - "semver": { - "version": "5.5.0", - "bundled": true, - "dev": true, - "optional": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "optional": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "optional": true - }, - "tar": { - "version": "4.4.1", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "chownr": "^1.0.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.2.4", - "minizlib": "^1.1.0", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.1", - "yallist": "^3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "wide-align": { - "version": "1.1.2", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "string-width": "^1.0.2" - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "yallist": { - "version": "3.0.2", - "bundled": true, - "dev": true - } - } - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "function-name-support": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/function-name-support/-/function-name-support-0.2.0.tgz", - "integrity": "sha1-VdO/qm6v1QWlD5vIH99XVkoLsHE=", - "dev": true - }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true - }, - "gcp-metadata": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/gcp-metadata/-/gcp-metadata-0.6.3.tgz", - "integrity": "sha512-MSmczZctbz91AxCvqp9GHBoZOSbJKAICV7Ow/AIWSJZRrRchUd5NL1b2P4OfP+4m490BEUPhhARfpHdqCxuCvg==", - "requires": { - "axios": "^0.18.0", - "extend": "^3.0.1", - "retry-axios": "0.3.2" - } - }, - "get-caller-file": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", - "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", - "dev": true - }, - "get-port": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/get-port/-/get-port-3.2.0.tgz", - "integrity": "sha1-3Xzn3hh8Bsi/NTeWrHHgmfCYDrw=", - "dev": true - }, - "get-stdin": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", - "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", - "dev": true - }, - "get-stream": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", - "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", - "dev": true - }, - "get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=" - }, - "getpass": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", - "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0" - } - }, - "glob": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", - "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-base": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", - "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", - "dev": true, - "requires": { - "glob-parent": "^2.0.0", - "is-glob": "^2.0.0" - }, - "dependencies": { - "glob-parent": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", - "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", - "dev": true, - "requires": { - "is-glob": "^2.0.0" - } - }, - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - } - } - }, - "glob-parent": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", - "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", - "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" - }, - "dependencies": { - "is-glob": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", - "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", - "requires": { - "is-extglob": "^2.1.0" - } - } - } - }, - "glob-to-regexp": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz", - "integrity": "sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs=" - }, - "global-dirs": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", - "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", - "dev": true, - "requires": { - "ini": "^1.3.4" - } - }, - "globals": { - "version": "9.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", - "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", - "dev": true - }, - "globby": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/globby/-/globby-8.0.1.tgz", - "integrity": "sha512-oMrYrJERnKBLXNLVTqhm3vPEdJ/b2ZE28xN4YARiix1NOIOBPEpOUnm844K1iu/BkphCaf2WNFwMszv8Soi1pw==", - "requires": { - "array-union": "^1.0.1", - "dir-glob": "^2.0.0", - "fast-glob": "^2.0.2", - "glob": "^7.1.2", - "ignore": "^3.3.5", - "pify": "^3.0.0", - "slash": "^1.0.0" - } - }, - "google-auth-library": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/google-auth-library/-/google-auth-library-1.6.1.tgz", - "integrity": "sha512-jYiWC8NA9n9OtQM7ANn0Tk464do9yhKEtaJ72pKcaBiEwn4LwcGYIYOfwtfsSm3aur/ed3tlSxbmg24IAT6gAg==", - "requires": { - "axios": "^0.18.0", - "gcp-metadata": "^0.6.3", - "gtoken": "^2.3.0", - "jws": "^3.1.5", - "lodash.isstring": "^4.0.1", - "lru-cache": "^4.1.3", - "retry-axios": "^0.3.2" - } - }, - "google-gax": { - "version": "0.18.0", - "resolved": "https://registry.npmjs.org/google-gax/-/google-gax-0.18.0.tgz", - "integrity": "sha512-cF2s3aTw1cWDHsjaYfIizJZT0KJF0FSM3laiCX4O/K0ZcdmeE9PitG2bxRH+dY+Sz094//m+JoH1hBtSyOf67A==", - "requires": { - "@grpc/proto-loader": "^0.3.0", - "duplexify": "^3.6.0", - "extend": "^3.0.1", - "globby": "^8.0.1", - "google-auth-library": "^1.6.1", - "google-proto-files": "^0.16.0", - "grpc": "^1.12.2", - "is-stream-ended": "^0.1.4", - "lodash": "^4.17.10", - "protobufjs": "^6.8.8", - "retry-request": "^4.0.0", - "through2": "^2.0.3" - } - }, - "google-p12-pem": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-1.0.2.tgz", - "integrity": "sha512-+EuKr4CLlGsnXx4XIJIVkcKYrsa2xkAmCvxRhX2HsazJzUBAJ35wARGeApHUn4nNfPD03Vl057FskNr20VaCyg==", - "requires": { - "node-forge": "^0.7.4", - "pify": "^3.0.0" - } - }, - "google-proto-files": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/google-proto-files/-/google-proto-files-0.16.1.tgz", - "integrity": "sha512-ykdhaYDiU/jlyrkzZDPemraKwVIgLT31XMHVNSJW//R9VED56hqSDRMx1Jlxbf0O4iDZnBWQ0JQLHbM2r5+wuA==", - "requires": { - "globby": "^8.0.0", - "power-assert": "^1.4.4", - "protobufjs": "^6.8.0" - } - }, - "got": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/got/-/got-8.3.0.tgz", - "integrity": "sha512-kBNy/S2CGwrYgDSec5KTWGKUvupwkkTVAjIsVFF2shXO13xpZdFP4d4kxa//CLX2tN/rV0aYwK8vY6UKWGn2vQ==", - "dev": true, - "requires": { - "@sindresorhus/is": "^0.7.0", - "cacheable-request": "^2.1.1", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^3.0.0", - "into-stream": "^3.1.0", - "is-retry-allowed": "^1.1.0", - "isurl": "^1.0.0-alpha5", - "lowercase-keys": "^1.0.0", - "mimic-response": "^1.0.0", - "p-cancelable": "^0.4.0", - "p-timeout": "^2.0.1", - "pify": "^3.0.0", - "safe-buffer": "^5.1.1", - "timed-out": "^4.0.1", - "url-parse-lax": "^3.0.0", - "url-to-options": "^1.0.1" - }, - "dependencies": { - "prepend-http": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", - "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", - "dev": true - }, - "url-parse-lax": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", - "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", - "dev": true, - "requires": { - "prepend-http": "^2.0.0" - } - } - } - }, - "graceful-fs": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", - "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=", - "dev": true - }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true - }, - "grpc": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/grpc/-/grpc-1.13.1.tgz", - "integrity": "sha512-yl0xChnlUISTefOPU2NQ1cYPh5m/DTatEUV6jdRyQPE9NCrtPq7Gn6J2alMTglN7ufYbJapOd00dvhGurHH6HQ==", - "requires": { - "lodash": "^4.17.5", - "nan": "^2.0.0", - "node-pre-gyp": "^0.10.0", - "protobufjs": "^5.0.3" - }, - "dependencies": { - "abbrev": { - "version": "1.1.1", - "bundled": true - }, - "ansi-regex": { - "version": "2.1.1", - "bundled": true - }, - "aproba": { - "version": "1.2.0", - "bundled": true - }, - "are-we-there-yet": { - "version": "1.1.5", - "bundled": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" - } - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "chownr": { - "version": "1.0.1", - "bundled": true - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true - }, - "console-control-strings": { - "version": "1.1.0", - "bundled": true - }, - "core-util-is": { - "version": "1.0.2", - "bundled": true - }, - "debug": { - "version": "2.6.9", - "bundled": true, - "requires": { - "ms": "2.0.0" - } - }, - "deep-extend": { - "version": "0.6.0", - "bundled": true - }, - "delegates": { - "version": "1.0.0", - "bundled": true - }, - "detect-libc": { - "version": "1.0.3", - "bundled": true - }, - "fs-minipass": { - "version": "1.2.5", - "bundled": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true - }, - "gauge": { - "version": "2.7.4", - "bundled": true, - "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" - } - }, - "glob": { - "version": "7.1.2", - "bundled": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-unicode": { - "version": "2.0.1", - "bundled": true - }, - "iconv-lite": { - "version": "0.4.23", - "bundled": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore-walk": { - "version": "3.0.1", - "bundled": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "bundled": true - }, - "ini": { - "version": "1.3.5", - "bundled": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "isarray": { - "version": "1.0.0", - "bundled": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.0", - "bundled": true - }, - "minipass": { - "version": "2.3.3", - "bundled": true, - "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" - } - }, - "minizlib": { - "version": "1.1.0", - "bundled": true, - "requires": { - "minipass": "^2.2.1" - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "requires": { - "minimist": "0.0.8" - }, - "dependencies": { - "minimist": { - "version": "0.0.8", - "bundled": true - } - } - }, - "ms": { - "version": "2.0.0", - "bundled": true - }, - "needle": { - "version": "2.2.1", - "bundled": true, - "requires": { - "debug": "^2.1.2", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" - } - }, - "node-pre-gyp": { - "version": "0.10.3", - "bundled": true, - "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" - } - }, - "nopt": { - "version": "4.0.1", - "bundled": true, - "requires": { - "abbrev": "1", - "osenv": "^0.1.4" - } - }, - "npm-bundled": { - "version": "1.0.3", - "bundled": true - }, - "npm-packlist": { - "version": "1.1.11", - "bundled": true, - "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" - } - }, - "npmlog": { - "version": "4.1.2", - "bundled": true, - "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true - }, - "once": { - "version": "1.4.0", - "bundled": true, - "requires": { - "wrappy": "1" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true - }, - "os-tmpdir": { - "version": "1.0.2", - "bundled": true - }, - "osenv": { - "version": "0.1.5", - "bundled": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true - }, - "process-nextick-args": { - "version": "2.0.0", - "bundled": true - }, - "protobufjs": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-5.0.3.tgz", - "integrity": "sha512-55Kcx1MhPZX0zTbVosMQEO5R6/rikNXd9b6RQK4KSPcrSIIwoXTtebIczUrXlwaSrbz4x8XUVThGPob1n8I4QA==", - "requires": { - "ascli": "~1", - "bytebuffer": "~5", - "glob": "^7.0.5", - "yargs": "^3.10.0" - } - }, - "rc": { - "version": "1.2.8", - "bundled": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - } - }, - "readable-stream": { - "version": "2.3.6", - "bundled": true, - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "rimraf": { - "version": "2.6.2", - "bundled": true, - "requires": { - "glob": "^7.0.5" - } - }, - "safe-buffer": { - "version": "5.1.2", - "bundled": true - }, - "safer-buffer": { - "version": "2.1.2", - "bundled": true - }, - "sax": { - "version": "1.2.4", - "bundled": true - }, - "semver": { - "version": "5.5.0", - "bundled": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "bundled": true, - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "bundled": true - }, - "tar": { - "version": "4.4.4", - "bundled": true, - "requires": { - "chownr": "^1.0.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.3.3", - "minizlib": "^1.1.0", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.2" - } - }, - "util-deprecate": { - "version": "1.0.2", - "bundled": true - }, - "wide-align": { - "version": "1.1.3", - "bundled": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true - }, - "yallist": { - "version": "3.0.2", - "bundled": true - } - } - }, - "gtoken": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/gtoken/-/gtoken-2.3.0.tgz", - "integrity": "sha512-Jc9/8mV630cZE9FC5tIlJCZNdUjwunvlwOtCz6IDlaiB4Sz68ki29a1+q97sWTnTYroiuF9B135rod9zrQdHLw==", - "requires": { - "axios": "^0.18.0", - "google-p12-pem": "^1.0.0", - "jws": "^3.1.4", - "mime": "^2.2.0", - "pify": "^3.0.0" - } - }, - "handlebars": { - "version": "4.0.11", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.0.11.tgz", - "integrity": "sha1-Ywo13+ApS8KB7a5v/F0yn8eYLcw=", - "dev": true, - "requires": { - "async": "^1.4.0", - "optimist": "^0.6.1", - "source-map": "^0.4.4", - "uglify-js": "^2.6" - }, - "dependencies": { - "async": { - "version": "1.5.2", - "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", - "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", - "dev": true - }, - "source-map": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.4.4.tgz", - "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", - "dev": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, - "har-schema": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", - "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", - "dev": true - }, - "har-validator": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.0.3.tgz", - "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", - "dev": true, - "requires": { - "ajv": "^5.1.0", - "har-schema": "^2.0.0" - } - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-ansi": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", - "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "has-color": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz", - "integrity": "sha1-ZxRKUmDDT8PMpnfQQdr1L+e3iy8=", - "dev": true - }, - "has-flag": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", - "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", - "dev": true - }, - "has-symbol-support-x": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz", - "integrity": "sha512-3ToOva++HaW+eCpgqZrCfN51IPB+7bJNVT6CUATzueB5Heb8o6Nam0V3HG5dlDvZU1Gn5QLcbahiKw/XVk5JJw==", - "dev": true - }, - "has-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", - "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", - "dev": true - }, - "has-to-string-tag-x": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/has-to-string-tag-x/-/has-to-string-tag-x-1.4.1.tgz", - "integrity": "sha512-vdbKfmw+3LoOYVr+mtxHaX5a96+0f3DljYd8JOqvOLsf5mw2Otda2qCDT9qRqLAhrjyQ0h7ual5nOiASpsGNFw==", - "dev": true, - "requires": { - "has-symbol-support-x": "^1.4.1" - } - }, - "has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "has-yarn": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-1.0.0.tgz", - "integrity": "sha1-ieJdtgS3Jcj1l2//Ct3JIbgopac=", - "dev": true - }, - "he": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", - "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", - "dev": true - }, - "home-or-tmp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", - "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", - "dev": true, - "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.1" - } - }, - "hosted-git-info": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", - "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", - "dev": true - }, - "htmlparser2": { - "version": "3.9.2", - "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.9.2.tgz", - "integrity": "sha1-G9+HrMoPP55T+k/M6w9LTLsAszg=", - "dev": true, - "requires": { - "domelementtype": "^1.3.0", - "domhandler": "^2.3.0", - "domutils": "^1.5.1", - "entities": "^1.1.1", - "inherits": "^2.0.1", - "readable-stream": "^2.0.2" - } - }, - "http-cache-semantics": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", - "integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==", - "dev": true - }, - "http-signature": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", - "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" - } - }, - "hullabaloo-config-manager": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/hullabaloo-config-manager/-/hullabaloo-config-manager-1.1.1.tgz", - "integrity": "sha512-ztKnkZV0TmxnumCDHHgLGNiDnotu4EHCp9YMkznWuo4uTtCyJ+cu+RNcxUeXYKTllpvLFWnbfWry09yzszgg+A==", - "dev": true, - "requires": { - "dot-prop": "^4.1.0", - "es6-error": "^4.0.2", - "graceful-fs": "^4.1.11", - "indent-string": "^3.1.0", - "json5": "^0.5.1", - "lodash.clonedeep": "^4.5.0", - "lodash.clonedeepwith": "^4.5.0", - "lodash.isequal": "^4.5.0", - "lodash.merge": "^4.6.0", - "md5-hex": "^2.0.0", - "package-hash": "^2.0.0", - "pkg-dir": "^2.0.0", - "resolve-from": "^3.0.0", - "safe-buffer": "^5.0.1" - } - }, - "iconv-lite": { - "version": "0.4.23", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", - "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, - "ignore": { - "version": "3.3.10", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", - "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==" - }, - "ignore-by-default": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", - "integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=", - "dev": true - }, - "ignore-walk": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", - "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", - "dev": true, - "requires": { - "minimatch": "^3.0.4" - } - }, - "import-lazy": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", - "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", - "dev": true - }, - "import-local": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-0.1.1.tgz", - "integrity": "sha1-sReVcqrNwRxqkQCftDDbyrX2aKg=", - "dev": true, - "requires": { - "pkg-dir": "^2.0.0", - "resolve-cwd": "^2.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "indent-string": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz", - "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=", - "dev": true - }, - "indexof": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", - "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=" - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", - "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" - }, - "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", - "dev": true - }, - "ink-docstrap": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/ink-docstrap/-/ink-docstrap-1.3.2.tgz", - "integrity": "sha512-STx5orGQU1gfrkoI/fMU7lX6CSP7LBGO10gXNgOZhwKhUqbtNjCkYSewJtNnLmWP1tAGN6oyEpG1HFPw5vpa5Q==", - "dev": true, - "requires": { - "moment": "^2.14.1", - "sanitize-html": "^1.13.0" - } - }, - "inquirer": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-5.2.0.tgz", - "integrity": "sha512-E9BmnJbAKLPGonz0HeWHtbKf+EeSP93paWO3ZYoUpq/aowXvYGjjCSuashhXPpzbArIjBbji39THkxTz9ZeEUQ==", - "dev": true, - "requires": { - "ansi-escapes": "^3.0.0", - "chalk": "^2.0.0", - "cli-cursor": "^2.1.0", - "cli-width": "^2.0.0", - "external-editor": "^2.1.0", - "figures": "^2.0.0", - "lodash": "^4.3.0", - "mute-stream": "0.0.7", - "run-async": "^2.2.0", - "rxjs": "^5.5.2", - "string-width": "^2.1.0", - "strip-ansi": "^4.0.0", - "through": "^2.3.6" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "intelli-espower-loader": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/intelli-espower-loader/-/intelli-espower-loader-1.0.1.tgz", - "integrity": "sha1-LHsDFGvB1GvyENCgOXxckatMorA=", - "dev": true, - "requires": { - "espower-loader": "^1.0.0" - } - }, - "into-stream": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/into-stream/-/into-stream-3.1.0.tgz", - "integrity": "sha1-lvsKk2wSur1v8XUqF9BWFqvQlMY=", - "dev": true, - "requires": { - "from2": "^2.1.1", - "p-is-promise": "^1.1.0" - } - }, - "invariant": { - "version": "2.2.4", - "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", - "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "invert-kv": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", - "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=" - }, - "irregular-plurals": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-1.4.0.tgz", - "integrity": "sha1-LKmwM2UREYVUEvFr5dd8YqRYp2Y=", - "dev": true - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-binary-path": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", - "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", - "dev": true, - "requires": { - "binary-extensions": "^1.0.0" - } - }, - "is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" - }, - "is-builtin-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", - "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", - "dev": true, - "requires": { - "builtin-modules": "^1.0.0" - } - }, - "is-callable": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", - "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", - "dev": true - }, - "is-ci": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-1.1.0.tgz", - "integrity": "sha512-c7TnwxLePuqIlxHgr7xtxzycJPegNHFuIrBkwbf8hc58//+Op1CqFkyS+xnIMkwn9UsJIwc174BIjkyBmSpjKg==", - "dev": true, - "requires": { - "ci-info": "^1.0.0" - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-date-object": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", - "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", - "dev": true - }, - "is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==" - } - } - }, - "is-dotfile": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", - "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", - "dev": true - }, - "is-equal-shallow": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", - "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", - "dev": true, - "requires": { - "is-primitive": "^2.0.0" - } - }, - "is-error": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-error/-/is-error-2.2.1.tgz", - "integrity": "sha1-aEqW2EB2V3yY9M20DG0mpRI78Zw=", - "dev": true - }, - "is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=" - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" - }, - "is-finite": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", - "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", - "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "is-generator-fn": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-1.0.0.tgz", - "integrity": "sha1-lp1J4bszKfa7fwkIm+JleLLd1Go=", - "dev": true - }, - "is-glob": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", - "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-installed-globally": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", - "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", - "dev": true, - "requires": { - "global-dirs": "^0.1.0", - "is-path-inside": "^1.0.0" - } - }, - "is-npm": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", - "integrity": "sha1-8vtjpl5JBbQGyGBydloaTceTufQ=", - "dev": true - }, - "is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "is-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", - "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", - "dev": true - }, - "is-object": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-object/-/is-object-1.0.1.tgz", - "integrity": "sha1-iVJojF7C/9awPsyF52ngKQMINHA=", - "dev": true - }, - "is-observable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-1.1.0.tgz", - "integrity": "sha512-NqCa4Sa2d+u7BWc6CukaObG3Fh+CU9bvixbpcXYhy2VvYS7vVGIdAgnIS5Ks3A/cqk4rebLJ9s8zBstT2aKnIA==", - "dev": true, - "requires": { - "symbol-observable": "^1.1.0" - } - }, - "is-path-cwd": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-1.0.0.tgz", - "integrity": "sha1-0iXsIxMuie3Tj9p2dHLmLmXxEG0=", - "dev": true - }, - "is-path-in-cwd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz", - "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", - "dev": true, - "requires": { - "is-path-inside": "^1.0.0" - } - }, - "is-path-inside": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.1.tgz", - "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", - "dev": true, - "requires": { - "path-is-inside": "^1.0.1" - } - }, - "is-plain-obj": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", - "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=", - "dev": true - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "requires": { - "isobject": "^3.0.1" - } - }, - "is-posix-bracket": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", - "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", - "dev": true - }, - "is-primitive": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", - "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", - "dev": true - }, - "is-promise": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", - "integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", - "dev": true - }, - "is-redirect": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", - "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", - "dev": true - }, - "is-regex": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", - "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", - "dev": true, - "requires": { - "has": "^1.0.1" - } - }, - "is-resolvable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", - "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==", - "dev": true - }, - "is-retry-allowed": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz", - "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=", - "dev": true - }, - "is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", - "dev": true - }, - "is-stream-ended": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-stream-ended/-/is-stream-ended-0.1.4.tgz", - "integrity": "sha512-xj0XPvmr7bQFTvirqnFr50o0hQIh6ZItDqloxt5aJrR4NQsYeSsyFQERYGCAzfindAcnKjINnwEEgLx4IqVzQw==" - }, - "is-symbol": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.1.tgz", - "integrity": "sha1-PMWfAAJRlLarLjjbrmaJJWtmBXI=", - "dev": true - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "is-url": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz", - "integrity": "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==", - "dev": true - }, - "is-utf8": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", - "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", - "dev": true - }, - "is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==" - }, - "isarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", - "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=" - }, - "isstream": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", - "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", - "dev": true - }, - "istanbul-lib-coverage": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", - "integrity": "sha512-nPvSZsVlbG9aLhZYaC3Oi1gT/tpyo3Yt5fNyf6NmcKIayz4VV/txxJFFKAK/gU4dcNn8ehsanBbVHVl0+amOLA==", - "dev": true - }, - "istanbul-lib-instrument": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-2.3.2.tgz", - "integrity": "sha512-l7TD/VnBsIB2OJvSyxaLW/ab1+92dxZNH9wLH7uHPPioy3JZ8tnx2UXUdKmdkgmP2EFPzg64CToUP6dAS3U32Q==", - "dev": true, - "requires": { - "@babel/generator": "7.0.0-beta.51", - "@babel/parser": "7.0.0-beta.51", - "@babel/template": "7.0.0-beta.51", - "@babel/traverse": "7.0.0-beta.51", - "@babel/types": "7.0.0-beta.51", - "istanbul-lib-coverage": "^2.0.1", - "semver": "^5.5.0" - } - }, - "isurl": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isurl/-/isurl-1.0.0.tgz", - "integrity": "sha512-1P/yWsxPlDtn7QeRD+ULKQPaIaN6yF368GZ2vDfv0AL0NwpStafjWCDDdn0k8wgFMWpVAqG7oJhxHnlud42i9w==", - "dev": true, - "requires": { - "has-to-string-tag-x": "^1.2.0", - "is-object": "^1.0.1" - } - }, - "jest-docblock": { - "version": "21.2.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-21.2.0.tgz", - "integrity": "sha512-5IZ7sY9dBAYSV+YjQ0Ovb540Ku7AO9Z5o2Cg789xj167iQuZ2cG+z0f3Uct6WeYLbU6aQiM2pCs7sZ+4dotydw==", - "dev": true - }, - "js-string-escape": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", - "integrity": "sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=", - "dev": true - }, - "js-tokens": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", - "dev": true - }, - "js-yaml": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz", - "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "js2xmlparser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-3.0.0.tgz", - "integrity": "sha1-P7YOqgicVED5MZ9RdgzNB+JJlzM=", - "dev": true, - "requires": { - "xmlcreate": "^1.0.1" - } - }, - "jsbn": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", - "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true, - "optional": true - }, - "jsdoc": { - "version": "3.5.5", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-3.5.5.tgz", - "integrity": "sha512-6PxB65TAU4WO0Wzyr/4/YhlGovXl0EVYfpKbpSroSj0qBxT4/xod/l40Opkm38dRHRdQgdeY836M0uVnJQG7kg==", - "dev": true, - "requires": { - "babylon": "7.0.0-beta.19", - "bluebird": "~3.5.0", - "catharsis": "~0.8.9", - "escape-string-regexp": "~1.0.5", - "js2xmlparser": "~3.0.0", - "klaw": "~2.0.0", - "marked": "~0.3.6", - "mkdirp": "~0.5.1", - "requizzle": "~0.2.1", - "strip-json-comments": "~2.0.1", - "taffydb": "2.6.2", - "underscore": "~1.8.3" - }, - "dependencies": { - "babylon": { - "version": "7.0.0-beta.19", - "resolved": "https://registry.npmjs.org/babylon/-/babylon-7.0.0-beta.19.tgz", - "integrity": "sha512-Vg0C9s/REX6/WIXN37UKpv5ZhRi6A4pjHlpkE34+8/a6c2W1Q692n3hmc+SZG5lKRnaExLUbxtJ1SVT+KaCQ/A==", - "dev": true - } - } - }, - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", - "dev": true - }, - "json-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", - "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-schema": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", - "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", - "dev": true - }, - "json-schema-traverse": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", - "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", - "dev": true - }, - "json-stable-stringify-without-jsonify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", - "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", - "dev": true - }, - "json-stringify-safe": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", - "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", - "dev": true - }, - "json5": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", - "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", - "dev": true - }, - "jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "jsprim": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", - "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", - "dev": true, - "requires": { - "assert-plus": "1.0.0", - "extsprintf": "1.3.0", - "json-schema": "0.2.3", - "verror": "1.10.0" - } - }, - "just-extend": { - "version": "1.1.27", - "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-1.1.27.tgz", - "integrity": "sha512-mJVp13Ix6gFo3SBAy9U/kL+oeZqzlYYYLQBwXVBlVzIsZwBqGREnOro24oC/8s8aox+rJhtZ2DiQof++IrkA+g==", - "dev": true - }, - "jwa": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/jwa/-/jwa-1.1.6.tgz", - "integrity": "sha512-tBO/cf++BUsJkYql/kBbJroKOgHWEigTKBAjjBEmrMGYd1QMBC74Hr4Wo2zCZw6ZrVhlJPvoMrkcOnlWR/DJfw==", - "requires": { - "buffer-equal-constant-time": "1.0.1", - "ecdsa-sig-formatter": "1.0.10", - "safe-buffer": "^5.0.1" - } - }, - "jws": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/jws/-/jws-3.1.5.tgz", - "integrity": "sha512-GsCSexFADNQUr8T5HPJvayTjvPIfoyJPtLQBwn5a4WZQchcrPMPMAWcC1AzJVRDKyD6ZPROPAxgv6rfHViO4uQ==", - "requires": { - "jwa": "^1.1.5", - "safe-buffer": "^5.0.1" - } - }, - "keyv": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.0.0.tgz", - "integrity": "sha512-eguHnq22OE3uVoSYG0LVWNP+4ppamWr9+zWBe1bsNcovIMy6huUJFPgy4mGwCd/rnl3vOLGW1MTlu4c57CT1xA==", - "dev": true, - "requires": { - "json-buffer": "3.0.0" - } - }, - "kind-of": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", - "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==" - }, - "klaw": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-2.0.0.tgz", - "integrity": "sha1-WcEo4Nxc5BAgEVEZTuucv4WGUPY=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.9" - } - }, - "last-line-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/last-line-stream/-/last-line-stream-1.0.0.tgz", - "integrity": "sha1-0bZNafhv8kry0EiDos7uFFIKVgA=", - "dev": true, - "requires": { - "through2": "^2.0.0" - } - }, - "latest-version": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", - "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=", - "dev": true, - "requires": { - "package-json": "^4.0.0" - } - }, - "lazy-cache": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", - "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", - "dev": true, - "optional": true - }, - "lcid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", - "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", - "requires": { - "invert-kv": "^1.0.0" - } - }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, - "load-json-file": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", - "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "strip-bom": "^3.0.0" - }, - "dependencies": { - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - } - } - }, - "locate-path": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - } - }, - "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==" - }, - "lodash.clonedeep": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", - "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=", - "dev": true - }, - "lodash.clonedeepwith": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.clonedeepwith/-/lodash.clonedeepwith-4.5.0.tgz", - "integrity": "sha1-buMFc6A6GmDWcKYu8zwQzxr9vdQ=", - "dev": true - }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", - "dev": true - }, - "lodash.difference": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.difference/-/lodash.difference-4.5.0.tgz", - "integrity": "sha1-nMtOUF1Ia5FlE0V3KIWi3yf9AXw=", - "dev": true - }, - "lodash.escaperegexp": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.escaperegexp/-/lodash.escaperegexp-4.1.2.tgz", - "integrity": "sha1-ZHYsSGGAglGKw99Mz11YhtriA0c=", - "dev": true - }, - "lodash.flatten": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", - "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=", - "dev": true - }, - "lodash.flattendeep": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", - "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", - "dev": true - }, - "lodash.get": { - "version": "4.4.2", - "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", - "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", - "dev": true - }, - "lodash.isequal": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz", - "integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=", - "dev": true - }, - "lodash.isplainobject": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", - "integrity": "sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs=", - "dev": true - }, - "lodash.isstring": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", - "integrity": "sha1-1SfftUVuynzJu5XV2ur4i6VKVFE=" - }, - "lodash.merge": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.1.tgz", - "integrity": "sha512-AOYza4+Hf5z1/0Hztxpm2/xiPZgi/cjMqdnKTUWTBSKchJlxXXuUSxCCl8rJlf4g6yww/j6mA8nC8Hw/EZWxKQ==" - }, - "lodash.mergewith": { - "version": "4.6.1", - "resolved": "https://registry.npmjs.org/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz", - "integrity": "sha512-eWw5r+PYICtEBgrBE5hhlT6aAa75f411bgDz/ZL2KZqYV03USvucsxcHUIlGTDTECs1eunpI7HOV7U+WLDvNdQ==", - "dev": true - }, - "lolex": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-2.7.1.tgz", - "integrity": "sha512-Oo2Si3RMKV3+lV5MsSWplDQFoTClz/24S0MMHYcgGWWmFXr6TMlqcqk/l1GtH+d5wLBwNRiqGnwDRMirtFalJw==", - "dev": true - }, - "long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "longest": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", - "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", - "dev": true - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "loud-rejection": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", - "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", - "dev": true, - "requires": { - "currently-unhandled": "^0.4.1", - "signal-exit": "^3.0.0" - } - }, - "lowercase-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", - "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", - "dev": true - }, - "lru-cache": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.3.tgz", - "integrity": "sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA==", - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "make-dir": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.3.0.tgz", - "integrity": "sha512-2w31R7SJtieJJnQtGc7RVL2StM2vGYVfqUOvUDxH6bC6aJTxPxTF0GnIgCyu7tjockiUWAYQRbxa7vKn34s5sQ==", - "dev": true, - "requires": { - "pify": "^3.0.0" - } - }, - "map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=" - }, - "map-obj": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", - "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", - "dev": true - }, - "map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "requires": { - "object-visit": "^1.0.0" - } - }, - "marked": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.3.19.tgz", - "integrity": "sha512-ea2eGWOqNxPcXv8dyERdSr/6FmzvWwzjMxpfGB/sbMccXoct+xY+YukPD+QTUZwyvK7BZwcr4m21WBOW41pAkg==", - "dev": true - }, - "matcher": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/matcher/-/matcher-1.1.1.tgz", - "integrity": "sha512-+BmqxWIubKTRKNWx/ahnCkk3mG8m7OturVlqq6HiojGJTd5hVYbgZm6WzcYPCoB+KBT4Vd6R7WSRG2OADNaCjg==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.4" - } - }, - "math-random": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/math-random/-/math-random-1.0.1.tgz", - "integrity": "sha1-izqsWIuKZuSXXjzepn97sylgH6w=", - "dev": true - }, - "md5-hex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-2.0.0.tgz", - "integrity": "sha1-0FiOnxx0lUSS7NJKwKxs6ZfZLjM=", - "dev": true, - "requires": { - "md5-o-matic": "^0.1.1" - } - }, - "md5-o-matic": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/md5-o-matic/-/md5-o-matic-0.1.1.tgz", - "integrity": "sha1-givM1l4RfFFPqxdrJZRdVBAKA8M=", - "dev": true - }, - "mem": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", - "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - } - }, - "meow": { - "version": "3.7.0", - "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", - "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", - "dev": true, - "requires": { - "camelcase-keys": "^2.0.0", - "decamelize": "^1.1.2", - "loud-rejection": "^1.0.0", - "map-obj": "^1.0.1", - "minimist": "^1.1.3", - "normalize-package-data": "^2.3.4", - "object-assign": "^4.0.1", - "read-pkg-up": "^1.0.1", - "redent": "^1.0.0", - "trim-newlines": "^1.0.0" - }, - "dependencies": { - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - } - }, - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0" - } - }, - "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "dev": true, - "requires": { - "pinkie": "^2.0.0" - } - }, - "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", - "dev": true, - "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - } - }, - "read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", - "dev": true, - "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - } - }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "dev": true, - "requires": { - "is-utf8": "^0.2.0" - } - } - } - }, - "merge-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.1.tgz", - "integrity": "sha1-sAqqVW3YtEVoFQ7J0blT8/kMu2E=", - "dev": true - }, - "merge-estraverse-visitors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/merge-estraverse-visitors/-/merge-estraverse-visitors-1.0.0.tgz", - "integrity": "sha1-65aDOLXe1c7tgs7AMH3sui2OqZQ=", - "dev": true, - "requires": { - "estraverse": "^4.0.0" - } - }, - "merge2": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.2.2.tgz", - "integrity": "sha512-bgM8twH86rWni21thii6WCMQMRMmwqqdW3sGWi9IipnVAszdLXRjwDwAnyrVXo6DuP3AjRMMttZKUB48QWIFGg==" - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", - "dev": true - }, - "micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - } - }, - "mime": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.3.1.tgz", - "integrity": "sha512-OEUllcVoydBHGN1z84yfQDimn58pZNNNXgZlHXSboxMlFvgI6MXSWpWKpFRra7H1HxpVhHTkrghfRW49k6yjeg==" - }, - "mime-db": { - "version": "1.35.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.35.0.tgz", - "integrity": "sha512-JWT/IcCTsB0Io3AhWUMjRqucrHSPsSf2xKLaRldJVULioggvkJvggZ3VXNNSRkCddE6D+BUI4HEIZIA2OjwIvg==", - "dev": true - }, - "mime-types": { - "version": "2.1.19", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.19.tgz", - "integrity": "sha512-P1tKYHVSZ6uFo26mtnve4HQFE3koh1UWVkp8YUC+ESBHe945xWSoXuHHiGarDqcEZ+whpCDnlNw5LON0kLo+sw==", - "dev": true, - "requires": { - "mime-db": "~1.35.0" - } - }, - "mimic-fn": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz", - "integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==", - "dev": true - }, - "mimic-response": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true - }, - "mixin-deep": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", - "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "mkdirp": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", - "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, - "requires": { - "minimist": "0.0.8" - } - }, - "mocha": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-5.2.0.tgz", - "integrity": "sha512-2IUgKDhc3J7Uug+FxMXuqIyYzH7gJjXECKe/w43IGgQHTSj3InJi+yAA7T24L9bQMRKiUEHxEX37G5JpVUGLcQ==", - "dev": true, - "requires": { - "browser-stdout": "1.3.1", - "commander": "2.15.1", - "debug": "3.1.0", - "diff": "3.5.0", - "escape-string-regexp": "1.0.5", - "glob": "7.1.2", - "growl": "1.10.5", - "he": "1.1.1", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "supports-color": "5.4.0" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, - "module-not-found-error": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/module-not-found-error/-/module-not-found-error-1.0.1.tgz", - "integrity": "sha1-z4tP9PKWQGdNbN0CsOO8UjwrvcA=", - "dev": true - }, - "moment": { - "version": "2.22.2", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.22.2.tgz", - "integrity": "sha1-PCV/mDn8DpP/UxSWMiOeuQeD/2Y=", - "dev": true - }, - "ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" - }, - "multi-stage-sourcemap": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/multi-stage-sourcemap/-/multi-stage-sourcemap-0.2.1.tgz", - "integrity": "sha1-sJ/IWG6qF/gdV1xK0C4Pej9rEQU=", - "dev": true, - "requires": { - "source-map": "^0.1.34" - }, - "dependencies": { - "source-map": { - "version": "0.1.43", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", - "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", - "dev": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, - "multimatch": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/multimatch/-/multimatch-2.1.0.tgz", - "integrity": "sha1-nHkGoi+0wCkZ4vX3UWG0zb1LKis=", - "dev": true, - "requires": { - "array-differ": "^1.0.0", - "array-union": "^1.0.1", - "arrify": "^1.0.0", - "minimatch": "^3.0.0" - } - }, - "mute-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", - "integrity": "sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=", - "dev": true - }, - "nan": { - "version": "2.10.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.10.0.tgz", - "integrity": "sha512-bAdJv7fBLhWC+/Bls0Oza+mvTaNQtP+1RyhhhvD95pgUJz6XM5IzgmxOkItJ9tkoCiplvAnXI1tNmmUD/eScyA==" - }, - "nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - } - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", - "dev": true - }, - "next-tick": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", - "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", - "dev": true - }, - "nice-try": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.4.tgz", - "integrity": "sha512-2NpiFHqC87y/zFke0fC0spBXL3bBsoh/p5H1EFhshxjCR5+0g2d6BiXbUFz9v1sAcxsk2htp2eQnNIci2dIYcA==", - "dev": true - }, - "nise": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/nise/-/nise-1.4.2.tgz", - "integrity": "sha512-BxH/DxoQYYdhKgVAfqVy4pzXRZELHOIewzoesxpjYvpU+7YOalQhGNPf7wAx8pLrTNPrHRDlLOkAl8UI0ZpXjw==", - "dev": true, - "requires": { - "@sinonjs/formatio": "^2.0.0", - "just-extend": "^1.1.27", - "lolex": "^2.3.2", - "path-to-regexp": "^1.7.0", - "text-encoding": "^0.6.4" - } - }, - "node-forge": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.7.5.tgz", - "integrity": "sha512-MmbQJ2MTESTjt3Gi/3yG1wGpIMhUfcIypUCGtTizFR9IiccFwxSpfp0vtIZlkFclEqERemxfnSdZEMR9VqqEFQ==" - }, - "normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "is-builtin-module": "^1.0.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "requires": { - "remove-trailing-separator": "^1.0.1" - } - }, - "normalize-url": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-2.0.1.tgz", - "integrity": "sha512-D6MUW4K/VzoJ4rJ01JFKxDrtY1v9wrgzCX5f2qj/lzH1m/lW6MhUZFKerVsnyjOhOsYzI9Kqqak+10l4LvLpMw==", - "dev": true, - "requires": { - "prepend-http": "^2.0.0", - "query-string": "^5.0.1", - "sort-keys": "^2.0.0" - }, - "dependencies": { - "prepend-http": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", - "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", - "dev": true - } - } - }, - "npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", - "dev": true, - "requires": { - "path-key": "^2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" - }, - "nyc": { - "version": "12.0.2", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-12.0.2.tgz", - "integrity": "sha1-ikpO1pCWbBHsWH/4fuoMEsl0upk=", - "dev": true, - "requires": { - "archy": "^1.0.0", - "arrify": "^1.0.1", - "caching-transform": "^1.0.0", - "convert-source-map": "^1.5.1", - "debug-log": "^1.0.1", - "default-require-extensions": "^1.0.0", - "find-cache-dir": "^0.1.1", - "find-up": "^2.1.0", - "foreground-child": "^1.5.3", - "glob": "^7.0.6", - "istanbul-lib-coverage": "^1.2.0", - "istanbul-lib-hook": "^1.1.0", - "istanbul-lib-instrument": "^2.1.0", - "istanbul-lib-report": "^1.1.3", - "istanbul-lib-source-maps": "^1.2.5", - "istanbul-reports": "^1.4.1", - "md5-hex": "^1.2.0", - "merge-source-map": "^1.1.0", - "micromatch": "^3.1.10", - "mkdirp": "^0.5.0", - "resolve-from": "^2.0.0", - "rimraf": "^2.6.2", - "signal-exit": "^3.0.1", - "spawn-wrap": "^1.4.2", - "test-exclude": "^4.2.0", - "yargs": "11.1.0", - "yargs-parser": "^8.0.0" - }, - "dependencies": { - "align-text": { - "version": "0.1.4", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2", - "longest": "^1.0.1", - "repeat-string": "^1.5.2" - } - }, - "amdefine": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "ansi-regex": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "append-transform": { - "version": "0.4.0", - "bundled": true, - "dev": true, - "requires": { - "default-require-extensions": "^1.0.0" - } - }, - "archy": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "arr-diff": { - "version": "4.0.0", - "bundled": true, - "dev": true - }, - "arr-flatten": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "arr-union": { - "version": "3.1.0", - "bundled": true, - "dev": true - }, - "array-unique": { - "version": "0.3.2", - "bundled": true, - "dev": true - }, - "arrify": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "assign-symbols": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "async": { - "version": "1.5.2", - "bundled": true, - "dev": true - }, - "atob": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "balanced-match": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "base": { - "version": "0.11.2", - "bundled": true, - "dev": true, - "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "bundled": true, - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "2.3.2", - "bundled": true, - "dev": true, - "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "builtin-modules": { - "version": "1.1.1", - "bundled": true, - "dev": true - }, - "cache-base": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - } - }, - "caching-transform": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "md5-hex": "^1.2.0", - "mkdirp": "^0.5.1", - "write-file-atomic": "^1.1.4" - } - }, - "camelcase": { - "version": "1.2.1", - "bundled": true, - "dev": true, - "optional": true - }, - "center-align": { - "version": "0.1.3", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "align-text": "^0.1.3", - "lazy-cache": "^1.0.3" - } - }, - "class-utils": { - "version": "0.3.6", - "bundled": true, - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "cliui": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "center-align": "^0.1.1", - "right-align": "^0.1.1", - "wordwrap": "0.0.2" - }, - "dependencies": { - "wordwrap": { - "version": "0.0.2", - "bundled": true, - "dev": true, - "optional": true - } - } - }, - "code-point-at": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "collection-visit": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" - } - }, - "commondir": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "component-emitter": { - "version": "1.2.1", - "bundled": true, - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "bundled": true, - "dev": true - }, - "convert-source-map": { - "version": "1.5.1", - "bundled": true, - "dev": true - }, - "copy-descriptor": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "cross-spawn": { - "version": "4.0.2", - "bundled": true, - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "which": "^1.2.9" - } - }, - "debug": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "debug-log": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "decamelize": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "decode-uri-component": { - "version": "0.2.0", - "bundled": true, - "dev": true - }, - "default-require-extensions": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "strip-bom": "^2.0.0" - } - }, - "define-property": { - "version": "2.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "dependencies": { - "is-accessor-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "error-ex": { - "version": "1.3.1", - "bundled": true, - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "execa": { - "version": "0.7.0", - "bundled": true, - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "dependencies": { - "cross-spawn": { - "version": "5.1.0", - "bundled": true, - "dev": true, - "requires": { - "lru-cache": "^4.0.1", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - } - } - } - }, - "expand-brackets": { - "version": "2.1.4", - "bundled": true, - "dev": true, - "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "bundled": true, - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "extend-shallow": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "extglob": { - "version": "2.0.4", - "bundled": true, - "dev": true, - "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "fill-range": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "find-cache-dir": { - "version": "0.1.1", - "bundled": true, - "dev": true, - "requires": { - "commondir": "^1.0.1", - "mkdirp": "^0.5.1", - "pkg-dir": "^1.0.0" - } - }, - "find-up": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "locate-path": "^2.0.0" - } - }, - "for-in": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "foreground-child": { - "version": "1.5.6", - "bundled": true, - "dev": true, - "requires": { - "cross-spawn": "^4", - "signal-exit": "^3.0.0" - } - }, - "fragment-cache": { - "version": "0.2.1", - "bundled": true, - "dev": true, - "requires": { - "map-cache": "^0.2.2" - } - }, - "fs.realpath": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "get-caller-file": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "get-stream": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "get-value": { - "version": "2.0.6", - "bundled": true, - "dev": true - }, - "glob": { - "version": "7.1.2", - "bundled": true, - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "graceful-fs": { - "version": "4.1.11", - "bundled": true, - "dev": true - }, - "handlebars": { - "version": "4.0.11", - "bundled": true, - "dev": true, - "requires": { - "async": "^1.4.0", - "optimist": "^0.6.1", - "source-map": "^0.4.4", - "uglify-js": "^2.6" - }, - "dependencies": { - "source-map": { - "version": "0.4.4", - "bundled": true, - "dev": true, - "requires": { - "amdefine": ">=0.0.4" - } - } - } - }, - "has-value": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - } - }, - "has-values": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "dependencies": { - "kind-of": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "hosted-git-info": { - "version": "2.6.0", - "bundled": true, - "dev": true - }, - "imurmurhash": { - "version": "0.1.4", - "bundled": true, - "dev": true - }, - "inflight": { - "version": "1.0.6", - "bundled": true, - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.3", - "bundled": true, - "dev": true - }, - "invert-kv": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "is-accessor-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-arrayish": { - "version": "0.2.1", - "bundled": true, - "dev": true - }, - "is-buffer": { - "version": "1.1.6", - "bundled": true, - "dev": true - }, - "is-builtin-module": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "builtin-modules": "^1.0.0" - } - }, - "is-data-descriptor": { - "version": "0.1.4", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-descriptor": { - "version": "0.1.6", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "dependencies": { - "kind-of": { - "version": "5.1.0", - "bundled": true, - "dev": true - } - } - }, - "is-extendable": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "is-number": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "is-odd": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-number": "^4.0.0" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "bundled": true, - "dev": true - } - } - }, - "is-plain-object": { - "version": "2.0.4", - "bundled": true, - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "is-stream": { - "version": "1.1.0", - "bundled": true, - "dev": true - }, - "is-utf8": { - "version": "0.2.1", - "bundled": true, - "dev": true - }, - "is-windows": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "isarray": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "isexe": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "isobject": { - "version": "3.0.1", - "bundled": true, - "dev": true - }, - "istanbul-lib-coverage": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "istanbul-lib-hook": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "append-transform": "^0.4.0" - } - }, - "istanbul-lib-report": { - "version": "1.1.3", - "bundled": true, - "dev": true, - "requires": { - "istanbul-lib-coverage": "^1.1.2", - "mkdirp": "^0.5.1", - "path-parse": "^1.0.5", - "supports-color": "^3.1.2" - }, - "dependencies": { - "has-flag": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "supports-color": { - "version": "3.2.3", - "bundled": true, - "dev": true, - "requires": { - "has-flag": "^1.0.0" - } - } - } - }, - "istanbul-lib-source-maps": { - "version": "1.2.5", - "bundled": true, - "dev": true, - "requires": { - "debug": "^3.1.0", - "istanbul-lib-coverage": "^1.2.0", - "mkdirp": "^0.5.1", - "rimraf": "^2.6.1", - "source-map": "^0.5.3" - } - }, - "istanbul-reports": { - "version": "1.4.1", - "bundled": true, - "dev": true, - "requires": { - "handlebars": "^4.0.3" - } - }, - "kind-of": { - "version": "3.2.2", - "bundled": true, - "dev": true, - "requires": { - "is-buffer": "^1.1.5" - } - }, - "lazy-cache": { - "version": "1.0.4", - "bundled": true, - "dev": true, - "optional": true - }, - "lcid": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "invert-kv": "^1.0.0" - } - }, - "load-json-file": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - } - }, - "locate-path": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "p-locate": "^2.0.0", - "path-exists": "^3.0.0" - }, - "dependencies": { - "path-exists": { - "version": "3.0.0", - "bundled": true, - "dev": true - } - } - }, - "longest": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "lru-cache": { - "version": "4.1.3", - "bundled": true, - "dev": true, - "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" - } - }, - "map-cache": { - "version": "0.2.2", - "bundled": true, - "dev": true - }, - "map-visit": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "object-visit": "^1.0.0" - } - }, - "md5-hex": { - "version": "1.3.0", - "bundled": true, - "dev": true, - "requires": { - "md5-o-matic": "^0.1.1" - } - }, - "md5-o-matic": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "mem": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - } - }, - "merge-source-map": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "source-map": "^0.6.1" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "bundled": true, - "dev": true - } - } - }, - "micromatch": { - "version": "3.1.10", - "bundled": true, - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "mimic-fn": { - "version": "1.2.0", - "bundled": true, - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "bundled": true, - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "0.0.8", - "bundled": true, - "dev": true - }, - "mixin-deep": { - "version": "1.3.1", - "bundled": true, - "dev": true, - "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "dependencies": { - "is-extendable": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-plain-object": "^2.0.4" - } - } - } - }, - "mkdirp": { - "version": "0.5.1", - "bundled": true, - "dev": true, - "requires": { - "minimist": "0.0.8" - } - }, - "ms": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "nanomatch": { - "version": "1.2.9", - "bundled": true, - "dev": true, - "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-odd": "^2.0.0", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "normalize-package-data": { - "version": "2.4.0", - "bundled": true, - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "is-builtin-module": "^1.0.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "npm-run-path": { - "version": "2.0.2", - "bundled": true, - "dev": true, - "requires": { - "path-key": "^2.0.0" - } - }, - "number-is-nan": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "bundled": true, - "dev": true - }, - "object-copy": { - "version": "0.1.0", - "bundled": true, - "dev": true, - "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "object-visit": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "isobject": "^3.0.0" - } - }, - "object.pick": { - "version": "1.3.0", - "bundled": true, - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "once": { - "version": "1.4.0", - "bundled": true, - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "optimist": { - "version": "0.6.1", - "bundled": true, - "dev": true, - "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" - } - }, - "os-homedir": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "os-locale": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "execa": "^0.7.0", - "lcid": "^1.0.0", - "mem": "^1.1.0" - } - }, - "p-finally": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "p-limit": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-try": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "parse-json": { - "version": "2.2.0", - "bundled": true, - "dev": true, - "requires": { - "error-ex": "^1.2.0" - } - }, - "pascalcase": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "path-exists": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0" - } - }, - "path-is-absolute": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "path-key": { - "version": "2.0.1", - "bundled": true, - "dev": true - }, - "path-parse": { - "version": "1.0.5", - "bundled": true, - "dev": true - }, - "path-type": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "pify": { - "version": "2.3.0", - "bundled": true, - "dev": true - }, - "pinkie": { - "version": "2.0.4", - "bundled": true, - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "pinkie": "^2.0.0" - } - }, - "pkg-dir": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "find-up": "^1.0.0" - }, - "dependencies": { - "find-up": { - "version": "1.1.2", - "bundled": true, - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - } - } - }, - "posix-character-classes": { - "version": "0.1.1", - "bundled": true, - "dev": true - }, - "pseudomap": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "read-pkg": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - } - }, - "read-pkg-up": { - "version": "1.0.1", - "bundled": true, - "dev": true, - "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - }, - "dependencies": { - "find-up": { - "version": "1.1.2", - "bundled": true, - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - } - } - }, - "regex-not": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - } - }, - "repeat-element": { - "version": "1.1.2", - "bundled": true, - "dev": true - }, - "repeat-string": { - "version": "1.6.1", - "bundled": true, - "dev": true - }, - "require-directory": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "require-main-filename": { - "version": "1.0.1", - "bundled": true, - "dev": true - }, - "resolve-from": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "resolve-url": { - "version": "0.2.1", - "bundled": true, - "dev": true - }, - "ret": { - "version": "0.1.15", - "bundled": true, - "dev": true - }, - "right-align": { - "version": "0.1.3", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "align-text": "^0.1.1" - } - }, - "rimraf": { - "version": "2.6.2", - "bundled": true, - "dev": true, - "requires": { - "glob": "^7.0.5" - } - }, - "safe-regex": { - "version": "1.1.0", - "bundled": true, - "dev": true, - "requires": { - "ret": "~0.1.10" - } - }, - "semver": { - "version": "5.5.0", - "bundled": true, - "dev": true - }, - "set-blocking": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "set-value": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "shebang-command": { - "version": "1.2.0", - "bundled": true, - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "signal-exit": { - "version": "3.0.2", - "bundled": true, - "dev": true - }, - "slide": { - "version": "1.1.6", - "bundled": true, - "dev": true - }, - "snapdragon": { - "version": "0.8.2", - "bundled": true, - "dev": true, - "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "dependencies": { - "debug": { - "version": "2.6.9", - "bundled": true, - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - }, - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.2.0" - } - }, - "source-map": { - "version": "0.5.7", - "bundled": true, - "dev": true - }, - "source-map-resolve": { - "version": "0.5.2", - "bundled": true, - "dev": true, - "requires": { - "atob": "^2.1.1", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "source-map-url": { - "version": "0.4.0", - "bundled": true, - "dev": true - }, - "spawn-wrap": { - "version": "1.4.2", - "bundled": true, - "dev": true, - "requires": { - "foreground-child": "^1.5.6", - "mkdirp": "^0.5.0", - "os-homedir": "^1.0.1", - "rimraf": "^2.6.2", - "signal-exit": "^3.0.2", - "which": "^1.3.0" - } - }, - "spdx-correct": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.1.0", - "bundled": true, - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.0", - "bundled": true, - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.0", - "bundled": true, - "dev": true - }, - "split-string": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "^3.0.0" - } - }, - "static-extend": { - "version": "0.1.2", - "bundled": true, - "dev": true, - "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "bundled": true, - "dev": true, - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "string-width": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "strip-bom": { - "version": "2.0.0", - "bundled": true, - "dev": true, - "requires": { - "is-utf8": "^0.2.0" - } - }, - "strip-eof": { - "version": "1.0.0", - "bundled": true, - "dev": true - }, - "test-exclude": { - "version": "4.2.1", - "bundled": true, - "dev": true, - "requires": { - "arrify": "^1.0.1", - "micromatch": "^3.1.8", - "object-assign": "^4.1.0", - "read-pkg-up": "^1.0.1", - "require-main-filename": "^1.0.1" - } - }, - "to-object-path": { - "version": "0.3.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^3.0.2" - } - }, - "to-regex": { - "version": "3.0.2", - "bundled": true, - "dev": true, - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "bundled": true, - "dev": true, - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - }, - "uglify-js": { - "version": "2.8.29", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "source-map": "~0.5.1", - "uglify-to-browserify": "~1.0.0", - "yargs": "~3.10.0" - }, - "dependencies": { - "yargs": { - "version": "3.10.0", - "bundled": true, - "dev": true, - "optional": true, - "requires": { - "camelcase": "^1.0.2", - "cliui": "^2.1.0", - "decamelize": "^1.0.0", - "window-size": "0.1.0" - } - } - } - }, - "uglify-to-browserify": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "optional": true - }, - "union-value": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^0.4.3" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "bundled": true, - "dev": true, - "requires": { - "is-extendable": "^0.1.0" - } - }, - "set-value": { - "version": "0.4.3", - "bundled": true, - "dev": true, - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.1", - "to-object-path": "^0.3.0" - } - } - } - }, - "unset-value": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "bundled": true, - "dev": true, - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "bundled": true, - "dev": true - } - } - }, - "urix": { - "version": "0.1.0", - "bundled": true, - "dev": true - }, - "use": { - "version": "3.1.0", - "bundled": true, - "dev": true, - "requires": { - "kind-of": "^6.0.2" - }, - "dependencies": { - "kind-of": { - "version": "6.0.2", - "bundled": true, - "dev": true - } - } - }, - "validate-npm-package-license": { - "version": "3.0.3", - "bundled": true, - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "which": { - "version": "1.3.1", - "bundled": true, - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "bundled": true, - "dev": true - }, - "window-size": { - "version": "0.1.0", - "bundled": true, - "dev": true, - "optional": true - }, - "wordwrap": { - "version": "0.0.3", - "bundled": true, - "dev": true - }, - "wrap-ansi": { - "version": "2.1.0", - "bundled": true, - "dev": true, - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "2.1.1", - "bundled": true, - "dev": true - }, - "is-fullwidth-code-point": { - "version": "1.0.0", - "bundled": true, - "dev": true, - "requires": { - "number-is-nan": "^1.0.0" - } - }, - "string-width": { - "version": "1.0.2", - "bundled": true, - "dev": true, - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "strip-ansi": { - "version": "3.0.1", - "bundled": true, - "dev": true, - "requires": { - "ansi-regex": "^2.0.0" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "bundled": true, - "dev": true - }, - "write-file-atomic": { - "version": "1.3.4", - "bundled": true, - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "slide": "^1.1.5" - } - }, - "y18n": { - "version": "3.2.1", - "bundled": true, - "dev": true - }, - "yallist": { - "version": "2.1.2", - "bundled": true, - "dev": true - }, - "yargs": { - "version": "11.1.0", - "bundled": true, - "dev": true, - "requires": { - "cliui": "^4.0.0", - "decamelize": "^1.1.1", - "find-up": "^2.1.0", - "get-caller-file": "^1.0.1", - "os-locale": "^2.0.0", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^2.0.0", - "which-module": "^2.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^9.0.2" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "bundled": true, - "dev": true - }, - "cliui": { - "version": "4.1.0", - "bundled": true, - "dev": true, - "requires": { - "string-width": "^2.1.1", - "strip-ansi": "^4.0.0", - "wrap-ansi": "^2.0.0" - } - }, - "yargs-parser": { - "version": "9.0.2", - "bundled": true, - "dev": true, - "requires": { - "camelcase": "^4.1.0" - } - } - } - }, - "yargs-parser": { - "version": "8.1.0", - "bundled": true, - "dev": true, - "requires": { - "camelcase": "^4.1.0" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "bundled": true, - "dev": true - } - } - } - } - }, - "oauth-sign": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", - "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "object-keys": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.12.tgz", - "integrity": "sha512-FTMyFUm2wBcGHnH2eXmz7tC6IwlqQZ6mVZ+6dm6vZ4IQIHjs6FdNsQBuKGPuUUUY6NfJw2PshC08Tn6LzLDOag==" - }, - "object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "requires": { - "isobject": "^3.0.0" - } - }, - "object.omit": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", - "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", - "dev": true, - "requires": { - "for-own": "^0.1.4", - "is-extendable": "^0.1.1" - } - }, - "object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "requires": { - "isobject": "^3.0.1" - } - }, - "observable-to-promise": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/observable-to-promise/-/observable-to-promise-0.5.0.tgz", - "integrity": "sha1-yCjw8NxH6fhq+KSXfF1VB2znqR8=", - "dev": true, - "requires": { - "is-observable": "^0.2.0", - "symbol-observable": "^1.0.4" - }, - "dependencies": { - "is-observable": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/is-observable/-/is-observable-0.2.0.tgz", - "integrity": "sha1-s2ExHYPG5dcmyr9eJQsCNxBvWuI=", - "dev": true, - "requires": { - "symbol-observable": "^0.2.2" - }, - "dependencies": { - "symbol-observable": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-0.2.4.tgz", - "integrity": "sha1-lag9smGG1q9+ehjb2XYKL4bQj0A=", - "dev": true - } - } - } - } - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz", - "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", - "dev": true, - "requires": { - "mimic-fn": "^1.0.0" - } - }, - "optimist": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", - "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", - "dev": true, - "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" - } - }, - "option-chain": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/option-chain/-/option-chain-1.0.0.tgz", - "integrity": "sha1-k41zvU4Xg/lI00AjZEraI2aeMPI=", - "dev": true - }, - "optionator": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz", - "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", - "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.4", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "wordwrap": "~1.0.0" - }, - "dependencies": { - "wordwrap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", - "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=", - "dev": true - } - } - }, - "optjs": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/optjs/-/optjs-3.2.2.tgz", - "integrity": "sha1-aabOicRCpEQDFBrS+bNwvVu29O4=" - }, - "os-homedir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true - }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", - "requires": { - "lcid": "^1.0.0" - } - }, - "os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", - "dev": true - }, - "p-cancelable": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-0.4.1.tgz", - "integrity": "sha512-HNa1A8LvB1kie7cERyy21VNeHb2CWJJYqyyC2o3klWFfMGlFmWv2Z7sFgZH8ZiaYL95ydToKTFVXgMV/Os0bBQ==", - "dev": true - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-is-promise": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-1.1.0.tgz", - "integrity": "sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4=", - "dev": true - }, - "p-limit": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz", - "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", - "dev": true, - "requires": { - "p-try": "^1.0.0" - } - }, - "p-locate": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", - "dev": true, - "requires": { - "p-limit": "^1.1.0" - } - }, - "p-timeout": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-2.0.1.tgz", - "integrity": "sha512-88em58dDVB/KzPEx1X0N3LwFfYZPyDc4B6eF38M1rk9VTZMbxXXgjugz8mmwpS9Ox4BDZ+t6t3QP5+/gazweIA==", - "dev": true, - "requires": { - "p-finally": "^1.0.0" - } - }, - "p-try": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", - "dev": true - }, - "package-hash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-2.0.0.tgz", - "integrity": "sha1-eK4ybIngWk2BO2hgGXevBcANKg0=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "lodash.flattendeep": "^4.4.0", - "md5-hex": "^2.0.0", - "release-zalgo": "^1.0.0" - } - }, - "package-json": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", - "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=", - "dev": true, - "requires": { - "got": "^6.7.1", - "registry-auth-token": "^3.0.1", - "registry-url": "^3.0.3", - "semver": "^5.1.0" - }, - "dependencies": { - "got": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", - "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", - "dev": true, - "requires": { - "create-error-class": "^3.0.0", - "duplexer3": "^0.1.4", - "get-stream": "^3.0.0", - "is-redirect": "^1.0.0", - "is-retry-allowed": "^1.0.0", - "is-stream": "^1.0.0", - "lowercase-keys": "^1.0.0", - "safe-buffer": "^5.0.1", - "timed-out": "^4.0.0", - "unzip-response": "^2.0.1", - "url-parse-lax": "^1.0.0" - } - } - } - }, - "parse-glob": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", - "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", - "dev": true, - "requires": { - "glob-base": "^0.3.0", - "is-dotfile": "^1.0.0", - "is-extglob": "^1.0.0", - "is-glob": "^2.0.0" - }, - "dependencies": { - "is-extglob": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", - "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true - }, - "is-glob": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", - "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", - "dev": true, - "requires": { - "is-extglob": "^1.0.0" - } - } - } - }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", - "dev": true, - "requires": { - "error-ex": "^1.2.0" - } - }, - "parse-ms": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-0.1.2.tgz", - "integrity": "sha1-3T+iXtbC78e93hKtm0bBY6opIk4=", - "dev": true - }, - "pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=" - }, - "path-dirname": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", - "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=" - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" - }, - "path-is-inside": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", - "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", - "dev": true - }, - "path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", - "dev": true - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "path-to-regexp": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.7.0.tgz", - "integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=", - "dev": true, - "requires": { - "isarray": "0.0.1" - }, - "dependencies": { - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", - "dev": true - } - } - }, - "path-type": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz", - "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", - "requires": { - "pify": "^3.0.0" - } - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true - }, - "pify": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", - "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=" - }, - "pinkie": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-1.0.0.tgz", - "integrity": "sha1-Wkfyi6EBXQIBvae/DzWOR77Ix+Q=", - "dev": true - }, - "pinkie-promise": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-1.0.0.tgz", - "integrity": "sha1-0dpn9UglY7t89X8oauKCLs+/NnA=", - "dev": true, - "requires": { - "pinkie": "^1.0.0" - } - }, - "pkg-conf": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-2.1.0.tgz", - "integrity": "sha1-ISZRTKbyq/69FoWW3xi6V4Z/AFg=", - "dev": true, - "requires": { - "find-up": "^2.0.0", - "load-json-file": "^4.0.0" - }, - "dependencies": { - "load-json-file": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz", - "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" - } - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" - } - } - } - }, - "pkg-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", - "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", - "dev": true, - "requires": { - "find-up": "^2.1.0" - } - }, - "plur": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/plur/-/plur-2.1.2.tgz", - "integrity": "sha1-dIJFLBoPUI4+NE6uwxLJHCncZVo=", - "dev": true, - "requires": { - "irregular-plurals": "^1.0.0" - } - }, - "pluralize": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-7.0.0.tgz", - "integrity": "sha512-ARhBOdzS3e41FbkW/XWrTEtukqqLoK5+Z/4UeDaLuSW+39JPeFgs4gCGqsrJHVZX0fUrx//4OF0K1CUGwlIFow==", - "dev": true - }, - "posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=" - }, - "postcss": { - "version": "6.0.23", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz", - "integrity": "sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==", - "dev": true, - "requires": { - "chalk": "^2.4.1", - "source-map": "^0.6.1", - "supports-color": "^5.4.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "power-assert": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/power-assert/-/power-assert-1.6.0.tgz", - "integrity": "sha512-nDb6a+p2C7Wj8Y2zmFtLpuv+xobXz4+bzT5s7dr0nn71tLozn7nRMQqzwbefzwZN5qOm0N7Cxhw4kXP75xboKA==", - "requires": { - "define-properties": "^1.1.2", - "empower": "^1.3.0", - "power-assert-formatter": "^1.4.1", - "universal-deep-strict-equal": "^1.2.1", - "xtend": "^4.0.0" - } - }, - "power-assert-context-formatter": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/power-assert-context-formatter/-/power-assert-context-formatter-1.2.0.tgz", - "integrity": "sha512-HLNEW8Bin+BFCpk/zbyKwkEu9W8/zThIStxGo7weYcFkKgMuGCHUJhvJeBGXDZf0Qm2xis4pbnnciGZiX0EpSg==", - "requires": { - "core-js": "^2.0.0", - "power-assert-context-traversal": "^1.2.0" - } - }, - "power-assert-context-reducer-ast": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/power-assert-context-reducer-ast/-/power-assert-context-reducer-ast-1.2.0.tgz", - "integrity": "sha512-EgOxmZ/Lb7tw4EwSKX7ZnfC0P/qRZFEG28dx/690qvhmOJ6hgThYFm5TUWANDLK5NiNKlPBi5WekVGd2+5wPrw==", - "requires": { - "acorn": "^5.0.0", - "acorn-es7-plugin": "^1.0.12", - "core-js": "^2.0.0", - "espurify": "^1.6.0", - "estraverse": "^4.2.0" - } - }, - "power-assert-context-traversal": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/power-assert-context-traversal/-/power-assert-context-traversal-1.2.0.tgz", - "integrity": "sha512-NFoHU6g2umNajiP2l4qb0BRWD773Aw9uWdWYH9EQsVwIZnog5bd2YYLFCVvaxWpwNzWeEfZIon2xtyc63026pQ==", - "requires": { - "core-js": "^2.0.0", - "estraverse": "^4.1.0" - } - }, - "power-assert-formatter": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/power-assert-formatter/-/power-assert-formatter-1.4.1.tgz", - "integrity": "sha1-XcEl7VCj37HdomwZNH879Y7CiEo=", - "requires": { - "core-js": "^2.0.0", - "power-assert-context-formatter": "^1.0.7", - "power-assert-context-reducer-ast": "^1.0.7", - "power-assert-renderer-assertion": "^1.0.7", - "power-assert-renderer-comparison": "^1.0.7", - "power-assert-renderer-diagram": "^1.0.7", - "power-assert-renderer-file": "^1.0.7" - } - }, - "power-assert-renderer-assertion": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/power-assert-renderer-assertion/-/power-assert-renderer-assertion-1.2.0.tgz", - "integrity": "sha512-3F7Q1ZLmV2ZCQv7aV7NJLNK9G7QsostrhOU7U0RhEQS/0vhEqrRg2jEJl1jtUL4ZyL2dXUlaaqrmPv5r9kRvIg==", - "requires": { - "power-assert-renderer-base": "^1.1.1", - "power-assert-util-string-width": "^1.2.0" - } - }, - "power-assert-renderer-base": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/power-assert-renderer-base/-/power-assert-renderer-base-1.1.1.tgz", - "integrity": "sha1-lqZQxv0F7hvB9mtUrWFELIs/Y+s=" - }, - "power-assert-renderer-comparison": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/power-assert-renderer-comparison/-/power-assert-renderer-comparison-1.2.0.tgz", - "integrity": "sha512-7c3RKPDBKK4E3JqdPtYRE9cM8AyX4LC4yfTvvTYyx8zSqmT5kJnXwzR0yWQLOavACllZfwrAGQzFiXPc5sWa+g==", - "requires": { - "core-js": "^2.0.0", - "diff-match-patch": "^1.0.0", - "power-assert-renderer-base": "^1.1.1", - "stringifier": "^1.3.0", - "type-name": "^2.0.1" - } - }, - "power-assert-renderer-diagram": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/power-assert-renderer-diagram/-/power-assert-renderer-diagram-1.2.0.tgz", - "integrity": "sha512-JZ6PC+DJPQqfU6dwSmpcoD7gNnb/5U77bU5KgNwPPa+i1Pxiz6UuDeM3EUBlhZ1HvH9tMjI60anqVyi5l2oNdg==", - "requires": { - "core-js": "^2.0.0", - "power-assert-renderer-base": "^1.1.1", - "power-assert-util-string-width": "^1.2.0", - "stringifier": "^1.3.0" - } - }, - "power-assert-renderer-file": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/power-assert-renderer-file/-/power-assert-renderer-file-1.2.0.tgz", - "integrity": "sha512-/oaVrRbeOtGoyyd7e4IdLP/jIIUFJdqJtsYzP9/88R39CMnfF/S/rUc8ZQalENfUfQ/wQHu+XZYRMaCEZmEesg==", - "requires": { - "power-assert-renderer-base": "^1.1.1" - } - }, - "power-assert-util-string-width": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/power-assert-util-string-width/-/power-assert-util-string-width-1.2.0.tgz", - "integrity": "sha512-lX90G0igAW0iyORTILZ/QjZWsa1MZ6VVY3L0K86e2eKun3S4LKPH4xZIl8fdeMYLfOjkaszbNSzf1uugLeAm2A==", - "requires": { - "eastasianwidth": "^0.2.0" - } - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true - }, - "prepend-http": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", - "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", - "dev": true - }, - "preserve": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", - "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", - "dev": true - }, - "prettier": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-1.14.0.tgz", - "integrity": "sha512-KtQ2EGaUwf2EyDfp1fxyEb0PqGKakVm0WyXwDt6u+cAoxbO2Z2CwKvOe3+b4+F2IlO9lYHi1kqFuRM70ddBnow==", - "dev": true - }, - "pretty-ms": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-3.2.0.tgz", - "integrity": "sha512-ZypexbfVUGTFxb0v+m1bUyy92DHe5SyYlnyY0msyms5zd3RwyvNgyxZZsXXgoyzlxjx5MiqtXUdhUfvQbe0A2Q==", - "dev": true, - "requires": { - "parse-ms": "^1.0.0" - }, - "dependencies": { - "parse-ms": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-1.0.1.tgz", - "integrity": "sha1-VjRtR0nXjyNDDKDHE4UK75GqNh0=", - "dev": true - } - } - }, - "private": { - "version": "0.1.8", - "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", - "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", - "dev": true - }, - "process-nextick-args": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", - "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==" - }, - "progress": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.0.tgz", - "integrity": "sha1-ihvjZr+Pwj2yvSPxDG/pILQ4nR8=", - "dev": true - }, - "protobufjs": { - "version": "6.8.8", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.8.8.tgz", - "integrity": "sha512-AAmHtD5pXgZfi7GMpllpO3q1Xw1OYldr+dMUlAnffGTAhqkg72WdmSY71uKBF/JuyiKs8psYbtKrhi0ASCD8qw==", - "requires": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.0", - "@types/node": "^10.1.0", - "long": "^4.0.0" - }, - "dependencies": { - "@types/node": { - "version": "10.5.7", - "resolved": "https://registry.npmjs.org/@types/node/-/node-10.5.7.tgz", - "integrity": "sha512-VkKcfuitP+Nc/TaTFH0B8qNmn+6NbI6crLkQonbedViVz7O2w8QV/GERPlkJ4bg42VGHiEWa31CoTOPs1q6z1w==" - } - } - }, - "proxyquire": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/proxyquire/-/proxyquire-1.8.0.tgz", - "integrity": "sha1-AtUUpb7ZhvBMuyCTrxZ0FTX3ntw=", - "dev": true, - "requires": { - "fill-keys": "^1.0.2", - "module-not-found-error": "^1.0.0", - "resolve": "~1.1.7" - } - }, - "pseudomap": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", - "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=" - }, - "punycode": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", - "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", - "dev": true - }, - "qs": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", - "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", - "dev": true - }, - "query-string": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-5.1.1.tgz", - "integrity": "sha512-gjWOsm2SoGlgLEdAGt7a6slVOk9mGiXmPFMqrEhLQ68rhQuBnpfs3+EmlvqKyxnCo9/PPlF+9MtY02S1aFg+Jw==", - "dev": true, - "requires": { - "decode-uri-component": "^0.2.0", - "object-assign": "^4.1.0", - "strict-uri-encode": "^1.0.0" - } - }, - "randomatic": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-3.0.0.tgz", - "integrity": "sha512-VdxFOIEY3mNO5PtSRkkle/hPJDHvQhK21oa73K4yAc9qmp6N429gAyF1gZMOTMeS0/AYzaV/2Trcef+NaIonSA==", - "dev": true, - "requires": { - "is-number": "^4.0.0", - "kind-of": "^6.0.0", - "math-random": "^1.0.1" - }, - "dependencies": { - "is-number": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-4.0.0.tgz", - "integrity": "sha512-rSklcAIlf1OmFdyAqbnWTLVelsQ58uvZ66S/ZyawjWqIviTWCjg2PzVGw8WUA+nNuPTqb4wgA+NszrJ+08LlgQ==", - "dev": true - } - } - }, - "rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, - "dependencies": { - "minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", - "dev": true - } - } - }, - "read-pkg": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", - "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", - "dev": true, - "requires": { - "load-json-file": "^2.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^2.0.0" - }, - "dependencies": { - "path-type": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", - "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", - "dev": true, - "requires": { - "pify": "^2.0.0" - } - }, - "pify": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", - "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", - "dev": true - } - } - }, - "read-pkg-up": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", - "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", - "dev": true, - "requires": { - "find-up": "^2.0.0", - "read-pkg": "^2.0.0" - } - }, - "readable-stream": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", - "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", - "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" - } - }, - "readdirp": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", - "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "minimatch": "^3.0.2", - "readable-stream": "^2.0.2", - "set-immediate-shim": "^1.0.1" - } - }, - "redent": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", - "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", - "dev": true, - "requires": { - "indent-string": "^2.1.0", - "strip-indent": "^1.0.1" - }, - "dependencies": { - "indent-string": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", - "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", - "dev": true, - "requires": { - "repeating": "^2.0.0" - } - } - } - }, - "regenerate": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz", - "integrity": "sha512-1G6jJVDWrt0rK99kBjvEtziZNCICAuvIPkSiUFIQxVP06RCVpq3dmDo2oi6ABpYaDYaTRr67BEhL8r1wgEZZKg==", - "dev": true - }, - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - }, - "regex-cache": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", - "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", - "dev": true, - "requires": { - "is-equal-shallow": "^0.1.3" - } - }, - "regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - } - }, - "regexp.prototype.flags": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.2.0.tgz", - "integrity": "sha512-ztaw4M1VqgMwl9HlPpOuiYgItcHlunW0He2fE6eNfT6E/CF2FtYi9ofOYe4mKntstYk0Fyh/rDRBdS3AnxjlrA==", - "dev": true, - "requires": { - "define-properties": "^1.1.2" - } - }, - "regexpp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-2.0.0.tgz", - "integrity": "sha512-g2FAVtR8Uh8GO1Nv5wpxW7VFVwHcCEr4wyA8/MHiRkO8uHoR5ntAA8Uq3P1vvMTX/BeQiRVSpDGLd+Wn5HNOTA==", - "dev": true - }, - "regexpu-core": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", - "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", - "dev": true, - "requires": { - "regenerate": "^1.2.1", - "regjsgen": "^0.2.0", - "regjsparser": "^0.1.4" - } - }, - "registry-auth-token": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.2.tgz", - "integrity": "sha512-JL39c60XlzCVgNrO+qq68FoNb56w/m7JYvGR2jT5iR1xBrUA3Mfx5Twk5rqTThPmQKMWydGmq8oFtDlxfrmxnQ==", - "dev": true, - "requires": { - "rc": "^1.1.6", - "safe-buffer": "^5.0.1" - } - }, - "registry-url": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", - "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", - "dev": true, - "requires": { - "rc": "^1.0.1" - } - }, - "regjsgen": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", - "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", - "dev": true - }, - "regjsparser": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", - "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", - "dev": true, - "requires": { - "jsesc": "~0.5.0" - } - }, - "release-zalgo": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", - "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", - "dev": true, - "requires": { - "es6-error": "^4.0.1" - } - }, - "remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "repeat-element": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", - "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=" - }, - "repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=" - }, - "repeating": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", - "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", - "dev": true, - "requires": { - "is-finite": "^1.0.0" - } - }, - "request": { - "version": "2.87.0", - "resolved": "https://registry.npmjs.org/request/-/request-2.87.0.tgz", - "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", - "dev": true, - "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.6.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.5", - "extend": "~3.0.1", - "forever-agent": "~0.6.1", - "form-data": "~2.3.1", - "har-validator": "~5.0.3", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.17", - "oauth-sign": "~0.8.2", - "performance-now": "^2.1.0", - "qs": "~6.5.1", - "safe-buffer": "^5.1.1", - "tough-cookie": "~2.3.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.1.0" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "require-main-filename": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", - "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", - "dev": true - }, - "require-precompiled": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/require-precompiled/-/require-precompiled-0.1.0.tgz", - "integrity": "sha1-WhtS63Dr7UPrmC6XTIWrWVceVvo=", - "dev": true - }, - "require-uncached": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/require-uncached/-/require-uncached-1.0.3.tgz", - "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", - "dev": true, - "requires": { - "caller-path": "^0.1.0", - "resolve-from": "^1.0.0" - }, - "dependencies": { - "resolve-from": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-1.0.1.tgz", - "integrity": "sha1-Jsv+k10a7uq7Kbw/5a6wHpPUQiY=", - "dev": true - } - } - }, - "requizzle": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.1.tgz", - "integrity": "sha1-aUPDUwxNmn5G8c3dUcFY/GcM294=", - "dev": true, - "requires": { - "underscore": "~1.6.0" - }, - "dependencies": { - "underscore": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", - "integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=", - "dev": true - } - } - }, - "resolve": { - "version": "1.1.7", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.1.7.tgz", - "integrity": "sha1-IDEU2CrSxe2ejgQRs5ModeiJ6Xs=", - "dev": true - }, - "resolve-cwd": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-2.0.0.tgz", - "integrity": "sha1-AKn3OHVW4nA46uIyyqNypqWbZlo=", - "dev": true, - "requires": { - "resolve-from": "^3.0.0" - } - }, - "resolve-from": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-3.0.0.tgz", - "integrity": "sha1-six699nWiBvItuZTM17rywoYh0g=", - "dev": true - }, - "resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=" - }, - "responselike": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", - "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", - "dev": true, - "requires": { - "lowercase-keys": "^1.0.0" - } - }, - "restore-cursor": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-2.0.0.tgz", - "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", - "dev": true, - "requires": { - "onetime": "^2.0.0", - "signal-exit": "^3.0.2" - } - }, - "ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==" - }, - "retry-axios": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/retry-axios/-/retry-axios-0.3.2.tgz", - "integrity": "sha512-jp4YlI0qyDFfXiXGhkCOliBN1G7fRH03Nqy8YdShzGqbY5/9S2x/IR6C88ls2DFkbWuL3ASkP7QD3pVrNpPgwQ==" - }, - "retry-request": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/retry-request/-/retry-request-4.0.0.tgz", - "integrity": "sha512-S4HNLaWcMP6r8E4TMH52Y7/pM8uNayOcTDDQNBwsCccL1uI+Ol2TljxRDPzaNfbhOB30+XWP5NnZkB3LiJxi1w==", - "requires": { - "through2": "^2.0.0" - } - }, - "right-align": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", - "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", - "dev": true, - "optional": true, - "requires": { - "align-text": "^0.1.1" - } - }, - "rimraf": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", - "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", - "dev": true, - "requires": { - "glob": "^7.0.5" - } - }, - "run-async": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", - "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", - "dev": true, - "requires": { - "is-promise": "^2.1.0" - } - }, - "rxjs": { - "version": "5.5.11", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-5.5.11.tgz", - "integrity": "sha512-3bjO7UwWfA2CV7lmwYMBzj4fQ6Cq+ftHc2MvUe+WMS7wcdJ1LosDWmdjPQanYp2dBRj572p7PeU81JUxHKOcBA==", - "dev": true, - "requires": { - "symbol-observable": "1.0.1" - }, - "dependencies": { - "symbol-observable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.0.1.tgz", - "integrity": "sha1-g0D8RwLDEi310iKI+IKD9RPT/dQ=", - "dev": true - } - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "requires": { - "ret": "~0.1.10" - } - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "samsam": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/samsam/-/samsam-1.3.0.tgz", - "integrity": "sha512-1HwIYD/8UlOtFS3QO3w7ey+SdSDFE4HRNLZoZRYVQefrOY3l17epswImeB1ijgJFQJodIaHcwkp3r/myBjFVbg==", - "dev": true - }, - "sanitize-html": { - "version": "1.18.4", - "resolved": "https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.18.4.tgz", - "integrity": "sha512-hjyDYCYrQuhnEjq+5lenLlIfdPBtnZ7z0DkQOC8YGxvkuOInH+1SrkNTj30t4f2/SSv9c5kLniB+uCIpBvYuew==", - "dev": true, - "requires": { - "chalk": "^2.3.0", - "htmlparser2": "^3.9.0", - "lodash.clonedeep": "^4.5.0", - "lodash.escaperegexp": "^4.1.2", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "lodash.mergewith": "^4.6.0", - "postcss": "^6.0.14", - "srcset": "^1.0.0", - "xtend": "^4.0.0" - } - }, - "semver": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", - "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", - "dev": true - }, - "semver-diff": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", - "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", - "dev": true, - "requires": { - "semver": "^5.0.3" - } - }, - "serialize-error": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz", - "integrity": "sha1-ULZ51WNc34Rme9yOWa9OW4HV9go=", - "dev": true - }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "set-immediate-shim": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", - "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", - "dev": true - }, - "set-value": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", - "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", - "dev": true, - "requires": { - "shebang-regex": "^1.0.0" - } - }, - "shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", - "dev": true - }, - "signal-exit": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", - "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", - "dev": true - }, - "sinon": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-6.0.1.tgz", - "integrity": "sha512-rfszhNcfamK2+ofIPi9XqeH89pH7KGDcAtM+F9CsjHXOK3jzWG99vyhyD2V+r7s4IipmWcWUFYq4ftZ9/Eu2Wg==", - "dev": true, - "requires": { - "@sinonjs/formatio": "^2.0.0", - "diff": "^3.5.0", - "lodash.get": "^4.4.2", - "lolex": "^2.4.2", - "nise": "^1.3.3", - "supports-color": "^5.4.0", - "type-detect": "^4.0.8" - } - }, - "slash": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", - "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=" - }, - "slice-ansi": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-1.0.0.tgz", - "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0" - }, - "dependencies": { - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - } - } - }, - "slide": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz", - "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=", - "dev": true - }, - "snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - }, - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - } - } - }, - "snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "dependencies": { - "define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "requires": { - "is-descriptor": "^1.0.0" - } - }, - "is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "requires": { - "kind-of": "^6.0.0" - } - }, - "is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - } - } - } - }, - "snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "requires": { - "kind-of": "^3.2.0" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "sort-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-2.0.0.tgz", - "integrity": "sha1-ZYU1WEhh7JfXMNbPQYIuH1ZoQSg=", - "dev": true, - "requires": { - "is-plain-obj": "^1.0.0" - } - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" - }, - "source-map-resolve": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", - "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", - "requires": { - "atob": "^2.1.1", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, - "source-map-support": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.6.tgz", - "integrity": "sha512-N4KXEz7jcKqPf2b2vZF11lQIz9W5ZMuUcIOGj243lduidkf2fjkVKJS9vNxVWn3u/uxX38AcE8U9nnH9FPcq+g==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - }, - "dependencies": { - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - } - } - }, - "source-map-url": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", - "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=" - }, - "spdx-correct": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.0.0.tgz", - "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-exceptions": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.1.0.tgz", - "integrity": "sha512-4K1NsmrlCU1JJgUrtgEeTVyfx8VaYea9J9LvARxhbHtVtohPs/gFGG5yy49beySjlIMhhXZ4QqujIZEfS4l6Cg==", - "dev": true - }, - "spdx-expression-parse": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", - "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", - "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "spdx-license-ids": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.0.tgz", - "integrity": "sha512-2+EPwgbnmOIl8HjGBXXMd9NAu02vLjOO1nWw4kmeRDFyHn+M/ETfHxQUK0oXg8ctgVnl9t3rosNVsZ1jG61nDA==", - "dev": true - }, - "split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "requires": { - "extend-shallow": "^3.0.0" - } - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "srcset": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/srcset/-/srcset-1.0.0.tgz", - "integrity": "sha1-pWad4StC87HV6D7QPHEEb8SPQe8=", - "dev": true, - "requires": { - "array-uniq": "^1.0.2", - "number-is-nan": "^1.0.0" - } - }, - "sshpk": { - "version": "1.14.2", - "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.2.tgz", - "integrity": "sha1-xvxhZIo9nE52T9P8306hBeSSupg=", - "dev": true, - "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "safer-buffer": "^2.0.2", - "tweetnacl": "~0.14.0" - } - }, - "stack-utils": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-1.0.1.tgz", - "integrity": "sha1-1PM6tU6OOHeLDKXP07OvsS22hiA=", - "dev": true - }, - "static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "dependencies": { - "define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "requires": { - "is-descriptor": "^0.1.0" - } - } - } - }, - "stream-shift": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", - "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=" - }, - "strict-uri-encode": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", - "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=", - "dev": true - }, - "string": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/string/-/string-3.3.3.tgz", - "integrity": "sha1-XqIRzZLSKOGEKUmQpsyXs2anfLA=", - "dev": true - }, - "string-width": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", - "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", - "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" - } - }, - "string.prototype.matchall": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-2.0.0.tgz", - "integrity": "sha512-WoZ+B2ypng1dp4iFLF2kmZlwwlE19gmjgKuhL1FJfDgCREWb3ye3SDVHSzLH6bxfnvYmkCxbzkmWcQZHA4P//Q==", - "dev": true, - "requires": { - "define-properties": "^1.1.2", - "es-abstract": "^1.10.0", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "regexp.prototype.flags": "^1.2.0" - } - }, - "string_decoder": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", - "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", - "requires": { - "safe-buffer": "~5.1.0" - } - }, - "stringifier": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/stringifier/-/stringifier-1.3.0.tgz", - "integrity": "sha1-3vGDQvaTPbDy2/yaoCF1tEjBeVk=", - "requires": { - "core-js": "^2.0.0", - "traverse": "^0.6.6", - "type-name": "^2.0.1" - } - }, - "strip-ansi": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", - "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "requires": { - "ansi-regex": "^2.0.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-bom-buf": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz", - "integrity": "sha1-HLRar1dTD0yvhsf3UXnSyaUd1XI=", - "dev": true, - "requires": { - "is-utf8": "^0.2.1" - } - }, - "strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true - }, - "strip-indent": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", - "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", - "dev": true, - "requires": { - "get-stdin": "^4.0.1" - } - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true - }, - "superagent": { - "version": "3.8.2", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-3.8.2.tgz", - "integrity": "sha512-gVH4QfYHcY3P0f/BZzavLreHW3T1v7hG9B+hpMQotGQqurOvhv87GcMCd6LWySmBuf+BDR44TQd0aISjVHLeNQ==", - "dev": true, - "requires": { - "component-emitter": "^1.2.0", - "cookiejar": "^2.1.0", - "debug": "^3.1.0", - "extend": "^3.0.0", - "form-data": "^2.3.1", - "formidable": "^1.1.1", - "methods": "^1.1.1", - "mime": "^1.4.1", - "qs": "^6.5.1", - "readable-stream": "^2.0.5" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - }, - "mime": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", - "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", - "dev": true - } - } - }, - "supertap": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supertap/-/supertap-1.0.0.tgz", - "integrity": "sha512-HZJ3geIMPgVwKk2VsmO5YHqnnJYl6bV5A9JW2uzqV43WmpgliNEYbuvukfor7URpaqpxuw3CfZ3ONdVbZjCgIA==", - "dev": true, - "requires": { - "arrify": "^1.0.1", - "indent-string": "^3.2.0", - "js-yaml": "^3.10.0", - "serialize-error": "^2.1.0", - "strip-ansi": "^4.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "supertest": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/supertest/-/supertest-3.1.0.tgz", - "integrity": "sha512-O44AMnmJqx294uJQjfUmEyYOg7d9mylNFsMw/Wkz4evKd1njyPrtCN+U6ZIC7sKtfEVQhfTqFFijlXx8KP/Czw==", - "dev": true, - "requires": { - "methods": "~1.1.2", - "superagent": "3.8.2" - } - }, - "supports-color": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.4.0.tgz", - "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - }, - "dependencies": { - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - } - } - }, - "symbol-observable": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/symbol-observable/-/symbol-observable-1.2.0.tgz", - "integrity": "sha512-e900nM8RRtGhlV36KGEU9k65K3mPb1WV70OdjfxlG2EAuM1noi/E/BaW/uMhL7bPEssK8QV57vN3esixjUvcXQ==", - "dev": true - }, - "table": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/table/-/table-4.0.3.tgz", - "integrity": "sha512-S7rnFITmBH1EnyKcvxBh1LjYeQMmnZtCXSEbHcH6S0NoKit24ZuFO/T1vDcLdYsLQkM188PVVhQmzKIuThNkKg==", - "dev": true, - "requires": { - "ajv": "^6.0.1", - "ajv-keywords": "^3.0.0", - "chalk": "^2.1.0", - "lodash": "^4.17.4", - "slice-ansi": "1.0.0", - "string-width": "^2.1.1" - }, - "dependencies": { - "ajv": { - "version": "6.5.2", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.5.2.tgz", - "integrity": "sha512-hOs7GfvI6tUI1LfZddH82ky6mOMyTuY0mk7kE2pWpmhhUSkumzaTO5vbVwij39MdwPQWCV4Zv57Eo06NtL/GVA==", - "dev": true, - "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.1" - } - }, - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "fast-deep-equal": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", - "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "json-schema-traverse": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", - "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "taffydb": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/taffydb/-/taffydb-2.6.2.tgz", - "integrity": "sha1-fLy2S1oUG2ou/CxdLGe04VCyomg=", - "dev": true - }, - "term-size": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", - "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", - "dev": true, - "requires": { - "execa": "^0.7.0" - } - }, - "text-encoding": { - "version": "0.6.4", - "resolved": "https://registry.npmjs.org/text-encoding/-/text-encoding-0.6.4.tgz", - "integrity": "sha1-45mpgiV6J22uQou5KEXLcb3CbRk=", - "dev": true - }, - "text-table": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", - "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", - "dev": true - }, - "through": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", - "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", - "dev": true - }, - "through2": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", - "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", - "requires": { - "readable-stream": "^2.1.5", - "xtend": "~4.0.1" - } - }, - "time-zone": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/time-zone/-/time-zone-1.0.0.tgz", - "integrity": "sha1-mcW/VZWJZq9tBtg73zgA3IL67F0=", - "dev": true - }, - "timed-out": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", - "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=", - "dev": true - }, - "tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "requires": { - "os-tmpdir": "~1.0.2" - } - }, - "to-fast-properties": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", - "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", - "dev": true - }, - "to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "requires": { - "kind-of": "^3.0.2" - }, - "dependencies": { - "kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "requires": { - "is-buffer": "^1.1.5" - } - } - } - }, - "to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - } - }, - "to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - } - }, - "tough-cookie": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", - "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", - "dev": true, - "requires": { - "punycode": "^1.4.1" - } - }, - "traverse": { - "version": "0.6.6", - "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", - "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=" - }, - "trim-newlines": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", - "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", - "dev": true - }, - "trim-off-newlines": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz", - "integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=", - "dev": true - }, - "trim-right": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", - "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", - "dev": true - }, - "tunnel-agent": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", - "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", - "dev": true, - "requires": { - "safe-buffer": "^5.0.1" - } - }, - "tweetnacl": { - "version": "0.14.5", - "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", - "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true, - "optional": true - }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2" - } - }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true - }, - "type-name": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/type-name/-/type-name-2.0.2.tgz", - "integrity": "sha1-7+fUEj2KxSr/9/QMfk3sUmYAj7Q=" - }, - "uglify-js": { - "version": "2.8.29", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", - "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", - "dev": true, - "optional": true, - "requires": { - "source-map": "~0.5.1", - "uglify-to-browserify": "~1.0.0", - "yargs": "~3.10.0" - }, - "dependencies": { - "camelcase": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", - "dev": true, - "optional": true - }, - "cliui": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", - "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", - "dev": true, - "optional": true, - "requires": { - "center-align": "^0.1.1", - "right-align": "^0.1.1", - "wordwrap": "0.0.2" - } - }, - "window-size": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", - "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", - "dev": true, - "optional": true - }, - "wordwrap": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", - "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", - "dev": true, - "optional": true - }, - "yargs": { - "version": "3.10.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", - "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", - "dev": true, - "optional": true, - "requires": { - "camelcase": "^1.0.2", - "cliui": "^2.1.0", - "decamelize": "^1.0.0", - "window-size": "0.1.0" - } - } - } - }, - "uglify-to-browserify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", - "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", - "dev": true, - "optional": true - }, - "uid2": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/uid2/-/uid2-0.0.3.tgz", - "integrity": "sha1-SDEm4Rd03y9xuLY53NeZw3YWK4I=", - "dev": true - }, - "underscore": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.8.3.tgz", - "integrity": "sha1-Tz+1OxBuYJf8+ctBCfKl6b36UCI=", - "dev": true - }, - "underscore-contrib": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/underscore-contrib/-/underscore-contrib-0.3.0.tgz", - "integrity": "sha1-ZltmwkeD+PorGMn4y7Dix9SMJsc=", - "dev": true, - "requires": { - "underscore": "1.6.0" - }, - "dependencies": { - "underscore": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.6.0.tgz", - "integrity": "sha1-izixDKze9jM3uLJOT/htRa6lKag=", - "dev": true - } - } - }, - "union-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", - "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", - "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^0.4.3" - }, - "dependencies": { - "extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "requires": { - "is-extendable": "^0.1.0" - } - }, - "set-value": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", - "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", - "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.1", - "to-object-path": "^0.3.0" - } - } - } - }, - "unique-string": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", - "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", - "dev": true, - "requires": { - "crypto-random-string": "^1.0.0" - } - }, - "unique-temp-dir": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unique-temp-dir/-/unique-temp-dir-1.0.0.tgz", - "integrity": "sha1-bc6VsmgcoAPuv7MEpBX5y6vMU4U=", - "dev": true, - "requires": { - "mkdirp": "^0.5.1", - "os-tmpdir": "^1.0.1", - "uid2": "0.0.3" - } - }, - "universal-deep-strict-equal": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/universal-deep-strict-equal/-/universal-deep-strict-equal-1.2.2.tgz", - "integrity": "sha1-DaSsL3PP95JMgfpN4BjKViyisKc=", - "requires": { - "array-filter": "^1.0.0", - "indexof": "0.0.1", - "object-keys": "^1.0.0" - } - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true - }, - "unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", - "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, - "dependencies": { - "has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", - "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" - }, - "dependencies": { - "isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", - "requires": { - "isarray": "1.0.0" - } - } - } - }, - "has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=" - } - } - }, - "unzip-response": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", - "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=", - "dev": true - }, - "update-notifier": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.5.0.tgz", - "integrity": "sha512-gwMdhgJHGuj/+wHJJs9e6PcCszpxR1b236igrOkUofGhqJuG+amlIKwApH1IW1WWl7ovZxsX49lMBWLxSdm5Dw==", - "dev": true, - "requires": { - "boxen": "^1.2.1", - "chalk": "^2.0.1", - "configstore": "^3.0.0", - "import-lazy": "^2.1.0", - "is-ci": "^1.0.10", - "is-installed-globally": "^0.1.0", - "is-npm": "^1.0.0", - "latest-version": "^3.0.0", - "semver-diff": "^2.0.0", - "xdg-basedir": "^3.0.0" - } - }, - "uri-js": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", - "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", - "dev": true, - "requires": { - "punycode": "^2.1.0" - }, - "dependencies": { - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", - "dev": true - } - } - }, - "urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=" - }, - "url-parse-lax": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", - "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", - "dev": true, - "requires": { - "prepend-http": "^1.0.1" - } - }, - "url-to-options": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/url-to-options/-/url-to-options-1.0.1.tgz", - "integrity": "sha1-FQWgOiiaSMvXpDTvuu7FBV9WM6k=", - "dev": true - }, - "urlgrey": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/urlgrey/-/urlgrey-0.4.4.tgz", - "integrity": "sha1-iS/pWWCAXoVRnxzUOJ8stMu3ZS8=", - "dev": true - }, - "use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==" - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" - }, - "uuid": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", - "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", - "dev": true - }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "verror": { - "version": "1.10.0", - "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", - "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", - "dev": true, - "requires": { - "assert-plus": "^1.0.0", - "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" - } - }, - "well-known-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/well-known-symbols/-/well-known-symbols-1.0.0.tgz", - "integrity": "sha1-c8eK6Bp3Jqj6WY4ogIAcixYiVRg=", - "dev": true - }, - "which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "widest-line": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.0.tgz", - "integrity": "sha1-AUKk6KJD+IgsAjOqDgKBqnYVInM=", - "dev": true, - "requires": { - "string-width": "^2.1.1" - }, - "dependencies": { - "ansi-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", - "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - } - } - }, - "window-size": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.4.tgz", - "integrity": "sha1-+OGqHuWlPsW/FR/6CXQqatdpeHY=" - }, - "wordwrap": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", - "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", - "dev": true - }, - "wrap-ansi": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", - "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" - }, - "write": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/write/-/write-0.2.1.tgz", - "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", - "dev": true, - "requires": { - "mkdirp": "^0.5.1" - } - }, - "write-file-atomic": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", - "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" - } - }, - "write-json-file": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/write-json-file/-/write-json-file-2.3.0.tgz", - "integrity": "sha1-K2TIozAE1UuGmMdtWFp3zrYdoy8=", - "dev": true, - "requires": { - "detect-indent": "^5.0.0", - "graceful-fs": "^4.1.2", - "make-dir": "^1.0.0", - "pify": "^3.0.0", - "sort-keys": "^2.0.0", - "write-file-atomic": "^2.0.0" - }, - "dependencies": { - "detect-indent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-5.0.0.tgz", - "integrity": "sha1-OHHMCmoALow+Wzz38zYmRnXwa50=", - "dev": true - } - } - }, - "write-pkg": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/write-pkg/-/write-pkg-3.2.0.tgz", - "integrity": "sha512-tX2ifZ0YqEFOF1wjRW2Pk93NLsj02+n1UP5RvO6rCs0K6R2g1padvf006cY74PQJKMGS2r42NK7FD0dG6Y6paw==", - "dev": true, - "requires": { - "sort-keys": "^2.0.0", - "write-json-file": "^2.2.0" - } - }, - "xdg-basedir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", - "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=", - "dev": true - }, - "xmlcreate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-1.0.2.tgz", - "integrity": "sha1-+mv3YqYKQT+z3Y9LA8WyaSONMI8=", - "dev": true - }, - "xtend": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", - "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=" - }, - "y18n": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", - "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=" - }, - "yallist": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", - "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=" - }, - "yargs": { - "version": "3.32.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.32.0.tgz", - "integrity": "sha1-AwiOnr+edWtpdRYR0qXvWRSCyZU=", - "requires": { - "camelcase": "^2.0.1", - "cliui": "^3.0.3", - "decamelize": "^1.1.1", - "os-locale": "^1.4.0", - "string-width": "^1.0.1", - "window-size": "^0.1.4", - "y18n": "^3.2.0" - } - }, - "yargs-parser": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-10.1.0.tgz", - "integrity": "sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ==", - "dev": true, - "requires": { - "camelcase": "^4.1.0" - }, - "dependencies": { - "camelcase": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", - "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", - "dev": true - } - } - } - } -} From 4c6594d31f34002a435e4019e58f0cae2a8983cb Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 9 Aug 2018 14:43:17 -0700 Subject: [PATCH 054/371] chore: do not use npm ci (#64) --- packages/google-container/synth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index 27a77d7fa3c..384ea16e5ee 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -24,6 +24,6 @@ # # Node.js specific cleanup # -subprocess.run(['npm', 'ci']) +subprocess.run(['npm', 'install']) subprocess.run(['npm', 'run', 'prettier']) subprocess.run(['npm', 'run', 'lint']) From b977089934ead4b4936eeba137e43bd1f7a088ac Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Tue, 21 Aug 2018 12:53:54 -0700 Subject: [PATCH 055/371] chore(deps): update dependency eslint-config-prettier to v3 (#65) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 635a72063a9..61d4ed4e84b 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -55,7 +55,7 @@ "async": "^2.6.0", "codecov": "^3.0.0", "eslint": "^5.0.1", - "eslint-config-prettier": "^2.9.0", + "eslint-config-prettier": "^3.0.0", "eslint-plugin-node": "^7.0.0", "eslint-plugin-prettier": "^2.3.1", "extend": "^3.0.1", From 688e44c34015f0f6e33f6df7ae2043c58222635d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Wed, 22 Aug 2018 07:27:40 -0700 Subject: [PATCH 056/371] fix(deps): update dependency google-gax to ^0.19.0 (#66) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 61d4ed4e84b..7ac7d86bd19 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -47,7 +47,7 @@ "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000" }, "dependencies": { - "google-gax": "^0.18.0", + "google-gax": "^0.19.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From 52a8e661b00e9df82015e1b5dbc900250acd5f97 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Tue, 28 Aug 2018 08:00:10 -0700 Subject: [PATCH 057/371] chore(deps): update dependency nyc to v13 (#67) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 7ac7d86bd19..95a4ab89aa7 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -63,7 +63,7 @@ "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.5.5", "mocha": "^5.0.0", - "nyc": "^12.0.2", + "nyc": "^13.0.0", "power-assert": "^1.4.4", "prettier": "^1.9.2", "through2": "^2.0.3" From 393a810785486569570f13b964a4d1a08a7591bc Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Fri, 31 Aug 2018 16:08:33 -0700 Subject: [PATCH 058/371] add templates to synth.py (#68) * add templates to synth.py * run synth.py to bring in templates --- .../google-container/.circleci/config.yml | 57 ++++++++++++++++--- packages/google-container/.jsdoc.js | 4 +- packages/google-container/synth.py | 5 +- 3 files changed, 55 insertions(+), 11 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index a133c2c5352..9a65e928a47 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -27,14 +27,20 @@ workflows: requires: - lint - docs - filters: + filters: &master_and_releases branches: only: master tags: &releases only: '/^v[\d.]+$/' + - sample_tests: + requires: + - lint + - docs + filters: *master_and_releases - publish_npm: requires: - system_tests + - sample_tests filters: branches: ignore: /.*/ @@ -63,6 +69,7 @@ jobs: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: npm test - run: node_modules/.bin/codecov + node8: docker: - image: 'node:8' @@ -84,8 +91,8 @@ jobs: name: Link the module being tested to the samples. command: | cd samples/ - npm install npm link ../ + npm install environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: @@ -100,9 +107,38 @@ jobs: steps: - checkout - run: *npm_install_and_link + - run: npm run docs + sample_tests: + docker: + - image: 'node:8' + user: node + steps: + - checkout + - run: + name: Decrypt credentials. + command: | + if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then + openssl aes-256-cbc -d -in .circleci/key.json.enc \ + -out .circleci/key.json \ + -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" + fi + - run: *npm_install_and_link + - run: *samples_npm_install_and_link - run: - name: Build documentation. - command: npm run docs + name: Run sample tests. + command: npm run samples-test + environment: + GCLOUD_PROJECT: long-door-651 + GOOGLE_APPLICATION_CREDENTIALS: /home/node/samples/.circleci/key.json + NPM_CONFIG_PREFIX: /home/node/.npm-global + - run: + name: Remove unencrypted key. + command: | + if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then + rm .circleci/key.json + fi + when: always + working_directory: /home/node/samples/ system_tests: docker: - image: 'node:8' @@ -112,19 +148,23 @@ jobs: - run: name: Decrypt credentials. command: | - openssl aes-256-cbc -d -in .circleci/key.json.enc \ + if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then + openssl aes-256-cbc -d -in .circleci/key.json.enc \ -out .circleci/key.json \ -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" + fi - run: *npm_install_and_link - run: name: Run system tests. command: npm run system-test environment: - GCLOUD_PROJECT: long-door-651 GOOGLE_APPLICATION_CREDENTIALS: .circleci/key.json - run: name: Remove unencrypted key. - command: rm .circleci/key.json + command: | + if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then + rm .circleci/key.json + fi when: always publish_npm: docker: @@ -132,5 +172,6 @@ jobs: user: node steps: - checkout - - run: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc' + - run: npm install + - run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - run: npm publish --access=public diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index 866889137e3..6f0df6e4925 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -1,5 +1,5 @@ /*! - * Copyright 2017 Google Inc. All Rights Reserved. + * Copyright 2018 Google LLC. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2017 Google, Inc.', + copyright: 'Copyright 2018 Google, LLC.', includeDate: false, sourceFiles: false, systemName: '@google-cloud/container', diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index 384ea16e5ee..62e2588bbbf 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -1,12 +1,12 @@ import synthtool as s import synthtool.gcp as gcp import logging -from pathlib import Path import subprocess logging.basicConfig(level=logging.DEBUG) gapic = gcp.GAPICGenerator() +common_templates = gcp.CommonTemplates() version = 'v1' @@ -21,6 +21,9 @@ excludes=['package.json', 'README.md', 'src/index.js'], ) +templates = common_templates.node_library() +s.copy(templates) + # # Node.js specific cleanup # From 1a66b39931f508912564fc7ff46655030ce85f62 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 4 Sep 2018 10:56:20 -0700 Subject: [PATCH 059/371] Retry npm install in CI (#71) --- .../google-container/.circleci/config.yml | 6 +- .../.circleci/npm-install-retry.js | 60 +++++++++++++++++++ 2 files changed, 63 insertions(+), 3 deletions(-) create mode 100755 packages/google-container/.circleci/npm-install-retry.js diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 9a65e928a47..80dcf7e67d9 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -64,7 +64,7 @@ jobs: name: Install and link the module command: |- mkdir -p /home/node/.npm-global - npm install + ./.circleci/npm-install-retry.js environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: npm test @@ -92,7 +92,7 @@ jobs: command: | cd samples/ npm link ../ - npm install + ./../.circleci/npm-install-retry.js environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: @@ -172,6 +172,6 @@ jobs: user: node steps: - checkout - - run: npm install + - run: ./.circleci/npm-install-retry.js - run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - run: npm publish --access=public diff --git a/packages/google-container/.circleci/npm-install-retry.js b/packages/google-container/.circleci/npm-install-retry.js new file mode 100755 index 00000000000..ae3220d7348 --- /dev/null +++ b/packages/google-container/.circleci/npm-install-retry.js @@ -0,0 +1,60 @@ +#!/usr/bin/env node + +let spawn = require('child_process').spawn; + +// +//USE: ./index.js [... NPM ARGS] +// + +let timeout = process.argv[2] || 60000; +let attempts = process.argv[3] || 3; +let args = process.argv.slice(4); +if (args.length === 0) { + args = ['install']; +} + +(function npm() { + let timer; + args.push('--verbose'); + let proc = spawn('npm', args); + proc.stdout.pipe(process.stdout); + proc.stderr.pipe(process.stderr); + proc.stdin.end(); + proc.stdout.on('data', () => { + setTimer(); + }); + proc.stderr.on('data', () => { + setTimer(); + }); + + // side effect: this also restarts when npm exits with a bad code even if it + // didnt timeout + proc.on('close', (code, signal) => { + clearTimeout(timer); + if (code || signal) { + console.log('[npm-are-you-sleeping] npm exited with code ' + code + ''); + + if (--attempts) { + console.log('[npm-are-you-sleeping] restarting'); + npm(); + } else { + console.log('[npm-are-you-sleeping] i tried lots of times. giving up.'); + throw new Error("npm install fails"); + } + } + }); + + function setTimer() { + clearTimeout(timer); + timer = setTimeout(() => { + console.log('[npm-are-you-sleeping] killing npm with SIGTERM'); + proc.kill('SIGTERM'); + // wait a couple seconds + timer = setTimeout(() => { + // its it's still not closed sigkill + console.log('[npm-are-you-sleeping] killing npm with SIGKILL'); + proc.kill('SIGKILL'); + }, 2000); + }, timeout); + } +})(); From 6689952e4dd969f7ccab8e390cb03ad9c0e0ab2a Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 5 Sep 2018 09:58:10 -0700 Subject: [PATCH 060/371] Remove unused dependencies (#72) --- packages/google-container/package.json | 5 +---- packages/google-container/samples/package.json | 8 +------- packages/google-container/synth.py | 11 +++-------- 3 files changed, 5 insertions(+), 19 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 95a4ab89aa7..b37d85deb52 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -52,20 +52,17 @@ }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^2.2.4", - "async": "^2.6.0", "codecov": "^3.0.0", "eslint": "^5.0.1", "eslint-config-prettier": "^3.0.0", "eslint-plugin-node": "^7.0.0", "eslint-plugin-prettier": "^2.3.1", - "extend": "^3.0.1", "ink-docstrap": "^1.3.2", "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.5.5", "mocha": "^5.0.0", "nyc": "^13.0.0", "power-assert": "^1.4.4", - "prettier": "^1.9.2", - "through2": "^2.0.3" + "prettier": "^1.9.2" } } diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index a301bdca496..96eb98453fb 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -1,6 +1,5 @@ { "name": "nodejs-docs-samples-container", - "version": "0.0.1", "license": "Apache-2.0", "author": "Google Inc.", "engines": { @@ -8,13 +7,8 @@ }, "repository": "googleapis/nodejs-cloud-container", "private": true, - "semistandard": { - "ignore": [ - "node_modules" - ] - }, "scripts": { - "test": "node -e 'console.log(`no tests`);'" + "test": "echo no sample tests 👻" }, "dependencies": { "@google-cloud/container": "^0.2.0" diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index 62e2588bbbf..d421c9e3709 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -5,28 +5,23 @@ logging.basicConfig(level=logging.DEBUG) +# Run the gapic generator gapic = gcp.GAPICGenerator() -common_templates = gcp.CommonTemplates() - version = 'v1' - library = gapic.node_library( 'container', version, config_path="/google/container/" "artman_container.yaml") - -# skip index, protos, package.json, and README.md s.copy( library, excludes=['package.json', 'README.md', 'src/index.js'], ) +# Copy templated files +common_templates = gcp.CommonTemplates() templates = common_templates.node_library() s.copy(templates) -# # Node.js specific cleanup -# subprocess.run(['npm', 'install']) subprocess.run(['npm', 'run', 'prettier']) -subprocess.run(['npm', 'run', 'lint']) From 1395b9f939ea8c3fe8949a0174af503df915fafd Mon Sep 17 00:00:00 2001 From: DPE bot Date: Thu, 6 Sep 2018 06:51:31 -0700 Subject: [PATCH 061/371] Update CI Config (#73) --- packages/google-container/.circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 80dcf7e67d9..9a65e928a47 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -64,7 +64,7 @@ jobs: name: Install and link the module command: |- mkdir -p /home/node/.npm-global - ./.circleci/npm-install-retry.js + npm install environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: npm test @@ -92,7 +92,7 @@ jobs: command: | cd samples/ npm link ../ - ./../.circleci/npm-install-retry.js + npm install environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: @@ -172,6 +172,6 @@ jobs: user: node steps: - checkout - - run: ./.circleci/npm-install-retry.js + - run: npm install - run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - run: npm publish --access=public From e2f18c2b1e8ae38824cbc4d66002ea7ed6f070ef Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 7 Sep 2018 18:56:46 -0700 Subject: [PATCH 062/371] Update CI config (#74) --- packages/google-container/.circleci/config.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 9a65e928a47..8af6a4d0489 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -64,7 +64,7 @@ jobs: name: Install and link the module command: |- mkdir -p /home/node/.npm-global - npm install + ./.circleci/npm-install-retry.js environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: npm test @@ -92,7 +92,7 @@ jobs: command: | cd samples/ npm link ../ - npm install + ./../.circleci/npm-install-retry.js environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: @@ -149,21 +149,24 @@ jobs: name: Decrypt credentials. command: | if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then - openssl aes-256-cbc -d -in .circleci/key.json.enc \ - -out .circleci/key.json \ - -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" + for encrypted_key in .circleci/*.json.enc; do + openssl aes-256-cbc -d -in $encrypted_key \ + -out $(echo $encrypted_key | sed 's/\.enc//') \ + -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" + done fi - run: *npm_install_and_link - run: name: Run system tests. command: npm run system-test environment: + GCLOUD_PROJECT: long-door-651 GOOGLE_APPLICATION_CREDENTIALS: .circleci/key.json - run: name: Remove unencrypted key. command: | if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then - rm .circleci/key.json + rm .circleci/*.json fi when: always publish_npm: @@ -172,6 +175,6 @@ jobs: user: node steps: - checkout - - run: npm install + - run: ./.circleci/npm-install-retry.js - run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - run: npm publish --access=public From 92e76e0e6b9b2a813a241e8fad8329050064b5da Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Thu, 13 Sep 2018 06:48:48 -0700 Subject: [PATCH 063/371] fix(deps): update dependency google-gax to ^0.20.0 (#75) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index b37d85deb52..1578c8f9e36 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -47,7 +47,7 @@ "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000" }, "dependencies": { - "google-gax": "^0.19.0", + "google-gax": "^0.20.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From b474806fa3efde81842a633b4ed14c734cd83c57 Mon Sep 17 00:00:00 2001 From: DPE bot Date: Fri, 14 Sep 2018 08:34:14 -0700 Subject: [PATCH 064/371] Switch to let/const (#76) --- .../smoke-test/cluster_manager_smoke_test.js | 12 +- .../src/v1/cluster_manager_client.js | 418 +++--- .../container/v1/doc_cluster_service.js | 114 +- .../src/v1/doc/google/protobuf/doc_empty.js | 2 +- packages/google-container/test/gapic-v1.js | 1180 ++++++++--------- 5 files changed, 863 insertions(+), 863 deletions(-) diff --git a/packages/google-container/smoke-test/cluster_manager_smoke_test.js b/packages/google-container/smoke-test/cluster_manager_smoke_test.js index 1692b3d3ac9..5ad07321b8c 100644 --- a/packages/google-container/smoke-test/cluster_manager_smoke_test.js +++ b/packages/google-container/smoke-test/cluster_manager_smoke_test.js @@ -18,25 +18,25 @@ describe('ClusterManagerSmokeTest', () => { if (!process.env.GCLOUD_PROJECT) { throw new Error('Usage: GCLOUD_PROJECT= node #{$0}'); } - var projectId = process.env.GCLOUD_PROJECT; + const projectId = process.env.GCLOUD_PROJECT; it('successfully makes a call to the service', done => { const container = require('../src'); - var client = new container.v1.ClusterManagerClient({ + const client = new container.v1.ClusterManagerClient({ // optional auth parameters. }); - var projectId2 = projectId; - var zone = 'us-central1-a'; - var request = { + const projectId2 = projectId; + const zone = 'us-central1-a'; + const request = { projectId: projectId2, zone: zone, }; client .listClusters(request) .then(responses => { - var response = responses[0]; + const response = responses[0]; console.log(response); }) .then(done) diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index d6cde3e11cd..d83d40d4049 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -71,13 +71,13 @@ class ClusterManagerClient { // Create a `gaxGrpc` object, with any grpc-specific options // sent to the client. opts.scopes = this.constructor.scopes; - var gaxGrpc = new gax.GrpcClient(opts); + const gaxGrpc = new gax.GrpcClient(opts); // Save the auth object to the client, for use by other methods. this.auth = gaxGrpc.auth; // Determine the client header string. - var clientHeader = [ + const clientHeader = [ `gl-node/${process.version}`, `grpc/${gaxGrpc.grpcVersion}`, `gax/${gax.version}`, @@ -88,7 +88,7 @@ class ClusterManagerClient { } // Load the applicable protos. - var protos = merge( + const protos = merge( {}, gaxGrpc.loadProto( path.join(__dirname, '..', '..', 'protos'), @@ -97,7 +97,7 @@ class ClusterManagerClient { ); // Put together the default options sent with requests. - var defaults = gaxGrpc.constructSettings( + const defaults = gaxGrpc.constructSettings( 'google.container.v1.ClusterManager', gapicConfig, opts.clientConfig, @@ -111,14 +111,14 @@ class ClusterManagerClient { // Put together the "service stub" for // google.container.v1.ClusterManager. - var clusterManagerStub = gaxGrpc.createStub( + const clusterManagerStub = gaxGrpc.createStub( protos.google.container.v1.ClusterManager, opts ); // Iterate over each of the methods that the service provides // and create an API call method for each. - var clusterManagerStubMethods = [ + const clusterManagerStubMethods = [ 'listClusters', 'getCluster', 'createCluster', @@ -155,7 +155,7 @@ class ClusterManagerClient { clusterManagerStub.then( stub => function() { - var args = Array.prototype.slice.call(arguments, 0); + const args = Array.prototype.slice.call(arguments, 0); return stub[methodName].apply(stub, args); } ), @@ -228,19 +228,19 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const request = { * projectId: projectId, * zone: zone, * }; * client.listClusters(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -286,21 +286,21 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, * }; * client.getCluster(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -361,21 +361,21 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var cluster = {}; - * var request = { + * const projectId = ''; + * const zone = ''; + * const cluster = {}; + * const request = { * projectId: projectId, * zone: zone, * cluster: cluster, * }; * client.createCluster(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -425,15 +425,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var update = {}; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const update = {}; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -441,7 +441,7 @@ class ClusterManagerClient { * }; * client.updateCluster(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -495,17 +495,17 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var nodePoolId = ''; - * var nodeVersion = ''; - * var imageType = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const nodePoolId = ''; + * const nodeVersion = ''; + * const imageType = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -515,7 +515,7 @@ class ClusterManagerClient { * }; * client.updateNodePool(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -567,16 +567,16 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var nodePoolId = ''; - * var autoscaling = {}; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const nodePoolId = ''; + * const autoscaling = {}; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -585,7 +585,7 @@ class ClusterManagerClient { * }; * client.setNodePoolAutoscaling(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -641,15 +641,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var loggingService = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const loggingService = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -657,7 +657,7 @@ class ClusterManagerClient { * }; * client.setLoggingService(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -709,15 +709,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var monitoringService = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const monitoringService = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -725,7 +725,7 @@ class ClusterManagerClient { * }; * client.setMonitoringService(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -776,15 +776,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var addonsConfig = {}; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const addonsConfig = {}; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -792,7 +792,7 @@ class ClusterManagerClient { * }; * client.setAddonsConfig(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -846,15 +846,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var locations = []; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const locations = []; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -862,7 +862,7 @@ class ClusterManagerClient { * }; * client.setLocations(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -912,15 +912,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var masterVersion = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const masterVersion = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -928,7 +928,7 @@ class ClusterManagerClient { * }; * client.updateMaster(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -984,16 +984,16 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var action = 'UNKNOWN'; - * var update = {}; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const action = 'UNKNOWN'; + * const update = {}; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -1002,7 +1002,7 @@ class ClusterManagerClient { * }; * client.setMasterAuth(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1056,21 +1056,21 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, * }; * client.deleteCluster(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1113,19 +1113,19 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const request = { * projectId: projectId, * zone: zone, * }; * client.listOperations(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1171,21 +1171,21 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var operationId = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const operationId = ''; + * const request = { * projectId: projectId, * zone: zone, * operationId: operationId, * }; * client.getOperation(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1227,14 +1227,14 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var operationId = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const operationId = ''; + * const request = { * projectId: projectId, * zone: zone, * operationId: operationId, @@ -1279,19 +1279,19 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const request = { * projectId: projectId, * zone: zone, * }; * client.getServerConfig(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1337,21 +1337,21 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, * }; * client.listNodePools(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1399,15 +1399,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var nodePoolId = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const nodePoolId = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -1415,7 +1415,7 @@ class ClusterManagerClient { * }; * client.getNodePool(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1465,15 +1465,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var nodePool = {}; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const nodePool = {}; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -1481,7 +1481,7 @@ class ClusterManagerClient { * }; * client.createNodePool(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1529,15 +1529,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var nodePoolId = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const nodePoolId = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -1545,7 +1545,7 @@ class ClusterManagerClient { * }; * client.deleteNodePool(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1594,15 +1594,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var nodePoolId = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const nodePoolId = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -1610,7 +1610,7 @@ class ClusterManagerClient { * }; * client.rollbackNodePoolUpgrade(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1666,16 +1666,16 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var nodePoolId = ''; - * var management = {}; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const nodePoolId = ''; + * const management = {}; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -1684,7 +1684,7 @@ class ClusterManagerClient { * }; * client.setNodePoolManagement(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1743,16 +1743,16 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var resourceLabels = {}; - * var labelFingerprint = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const resourceLabels = {}; + * const labelFingerprint = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -1761,7 +1761,7 @@ class ClusterManagerClient { * }; * client.setLabels(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1809,15 +1809,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var enabled = false; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const enabled = false; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -1825,7 +1825,7 @@ class ClusterManagerClient { * }; * client.setLegacyAbac(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1871,21 +1871,21 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, * }; * client.startIPRotation(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1931,21 +1931,21 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, * }; * client.completeIPRotation(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -1995,16 +1995,16 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var nodePoolId = ''; - * var nodeCount = 0; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const nodePoolId = ''; + * const nodeCount = 0; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -2013,7 +2013,7 @@ class ClusterManagerClient { * }; * client.setNodePoolSize(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -2063,15 +2063,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var networkPolicy = {}; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const networkPolicy = {}; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -2079,7 +2079,7 @@ class ClusterManagerClient { * }; * client.setNetworkPolicy(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { @@ -2130,15 +2130,15 @@ class ClusterManagerClient { * * const container = require('@google-cloud/container'); * - * var client = new container.v1.ClusterManagerClient({ + * const client = new container.v1.ClusterManagerClient({ * // optional auth parameters. * }); * - * var projectId = ''; - * var zone = ''; - * var clusterId = ''; - * var maintenancePolicy = {}; - * var request = { + * const projectId = ''; + * const zone = ''; + * const clusterId = ''; + * const maintenancePolicy = {}; + * const request = { * projectId: projectId, * zone: zone, * clusterId: clusterId, @@ -2146,7 +2146,7 @@ class ClusterManagerClient { * }; * client.setMaintenancePolicy(request) * .then(responses => { - * var response = responses[0]; + * const response = responses[0]; * // doThingsWith(response) * }) * .catch(err => { diff --git a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js index 2884c5eeb81..1803093ef25 100644 --- a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js +++ b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js @@ -119,7 +119,7 @@ * @memberof google.container.v1 * @see [google.container.v1.NodeConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var NodeConfig = { +const NodeConfig = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -161,7 +161,7 @@ var NodeConfig = { * @memberof google.container.v1 * @see [google.container.v1.MasterAuth definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var MasterAuth = { +const MasterAuth = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -175,7 +175,7 @@ var MasterAuth = { * @memberof google.container.v1 * @see [google.container.v1.ClientCertificateConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var ClientCertificateConfig = { +const ClientCertificateConfig = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -212,7 +212,7 @@ var ClientCertificateConfig = { * @memberof google.container.v1 * @see [google.container.v1.AddonsConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var AddonsConfig = { +const AddonsConfig = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -229,7 +229,7 @@ var AddonsConfig = { * @memberof google.container.v1 * @see [google.container.v1.HttpLoadBalancing definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var HttpLoadBalancing = { +const HttpLoadBalancing = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -247,7 +247,7 @@ var HttpLoadBalancing = { * @memberof google.container.v1 * @see [google.container.v1.HorizontalPodAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var HorizontalPodAutoscaling = { +const HorizontalPodAutoscaling = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -261,7 +261,7 @@ var HorizontalPodAutoscaling = { * @memberof google.container.v1 * @see [google.container.v1.KubernetesDashboard definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var KubernetesDashboard = { +const KubernetesDashboard = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -277,7 +277,7 @@ var KubernetesDashboard = { * @memberof google.container.v1 * @see [google.container.v1.NetworkPolicyConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var NetworkPolicyConfig = { +const NetworkPolicyConfig = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -301,7 +301,7 @@ var NetworkPolicyConfig = { * @memberof google.container.v1 * @see [google.container.v1.MasterAuthorizedNetworksConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var MasterAuthorizedNetworksConfig = { +const MasterAuthorizedNetworksConfig = { // This is for documentation. Actual contents will be loaded by gRPC. /** @@ -336,7 +336,7 @@ var MasterAuthorizedNetworksConfig = { * @memberof google.container.v1 * @see [google.container.v1.LegacyAbac definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var LegacyAbac = { +const LegacyAbac = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -356,7 +356,7 @@ var LegacyAbac = { * @memberof google.container.v1 * @see [google.container.v1.NetworkPolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var NetworkPolicy = { +const NetworkPolicy = { // This is for documentation. Actual contents will be loaded by gRPC. /** @@ -476,7 +476,7 @@ var NetworkPolicy = { * @memberof google.container.v1 * @see [google.container.v1.IPAllocationPolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var IPAllocationPolicy = { +const IPAllocationPolicy = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -683,7 +683,7 @@ var IPAllocationPolicy = { * @memberof google.container.v1 * @see [google.container.v1.Cluster definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var Cluster = { +const Cluster = { // This is for documentation. Actual contents will be loaded by gRPC. /** @@ -794,7 +794,7 @@ var Cluster = { * @memberof google.container.v1 * @see [google.container.v1.ClusterUpdate definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var ClusterUpdate = { +const ClusterUpdate = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -844,7 +844,7 @@ var ClusterUpdate = { * @memberof google.container.v1 * @see [google.container.v1.Operation definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var Operation = { +const Operation = { // This is for documentation. Actual contents will be loaded by gRPC. /** @@ -998,7 +998,7 @@ var Operation = { * @memberof google.container.v1 * @see [google.container.v1.CreateClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var CreateClusterRequest = { +const CreateClusterRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1021,7 +1021,7 @@ var CreateClusterRequest = { * @memberof google.container.v1 * @see [google.container.v1.GetClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var GetClusterRequest = { +const GetClusterRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1049,7 +1049,7 @@ var GetClusterRequest = { * @memberof google.container.v1 * @see [google.container.v1.UpdateClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var UpdateClusterRequest = { +const UpdateClusterRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1083,7 +1083,7 @@ var UpdateClusterRequest = { * @memberof google.container.v1 * @see [google.container.v1.UpdateNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var UpdateNodePoolRequest = { +const UpdateNodePoolRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1114,7 +1114,7 @@ var UpdateNodePoolRequest = { * @memberof google.container.v1 * @see [google.container.v1.SetNodePoolAutoscalingRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetNodePoolAutoscalingRequest = { +const SetNodePoolAutoscalingRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1144,7 +1144,7 @@ var SetNodePoolAutoscalingRequest = { * @memberof google.container.v1 * @see [google.container.v1.SetLoggingServiceRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetLoggingServiceRequest = { +const SetLoggingServiceRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1174,7 +1174,7 @@ var SetLoggingServiceRequest = { * @memberof google.container.v1 * @see [google.container.v1.SetMonitoringServiceRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetMonitoringServiceRequest = { +const SetMonitoringServiceRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1203,7 +1203,7 @@ var SetMonitoringServiceRequest = { * @memberof google.container.v1 * @see [google.container.v1.SetAddonsConfigRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetAddonsConfigRequest = { +const SetAddonsConfigRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1235,7 +1235,7 @@ var SetAddonsConfigRequest = { * @memberof google.container.v1 * @see [google.container.v1.SetLocationsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetLocationsRequest = { +const SetLocationsRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1263,7 +1263,7 @@ var SetLocationsRequest = { * @memberof google.container.v1 * @see [google.container.v1.UpdateMasterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var UpdateMasterRequest = { +const UpdateMasterRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1296,7 +1296,7 @@ var UpdateMasterRequest = { * @memberof google.container.v1 * @see [google.container.v1.SetMasterAuthRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetMasterAuthRequest = { +const SetMasterAuthRequest = { // This is for documentation. Actual contents will be loaded by gRPC. /** @@ -1351,7 +1351,7 @@ var SetMasterAuthRequest = { * @memberof google.container.v1 * @see [google.container.v1.DeleteClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var DeleteClusterRequest = { +const DeleteClusterRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1371,7 +1371,7 @@ var DeleteClusterRequest = { * @memberof google.container.v1 * @see [google.container.v1.ListClustersRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var ListClustersRequest = { +const ListClustersRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1392,7 +1392,7 @@ var ListClustersRequest = { * @memberof google.container.v1 * @see [google.container.v1.ListClustersResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var ListClustersResponse = { +const ListClustersResponse = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1415,7 +1415,7 @@ var ListClustersResponse = { * @memberof google.container.v1 * @see [google.container.v1.GetOperationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var GetOperationRequest = { +const GetOperationRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1434,7 +1434,7 @@ var GetOperationRequest = { * @memberof google.container.v1 * @see [google.container.v1.ListOperationsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var ListOperationsRequest = { +const ListOperationsRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1456,7 +1456,7 @@ var ListOperationsRequest = { * @memberof google.container.v1 * @see [google.container.v1.CancelOperationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var CancelOperationRequest = { +const CancelOperationRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1476,7 +1476,7 @@ var CancelOperationRequest = { * @memberof google.container.v1 * @see [google.container.v1.ListOperationsResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var ListOperationsResponse = { +const ListOperationsResponse = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1495,7 +1495,7 @@ var ListOperationsResponse = { * @memberof google.container.v1 * @see [google.container.v1.GetServerConfigRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var GetServerConfigRequest = { +const GetServerConfigRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1521,7 +1521,7 @@ var GetServerConfigRequest = { * @memberof google.container.v1 * @see [google.container.v1.ServerConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var ServerConfig = { +const ServerConfig = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1549,7 +1549,7 @@ var ServerConfig = { * @memberof google.container.v1 * @see [google.container.v1.CreateNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var CreateNodePoolRequest = { +const CreateNodePoolRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1575,7 +1575,7 @@ var CreateNodePoolRequest = { * @memberof google.container.v1 * @see [google.container.v1.DeleteNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var DeleteNodePoolRequest = { +const DeleteNodePoolRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1598,7 +1598,7 @@ var DeleteNodePoolRequest = { * @memberof google.container.v1 * @see [google.container.v1.ListNodePoolsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var ListNodePoolsRequest = { +const ListNodePoolsRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1624,7 +1624,7 @@ var ListNodePoolsRequest = { * @memberof google.container.v1 * @see [google.container.v1.GetNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var GetNodePoolRequest = { +const GetNodePoolRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1685,7 +1685,7 @@ var GetNodePoolRequest = { * @memberof google.container.v1 * @see [google.container.v1.NodePool definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var NodePool = { +const NodePool = { // This is for documentation. Actual contents will be loaded by gRPC. /** @@ -1764,7 +1764,7 @@ var NodePool = { * @memberof google.container.v1 * @see [google.container.v1.NodeManagement definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var NodeManagement = { +const NodeManagement = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1785,7 +1785,7 @@ var NodeManagement = { * @memberof google.container.v1 * @see [google.container.v1.AutoUpgradeOptions definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var AutoUpgradeOptions = { +const AutoUpgradeOptions = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1801,7 +1801,7 @@ var AutoUpgradeOptions = { * @memberof google.container.v1 * @see [google.container.v1.MaintenancePolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var MaintenancePolicy = { +const MaintenancePolicy = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1817,7 +1817,7 @@ var MaintenancePolicy = { * @memberof google.container.v1 * @see [google.container.v1.MaintenanceWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var MaintenanceWindow = { +const MaintenanceWindow = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1839,7 +1839,7 @@ var MaintenanceWindow = { * @memberof google.container.v1 * @see [google.container.v1.DailyMaintenanceWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var DailyMaintenanceWindow = { +const DailyMaintenanceWindow = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1871,7 +1871,7 @@ var DailyMaintenanceWindow = { * @memberof google.container.v1 * @see [google.container.v1.SetNodePoolManagementRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetNodePoolManagementRequest = { +const SetNodePoolManagementRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1901,7 +1901,7 @@ var SetNodePoolManagementRequest = { * @memberof google.container.v1 * @see [google.container.v1.SetNodePoolSizeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetNodePoolSizeRequest = { +const SetNodePoolSizeRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1929,7 +1929,7 @@ var SetNodePoolSizeRequest = { * @memberof google.container.v1 * @see [google.container.v1.RollbackNodePoolUpgradeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var RollbackNodePoolUpgradeRequest = { +const RollbackNodePoolUpgradeRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1945,7 +1945,7 @@ var RollbackNodePoolUpgradeRequest = { * @memberof google.container.v1 * @see [google.container.v1.ListNodePoolsResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var ListNodePoolsResponse = { +const ListNodePoolsResponse = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -1968,7 +1968,7 @@ var ListNodePoolsResponse = { * @memberof google.container.v1 * @see [google.container.v1.NodePoolAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var NodePoolAutoscaling = { +const NodePoolAutoscaling = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -2004,7 +2004,7 @@ var NodePoolAutoscaling = { * @memberof google.container.v1 * @see [google.container.v1.SetLabelsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetLabelsRequest = { +const SetLabelsRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -2031,7 +2031,7 @@ var SetLabelsRequest = { * @memberof google.container.v1 * @see [google.container.v1.SetLegacyAbacRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetLegacyAbacRequest = { +const SetLegacyAbacRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -2055,7 +2055,7 @@ var SetLegacyAbacRequest = { * @memberof google.container.v1 * @see [google.container.v1.StartIPRotationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var StartIPRotationRequest = { +const StartIPRotationRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -2078,7 +2078,7 @@ var StartIPRotationRequest = { * @memberof google.container.v1 * @see [google.container.v1.CompleteIPRotationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var CompleteIPRotationRequest = { +const CompleteIPRotationRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -2096,7 +2096,7 @@ var CompleteIPRotationRequest = { * @memberof google.container.v1 * @see [google.container.v1.AcceleratorConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var AcceleratorConfig = { +const AcceleratorConfig = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -2124,7 +2124,7 @@ var AcceleratorConfig = { * @memberof google.container.v1 * @see [google.container.v1.SetNetworkPolicyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetNetworkPolicyRequest = { +const SetNetworkPolicyRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; @@ -2153,6 +2153,6 @@ var SetNetworkPolicyRequest = { * @memberof google.container.v1 * @see [google.container.v1.SetMaintenancePolicyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ -var SetMaintenancePolicyRequest = { +const SetMaintenancePolicyRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; \ No newline at end of file diff --git a/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js b/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js index 5e3640e90d8..b1d6b5e32a9 100644 --- a/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js +++ b/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js @@ -29,6 +29,6 @@ * @memberof google.protobuf * @see [google.protobuf.Empty definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/empty.proto} */ -var Empty = { +const Empty = { // This is for documentation. Actual contents will be loaded by gRPC. }; \ No newline at end of file diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js index 33e3a12d5ec..9330aa7d018 100644 --- a/packages/google-container/test/gapic-v1.js +++ b/packages/google-container/test/gapic-v1.js @@ -18,28 +18,28 @@ const assert = require('assert'); const containerModule = require('../src'); -var FAKE_STATUS_CODE = 1; -var error = new Error(); +const FAKE_STATUS_CODE = 1; +const error = new Error(); error.code = FAKE_STATUS_CODE; describe('ClusterManagerClient', () => { describe('listClusters', () => { it('invokes listClusters without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const request = { projectId: projectId, zone: zone, }; // Mock response - var expectedResponse = {}; + const expectedResponse = {}; // Mock Grpc layer client._innerApiCalls.listClusters = mockSimpleGrpcMethod( @@ -55,15 +55,15 @@ describe('ClusterManagerClient', () => { }); it('invokes listClusters with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const request = { projectId: projectId, zone: zone, }; @@ -86,45 +86,45 @@ describe('ClusterManagerClient', () => { describe('getCluster', () => { it('invokes getCluster without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, }; // Mock response - var name = 'name3373707'; - var description = 'description-1724546052'; - var initialNodeCount = 1682564205; - var loggingService = 'loggingService-1700501035'; - var monitoringService = 'monitoringService1469270462'; - var network = 'network1843485230'; - var clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; - var subnetwork = 'subnetwork-1302785042'; - var enableKubernetesAlpha = false; - var labelFingerprint = 'labelFingerprint714995737'; - var selfLink = 'selfLink-1691268851'; - var zone2 = 'zone2-696322977'; - var endpoint = 'endpoint1741102485'; - var initialClusterVersion = 'initialClusterVersion-276373352'; - var currentMasterVersion = 'currentMasterVersion-920953983'; - var currentNodeVersion = 'currentNodeVersion-407476063'; - var createTime = 'createTime-493574096'; - var statusMessage = 'statusMessage-239442758'; - var nodeIpv4CidrSize = 1181176815; - var servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; - var currentNodeCount = 178977560; - var expireTime = 'expireTime-96179731'; - var expectedResponse = { + const name = 'name3373707'; + const description = 'description-1724546052'; + const initialNodeCount = 1682564205; + const loggingService = 'loggingService-1700501035'; + const monitoringService = 'monitoringService1469270462'; + const network = 'network1843485230'; + const clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; + const subnetwork = 'subnetwork-1302785042'; + const enableKubernetesAlpha = false; + const labelFingerprint = 'labelFingerprint714995737'; + const selfLink = 'selfLink-1691268851'; + const zone2 = 'zone2-696322977'; + const endpoint = 'endpoint1741102485'; + const initialClusterVersion = 'initialClusterVersion-276373352'; + const currentMasterVersion = 'currentMasterVersion-920953983'; + const currentNodeVersion = 'currentNodeVersion-407476063'; + const createTime = 'createTime-493574096'; + const statusMessage = 'statusMessage-239442758'; + const nodeIpv4CidrSize = 1181176815; + const servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; + const currentNodeCount = 178977560; + const expireTime = 'expireTime-96179731'; + const expectedResponse = { name: name, description: description, initialNodeCount: initialNodeCount, @@ -163,16 +163,16 @@ describe('ClusterManagerClient', () => { }); it('invokes getCluster with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -196,31 +196,31 @@ describe('ClusterManagerClient', () => { describe('createCluster', () => { it('invokes createCluster without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var cluster = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const cluster = {}; + const request = { projectId: projectId, zone: zone, cluster: cluster, }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -245,16 +245,16 @@ describe('ClusterManagerClient', () => { }); it('invokes createCluster with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var cluster = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const cluster = {}; + const request = { projectId: projectId, zone: zone, cluster: cluster, @@ -278,17 +278,17 @@ describe('ClusterManagerClient', () => { describe('updateCluster', () => { it('invokes updateCluster without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var update = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const update = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -296,15 +296,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -329,17 +329,17 @@ describe('ClusterManagerClient', () => { }); it('invokes updateCluster with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var update = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const update = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -364,19 +364,19 @@ describe('ClusterManagerClient', () => { describe('updateNodePool', () => { it('invokes updateNodePool without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var nodeVersion = 'nodeVersion1790136219'; - var imageType = 'imageType-1442758754'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const nodeVersion = 'nodeVersion1790136219'; + const imageType = 'imageType-1442758754'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -386,15 +386,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -419,19 +419,19 @@ describe('ClusterManagerClient', () => { }); it('invokes updateNodePool with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var nodeVersion = 'nodeVersion1790136219'; - var imageType = 'imageType-1442758754'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const nodeVersion = 'nodeVersion1790136219'; + const imageType = 'imageType-1442758754'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -458,18 +458,18 @@ describe('ClusterManagerClient', () => { describe('setNodePoolAutoscaling', () => { it('invokes setNodePoolAutoscaling without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var autoscaling = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const autoscaling = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -478,15 +478,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -511,18 +511,18 @@ describe('ClusterManagerClient', () => { }); it('invokes setNodePoolAutoscaling with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var autoscaling = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const autoscaling = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -548,17 +548,17 @@ describe('ClusterManagerClient', () => { describe('setLoggingService', () => { it('invokes setLoggingService without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var loggingService = 'loggingService-1700501035'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const loggingService = 'loggingService-1700501035'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -566,15 +566,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -599,17 +599,17 @@ describe('ClusterManagerClient', () => { }); it('invokes setLoggingService with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var loggingService = 'loggingService-1700501035'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const loggingService = 'loggingService-1700501035'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -634,17 +634,17 @@ describe('ClusterManagerClient', () => { describe('setMonitoringService', () => { it('invokes setMonitoringService without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var monitoringService = 'monitoringService1469270462'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const monitoringService = 'monitoringService1469270462'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -652,15 +652,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -685,17 +685,17 @@ describe('ClusterManagerClient', () => { }); it('invokes setMonitoringService with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var monitoringService = 'monitoringService1469270462'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const monitoringService = 'monitoringService1469270462'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -720,17 +720,17 @@ describe('ClusterManagerClient', () => { describe('setAddonsConfig', () => { it('invokes setAddonsConfig without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var addonsConfig = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const addonsConfig = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -738,15 +738,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -771,17 +771,17 @@ describe('ClusterManagerClient', () => { }); it('invokes setAddonsConfig with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var addonsConfig = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const addonsConfig = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -806,17 +806,17 @@ describe('ClusterManagerClient', () => { describe('setLocations', () => { it('invokes setLocations without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var locations = []; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const locations = []; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -824,15 +824,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -857,17 +857,17 @@ describe('ClusterManagerClient', () => { }); it('invokes setLocations with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var locations = []; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const locations = []; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -892,17 +892,17 @@ describe('ClusterManagerClient', () => { describe('updateMaster', () => { it('invokes updateMaster without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var masterVersion = 'masterVersion-2139460613'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const masterVersion = 'masterVersion-2139460613'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -910,15 +910,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -943,17 +943,17 @@ describe('ClusterManagerClient', () => { }); it('invokes updateMaster with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var masterVersion = 'masterVersion-2139460613'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const masterVersion = 'masterVersion-2139460613'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -978,18 +978,18 @@ describe('ClusterManagerClient', () => { describe('setMasterAuth', () => { it('invokes setMasterAuth without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var action = 'UNKNOWN'; - var update = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const action = 'UNKNOWN'; + const update = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -998,15 +998,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -1031,18 +1031,18 @@ describe('ClusterManagerClient', () => { }); it('invokes setMasterAuth with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var action = 'UNKNOWN'; - var update = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const action = 'UNKNOWN'; + const update = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1068,31 +1068,31 @@ describe('ClusterManagerClient', () => { describe('deleteCluster', () => { it('invokes deleteCluster without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -1117,16 +1117,16 @@ describe('ClusterManagerClient', () => { }); it('invokes deleteCluster with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1150,21 +1150,21 @@ describe('ClusterManagerClient', () => { describe('listOperations', () => { it('invokes listOperations without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const request = { projectId: projectId, zone: zone, }; // Mock response - var expectedResponse = {}; + const expectedResponse = {}; // Mock Grpc layer client._innerApiCalls.listOperations = mockSimpleGrpcMethod( @@ -1180,15 +1180,15 @@ describe('ClusterManagerClient', () => { }); it('invokes listOperations with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const request = { projectId: projectId, zone: zone, }; @@ -1211,31 +1211,31 @@ describe('ClusterManagerClient', () => { describe('getOperation', () => { it('invokes getOperation without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var operationId = 'operationId-274116877'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const operationId = 'operationId-274116877'; + const request = { projectId: projectId, zone: zone, operationId: operationId, }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -1260,16 +1260,16 @@ describe('ClusterManagerClient', () => { }); it('invokes getOperation with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var operationId = 'operationId-274116877'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const operationId = 'operationId-274116877'; + const request = { projectId: projectId, zone: zone, operationId: operationId, @@ -1293,16 +1293,16 @@ describe('ClusterManagerClient', () => { describe('cancelOperation', () => { it('invokes cancelOperation without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var operationId = 'operationId-274116877'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const operationId = 'operationId-274116877'; + const request = { projectId: projectId, zone: zone, operationId: operationId, @@ -1318,16 +1318,16 @@ describe('ClusterManagerClient', () => { }); it('invokes cancelOperation with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var operationId = 'operationId-274116877'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const operationId = 'operationId-274116877'; + const request = { projectId: projectId, zone: zone, operationId: operationId, @@ -1350,23 +1350,23 @@ describe('ClusterManagerClient', () => { describe('getServerConfig', () => { it('invokes getServerConfig without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const request = { projectId: projectId, zone: zone, }; // Mock response - var defaultClusterVersion = 'defaultClusterVersion111003029'; - var defaultImageType = 'defaultImageType-918225828'; - var expectedResponse = { + const defaultClusterVersion = 'defaultClusterVersion111003029'; + const defaultImageType = 'defaultImageType-918225828'; + const expectedResponse = { defaultClusterVersion: defaultClusterVersion, defaultImageType: defaultImageType, }; @@ -1385,15 +1385,15 @@ describe('ClusterManagerClient', () => { }); it('invokes getServerConfig with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const request = { projectId: projectId, zone: zone, }; @@ -1416,23 +1416,23 @@ describe('ClusterManagerClient', () => { describe('listNodePools', () => { it('invokes listNodePools without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, }; // Mock response - var expectedResponse = {}; + const expectedResponse = {}; // Mock Grpc layer client._innerApiCalls.listNodePools = mockSimpleGrpcMethod( @@ -1448,16 +1448,16 @@ describe('ClusterManagerClient', () => { }); it('invokes listNodePools with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1481,17 +1481,17 @@ describe('ClusterManagerClient', () => { describe('getNodePool', () => { it('invokes getNodePool without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1499,12 +1499,12 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var initialNodeCount = 1682564205; - var selfLink = 'selfLink-1691268851'; - var version = 'version351608024'; - var statusMessage = 'statusMessage-239442758'; - var expectedResponse = { + const name = 'name3373707'; + const initialNodeCount = 1682564205; + const selfLink = 'selfLink-1691268851'; + const version = 'version351608024'; + const statusMessage = 'statusMessage-239442758'; + const expectedResponse = { name: name, initialNodeCount: initialNodeCount, selfLink: selfLink, @@ -1526,17 +1526,17 @@ describe('ClusterManagerClient', () => { }); it('invokes getNodePool with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1561,17 +1561,17 @@ describe('ClusterManagerClient', () => { describe('createNodePool', () => { it('invokes createNodePool without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePool = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePool = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1579,15 +1579,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -1612,17 +1612,17 @@ describe('ClusterManagerClient', () => { }); it('invokes createNodePool with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePool = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePool = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1647,17 +1647,17 @@ describe('ClusterManagerClient', () => { describe('deleteNodePool', () => { it('invokes deleteNodePool without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1665,15 +1665,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -1698,17 +1698,17 @@ describe('ClusterManagerClient', () => { }); it('invokes deleteNodePool with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1733,17 +1733,17 @@ describe('ClusterManagerClient', () => { describe('rollbackNodePoolUpgrade', () => { it('invokes rollbackNodePoolUpgrade without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1751,15 +1751,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -1784,17 +1784,17 @@ describe('ClusterManagerClient', () => { }); it('invokes rollbackNodePoolUpgrade with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1819,18 +1819,18 @@ describe('ClusterManagerClient', () => { describe('setNodePoolManagement', () => { it('invokes setNodePoolManagement without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var management = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const management = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1839,15 +1839,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -1872,18 +1872,18 @@ describe('ClusterManagerClient', () => { }); it('invokes setNodePoolManagement with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var management = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const management = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1909,18 +1909,18 @@ describe('ClusterManagerClient', () => { describe('setLabels', () => { it('invokes setLabels without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var resourceLabels = {}; - var labelFingerprint = 'labelFingerprint714995737'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const resourceLabels = {}; + const labelFingerprint = 'labelFingerprint714995737'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1929,15 +1929,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -1962,18 +1962,18 @@ describe('ClusterManagerClient', () => { }); it('invokes setLabels with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var resourceLabels = {}; - var labelFingerprint = 'labelFingerprint714995737'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const resourceLabels = {}; + const labelFingerprint = 'labelFingerprint714995737'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -1999,17 +1999,17 @@ describe('ClusterManagerClient', () => { describe('setLegacyAbac', () => { it('invokes setLegacyAbac without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var enabled = false; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const enabled = false; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -2017,15 +2017,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -2050,17 +2050,17 @@ describe('ClusterManagerClient', () => { }); it('invokes setLegacyAbac with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var enabled = false; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const enabled = false; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -2085,31 +2085,31 @@ describe('ClusterManagerClient', () => { describe('startIPRotation', () => { it('invokes startIPRotation without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -2134,16 +2134,16 @@ describe('ClusterManagerClient', () => { }); it('invokes startIPRotation with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -2167,31 +2167,31 @@ describe('ClusterManagerClient', () => { describe('completeIPRotation', () => { it('invokes completeIPRotation without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -2216,16 +2216,16 @@ describe('ClusterManagerClient', () => { }); it('invokes completeIPRotation with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -2249,18 +2249,18 @@ describe('ClusterManagerClient', () => { describe('setNodePoolSize', () => { it('invokes setNodePoolSize without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var nodeCount = 1539922066; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const nodeCount = 1539922066; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -2269,15 +2269,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -2302,18 +2302,18 @@ describe('ClusterManagerClient', () => { }); it('invokes setNodePoolSize with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var nodePoolId = 'nodePoolId1043384033'; - var nodeCount = 1539922066; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const nodePoolId = 'nodePoolId1043384033'; + const nodeCount = 1539922066; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -2339,17 +2339,17 @@ describe('ClusterManagerClient', () => { describe('setNetworkPolicy', () => { it('invokes setNetworkPolicy without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var networkPolicy = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const networkPolicy = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -2357,15 +2357,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -2390,17 +2390,17 @@ describe('ClusterManagerClient', () => { }); it('invokes setNetworkPolicy with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var networkPolicy = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const networkPolicy = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -2425,17 +2425,17 @@ describe('ClusterManagerClient', () => { describe('setMaintenancePolicy', () => { it('invokes setMaintenancePolicy without error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var maintenancePolicy = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const maintenancePolicy = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, @@ -2443,15 +2443,15 @@ describe('ClusterManagerClient', () => { }; // Mock response - var name = 'name3373707'; - var zone2 = 'zone2-696322977'; - var detail = 'detail-1335224239'; - var statusMessage = 'statusMessage-239442758'; - var selfLink = 'selfLink-1691268851'; - var targetLink = 'targetLink-2084812312'; - var startTime = 'startTime-1573145462'; - var endTime = 'endTime1725551537'; - var expectedResponse = { + const name = 'name3373707'; + const zone2 = 'zone2-696322977'; + const detail = 'detail-1335224239'; + const statusMessage = 'statusMessage-239442758'; + const selfLink = 'selfLink-1691268851'; + const targetLink = 'targetLink-2084812312'; + const startTime = 'startTime-1573145462'; + const endTime = 'endTime1725551537'; + const expectedResponse = { name: name, zone: zone2, detail: detail, @@ -2476,17 +2476,17 @@ describe('ClusterManagerClient', () => { }); it('invokes setMaintenancePolicy with error', done => { - var client = new containerModule.v1.ClusterManagerClient({ + const client = new containerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); // Mock request - var projectId = 'projectId-1969970175'; - var zone = 'zone3744684'; - var clusterId = 'clusterId240280960'; - var maintenancePolicy = {}; - var request = { + const projectId = 'projectId-1969970175'; + const zone = 'zone3744684'; + const clusterId = 'clusterId240280960'; + const maintenancePolicy = {}; + const request = { projectId: projectId, zone: zone, clusterId: clusterId, From 70dba5a79857ff8fbdb6a30472ff1fbaf4170807 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 18 Sep 2018 10:52:06 -0700 Subject: [PATCH 065/371] Enable no-var in eslint (#77) --- packages/google-container/.eslintrc.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/google-container/.eslintrc.yml b/packages/google-container/.eslintrc.yml index bed57fbc42c..65f1dce6c0c 100644 --- a/packages/google-container/.eslintrc.yml +++ b/packages/google-container/.eslintrc.yml @@ -11,3 +11,4 @@ rules: block-scoped-var: error eqeqeq: error no-warning-comments: warn + no-var: error From 045f8b911adcd744dfc0d4d5ab79cd0cd452f8ab Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 20 Sep 2018 12:30:24 -0700 Subject: [PATCH 066/371] Enable prefer-const in the eslint config (#78) --- packages/google-container/.eslintrc.yml | 1 + packages/google-container/src/v1/cluster_manager_client.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/google-container/.eslintrc.yml b/packages/google-container/.eslintrc.yml index 65f1dce6c0c..73eeec27612 100644 --- a/packages/google-container/.eslintrc.yml +++ b/packages/google-container/.eslintrc.yml @@ -12,3 +12,4 @@ rules: eqeqeq: error no-warning-comments: warn no-var: error + prefer-const: error diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index d83d40d4049..aa36744dab4 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -150,7 +150,7 @@ class ClusterManagerClient { 'setNetworkPolicy', 'setMaintenancePolicy', ]; - for (let methodName of clusterManagerStubMethods) { + for (const methodName of clusterManagerStubMethods) { this._innerApiCalls[methodName] = gax.createApiCall( clusterManagerStub.then( stub => From d4327f2efb41ed940e383654058daed4b4665b01 Mon Sep 17 00:00:00 2001 From: DPE bot Date: Fri, 21 Sep 2018 17:44:49 -0700 Subject: [PATCH 067/371] Update the CI config (#80) --- packages/google-container/.circleci/npm-install-retry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/.circleci/npm-install-retry.js b/packages/google-container/.circleci/npm-install-retry.js index ae3220d7348..3240aa2cbf2 100755 --- a/packages/google-container/.circleci/npm-install-retry.js +++ b/packages/google-container/.circleci/npm-install-retry.js @@ -6,7 +6,7 @@ let spawn = require('child_process').spawn; //USE: ./index.js [... NPM ARGS] // -let timeout = process.argv[2] || 60000; +let timeout = process.argv[2] || process.env.NPM_INSTALL_TIMEOUT || 60000; let attempts = process.argv[3] || 3; let args = process.argv.slice(4); if (args.length === 0) { From 987ca4f44bdbb818074f721c4c603ec584348840 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 24 Sep 2018 17:01:21 -0700 Subject: [PATCH 068/371] test: remove appveyor config (#81) --- packages/google-container/.appveyor.yml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 packages/google-container/.appveyor.yml diff --git a/packages/google-container/.appveyor.yml b/packages/google-container/.appveyor.yml deleted file mode 100644 index 24082152655..00000000000 --- a/packages/google-container/.appveyor.yml +++ /dev/null @@ -1,20 +0,0 @@ -environment: - matrix: - - nodejs_version: 8 - -install: - - ps: Install-Product node $env:nodejs_version - - npm install -g npm # Force using the latest npm to get dedupe during install - - set PATH=%APPDATA%\npm;%PATH% - - npm install --force --ignore-scripts - -test_script: - - node --version - - npm --version - - npm rebuild - - npm test - -build: off - -matrix: - fast_finish: true From 7c281dcebd4325eb7d46edbdcf1c62436b3e7114 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Mon, 1 Oct 2018 05:03:12 -0700 Subject: [PATCH 069/371] chore(deps): update dependency eslint-plugin-prettier to v3 (#86) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 1578c8f9e36..d03078fa700 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -56,7 +56,7 @@ "eslint": "^5.0.1", "eslint-config-prettier": "^3.0.0", "eslint-plugin-node": "^7.0.0", - "eslint-plugin-prettier": "^2.3.1", + "eslint-plugin-prettier": "^3.0.0", "ink-docstrap": "^1.3.2", "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.5.5", From c2ddd744d693284ab1a3405e4c95452e43d71aa1 Mon Sep 17 00:00:00 2001 From: DPE bot Date: Tue, 2 Oct 2018 08:11:51 -0700 Subject: [PATCH 070/371] Update kokoro config (#87) --- packages/google-container/.circleci/config.yml | 2 -- packages/google-container/codecov.yaml | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 packages/google-container/codecov.yaml diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 8af6a4d0489..da54155fc57 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -68,8 +68,6 @@ jobs: environment: NPM_CONFIG_PREFIX: /home/node/.npm-global - run: npm test - - run: node_modules/.bin/codecov - node8: docker: - image: 'node:8' diff --git a/packages/google-container/codecov.yaml b/packages/google-container/codecov.yaml new file mode 100644 index 00000000000..5724ea9478d --- /dev/null +++ b/packages/google-container/codecov.yaml @@ -0,0 +1,4 @@ +--- +codecov: + ci: + - source.cloud.google.com From 56d5ff5071e5ecce9f246ead7f6fa5d214f90d84 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Sun, 28 Oct 2018 08:35:00 -0700 Subject: [PATCH 071/371] chore(deps): update dependency eslint-plugin-node to v8 (#102) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index d03078fa700..e90ff603a66 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -55,7 +55,7 @@ "codecov": "^3.0.0", "eslint": "^5.0.1", "eslint-config-prettier": "^3.0.0", - "eslint-plugin-node": "^7.0.0", + "eslint-plugin-node": "^8.0.0", "eslint-plugin-prettier": "^3.0.0", "ink-docstrap": "^1.3.2", "intelli-espower-loader": "^1.0.1", From 6942633959a547814580abbe8b5f1af57cb312cc Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 30 Oct 2018 10:01:36 -0700 Subject: [PATCH 072/371] chore: include build in eslintignore (#106) --- packages/google-container/.eslintignore | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/google-container/.eslintignore b/packages/google-container/.eslintignore index f6fac98b0a8..f08b0fd1c65 100644 --- a/packages/google-container/.eslintignore +++ b/packages/google-container/.eslintignore @@ -1,3 +1,4 @@ node_modules/* samples/node_modules/* src/**/doc/* +build/ From 3928e0b56fa95339f93898c8148445db2831b23a Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 1 Nov 2018 12:04:18 -0700 Subject: [PATCH 073/371] chore: update CircleCI config (#109) --- packages/google-container/.circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index da54155fc57..6735ebdaaa1 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -159,7 +159,8 @@ jobs: command: npm run system-test environment: GCLOUD_PROJECT: long-door-651 - GOOGLE_APPLICATION_CREDENTIALS: .circleci/key.json + GOOGLE_APPLICATION_CREDENTIALS: /home/node/project/.circleci/key.json + NPM_CONFIG_PREFIX: /home/node/.npm-global - run: name: Remove unencrypted key. command: | From f7bddbf38e0a8682408acdfe2bd1311035f23aa8 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 9 Nov 2018 10:01:37 -0800 Subject: [PATCH 074/371] chore: drop contributors from multiple places (#112) --- packages/google-container/.mailmap | 7 ------- packages/google-container/CONTRIBUTORS | 9 --------- packages/google-container/package.json | 6 ------ 3 files changed, 22 deletions(-) delete mode 100644 packages/google-container/.mailmap delete mode 100644 packages/google-container/CONTRIBUTORS diff --git a/packages/google-container/.mailmap b/packages/google-container/.mailmap deleted file mode 100644 index 7777d4dca88..00000000000 --- a/packages/google-container/.mailmap +++ /dev/null @@ -1,7 +0,0 @@ -Jason Dobry Jason Dobry -Jason Dobry Jason Dobry -Luke Sneeringer Luke Sneeringer -Stephen Sawchuk Stephen Sawchuk -Stephen Sawchuk Stephen Sawchuk -Stephen Sawchuk Stephen -Alexander Fenster Alexander Fenster diff --git a/packages/google-container/CONTRIBUTORS b/packages/google-container/CONTRIBUTORS deleted file mode 100644 index fe335c3db51..00000000000 --- a/packages/google-container/CONTRIBUTORS +++ /dev/null @@ -1,9 +0,0 @@ -# The names of individuals who have contributed to this project. -# -# Names are formatted as: -# name -# -Alexander Fenster -Ethan Bao -Google API Publisher -greenkeeper[bot] diff --git a/packages/google-container/package.json b/packages/google-container/package.json index e90ff603a66..500551f9ec5 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -28,12 +28,6 @@ "container", "Google Container Engine API" ], - "contributors": [ - "Alexander Fenster ", - "Ethan Bao ", - "Google API Publisher ", - "greenkeeper[bot] " - ], "scripts": { "test": "npm run cover", "generate-scaffolding": "repo-tools generate all", From 3bee95660ede27629c1e856aeadcecbb25167e33 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Sat, 10 Nov 2018 10:50:39 -0800 Subject: [PATCH 075/371] chore(deps): update dependency @google-cloud/nodejs-repo-tools to v3 (#113) --- packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 500551f9ec5..f183f91bebf 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -45,7 +45,7 @@ "lodash.merge": "^4.6.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "^2.2.4", + "@google-cloud/nodejs-repo-tools": "^3.0.0", "codecov": "^3.0.0", "eslint": "^5.0.1", "eslint-config-prettier": "^3.0.0", diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 96eb98453fb..c0268d60425 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,6 +14,6 @@ "@google-cloud/container": "^0.2.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "^2.3.0" + "@google-cloud/nodejs-repo-tools": "^3.0.0" } } From 30be31c3a421aefb065a0c8dce3c27e2279745e3 Mon Sep 17 00:00:00 2001 From: Christopher Wilcox Date: Mon, 12 Nov 2018 22:16:39 +0000 Subject: [PATCH 076/371] Update synth.py yaml path (#115) --- packages/google-container/synth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index d421c9e3709..354e25f0f50 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -11,7 +11,7 @@ library = gapic.node_library( 'container', version, config_path="/google/container/" - "artman_container.yaml") + "artman_container_v1.yaml") s.copy( library, excludes=['package.json', 'README.md', 'src/index.js'], From 8710d7255eae8820622c9970f9f2434ba7607d7a Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 12 Nov 2018 15:55:11 -0800 Subject: [PATCH 077/371] chore: update eslintignore config (#116) --- packages/google-container/.eslintignore | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/google-container/.eslintignore b/packages/google-container/.eslintignore index f08b0fd1c65..2f642cb6044 100644 --- a/packages/google-container/.eslintignore +++ b/packages/google-container/.eslintignore @@ -1,4 +1,3 @@ -node_modules/* -samples/node_modules/* +**/node_modules src/**/doc/* build/ From 366f915ac65aa0d199d05ef41c806ac1eb87c402 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Tue, 13 Nov 2018 08:09:26 -0800 Subject: [PATCH 078/371] fix(deps): update dependency google-gax to ^0.22.0 (#117) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index f183f91bebf..360b8ae8d4a 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -41,7 +41,7 @@ "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000" }, "dependencies": { - "google-gax": "^0.20.0", + "google-gax": "^0.22.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From 3f15f26560e5f3211ddc3dfcd91d853eb5fdc977 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Tue, 13 Nov 2018 08:09:42 -0800 Subject: [PATCH 079/371] fix(docs): README.md using @google-cloud/cloud-container (#114) --- packages/google-container/README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index ef859abca8b..45ce86d2b85 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -1,3 +1,5 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `npm run generate-scaffolding`." Google Cloud Platform logo # [Google Kubernetes Engine: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) @@ -62,7 +64,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. ### Using the client library ```javascript -const container = require('@google-cloud/cloud-container'); +const container = require('@google-cloud/container'); if ( !process.env.GCLOUD_PROJECT || @@ -84,7 +86,8 @@ const request = { zone: zone, }; -client.listClusters(request) +client + .listClusters(request) .then(responses => { const response = responses[0]; console.log(response); @@ -122,4 +125,4 @@ See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/master/L [client-docs]: https://cloud.google.com/nodejs/docs/reference/container/latest/ [product-docs]: https://cloud.google.com/kubernetes-engine/docs/ -[shell_img]: //gstatic.com/cloudssh/images/open-btn.png +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png From 1225349a11ec34ba344928cc40593594ad16c610 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Mon, 19 Nov 2018 10:57:50 -0800 Subject: [PATCH 080/371] chore: add synth.metadata chore: add synth.metadata --- .../google/container/v1/cluster_service.proto | 1045 +++++++++++++---- .../src/v1/cluster_manager_client.js | 426 +++++-- .../src/v1/cluster_manager_client_config.json | 60 +- .../container/v1/doc_cluster_service.js | 598 ++++++++-- packages/google-container/synth.metadata | 27 + packages/google-container/test/gapic-v1.js | 48 + 6 files changed, 1691 insertions(+), 513 deletions(-) create mode 100644 packages/google-container/synth.metadata diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 4636fdcc5d6..db7744d04e8 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -1,4 +1,4 @@ -// Copyright 2017 Google Inc. +// Copyright 2018 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,6 +11,7 @@ // 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"; @@ -27,17 +28,27 @@ option csharp_namespace = "Google.Cloud.Container.V1"; option php_namespace = "Google\\Cloud\\Container\\V1"; -// Google Container Engine Cluster Manager v1 +// Google Kubernetes Engine Cluster Manager v1 service ClusterManager { // Lists all clusters owned by a project in either the specified zone or all // zones. rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters" }; + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/clusters" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/clusters" + } + }; } // Gets the details of a specific cluster. rpc GetCluster(GetClusterRequest) returns (Cluster) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/clusters/*}" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }; } // Creates a cluster, consisting of the specified number and type of Google @@ -54,54 +65,124 @@ service ClusterManager { // Finally, an entry is added to the project's global metadata indicating // which CIDR range is being used by the cluster. rpc CreateCluster(CreateClusterRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters" body: "*" }; + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/clusters" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters" + body: "*" + } + }; } // Updates the settings of a specific cluster. rpc UpdateCluster(UpdateClusterRequest) returns (Operation) { - option (google.api.http) = { put: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" body: "*" }; + option (google.api.http) = { + put: "/v1/{name=projects/*/locations/*/clusters/*}" + body: "*" + additional_bindings { + put: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + body: "*" + } + }; } - // Updates the version and/or image type of a specific node pool. + // Updates the version and/or image type for a specific node pool. rpc UpdateNodePool(UpdateNodePoolRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update" body: "*" }; + option (google.api.http) = { + put: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update" + body: "*" + } + }; } - // Sets the autoscaling settings of a specific node pool. + // Sets the autoscaling settings for a specific node pool. rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling" + body: "*" + } + }; } - // Sets the logging service of a specific cluster. + // Sets the logging service for a specific cluster. rpc SetLoggingService(SetLoggingServiceRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setLogging" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging" + body: "*" + } + }; } - // Sets the monitoring service of a specific cluster. + // Sets the monitoring service for a specific cluster. rpc SetMonitoringService(SetMonitoringServiceRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring" + body: "*" + } + }; } - // Sets the addons of a specific cluster. + // Sets the addons for a specific cluster. rpc SetAddonsConfig(SetAddonsConfigRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setAddons" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons" + body: "*" + } + }; } - // Sets the locations of a specific cluster. + // Sets the locations for a specific cluster. rpc SetLocations(SetLocationsRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setLocations" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations" + body: "*" + } + }; } - // Updates the master of a specific cluster. + // Updates the master for a specific cluster. rpc UpdateMaster(UpdateMasterRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:updateMaster" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master" + body: "*" + } + }; } // Used to set master auth materials. Currently supports :- - // Changing the admin password of a specific cluster. + // Changing the admin password for a specific cluster. // This can be either via password generation or explicitly set the password. rpc SetMasterAuth(SetMasterAuthRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth" + body: "*" + } + }; } // Deletes the cluster, including the Kubernetes endpoint and all worker @@ -114,93 +195,205 @@ service ClusterManager { // (e.g. load balancer resources) will not be deleted if they weren't present // at the initial create time. rpc DeleteCluster(DeleteClusterRequest) returns (Operation) { - option (google.api.http) = { delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" }; + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/clusters/*}" + additional_bindings { + delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }; } // Lists all operations in a project in a specific zone or all zones. rpc ListOperations(ListOperationsRequest) returns (ListOperationsResponse) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/operations" }; + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/operations" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/operations" + } + }; } // Gets the specified operation. rpc GetOperation(GetOperationRequest) returns (Operation) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/operations/*}" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" + } + }; } // Cancels the specified operation. rpc CancelOperation(CancelOperationRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/operations/*}:cancel" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel" + body: "*" + } + }; } - // Returns configuration info about the Container Engine service. + // Returns configuration info about the Kubernetes Engine service. rpc GetServerConfig(GetServerConfigRequest) returns (ServerConfig) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/serverconfig" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*}/serverConfig" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/serverconfig" + } + }; } // Lists the node pools for a cluster. rpc ListNodePools(ListNodePoolsRequest) returns (ListNodePoolsResponse) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" }; + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + } + }; } // Retrieves the node pool requested. rpc GetNodePool(GetNodePoolRequest) returns (NodePool) { - option (google.api.http) = { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" }; + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + additional_bindings { + get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }; } // Creates a node pool for a cluster. rpc CreateNodePool(CreateNodePoolRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" body: "*" }; + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + body: "*" + } + }; } // Deletes a node pool from a cluster. rpc DeleteNodePool(DeleteNodePoolRequest) returns (Operation) { - option (google.api.http) = { delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" }; + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" + additional_bindings { + delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }; } // Roll back the previously Aborted or Failed NodePool upgrade. // This will be an no-op if the last upgrade successfully completed. rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback" + body: "*" + } + }; } // Sets the NodeManagement options for a node pool. rpc SetNodePoolManagement(SetNodePoolManagementRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement" + body: "*" + } + }; } // Sets labels on a cluster. rpc SetLabels(SetLabelsRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels" + body: "*" + } + }; } // Enables or disables the ABAC authorization mechanism on a cluster. rpc SetLegacyAbac(SetLegacyAbacRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac" + body: "*" + } + }; } // Start master IP rotation. rpc StartIPRotation(StartIPRotationRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation" + body: "*" + } + }; } // Completes master IP rotation. rpc CompleteIPRotation(CompleteIPRotationRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation" + body: "*" + } + }; } - // Sets the size of a specific node pool. + // Sets the size for a specific node pool. rpc SetNodePoolSize(SetNodePoolSizeRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize" + body: "*" + } + }; } // Enables/Disables Network Policy for a cluster. rpc SetNetworkPolicy(SetNetworkPolicyRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy" + body: "*" + } + }; } // Sets the maintenance policy for a cluster. rpc SetMaintenancePolicy(SetMaintenancePolicyRequest) returns (Operation) { - option (google.api.http) = { post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy" body: "*" }; + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy" + body: "*" + additional_bindings { + post: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy" + body: "*" + } + }; } } @@ -245,8 +438,18 @@ message NodeConfig { // 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 four reserved keys: - // "instance-template", "kube-env", "startup-script", and "user-data" + // metadata keys for the project or be one of the reserved keys: + // "cluster-location" + // "cluster-name" + // "cluster-uid" + // "configure-sh" + // "enable-os-login" + // "gci-update-strategy" + // "gci-ensure-gke-docker" + // "instance-template" + // "kube-env" + // "startup-script" + // "user-data" // // 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 @@ -293,12 +496,18 @@ message NodeConfig { // support for GPUs. repeated AcceleratorConfig accelerators = 11; + // Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') + // + // If unspecified, the default disk type is 'pd-standard' + string disk_type = 12; + // 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 - // information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + // information, read [how to specify min CPU + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) string min_cpu_platform = 13; } @@ -317,8 +526,9 @@ message MasterAuth { // must be non-empty. string password = 2; - // Configuration for client certificate authentication on the cluster. If no - // configuration is specified, a client certificate is issued. + // Configuration for client certificate authentication on the cluster. For + // clusters before v1.12, if no configuration is specified, a client + // certificate is issued. ClientCertificateConfig client_certificate_config = 3; // [Output only] Base64-encoded public certificate that is the root of @@ -394,7 +604,29 @@ message NetworkPolicyConfig { bool disabled = 1; } -// Master authorized networks is a Beta feature. +// Configuration options for private clusters. +message PrivateClusterConfig { + // Whether nodes have internal IP addresses only. If enabled, all nodes are + // given only RFC 1918 private addresses and communicate with the master via + // private networking. + bool enable_private_nodes = 1; + + // Whether the master's internal IP address is used as the cluster endpoint. + bool enable_private_endpoint = 2; + + // The IP range in CIDR notation to use for the hosted master network. This + // range will be used for assigning internal IP addresses to the master or + // set of masters, as well as the ILB VIP. This range must not overlap with + // any other ranges in use within the cluster's network. + string master_ipv4_cidr_block = 3; + + // Output only. The internal IP address of this cluster's master endpoint. + string private_endpoint = 4; + + // Output only. The external IP address of this cluster's master endpoint. + string public_endpoint = 5; +} + // Configuration options for the master authorized networks feature. Enabled // master authorized networks will disallow all external traffic to access // Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -462,13 +694,13 @@ message IPAllocationPolicy { string subnetwork_name = 3; // This field is deprecated, use cluster_ipv4_cidr_block. - string cluster_ipv4_cidr = 4; + string cluster_ipv4_cidr = 4 [deprecated = true]; // This field is deprecated, use node_ipv4_cidr_block. - string node_ipv4_cidr = 5; + string node_ipv4_cidr = 5 [deprecated = true]; // This field is deprecated, use services_ipv4_cidr_block. - string services_ipv4_cidr = 6; + string services_ipv4_cidr = 6 [deprecated = true]; // The name of the secondary range to be used for the cluster CIDR // block. The secondary range will be used for pod IP @@ -539,7 +771,7 @@ message IPAllocationPolicy { string services_ipv4_cidr_block = 11; } -// A Google Container Engine cluster. +// A Google Kubernetes Engine cluster. message Cluster { // The current status of the cluster. enum Status { @@ -564,6 +796,10 @@ message Cluster { // The ERROR state indicates the cluster may be unusable. Details // can be found in the `statusMessage` field. ERROR = 5; + + // The DEGRADED state indicates the cluster requires user action to restore + // full functionality. Details can be found in the `statusMessage` field. + DEGRADED = 6; } // The name of this cluster. The name must be unique within this project @@ -672,20 +908,26 @@ message Cluster { // Configuration for cluster IP allocation. IPAllocationPolicy ip_allocation_policy = 20; - // Master authorized networks is a Beta feature. // The configuration options for master authorized networks feature. MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; // Configure the maintenance policy for this cluster. MaintenancePolicy maintenance_policy = 23; + // Configuration for cluster networking. + NetworkConfig network_config = 27; + + // Configuration for private cluster. + PrivateClusterConfig private_cluster_config = 37; + // [Output only] Server-defined URL for the resource. string self_link = 100; // [Output only] The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 101; + // This field is deprecated, use location instead. + string zone = 101 [deprecated = true]; // [Output only] The IP address of this cluster's master endpoint. // The endpoint can be accessed from the internet at @@ -699,15 +941,26 @@ message Cluster { // found in validMasterVersions returned by getServerConfig. The version can // be upgraded over time; such upgrades are reflected in // currentMasterVersion and currentNodeVersion. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "","-": picks the default Kubernetes version string initial_cluster_version = 103; // [Output only] The current software version of the master endpoint. string current_master_version = 104; - // [Output only] 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. - string current_node_version = 105; + // [Output only] Deprecated, use + // [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool) + // 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. + string current_node_version = 105 [deprecated = true]; // [Output only] The time the cluster was created, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. @@ -733,7 +986,7 @@ message Cluster { string services_ipv4_cidr = 110; // Deprecated. Use node_pools.instance_group_urls. - repeated string instance_group_urls = 111; + repeated string instance_group_urls = 111 [deprecated = true]; // [Output only] The number of nodes currently in the cluster. int32 current_node_count = 112; @@ -741,6 +994,12 @@ message Cluster { // [Output only] The time the cluster will be automatically // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. string expire_time = 113; + + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/regions-zones/regions-zones#available) or + // [region](/compute/docs/regions-zones/regions-zones#available) in which + // the cluster resides. + string location = 114; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -748,8 +1007,16 @@ message Cluster { // provided. message ClusterUpdate { // The Kubernetes version to change the nodes to (typically an - // upgrade). Use `-` to upgrade to the latest version supported by - // the server. + // upgrade). + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the Kubernetes master version string desired_node_version = 4; // The monitoring service the cluster should use to write metrics. @@ -787,13 +1054,19 @@ message ClusterUpdate { // This list must always include the cluster's primary zone. repeated string desired_locations = 10; - // Master authorized networks is a Beta feature. // The desired configuration options for master authorized networks feature. MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; - // The Kubernetes version to change the master to. The only valid value is the - // latest supported version. Use "-" to have the server automatically select - // the latest version. + // The Kubernetes version to change the master to. + // + // Users may specify either explicit versions offered by + // Kubernetes Engine or version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the default Kubernetes version string desired_master_version = 100; } @@ -878,7 +1151,8 @@ message Operation { // The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the operation // is taking place. - string zone = 2; + // This field is deprecated, use location instead. + string zone = 2 [deprecated = true]; // The operation type. Type operation_type = 3; @@ -898,6 +1172,12 @@ message Operation { // Server-defined URL for the target of the operation. string target_link = 7; + // [Output only] The name of the Google Compute Engine + // [zone](/compute/docs/regions-zones/regions-zones#available) or + // [region](/compute/docs/regions-zones/regions-zones#available) in which + // the cluster resides. + string location = 9; + // [Output only] The time the operation started, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. string start_time = 10; @@ -909,113 +1189,162 @@ message Operation { // CreateClusterRequest creates a cluster. message CreateClusterRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; // A [cluster // resource](/container-engine/reference/rest/v1/projects.zones.clusters) Cluster cluster = 3; + + // The parent (project and location) where the cluster will be created. + // Specified in the format 'projects/*/locations/*'. + string parent = 5; } // GetClusterRequest gets the settings of a cluster. message GetClusterRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to retrieve. - string cluster_id = 3; + // Deprecated. The name of the cluster to retrieve. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster) of the cluster to retrieve. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; } // UpdateClusterRequest updates the settings of a cluster. message UpdateClusterRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // 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]; // A description of the update. ClusterUpdate update = 4; + + // The name (project, location, cluster) of the cluster to update. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; } // UpdateNodePoolRequests update a node pool's image and/or version. message UpdateNodePoolRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // 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]; - // The name of the node pool to upgrade. - string node_pool_id = 4; + // Deprecated. The name of the node pool to upgrade. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; // The Kubernetes version to change the nodes to (typically an - // upgrade). Use `-` to upgrade to the latest version supported by - // the server. + // upgrade). + // + // Users may specify either explicit versions offered by Kubernetes Engine or + // version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the Kubernetes master version string node_version = 5; // The desired image type for the node pool. string image_type = 6; + + // The name (project, location, cluster, node pool) of the node pool to + // update. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 8; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. message SetNodePoolAutoscalingRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // 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]; - // The name of the node pool to upgrade. - string node_pool_id = 4; + // Deprecated. The name of the node pool to upgrade. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; // Autoscaling configuration for the node pool. NodePoolAutoscaling autoscaling = 5; + + // The name (project, location, cluster, node pool) of the node pool to set + // autoscaler settings. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; } // SetLoggingServiceRequest sets the logging service of a cluster. message SetLoggingServiceRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. + // This field has been deprecated and replaced by the name field. string zone = 2; - // The name of the cluster to upgrade. - string cluster_id = 3; + // 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]; // The logging service the cluster should use to write metrics. // Currently available options: @@ -1023,21 +1352,28 @@ message SetLoggingServiceRequest { // * "logging.googleapis.com" - the Google Cloud Logging service // * "none" - no metrics will be exported from the cluster string logging_service = 4; + + // The name (project, location, cluster) of the cluster to set logging. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; } // SetMonitoringServiceRequest sets the monitoring service of a cluster. message SetMonitoringServiceRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // 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]; // The monitoring service the cluster should use to write metrics. // Currently available options: @@ -1045,40 +1381,54 @@ message SetMonitoringServiceRequest { // * "monitoring.googleapis.com" - the Google Cloud Monitoring service // * "none" - no metrics will be exported from the cluster string monitoring_service = 4; + + // The name (project, location, cluster) of the cluster to set monitoring. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; } // SetAddonsConfigRequest sets the addons associated with the cluster. message SetAddonsConfigRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // 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]; // The desired configurations for the various addons available to run in the // cluster. AddonsConfig addons_config = 4; + + // The name (project, location, cluster) of the cluster to set addons. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; } // SetLocationsRequest sets the locations of the cluster. message SetLocationsRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // 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]; // The desired list of Google Compute Engine // [locations](/compute/docs/zones#available) in which the cluster's nodes @@ -1088,26 +1438,44 @@ message SetLocationsRequest { // // This list must always include the cluster's primary zone. repeated string locations = 4; + + // The name (project, location, cluster) of the cluster to set locations. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; } // UpdateMasterRequest updates the master of the cluster. message UpdateMasterRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // 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]; - // The Kubernetes version to change the master to. The only valid value is the - // latest supported version. Use "-" to have the server automatically select - // the latest version. + // The Kubernetes version to change the master to. + // + // Users may specify either explicit versions offered by Kubernetes Engine or + // version aliases, which have the following behavior: + // + // - "latest": picks the highest valid Kubernetes version + // - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + // - "1.X.Y-gke.N": picks an explicit Kubernetes version + // - "-": picks the default Kubernetes version string master_version = 4; + + // The name (project, location, cluster) of the cluster to update. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; } // SetMasterAuthRequest updates the admin password of a cluster. @@ -1130,50 +1498,71 @@ message SetMasterAuthRequest { SET_USERNAME = 3; } - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to upgrade. - string cluster_id = 3; + // 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]; // The exact form of action to be taken on the master auth. Action action = 4; // A description of the update. MasterAuth update = 5; + + // The name (project, location, cluster) of the cluster to set auth. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; } // DeleteClusterRequest deletes a cluster. message DeleteClusterRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to delete. - string cluster_id = 3; + // Deprecated. The name of the cluster to delete. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster) of the cluster to delete. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 4; } // ListClustersRequest lists clusters. message ListClustersRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides, or "-" for all zones. - string zone = 2; + // 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. + // Specified in the format 'projects/*/locations/*'. + // Location "-" matches all zones and all regions. + string parent = 4; } // ListClustersResponse is the result of ListClustersRequest. @@ -1189,42 +1578,63 @@ message ListClustersResponse { // GetOperationRequest gets a single operation. message GetOperationRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The server-assigned `name` of the operation. + // This field has been deprecated and replaced by the name field. + string operation_id = 3 [deprecated = true]; - // The server-assigned `name` of the operation. - string operation_id = 3; + // The name (project, location, operation id) of the operation to get. + // Specified in the format 'projects/*/locations/*/operations/*'. + string name = 5; } // ListOperationsRequest lists operations. message ListOperationsRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; - - // The name of the Google Compute Engine [zone](/compute/docs/zones#available) - // to return operations for, or `-` for all zones. - string zone = 2; + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; + + // Deprecated. The name of the Google Compute Engine + // [zone](/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. + // Specified in the format 'projects/*/locations/*'. + // Location "-" matches all zones and all regions. + string parent = 4; } // CancelOperationRequest cancels a single operation. message CancelOperationRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the operation resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; + + // Deprecated. The server-assigned `name` of the operation. + // This field has been deprecated and replaced by the name field. + string operation_id = 3 [deprecated = true]; - // The server-assigned `name` of the operation. - string operation_id = 3; + // The name (project, location, operation id) of the operation to cancel. + // Specified in the format 'projects/*/locations/*/operations/*'. + string name = 4; } // ListOperationsResponse is the result of ListOperationsRequest. @@ -1237,18 +1647,24 @@ message ListOperationsResponse { repeated string missing_zones = 2; } -// Gets the current Container Engine service configuration. +// Gets the current Kubernetes Engine service configuration. message GetServerConfigRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine [zone](/compute/docs/zones#available) - // to return operations for. - string zone = 2; + // Deprecated. The name of the Google Compute Engine + // [zone](/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 + // Specified in the format 'projects/*/locations/*'. + string name = 4; } -// Container Engine service configuration. +// Kubernetes Engine service configuration. message ServerConfig { // Version of Kubernetes the service deploys by default. string default_cluster_version = 1; @@ -1268,71 +1684,104 @@ message ServerConfig { // CreateNodePoolRequest creates a node pool for a cluster. message CreateNodePoolRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the parent field. + string cluster_id = 3 [deprecated = true]; // The node pool to create. NodePool node_pool = 4; + + // The parent (project, location, cluster id) where the node pool will be + // created. Specified in the format + // 'projects/*/locations/*/clusters/*'. + string parent = 6; } // DeleteNodePoolRequest deletes a node pool for a cluster. message DeleteNodePoolRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to delete. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; - // The name of the node pool to delete. - string node_pool_id = 4; + // The name (project, location, cluster, node pool id) of the node pool to + // delete. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; } // ListNodePoolsRequest lists the node pool(s) for a cluster. message ListNodePoolsRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the parent field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the parent field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the parent field. + string cluster_id = 3 [deprecated = true]; + + // The parent (project, location, cluster id) where the node pools will be + // listed. Specified in the format 'projects/*/locations/*/clusters/*'. + string parent = 5; } // GetNodePoolRequest retrieves a node pool for a cluster. message GetNodePoolRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The name of the node pool. - string node_pool_id = 4; + // Deprecated. The name of the node pool. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; + + // The name (project, location, cluster, node pool id) of the node pool to + // get. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; } // NodePool contains the name and configuration for a cluster's node pool. @@ -1473,65 +1922,92 @@ message DailyMaintenanceWindow { // SetNodePoolManagementRequest sets the node management properties of a node // pool. message SetNodePoolManagementRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to update. - string cluster_id = 3; + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The name of the node pool to update. - string node_pool_id = 4; + // Deprecated. The name of the node pool to update. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; // NodeManagement configuration for the node pool. NodeManagement management = 5; + + // The name (project, location, cluster, node pool id) of the node pool to set + // management properties. Specified in the format + // 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 7; } // SetNodePoolSizeRequest sets the size a node // pool. message SetNodePoolSizeRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to update. - string cluster_id = 3; + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; - // The name of the node pool to update. - string node_pool_id = 4; + // Deprecated. The name of the node pool to update. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; // The desired node count for the pool. int32 node_count = 5; + + // The name (project, location, cluster, node pool id) of the node pool to set + // size. + // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 7; } // RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed // NodePool upgrade. This will be an no-op if the last upgrade successfully // completed. message RollbackNodePoolUpgradeRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to rollback. - string cluster_id = 3; + // Deprecated. The name of the cluster to rollback. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // Deprecated. The name of the node pool to rollback. + // This field has been deprecated and replaced by the name field. + string node_pool_id = 4 [deprecated = true]; - // The name of the node pool to rollback. - string node_pool_id = 4; + // The name (project, location, cluster, node pool id) of the node poll to + // rollback upgrade. + // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 6; } // ListNodePoolsResponse is the result of ListNodePoolsRequest. @@ -1559,78 +2035,109 @@ message NodePoolAutoscaling { // Engine cluster, which will in turn set them for Google Compute Engine // resources used by that cluster message SetLabelsRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // The labels to set for that cluster. map resource_labels = 4; // The fingerprint of the previous set of labels for this resource, // used to detect conflicts. The fingerprint is initially generated by - // Container Engine and changes after every request to modify or update + // 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 // resource to get the latest fingerprint. string label_fingerprint = 5; + + // The name (project, location, cluster id) of the cluster to set labels. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; } // SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for // a cluster. message SetLegacyAbacRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster to update. - string cluster_id = 3; + // Deprecated. The name of the cluster to update. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // Whether ABAC authorization will be enabled in the cluster. bool enabled = 4; + + // The name (project, location, cluster id) of the cluster to set legacy abac. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; } // StartIPRotationRequest creates a new IP for the cluster and then performs // a node upgrade on each node pool to point to the new IP. message StartIPRotationRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster id) of the cluster to start IP + // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; + + // Whether to rotate credentials during IP rotation. + bool rotate_credentials = 7; } // CompleteIPRotationRequest moves the cluster master back into single-IP mode. message CompleteIPRotationRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; + + // The name (project, location, cluster id) of the cluster to complete IP + // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 7; } // AcceleratorConfig represents a Hardware Accelerator request. @@ -1645,20 +2152,27 @@ message AcceleratorConfig { // SetNetworkPolicyRequest enables/disables network policy for a cluster. message SetNetworkPolicyRequest { - // The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). - string project_id = 1; + // This field has been deprecated and replaced by the name field. + string project_id = 1 [deprecated = true]; - // The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + // This field has been deprecated and replaced by the name field. + string zone = 2 [deprecated = true]; - // The name of the cluster. - string cluster_id = 3; + // Deprecated. The name of the cluster. + // This field has been deprecated and replaced by the name field. + string cluster_id = 3 [deprecated = true]; // Configuration options for the NetworkPolicy feature. NetworkPolicy network_policy = 4; + + // The name (project, location, cluster id) of the cluster to set networking + // policy. Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 6; } // SetMaintenancePolicyRequest sets the maintenance policy for a cluster. @@ -1678,4 +2192,23 @@ message SetMaintenancePolicyRequest { // The maintenance policy to be set for the cluster. An empty field // clears the existing maintenance policy. MaintenancePolicy maintenance_policy = 4; + + // The name (project, location, cluster id) of the cluster to set maintenance + // policy. + // Specified in the format 'projects/*/locations/*/clusters/*'. + string name = 5; +} + +// 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](/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](/compute/docs/vpc) to which the cluster is connected. + // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + string subnetwork = 2; } diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index aa36744dab4..2193c679488 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -22,7 +22,7 @@ const path = require('path'); const VERSION = require('../../package.json').version; /** - * Google Container Engine Cluster Manager v1 + * Google Kubernetes Engine Cluster Manager v1 * * @class * @memberof v1 @@ -207,12 +207,18 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. + * @param {string} [request.parent] + * The parent (project and location) where the clusters will be listed. + * Specified in the format 'projects/* /locations/*'. + * Location "-" matches all zones and all regions. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -263,14 +269,20 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to retrieve. + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * @param {string} [request.name] + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -335,17 +347,22 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {Object} request.cluster * A [cluster * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) * * This object should have the same structure as [Cluster]{@link google.container.v1.Cluster} + * @param {string} [request.parent] + * The parent (project and location) where the cluster will be created. + * Specified in the format 'projects/* /locations/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -398,18 +415,24 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * @param {Object} request.update * A description of the update. * * This object should have the same structure as [ClusterUpdate]{@link google.container.v1.ClusterUpdate} + * @param {string} [request.name] + * The name (project, location, cluster) of the cluster to update. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -459,27 +482,43 @@ class ClusterManagerClient { } /** - * Updates the version and/or image type of a specific node pool. + * Updates the version and/or image type for a specific node pool. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * The name of the node pool to upgrade. + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. * @param {string} request.nodeVersion * The Kubernetes version to change the nodes to (typically an - * upgrade). Use `-` to upgrade to the latest version supported by - * the server. + * upgrade). + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version * @param {string} request.imageType * The desired image type for the node pool. + * @param {string} [request.name] + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -533,25 +572,33 @@ class ClusterManagerClient { } /** - * Sets the autoscaling settings of a specific node pool. + * Sets the autoscaling settings for a specific node pool. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * The name of the node pool to upgrade. + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. * @param {Object} request.autoscaling * Autoscaling configuration for the node pool. * * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} + * @param {string} [request.name] + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -607,25 +654,31 @@ class ClusterManagerClient { } /** - * Sets the logging service of a specific cluster. + * Sets the logging service for a specific cluster. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * @param {string} request.loggingService * The logging service the cluster should use to write metrics. * Currently available options: * * * "logging.googleapis.com" - the Google Cloud Logging service * * "none" - no metrics will be exported from the cluster + * @param {string} [request.name] + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -675,25 +728,31 @@ class ClusterManagerClient { } /** - * Sets the monitoring service of a specific cluster. + * Sets the monitoring service for a specific cluster. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * @param {string} request.monitoringService * 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 + * @param {string} [request.name] + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -743,24 +802,30 @@ class ClusterManagerClient { } /** - * Sets the addons of a specific cluster. + * Sets the addons for a specific cluster. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * @param {Object} request.addonsConfig * The desired configurations for the various addons available to run in the * cluster. * * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} + * @param {string} [request.name] + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -810,19 +875,22 @@ class ClusterManagerClient { } /** - * Sets the locations of a specific cluster. + * Sets the locations for a specific cluster. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * @param {string[]} request.locations * The desired list of Google Compute Engine * [locations](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes @@ -831,6 +899,9 @@ class ClusterManagerClient { * whether locations are being added or removed. * * This list must always include the cluster's primary zone. + * @param {string} [request.name] + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -880,23 +951,36 @@ class ClusterManagerClient { } /** - * Updates the master of a specific cluster. + * Updates the master for a specific cluster. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * @param {string} request.masterVersion - * The Kubernetes version to change the master to. The only valid value is the - * latest supported version. Use "-" to have the server automatically select - * the latest version. + * The Kubernetes version to change the master to. + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * @param {string} [request.name] + * The name (project, location, cluster) of the cluster to update. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -947,20 +1031,23 @@ class ClusterManagerClient { /** * Used to set master auth materials. Currently supports :- - * Changing the admin password of a specific cluster. + * Changing the admin password for a specific cluster. * This can be either via password generation or explicitly set the password. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * @param {number} request.action * The exact form of action to be taken on the master auth. * @@ -969,6 +1056,9 @@ class ClusterManagerClient { * A description of the update. * * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} + * @param {string} [request.name] + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1033,14 +1123,20 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to delete. + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * @param {string} [request.name] + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1093,11 +1189,17 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) - * to return operations for, or `-` for all zones. + * 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. + * @param {string} [request.parent] + * The parent (project and location) where the operations will be listed. + * Specified in the format 'projects/* /locations/*'. + * Location "-" matches all zones and all regions. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1148,14 +1250,20 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.operationId - * The server-assigned `name` of the operation. + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @param {string} [request.name] + * The name (project, location, operation id) of the operation to get. + * Specified in the format 'projects/* /locations/* /operations/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1208,13 +1316,19 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.operationId - * The server-assigned `name` of the operation. + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @param {string} [request.name] + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format 'projects/* /locations/* /operations/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1254,16 +1368,21 @@ class ClusterManagerClient { } /** - * Returns configuration info about the Container Engine service. + * Returns configuration info about the Kubernetes Engine service. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) - * to return operations for. + * 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. + * @param {string} [request.name] + * The name (project and location) of the server config to get + * Specified in the format 'projects/* /locations/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1314,14 +1433,20 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @param {string} [request.parent] + * The parent (project, location, cluster id) where the node pools will be + * listed. Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1374,16 +1499,24 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * The name of the node pool. + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * @param {string} [request.name] + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1438,18 +1571,25 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. * @param {Object} request.nodePool * The node pool to create. * * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} + * @param {string} [request.parent] + * The parent (project, location, cluster id) where the node pool will be + * created. Specified in the format + * 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1504,16 +1644,24 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * The name of the node pool to delete. + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * @param {string} [request.name] + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1569,16 +1717,24 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to rollback. + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * The name of the node pool to rollback. + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * @param {string} [request.name] + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1637,20 +1793,28 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to update. + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * The name of the node pool to update. + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. * @param {Object} request.management * NodeManagement configuration for the node pool. * * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} + * @param {string} [request.name] + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1711,23 +1875,29 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. * @param {Object.} request.resourceLabels * The labels to set for that cluster. * @param {string} request.labelFingerprint * The fingerprint of the previous set of labels for this resource, * used to detect conflicts. The fingerprint is initially generated by - * Container Engine and changes after every request to modify or update + * 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 * resource to get the latest fingerprint. + * @param {string} [request.name] + * The name (project, location, cluster id) of the cluster to set labels. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1784,16 +1954,22 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to update. + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. * @param {boolean} request.enabled * Whether ABAC authorization will be enabled in the cluster. + * @param {string} [request.name] + * The name (project, location, cluster id) of the cluster to set legacy abac. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1848,14 +2024,22 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param {string} [request.name] + * The name (project, location, cluster id) of the cluster to start IP + * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {boolean} [request.rotateCredentials] + * Whether to rotate credentials during IP rotation. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1908,14 +2092,20 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param {string} [request.name] + * The name (project, location, cluster id) of the cluster to complete IP + * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -1963,23 +2153,31 @@ class ClusterManagerClient { } /** - * Sets the size of a specific node pool. + * Sets the size for a specific node pool. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster to update. + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * The name of the node pool to update. + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. * @param {number} request.nodeCount * The desired node count for the pool. + * @param {string} [request.name] + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -2036,18 +2234,24 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * The name of the Google Compute Engine + * 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. * @param {string} request.clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. * @param {Object} request.networkPolicy * Configuration options for the NetworkPolicy feature. * * This object should have the same structure as [NetworkPolicy]{@link google.container.v1.NetworkPolicy} + * @param {string} [request.name] + * The name (project, location, cluster id) of the cluster to set networking + * policy. Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. @@ -2115,6 +2319,10 @@ class ClusterManagerClient { * clears the existing maintenance policy. * * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} + * @param {string} [request.name] + * The name (project, location, cluster id) of the cluster to set maintenance + * policy. + * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. diff --git a/packages/google-container/src/v1/cluster_manager_client_config.json b/packages/google-container/src/v1/cluster_manager_client_config.json index 6e59f631f8d..2c653557a2f 100644 --- a/packages/google-container/src/v1/cluster_manager_client_config.json +++ b/packages/google-container/src/v1/cluster_manager_client_config.json @@ -21,152 +21,152 @@ }, "methods": { "ListClusters": { - "timeout_millis": 10000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "GetCluster": { - "timeout_millis": 10000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "CreateCluster": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "UpdateCluster": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "UpdateNodePool": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNodePoolAutoscaling": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLoggingService": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetMonitoringService": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetAddonsConfig": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLocations": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "UpdateMaster": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetMasterAuth": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "DeleteCluster": { - "timeout_millis": 30000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "ListOperations": { - "timeout_millis": 10000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "GetOperation": { - "timeout_millis": 10000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "CancelOperation": { - "timeout_millis": 30000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "GetServerConfig": { - "timeout_millis": 10000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "ListNodePools": { - "timeout_millis": 10000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "GetNodePool": { - "timeout_millis": 10000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "CreateNodePool": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "DeleteNodePool": { - "timeout_millis": 30000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "RollbackNodePoolUpgrade": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNodePoolManagement": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLabels": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLegacyAbac": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "StartIPRotation": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "CompleteIPRotation": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNodePoolSize": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNetworkPolicy": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetMaintenancePolicy": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" } diff --git a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js index 1803093ef25..d1397817010 100644 --- a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js +++ b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js @@ -58,8 +58,18 @@ * 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 four reserved keys: - * "instance-template", "kube-env", "startup-script", and "user-data" + * metadata keys for the project or be one of the reserved keys: + * "cluster-location" + * "cluster-name" + * "cluster-uid" + * "configure-sh" + * "enable-os-login" + * "gci-update-strategy" + * "gci-ensure-gke-docker" + * "instance-template" + * "kube-env" + * "startup-script" + * "user-data" * * 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 @@ -107,13 +117,19 @@ * * This object should have the same structure as [AcceleratorConfig]{@link google.container.v1.AcceleratorConfig} * + * @property {string} diskType + * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') + * + * If unspecified, the default disk type is 'pd-standard' + * * @property {string} minCpuPlatform * 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 - * information, read [how to specify min CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) + * information, read [how to specify min CPU + * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) * * @typedef NodeConfig * @memberof google.container.v1 @@ -140,8 +156,9 @@ const NodeConfig = { * must be non-empty. * * @property {Object} clientCertificateConfig - * Configuration for client certificate authentication on the cluster. If no - * configuration is specified, a client certificate is issued. + * Configuration for client certificate authentication on the cluster. For + * clusters before v1.12, if no configuration is specified, a client + * certificate is issued. * * This object should have the same structure as [ClientCertificateConfig]{@link google.container.v1.ClientCertificateConfig} * @@ -282,7 +299,37 @@ const NetworkPolicyConfig = { }; /** - * Master authorized networks is a Beta feature. + * Configuration options for private clusters. + * + * @property {boolean} enablePrivateNodes + * Whether nodes have internal IP addresses only. If enabled, all nodes are + * given only RFC 1918 private addresses and communicate with the master via + * private networking. + * + * @property {boolean} enablePrivateEndpoint + * Whether the master's internal IP address is used as the cluster endpoint. + * + * @property {string} masterIpv4CidrBlock + * The IP range in CIDR notation to use for the hosted master network. This + * range will be used for assigning internal IP addresses to the master or + * set of masters, as well as the ILB VIP. This range must not overlap with + * any other ranges in use within the cluster's network. + * + * @property {string} privateEndpoint + * Output only. The internal IP address of this cluster's master endpoint. + * + * @property {string} publicEndpoint + * Output only. The external IP address of this cluster's master endpoint. + * + * @typedef PrivateClusterConfig + * @memberof google.container.v1 + * @see [google.container.v1.PrivateClusterConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const PrivateClusterConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** * Configuration options for the master authorized networks feature. Enabled * master authorized networks will disallow all external traffic to access * Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -481,7 +528,7 @@ const IPAllocationPolicy = { }; /** - * A Google Container Engine cluster. + * A Google Kubernetes Engine cluster. * * @property {string} name * The name of this cluster. The name must be unique within this project @@ -604,7 +651,6 @@ const IPAllocationPolicy = { * This object should have the same structure as [IPAllocationPolicy]{@link google.container.v1.IPAllocationPolicy} * * @property {Object} masterAuthorizedNetworksConfig - * Master authorized networks is a Beta feature. * The configuration options for master authorized networks feature. * * This object should have the same structure as [MasterAuthorizedNetworksConfig]{@link google.container.v1.MasterAuthorizedNetworksConfig} @@ -614,6 +660,16 @@ const IPAllocationPolicy = { * * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} * + * @property {Object} networkConfig + * Configuration for cluster networking. + * + * This object should have the same structure as [NetworkConfig]{@link google.container.v1.NetworkConfig} + * + * @property {Object} privateClusterConfig + * Configuration for private cluster. + * + * This object should have the same structure as [PrivateClusterConfig]{@link google.container.v1.PrivateClusterConfig} + * * @property {string} selfLink * [Output only] Server-defined URL for the resource. * @@ -621,6 +677,7 @@ const IPAllocationPolicy = { * [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. * * @property {string} endpoint * [Output only] The IP address of this cluster's master endpoint. @@ -636,13 +693,24 @@ const IPAllocationPolicy = { * be upgraded over time; such upgrades are reflected in * currentMasterVersion and currentNodeVersion. * + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "","-": picks the default Kubernetes version + * * @property {string} currentMasterVersion * [Output only] The current software version of the master endpoint. * * @property {string} currentNodeVersion - * [Output only] 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. + * [Output only] Deprecated, use + * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool) + * 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. * * @property {string} createTime * [Output only] The time the cluster was created, in @@ -679,6 +747,12 @@ const IPAllocationPolicy = { * [Output only] The time the cluster will be automatically * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. * + * @property {string} location + * [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. + * * @typedef Cluster * @memberof google.container.v1 * @see [google.container.v1.Cluster definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -726,7 +800,13 @@ const Cluster = { * The ERROR state indicates the cluster may be unusable. Details * can be found in the `statusMessage` field. */ - ERROR: 5 + ERROR: 5, + + /** + * The DEGRADED state indicates the cluster requires user action to restore + * full functionality. Details can be found in the `statusMessage` field. + */ + DEGRADED: 6 } }; @@ -737,8 +817,16 @@ const Cluster = { * * @property {string} desiredNodeVersion * The Kubernetes version to change the nodes to (typically an - * upgrade). Use `-` to upgrade to the latest version supported by - * the server. + * upgrade). + * + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version * * @property {string} desiredMonitoringService * The monitoring service the cluster should use to write metrics. @@ -780,15 +868,21 @@ const Cluster = { * This list must always include the cluster's primary zone. * * @property {Object} desiredMasterAuthorizedNetworksConfig - * Master authorized networks is a Beta feature. * The desired configuration options for master authorized networks feature. * * This object should have the same structure as [MasterAuthorizedNetworksConfig]{@link google.container.v1.MasterAuthorizedNetworksConfig} * * @property {string} desiredMasterVersion - * The Kubernetes version to change the master to. The only valid value is the - * latest supported version. Use "-" to have the server automatically select - * the latest version. + * The Kubernetes version to change the master to. + * + * Users may specify either explicit versions offered by + * Kubernetes Engine or version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version * * @typedef ClusterUpdate * @memberof google.container.v1 @@ -809,6 +903,7 @@ const ClusterUpdate = { * 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. * * @property {number} operationType * The operation type. @@ -832,6 +927,12 @@ const ClusterUpdate = { * @property {string} targetLink * Server-defined URL for the target of the operation. * + * @property {string} location + * [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. + * * @property {string} startTime * [Output only] The time the operation started, in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. @@ -980,13 +1081,15 @@ const Operation = { * CreateClusterRequest creates a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {Object} cluster * A [cluster @@ -994,6 +1097,10 @@ const Operation = { * * This object should have the same structure as [Cluster]{@link google.container.v1.Cluster} * + * @property {string} parent + * The parent (project and location) where the cluster will be created. + * Specified in the format 'projects/* /locations/*'. + * * @typedef CreateClusterRequest * @memberof google.container.v1 * @see [google.container.v1.CreateClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1006,16 +1113,23 @@ const CreateClusterRequest = { * GetClusterRequest gets the settings of a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to retrieve. + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * + * @property {string} name + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format 'projects/* /locations/* /clusters/*'. * * @typedef GetClusterRequest * @memberof google.container.v1 @@ -1029,22 +1143,29 @@ const GetClusterRequest = { * UpdateClusterRequest updates the settings of a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {Object} update * A description of the update. * * This object should have the same structure as [ClusterUpdate]{@link google.container.v1.ClusterUpdate} * + * @property {string} name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * * @typedef UpdateClusterRequest * @memberof google.container.v1 * @see [google.container.v1.UpdateClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1057,28 +1178,45 @@ const UpdateClusterRequest = { * UpdateNodePoolRequests update a node pool's image and/or version. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * The name of the node pool to upgrade. + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {string} nodeVersion * The Kubernetes version to change the nodes to (typically an - * upgrade). Use `-` to upgrade to the latest version supported by - * the server. + * upgrade). + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version * * @property {string} imageType * The desired image type for the node pool. * + * @property {string} name + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. + * * @typedef UpdateNodePoolRequest * @memberof google.container.v1 * @see [google.container.v1.UpdateNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1091,25 +1229,34 @@ const UpdateNodePoolRequest = { * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * The name of the node pool to upgrade. + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {Object} autoscaling * Autoscaling configuration for the node pool. * * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} * + * @property {string} name + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. + * * @typedef SetNodePoolAutoscalingRequest * @memberof google.container.v1 * @see [google.container.v1.SetNodePoolAutoscalingRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1122,16 +1269,19 @@ const SetNodePoolAutoscalingRequest = { * SetLoggingServiceRequest sets the logging service of a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {string} loggingService * The logging service the cluster should use to write metrics. @@ -1140,6 +1290,10 @@ const SetNodePoolAutoscalingRequest = { * * "logging.googleapis.com" - the Google Cloud Logging service * * "none" - no metrics will be exported from the cluster * + * @property {string} name + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * * @typedef SetLoggingServiceRequest * @memberof google.container.v1 * @see [google.container.v1.SetLoggingServiceRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1152,16 +1306,19 @@ const SetLoggingServiceRequest = { * SetMonitoringServiceRequest sets the monitoring service of a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {string} monitoringService * The monitoring service the cluster should use to write metrics. @@ -1170,6 +1327,10 @@ const SetLoggingServiceRequest = { * * "monitoring.googleapis.com" - the Google Cloud Monitoring service * * "none" - no metrics will be exported from the cluster * + * @property {string} name + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * * @typedef SetMonitoringServiceRequest * @memberof google.container.v1 * @see [google.container.v1.SetMonitoringServiceRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1182,16 +1343,19 @@ const SetMonitoringServiceRequest = { * SetAddonsConfigRequest sets the addons associated with the cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {Object} addonsConfig * The desired configurations for the various addons available to run in the @@ -1199,6 +1363,10 @@ const SetMonitoringServiceRequest = { * * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} * + * @property {string} name + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * * @typedef SetAddonsConfigRequest * @memberof google.container.v1 * @see [google.container.v1.SetAddonsConfigRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1211,16 +1379,19 @@ const SetAddonsConfigRequest = { * SetLocationsRequest sets the locations of the cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {string[]} locations * The desired list of Google Compute Engine @@ -1231,6 +1402,10 @@ const SetAddonsConfigRequest = { * * This list must always include the cluster's primary zone. * + * @property {string} name + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * * @typedef SetLocationsRequest * @memberof google.container.v1 * @see [google.container.v1.SetLocationsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1243,21 +1418,35 @@ const SetLocationsRequest = { * UpdateMasterRequest updates the master of the cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {string} masterVersion - * The Kubernetes version to change the master to. The only valid value is the - * latest supported version. Use "-" to have the server automatically select - * the latest version. + * The Kubernetes version to change the master to. + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * + * @property {string} name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format 'projects/* /locations/* /clusters/*'. * * @typedef UpdateMasterRequest * @memberof google.container.v1 @@ -1271,16 +1460,19 @@ const UpdateMasterRequest = { * SetMasterAuthRequest updates the admin password of a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. * * @property {number} action * The exact form of action to be taken on the master auth. @@ -1292,6 +1484,10 @@ const UpdateMasterRequest = { * * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} * + * @property {string} name + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * * @typedef SetMasterAuthRequest * @memberof google.container.v1 * @see [google.container.v1.SetMasterAuthRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1336,16 +1532,23 @@ const SetMasterAuthRequest = { * DeleteClusterRequest deletes a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to delete. + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * + * @property {string} name + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format 'projects/* /locations/* /clusters/*'. * * @typedef DeleteClusterRequest * @memberof google.container.v1 @@ -1359,13 +1562,20 @@ const DeleteClusterRequest = { * ListClustersRequest lists clusters. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. + * + * @property {string} parent + * The parent (project and location) where the clusters will be listed. + * Specified in the format 'projects/* /locations/*'. + * Location "-" matches all zones and all regions. * * @typedef ListClustersRequest * @memberof google.container.v1 @@ -1400,16 +1610,23 @@ const ListClustersResponse = { * GetOperationRequest gets a single operation. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} operationId - * The server-assigned `name` of the operation. + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * @property {string} name + * The name (project, location, operation id) of the operation to get. + * Specified in the format 'projects/* /locations/* /operations/*'. * * @typedef GetOperationRequest * @memberof google.container.v1 @@ -1423,12 +1640,19 @@ const GetOperationRequest = { * ListOperationsRequest lists operations. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. * * @property {string} zone - * The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) - * to return operations for, or `-` for all zones. + * 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. + * + * @property {string} parent + * The parent (project and location) where the operations will be listed. + * Specified in the format 'projects/* /locations/*'. + * Location "-" matches all zones and all regions. * * @typedef ListOperationsRequest * @memberof google.container.v1 @@ -1442,15 +1666,22 @@ const ListOperationsRequest = { * CancelOperationRequest cancels a single operation. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} operationId - * The server-assigned `name` of the operation. + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * + * @property {string} name + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format 'projects/* /locations/* /operations/*'. * * @typedef CancelOperationRequest * @memberof google.container.v1 @@ -1481,15 +1712,21 @@ const ListOperationsResponse = { }; /** - * Gets the current Container Engine service configuration. + * Gets the current Kubernetes Engine service configuration. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) - * to return operations for. + * 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. + * + * @property {string} name + * The name (project and location) of the server config to get + * Specified in the format 'projects/* /locations/*'. * * @typedef GetServerConfigRequest * @memberof google.container.v1 @@ -1500,7 +1737,7 @@ const GetServerConfigRequest = { }; /** - * Container Engine service configuration. + * Kubernetes Engine service configuration. * * @property {string} defaultClusterVersion * Version of Kubernetes the service deploys by default. @@ -1529,22 +1766,30 @@ const ServerConfig = { * CreateNodePoolRequest creates a node pool for a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. * * @property {Object} nodePool * The node pool to create. * * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} * + * @property {string} parent + * The parent (project, location, cluster id) where the node pool will be + * created. Specified in the format + * 'projects/* /locations/* /clusters/*'. + * * @typedef CreateNodePoolRequest * @memberof google.container.v1 * @see [google.container.v1.CreateNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1557,19 +1802,28 @@ const CreateNodePoolRequest = { * DeleteNodePoolRequest deletes a node pool for a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * The name of the node pool to delete. + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * + * @property {string} name + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. * * @typedef DeleteNodePoolRequest * @memberof google.container.v1 @@ -1583,16 +1837,23 @@ const DeleteNodePoolRequest = { * ListNodePoolsRequest lists the node pool(s) for a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * + * @property {string} parent + * The parent (project, location, cluster id) where the node pools will be + * listed. Specified in the format 'projects/* /locations/* /clusters/*'. * * @typedef ListNodePoolsRequest * @memberof google.container.v1 @@ -1606,19 +1867,28 @@ const ListNodePoolsRequest = { * GetNodePoolRequest retrieves a node pool for a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * The name of the node pool. + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * + * @property {string} name + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. * * @typedef GetNodePoolRequest * @memberof google.container.v1 @@ -1848,25 +2118,34 @@ const DailyMaintenanceWindow = { * pool. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to update. + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * The name of the node pool to update. + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. * * @property {Object} management * NodeManagement configuration for the node pool. * * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} * + * @property {string} name + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. + * * @typedef SetNodePoolManagementRequest * @memberof google.container.v1 * @see [google.container.v1.SetNodePoolManagementRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1880,23 +2159,32 @@ const SetNodePoolManagementRequest = { * pool. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to update. + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * The name of the node pool to update. + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. * * @property {number} nodeCount * The desired node count for the pool. * + * @property {string} name + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. + * * @typedef SetNodePoolSizeRequest * @memberof google.container.v1 * @see [google.container.v1.SetNodePoolSizeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1911,19 +2199,28 @@ const SetNodePoolSizeRequest = { * completed. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to rollback. + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * The name of the node pool to rollback. + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * + * @property {string} name + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. * * @typedef RollbackNodePoolUpgradeRequest * @memberof google.container.v1 @@ -1978,16 +2275,19 @@ const NodePoolAutoscaling = { * resources used by that cluster * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. * * @property {Object.} resourceLabels * The labels to set for that cluster. @@ -1995,11 +2295,15 @@ const NodePoolAutoscaling = { * @property {string} labelFingerprint * The fingerprint of the previous set of labels for this resource, * used to detect conflicts. The fingerprint is initially generated by - * Container Engine and changes after every request to modify or update + * 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 * resource to get the latest fingerprint. * + * @property {string} name + * The name (project, location, cluster id) of the cluster to set labels. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * * @typedef SetLabelsRequest * @memberof google.container.v1 * @see [google.container.v1.SetLabelsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -2013,20 +2317,27 @@ const SetLabelsRequest = { * a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster to update. + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. * * @property {boolean} enabled * Whether ABAC authorization will be enabled in the cluster. * + * @property {string} name + * The name (project, location, cluster id) of the cluster to set legacy abac. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * * @typedef SetLegacyAbacRequest * @memberof google.container.v1 * @see [google.container.v1.SetLegacyAbacRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -2040,16 +2351,26 @@ const SetLegacyAbacRequest = { * a node upgrade on each node pool to point to the new IP. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * @property {string} name + * The name (project, location, cluster id) of the cluster to start IP + * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. + * + * @property {boolean} rotateCredentials + * Whether to rotate credentials during IP rotation. * * @typedef StartIPRotationRequest * @memberof google.container.v1 @@ -2063,16 +2384,23 @@ const StartIPRotationRequest = { * CompleteIPRotationRequest moves the cluster master back into single-IP mode. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * + * @property {string} name + * The name (project, location, cluster id) of the cluster to complete IP + * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. * * @typedef CompleteIPRotationRequest * @memberof google.container.v1 @@ -2104,22 +2432,29 @@ const AcceleratorConfig = { * SetNetworkPolicyRequest enables/disables network policy for a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. * * @property {string} zone - * The name of the Google Compute Engine + * 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. * * @property {string} clusterId - * The name of the cluster. + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. * * @property {Object} networkPolicy * Configuration options for the NetworkPolicy feature. * * This object should have the same structure as [NetworkPolicy]{@link google.container.v1.NetworkPolicy} * + * @property {string} name + * The name (project, location, cluster id) of the cluster to set networking + * policy. Specified in the format 'projects/* /locations/* /clusters/*'. + * * @typedef SetNetworkPolicyRequest * @memberof google.container.v1 * @see [google.container.v1.SetNetworkPolicyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -2149,10 +2484,37 @@ const SetNetworkPolicyRequest = { * * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} * + * @property {string} name + * The name (project, location, cluster id) of the cluster to set maintenance + * policy. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * * @typedef SetMaintenancePolicyRequest * @memberof google.container.v1 * @see [google.container.v1.SetMaintenancePolicyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ const SetMaintenancePolicyRequest = { // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * NetworkConfig reports the relative names of network & subnetwork. + * + * @property {string} network + * Output only. The relative name of the Google Compute Engine + * network(/compute/docs/networks-and-firewalls#networks) to which + * the cluster is connected. + * Example: projects/my-project/global/networks/my-network + * + * @property {string} subnetwork + * 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 + * + * @typedef NetworkConfig + * @memberof google.container.v1 + * @see [google.container.v1.NetworkConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const NetworkConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. }; \ No newline at end of file diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata new file mode 100644 index 00000000000..f26e69af884 --- /dev/null +++ b/packages/google-container/synth.metadata @@ -0,0 +1,27 @@ +{ + "sources": [ + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "5a57f0c13a358b2b15452bf2d67453774a5f6d4f", + "internalRef": "221837528" + } + }, + { + "git": { + "name": "googleapis-private", + "remote": "https://github.com/googleapis/googleapis-private.git", + "sha": "6aa8e1a447bb8d0367150356a28cb4d3f2332641", + "internalRef": "221340946" + } + }, + { + "generator": { + "name": "artman", + "version": "0.16.0", + "dockerImage": "googleapis/artman@sha256:90f9d15e9bad675aeecd586725bce48f5667ffe7d5fc4d1e96d51ff34304815b" + } + } + ] +} \ No newline at end of file diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js index 9330aa7d018..56e3a1d6345 100644 --- a/packages/google-container/test/gapic-v1.js +++ b/packages/google-container/test/gapic-v1.js @@ -124,6 +124,7 @@ describe('ClusterManagerClient', () => { const servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; const currentNodeCount = 178977560; const expireTime = 'expireTime-96179731'; + const location = 'location1901043637'; const expectedResponse = { name: name, description: description, @@ -147,6 +148,7 @@ describe('ClusterManagerClient', () => { servicesIpv4Cidr: servicesIpv4Cidr, currentNodeCount: currentNodeCount, expireTime: expireTime, + location: location, }; // Mock Grpc layer @@ -218,6 +220,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -227,6 +230,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -302,6 +306,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -311,6 +316,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -392,6 +398,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -401,6 +408,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -484,6 +492,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -493,6 +502,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -572,6 +582,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -581,6 +592,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -658,6 +670,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -667,6 +680,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -744,6 +758,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -753,6 +768,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -830,6 +846,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -839,6 +856,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -916,6 +934,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -925,6 +944,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -1004,6 +1024,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -1013,6 +1034,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -1090,6 +1112,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -1099,6 +1122,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -1233,6 +1257,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -1242,6 +1267,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -1585,6 +1611,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -1594,6 +1621,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -1671,6 +1699,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -1680,6 +1709,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -1757,6 +1787,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -1766,6 +1797,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -1845,6 +1877,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -1854,6 +1887,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -1935,6 +1969,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -1944,6 +1979,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -2023,6 +2059,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -2032,6 +2069,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -2107,6 +2145,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -2116,6 +2155,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -2189,6 +2229,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -2198,6 +2239,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -2275,6 +2317,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -2284,6 +2327,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -2363,6 +2407,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -2372,6 +2417,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; @@ -2449,6 +2495,7 @@ describe('ClusterManagerClient', () => { const statusMessage = 'statusMessage-239442758'; const selfLink = 'selfLink-1691268851'; const targetLink = 'targetLink-2084812312'; + const location = 'location1901043637'; const startTime = 'startTime-1573145462'; const endTime = 'endTime1725551537'; const expectedResponse = { @@ -2458,6 +2505,7 @@ describe('ClusterManagerClient', () => { statusMessage: statusMessage, selfLink: selfLink, targetLink: targetLink, + location: location, startTime: startTime, endTime: endTime, }; From 83e402da06e3e518acaf36f5269900bec466665c Mon Sep 17 00:00:00 2001 From: praveenqlogic <44371467+praveenqlogic@users.noreply.github.com> Date: Fri, 23 Nov 2018 01:02:14 +0530 Subject: [PATCH 081/371] docs(samples): updated samples code to use async await (#122) --- .../google-container/samples/quickstart.js | 54 +++++++++---------- 1 file changed, 25 insertions(+), 29 deletions(-) diff --git a/packages/google-container/samples/quickstart.js b/packages/google-container/samples/quickstart.js index 1e8218e282e..1cb292b7f66 100644 --- a/packages/google-container/samples/quickstart.js +++ b/packages/google-container/samples/quickstart.js @@ -14,37 +14,33 @@ */ 'use strict'; +async function main() { + // [START container_quickstart] + const container = require('@google-cloud/container'); -// [START container_quickstart] -const container = require('@google-cloud/container'); + if ( + !process.env.GCLOUD_PROJECT || + !process.env.GOOGLE_APPLICATION_CREDENTIALS + ) { + throw new Error( + 'Usage: GCLOUD_PROJECT= GOOGLE_APPLICATION_CREDENTIALS= node #{$0}' + ); + } -if ( - !process.env.GCLOUD_PROJECT || - !process.env.GOOGLE_APPLICATION_CREDENTIALS -) { - throw new Error( - 'Usage: GCLOUD_PROJECT= GOOGLE_APPLICATION_CREDENTIALS= node #{$0}' - ); -} + const client = new container.v1.ClusterManagerClient({ + // optional auth parameters. + }); -const client = new container.v1.ClusterManagerClient({ - // optional auth parameters. -}); + const projectId = process.env.GCLOUD_PROJECT; + const zone = 'us-central1-a'; + const request = { + projectId: projectId, + zone: zone, + }; -const projectId = process.env.GCLOUD_PROJECT; -const zone = 'us-central1-a'; -const request = { - projectId: projectId, - zone: zone, -}; + const [response] = await client.listClusters(request); + console.log(response); + // [END container_quickstart] +} -client - .listClusters(request) - .then(responses => { - const response = responses[0]; - console.log(response); - }) - .catch(err => { - console.error('ERROR:', err); - }); -// [END container_quickstart] +main().catch(console.error); From edbd2898e3ddfed887604f4452c693a191046237 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Sat, 1 Dec 2018 18:42:34 -0800 Subject: [PATCH 082/371] fix(build): fix system key decryption (#125) --- packages/google-container/.circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml index 6735ebdaaa1..86c63432242 100644 --- a/packages/google-container/.circleci/config.yml +++ b/packages/google-container/.circleci/config.yml @@ -116,7 +116,7 @@ jobs: name: Decrypt credentials. command: | if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then - openssl aes-256-cbc -d -in .circleci/key.json.enc \ + openssl aes-256-cbc -d -md md5 -in .circleci/key.json.enc \ -out .circleci/key.json \ -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" fi @@ -148,7 +148,7 @@ jobs: command: | if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then for encrypted_key in .circleci/*.json.enc; do - openssl aes-256-cbc -d -in $encrypted_key \ + openssl aes-256-cbc -d -md md5 -in $encrypted_key \ -out $(echo $encrypted_key | sed 's/\.enc//') \ -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" done From f7bb3a9717e66b4a9eecd7156cc154b9824fdccf Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 3 Dec 2018 15:38:28 -0800 Subject: [PATCH 083/371] docs: update readme badges (#127) --- packages/google-container/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 45ce86d2b85..13ae4577e8b 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -5,8 +5,7 @@ # [Google Kubernetes Engine: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) [![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) -[![CircleCI](https://img.shields.io/circleci/project/github/googleapis/nodejs-cloud-container.svg?style=flat)](https://circleci.com/gh/googleapis/nodejs-cloud-container) -[![AppVeyor](https://ci.appveyor.com/api/projects/status/github/googleapis/nodejs-cloud-container?branch=master&svg=true)](https://ci.appveyor.com/project/googleapis/nodejs-cloud-container) +[![npm version](https://img.shields.io/npm/v/@google-cloud/container.svg)](https://www.npmjs.org/package/@google-cloud/container) [![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-cloud-container/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-cloud-container) > Node.js idiomatic client for [Kubernetes Engine][product-docs]. @@ -126,3 +125,4 @@ See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/master/L [client-docs]: https://cloud.google.com/nodejs/docs/reference/container/latest/ [product-docs]: https://cloud.google.com/kubernetes-engine/docs/ [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + From 7f9f0af8b341967adb3bc5af1e284b696a48986a Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 4 Dec 2018 09:29:40 -0800 Subject: [PATCH 084/371] chore: update license file (#129) --- packages/google-container/LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/LICENSE b/packages/google-container/LICENSE index 7a4a3ea2424..d6456956733 100644 --- a/packages/google-container/LICENSE +++ b/packages/google-container/LICENSE @@ -199,4 +199,4 @@ distributed under the License is distributed on an "AS IS" BASIS, 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. \ No newline at end of file + limitations under the License. From 1d9cd24e8729e92d20c65a84928046a75792e866 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 5 Dec 2018 13:54:26 -0800 Subject: [PATCH 085/371] chore: clean up usage of prettier and eslint (#131) --- packages/google-container/package.json | 6 +++--- packages/google-container/synth.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 360b8ae8d4a..0531a5d89a6 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -35,10 +35,10 @@ "cover": "nyc --reporter=lcov mocha test/*.js && nyc report", "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", "test-no-cover": "mocha test/*.js", - "lint": "eslint src/ samples/ system-test/ test/ smoke-test/", - "prettier": "prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js smoke-test/*.js", + "lint": "eslint '**/*.js'", "docs": "jsdoc -c .jsdoc.js", - "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000" + "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000", + "fix": "eslint --fix '**/*.js'" }, "dependencies": { "google-gax": "^0.22.0", diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index 354e25f0f50..25b4fd4793d 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -24,4 +24,4 @@ # Node.js specific cleanup subprocess.run(['npm', 'install']) -subprocess.run(['npm', 'run', 'prettier']) +subprocess.run(['npm', 'run', 'fix']) From dd6ef0ec5ca8398939c48a7e874ff04fd5eb1441 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 5 Dec 2018 15:55:46 -0800 Subject: [PATCH 086/371] chore: nyc ignore build/test by default (#132) --- packages/google-container/.nycrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/google-container/.nycrc b/packages/google-container/.nycrc index a1a8e6920ce..feb032400d4 100644 --- a/packages/google-container/.nycrc +++ b/packages/google-container/.nycrc @@ -3,7 +3,8 @@ "exclude": [ "src/*{/*,/**/*}.js", "src/*/v*/*.js", - "test/**/*.js" + "test/**/*.js", + "build/test" ], "watermarks": { "branches": [ From 30c7e95ea91aba2ff37663a3db2963a653520d5c Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Mon, 10 Dec 2018 13:35:27 -0800 Subject: [PATCH 087/371] build: add Kokoro configs for autorelease (#136) * build: add Kokoro configs for autorelease * build: add Kokoro configs for autorelease * chore: remove CircleCI config --- .../google-container/.circleci/config.yml | 179 ------------------ .../google-container/.circleci/key.json.enc | Bin 2368 -> 0 bytes .../.circleci/npm-install-retry.js | 60 ------ 3 files changed, 239 deletions(-) delete mode 100644 packages/google-container/.circleci/config.yml delete mode 100644 packages/google-container/.circleci/key.json.enc delete mode 100755 packages/google-container/.circleci/npm-install-retry.js diff --git a/packages/google-container/.circleci/config.yml b/packages/google-container/.circleci/config.yml deleted file mode 100644 index 86c63432242..00000000000 --- a/packages/google-container/.circleci/config.yml +++ /dev/null @@ -1,179 +0,0 @@ -version: 2 -workflows: - version: 2 - tests: - jobs: &workflow_jobs - - node6: - filters: &all_commits - tags: - only: /.*/ - - node8: - filters: *all_commits - - node10: - filters: *all_commits - - lint: - requires: - - node6 - - node8 - - node10 - filters: *all_commits - - docs: - requires: - - node6 - - node8 - - node10 - filters: *all_commits - - system_tests: - requires: - - lint - - docs - filters: &master_and_releases - branches: - only: master - tags: &releases - only: '/^v[\d.]+$/' - - sample_tests: - requires: - - lint - - docs - filters: *master_and_releases - - publish_npm: - requires: - - system_tests - - sample_tests - filters: - branches: - ignore: /.*/ - tags: *releases - nightly: - triggers: - - schedule: - cron: 0 7 * * * - filters: - branches: - only: master - jobs: *workflow_jobs -jobs: - node6: - docker: - - image: 'node:6' - user: node - steps: &unit_tests_steps - - checkout - - run: &npm_install_and_link - name: Install and link the module - command: |- - mkdir -p /home/node/.npm-global - ./.circleci/npm-install-retry.js - environment: - NPM_CONFIG_PREFIX: /home/node/.npm-global - - run: npm test - node8: - docker: - - image: 'node:8' - user: node - steps: *unit_tests_steps - node10: - docker: - - image: 'node:10' - user: node - steps: *unit_tests_steps - lint: - docker: - - image: 'node:8' - user: node - steps: - - checkout - - run: *npm_install_and_link - - run: &samples_npm_install_and_link - name: Link the module being tested to the samples. - command: | - cd samples/ - npm link ../ - ./../.circleci/npm-install-retry.js - environment: - NPM_CONFIG_PREFIX: /home/node/.npm-global - - run: - name: Run linting. - command: npm run lint - environment: - NPM_CONFIG_PREFIX: /home/node/.npm-global - docs: - docker: - - image: 'node:8' - user: node - steps: - - checkout - - run: *npm_install_and_link - - run: npm run docs - sample_tests: - docker: - - image: 'node:8' - user: node - steps: - - checkout - - run: - name: Decrypt credentials. - command: | - if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then - openssl aes-256-cbc -d -md md5 -in .circleci/key.json.enc \ - -out .circleci/key.json \ - -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" - fi - - run: *npm_install_and_link - - run: *samples_npm_install_and_link - - run: - name: Run sample tests. - command: npm run samples-test - environment: - GCLOUD_PROJECT: long-door-651 - GOOGLE_APPLICATION_CREDENTIALS: /home/node/samples/.circleci/key.json - NPM_CONFIG_PREFIX: /home/node/.npm-global - - run: - name: Remove unencrypted key. - command: | - if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then - rm .circleci/key.json - fi - when: always - working_directory: /home/node/samples/ - system_tests: - docker: - - image: 'node:8' - user: node - steps: - - checkout - - run: - name: Decrypt credentials. - command: | - if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then - for encrypted_key in .circleci/*.json.enc; do - openssl aes-256-cbc -d -md md5 -in $encrypted_key \ - -out $(echo $encrypted_key | sed 's/\.enc//') \ - -k "${SYSTEM_TESTS_ENCRYPTION_KEY}" - done - fi - - run: *npm_install_and_link - - run: - name: Run system tests. - command: npm run system-test - environment: - GCLOUD_PROJECT: long-door-651 - GOOGLE_APPLICATION_CREDENTIALS: /home/node/project/.circleci/key.json - NPM_CONFIG_PREFIX: /home/node/.npm-global - - run: - name: Remove unencrypted key. - command: | - if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then - rm .circleci/*.json - fi - when: always - publish_npm: - docker: - - image: 'node:8' - user: node - steps: - - checkout - - run: ./.circleci/npm-install-retry.js - - run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc - - run: npm publish --access=public diff --git a/packages/google-container/.circleci/key.json.enc b/packages/google-container/.circleci/key.json.enc deleted file mode 100644 index aeebbcf5de1cd7354b8b93ef14670753641f70aa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2368 zcmV-G3BUGJVQh3|WM5y1J9wpaI6d_-01M^PCk^Dw17kW{4#ZFR5f8`4pfciwHQIHD zf@AL6=iqOtdpoXTN$bD}sTrHzi-lK>u|P0yYNC@nrX2*#p^B!F6;bn(Cfw~ zgdiDl6NHjg896=xDSohB0-?T+{#l>mk|k$j7w7(`ht+|C`p3F@rDC$IU?&i*s4L0? zInVuBW<64~EIjn?wTouO_=7c%MsoT0{u6l%h!F}JGU{Csgz>(!s32o~feZk|Q!skm zQdE;Y`rmQa0ES4gosITOrDd_Ysgp)4or4S)VxivQ?{&iFQFDYi(hIRMklsY?V)-YM=beBsyn{iu=K%E3m>uvjeQ=c76kc zqF83|`y7Xi+VH3P5hx3+jINx!m4k_Dor|xAFkP&9dcf4J?x}#8v8G&FYPT+zV^NfL zAk<}vN_XCp`{oO5f)hJjrS~4X!nEHU&w<6Qk#wOsBornv@~`s?Fdc-dHtD5VEyuov zgpwjq+Pu9pG5KBkmKXIDAY?=PAp-bIq99Jb)-Q#~P z5uwi!ly5?ap>uiju&h`duSbb5@tXe|8OryIV@^E0ISKi_V}Hd%oy?^S=%MITA3j+r zWA#bW1lXa#^IY!B*6@IGxhkuA_5(wc5=z>5B&XWcJ~ ze=yCkE&Vd?t|(xL(iZb5pJeiiZWf^<%)B*`wr1D_3mpVX4E#;_L}Sy*L!+j5(#5!~U2S!W7UMg< z))X6w?@iqy4XIT8&7t)HC{{Wgbl30Z46nvZcJ79uhqdCR30l99Hz2J^%6q4qCACN9 znpyM~RQR*-@Krq1%~B9wJau<_eLU~~&~?k`qq;TOW>Vl}Jz6f(wi&vYzZt+pUTTdT z+{RQyQ~X?uF51o#JDAG|L|l%ok#S9i^=}-v7FDN<)U_#X4-IAH5man{VR+byPamwb z1nTe`wpK4u%5v-%bmVu!DiYk4Hx1Ieh|ITw;I{;|rbXTY$kFMMbaSDYb#hz#)exbJ zmtY_ccCatQIGACfUv70<4;G9*IIM^4j6~8PGX+;T4Zs>& zk**gIz-5P`)fdekm?+Fv0UmvD-Tf`P_DUsIJLiB=7|aVRp5VtyM`K9D<&XTXm7xmR zbBdBI6E8OqkqRl&aBeDHAd_@kL6CT<0I{v0hXfO;l?WvBT2Ek;h~nSJN!2t?c~`%kiY0d3&q_hwrg*EZ z=s5YlwTy}->8kt#5L_h=^Eq8K`uV^pv$mQU2cNm+iNR@3t`&c$y$ffgv(ZK+QNzjm zT>4LTaQcE`jn?0Pp=Ijo`8@z-EPXp0JHw%TX+>Nt-!0Z#xGH=N6@lA~e1yPuwn!eRhO4RO?f8bzk`BpJYFozi}uEtphX2U6kPBlZZN zme}pM1+e_{BhMJgvEl4y+zYFl*vns1kqcYZa=y7c>;&Nau~jgkL2>|ec@uzJ*{4PX zf#%jsRJ+2{CVP;B)?eg^@2;0N>fzW^D$!vY*H`pXlozsg1reODEKheUMi4*8Z$nkV zO^3hUVw!i#NV=;cUY{^GOar81r&PV0qEHpmZ-Lgg4Na+-Moh0N<6=r{X+~wcvqHP` zvxlv$kSwt|2VZp};3-_ES08a+HJIKUO{0}cAapo5NQrUN*s(@RjQ%OWXXCkxdetyY zO7v0jdUgRYCSH8x1wUGIZ7nv}K|B5TlOCHA|!5v;J_I5 zRdd6&tU6Oeq*oI}#Nc;yEc^y&VG*PIEq8a;K-m{k@my!k1!sH@#nJh}qFfetoi80UzZOh97 zz;FA#_?=8Af`4`6PXmK##Pb~(0`eIw^V(=9Z;BsrSyTD^-gqF%+ z>Dn6b?ux{5d>qy`@~>umCE^tMZOP&EAMKa+(?mIh`FN>uGVK(#Q2%L;W;kPFq [... NPM ARGS] -// - -let timeout = process.argv[2] || process.env.NPM_INSTALL_TIMEOUT || 60000; -let attempts = process.argv[3] || 3; -let args = process.argv.slice(4); -if (args.length === 0) { - args = ['install']; -} - -(function npm() { - let timer; - args.push('--verbose'); - let proc = spawn('npm', args); - proc.stdout.pipe(process.stdout); - proc.stderr.pipe(process.stderr); - proc.stdin.end(); - proc.stdout.on('data', () => { - setTimer(); - }); - proc.stderr.on('data', () => { - setTimer(); - }); - - // side effect: this also restarts when npm exits with a bad code even if it - // didnt timeout - proc.on('close', (code, signal) => { - clearTimeout(timer); - if (code || signal) { - console.log('[npm-are-you-sleeping] npm exited with code ' + code + ''); - - if (--attempts) { - console.log('[npm-are-you-sleeping] restarting'); - npm(); - } else { - console.log('[npm-are-you-sleeping] i tried lots of times. giving up.'); - throw new Error("npm install fails"); - } - } - }); - - function setTimer() { - clearTimeout(timer); - timer = setTimeout(() => { - console.log('[npm-are-you-sleeping] killing npm with SIGTERM'); - proc.kill('SIGTERM'); - // wait a couple seconds - timer = setTimeout(() => { - // its it's still not closed sigkill - console.log('[npm-are-you-sleeping] killing npm with SIGKILL'); - proc.kill('SIGKILL'); - }, 2000); - }, timeout); - } -})(); From 823f76815faf8de32858baf6fe4d46763132b463 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Tue, 11 Dec 2018 10:24:40 -0800 Subject: [PATCH 088/371] Release v0.3.0 (#141) --- packages/google-container/CHANGELOG.md | 99 +++++++++++++++++++ packages/google-container/package.json | 2 +- .../google-container/samples/package.json | 2 +- 3 files changed, 101 insertions(+), 2 deletions(-) create mode 100644 packages/google-container/CHANGELOG.md diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md new file mode 100644 index 00000000000..13e86d45001 --- /dev/null +++ b/packages/google-container/CHANGELOG.md @@ -0,0 +1,99 @@ +# Changelog + +[npm history][1] + +[1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions + +## v0.3.0 + +12-11-2018 10:08 PST + +### Implementation Changes +**This library no longer support Node.js 4.x and 9.x, use of these out of LTS versions of Node.js with this library might not work in the future.** +- fix: drop support for node.js 4.x and 9.x ([#46](https://github.com/googleapis/nodejs-cloud-container/pull/46)) + +### Dependencies +- fix(deps): update dependency google-gax to ^0.22.0 ([#117](https://github.com/googleapis/nodejs-cloud-container/pull/117)) +- chore(deps): update dependency @google-cloud/nodejs-repo-tools to v3 ([#113](https://github.com/googleapis/nodejs-cloud-container/pull/113)) +- chore(deps): update dependency eslint-plugin-node to v8 ([#102](https://github.com/googleapis/nodejs-cloud-container/pull/102)) +- chore(deps): update dependency eslint-plugin-prettier to v3 ([#86](https://github.com/googleapis/nodejs-cloud-container/pull/86)) +- fix(deps): update dependency google-gax to ^0.20.0 ([#75](https://github.com/googleapis/nodejs-cloud-container/pull/75)) +- Remove unused dependencies ([#72](https://github.com/googleapis/nodejs-cloud-container/pull/72)) +- chore(deps): update dependency nyc to v13 ([#67](https://github.com/googleapis/nodejs-cloud-container/pull/67)) +- fix(deps): update dependency google-gax to ^0.19.0 ([#66](https://github.com/googleapis/nodejs-cloud-container/pull/66)) +- chore(deps): update dependency eslint-config-prettier to v3 ([#65](https://github.com/googleapis/nodejs-cloud-container/pull/65)) +- chore(deps): lock file maintenance ([#62](https://github.com/googleapis/nodejs-cloud-container/pull/62)) +- chore(deps): lock file maintenance ([#61](https://github.com/googleapis/nodejs-cloud-container/pull/61)) +- fix(deps): update dependency google-gax to ^0.18.0 ([#58](https://github.com/googleapis/nodejs-cloud-container/pull/58)) +- chore(deps): lock file maintenance ([#57](https://github.com/googleapis/nodejs-cloud-container/pull/57)) +- chore(deps): lock file maintenance ([#54](https://github.com/googleapis/nodejs-cloud-container/pull/54)) +- chore(deps): update dependency eslint-plugin-node to v7 ([#52](https://github.com/googleapis/nodejs-cloud-container/pull/52)) +- chore(deps): lock file maintenance ([#51](https://github.com/googleapis/nodejs-cloud-container/pull/51)) +- chore(deps): lock file maintenance ([#49](https://github.com/googleapis/nodejs-cloud-container/pull/49)) +- chore(deps): lock file maintenance ([#48](https://github.com/googleapis/nodejs-cloud-container/pull/48)) +- chore(deps): lock file maintenance ([#47](https://github.com/googleapis/nodejs-cloud-container/pull/47)) +- chore(deps): lock file maintenance ([#45](https://github.com/googleapis/nodejs-cloud-container/pull/45)) +- chore(deps): lock file maintenance ([#44](https://github.com/googleapis/nodejs-cloud-container/pull/44)) +- chore(deps): update dependency @google-cloud/nodejs-repo-tools to v2.3.0 ([#41](https://github.com/googleapis/nodejs-cloud-container/pull/41)) + +### Documentation +- docs: update readme badges ([#127](https://github.com/googleapis/nodejs-cloud-container/pull/127)) +- docs(samples): updated samples code to use async await ([#122](https://github.com/googleapis/nodejs-cloud-container/pull/122)) +- fix(docs): README.md using @google-cloud/cloud-container ([#114](https://github.com/googleapis/nodejs-cloud-container/pull/114)) + +### Internal / Testing Changes +- chore: fix publish.sh permission +x ([#138](https://github.com/googleapis/nodejs-cloud-container/pull/138)) +- fix(build): fix Kokoro release script ([#137](https://github.com/googleapis/nodejs-cloud-container/pull/137)) +- build: add Kokoro configs for autorelease ([#136](https://github.com/googleapis/nodejs-cloud-container/pull/136)) +- chore: always nyc report before calling codecov ([#133](https://github.com/googleapis/nodejs-cloud-container/pull/133)) +- chore: nyc ignore build/test by default ([#132](https://github.com/googleapis/nodejs-cloud-container/pull/132)) +- chore: clean up usage of prettier and eslint ([#131](https://github.com/googleapis/nodejs-cloud-container/pull/131)) +- chore: update license file ([#129](https://github.com/googleapis/nodejs-cloud-container/pull/129)) +- fix(build): fix system key decryption ([#125](https://github.com/googleapis/nodejs-cloud-container/pull/125)) +- chore: add synth.metadata +- chore: update eslintignore config ([#116](https://github.com/googleapis/nodejs-cloud-container/pull/116)) +- Update synth.py yaml path ([#115](https://github.com/googleapis/nodejs-cloud-container/pull/115)) +- chore: drop contributors from multiple places ([#112](https://github.com/googleapis/nodejs-cloud-container/pull/112)) +- chore: use latest npm on Windows ([#111](https://github.com/googleapis/nodejs-cloud-container/pull/111)) +- chore: update CircleCI config ([#109](https://github.com/googleapis/nodejs-cloud-container/pull/109)) +- chore: include build in eslintignore ([#106](https://github.com/googleapis/nodejs-cloud-container/pull/106)) +- chore: update issue templates ([#100](https://github.com/googleapis/nodejs-cloud-container/pull/100)) +- chore: remove old issue template ([#98](https://github.com/googleapis/nodejs-cloud-container/pull/98)) +- build: run tests on node11 ([#97](https://github.com/googleapis/nodejs-cloud-container/pull/97)) +- chores(build): do not collect sponge.xml from windows builds ([#96](https://github.com/googleapis/nodejs-cloud-container/pull/96)) +- chores(build): run codecov on continuous builds ([#95](https://github.com/googleapis/nodejs-cloud-container/pull/95)) +- chore: update new issue template ([#94](https://github.com/googleapis/nodejs-cloud-container/pull/94)) +- build: fix codecov uploading on Kokoro ([#89](https://github.com/googleapis/nodejs-cloud-container/pull/89)) +- Update kokoro config ([#87](https://github.com/googleapis/nodejs-cloud-container/pull/87)) +- Update kokoro config ([#83](https://github.com/googleapis/nodejs-cloud-container/pull/83)) +- Update CI config ([#82](https://github.com/googleapis/nodejs-cloud-container/pull/82)) +- test: remove appveyor config ([#81](https://github.com/googleapis/nodejs-cloud-container/pull/81)) +- Update the CI config ([#80](https://github.com/googleapis/nodejs-cloud-container/pull/80)) +- Enable prefer-const in the eslint config ([#78](https://github.com/googleapis/nodejs-cloud-container/pull/78)) +- Enable no-var in eslint ([#77](https://github.com/googleapis/nodejs-cloud-container/pull/77)) +- Switch to let/const ([#76](https://github.com/googleapis/nodejs-cloud-container/pull/76)) +- Update CI config ([#74](https://github.com/googleapis/nodejs-cloud-container/pull/74)) +- Update CI Config ([#73](https://github.com/googleapis/nodejs-cloud-container/pull/73)) +- Retry npm install in CI ([#71](https://github.com/googleapis/nodejs-cloud-container/pull/71)) +- add templates to synth.py ([#68](https://github.com/googleapis/nodejs-cloud-container/pull/68)) +- chore: do not use npm ci ([#64](https://github.com/googleapis/nodejs-cloud-container/pull/64)) +- chore: ignore package-lock.json ([#63](https://github.com/googleapis/nodejs-cloud-container/pull/63)) +- chore: update renovate config ([#60](https://github.com/googleapis/nodejs-cloud-container/pull/60)) +- remove that whitespace ([#59](https://github.com/googleapis/nodejs-cloud-container/pull/59)) +- chore: move mocha options to mocha.opts ([#55](https://github.com/googleapis/nodejs-cloud-container/pull/55)) +- chore: require node 8 for samples ([#56](https://github.com/googleapis/nodejs-cloud-container/pull/56)) +- test: use strictEqual in tests ([#53](https://github.com/googleapis/nodejs-cloud-container/pull/53)) +- Check in synth script and update gax dependency ([#43](https://github.com/googleapis/nodejs-cloud-container/pull/43)) +- fix: update to the latest eslint ([#40](https://github.com/googleapis/nodejs-cloud-container/pull/40)) +- Configure Renovate ([#33](https://github.com/googleapis/nodejs-cloud-container/pull/33)) +- refactor: drop repo-tool as an exec wrapper ([#39](https://github.com/googleapis/nodejs-cloud-container/pull/39)) +- fix: update linking for samples ([#36](https://github.com/googleapis/nodejs-cloud-container/pull/36)) +- chore: update sample lockfiles ([#38](https://github.com/googleapis/nodejs-cloud-container/pull/38)) +- Update nyc to the latest version 🚀 ([#30](https://github.com/googleapis/nodejs-cloud-container/pull/30)) +- chore: lock files maintenance ([#29](https://github.com/googleapis/nodejs-cloud-container/pull/29)) +- chore: the ultimate fix for repo-tools EPERM ([#28](https://github.com/googleapis/nodejs-cloud-container/pull/28)) +- chore: timeout for system test ([#27](https://github.com/googleapis/nodejs-cloud-container/pull/27)) +- chore: lock files maintenance ([#26](https://github.com/googleapis/nodejs-cloud-container/pull/26)) +- chore: test on node10 ([#25](https://github.com/googleapis/nodejs-cloud-container/pull/25)) +- chore: lock files maintenance ([#24](https://github.com/googleapis/nodejs-cloud-container/pull/24)) + diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 0531a5d89a6..c6f79db7332 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "0.2.0", + "version": "0.3.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index c0268d60425..fd53c9f95f6 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -11,7 +11,7 @@ "test": "echo no sample tests 👻" }, "dependencies": { - "@google-cloud/container": "^0.2.0" + "@google-cloud/container": "^0.3.0" }, "devDependencies": { "@google-cloud/nodejs-repo-tools": "^3.0.0" From 24e28dbdb32212320617b15de33b5c794d3e93f3 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 11 Dec 2018 10:37:34 -0800 Subject: [PATCH 089/371] chore: update nyc and eslint configs (#140) --- packages/google-container/.eslintignore | 1 + packages/google-container/.nycrc | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/google-container/.eslintignore b/packages/google-container/.eslintignore index 2f642cb6044..f0c7aead4bf 100644 --- a/packages/google-container/.eslintignore +++ b/packages/google-container/.eslintignore @@ -1,3 +1,4 @@ **/node_modules src/**/doc/* build/ +docs/ diff --git a/packages/google-container/.nycrc b/packages/google-container/.nycrc index feb032400d4..88b001cb587 100644 --- a/packages/google-container/.nycrc +++ b/packages/google-container/.nycrc @@ -1,5 +1,6 @@ { "report-dir": "./.coverage", + "reporter": "lcov", "exclude": [ "src/*{/*,/**/*}.js", "src/*/v*/*.js", From 01f8a8c1b872222d89b1de57f5e28b720d05a414 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 17 Dec 2018 12:12:48 -0800 Subject: [PATCH 090/371] test: add sample tests (#143) --- packages/google-container/samples/.eslintrc.yml | 1 + packages/google-container/samples/package.json | 9 +++++++-- packages/google-container/samples/quickstart.js | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/samples/.eslintrc.yml b/packages/google-container/samples/.eslintrc.yml index 282535f55f6..0aa37ac630e 100644 --- a/packages/google-container/samples/.eslintrc.yml +++ b/packages/google-container/samples/.eslintrc.yml @@ -1,3 +1,4 @@ --- rules: no-console: off + node/no-missing-require: off diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index fd53c9f95f6..9a7b5ed8d78 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -7,13 +7,18 @@ }, "repository": "googleapis/nodejs-cloud-container", "private": true, + "files": [ + "*.js" + ], "scripts": { - "test": "echo no sample tests 👻" + "test": "mocha system-test --timeout 10000" }, "dependencies": { "@google-cloud/container": "^0.3.0" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "^3.0.0" + "chai": "^4.2.0", + "execa": "^1.0.0", + "mocha": "^5.2.0" } } diff --git a/packages/google-container/samples/quickstart.js b/packages/google-container/samples/quickstart.js index 1cb292b7f66..36e995f4a2c 100644 --- a/packages/google-container/samples/quickstart.js +++ b/packages/google-container/samples/quickstart.js @@ -39,6 +39,7 @@ async function main() { }; const [response] = await client.listClusters(request); + console.log('Clusters:'); console.log(response); // [END container_quickstart] } From 20d708cdb4b9b1997f37e1b52e0153b357d7cdfc Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Mon, 14 Jan 2019 12:02:49 -0800 Subject: [PATCH 091/371] fix(deps): update dependency google-gax to ^0.23.0 (#146) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index c6f79db7332..fa1b62b998a 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -41,7 +41,7 @@ "fix": "eslint --fix '**/*.js'" }, "dependencies": { - "google-gax": "^0.22.0", + "google-gax": "^0.23.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From 84d95e896b32750663662adb48c66446e3c9466b Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Tue, 15 Jan 2019 11:21:59 -0800 Subject: [PATCH 092/371] build: check broken links in generated docs (#144) * build: check dead links on Kokoro * recursive crawl local links * fix links * fix improperly formatted link * ignore iam scopes * fix link --- packages/google-container/.jsdoc.js | 2 +- packages/google-container/package.json | 2 +- packages/google-container/src/index.js | 7 +++++-- .../src/v1/doc/google/container/v1/doc_cluster_service.js | 6 +++--- packages/google-container/synth.py | 8 ++++++++ 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index 6f0df6e4925..fcf43305bea 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -20,7 +20,7 @@ module.exports = { opts: { readme: './README.md', package: './package.json', - template: './node_modules/ink-docstrap/template', + template: './node_modules/jsdoc-baseline', recurse: true, verbose: true, destination: './docs/' diff --git a/packages/google-container/package.json b/packages/google-container/package.json index fa1b62b998a..ac01faadbc2 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -51,7 +51,7 @@ "eslint-config-prettier": "^3.0.0", "eslint-plugin-node": "^8.0.0", "eslint-plugin-prettier": "^3.0.0", - "ink-docstrap": "^1.3.2", + "jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git", "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.5.5", "mocha": "^5.0.0", diff --git a/packages/google-container/src/index.js b/packages/google-container/src/index.js index 26e472ff21a..040e142a5e9 100644 --- a/packages/google-container/src/index.js +++ b/packages/google-container/src/index.js @@ -19,10 +19,13 @@ * @namespace google.cloud */ /** - * @namespace google.cloud.container + * @namespace google.container */ /** - * @namespace google.cloud.container.v1 + * @namespace google.container.v1 + */ +/** + * @namespace google.protobuf */ 'use strict'; diff --git a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js index d1397817010..6b92044cbaa 100644 --- a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js +++ b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js @@ -543,7 +543,7 @@ const IPAllocationPolicy = { * * @property {number} initialNodeCount * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine resource quota + * Compute Engine [resource quota](https://cloud.google.com/compute/docs/resource-quotas) * is sufficient for this number of instances. You must also have available * firewall and routes quota. * For requests, this field should only be used in lieu of a @@ -707,7 +707,7 @@ const IPAllocationPolicy = { * * @property {string} currentNodeVersion * [Output only] Deprecated, use - * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool) + * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools#resource-nodepool) * 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. @@ -1916,7 +1916,7 @@ const GetNodePoolRequest = { * * @property {number} initialNodeCount * The initial node count for the pool. You must ensure that your - * Compute Engine resource quota + * Compute Engine [resource quota](https://cloud.google.com/compute/docs/resource-quotas) * is sufficient for this number of instances. You must also have available * firewall and routes quota. * diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index 25b4fd4793d..e9a9db36b2a 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -22,6 +22,14 @@ templates = common_templates.node_library() s.copy(templates) +s.replace("src/v1/doc/google/container/v1/doc_cluster_service.js", + "resource quota<\/a>", + r"[resource quota](https://cloud.google.com/compute/docs/resource-quotas)") + +s.replace("src/v1/doc/google/container/v1/doc_cluster_service.js", + "https:\/\/cloud\.google\.com\/kubernetes-engine\/docs\/reference\/rest\/v1\/projects\.zones\.clusters\.nodePool", + "https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools#resource-nodepool") + # Node.js specific cleanup subprocess.run(['npm', 'install']) subprocess.run(['npm', 'run', 'fix']) From 3e9f078d47b06014900e4308684e3e955117d68f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Fri, 25 Jan 2019 10:00:54 -0800 Subject: [PATCH 093/371] chore: update the date in the copyright header (#150) --- .../smoke-test/cluster_manager_smoke_test.js | 2 +- .../src/v1/cluster_manager_client.js | 2 +- .../container/v1/doc_cluster_service.js | 2 +- .../src/v1/doc/google/protobuf/doc_empty.js | 2 +- packages/google-container/src/v1/index.js | 2 +- packages/google-container/synth.metadata | 36 ++++++++++++------- packages/google-container/test/gapic-v1.js | 2 +- 7 files changed, 30 insertions(+), 18 deletions(-) diff --git a/packages/google-container/smoke-test/cluster_manager_smoke_test.js b/packages/google-container/smoke-test/cluster_manager_smoke_test.js index 5ad07321b8c..c406795c09c 100644 --- a/packages/google-container/smoke-test/cluster_manager_smoke_test.js +++ b/packages/google-container/smoke-test/cluster_manager_smoke_test.js @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index 2193c679488..16a858d25e2 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js index 6b92044cbaa..127e5df9542 100644 --- a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js +++ b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js b/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js index b1d6b5e32a9..0b446dd9ce4 100644 --- a/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js +++ b/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/src/v1/index.js b/packages/google-container/src/v1/index.js index 32340c91a0a..31e3c6ee7ac 100644 --- a/packages/google-container/src/v1/index.js +++ b/packages/google-container/src/v1/index.js @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index f26e69af884..a36013f3537 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,26 +1,38 @@ { + "updateTime": "2019-01-25T12:19:43.608056Z", "sources": [ + { + "generator": { + "name": "artman", + "version": "0.16.7", + "dockerImage": "googleapis/artman@sha256:d6c8ced606eb49973ca95d2af7c55a681acc042db0f87d135968349e7bf6dd80" + } + }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5a57f0c13a358b2b15452bf2d67453774a5f6d4f", - "internalRef": "221837528" + "sha": "9aac88a22468b1e291937f55fa1ef237adfdc63e", + "internalRef": "230568136" } }, { - "git": { - "name": "googleapis-private", - "remote": "https://github.com/googleapis/googleapis-private.git", - "sha": "6aa8e1a447bb8d0367150356a28cb4d3f2332641", - "internalRef": "221340946" + "template": { + "name": "node_library", + "origin": "synthtool.gcp", + "version": "2019.1.16" } - }, + } + ], + "destinations": [ { - "generator": { - "name": "artman", - "version": "0.16.0", - "dockerImage": "googleapis/artman@sha256:90f9d15e9bad675aeecd586725bce48f5667ffe7d5fc4d1e96d51ff34304815b" + "client": { + "source": "googleapis", + "apiName": "container", + "apiVersion": "v1", + "language": "nodejs", + "generator": "gapic", + "config": "google/container/artman_container_v1.yaml" } } ] diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js index 56e3a1d6345..836693812a3 100644 --- a/packages/google-container/test/gapic-v1.js +++ b/packages/google-container/test/gapic-v1.js @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC +// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From ea5bd105d5170d66dadbba0abe13b250468a687f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Fri, 25 Jan 2019 22:15:11 -0800 Subject: [PATCH 094/371] fix(deps): update dependency google-gax to ^0.24.0 (#149) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index ac01faadbc2..dc979b48bc0 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -41,7 +41,7 @@ "fix": "eslint --fix '**/*.js'" }, "dependencies": { - "google-gax": "^0.23.0", + "google-gax": "^0.24.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From ccbba3250f0c35ce21af5d3ab0dd3d008cbc2339 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Sat, 26 Jan 2019 10:39:43 -0800 Subject: [PATCH 095/371] chore(deps): update dependency eslint-config-prettier to v4 (#151) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index dc979b48bc0..77cef1cacfe 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -48,7 +48,7 @@ "@google-cloud/nodejs-repo-tools": "^3.0.0", "codecov": "^3.0.0", "eslint": "^5.0.1", - "eslint-config-prettier": "^3.0.0", + "eslint-config-prettier": "^4.0.0", "eslint-plugin-node": "^8.0.0", "eslint-plugin-prettier": "^3.0.0", "jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git", From d83dbebbc8d295ab2d9c85e1bd246212ddb72568 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Wed, 30 Jan 2019 12:18:43 -0800 Subject: [PATCH 096/371] fix(deps): update dependency google-gax to ^0.25.0 (#152) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 77cef1cacfe..467b9fb2303 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -41,7 +41,7 @@ "fix": "eslint --fix '**/*.js'" }, "dependencies": { - "google-gax": "^0.24.0", + "google-gax": "^0.25.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From e5629a625e883c5cfbf57f2025ca2c66c64d21e0 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Thu, 7 Feb 2019 15:31:53 -0800 Subject: [PATCH 097/371] chore: move CONTRIBUTING.md to root (#155) --- packages/google-container/CONTRIBUTING.md | 57 +++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 packages/google-container/CONTRIBUTING.md diff --git a/packages/google-container/CONTRIBUTING.md b/packages/google-container/CONTRIBUTING.md new file mode 100644 index 00000000000..b958f235007 --- /dev/null +++ b/packages/google-container/CONTRIBUTING.md @@ -0,0 +1,57 @@ +# How to become a contributor and submit your own code + +**Table of contents** + +* [Contributor License Agreements](#contributor-license-agreements) +* [Contributing a patch](#contributing-a-patch) +* [Running the tests](#running-the-tests) +* [Releasing the library](#releasing-the-library) + +## Contributor License Agreements + +We'd love to accept your sample apps and patches! Before we can take them, we +have to jump a couple of legal hurdles. + +Please fill out either the individual or corporate Contributor License Agreement +(CLA). + + * If you are an individual writing original source code and you're sure you + own the intellectual property, then you'll need to sign an [individual CLA] + (https://developers.google.com/open-source/cla/individual). + * If you work for a company that wants to allow you to contribute your work, + then you'll need to sign a [corporate CLA] + (https://developers.google.com/open-source/cla/corporate). + +Follow either of the two links above to access the appropriate CLA and +instructions for how to sign and return it. Once we receive it, we'll be able to +accept your pull requests. + +## Contributing A Patch + +1. Submit an issue describing your proposed change to the repo in question. +1. The repo owner will respond to your issue promptly. +1. If your proposed change is accepted, and you haven't already done so, sign a + Contributor License Agreement (see details above). +1. Fork the desired repo, develop and test your code changes. +1. Ensure that your code adheres to the existing style in the code to which + you are contributing. +1. Ensure that your code has an appropriate set of tests which all pass. +1. Submit a pull request. + +## Running the tests + +1. [Prepare your environment for Node.js setup][setup]. + +1. Install dependencies: + + npm install + +1. Run the tests: + + npm test + +1. Lint (and maybe fix) any changes: + + npm run fix + +[setup]: https://cloud.google.com/nodejs/docs/setup From e024d76142aeba7f1be42fe8f16a74ca0146951b Mon Sep 17 00:00:00 2001 From: Dave Gramlich Date: Thu, 7 Feb 2019 18:46:08 -0800 Subject: [PATCH 098/371] docs: update contributing path in README (#156) --- packages/google-container/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 13ae4577e8b..221a1c7dc34 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -114,7 +114,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] ## Contributing -Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-cloud-container/blob/master/.github/CONTRIBUTING.md). +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-cloud-container/blob/master/CONTRIBUTING.md). ## License From ee712e065f70e477cd8d2059b7855dfc5c1228e2 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sun, 10 Feb 2019 20:52:57 -0800 Subject: [PATCH 099/371] build: create docs test npm scripts (#158) --- packages/google-container/package.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 467b9fb2303..2f8200e8e90 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -38,7 +38,9 @@ "lint": "eslint '**/*.js'", "docs": "jsdoc -c .jsdoc.js", "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000", - "fix": "eslint --fix '**/*.js'" + "fix": "eslint --fix '**/*.js'", + "docs-test": "blcl docs -r --exclude www.googleapis.com", + "predocs-test": "npm run docs" }, "dependencies": { "google-gax": "^0.25.0", @@ -57,6 +59,7 @@ "mocha": "^5.0.0", "nyc": "^13.0.0", "power-assert": "^1.4.4", - "prettier": "^1.9.2" + "prettier": "^1.9.2", + "broken-link-checker-local": "^0.2.0" } } From eb528d15e7e8067a77828e15a4a1f16d9f114d73 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 14 Feb 2019 08:48:16 -0800 Subject: [PATCH 100/371] docs: update links in contrib guide (#161) --- packages/google-container/CONTRIBUTING.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/google-container/CONTRIBUTING.md b/packages/google-container/CONTRIBUTING.md index b958f235007..78aaa61b269 100644 --- a/packages/google-container/CONTRIBUTING.md +++ b/packages/google-container/CONTRIBUTING.md @@ -16,11 +16,9 @@ Please fill out either the individual or corporate Contributor License Agreement (CLA). * If you are an individual writing original source code and you're sure you - own the intellectual property, then you'll need to sign an [individual CLA] - (https://developers.google.com/open-source/cla/individual). + own the intellectual property, then you'll need to sign an [individual CLA](https://developers.google.com/open-source/cla/individual). * If you work for a company that wants to allow you to contribute your work, - then you'll need to sign a [corporate CLA] - (https://developers.google.com/open-source/cla/corporate). + then you'll need to sign a [corporate CLA](https://developers.google.com/open-source/cla/corporate). Follow either of the two links above to access the appropriate CLA and instructions for how to sign and return it. Once we receive it, we'll be able to From 12ef2467ecad2e54020e11ceaeea3cbc57c759e5 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 14 Feb 2019 12:09:26 -0800 Subject: [PATCH 101/371] build: use linkinator for docs test (#160) --- packages/google-container/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2f8200e8e90..9d5e7c9b017 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -39,7 +39,7 @@ "docs": "jsdoc -c .jsdoc.js", "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000", "fix": "eslint --fix '**/*.js'", - "docs-test": "blcl docs -r --exclude www.googleapis.com", + "docs-test": "linkinator docs -r --skip www.googleapis.com", "predocs-test": "npm run docs" }, "dependencies": { @@ -60,6 +60,6 @@ "nyc": "^13.0.0", "power-assert": "^1.4.4", "prettier": "^1.9.2", - "broken-link-checker-local": "^0.2.0" + "linkinator": "^1.1.2" } } From 01d9fc39f533d3e9c481e369ade23440671ed9f0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Thu, 14 Feb 2019 12:09:54 -0800 Subject: [PATCH 102/371] fix: throw on invalid credentials (#159) --- .../google-container/src/v1/cluster_manager_client.js | 4 ++++ packages/google-container/synth.metadata | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index 16a858d25e2..136e66eded3 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -157,6 +157,10 @@ class ClusterManagerClient { function() { const args = Array.prototype.slice.call(arguments, 0); return stub[methodName].apply(stub, args); + }, + err => + function() { + throw err; } ), defaults[methodName], diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index a36013f3537..40b7ba4b0c9 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-01-25T12:19:43.608056Z", + "updateTime": "2019-02-13T12:10:59.618585Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.7", - "dockerImage": "googleapis/artman@sha256:d6c8ced606eb49973ca95d2af7c55a681acc042db0f87d135968349e7bf6dd80" + "version": "0.16.13", + "dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "9aac88a22468b1e291937f55fa1ef237adfdc63e", - "internalRef": "230568136" + "sha": "ca61898878f0926dd9dcc68ba90764f17133efe4", + "internalRef": "233680013" } }, { From 2aa79b60d5ece9e0f4ecb66b3fbebd768a2832c2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Tue, 19 Feb 2019 10:04:04 -0800 Subject: [PATCH 103/371] chore(deps): update dependency mocha to v6 chore(deps): update dependency mocha to v6 This PR contains the following updates: | Package | Type | Update | Change | References | |---|---|---|---|---| | mocha | devDependencies | major | `^5.2.0` -> `^6.0.0` | [homepage](https://mochajs.org/), [source](https://togithub.com/mochajs/mocha) | --- ### Release Notes
mochajs/mocha ### [`v6.0.0`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#​600--2019-02-18) [Compare Source](https://togithub.com/mochajs/mocha/compare/v5.2.0...v6.0.0) #### :tada: Enhancements - [#​3726](https://togithub.com/mochajs/mocha/issues/3726): Add ability to unload files from `require` cache ([**@​plroebuck**](https://togithub.com/plroebuck)) #### :bug: Fixes - [#​3737](https://togithub.com/mochajs/mocha/issues/3737): Fix falsy values from options globals ([**@​plroebuck**](https://togithub.com/plroebuck)) - [#​3707](https://togithub.com/mochajs/mocha/issues/3707): Fix encapsulation issues for `Suite#_onlyTests` and `Suite#_onlySuites` ([**@​vkarpov15**](https://togithub.com/vkarpov15)) - [#​3711](https://togithub.com/mochajs/mocha/issues/3711): Fix diagnostic messages dealing with plurality and markup of output ([**@​plroebuck**](https://togithub.com/plroebuck)) - [#​3723](https://togithub.com/mochajs/mocha/issues/3723): Fix "reporter-option" to allow comma-separated options ([**@​boneskull**](https://togithub.com/boneskull)) - [#​3722](https://togithub.com/mochajs/mocha/issues/3722): Fix code quality and performance of `lookupFiles` and `files` ([**@​plroebuck**](https://togithub.com/plroebuck)) - [#​3650](https://togithub.com/mochajs/mocha/issues/3650), [#​3654](https://togithub.com/mochajs/mocha/issues/3654): Fix noisy error message when no files found ([**@​craigtaub**](https://togithub.com/craigtaub)) - [#​3632](https://togithub.com/mochajs/mocha/issues/3632): Tests having an empty title are no longer confused with the "root" suite ([**@​juergba**](https://togithub.com/juergba)) - [#​3666](https://togithub.com/mochajs/mocha/issues/3666): Fix missing error codes ([**@​vkarpov15**](https://togithub.com/vkarpov15)) - [#​3684](https://togithub.com/mochajs/mocha/issues/3684): Fix exiting problem in Node.js v11.7.0+ ([**@​addaleax**](https://togithub.com/addaleax)) - [#​3691](https://togithub.com/mochajs/mocha/issues/3691): Fix `--delay` (and other boolean options) not working in all cases ([**@​boneskull**](https://togithub.com/boneskull)) - [#​3692](https://togithub.com/mochajs/mocha/issues/3692): Fix invalid command-line argument usage not causing actual errors ([**@​boneskull**](https://togithub.com/boneskull)) - [#​3698](https://togithub.com/mochajs/mocha/issues/3698), [#​3699](https://togithub.com/mochajs/mocha/issues/3699): Fix debug-related Node.js options not working in all cases ([**@​boneskull**](https://togithub.com/boneskull)) - [#​3700](https://togithub.com/mochajs/mocha/issues/3700): Growl notifications now show the correct number of tests run ([**@​outsideris**](https://togithub.com/outsideris)) - [#​3686](https://togithub.com/mochajs/mocha/issues/3686): Avoid potential ReDoS when diffing large objects ([**@​cyjake**](https://togithub.com/cyjake)) - [#​3715](https://togithub.com/mochajs/mocha/issues/3715): Fix incorrect order of emitted events when used programmatically ([**@​boneskull**](https://togithub.com/boneskull)) - [#​3706](https://togithub.com/mochajs/mocha/issues/3706): Fix regression wherein `--reporter-option`/`--reporter-options` did not support comma-separated key/value pairs ([**@​boneskull**](https://togithub.com/boneskull)) #### :book: Documentation - [#​3652](https://togithub.com/mochajs/mocha/issues/3652): Switch from Jekyll to Eleventy ([**@​Munter**](https://togithub.com/Munter)) #### :nut_and_bolt: Other - [#​3677](https://togithub.com/mochajs/mocha/issues/3677): Add error objects for createUnsupportedError and createInvalidExceptionError ([**@​boneskull**](https://togithub.com/boneskull)) - [#​3733](https://togithub.com/mochajs/mocha/issues/3733): Removed unnecessary processing in post-processing hook ([**@​wanseob**](https://togithub.com/wanseob)) - [#​3730](https://togithub.com/mochajs/mocha/issues/3730): Update nyc to latest version ([**@​coreyfarrell**](https://togithub.com/coreyfarrell)) - [#​3648](https://togithub.com/mochajs/mocha/issues/3648), [#​3680](https://togithub.com/mochajs/mocha/issues/3680): Fixes to support latest versions of [unexpected](https://npm.im/unexpected) and [unexpected-sinon](https://npm.im/unexpected-sinon) ([**@​sunesimonsen**](https://togithub.com/sunesimonsen)) - [#​3638](https://togithub.com/mochajs/mocha/issues/3638): Add meta tag to site ([**@​MartijnCuppens**](https://togithub.com/MartijnCuppens)) - [#​3653](https://togithub.com/mochajs/mocha/issues/3653): Fix parts of test suite failing to run on Windows ([**@​boneskull**](https://togithub.com/boneskull))
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is stale, or if you modify the PR title to begin with "`rebase!`". :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://togithub.com/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#googleapis/nodejs-cloud-container). #162 automerged by dpebot --- packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 9d5e7c9b017..a7e6a317b61 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -56,7 +56,7 @@ "jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git", "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.5.5", - "mocha": "^5.0.0", + "mocha": "^6.0.0", "nyc": "^13.0.0", "power-assert": "^1.4.4", "prettier": "^1.9.2", diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 9a7b5ed8d78..e1e8e20c756 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -19,6 +19,6 @@ "devDependencies": { "chai": "^4.2.0", "execa": "^1.0.0", - "mocha": "^5.2.0" + "mocha": "^6.0.0" } } From 15f68d5774dd0690198c36f3211b41bb026b4046 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 6 Mar 2019 18:50:47 -0800 Subject: [PATCH 104/371] build: update release config (#163) --- packages/google-container/synth.metadata | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 40b7ba4b0c9..f261516aca0 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,26 +1,26 @@ { - "updateTime": "2019-02-13T12:10:59.618585Z", + "updateTime": "2019-03-05T12:11:11.956520Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.13", - "dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa" + "version": "0.16.14", + "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "ca61898878f0926dd9dcc68ba90764f17133efe4", - "internalRef": "233680013" + "sha": "b4a22569c88f1f0444e889d8139ddacb799f287c", + "internalRef": "236712632" } }, { "template": { "name": "node_library", "origin": "synthtool.gcp", - "version": "2019.1.16" + "version": "2019.2.26" } } ], From a1ea26e27a8a5a9c97870910fc2cc7a80ab4ef14 Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Thu, 7 Mar 2019 18:04:06 -0800 Subject: [PATCH 105/371] build: Add docuploader credentials to node publish jobs (#165) --- packages/google-container/synth.metadata | 33 +++--------------------- 1 file changed, 3 insertions(+), 30 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index f261516aca0..977e137352e 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,38 +1,11 @@ { - "updateTime": "2019-03-05T12:11:11.956520Z", + "updateTime": "2019-03-08T00:45:38.651041Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b4a22569c88f1f0444e889d8139ddacb799f287c", - "internalRef": "236712632" - } - }, - { - "template": { - "name": "node_library", - "origin": "synthtool.gcp", - "version": "2019.2.26" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "container", - "apiVersion": "v1", - "language": "nodejs", - "generator": "gapic", - "config": "google/container/artman_container_v1.yaml" + "version": "0.16.15", + "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" } } ] From 051eba7b11f5fc551c00a43ee9037a3b5ccee5d9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Tue, 12 Mar 2019 10:53:57 -0700 Subject: [PATCH 106/371] refactor: update json import paths (#167) --- .../src/v1/cluster_manager_client.js | 2 +- packages/google-container/synth.metadata | 33 +++++++++++++++++-- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index 136e66eded3..4d6e1ad7ace 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -14,7 +14,7 @@ 'use strict'; -const gapicConfig = require('./cluster_manager_client_config'); +const gapicConfig = require('./cluster_manager_client_config.json'); const gax = require('google-gax'); const merge = require('lodash.merge'); const path = require('path'); diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 977e137352e..2f4a094be65 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,11 +1,38 @@ { - "updateTime": "2019-03-08T00:45:38.651041Z", + "updateTime": "2019-03-12T11:10:12.755611Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.15", - "dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2" + "version": "0.16.16", + "dockerImage": "googleapis/artman@sha256:30babbfce7f05a62b1892c63c575aa2c8c502eb4bcc8f3bb90ec83e955d5d319" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "abd1c9a99c5cd7179d8e5e0c8d4c8e761054cc78", + "internalRef": "237945492" + } + }, + { + "template": { + "name": "node_library", + "origin": "synthtool.gcp", + "version": "2019.2.26" + } + } + ], + "destinations": [ + { + "client": { + "source": "googleapis", + "apiName": "container", + "apiVersion": "v1", + "language": "nodejs", + "generator": "gapic", + "config": "google/container/artman_container_v1.yaml" } } ] From 3fc2dfce6bb77175bd3063ab82fb407eb014bd6d Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 12 Mar 2019 14:02:19 -0700 Subject: [PATCH 107/371] Release v0.3.1 (#168) --- packages/google-container/CHANGELOG.md | 33 +++++++++++++++++++ packages/google-container/package.json | 2 +- .../google-container/samples/package.json | 2 +- 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 13e86d45001..4c14ef9149a 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,39 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## v0.3.1 + +03-12-2019 13:44 PDT + +This patch release has a few bug fixes, dependency updates, and doc fixes. Enjoy! + +### Bug fixes +- fix: throw on invalid credentials ([#159](https://github.com/googleapis/nodejs-cloud-container/pull/159)) + +### Dependencies +- fix(deps): update dependency google-gax to ^0.25.0 ([#152](https://github.com/googleapis/nodejs-cloud-container/pull/152)) + +### Documentation +- docs: update links in contrib guide ([#161](https://github.com/googleapis/nodejs-cloud-container/pull/161)) +- docs: update contributing path in README ([#156](https://github.com/googleapis/nodejs-cloud-container/pull/156)) +- docs: move CONTRIBUTING.md to root ([#155](https://github.com/googleapis/nodejs-cloud-container/pull/155)) +- docs: add lint/fix example to contributing guide ([#153](https://github.com/googleapis/nodejs-cloud-container/pull/153)) + +### Internal / Testing Changes +- refactor: update json import paths ([#167](https://github.com/googleapis/nodejs-cloud-container/pull/167)) +- build: Add docuploader credentials to node publish jobs ([#165](https://github.com/googleapis/nodejs-cloud-container/pull/165)) +- build: update release config ([#163](https://github.com/googleapis/nodejs-cloud-container/pull/163)) +- build: use node10 to run samples-test, system-test etc ([#164](https://github.com/googleapis/nodejs-cloud-container/pull/164)) +- chore(deps): update dependency mocha to v6 +- build: use linkinator for docs test ([#160](https://github.com/googleapis/nodejs-cloud-container/pull/160)) +- build: create docs test npm scripts ([#158](https://github.com/googleapis/nodejs-cloud-container/pull/158)) +- build: test using @grpc/grpc-js in CI ([#157](https://github.com/googleapis/nodejs-cloud-container/pull/157)) +- chore(deps): update dependency eslint-config-prettier to v4 ([#151](https://github.com/googleapis/nodejs-cloud-container/pull/151)) +- chore: update the date in the copyright header ([#150](https://github.com/googleapis/nodejs-cloud-container/pull/150)) +- build: check broken links in generated docs ([#144](https://github.com/googleapis/nodejs-cloud-container/pull/144)) +- test: add sample tests ([#143](https://github.com/googleapis/nodejs-cloud-container/pull/143)) +- chore(build): inject yoshi automation key ([#142](https://github.com/googleapis/nodejs-cloud-container/pull/142)) + ## v0.3.0 12-11-2018 10:08 PST diff --git a/packages/google-container/package.json b/packages/google-container/package.json index a7e6a317b61..27a31cda61b 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "0.3.0", + "version": "0.3.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index e1e8e20c756..89e2708fbe1 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^0.3.0" + "@google-cloud/container": "^0.3.1" }, "devDependencies": { "chai": "^4.2.0", From 6ab041434ccce64794e2886a16d4ce983a99e1ad Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Thu, 28 Mar 2019 15:21:29 -0700 Subject: [PATCH 108/371] fix: include 'x-goog-request-params' header in requests (#175) --- .../src/v1/cluster_manager_client.js | 210 ++++++++++++++++++ packages/google-container/synth.metadata | 10 +- 2 files changed, 215 insertions(+), 5 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index 4d6e1ad7ace..e1179847a04 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -263,6 +263,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent, + }); return this._innerApiCalls.listClusters(request, options, callback); } @@ -329,6 +336,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.getCluster(request, options, callback); } @@ -409,6 +423,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent, + }); return this._innerApiCalls.createCluster(request, options, callback); } @@ -481,6 +502,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.updateCluster(request, options, callback); } @@ -571,6 +599,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.updateNodePool(request, options, callback); } @@ -649,6 +684,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setNodePoolAutoscaling( request, @@ -727,6 +769,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setLoggingService(request, options, callback); } @@ -801,6 +850,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setMonitoringService(request, options, callback); } @@ -874,6 +930,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setAddonsConfig(request, options, callback); } @@ -950,6 +1013,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setLocations(request, options, callback); } @@ -1029,6 +1099,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.updateMaster(request, options, callback); } @@ -1109,6 +1186,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setMasterAuth(request, options, callback); } @@ -1183,6 +1267,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.deleteCluster(request, options, callback); } @@ -1244,6 +1335,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent, + }); return this._innerApiCalls.listOperations(request, options, callback); } @@ -1310,6 +1408,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.getOperation(request, options, callback); } @@ -1367,6 +1472,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.cancelOperation(request, options, callback); } @@ -1427,6 +1539,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.getServerConfig(request, options, callback); } @@ -1493,6 +1612,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent, + }); return this._innerApiCalls.listNodePools(request, options, callback); } @@ -1565,6 +1691,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.getNodePool(request, options, callback); } @@ -1638,6 +1771,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent, + }); return this._innerApiCalls.createNodePool(request, options, callback); } @@ -1710,6 +1850,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.deleteNodePool(request, options, callback); } @@ -1783,6 +1930,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.rollbackNodePoolUpgrade( request, @@ -1865,6 +2019,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setNodePoolManagement( request, @@ -1948,6 +2109,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setLabels(request, options, callback); } @@ -2018,6 +2186,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setLegacyAbac(request, options, callback); } @@ -2086,6 +2261,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.startIPRotation(request, options, callback); } @@ -2152,6 +2334,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.completeIPRotation(request, options, callback); } @@ -2228,6 +2417,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setNodePoolSize(request, options, callback); } @@ -2300,6 +2496,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setNetworkPolicy(request, options, callback); } @@ -2371,6 +2574,13 @@ class ClusterManagerClient { options = {}; } options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name, + }); return this._innerApiCalls.setMaintenancePolicy(request, options, callback); } diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 2f4a094be65..07e23d5c6c0 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-12T11:10:12.755611Z", + "updateTime": "2019-03-28T11:27:38.626733Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.16", - "dockerImage": "googleapis/artman@sha256:30babbfce7f05a62b1892c63c575aa2c8c502eb4bcc8f3bb90ec83e955d5d319" + "version": "0.16.20", + "dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "abd1c9a99c5cd7179d8e5e0c8d4c8e761054cc78", - "internalRef": "237945492" + "sha": "6a84b3267b0a95e922608b9891219075047eee29", + "internalRef": "240640999" } }, { From c5257254b08ef0750056fda68e77f8de755c3c90 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 4 Apr 2019 14:00:03 -0700 Subject: [PATCH 109/371] refactor: use execSync for tests (#176) --- packages/google-container/samples/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 89e2708fbe1..b228d6d841f 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -18,7 +18,6 @@ }, "devDependencies": { "chai": "^4.2.0", - "execa": "^1.0.0", "mocha": "^6.0.0" } } From adb34fbd0b4a92d1b9791b69ac172ee2a9944c15 Mon Sep 17 00:00:00 2001 From: Daniel Sanche Date: Mon, 22 Apr 2019 18:03:12 -0700 Subject: [PATCH 110/371] docs: make usage of the library more clear (#179) --- packages/google-container/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 221a1c7dc34..376f2ad7026 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -2,13 +2,13 @@ [//]: # "To regenerate it, use `npm run generate-scaffolding`." Google Cloud Platform logo -# [Google Kubernetes Engine: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) +# [Google Kubernetes Engine: Node.js Cluster Manager](https://github.com/googleapis/nodejs-cloud-container) [![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/container.svg)](https://www.npmjs.org/package/@google-cloud/container) [![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-cloud-container/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-cloud-container) -> Node.js idiomatic client for [Kubernetes Engine][product-docs]. +> Node.js idiomatic client for [Kubernetes Engine][product-docs] cluster management. [Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/) is used for building and managing container based applications, powered by the open source Kubernetes technology. From d564f39b5d0eafc554e26dac35fefca5ef61acec Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Mon, 22 Apr 2019 18:03:28 -0700 Subject: [PATCH 111/371] chore(deps): update dependency nyc to v14 (#178) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 27a31cda61b..78a019e82db 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -57,7 +57,7 @@ "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.5.5", "mocha": "^6.0.0", - "nyc": "^13.0.0", + "nyc": "^14.0.0", "power-assert": "^1.4.4", "prettier": "^1.9.2", "linkinator": "^1.1.2" From 49e79e36216b120c891e3a9f5100edc7f0dc6556 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 29 Apr 2019 15:02:38 -0700 Subject: [PATCH 112/371] update to .nycrc with --all enabled (#180) --- packages/google-container/.nycrc | 40 ++++++++++++++------------------ 1 file changed, 17 insertions(+), 23 deletions(-) diff --git a/packages/google-container/.nycrc b/packages/google-container/.nycrc index 88b001cb587..bfe4073a6ab 100644 --- a/packages/google-container/.nycrc +++ b/packages/google-container/.nycrc @@ -1,28 +1,22 @@ { "report-dir": "./.coverage", - "reporter": "lcov", + "reporter": ["text", "lcov"], "exclude": [ - "src/*{/*,/**/*}.js", - "src/*/v*/*.js", - "test/**/*.js", - "build/test" + "**/*-test", + "**/.coverage", + "**/apis", + "**/benchmark", + "**/docs", + "**/samples", + "**/scripts", + "**/src/**/v*/**/*.js", + "**/test", + ".jsdoc.js", + "**/.jsdoc.js", + "karma.conf.js", + "webpack-tests.config.js", + "webpack.config.js" ], - "watermarks": { - "branches": [ - 95, - 100 - ], - "functions": [ - 95, - 100 - ], - "lines": [ - 95, - 100 - ], - "statements": [ - 95, - 100 - ] - } + "exclude-after-remap": false, + "all": true } From b7a1ac979fad8c026237f8b59d8dd4991e9b3d62 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Thu, 2 May 2019 09:14:23 -0700 Subject: [PATCH 113/371] fix(deps): update dependency google-gax to ^0.26.0 (#181) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 78a019e82db..8e50044df51 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -43,7 +43,7 @@ "predocs-test": "npm run docs" }, "dependencies": { - "google-gax": "^0.25.0", + "google-gax": "^0.26.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From 772b0523daa681ac2c55456f3509643fa8eb4c56 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Thu, 2 May 2019 11:28:27 -0700 Subject: [PATCH 114/371] build!: upgrade engines field to >=8.10.0 (#183) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 8e50044df51..708c2c3eec6 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "author": "Google Inc", "engines": { - "node": ">=6.0.0" + "node": ">=8.10.0" }, "repository": "googleapis/nodejs-cloud-container", "main": "src/index.js", From 4ae696227919bdd6570b75bb5ddd8a87b1173997 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Fri, 3 May 2019 08:19:25 -0700 Subject: [PATCH 115/371] chore(deps): update dependency eslint-plugin-node to v9 (#185) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 708c2c3eec6..986b996edf6 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -51,7 +51,7 @@ "codecov": "^3.0.0", "eslint": "^5.0.1", "eslint-config-prettier": "^4.0.0", - "eslint-plugin-node": "^8.0.0", + "eslint-plugin-node": "^9.0.0", "eslint-plugin-prettier": "^3.0.0", "jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git", "intelli-espower-loader": "^1.0.1", From 67499287bdddad4adf1a0cf8de503745fdf1f12e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Tue, 7 May 2019 22:48:42 -0700 Subject: [PATCH 116/371] build: only pipe to codecov if tests run in Node 10 (#186) --- packages/google-container/synth.metadata | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 07e23d5c6c0..3b80d81a34d 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,26 +1,26 @@ { - "updateTime": "2019-03-28T11:27:38.626733Z", + "updateTime": "2019-05-04T11:11:26.559902Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.20", - "dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e" + "version": "0.18.0", + "dockerImage": "googleapis/artman@sha256:29bd82cc42c43825fde408e63fc955f3f9d07ff9989243d7aa0f91a35c7884dc" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "6a84b3267b0a95e922608b9891219075047eee29", - "internalRef": "240640999" + "sha": "39c876cca5403e7e8282ce2229033cc3cc02962c", + "internalRef": "246561601" } }, { "template": { "name": "node_library", "origin": "synthtool.gcp", - "version": "2019.2.26" + "version": "2019.5.2" } } ], From 402c78afddc63f3e9cdd1edf36b31af8f43669f6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Wed, 8 May 2019 18:01:41 -0700 Subject: [PATCH 117/371] fix: DEADLINE_EXCEEDED is no longer retried --- .../src/v1/cluster_manager_client_config.json | 1 - packages/google-container/synth.metadata | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client_config.json b/packages/google-container/src/v1/cluster_manager_client_config.json index 2c653557a2f..7bc2c97df1b 100644 --- a/packages/google-container/src/v1/cluster_manager_client_config.json +++ b/packages/google-container/src/v1/cluster_manager_client_config.json @@ -3,7 +3,6 @@ "google.container.v1.ClusterManager": { "retry_codes": { "idempotent": [ - "DEADLINE_EXCEEDED", "UNAVAILABLE" ], "non_idempotent": [] diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 3b80d81a34d..96b28f84dfb 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-05-04T11:11:26.559902Z", + "updateTime": "2019-05-08T11:55:41.141949Z", "sources": [ { "generator": { "name": "artman", - "version": "0.18.0", - "dockerImage": "googleapis/artman@sha256:29bd82cc42c43825fde408e63fc955f3f9d07ff9989243d7aa0f91a35c7884dc" + "version": "0.19.0", + "dockerImage": "googleapis/artman@sha256:d3df563538225ac6caac45d8ad86499500211d1bcb2536955a6dbda15e1b368e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "39c876cca5403e7e8282ce2229033cc3cc02962c", - "internalRef": "246561601" + "sha": "51145ff7812d2bb44c1219d0b76dac92a8bd94b2", + "internalRef": "247143125" } }, { From 004f90e61f75cad9be2fdb34872cb2d07bd5e68b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Fri, 10 May 2019 11:53:55 -0700 Subject: [PATCH 118/371] fix(deps): update dependency google-gax to v1 (#191) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 986b996edf6..228c5263c31 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -43,7 +43,7 @@ "predocs-test": "npm run docs" }, "dependencies": { - "google-gax": "^0.26.0", + "google-gax": "^1.0.0", "lodash.merge": "^4.6.0" }, "devDependencies": { From 8b041166e8e0096478ce0733d15c308b8d87ac8c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <44816363+yoshi-automation@users.noreply.github.com> Date: Fri, 10 May 2019 15:59:47 -0700 Subject: [PATCH 119/371] fix: DEADLINE_EXCEEDED retry code is idempotent (#192) --- .../src/v1/cluster_manager_client_config.json | 1 + packages/google-container/synth.metadata | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client_config.json b/packages/google-container/src/v1/cluster_manager_client_config.json index 7bc2c97df1b..2c653557a2f 100644 --- a/packages/google-container/src/v1/cluster_manager_client_config.json +++ b/packages/google-container/src/v1/cluster_manager_client_config.json @@ -3,6 +3,7 @@ "google.container.v1.ClusterManager": { "retry_codes": { "idempotent": [ + "DEADLINE_EXCEEDED", "UNAVAILABLE" ], "non_idempotent": [] diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 96b28f84dfb..2a4da2661b9 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-05-08T11:55:41.141949Z", + "updateTime": "2019-05-10T11:58:56.663624Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "51145ff7812d2bb44c1219d0b76dac92a8bd94b2", - "internalRef": "247143125" + "sha": "07883be5bf3c3233095e99d8e92b8094f5d7084a", + "internalRef": "247530843" } }, { From 1c54e2fd5fa77b29ebd491637007d95ee550e26e Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 13 May 2019 10:48:40 -0700 Subject: [PATCH 120/371] chore: release 1.0.0 (#193) --- packages/google-container/CHANGELOG.md | 22 ++++++++++++++++++- packages/google-container/package.json | 2 +- .../google-container/samples/package.json | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 4c14ef9149a..08061436db2 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,27 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [1.0.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v0.3.1...v1.0.0) (2019-05-13) + + +### Bug Fixes + +* DEADLINE_EXCEEDED retry code is idempotent ([#192](https://www.github.com/googleapis/nodejs-cloud-container/issues/192)) ([66082aa](https://www.github.com/googleapis/nodejs-cloud-container/commit/66082aa)) +* **deps:** update dependency google-gax to v1 ([#191](https://www.github.com/googleapis/nodejs-cloud-container/issues/191)) ([e4470fa](https://www.github.com/googleapis/nodejs-cloud-container/commit/e4470fa)) +* DEADLINE_EXCEEDED is no longer retried ([16453ff](https://www.github.com/googleapis/nodejs-cloud-container/commit/16453ff)) +* **deps:** update dependency google-gax to ^0.26.0 ([#181](https://www.github.com/googleapis/nodejs-cloud-container/issues/181)) ([0ee0e98](https://www.github.com/googleapis/nodejs-cloud-container/commit/0ee0e98)) +* include 'x-goog-request-params' header in requests ([#175](https://www.github.com/googleapis/nodejs-cloud-container/issues/175)) ([0d3ba60](https://www.github.com/googleapis/nodejs-cloud-container/commit/0d3ba60)) + + +### Build System + +* upgrade engines field to >=8.10.0 ([#183](https://www.github.com/googleapis/nodejs-cloud-container/issues/183)) ([7a6a24b](https://www.github.com/googleapis/nodejs-cloud-container/commit/7a6a24b)) + + +### BREAKING CHANGES + +* upgrade engines field to >=8.10.0 (#183) + ## v0.3.1 03-12-2019 13:44 PDT @@ -129,4 +150,3 @@ This patch release has a few bug fixes, dependency updates, and doc fixes. Enjo - chore: lock files maintenance ([#26](https://github.com/googleapis/nodejs-cloud-container/pull/26)) - chore: test on node10 ([#25](https://github.com/googleapis/nodejs-cloud-container/pull/25)) - chore: lock files maintenance ([#24](https://github.com/googleapis/nodejs-cloud-container/pull/24)) - diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 228c5263c31..bc103c6b205 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "0.3.1", + "version": "1.0.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index b228d6d841f..ea42122b41e 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^0.3.1" + "@google-cloud/container": "^1.0.0" }, "devDependencies": { "chai": "^4.2.0", From 444bc937e0cccaf0a4e77bbd76a7c01b540b090f Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Fri, 17 May 2019 08:20:16 -0700 Subject: [PATCH 121/371] build: add new kokoro config for coverage and release-please (#194) --- packages/google-container/synth.metadata | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 2a4da2661b9..911a3115fab 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-05-10T11:58:56.663624Z", + "updateTime": "2019-05-17T01:03:10.270326Z", "sources": [ { "generator": { @@ -12,15 +12,15 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "07883be5bf3c3233095e99d8e92b8094f5d7084a", - "internalRef": "247530843" + "sha": "03269e767cff9dd644d7784a4d4350b2ba6daf69", + "internalRef": "248524261" } }, { "template": { "name": "node_library", "origin": "synthtool.gcp", - "version": "2019.5.2" + "version": "2019.4.10" } } ], From 22e9a6ea074bf915a6ffa23be14daca5c2c85b6a Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Fri, 17 May 2019 16:48:18 -0700 Subject: [PATCH 122/371] build: updated kokoro config for coverage and release-please (#195) --- packages/google-container/synth.metadata | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 911a3115fab..29233cb73ba 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-05-17T01:03:10.270326Z", + "updateTime": "2019-05-17T19:42:38.622241Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "03269e767cff9dd644d7784a4d4350b2ba6daf69", - "internalRef": "248524261" + "sha": "99efb1441b7c2aeb75c69f8baf9b61d4221bb744", + "internalRef": "248724297" } }, { From ad4b98c9160103831dca1dab41bafe679b129133 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 21 May 2019 01:25:54 +0000 Subject: [PATCH 123/371] refactor: use repo-metadata to generate readme (#196) --- .../google-container/.cloud-repo-tools.json | 7 -- packages/google-container/.gitignore | 3 +- .../google-container/.readme-partials.yaml | 5 + packages/google-container/.repo-metadata.json | 13 ++ packages/google-container/README.md | 117 +++++++++--------- packages/google-container/package.json | 39 +++--- packages/google-container/samples/README.md | 47 +++++++ .../google-container/samples/quickstart.js | 36 +++--- .../src/v1/cluster_manager_client.js | 70 +++++------ packages/google-container/synth.metadata | 12 +- 10 files changed, 196 insertions(+), 153 deletions(-) delete mode 100644 packages/google-container/.cloud-repo-tools.json create mode 100644 packages/google-container/.readme-partials.yaml create mode 100644 packages/google-container/.repo-metadata.json create mode 100644 packages/google-container/samples/README.md diff --git a/packages/google-container/.cloud-repo-tools.json b/packages/google-container/.cloud-repo-tools.json deleted file mode 100644 index 43d5a37e81d..00000000000 --- a/packages/google-container/.cloud-repo-tools.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "requiresKeyFile": true, - "requiresProjectId": true, - "product": "container", - "client_reference_url": "https://cloud.google.com/nodejs/docs/reference/container/latest/", - "release_quality": "alpha" -} diff --git a/packages/google-container/.gitignore b/packages/google-container/.gitignore index 531c77e628b..af6629b80e6 100644 --- a/packages/google-container/.gitignore +++ b/packages/google-container/.gitignore @@ -9,6 +9,5 @@ system-test/secrets.js system-test/*key.json *.lock .DS_Store -google-cloud-logging-winston-*.tgz -google-cloud-logging-bunyan-*.tgz +__pycache__ package-lock.json diff --git a/packages/google-container/.readme-partials.yaml b/packages/google-container/.readme-partials.yaml new file mode 100644 index 00000000000..466f731c0e1 --- /dev/null +++ b/packages/google-container/.readme-partials.yaml @@ -0,0 +1,5 @@ +introduction: |- + > Node.js idiomatic client for [Kubernetes Engine][product-docs] cluster management. + + [Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/) is used for + building and managing container based applications, powered by the open source Kubernetes technology. \ No newline at end of file diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json new file mode 100644 index 00000000000..42635bd7786 --- /dev/null +++ b/packages/google-container/.repo-metadata.json @@ -0,0 +1,13 @@ +{ + "name": "container", + "name_pretty": "Kubernetes Engine Cluster Manager API", + "product_documentation": "https://cloud.google.com/kubernetes-engine", + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/container/latest/", + "issue_tracker": "https://issuetracker.google.com/savedsearches/559746", + "release_level": "alpha", + "language": "nodejs", + "repo": "googleapis/nodejs-cloud-container", + "distribution_name": "@google-cloud/container", + "api_id": "container.googleapis.com", + "requires_billing": true +} diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 376f2ad7026..6ef188fdda6 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -1,21 +1,25 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." -[//]: # "To regenerate it, use `npm run generate-scaffolding`." +[//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [Google Kubernetes Engine: Node.js Cluster Manager](https://github.com/googleapis/nodejs-cloud-container) +# [Kubernetes Engine Cluster Manager API: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) -[![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/container.svg)](https://www.npmjs.org/package/@google-cloud/container) [![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-cloud-container/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-cloud-container) + + + > Node.js idiomatic client for [Kubernetes Engine][product-docs] cluster management. -[Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/) is used for building and managing container based applications, powered by the open source Kubernetes technology. +[Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/) is used for +building and managing container based applications, powered by the open source Kubernetes technology. -* [Kubernetes Engine Node.js Client API Reference][client-docs] +* [Kubernetes Engine Cluster Manager API Node.js Client API Reference][client-docs] +* [Kubernetes Engine Cluster Manager API Documentation][product-docs] * [github.com/googleapis/nodejs-cloud-container](https://github.com/googleapis/nodejs-cloud-container) -* [Kubernetes Engine Documentation][product-docs] Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in [Client Libraries Explained][explained]. @@ -24,10 +28,12 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. **Table of contents:** + * [Quickstart](#quickstart) * [Before you begin](#before-you-begin) * [Installing the client library](#installing-the-client-library) * [Using the client library](#using-the-client-library) +* [Samples](#samples) * [Versioning](#versioning) * [Contributing](#contributing) * [License](#license) @@ -36,78 +42,72 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained]. ### Before you begin -1. Select or create a Cloud Platform project. - - [Go to the projects page][projects] - -1. Enable billing for your project. - - [Enable billing][billing] - -1. Enable the Google Kubernetes Engine API. - - [Enable the API][enable_api] - +1. [Select or create a Cloud Platform project][projects]. +1. [Enable billing for your project][billing]. +1. [Enable the Kubernetes Engine Cluster Manager API API][enable_api]. 1. [Set up authentication with a service account][auth] so you can access the API from your local workstation. -[projects]: https://console.cloud.google.com/project -[billing]: https://support.google.com/cloud/answer/6293499#enable-billing -[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=container.googleapis.com -[auth]: https://cloud.google.com/docs/authentication/getting-started - ### Installing the client library - npm install --save @google-cloud/container +```bash +npm install @google-cloud/container +``` + ### Using the client library ```javascript -const container = require('@google-cloud/container'); - -if ( - !process.env.GCLOUD_PROJECT || - !process.env.GOOGLE_APPLICATION_CREDENTIALS -) { - throw new Error( - 'Usage: GCLOUD_PROJECT= GOOGLE_APPLICATION_CREDENTIALS= node #{$0}' - ); -} - -const client = new container.v1.ClusterManagerClient({ - // optional auth parameters. -}); - -const projectId = process.env.GCLOUD_PROJECT; -const zone = 'us-central1-a'; -const request = { - projectId: projectId, - zone: zone, -}; - -client - .listClusters(request) - .then(responses => { - const response = responses[0]; + const container = require('@google-cloud/container'); + + // Create the Cluster Manager Client + const client = new container.v1.ClusterManagerClient(); + + async function quickstart() { + const zone = 'us-central1-a'; + const projectId = await client.getProjectId(); + const request = { + projectId: projectId, + zone: zone, + }; + + const [response] = await client.listClusters(request); + console.log('Clusters:'); console.log(response); - }) - .catch(err => { - console.error('ERROR:', err); - }); + } + quickstart(); + ``` -The [Kubernetes Engine Node.js Client API Reference][client-docs] documentation + +## Samples + +Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloud-container/tree/master/samples) directory. The samples' `README.md` +has instructions for running the samples. + +| Sample | Source Code | Try it | +| --------------------------- | --------------------------------- | ------ | +| Quickstart | [source code](https://github.com/googleapis/nodejs-cloud-container/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | + + + +The [Kubernetes Engine Cluster Manager API Node.js Client API Reference][client-docs] documentation also contains samples. ## Versioning This library follows [Semantic Versioning](http://semver.org/). + + + This library is considered to be in **alpha**. This means it is still a work-in-progress and under active development. Any release is subject to backwards-incompatible changes at any time. + + More Information: [Google Cloud Platform Launch Stages][launch_stages] [launch_stages]: https://cloud.google.com/terms/launch-stages @@ -123,6 +123,9 @@ Apache Version 2.0 See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/master/LICENSE) [client-docs]: https://cloud.google.com/nodejs/docs/reference/container/latest/ -[product-docs]: https://cloud.google.com/kubernetes-engine/docs/ +[product-docs]: https://cloud.google.com/kubernetes-engine [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png - +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=container.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started \ No newline at end of file diff --git a/packages/google-container/package.json b/packages/google-container/package.json index bc103c6b205..2db2b7ae67a 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -11,9 +11,7 @@ "main": "src/index.js", "files": [ "protos", - "src", - "AUTHORS", - "COPYING" + "src" ], "keywords": [ "google apis client", @@ -29,12 +27,8 @@ "Google Container Engine API" ], "scripts": { - "test": "npm run cover", - "generate-scaffolding": "repo-tools generate all", - "generate-scaffolding-samples": "repo-tools generate lib_samples_readme -l samples/ --config ../.cloud-repo-tools.json", - "cover": "nyc --reporter=lcov mocha test/*.js && nyc report", + "test": "nyc mocha", "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", - "test-no-cover": "mocha test/*.js", "lint": "eslint '**/*.js'", "docs": "jsdoc -c .jsdoc.js", "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000", @@ -43,23 +37,22 @@ "predocs-test": "npm run docs" }, "dependencies": { - "google-gax": "^1.0.0", - "lodash.merge": "^4.6.0" + "google-gax": "^1.1.1", + "lodash.merge": "^4.6.1" }, "devDependencies": { - "@google-cloud/nodejs-repo-tools": "^3.0.0", - "codecov": "^3.0.0", - "eslint": "^5.0.1", - "eslint-config-prettier": "^4.0.0", - "eslint-plugin-node": "^9.0.0", - "eslint-plugin-prettier": "^3.0.0", - "jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git", + "codecov": "^3.5.0", + "eslint": "^5.16.0", + "eslint-config-prettier": "^4.3.0", + "eslint-plugin-node": "^9.0.1", + "eslint-plugin-prettier": "^3.1.0", "intelli-espower-loader": "^1.0.1", - "jsdoc": "^3.5.5", - "mocha": "^6.0.0", - "nyc": "^14.0.0", - "power-assert": "^1.4.4", - "prettier": "^1.9.2", - "linkinator": "^1.1.2" + "jsdoc": "^3.6.2", + "jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git", + "linkinator": "^1.4.2", + "mocha": "^6.1.4", + "nyc": "^14.1.1", + "power-assert": "^1.6.1", + "prettier": "^1.17.1" } } diff --git a/packages/google-container/samples/README.md b/packages/google-container/samples/README.md new file mode 100644 index 00000000000..e43a0be58e6 --- /dev/null +++ b/packages/google-container/samples/README.md @@ -0,0 +1,47 @@ +[//]: # "This README.md file is auto-generated, all changes to this file will be lost." +[//]: # "To regenerate it, use `python -m synthtool`." +Google Cloud Platform logo + +# [Kubernetes Engine Cluster Manager API: Node.js Samples](https://github.com/googleapis/nodejs-cloud-container) + +[![Open in Cloud Shell][shell_img]][shell_link] + +> Node.js idiomatic client for [Kubernetes Engine][product-docs] cluster management. + +[Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/) is used for +building and managing container based applications, powered by the open source Kubernetes technology. + +## Table of Contents + +* [Before you begin](#before-you-begin) +* [Samples](#samples) + * [Quickstart](#quickstart) + +## Before you begin + +Before running the samples, make sure you've followed the steps outlined in +[Using the client library](https://github.com/googleapis/nodejs-cloud-container#using-the-client-library). + +## Samples + + + +### Quickstart + +View the [source code](https://github.com/googleapis/nodejs-cloud-container/blob/master/samples/quickstart.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) + +__Usage:__ + + +`node quickstart.js` + + + + + + +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/README.md +[product-docs]: https://cloud.google.com/kubernetes-engine \ No newline at end of file diff --git a/packages/google-container/samples/quickstart.js b/packages/google-container/samples/quickstart.js index 36e995f4a2c..4fb11a1f970 100644 --- a/packages/google-container/samples/quickstart.js +++ b/packages/google-container/samples/quickstart.js @@ -14,33 +14,27 @@ */ 'use strict'; + async function main() { // [START container_quickstart] const container = require('@google-cloud/container'); - if ( - !process.env.GCLOUD_PROJECT || - !process.env.GOOGLE_APPLICATION_CREDENTIALS - ) { - throw new Error( - 'Usage: GCLOUD_PROJECT= GOOGLE_APPLICATION_CREDENTIALS= node #{$0}' - ); - } - - const client = new container.v1.ClusterManagerClient({ - // optional auth parameters. - }); + // Create the Cluster Manager Client + const client = new container.v1.ClusterManagerClient(); - const projectId = process.env.GCLOUD_PROJECT; - const zone = 'us-central1-a'; - const request = { - projectId: projectId, - zone: zone, - }; + async function quickstart() { + const zone = 'us-central1-a'; + const projectId = await client.getProjectId(); + const request = { + projectId: projectId, + zone: zone, + }; - const [response] = await client.listClusters(request); - console.log('Clusters:'); - console.log(response); + const [response] = await client.listClusters(request); + console.log('Clusters:'); + console.log(response); + } + quickstart(); // [END container_quickstart] } diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index e1179847a04..80d4982db46 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -16,7 +16,6 @@ const gapicConfig = require('./cluster_manager_client_config.json'); const gax = require('google-gax'); -const merge = require('lodash.merge'); const path = require('path'); const VERSION = require('../../package.json').version; @@ -88,12 +87,9 @@ class ClusterManagerClient { } // Load the applicable protos. - const protos = merge( - {}, - gaxGrpc.loadProto( - path.join(__dirname, '..', '..', 'protos'), - 'google/container/v1/cluster_service.proto' - ) + const protos = gaxGrpc.loadProto( + path.join(__dirname, '..', '..', 'protos'), + ['google/container/v1/cluster_service.proto'] ); // Put together the default options sent with requests. @@ -225,7 +221,7 @@ class ClusterManagerClient { * Location "-" matches all zones and all regions. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -296,7 +292,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -383,7 +379,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -460,7 +456,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -553,7 +549,7 @@ class ClusterManagerClient { * 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -640,7 +636,7 @@ class ClusterManagerClient { * 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -727,7 +723,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -808,7 +804,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -888,7 +884,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -971,7 +967,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1057,7 +1053,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1142,7 +1138,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1227,7 +1223,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1297,7 +1293,7 @@ class ClusterManagerClient { * Location "-" matches all zones and all regions. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1368,7 +1364,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /operations/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1440,7 +1436,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /operations/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error)} [callback] * The function which will be called with the result of the API call. * @returns {Promise} - The promise which resolves when API call finishes. @@ -1501,7 +1497,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1572,7 +1568,7 @@ class ClusterManagerClient { * listed. Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1649,7 +1645,7 @@ class ClusterManagerClient { * 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1729,7 +1725,7 @@ class ClusterManagerClient { * 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1808,7 +1804,7 @@ class ClusterManagerClient { * 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1888,7 +1884,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -1975,7 +1971,7 @@ class ClusterManagerClient { * 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -2065,7 +2061,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -2144,7 +2140,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -2221,7 +2217,7 @@ class ClusterManagerClient { * Whether to rotate credentials during IP rotation. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -2294,7 +2290,7 @@ class ClusterManagerClient { * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -2373,7 +2369,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -2454,7 +2450,7 @@ class ClusterManagerClient { * policy. Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * @@ -2532,7 +2528,7 @@ class ClusterManagerClient { * Specified in the format 'projects/* /locations/* /clusters/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. * @param {function(?Error, ?Object)} [callback] * The function which will be called with the result of the API call. * diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 29233cb73ba..a57c46b617f 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,26 +1,26 @@ { - "updateTime": "2019-05-17T19:42:38.622241Z", + "updateTime": "2019-05-20T22:22:28.908145Z", "sources": [ { "generator": { "name": "artman", - "version": "0.19.0", - "dockerImage": "googleapis/artman@sha256:d3df563538225ac6caac45d8ad86499500211d1bcb2536955a6dbda15e1b368e" + "version": "0.20.0", + "dockerImage": "googleapis/artman@sha256:3246adac900f4bdbd62920e80de2e5877380e44036b3feae13667ec255ebf5ec" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "99efb1441b7c2aeb75c69f8baf9b61d4221bb744", - "internalRef": "248724297" + "sha": "32a10f69e2c9ce15bba13ab1ff928bacebb25160", + "internalRef": "249058354" } }, { "template": { "name": "node_library", "origin": "synthtool.gcp", - "version": "2019.4.10" + "version": "2019.5.2" } } ], From 333812cc030f771849a026d8f108029a97abfbdf Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 23 May 2019 02:37:55 +0000 Subject: [PATCH 124/371] chore: use published jsdoc-baseline package (#197) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2db2b7ae67a..69272293fa9 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -48,7 +48,7 @@ "eslint-plugin-prettier": "^3.1.0", "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.6.2", - "jsdoc-baseline": "git+https://github.com/hegemonic/jsdoc-baseline.git", + "jsdoc-baseline": "^0.1.0", "linkinator": "^1.4.2", "mocha": "^6.1.4", "nyc": "^14.1.1", From 1ff10d078adb9ab5fb71d317b65d9ef03ba5c537 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 23 May 2019 20:51:31 +0000 Subject: [PATCH 125/371] chore: drop dependency on lodash.merge (#198) --- packages/google-container/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 69272293fa9..d77bab2578b 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -37,8 +37,7 @@ "predocs-test": "npm run docs" }, "dependencies": { - "google-gax": "^1.1.1", - "lodash.merge": "^4.6.1" + "google-gax": "^1.1.1" }, "devDependencies": { "codecov": "^3.5.0", From 95479ad120006c4b8a36d01bb6433fb0ddb433e7 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 28 May 2019 20:37:51 +0000 Subject: [PATCH 126/371] build: ignore proto files in test coverage (#200) --- packages/google-container/.nycrc | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/google-container/.nycrc b/packages/google-container/.nycrc index bfe4073a6ab..83a421a0628 100644 --- a/packages/google-container/.nycrc +++ b/packages/google-container/.nycrc @@ -10,6 +10,7 @@ "**/samples", "**/scripts", "**/src/**/v*/**/*.js", + "**/protos", "**/test", ".jsdoc.js", "**/.jsdoc.js", From c61d877f4bebeb0d8d0f256eac0f396963e854d5 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 5 Jun 2019 10:01:13 -0700 Subject: [PATCH 127/371] feat: support apiEndpoint override in client constructor (#203) --- .../src/v1/cluster_manager_client.js | 14 ++++++++++++- packages/google-container/synth.metadata | 10 ++++----- packages/google-container/test/gapic-v1.js | 21 +++++++++++++++++++ 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index 80d4982db46..adc8c1ec83f 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -55,14 +55,18 @@ class ClusterManagerClient { * API remote host. */ constructor(opts) { + opts = opts || {}; this._descriptors = {}; + const servicePath = + opts.servicePath || opts.apiEndpoint || this.constructor.servicePath; + // Ensure that options include the service address and port. opts = Object.assign( { clientConfig: {}, port: this.constructor.port, - servicePath: this.constructor.servicePath, + servicePath, }, opts ); @@ -172,6 +176,14 @@ class ClusterManagerClient { return 'container.googleapis.com'; } + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + */ + static get apiEndpoint() { + return 'container.googleapis.com'; + } + /** * The port for this API service. */ diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index a57c46b617f..8247743a40b 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-05-20T22:22:28.908145Z", + "updateTime": "2019-06-05T14:14:12.022698Z", "sources": [ { "generator": { "name": "artman", - "version": "0.20.0", - "dockerImage": "googleapis/artman@sha256:3246adac900f4bdbd62920e80de2e5877380e44036b3feae13667ec255ebf5ec" + "version": "0.23.1", + "dockerImage": "googleapis/artman@sha256:9d5cae1454da64ac3a87028f8ef486b04889e351c83bb95e83b8fab3959faed0" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "32a10f69e2c9ce15bba13ab1ff928bacebb25160", - "internalRef": "249058354" + "sha": "47c142a7cecc6efc9f6f8af804b8be55392b795b", + "internalRef": "251635729" } }, { diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js index 836693812a3..8540497c801 100644 --- a/packages/google-container/test/gapic-v1.js +++ b/packages/google-container/test/gapic-v1.js @@ -23,6 +23,27 @@ const error = new Error(); error.code = FAKE_STATUS_CODE; describe('ClusterManagerClient', () => { + it('has servicePath', () => { + const servicePath = containerModule.v1.ClusterManagerClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = containerModule.v1.ClusterManagerClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = containerModule.v1.ClusterManagerClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no options', () => { + const client = new containerModule.v1.ClusterManagerClient(); + assert(client); + }); + describe('listClusters', () => { it('invokes listClusters without error', done => { const client = new containerModule.v1.ClusterManagerClient({ From 9a4cd15b624296c8ce3e82c85ff32def13f4b2ba Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 5 Jun 2019 10:15:16 -0700 Subject: [PATCH 128/371] chore: release 1.1.0 (#204) * updated CHANGELOG.md * updated package.json * updated samples/package.json --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 08061436db2..6dbeafd4d81 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [1.1.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.0.0...v1.1.0) (2019-06-05) + + +### Features + +* support apiEndpoint override in client constructor ([#203](https://www.github.com/googleapis/nodejs-cloud-container/issues/203)) ([92be0f8](https://www.github.com/googleapis/nodejs-cloud-container/commit/92be0f8)) + ## [1.0.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v0.3.1...v1.0.0) (2019-05-13) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index d77bab2578b..c9ac5472775 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.0.0", + "version": "1.1.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index ea42122b41e..14028a4390f 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.0.0" + "@google-cloud/container": "^1.1.0" }, "devDependencies": { "chai": "^4.2.0", From b2ce1353e1eae68c29d6273cacc915542724ce22 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Wed, 12 Jun 2019 22:10:13 -0700 Subject: [PATCH 129/371] fix(docs): move to new client docs URL (#205) --- packages/google-container/.repo-metadata.json | 4 ++-- packages/google-container/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json index 42635bd7786..38315e6b620 100644 --- a/packages/google-container/.repo-metadata.json +++ b/packages/google-container/.repo-metadata.json @@ -2,7 +2,7 @@ "name": "container", "name_pretty": "Kubernetes Engine Cluster Manager API", "product_documentation": "https://cloud.google.com/kubernetes-engine", - "client_documentation": "https://cloud.google.com/nodejs/docs/reference/container/latest/", + "client_documentation": "https://googleapis.dev/nodejs/container/latest", "issue_tracker": "https://issuetracker.google.com/savedsearches/559746", "release_level": "alpha", "language": "nodejs", @@ -10,4 +10,4 @@ "distribution_name": "@google-cloud/container", "api_id": "container.googleapis.com", "requires_billing": true -} +} \ No newline at end of file diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 6ef188fdda6..99833de86d8 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -122,7 +122,7 @@ Apache Version 2.0 See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/master/LICENSE) -[client-docs]: https://cloud.google.com/nodejs/docs/reference/container/latest/ +[client-docs]: https://googleapis.dev/nodejs/container/latest [product-docs]: https://cloud.google.com/kubernetes-engine [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png [projects]: https://console.cloud.google.com/project From 81babbc622166ab14f6b28b69d6484caa2d4e8bb Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 14 Jun 2019 09:44:28 -0700 Subject: [PATCH 130/371] chore: release 1.1.1 (#206) * updated CHANGELOG.md * updated package.json * updated samples/package.json --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 6dbeafd4d81..0a6378c2bfb 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [1.1.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.1.0...v1.1.1) (2019-06-14) + + +### Bug Fixes + +* **docs:** move to new client docs URL ([#205](https://www.github.com/googleapis/nodejs-cloud-container/issues/205)) ([f35ee9a](https://www.github.com/googleapis/nodejs-cloud-container/commit/f35ee9a)) + ## [1.1.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.0.0...v1.1.0) (2019-06-05) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index c9ac5472775..23caf785d42 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.1.0", + "version": "1.1.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 14028a4390f..f2c6921a6e0 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.1.0" + "@google-cloud/container": "^1.1.1" }, "devDependencies": { "chai": "^4.2.0", From b3ef61c6bc27714b84c211e221a13f436e75807c Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Tue, 18 Jun 2019 10:07:28 -0700 Subject: [PATCH 131/371] build: switch to GitHub magic proxy (#208) --- packages/google-container/synth.metadata | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 8247743a40b..0f330ac8729 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-06-05T14:14:12.022698Z", + "updateTime": "2019-06-18T00:58:16.756802Z", "sources": [ { "generator": { "name": "artman", - "version": "0.23.1", - "dockerImage": "googleapis/artman@sha256:9d5cae1454da64ac3a87028f8ef486b04889e351c83bb95e83b8fab3959faed0" + "version": "0.26.0", + "dockerImage": "googleapis/artman@sha256:6db0735b0d3beec5b887153a2a7c7411fc7bb53f73f6f389a822096bd14a3a15" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "47c142a7cecc6efc9f6f8af804b8be55392b795b", - "internalRef": "251635729" + "sha": "384aa843867c4d17756d14a01f047b6368494d32", + "internalRef": "253675319" } }, { From 4ab702c51109c52a718eca381a573d17e8bc83a5 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Thu, 20 Jun 2019 17:14:19 -0700 Subject: [PATCH 132/371] fix(docs): provide clarification re: gke vs. Kubernetes (#207) --- packages/google-container/.readme-partials.yaml | 16 +++++++++++++--- packages/google-container/README.md | 8 ++++++++ packages/google-container/synth.metadata | 4 ++-- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/packages/google-container/.readme-partials.yaml b/packages/google-container/.readme-partials.yaml index 466f731c0e1..b2de80b4940 100644 --- a/packages/google-container/.readme-partials.yaml +++ b/packages/google-container/.readme-partials.yaml @@ -1,5 +1,15 @@ introduction: |- - > Node.js idiomatic client for [Kubernetes Engine][product-docs] cluster management. + > Node.js idiomatic client for [Kubernetes Engine][product-docs] cluster management. - [Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/) is used for - building and managing container based applications, powered by the open source Kubernetes technology. \ No newline at end of file + [Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/) is used for + building and managing container based applications, powered by the open source Kubernetes technology. +body: |- + + ## Relationship to Kubernetes + + `@google-cloud/container` provides a high level API for creating and managing + [Google Kubernetes Engine](https://cloud.google.com/gke) clusters on Google Cloud. + + To run commands against the clusters created, you will need to use the + [Kubernetes API](https://kubernetes.io/docs/reference/using-api/api-overview/) + (and the associated kubectl command-line interface). diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 99833de86d8..637e22401ff 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -79,6 +79,14 @@ npm install @google-cloud/container ``` +## Relationship to Kubernetes + +`@google-cloud/container` provides a high level API for creating and managing +[Google Kubernetes Engine](https://cloud.google.com/gke) clusters on Google Cloud. + +To run commands against the clusters created, you will need to use the +[Kubernetes API](https://kubernetes.io/docs/reference/using-api/api-overview/) +(and the associated kubectl command-line interface). ## Samples diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 0f330ac8729..dc844fa0b76 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "384aa843867c4d17756d14a01f047b6368494d32", - "internalRef": "253675319" + "sha": "afa7c03170dfeacb3399079f8c955faf14eb4a67", + "internalRef": "253272509" } }, { From 1feeb88b5e926dada4f6e2230c5dc7544958b676 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 20 Jun 2019 19:24:45 -0700 Subject: [PATCH 133/371] chore: release 1.1.2 (#209) * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json [ci skip] --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 0a6378c2bfb..0db9825873d 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [1.1.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.1.1...v1.1.2) (2019-06-21) + + +### Bug Fixes + +* **docs:** provide clarification re: gke vs. Kubernetes ([#207](https://www.github.com/googleapis/nodejs-cloud-container/issues/207)) ([bc8e2cc](https://www.github.com/googleapis/nodejs-cloud-container/commit/bc8e2cc)) + ### [1.1.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.1.0...v1.1.1) (2019-06-14) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 23caf785d42..59cf1866ebe 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.1.1", + "version": "1.1.2", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index f2c6921a6e0..505830ea5f3 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.1.1" + "@google-cloud/container": "^1.1.2" }, "devDependencies": { "chai": "^4.2.0", From cbb9701823bc0e8e89bf31ab2f4519a2e08dc93e Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Tue, 25 Jun 2019 16:42:20 -0700 Subject: [PATCH 134/371] fix(docs): link to reference docs section on googleapis.dev (#210) * fix(docs): reference docs should link to section of googleapis.dev with API reference * fix(docs): make anchors work in jsdoc --- packages/google-container/.jsdoc.js | 3 +++ packages/google-container/README.md | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index fcf43305bea..06808e1920a 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -41,5 +41,8 @@ module.exports = { sourceFiles: false, systemName: '@google-cloud/container', theme: 'lumen' + }, + markdown: { + idInHeadings: true } }; diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 637e22401ff..4314c7bb99c 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -130,10 +130,12 @@ Apache Version 2.0 See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/master/LICENSE) -[client-docs]: https://googleapis.dev/nodejs/container/latest +[client-docs]: https://googleapis.dev/nodejs/container/latest#reference [product-docs]: https://cloud.google.com/kubernetes-engine [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=container.googleapis.com -[auth]: https://cloud.google.com/docs/authentication/getting-started \ No newline at end of file +[auth]: https://cloud.google.com/docs/authentication/getting-started + +
From 1b1366759b6da44f9d2ecc63c6ae891f83cfdeed Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 26 Jun 2019 15:34:29 -0700 Subject: [PATCH 135/371] chore: release 1.1.3 (#211) * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json [ci skip] --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 0db9825873d..1b97f4367f5 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [1.1.3](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.1.2...v1.1.3) (2019-06-26) + + +### Bug Fixes + +* **docs:** link to reference docs section on googleapis.dev ([#210](https://www.github.com/googleapis/nodejs-cloud-container/issues/210)) ([cd81c9c](https://www.github.com/googleapis/nodejs-cloud-container/commit/cd81c9c)) + ### [1.1.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.1.1...v1.1.2) (2019-06-21) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 59cf1866ebe..41e98084ca3 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.1.2", + "version": "1.1.3", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 505830ea5f3..29b0b5948a2 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.1.2" + "@google-cloud/container": "^1.1.3" }, "devDependencies": { "chai": "^4.2.0", From f4fc4e6744a2d6ef2f0b23f7676ad495a167781d Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 28 Jun 2019 10:05:25 -0700 Subject: [PATCH 136/371] build: use config file for linkinator (#212) --- packages/google-container/linkinator.config.json | 7 +++++++ packages/google-container/package.json | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 packages/google-container/linkinator.config.json diff --git a/packages/google-container/linkinator.config.json b/packages/google-container/linkinator.config.json new file mode 100644 index 00000000000..d780d6bfff5 --- /dev/null +++ b/packages/google-container/linkinator.config.json @@ -0,0 +1,7 @@ +{ + "recurse": true, + "skip": [ + "https://codecov.io/gh/googleapis/", + "www.googleapis.com" + ] +} diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 41e98084ca3..83630f82369 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -33,7 +33,7 @@ "docs": "jsdoc -c .jsdoc.js", "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000", "fix": "eslint --fix '**/*.js'", - "docs-test": "linkinator docs -r --skip www.googleapis.com", + "docs-test": "linkinator docs", "predocs-test": "npm run docs" }, "dependencies": { @@ -48,7 +48,7 @@ "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.6.2", "jsdoc-baseline": "^0.1.0", - "linkinator": "^1.4.2", + "linkinator": "^1.5.0", "mocha": "^6.1.4", "nyc": "^14.1.1", "power-assert": "^1.6.1", From e288e0cd7bf06be1b165f233daa9966b93b44ff1 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 26 Jul 2019 18:57:41 +0300 Subject: [PATCH 137/371] chore(deps): update linters (#215) --- packages/google-container/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 83630f82369..0d78679bfc5 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -41,8 +41,8 @@ }, "devDependencies": { "codecov": "^3.5.0", - "eslint": "^5.16.0", - "eslint-config-prettier": "^4.3.0", + "eslint": "^6.0.0", + "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^9.0.1", "eslint-plugin-prettier": "^3.1.0", "intelli-espower-loader": "^1.0.1", From 7679a70e5ed314451f875ed2447c096ee577f571 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 31 Jul 2019 08:33:02 -0700 Subject: [PATCH 138/371] docs: use the jsdoc-fresh theme (#216) --- packages/google-container/.jsdoc.js | 2 +- packages/google-container/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index 06808e1920a..cfc9d66e4e5 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -20,7 +20,7 @@ module.exports = { opts: { readme: './README.md', package: './package.json', - template: './node_modules/jsdoc-baseline', + template: './node_modules/jsdoc-fresh', recurse: true, verbose: true, destination: './docs/' diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 0d78679bfc5..7928de97581 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -47,7 +47,7 @@ "eslint-plugin-prettier": "^3.1.0", "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.6.2", - "jsdoc-baseline": "^0.1.0", + "jsdoc-fresh": "^1.0.1", "linkinator": "^1.5.0", "mocha": "^6.1.4", "nyc": "^14.1.1", From 589a53345cd62f487616f04ce7d87af5b079b25e Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 31 Jul 2019 16:05:02 -0700 Subject: [PATCH 139/371] docs: document apiEndpoint over servicePath (#217) --- packages/google-container/src/v1/cluster_manager_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index adc8c1ec83f..ad861ebd9d7 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -51,7 +51,7 @@ class ClusterManagerClient { * your project ID will be detected automatically. * @param {function} [options.promise] - Custom promise module to use instead * of native Promises. - * @param {string} [options.servicePath] - The domain name of the + * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. */ constructor(opts) { From 8c86ae8fcac8b05de008ba0c97cc8007c1ce1eca Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 2 Aug 2019 10:48:15 -0700 Subject: [PATCH 140/371] [CHANGE ME] Re-generated to pick up changes in the API or client library generator. (#220) --- packages/google-container/protos/protos.json | 3096 +++++++++++++++++ .../src/service_proto_list.json | 1 + .../src/v1/cluster_manager_client.js | 30 + packages/google-container/synth.metadata | 10 +- 4 files changed, 3132 insertions(+), 5 deletions(-) create mode 100644 packages/google-container/protos/protos.json create mode 100644 packages/google-container/src/service_proto_list.json diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json new file mode 100644 index 00000000000..22a7751adf9 --- /dev/null +++ b/packages/google-container/protos/protos.json @@ -0,0 +1,3096 @@ +{ + "nested": { + "google": { + "nested": { + "container": { + "nested": { + "v1": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/container/v1;container", + "java_multiple_files": true, + "java_outer_classname": "ClusterServiceProto", + "java_package": "com.google.container.v1", + "csharp_namespace": "Google.Cloud.Container.V1", + "php_namespace": "Google\\Cloud\\Container\\V1" + }, + "nested": { + "ClusterManager": { + "methods": { + "ListClusters": { + "requestType": "ListClustersRequest", + "responseType": "ListClustersResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/clusters", + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters" + } + }, + "GetCluster": { + "requestType": "GetClusterRequest", + "responseType": "Cluster", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/clusters/*}", + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }, + "CreateCluster": { + "requestType": "CreateClusterRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/clusters", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters", + "(google.api.http).additional_bindings.body": "*" + } + }, + "UpdateCluster": { + "requestType": "UpdateClusterRequest", + "responseType": "Operation", + "options": { + "(google.api.http).put": "/v1/{name=projects/*/locations/*/clusters/*}", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.put": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", + "(google.api.http).additional_bindings.body": "*" + } + }, + "UpdateNodePool": { + "requestType": "UpdateNodePoolRequest", + "responseType": "Operation", + "options": { + "(google.api.http).put": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetNodePoolAutoscaling": { + "requestType": "SetNodePoolAutoscalingRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetLoggingService": { + "requestType": "SetLoggingServiceRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setLogging", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetMonitoringService": { + "requestType": "SetMonitoringServiceRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetAddonsConfig": { + "requestType": "SetAddonsConfigRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setAddons", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetLocations": { + "requestType": "SetLocationsRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setLocations", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations", + "(google.api.http).additional_bindings.body": "*" + } + }, + "UpdateMaster": { + "requestType": "UpdateMasterRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:updateMaster", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetMasterAuth": { + "requestType": "SetMasterAuthRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth", + "(google.api.http).additional_bindings.body": "*" + } + }, + "DeleteCluster": { + "requestType": "DeleteClusterRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/clusters/*}", + "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + }, + "ListOperations": { + "requestType": "ListOperationsRequest", + "responseType": "ListOperationsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/operations", + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/operations" + } + }, + "GetOperation": { + "requestType": "GetOperationRequest", + "responseType": "Operation", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/operations/*}", + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" + } + }, + "CancelOperation": { + "requestType": "CancelOperationRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/operations/*}:cancel", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel", + "(google.api.http).additional_bindings.body": "*" + } + }, + "GetServerConfig": { + "requestType": "GetServerConfigRequest", + "responseType": "ServerConfig", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*}/serverConfig", + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/serverconfig" + } + }, + "ListNodePools": { + "requestType": "ListNodePoolsRequest", + "responseType": "ListNodePoolsResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + } + }, + "GetNodePool": { + "requestType": "GetNodePoolRequest", + "responseType": "NodePool", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }, + "CreateNodePool": { + "requestType": "CreateNodePoolRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", + "(google.api.http).additional_bindings.body": "*" + } + }, + "DeleteNodePool": { + "requestType": "DeleteNodePoolRequest", + "responseType": "Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + }, + "RollbackNodePoolUpgrade": { + "requestType": "RollbackNodePoolUpgradeRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetNodePoolManagement": { + "requestType": "SetNodePoolManagementRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetLabels": { + "requestType": "SetLabelsRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetLegacyAbac": { + "requestType": "SetLegacyAbacRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac", + "(google.api.http).additional_bindings.body": "*" + } + }, + "StartIPRotation": { + "requestType": "StartIPRotationRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation", + "(google.api.http).additional_bindings.body": "*" + } + }, + "CompleteIPRotation": { + "requestType": "CompleteIPRotationRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetNodePoolSize": { + "requestType": "SetNodePoolSizeRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetNetworkPolicy": { + "requestType": "SetNetworkPolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy", + "(google.api.http).additional_bindings.body": "*" + } + }, + "SetMaintenancePolicy": { + "requestType": "SetMaintenancePolicyRequest", + "responseType": "Operation", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy", + "(google.api.http).body": "*", + "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy", + "(google.api.http).additional_bindings.body": "*" + } + } + } + }, + "NodeConfig": { + "fields": { + "machineType": { + "type": "string", + "id": 1 + }, + "diskSizeGb": { + "type": "int32", + "id": 2 + }, + "oauthScopes": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "serviceAccount": { + "type": "string", + "id": 9 + }, + "metadata": { + "keyType": "string", + "type": "string", + "id": 4 + }, + "imageType": { + "type": "string", + "id": 5 + }, + "labels": { + "keyType": "string", + "type": "string", + "id": 6 + }, + "localSsdCount": { + "type": "int32", + "id": 7 + }, + "tags": { + "rule": "repeated", + "type": "string", + "id": 8 + }, + "preemptible": { + "type": "bool", + "id": 10 + }, + "accelerators": { + "rule": "repeated", + "type": "AcceleratorConfig", + "id": 11 + }, + "diskType": { + "type": "string", + "id": 12 + }, + "minCpuPlatform": { + "type": "string", + "id": 13 + } + } + }, + "MasterAuth": { + "fields": { + "username": { + "type": "string", + "id": 1 + }, + "password": { + "type": "string", + "id": 2 + }, + "clientCertificateConfig": { + "type": "ClientCertificateConfig", + "id": 3 + }, + "clusterCaCertificate": { + "type": "string", + "id": 100 + }, + "clientCertificate": { + "type": "string", + "id": 101 + }, + "clientKey": { + "type": "string", + "id": 102 + } + } + }, + "ClientCertificateConfig": { + "fields": { + "issueClientCertificate": { + "type": "bool", + "id": 1 + } + } + }, + "AddonsConfig": { + "fields": { + "httpLoadBalancing": { + "type": "HttpLoadBalancing", + "id": 1 + }, + "horizontalPodAutoscaling": { + "type": "HorizontalPodAutoscaling", + "id": 2 + }, + "kubernetesDashboard": { + "type": "KubernetesDashboard", + "id": 3 + }, + "networkPolicyConfig": { + "type": "NetworkPolicyConfig", + "id": 4 + } + } + }, + "HttpLoadBalancing": { + "fields": { + "disabled": { + "type": "bool", + "id": 1 + } + } + }, + "HorizontalPodAutoscaling": { + "fields": { + "disabled": { + "type": "bool", + "id": 1 + } + } + }, + "KubernetesDashboard": { + "fields": { + "disabled": { + "type": "bool", + "id": 1 + } + } + }, + "NetworkPolicyConfig": { + "fields": { + "disabled": { + "type": "bool", + "id": 1 + } + } + }, + "PrivateClusterConfig": { + "fields": { + "enablePrivateNodes": { + "type": "bool", + "id": 1 + }, + "enablePrivateEndpoint": { + "type": "bool", + "id": 2 + }, + "masterIpv4CidrBlock": { + "type": "string", + "id": 3 + }, + "privateEndpoint": { + "type": "string", + "id": 4 + }, + "publicEndpoint": { + "type": "string", + "id": 5 + } + } + }, + "MasterAuthorizedNetworksConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + }, + "cidrBlocks": { + "rule": "repeated", + "type": "CidrBlock", + "id": 2 + } + }, + "nested": { + "CidrBlock": { + "fields": { + "displayName": { + "type": "string", + "id": 1 + }, + "cidrBlock": { + "type": "string", + "id": 2 + } + } + } + } + }, + "LegacyAbac": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, + "NetworkPolicy": { + "fields": { + "provider": { + "type": "Provider", + "id": 1 + }, + "enabled": { + "type": "bool", + "id": 2 + } + }, + "nested": { + "Provider": { + "values": { + "PROVIDER_UNSPECIFIED": 0, + "CALICO": 1 + } + } + } + }, + "IPAllocationPolicy": { + "fields": { + "useIpAliases": { + "type": "bool", + "id": 1 + }, + "createSubnetwork": { + "type": "bool", + "id": 2 + }, + "subnetworkName": { + "type": "string", + "id": 3 + }, + "clusterIpv4Cidr": { + "type": "string", + "id": 4, + "options": { + "deprecated": true + } + }, + "nodeIpv4Cidr": { + "type": "string", + "id": 5, + "options": { + "deprecated": true + } + }, + "servicesIpv4Cidr": { + "type": "string", + "id": 6, + "options": { + "deprecated": true + } + }, + "clusterSecondaryRangeName": { + "type": "string", + "id": 7 + }, + "servicesSecondaryRangeName": { + "type": "string", + "id": 8 + }, + "clusterIpv4CidrBlock": { + "type": "string", + "id": 9 + }, + "nodeIpv4CidrBlock": { + "type": "string", + "id": 10 + }, + "servicesIpv4CidrBlock": { + "type": "string", + "id": 11 + } + } + }, + "Cluster": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "description": { + "type": "string", + "id": 2 + }, + "initialNodeCount": { + "type": "int32", + "id": 3 + }, + "nodeConfig": { + "type": "NodeConfig", + "id": 4 + }, + "masterAuth": { + "type": "MasterAuth", + "id": 5 + }, + "loggingService": { + "type": "string", + "id": 6 + }, + "monitoringService": { + "type": "string", + "id": 7 + }, + "network": { + "type": "string", + "id": 8 + }, + "clusterIpv4Cidr": { + "type": "string", + "id": 9 + }, + "addonsConfig": { + "type": "AddonsConfig", + "id": 10 + }, + "subnetwork": { + "type": "string", + "id": 11 + }, + "nodePools": { + "rule": "repeated", + "type": "NodePool", + "id": 12 + }, + "locations": { + "rule": "repeated", + "type": "string", + "id": 13 + }, + "enableKubernetesAlpha": { + "type": "bool", + "id": 14 + }, + "resourceLabels": { + "keyType": "string", + "type": "string", + "id": 15 + }, + "labelFingerprint": { + "type": "string", + "id": 16 + }, + "legacyAbac": { + "type": "LegacyAbac", + "id": 18 + }, + "networkPolicy": { + "type": "NetworkPolicy", + "id": 19 + }, + "ipAllocationPolicy": { + "type": "IPAllocationPolicy", + "id": 20 + }, + "masterAuthorizedNetworksConfig": { + "type": "MasterAuthorizedNetworksConfig", + "id": 22 + }, + "maintenancePolicy": { + "type": "MaintenancePolicy", + "id": 23 + }, + "networkConfig": { + "type": "NetworkConfig", + "id": 27 + }, + "privateClusterConfig": { + "type": "PrivateClusterConfig", + "id": 37 + }, + "selfLink": { + "type": "string", + "id": 100 + }, + "zone": { + "type": "string", + "id": 101, + "options": { + "deprecated": true + } + }, + "endpoint": { + "type": "string", + "id": 102 + }, + "initialClusterVersion": { + "type": "string", + "id": 103 + }, + "currentMasterVersion": { + "type": "string", + "id": 104 + }, + "currentNodeVersion": { + "type": "string", + "id": 105, + "options": { + "deprecated": true + } + }, + "createTime": { + "type": "string", + "id": 106 + }, + "status": { + "type": "Status", + "id": 107 + }, + "statusMessage": { + "type": "string", + "id": 108 + }, + "nodeIpv4CidrSize": { + "type": "int32", + "id": 109 + }, + "servicesIpv4Cidr": { + "type": "string", + "id": 110 + }, + "instanceGroupUrls": { + "rule": "repeated", + "type": "string", + "id": 111, + "options": { + "deprecated": true + } + }, + "currentNodeCount": { + "type": "int32", + "id": 112 + }, + "expireTime": { + "type": "string", + "id": 113 + }, + "location": { + "type": "string", + "id": 114 + } + }, + "nested": { + "Status": { + "values": { + "STATUS_UNSPECIFIED": 0, + "PROVISIONING": 1, + "RUNNING": 2, + "RECONCILING": 3, + "STOPPING": 4, + "ERROR": 5, + "DEGRADED": 6 + } + } + } + }, + "ClusterUpdate": { + "fields": { + "desiredNodeVersion": { + "type": "string", + "id": 4 + }, + "desiredMonitoringService": { + "type": "string", + "id": 5 + }, + "desiredAddonsConfig": { + "type": "AddonsConfig", + "id": 6 + }, + "desiredNodePoolId": { + "type": "string", + "id": 7 + }, + "desiredImageType": { + "type": "string", + "id": 8 + }, + "desiredNodePoolAutoscaling": { + "type": "NodePoolAutoscaling", + "id": 9 + }, + "desiredLocations": { + "rule": "repeated", + "type": "string", + "id": 10 + }, + "desiredMasterAuthorizedNetworksConfig": { + "type": "MasterAuthorizedNetworksConfig", + "id": 12 + }, + "desiredMasterVersion": { + "type": "string", + "id": 100 + } + } + }, + "Operation": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "operationType": { + "type": "Type", + "id": 3 + }, + "status": { + "type": "Status", + "id": 4 + }, + "detail": { + "type": "string", + "id": 8 + }, + "statusMessage": { + "type": "string", + "id": 5 + }, + "selfLink": { + "type": "string", + "id": 6 + }, + "targetLink": { + "type": "string", + "id": 7 + }, + "location": { + "type": "string", + "id": 9 + }, + "startTime": { + "type": "string", + "id": 10 + }, + "endTime": { + "type": "string", + "id": 11 + } + }, + "nested": { + "Status": { + "values": { + "STATUS_UNSPECIFIED": 0, + "PENDING": 1, + "RUNNING": 2, + "DONE": 3, + "ABORTING": 4 + } + }, + "Type": { + "values": { + "TYPE_UNSPECIFIED": 0, + "CREATE_CLUSTER": 1, + "DELETE_CLUSTER": 2, + "UPGRADE_MASTER": 3, + "UPGRADE_NODES": 4, + "REPAIR_CLUSTER": 5, + "UPDATE_CLUSTER": 6, + "CREATE_NODE_POOL": 7, + "DELETE_NODE_POOL": 8, + "SET_NODE_POOL_MANAGEMENT": 9, + "AUTO_REPAIR_NODES": 10, + "AUTO_UPGRADE_NODES": 11, + "SET_LABELS": 12, + "SET_MASTER_AUTH": 13, + "SET_NODE_POOL_SIZE": 14, + "SET_NETWORK_POLICY": 15, + "SET_MAINTENANCE_POLICY": 16 + } + } + } + }, + "CreateClusterRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "cluster": { + "type": "Cluster", + "id": 3 + }, + "parent": { + "type": "string", + "id": 5 + } + } + }, + "GetClusterRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "name": { + "type": "string", + "id": 5 + } + } + }, + "UpdateClusterRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "update": { + "type": "ClusterUpdate", + "id": 4 + }, + "name": { + "type": "string", + "id": 5 + } + } + }, + "UpdateNodePoolRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "nodePoolId": { + "type": "string", + "id": 4, + "options": { + "deprecated": true + } + }, + "nodeVersion": { + "type": "string", + "id": 5 + }, + "imageType": { + "type": "string", + "id": 6 + }, + "name": { + "type": "string", + "id": 8 + } + } + }, + "SetNodePoolAutoscalingRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "nodePoolId": { + "type": "string", + "id": 4, + "options": { + "deprecated": true + } + }, + "autoscaling": { + "type": "NodePoolAutoscaling", + "id": 5 + }, + "name": { + "type": "string", + "id": 6 + } + } + }, + "SetLoggingServiceRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2 + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "loggingService": { + "type": "string", + "id": 4 + }, + "name": { + "type": "string", + "id": 5 + } + } + }, + "SetMonitoringServiceRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "monitoringService": { + "type": "string", + "id": 4 + }, + "name": { + "type": "string", + "id": 6 + } + } + }, + "SetAddonsConfigRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "addonsConfig": { + "type": "AddonsConfig", + "id": 4 + }, + "name": { + "type": "string", + "id": 6 + } + } + }, + "SetLocationsRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "locations": { + "rule": "repeated", + "type": "string", + "id": 4 + }, + "name": { + "type": "string", + "id": 6 + } + } + }, + "UpdateMasterRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "masterVersion": { + "type": "string", + "id": 4 + }, + "name": { + "type": "string", + "id": 7 + } + } + }, + "SetMasterAuthRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "action": { + "type": "Action", + "id": 4 + }, + "update": { + "type": "MasterAuth", + "id": 5 + }, + "name": { + "type": "string", + "id": 7 + } + }, + "nested": { + "Action": { + "values": { + "UNKNOWN": 0, + "SET_PASSWORD": 1, + "GENERATE_PASSWORD": 2, + "SET_USERNAME": 3 + } + } + } + }, + "DeleteClusterRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "name": { + "type": "string", + "id": 4 + } + } + }, + "ListClustersRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "parent": { + "type": "string", + "id": 4 + } + } + }, + "ListClustersResponse": { + "fields": { + "clusters": { + "rule": "repeated", + "type": "Cluster", + "id": 1 + }, + "missingZones": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, + "GetOperationRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "operationId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "name": { + "type": "string", + "id": 5 + } + } + }, + "ListOperationsRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "parent": { + "type": "string", + "id": 4 + } + } + }, + "CancelOperationRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "operationId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "name": { + "type": "string", + "id": 4 + } + } + }, + "ListOperationsResponse": { + "fields": { + "operations": { + "rule": "repeated", + "type": "Operation", + "id": 1 + }, + "missingZones": { + "rule": "repeated", + "type": "string", + "id": 2 + } + } + }, + "GetServerConfigRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "name": { + "type": "string", + "id": 4 + } + } + }, + "ServerConfig": { + "fields": { + "defaultClusterVersion": { + "type": "string", + "id": 1 + }, + "validNodeVersions": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "defaultImageType": { + "type": "string", + "id": 4 + }, + "validImageTypes": { + "rule": "repeated", + "type": "string", + "id": 5 + }, + "validMasterVersions": { + "rule": "repeated", + "type": "string", + "id": 6 + } + } + }, + "CreateNodePoolRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "nodePool": { + "type": "NodePool", + "id": 4 + }, + "parent": { + "type": "string", + "id": 6 + } + } + }, + "DeleteNodePoolRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "nodePoolId": { + "type": "string", + "id": 4, + "options": { + "deprecated": true + } + }, + "name": { + "type": "string", + "id": 6 + } + } + }, + "ListNodePoolsRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "parent": { + "type": "string", + "id": 5 + } + } + }, + "GetNodePoolRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "nodePoolId": { + "type": "string", + "id": 4, + "options": { + "deprecated": true + } + }, + "name": { + "type": "string", + "id": 6 + } + } + }, + "NodePool": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "config": { + "type": "NodeConfig", + "id": 2 + }, + "initialNodeCount": { + "type": "int32", + "id": 3 + }, + "selfLink": { + "type": "string", + "id": 100 + }, + "version": { + "type": "string", + "id": 101 + }, + "instanceGroupUrls": { + "rule": "repeated", + "type": "string", + "id": 102 + }, + "status": { + "type": "Status", + "id": 103 + }, + "statusMessage": { + "type": "string", + "id": 104 + }, + "autoscaling": { + "type": "NodePoolAutoscaling", + "id": 4 + }, + "management": { + "type": "NodeManagement", + "id": 5 + } + }, + "nested": { + "Status": { + "values": { + "STATUS_UNSPECIFIED": 0, + "PROVISIONING": 1, + "RUNNING": 2, + "RUNNING_WITH_ERROR": 3, + "RECONCILING": 4, + "STOPPING": 5, + "ERROR": 6 + } + } + } + }, + "NodeManagement": { + "fields": { + "autoUpgrade": { + "type": "bool", + "id": 1 + }, + "autoRepair": { + "type": "bool", + "id": 2 + }, + "upgradeOptions": { + "type": "AutoUpgradeOptions", + "id": 10 + } + } + }, + "AutoUpgradeOptions": { + "fields": { + "autoUpgradeStartTime": { + "type": "string", + "id": 1 + }, + "description": { + "type": "string", + "id": 2 + } + } + }, + "MaintenancePolicy": { + "fields": { + "window": { + "type": "MaintenanceWindow", + "id": 1 + } + } + }, + "MaintenanceWindow": { + "oneofs": { + "policy": { + "oneof": [ + "dailyMaintenanceWindow" + ] + } + }, + "fields": { + "dailyMaintenanceWindow": { + "type": "DailyMaintenanceWindow", + "id": 2 + } + } + }, + "DailyMaintenanceWindow": { + "fields": { + "startTime": { + "type": "string", + "id": 2 + }, + "duration": { + "type": "string", + "id": 3 + } + } + }, + "SetNodePoolManagementRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "nodePoolId": { + "type": "string", + "id": 4, + "options": { + "deprecated": true + } + }, + "management": { + "type": "NodeManagement", + "id": 5 + }, + "name": { + "type": "string", + "id": 7 + } + } + }, + "SetNodePoolSizeRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "nodePoolId": { + "type": "string", + "id": 4, + "options": { + "deprecated": true + } + }, + "nodeCount": { + "type": "int32", + "id": 5 + }, + "name": { + "type": "string", + "id": 7 + } + } + }, + "RollbackNodePoolUpgradeRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "nodePoolId": { + "type": "string", + "id": 4, + "options": { + "deprecated": true + } + }, + "name": { + "type": "string", + "id": 6 + } + } + }, + "ListNodePoolsResponse": { + "fields": { + "nodePools": { + "rule": "repeated", + "type": "NodePool", + "id": 1 + } + } + }, + "NodePoolAutoscaling": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + }, + "minNodeCount": { + "type": "int32", + "id": 2 + }, + "maxNodeCount": { + "type": "int32", + "id": 3 + } + } + }, + "SetLabelsRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "resourceLabels": { + "keyType": "string", + "type": "string", + "id": 4 + }, + "labelFingerprint": { + "type": "string", + "id": 5 + }, + "name": { + "type": "string", + "id": 7 + } + } + }, + "SetLegacyAbacRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "enabled": { + "type": "bool", + "id": 4 + }, + "name": { + "type": "string", + "id": 6 + } + } + }, + "StartIPRotationRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "name": { + "type": "string", + "id": 6 + }, + "rotateCredentials": { + "type": "bool", + "id": 7 + } + } + }, + "CompleteIPRotationRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "name": { + "type": "string", + "id": 7 + } + } + }, + "AcceleratorConfig": { + "fields": { + "acceleratorCount": { + "type": "int64", + "id": 1 + }, + "acceleratorType": { + "type": "string", + "id": 2 + } + } + }, + "SetNetworkPolicyRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1, + "options": { + "deprecated": true + } + }, + "zone": { + "type": "string", + "id": 2, + "options": { + "deprecated": true + } + }, + "clusterId": { + "type": "string", + "id": 3, + "options": { + "deprecated": true + } + }, + "networkPolicy": { + "type": "NetworkPolicy", + "id": 4 + }, + "name": { + "type": "string", + "id": 6 + } + } + }, + "SetMaintenancePolicyRequest": { + "fields": { + "projectId": { + "type": "string", + "id": 1 + }, + "zone": { + "type": "string", + "id": 2 + }, + "clusterId": { + "type": "string", + "id": 3 + }, + "maintenancePolicy": { + "type": "MaintenancePolicy", + "id": 4 + }, + "name": { + "type": "string", + "id": 5 + } + } + }, + "NetworkConfig": { + "fields": { + "network": { + "type": "string", + "id": 1 + }, + "subnetwork": { + "type": "string", + "id": 2 + } + } + } + } + } + } + }, + "api": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", + "java_multiple_files": true, + "java_outer_classname": "HttpProto", + "java_package": "com.google.api", + "objc_class_prefix": "GAPI", + "cc_enable_arenas": true + }, + "nested": { + "http": { + "type": "HttpRule", + "id": 72295728, + "extend": "google.protobuf.MethodOptions" + }, + "Http": { + "fields": { + "rules": { + "rule": "repeated", + "type": "HttpRule", + "id": 1 + }, + "fullyDecodeReservedExpansion": { + "type": "bool", + "id": 2 + } + } + }, + "HttpRule": { + "oneofs": { + "pattern": { + "oneof": [ + "get", + "put", + "post", + "delete", + "patch", + "custom" + ] + } + }, + "fields": { + "selector": { + "type": "string", + "id": 1 + }, + "get": { + "type": "string", + "id": 2 + }, + "put": { + "type": "string", + "id": 3 + }, + "post": { + "type": "string", + "id": 4 + }, + "delete": { + "type": "string", + "id": 5 + }, + "patch": { + "type": "string", + "id": 6 + }, + "custom": { + "type": "CustomHttpPattern", + "id": 8 + }, + "body": { + "type": "string", + "id": 7 + }, + "responseBody": { + "type": "string", + "id": 12 + }, + "additionalBindings": { + "rule": "repeated", + "type": "HttpRule", + "id": 11 + } + } + }, + "CustomHttpPattern": { + "fields": { + "kind": { + "type": "string", + "id": 1 + }, + "path": { + "type": "string", + "id": 2 + } + } + } + } + }, + "protobuf": { + "options": { + "go_package": "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor", + "java_package": "com.google.protobuf", + "java_outer_classname": "DescriptorProtos", + "csharp_namespace": "Google.Protobuf.Reflection", + "objc_class_prefix": "GPB", + "cc_enable_arenas": true, + "optimize_for": "SPEED" + }, + "nested": { + "FileDescriptorSet": { + "fields": { + "file": { + "rule": "repeated", + "type": "FileDescriptorProto", + "id": 1 + } + } + }, + "FileDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "package": { + "type": "string", + "id": 2 + }, + "dependency": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "publicDependency": { + "rule": "repeated", + "type": "int32", + "id": 10, + "options": { + "packed": false + } + }, + "weakDependency": { + "rule": "repeated", + "type": "int32", + "id": 11, + "options": { + "packed": false + } + }, + "messageType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 4 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 5 + }, + "service": { + "rule": "repeated", + "type": "ServiceDescriptorProto", + "id": 6 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 7 + }, + "options": { + "type": "FileOptions", + "id": 8 + }, + "sourceCodeInfo": { + "type": "SourceCodeInfo", + "id": 9 + }, + "syntax": { + "type": "string", + "id": 12 + } + } + }, + "DescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "field": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 2 + }, + "extension": { + "rule": "repeated", + "type": "FieldDescriptorProto", + "id": 6 + }, + "nestedType": { + "rule": "repeated", + "type": "DescriptorProto", + "id": 3 + }, + "enumType": { + "rule": "repeated", + "type": "EnumDescriptorProto", + "id": 4 + }, + "extensionRange": { + "rule": "repeated", + "type": "ExtensionRange", + "id": 5 + }, + "oneofDecl": { + "rule": "repeated", + "type": "OneofDescriptorProto", + "id": 8 + }, + "options": { + "type": "MessageOptions", + "id": 7 + }, + "reservedRange": { + "rule": "repeated", + "type": "ReservedRange", + "id": 9 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 10 + } + }, + "nested": { + "ExtensionRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "ExtensionRangeOptions", + "id": 3 + } + } + }, + "ReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "ExtensionRangeOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "FieldDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 3 + }, + "label": { + "type": "Label", + "id": 4 + }, + "type": { + "type": "Type", + "id": 5 + }, + "typeName": { + "type": "string", + "id": 6 + }, + "extendee": { + "type": "string", + "id": 2 + }, + "defaultValue": { + "type": "string", + "id": 7 + }, + "oneofIndex": { + "type": "int32", + "id": 9 + }, + "jsonName": { + "type": "string", + "id": 10 + }, + "options": { + "type": "FieldOptions", + "id": 8 + } + }, + "nested": { + "Type": { + "values": { + "TYPE_DOUBLE": 1, + "TYPE_FLOAT": 2, + "TYPE_INT64": 3, + "TYPE_UINT64": 4, + "TYPE_INT32": 5, + "TYPE_FIXED64": 6, + "TYPE_FIXED32": 7, + "TYPE_BOOL": 8, + "TYPE_STRING": 9, + "TYPE_GROUP": 10, + "TYPE_MESSAGE": 11, + "TYPE_BYTES": 12, + "TYPE_UINT32": 13, + "TYPE_ENUM": 14, + "TYPE_SFIXED32": 15, + "TYPE_SFIXED64": 16, + "TYPE_SINT32": 17, + "TYPE_SINT64": 18 + } + }, + "Label": { + "values": { + "LABEL_OPTIONAL": 1, + "LABEL_REQUIRED": 2, + "LABEL_REPEATED": 3 + } + } + } + }, + "OneofDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "options": { + "type": "OneofOptions", + "id": 2 + } + } + }, + "EnumDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "value": { + "rule": "repeated", + "type": "EnumValueDescriptorProto", + "id": 2 + }, + "options": { + "type": "EnumOptions", + "id": 3 + }, + "reservedRange": { + "rule": "repeated", + "type": "EnumReservedRange", + "id": 4 + }, + "reservedName": { + "rule": "repeated", + "type": "string", + "id": 5 + } + }, + "nested": { + "EnumReservedRange": { + "fields": { + "start": { + "type": "int32", + "id": 1 + }, + "end": { + "type": "int32", + "id": 2 + } + } + } + } + }, + "EnumValueDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "number": { + "type": "int32", + "id": 2 + }, + "options": { + "type": "EnumValueOptions", + "id": 3 + } + } + }, + "ServiceDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "method": { + "rule": "repeated", + "type": "MethodDescriptorProto", + "id": 2 + }, + "options": { + "type": "ServiceOptions", + "id": 3 + } + } + }, + "MethodDescriptorProto": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "inputType": { + "type": "string", + "id": 2 + }, + "outputType": { + "type": "string", + "id": 3 + }, + "options": { + "type": "MethodOptions", + "id": 4 + }, + "clientStreaming": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "serverStreaming": { + "type": "bool", + "id": 6, + "options": { + "default": false + } + } + } + }, + "FileOptions": { + "fields": { + "javaPackage": { + "type": "string", + "id": 1 + }, + "javaOuterClassname": { + "type": "string", + "id": 8 + }, + "javaMultipleFiles": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "javaGenerateEqualsAndHash": { + "type": "bool", + "id": 20, + "options": { + "deprecated": true + } + }, + "javaStringCheckUtf8": { + "type": "bool", + "id": 27, + "options": { + "default": false + } + }, + "optimizeFor": { + "type": "OptimizeMode", + "id": 9, + "options": { + "default": "SPEED" + } + }, + "goPackage": { + "type": "string", + "id": 11 + }, + "ccGenericServices": { + "type": "bool", + "id": 16, + "options": { + "default": false + } + }, + "javaGenericServices": { + "type": "bool", + "id": 17, + "options": { + "default": false + } + }, + "pyGenericServices": { + "type": "bool", + "id": 18, + "options": { + "default": false + } + }, + "phpGenericServices": { + "type": "bool", + "id": 42, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 23, + "options": { + "default": false + } + }, + "ccEnableArenas": { + "type": "bool", + "id": 31, + "options": { + "default": false + } + }, + "objcClassPrefix": { + "type": "string", + "id": 36 + }, + "csharpNamespace": { + "type": "string", + "id": 37 + }, + "swiftPrefix": { + "type": "string", + "id": 39 + }, + "phpClassPrefix": { + "type": "string", + "id": 40 + }, + "phpNamespace": { + "type": "string", + "id": 41 + }, + "phpMetadataNamespace": { + "type": "string", + "id": 44 + }, + "rubyPackage": { + "type": "string", + "id": 45 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 38, + 38 + ] + ], + "nested": { + "OptimizeMode": { + "values": { + "SPEED": 1, + "CODE_SIZE": 2, + "LITE_RUNTIME": 3 + } + } + } + }, + "MessageOptions": { + "fields": { + "messageSetWireFormat": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "noStandardDescriptorAccessor": { + "type": "bool", + "id": 2, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "mapEntry": { + "type": "bool", + "id": 7 + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 8, + 8 + ], + [ + 9, + 9 + ] + ] + }, + "FieldOptions": { + "fields": { + "ctype": { + "type": "CType", + "id": 1, + "options": { + "default": "STRING" + } + }, + "packed": { + "type": "bool", + "id": 2 + }, + "jstype": { + "type": "JSType", + "id": 6, + "options": { + "default": "JS_NORMAL" + } + }, + "lazy": { + "type": "bool", + "id": 5, + "options": { + "default": false + } + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "weak": { + "type": "bool", + "id": 10, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 4, + 4 + ] + ], + "nested": { + "CType": { + "values": { + "STRING": 0, + "CORD": 1, + "STRING_PIECE": 2 + } + }, + "JSType": { + "values": { + "JS_NORMAL": 0, + "JS_STRING": 1, + "JS_NUMBER": 2 + } + } + } + }, + "OneofOptions": { + "fields": { + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "EnumOptions": { + "fields": { + "allowAlias": { + "type": "bool", + "id": 2 + }, + "deprecated": { + "type": "bool", + "id": 3, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "reserved": [ + [ + 5, + 5 + ] + ] + }, + "EnumValueOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 1, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "ServiceOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ] + }, + "MethodOptions": { + "fields": { + "deprecated": { + "type": "bool", + "id": 33, + "options": { + "default": false + } + }, + "idempotencyLevel": { + "type": "IdempotencyLevel", + "id": 34, + "options": { + "default": "IDEMPOTENCY_UNKNOWN" + } + }, + "uninterpretedOption": { + "rule": "repeated", + "type": "UninterpretedOption", + "id": 999 + } + }, + "extensions": [ + [ + 1000, + 536870911 + ] + ], + "nested": { + "IdempotencyLevel": { + "values": { + "IDEMPOTENCY_UNKNOWN": 0, + "NO_SIDE_EFFECTS": 1, + "IDEMPOTENT": 2 + } + } + } + }, + "UninterpretedOption": { + "fields": { + "name": { + "rule": "repeated", + "type": "NamePart", + "id": 2 + }, + "identifierValue": { + "type": "string", + "id": 3 + }, + "positiveIntValue": { + "type": "uint64", + "id": 4 + }, + "negativeIntValue": { + "type": "int64", + "id": 5 + }, + "doubleValue": { + "type": "double", + "id": 6 + }, + "stringValue": { + "type": "bytes", + "id": 7 + }, + "aggregateValue": { + "type": "string", + "id": 8 + } + }, + "nested": { + "NamePart": { + "fields": { + "namePart": { + "rule": "required", + "type": "string", + "id": 1 + }, + "isExtension": { + "rule": "required", + "type": "bool", + "id": 2 + } + } + } + } + }, + "SourceCodeInfo": { + "fields": { + "location": { + "rule": "repeated", + "type": "Location", + "id": 1 + } + }, + "nested": { + "Location": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "span": { + "rule": "repeated", + "type": "int32", + "id": 2 + }, + "leadingComments": { + "type": "string", + "id": 3 + }, + "trailingComments": { + "type": "string", + "id": 4 + }, + "leadingDetachedComments": { + "rule": "repeated", + "type": "string", + "id": 6 + } + } + } + } + }, + "GeneratedCodeInfo": { + "fields": { + "annotation": { + "rule": "repeated", + "type": "Annotation", + "id": 1 + } + }, + "nested": { + "Annotation": { + "fields": { + "path": { + "rule": "repeated", + "type": "int32", + "id": 1 + }, + "sourceFile": { + "type": "string", + "id": 2 + }, + "begin": { + "type": "int32", + "id": 3 + }, + "end": { + "type": "int32", + "id": 4 + } + } + } + } + }, + "Empty": { + "fields": {} + } + } + } + } + } + } +} \ No newline at end of file diff --git a/packages/google-container/src/service_proto_list.json b/packages/google-container/src/service_proto_list.json new file mode 100644 index 00000000000..990343ce8ab --- /dev/null +++ b/packages/google-container/src/service_proto_list.json @@ -0,0 +1 @@ +["../protos/google/container/v1/cluster_service.proto"] \ No newline at end of file diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index ad861ebd9d7..be158e6ba1c 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -270,6 +270,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -343,6 +344,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -430,6 +432,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -509,6 +512,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -606,6 +610,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -691,6 +696,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -776,6 +782,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -857,6 +864,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -937,6 +945,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1020,6 +1029,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1106,6 +1116,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1193,6 +1204,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1274,6 +1286,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1342,6 +1355,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1415,6 +1429,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1479,6 +1494,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1546,6 +1562,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1619,6 +1636,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1698,6 +1716,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1778,6 +1797,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1857,6 +1877,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -1937,6 +1958,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -2026,6 +2048,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -2116,6 +2139,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -2193,6 +2217,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -2268,6 +2293,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -2341,6 +2367,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -2424,6 +2451,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -2503,6 +2531,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; @@ -2581,6 +2610,7 @@ class ClusterManagerClient { callback = options; options = {}; } + request = request || {}; options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index dc844fa0b76..261d744effe 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-06-18T00:58:16.756802Z", + "updateTime": "2019-08-02T11:10:14.187910Z", "sources": [ { "generator": { "name": "artman", - "version": "0.26.0", - "dockerImage": "googleapis/artman@sha256:6db0735b0d3beec5b887153a2a7c7411fc7bb53f73f6f389a822096bd14a3a15" + "version": "0.32.0", + "dockerImage": "googleapis/artman@sha256:6929f343c400122d85818195b18613330a12a014bffc1e08499550d40571479d" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "afa7c03170dfeacb3399079f8c955faf14eb4a67", - "internalRef": "253272509" + "sha": "3a40d3a5f5e5a33fd49888a8a33ed021f65c0ccf", + "internalRef": "261297518" } }, { From 6063a8f7edf4bc8ca75d6847503415b1cd24c236 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 26 Aug 2019 09:56:11 -0700 Subject: [PATCH 141/371] fix: include node version with headers (#221) --- .../google-container/src/v1/cluster_manager_client.js | 2 +- packages/google-container/synth.metadata | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index be158e6ba1c..91c18b08255 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -81,7 +81,7 @@ class ClusterManagerClient { // Determine the client header string. const clientHeader = [ - `gl-node/${process.version}`, + `gl-node/${process.versions.node}`, `grpc/${gaxGrpc.grpcVersion}`, `gax/${gax.version}`, `gapic/${VERSION}`, diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 261d744effe..48af2067451 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-08-02T11:10:14.187910Z", + "updateTime": "2019-08-21T11:09:50.077030Z", "sources": [ { "generator": { "name": "artman", - "version": "0.32.0", - "dockerImage": "googleapis/artman@sha256:6929f343c400122d85818195b18613330a12a014bffc1e08499550d40571479d" + "version": "0.34.0", + "dockerImage": "googleapis/artman@sha256:38a27ba6245f96c3e86df7acb2ebcc33b4f186d9e475efe2d64303aec3d4e0ea" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3a40d3a5f5e5a33fd49888a8a33ed021f65c0ccf", - "internalRef": "261297518" + "sha": "11592a15391951348a64f5c303399733b1c5b3b2", + "internalRef": "264425502" } }, { From fcee311fb74f5a374f2fd986a18823c362784313 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 28 Aug 2019 09:05:24 -0700 Subject: [PATCH 142/371] fix(docs): stop linking reference documents to anchor --- packages/google-container/README.md | 4 +--- packages/google-container/synth.metadata | 10 +++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 4314c7bb99c..57b6775a0cd 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -130,12 +130,10 @@ Apache Version 2.0 See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/master/LICENSE) -[client-docs]: https://googleapis.dev/nodejs/container/latest#reference +[client-docs]: https://googleapis.dev/nodejs/container/latest [product-docs]: https://cloud.google.com/kubernetes-engine [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png [projects]: https://console.cloud.google.com/project [billing]: https://support.google.com/cloud/answer/6293499#enable-billing [enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=container.googleapis.com [auth]: https://cloud.google.com/docs/authentication/getting-started - - diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 48af2067451..3b516cac0e4 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-08-21T11:09:50.077030Z", + "updateTime": "2019-08-28T11:09:42.610576Z", "sources": [ { "generator": { "name": "artman", - "version": "0.34.0", - "dockerImage": "googleapis/artman@sha256:38a27ba6245f96c3e86df7acb2ebcc33b4f186d9e475efe2d64303aec3d4e0ea" + "version": "0.35.1", + "dockerImage": "googleapis/artman@sha256:b11c7ea0d0831c54016fb50f4b796d24d1971439b30fbc32a369ba1ac887c384" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "11592a15391951348a64f5c303399733b1c5b3b2", - "internalRef": "264425502" + "sha": "dbd38035c35083507e2f0b839985cf17e212cb1c", + "internalRef": "265796259" } }, { From 4704b8793439350cf0cb4a996a12c5848e6ff22f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 28 Aug 2019 09:16:50 -0700 Subject: [PATCH 143/371] chore: release 1.1.4 (#222) --- packages/google-container/CHANGELOG.md | 8 ++++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 1b97f4367f5..ff6156eea0b 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,14 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [1.1.4](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.1.3...v1.1.4) (2019-08-28) + + +### Bug Fixes + +* include node version with headers ([#221](https://www.github.com/googleapis/nodejs-cloud-container/issues/221)) ([28892af](https://www.github.com/googleapis/nodejs-cloud-container/commit/28892af)) +* **docs:** stop linking reference documents to anchor ([2934b37](https://www.github.com/googleapis/nodejs-cloud-container/commit/2934b37)) + ### [1.1.3](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.1.2...v1.1.3) (2019-06-26) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 7928de97581..5a9f278b17b 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.1.3", + "version": "1.1.4", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 29b0b5948a2..6c59cef74c5 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.1.3" + "@google-cloud/container": "^1.1.4" }, "devDependencies": { "chai": "^4.2.0", From 9482ae159b307893daf021adbfc476077004e727 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 3 Sep 2019 14:05:29 -0700 Subject: [PATCH 144/371] feat: load protos from JSON, grpc-fallback support * [CHANGE ME] Re-generated to pick up changes in the API or client library generator. * fixes * fix webpack.config.js --- packages/google-container/src/browser.js | 21 ++++++ .../src/service_proto_list.json | 1 - .../src/v1/cluster_manager_client.js | 69 +++++++++++++------ .../src/v1/cluster_manager_proto_list.json | 3 + packages/google-container/synth.metadata | 10 +-- packages/google-container/test/gapic-v1.js | 7 ++ packages/google-container/webpack.config.js | 46 +++++++++++++ 7 files changed, 129 insertions(+), 28 deletions(-) create mode 100644 packages/google-container/src/browser.js delete mode 100644 packages/google-container/src/service_proto_list.json create mode 100644 packages/google-container/src/v1/cluster_manager_proto_list.json create mode 100644 packages/google-container/webpack.config.js diff --git a/packages/google-container/src/browser.js b/packages/google-container/src/browser.js new file mode 100644 index 00000000000..ddbcd7ecb9a --- /dev/null +++ b/packages/google-container/src/browser.js @@ -0,0 +1,21 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +// Set a flag that we are running in a browser bundle. +global.isBrowser = true; + +// Re-export all exports from ./index.js. +module.exports = require('./index'); diff --git a/packages/google-container/src/service_proto_list.json b/packages/google-container/src/service_proto_list.json deleted file mode 100644 index 990343ce8ab..00000000000 --- a/packages/google-container/src/service_proto_list.json +++ /dev/null @@ -1 +0,0 @@ -["../protos/google/container/v1/cluster_service.proto"] \ No newline at end of file diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index 91c18b08255..1400959f3b9 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -58,6 +58,16 @@ class ClusterManagerClient { opts = opts || {}; this._descriptors = {}; + if (global.isBrowser) { + // If we're in browser, we use gRPC fallback. + opts.fallback = true; + } + + // If we are in browser, we are already using fallback because of the + // "browser" field in package.json. + // But if we were explicitly requested to use fallback, let's do it now. + const gaxModule = !global.isBrowser && opts.fallback ? gax.fallback : gax; + const servicePath = opts.servicePath || opts.apiEndpoint || this.constructor.servicePath; @@ -74,26 +84,41 @@ class ClusterManagerClient { // Create a `gaxGrpc` object, with any grpc-specific options // sent to the client. opts.scopes = this.constructor.scopes; - const gaxGrpc = new gax.GrpcClient(opts); + const gaxGrpc = new gaxModule.GrpcClient(opts); // Save the auth object to the client, for use by other methods. this.auth = gaxGrpc.auth; // Determine the client header string. - const clientHeader = [ - `gl-node/${process.versions.node}`, - `grpc/${gaxGrpc.grpcVersion}`, - `gax/${gax.version}`, - `gapic/${VERSION}`, - ]; + const clientHeader = []; + + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } + clientHeader.push(`gax/${gaxModule.version}`); + if (opts.fallback) { + clientHeader.push(`gl-web/${gaxModule.version}`); + } else { + clientHeader.push(`grpc/${gaxGrpc.grpcVersion}`); + } + clientHeader.push(`gapic/${VERSION}`); if (opts.libName && opts.libVersion) { clientHeader.push(`${opts.libName}/${opts.libVersion}`); } // Load the applicable protos. + // For Node.js, pass the path to JSON proto file. + // For browsers, pass the JSON content. + + const nodejsProtoPath = path.join( + __dirname, + '..', + '..', + 'protos', + 'protos.json' + ); const protos = gaxGrpc.loadProto( - path.join(__dirname, '..', '..', 'protos'), - ['google/container/v1/cluster_service.proto'] + opts.fallback ? require('../../protos/protos.json') : nodejsProtoPath ); // Put together the default options sent with requests. @@ -112,7 +137,9 @@ class ClusterManagerClient { // Put together the "service stub" for // google.container.v1.ClusterManager. const clusterManagerStub = gaxGrpc.createStub( - protos.google.container.v1.ClusterManager, + opts.fallback + ? protos.lookupService('google.container.v1.ClusterManager') + : protos.google.container.v1.ClusterManager, opts ); @@ -151,18 +178,16 @@ class ClusterManagerClient { 'setMaintenancePolicy', ]; for (const methodName of clusterManagerStubMethods) { - this._innerApiCalls[methodName] = gax.createApiCall( - clusterManagerStub.then( - stub => - function() { - const args = Array.prototype.slice.call(arguments, 0); - return stub[methodName].apply(stub, args); - }, - err => - function() { - throw err; - } - ), + const innerCallPromise = clusterManagerStub.then( + stub => (...args) => { + return stub[methodName].apply(stub, args); + }, + err => () => { + throw err; + } + ); + this._innerApiCalls[methodName] = gaxModule.createApiCall( + innerCallPromise, defaults[methodName], null ); diff --git a/packages/google-container/src/v1/cluster_manager_proto_list.json b/packages/google-container/src/v1/cluster_manager_proto_list.json new file mode 100644 index 00000000000..aa69748e51b --- /dev/null +++ b/packages/google-container/src/v1/cluster_manager_proto_list.json @@ -0,0 +1,3 @@ +[ + "../../protos/google/container/v1/cluster_service.proto" +] diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 3b516cac0e4..e375b076111 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-08-28T11:09:42.610576Z", + "updateTime": "2019-08-31T11:08:57.597485Z", "sources": [ { "generator": { "name": "artman", - "version": "0.35.1", - "dockerImage": "googleapis/artman@sha256:b11c7ea0d0831c54016fb50f4b796d24d1971439b30fbc32a369ba1ac887c384" + "version": "0.36.1", + "dockerImage": "googleapis/artman@sha256:7c20f006c7a62d9d782e2665647d52290c37a952ef3cd134624d5dd62b3f71bd" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "dbd38035c35083507e2f0b839985cf17e212cb1c", - "internalRef": "265796259" + "sha": "82809578652607c8ee29d9e199c21f28f81a03e0", + "internalRef": "266247326" } }, { diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js index 8540497c801..c662020305a 100644 --- a/packages/google-container/test/gapic-v1.js +++ b/packages/google-container/test/gapic-v1.js @@ -44,6 +44,13 @@ describe('ClusterManagerClient', () => { assert(client); }); + it('should create a client with gRPC fallback', () => { + const client = new containerModule.v1.ClusterManagerClient({ + fallback: true, + }); + assert(client); + }); + describe('listClusters', () => { it('invokes listClusters without error', done => { const client = new containerModule.v1.ClusterManagerClient({ diff --git a/packages/google-container/webpack.config.js b/packages/google-container/webpack.config.js new file mode 100644 index 00000000000..8c12a9f7896 --- /dev/null +++ b/packages/google-container/webpack.config.js @@ -0,0 +1,46 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +module.exports = { + entry: './src/browser.js', + output: { + library: 'container', + filename: './container.js', + }, + node: { + child_process: 'empty', + fs: 'empty', + crypto: 'empty', + }, + resolve: { + extensions: ['.js', '.json'], + }, + module: { + rules: [ + { + test: /node_modules[\\/]retry-request[\\/]/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]https-proxy-agent[\\/]/, + use: 'null-loader', + }, + { + test: /node_modules[\\/]gtoken[\\/]/, + use: 'null-loader', + }, + ], + }, + mode: 'production', +}; From e636c10af4950bd10b56583b0ad8101b59e85563 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Thu, 5 Sep 2019 21:41:53 +0300 Subject: [PATCH 145/371] chore(deps): update dependency eslint-plugin-node to v10 (#226) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 5a9f278b17b..2d2cb41c854 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -43,7 +43,7 @@ "codecov": "^3.5.0", "eslint": "^6.0.0", "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^9.0.1", + "eslint-plugin-node": "^10.0.0", "eslint-plugin-prettier": "^3.1.0", "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.6.2", From 96a1632090a63494f746863585d1a46d66e2008c Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Fri, 6 Sep 2019 18:11:36 -0400 Subject: [PATCH 146/371] update .nycrc ignore rules (#227) --- packages/google-container/.nycrc | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/google-container/.nycrc b/packages/google-container/.nycrc index 83a421a0628..23e322204ec 100644 --- a/packages/google-container/.nycrc +++ b/packages/google-container/.nycrc @@ -6,6 +6,7 @@ "**/.coverage", "**/apis", "**/benchmark", + "**/conformance", "**/docs", "**/samples", "**/scripts", From 8fa1193f519f4684920e00e410b7332332334391 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 16 Sep 2019 09:20:12 -0700 Subject: [PATCH 147/371] chore: release 1.2.0 (#225) * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json [ci skip] --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index ff6156eea0b..487241e5bd6 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [1.2.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.1.4...v1.2.0) (2019-09-16) + + +### Features + +* load protos from JSON, grpc-fallback support ([9d931ff](https://www.github.com/googleapis/nodejs-cloud-container/commit/9d931ff)) + ### [1.1.4](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.1.3...v1.1.4) (2019-08-28) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2d2cb41c854..2ea9e729948 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.1.4", + "version": "1.2.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 6c59cef74c5..5ee09fcba5c 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.1.4" + "@google-cloud/container": "^1.2.0" }, "devDependencies": { "chai": "^4.2.0", From a6f6109a3a3671c94f43c2ead5ef7fb992aebdae Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 27 Sep 2019 02:04:30 -0400 Subject: [PATCH 148/371] chore: add protos/ to .eslintignore --- packages/google-container/.eslintignore | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/google-container/.eslintignore b/packages/google-container/.eslintignore index f0c7aead4bf..09b31fe735a 100644 --- a/packages/google-container/.eslintignore +++ b/packages/google-container/.eslintignore @@ -2,3 +2,4 @@ src/**/doc/* build/ docs/ +protos/ From 5a236ea86407e63287c1c6e92cf9465ba7711804 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 27 Sep 2019 10:26:52 -0700 Subject: [PATCH 149/371] feat: .d.ts for protos (#231) --- packages/google-container/protos/protos.d.ts | 11057 +++++++ packages/google-container/protos/protos.js | 27851 +++++++++++++++++ packages/google-container/synth.metadata | 10 +- 3 files changed, 38913 insertions(+), 5 deletions(-) create mode 100644 packages/google-container/protos/protos.d.ts create mode 100644 packages/google-container/protos/protos.js diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts new file mode 100644 index 00000000000..3484b8177d1 --- /dev/null +++ b/packages/google-container/protos/protos.d.ts @@ -0,0 +1,11057 @@ +import * as $protobuf from "protobufjs"; +/** Namespace google. */ +export namespace google { + + /** Namespace container. */ + namespace container { + + /** Namespace v1. */ + namespace v1 { + + /** Represents a ClusterManager */ + class ClusterManager extends $protobuf.rpc.Service { + + /** + * Constructs a new ClusterManager service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + + /** + * Creates new ClusterManager service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ClusterManager; + + /** + * Calls ListClusters. + * @param request ListClustersRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListClustersResponse + */ + public listClusters(request: google.container.v1.IListClustersRequest, callback: google.container.v1.ClusterManager.ListClustersCallback): void; + + /** + * Calls ListClusters. + * @param request ListClustersRequest message or plain object + * @returns Promise + */ + public listClusters(request: google.container.v1.IListClustersRequest): Promise; + + /** + * Calls GetCluster. + * @param request GetClusterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Cluster + */ + public getCluster(request: google.container.v1.IGetClusterRequest, callback: google.container.v1.ClusterManager.GetClusterCallback): void; + + /** + * Calls GetCluster. + * @param request GetClusterRequest message or plain object + * @returns Promise + */ + public getCluster(request: google.container.v1.IGetClusterRequest): Promise; + + /** + * Calls CreateCluster. + * @param request CreateClusterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createCluster(request: google.container.v1.ICreateClusterRequest, callback: google.container.v1.ClusterManager.CreateClusterCallback): void; + + /** + * Calls CreateCluster. + * @param request CreateClusterRequest message or plain object + * @returns Promise + */ + public createCluster(request: google.container.v1.ICreateClusterRequest): Promise; + + /** + * Calls UpdateCluster. + * @param request UpdateClusterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateCluster(request: google.container.v1.IUpdateClusterRequest, callback: google.container.v1.ClusterManager.UpdateClusterCallback): void; + + /** + * Calls UpdateCluster. + * @param request UpdateClusterRequest message or plain object + * @returns Promise + */ + public updateCluster(request: google.container.v1.IUpdateClusterRequest): Promise; + + /** + * Calls UpdateNodePool. + * @param request UpdateNodePoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateNodePool(request: google.container.v1.IUpdateNodePoolRequest, callback: google.container.v1.ClusterManager.UpdateNodePoolCallback): void; + + /** + * Calls UpdateNodePool. + * @param request UpdateNodePoolRequest message or plain object + * @returns Promise + */ + public updateNodePool(request: google.container.v1.IUpdateNodePoolRequest): Promise; + + /** + * Calls SetNodePoolAutoscaling. + * @param request SetNodePoolAutoscalingRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setNodePoolAutoscaling(request: google.container.v1.ISetNodePoolAutoscalingRequest, callback: google.container.v1.ClusterManager.SetNodePoolAutoscalingCallback): void; + + /** + * Calls SetNodePoolAutoscaling. + * @param request SetNodePoolAutoscalingRequest message or plain object + * @returns Promise + */ + public setNodePoolAutoscaling(request: google.container.v1.ISetNodePoolAutoscalingRequest): Promise; + + /** + * Calls SetLoggingService. + * @param request SetLoggingServiceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setLoggingService(request: google.container.v1.ISetLoggingServiceRequest, callback: google.container.v1.ClusterManager.SetLoggingServiceCallback): void; + + /** + * Calls SetLoggingService. + * @param request SetLoggingServiceRequest message or plain object + * @returns Promise + */ + public setLoggingService(request: google.container.v1.ISetLoggingServiceRequest): Promise; + + /** + * Calls SetMonitoringService. + * @param request SetMonitoringServiceRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setMonitoringService(request: google.container.v1.ISetMonitoringServiceRequest, callback: google.container.v1.ClusterManager.SetMonitoringServiceCallback): void; + + /** + * Calls SetMonitoringService. + * @param request SetMonitoringServiceRequest message or plain object + * @returns Promise + */ + public setMonitoringService(request: google.container.v1.ISetMonitoringServiceRequest): Promise; + + /** + * Calls SetAddonsConfig. + * @param request SetAddonsConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setAddonsConfig(request: google.container.v1.ISetAddonsConfigRequest, callback: google.container.v1.ClusterManager.SetAddonsConfigCallback): void; + + /** + * Calls SetAddonsConfig. + * @param request SetAddonsConfigRequest message or plain object + * @returns Promise + */ + public setAddonsConfig(request: google.container.v1.ISetAddonsConfigRequest): Promise; + + /** + * Calls SetLocations. + * @param request SetLocationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setLocations(request: google.container.v1.ISetLocationsRequest, callback: google.container.v1.ClusterManager.SetLocationsCallback): void; + + /** + * Calls SetLocations. + * @param request SetLocationsRequest message or plain object + * @returns Promise + */ + public setLocations(request: google.container.v1.ISetLocationsRequest): Promise; + + /** + * Calls UpdateMaster. + * @param request UpdateMasterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateMaster(request: google.container.v1.IUpdateMasterRequest, callback: google.container.v1.ClusterManager.UpdateMasterCallback): void; + + /** + * Calls UpdateMaster. + * @param request UpdateMasterRequest message or plain object + * @returns Promise + */ + public updateMaster(request: google.container.v1.IUpdateMasterRequest): Promise; + + /** + * Calls SetMasterAuth. + * @param request SetMasterAuthRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setMasterAuth(request: google.container.v1.ISetMasterAuthRequest, callback: google.container.v1.ClusterManager.SetMasterAuthCallback): void; + + /** + * Calls SetMasterAuth. + * @param request SetMasterAuthRequest message or plain object + * @returns Promise + */ + public setMasterAuth(request: google.container.v1.ISetMasterAuthRequest): Promise; + + /** + * Calls DeleteCluster. + * @param request DeleteClusterRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteCluster(request: google.container.v1.IDeleteClusterRequest, callback: google.container.v1.ClusterManager.DeleteClusterCallback): void; + + /** + * Calls DeleteCluster. + * @param request DeleteClusterRequest message or plain object + * @returns Promise + */ + public deleteCluster(request: google.container.v1.IDeleteClusterRequest): Promise; + + /** + * Calls ListOperations. + * @param request ListOperationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListOperationsResponse + */ + public listOperations(request: google.container.v1.IListOperationsRequest, callback: google.container.v1.ClusterManager.ListOperationsCallback): void; + + /** + * Calls ListOperations. + * @param request ListOperationsRequest message or plain object + * @returns Promise + */ + public listOperations(request: google.container.v1.IListOperationsRequest): Promise; + + /** + * Calls GetOperation. + * @param request GetOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public getOperation(request: google.container.v1.IGetOperationRequest, callback: google.container.v1.ClusterManager.GetOperationCallback): void; + + /** + * Calls GetOperation. + * @param request GetOperationRequest message or plain object + * @returns Promise + */ + public getOperation(request: google.container.v1.IGetOperationRequest): Promise; + + /** + * Calls CancelOperation. + * @param request CancelOperationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public cancelOperation(request: google.container.v1.ICancelOperationRequest, callback: google.container.v1.ClusterManager.CancelOperationCallback): void; + + /** + * Calls CancelOperation. + * @param request CancelOperationRequest message or plain object + * @returns Promise + */ + public cancelOperation(request: google.container.v1.ICancelOperationRequest): Promise; + + /** + * Calls GetServerConfig. + * @param request GetServerConfigRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ServerConfig + */ + public getServerConfig(request: google.container.v1.IGetServerConfigRequest, callback: google.container.v1.ClusterManager.GetServerConfigCallback): void; + + /** + * Calls GetServerConfig. + * @param request GetServerConfigRequest message or plain object + * @returns Promise + */ + public getServerConfig(request: google.container.v1.IGetServerConfigRequest): Promise; + + /** + * Calls ListNodePools. + * @param request ListNodePoolsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListNodePoolsResponse + */ + public listNodePools(request: google.container.v1.IListNodePoolsRequest, callback: google.container.v1.ClusterManager.ListNodePoolsCallback): void; + + /** + * Calls ListNodePools. + * @param request ListNodePoolsRequest message or plain object + * @returns Promise + */ + public listNodePools(request: google.container.v1.IListNodePoolsRequest): Promise; + + /** + * Calls GetNodePool. + * @param request GetNodePoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and NodePool + */ + public getNodePool(request: google.container.v1.IGetNodePoolRequest, callback: google.container.v1.ClusterManager.GetNodePoolCallback): void; + + /** + * Calls GetNodePool. + * @param request GetNodePoolRequest message or plain object + * @returns Promise + */ + public getNodePool(request: google.container.v1.IGetNodePoolRequest): Promise; + + /** + * Calls CreateNodePool. + * @param request CreateNodePoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createNodePool(request: google.container.v1.ICreateNodePoolRequest, callback: google.container.v1.ClusterManager.CreateNodePoolCallback): void; + + /** + * Calls CreateNodePool. + * @param request CreateNodePoolRequest message or plain object + * @returns Promise + */ + public createNodePool(request: google.container.v1.ICreateNodePoolRequest): Promise; + + /** + * Calls DeleteNodePool. + * @param request DeleteNodePoolRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteNodePool(request: google.container.v1.IDeleteNodePoolRequest, callback: google.container.v1.ClusterManager.DeleteNodePoolCallback): void; + + /** + * Calls DeleteNodePool. + * @param request DeleteNodePoolRequest message or plain object + * @returns Promise + */ + public deleteNodePool(request: google.container.v1.IDeleteNodePoolRequest): Promise; + + /** + * Calls RollbackNodePoolUpgrade. + * @param request RollbackNodePoolUpgradeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public rollbackNodePoolUpgrade(request: google.container.v1.IRollbackNodePoolUpgradeRequest, callback: google.container.v1.ClusterManager.RollbackNodePoolUpgradeCallback): void; + + /** + * Calls RollbackNodePoolUpgrade. + * @param request RollbackNodePoolUpgradeRequest message or plain object + * @returns Promise + */ + public rollbackNodePoolUpgrade(request: google.container.v1.IRollbackNodePoolUpgradeRequest): Promise; + + /** + * Calls SetNodePoolManagement. + * @param request SetNodePoolManagementRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setNodePoolManagement(request: google.container.v1.ISetNodePoolManagementRequest, callback: google.container.v1.ClusterManager.SetNodePoolManagementCallback): void; + + /** + * Calls SetNodePoolManagement. + * @param request SetNodePoolManagementRequest message or plain object + * @returns Promise + */ + public setNodePoolManagement(request: google.container.v1.ISetNodePoolManagementRequest): Promise; + + /** + * Calls SetLabels. + * @param request SetLabelsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setLabels(request: google.container.v1.ISetLabelsRequest, callback: google.container.v1.ClusterManager.SetLabelsCallback): void; + + /** + * Calls SetLabels. + * @param request SetLabelsRequest message or plain object + * @returns Promise + */ + public setLabels(request: google.container.v1.ISetLabelsRequest): Promise; + + /** + * Calls SetLegacyAbac. + * @param request SetLegacyAbacRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setLegacyAbac(request: google.container.v1.ISetLegacyAbacRequest, callback: google.container.v1.ClusterManager.SetLegacyAbacCallback): void; + + /** + * Calls SetLegacyAbac. + * @param request SetLegacyAbacRequest message or plain object + * @returns Promise + */ + public setLegacyAbac(request: google.container.v1.ISetLegacyAbacRequest): Promise; + + /** + * Calls StartIPRotation. + * @param request StartIPRotationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public startIPRotation(request: google.container.v1.IStartIPRotationRequest, callback: google.container.v1.ClusterManager.StartIPRotationCallback): void; + + /** + * Calls StartIPRotation. + * @param request StartIPRotationRequest message or plain object + * @returns Promise + */ + public startIPRotation(request: google.container.v1.IStartIPRotationRequest): Promise; + + /** + * Calls CompleteIPRotation. + * @param request CompleteIPRotationRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public completeIPRotation(request: google.container.v1.ICompleteIPRotationRequest, callback: google.container.v1.ClusterManager.CompleteIPRotationCallback): void; + + /** + * Calls CompleteIPRotation. + * @param request CompleteIPRotationRequest message or plain object + * @returns Promise + */ + public completeIPRotation(request: google.container.v1.ICompleteIPRotationRequest): Promise; + + /** + * Calls SetNodePoolSize. + * @param request SetNodePoolSizeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setNodePoolSize(request: google.container.v1.ISetNodePoolSizeRequest, callback: google.container.v1.ClusterManager.SetNodePoolSizeCallback): void; + + /** + * Calls SetNodePoolSize. + * @param request SetNodePoolSizeRequest message or plain object + * @returns Promise + */ + public setNodePoolSize(request: google.container.v1.ISetNodePoolSizeRequest): Promise; + + /** + * Calls SetNetworkPolicy. + * @param request SetNetworkPolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setNetworkPolicy(request: google.container.v1.ISetNetworkPolicyRequest, callback: google.container.v1.ClusterManager.SetNetworkPolicyCallback): void; + + /** + * Calls SetNetworkPolicy. + * @param request SetNetworkPolicyRequest message or plain object + * @returns Promise + */ + public setNetworkPolicy(request: google.container.v1.ISetNetworkPolicyRequest): Promise; + + /** + * Calls SetMaintenancePolicy. + * @param request SetMaintenancePolicyRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public setMaintenancePolicy(request: google.container.v1.ISetMaintenancePolicyRequest, callback: google.container.v1.ClusterManager.SetMaintenancePolicyCallback): void; + + /** + * Calls SetMaintenancePolicy. + * @param request SetMaintenancePolicyRequest message or plain object + * @returns Promise + */ + public setMaintenancePolicy(request: google.container.v1.ISetMaintenancePolicyRequest): Promise; + } + + namespace ClusterManager { + + /** + * Callback as used by {@link google.container.v1.ClusterManager#listClusters}. + * @param error Error, if any + * @param [response] ListClustersResponse + */ + type ListClustersCallback = (error: (Error|null), response?: google.container.v1.ListClustersResponse) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#getCluster}. + * @param error Error, if any + * @param [response] Cluster + */ + type GetClusterCallback = (error: (Error|null), response?: google.container.v1.Cluster) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#createCluster}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateClusterCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#updateCluster}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateClusterCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#updateNodePool}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateNodePoolCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolAutoscaling}. + * @param error Error, if any + * @param [response] Operation + */ + type SetNodePoolAutoscalingCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setLoggingService}. + * @param error Error, if any + * @param [response] Operation + */ + type SetLoggingServiceCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setMonitoringService}. + * @param error Error, if any + * @param [response] Operation + */ + type SetMonitoringServiceCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setAddonsConfig}. + * @param error Error, if any + * @param [response] Operation + */ + type SetAddonsConfigCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setLocations}. + * @param error Error, if any + * @param [response] Operation + */ + type SetLocationsCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#updateMaster}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateMasterCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setMasterAuth}. + * @param error Error, if any + * @param [response] Operation + */ + type SetMasterAuthCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#deleteCluster}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteClusterCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#listOperations}. + * @param error Error, if any + * @param [response] ListOperationsResponse + */ + type ListOperationsCallback = (error: (Error|null), response?: google.container.v1.ListOperationsResponse) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#getOperation}. + * @param error Error, if any + * @param [response] Operation + */ + type GetOperationCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#cancelOperation}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#getServerConfig}. + * @param error Error, if any + * @param [response] ServerConfig + */ + type GetServerConfigCallback = (error: (Error|null), response?: google.container.v1.ServerConfig) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#listNodePools}. + * @param error Error, if any + * @param [response] ListNodePoolsResponse + */ + type ListNodePoolsCallback = (error: (Error|null), response?: google.container.v1.ListNodePoolsResponse) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#getNodePool}. + * @param error Error, if any + * @param [response] NodePool + */ + type GetNodePoolCallback = (error: (Error|null), response?: google.container.v1.NodePool) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#createNodePool}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateNodePoolCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#deleteNodePool}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteNodePoolCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#rollbackNodePoolUpgrade}. + * @param error Error, if any + * @param [response] Operation + */ + type RollbackNodePoolUpgradeCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolManagement}. + * @param error Error, if any + * @param [response] Operation + */ + type SetNodePoolManagementCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setLabels}. + * @param error Error, if any + * @param [response] Operation + */ + type SetLabelsCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setLegacyAbac}. + * @param error Error, if any + * @param [response] Operation + */ + type SetLegacyAbacCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#startIPRotation}. + * @param error Error, if any + * @param [response] Operation + */ + type StartIPRotationCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#completeIPRotation}. + * @param error Error, if any + * @param [response] Operation + */ + type CompleteIPRotationCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolSize}. + * @param error Error, if any + * @param [response] Operation + */ + type SetNodePoolSizeCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setNetworkPolicy}. + * @param error Error, if any + * @param [response] Operation + */ + type SetNetworkPolicyCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setMaintenancePolicy}. + * @param error Error, if any + * @param [response] Operation + */ + type SetMaintenancePolicyCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + } + + /** Properties of a NodeConfig. */ + interface INodeConfig { + + /** NodeConfig machineType */ + machineType?: (string|null); + + /** NodeConfig diskSizeGb */ + diskSizeGb?: (number|null); + + /** NodeConfig oauthScopes */ + oauthScopes?: (string[]|null); + + /** NodeConfig serviceAccount */ + serviceAccount?: (string|null); + + /** NodeConfig metadata */ + metadata?: ({ [k: string]: string }|null); + + /** NodeConfig imageType */ + imageType?: (string|null); + + /** NodeConfig labels */ + labels?: ({ [k: string]: string }|null); + + /** NodeConfig localSsdCount */ + localSsdCount?: (number|null); + + /** NodeConfig tags */ + tags?: (string[]|null); + + /** NodeConfig preemptible */ + preemptible?: (boolean|null); + + /** NodeConfig accelerators */ + accelerators?: (google.container.v1.IAcceleratorConfig[]|null); + + /** NodeConfig diskType */ + diskType?: (string|null); + + /** NodeConfig minCpuPlatform */ + minCpuPlatform?: (string|null); + } + + /** Represents a NodeConfig. */ + class NodeConfig implements INodeConfig { + + /** + * Constructs a new NodeConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodeConfig); + + /** NodeConfig machineType. */ + public machineType: string; + + /** NodeConfig diskSizeGb. */ + public diskSizeGb: number; + + /** NodeConfig oauthScopes. */ + public oauthScopes: string[]; + + /** NodeConfig serviceAccount. */ + public serviceAccount: string; + + /** NodeConfig metadata. */ + public metadata: { [k: string]: string }; + + /** NodeConfig imageType. */ + public imageType: string; + + /** NodeConfig labels. */ + public labels: { [k: string]: string }; + + /** NodeConfig localSsdCount. */ + public localSsdCount: number; + + /** NodeConfig tags. */ + public tags: string[]; + + /** NodeConfig preemptible. */ + public preemptible: boolean; + + /** NodeConfig accelerators. */ + public accelerators: google.container.v1.IAcceleratorConfig[]; + + /** NodeConfig diskType. */ + public diskType: string; + + /** NodeConfig minCpuPlatform. */ + public minCpuPlatform: string; + + /** + * Creates a new NodeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeConfig instance + */ + public static create(properties?: google.container.v1.INodeConfig): google.container.v1.NodeConfig; + + /** + * Encodes the specified NodeConfig message. Does not implicitly {@link google.container.v1.NodeConfig.verify|verify} messages. + * @param message NodeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.container.v1.NodeConfig.verify|verify} messages. + * @param message NodeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeConfig + * @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.NodeConfig; + + /** + * Decodes a NodeConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeConfig + * @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.NodeConfig; + + /** + * Verifies a NodeConfig 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 NodeConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodeConfig; + + /** + * Creates a plain object from a NodeConfig message. Also converts values to other types if specified. + * @param message NodeConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodeConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MasterAuth. */ + interface IMasterAuth { + + /** MasterAuth username */ + username?: (string|null); + + /** MasterAuth password */ + password?: (string|null); + + /** MasterAuth clientCertificateConfig */ + clientCertificateConfig?: (google.container.v1.IClientCertificateConfig|null); + + /** MasterAuth clusterCaCertificate */ + clusterCaCertificate?: (string|null); + + /** MasterAuth clientCertificate */ + clientCertificate?: (string|null); + + /** MasterAuth clientKey */ + clientKey?: (string|null); + } + + /** Represents a MasterAuth. */ + class MasterAuth implements IMasterAuth { + + /** + * Constructs a new MasterAuth. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IMasterAuth); + + /** MasterAuth username. */ + public username: string; + + /** MasterAuth password. */ + public password: string; + + /** MasterAuth clientCertificateConfig. */ + public clientCertificateConfig?: (google.container.v1.IClientCertificateConfig|null); + + /** MasterAuth clusterCaCertificate. */ + public clusterCaCertificate: string; + + /** MasterAuth clientCertificate. */ + public clientCertificate: string; + + /** MasterAuth clientKey. */ + public clientKey: string; + + /** + * Creates a new MasterAuth instance using the specified properties. + * @param [properties] Properties to set + * @returns MasterAuth instance + */ + public static create(properties?: google.container.v1.IMasterAuth): google.container.v1.MasterAuth; + + /** + * Encodes the specified MasterAuth message. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages. + * @param message MasterAuth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IMasterAuth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MasterAuth message, length delimited. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages. + * @param message MasterAuth message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IMasterAuth, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MasterAuth message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MasterAuth + * @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.MasterAuth; + + /** + * Decodes a MasterAuth message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MasterAuth + * @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.MasterAuth; + + /** + * Verifies a MasterAuth 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 MasterAuth message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MasterAuth + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.MasterAuth; + + /** + * Creates a plain object from a MasterAuth message. Also converts values to other types if specified. + * @param message MasterAuth + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.MasterAuth, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MasterAuth to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ClientCertificateConfig. */ + interface IClientCertificateConfig { + + /** ClientCertificateConfig issueClientCertificate */ + issueClientCertificate?: (boolean|null); + } + + /** Represents a ClientCertificateConfig. */ + class ClientCertificateConfig implements IClientCertificateConfig { + + /** + * Constructs a new ClientCertificateConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IClientCertificateConfig); + + /** ClientCertificateConfig issueClientCertificate. */ + public issueClientCertificate: boolean; + + /** + * Creates a new ClientCertificateConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ClientCertificateConfig instance + */ + public static create(properties?: google.container.v1.IClientCertificateConfig): google.container.v1.ClientCertificateConfig; + + /** + * Encodes the specified ClientCertificateConfig message. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages. + * @param message ClientCertificateConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IClientCertificateConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ClientCertificateConfig message, length delimited. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages. + * @param message ClientCertificateConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IClientCertificateConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ClientCertificateConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClientCertificateConfig + * @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.ClientCertificateConfig; + + /** + * Decodes a ClientCertificateConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClientCertificateConfig + * @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.ClientCertificateConfig; + + /** + * Verifies a ClientCertificateConfig 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 ClientCertificateConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClientCertificateConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ClientCertificateConfig; + + /** + * Creates a plain object from a ClientCertificateConfig message. Also converts values to other types if specified. + * @param message ClientCertificateConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ClientCertificateConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ClientCertificateConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AddonsConfig. */ + interface IAddonsConfig { + + /** AddonsConfig httpLoadBalancing */ + httpLoadBalancing?: (google.container.v1.IHttpLoadBalancing|null); + + /** AddonsConfig horizontalPodAutoscaling */ + horizontalPodAutoscaling?: (google.container.v1.IHorizontalPodAutoscaling|null); + + /** AddonsConfig kubernetesDashboard */ + kubernetesDashboard?: (google.container.v1.IKubernetesDashboard|null); + + /** AddonsConfig networkPolicyConfig */ + networkPolicyConfig?: (google.container.v1.INetworkPolicyConfig|null); + } + + /** Represents an AddonsConfig. */ + class AddonsConfig implements IAddonsConfig { + + /** + * Constructs a new AddonsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IAddonsConfig); + + /** AddonsConfig httpLoadBalancing. */ + public httpLoadBalancing?: (google.container.v1.IHttpLoadBalancing|null); + + /** AddonsConfig horizontalPodAutoscaling. */ + public horizontalPodAutoscaling?: (google.container.v1.IHorizontalPodAutoscaling|null); + + /** AddonsConfig kubernetesDashboard. */ + public kubernetesDashboard?: (google.container.v1.IKubernetesDashboard|null); + + /** AddonsConfig networkPolicyConfig. */ + public networkPolicyConfig?: (google.container.v1.INetworkPolicyConfig|null); + + /** + * Creates a new AddonsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns AddonsConfig instance + */ + public static create(properties?: google.container.v1.IAddonsConfig): google.container.v1.AddonsConfig; + + /** + * Encodes the specified AddonsConfig message. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages. + * @param message AddonsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IAddonsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AddonsConfig message, length delimited. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages. + * @param message AddonsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IAddonsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AddonsConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AddonsConfig + * @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.AddonsConfig; + + /** + * Decodes an AddonsConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AddonsConfig + * @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.AddonsConfig; + + /** + * Verifies an AddonsConfig 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 AddonsConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AddonsConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.AddonsConfig; + + /** + * Creates a plain object from an AddonsConfig message. Also converts values to other types if specified. + * @param message AddonsConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.AddonsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AddonsConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HttpLoadBalancing. */ + interface IHttpLoadBalancing { + + /** HttpLoadBalancing disabled */ + disabled?: (boolean|null); + } + + /** Represents a HttpLoadBalancing. */ + class HttpLoadBalancing implements IHttpLoadBalancing { + + /** + * Constructs a new HttpLoadBalancing. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IHttpLoadBalancing); + + /** HttpLoadBalancing disabled. */ + public disabled: boolean; + + /** + * Creates a new HttpLoadBalancing instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpLoadBalancing instance + */ + public static create(properties?: google.container.v1.IHttpLoadBalancing): google.container.v1.HttpLoadBalancing; + + /** + * Encodes the specified HttpLoadBalancing message. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages. + * @param message HttpLoadBalancing message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IHttpLoadBalancing, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpLoadBalancing message, length delimited. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages. + * @param message HttpLoadBalancing message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IHttpLoadBalancing, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpLoadBalancing message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpLoadBalancing + * @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.HttpLoadBalancing; + + /** + * Decodes a HttpLoadBalancing message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpLoadBalancing + * @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.HttpLoadBalancing; + + /** + * Verifies a HttpLoadBalancing 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 HttpLoadBalancing message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpLoadBalancing + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.HttpLoadBalancing; + + /** + * Creates a plain object from a HttpLoadBalancing message. Also converts values to other types if specified. + * @param message HttpLoadBalancing + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.HttpLoadBalancing, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpLoadBalancing to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HorizontalPodAutoscaling. */ + interface IHorizontalPodAutoscaling { + + /** HorizontalPodAutoscaling disabled */ + disabled?: (boolean|null); + } + + /** Represents a HorizontalPodAutoscaling. */ + class HorizontalPodAutoscaling implements IHorizontalPodAutoscaling { + + /** + * Constructs a new HorizontalPodAutoscaling. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IHorizontalPodAutoscaling); + + /** HorizontalPodAutoscaling disabled. */ + public disabled: boolean; + + /** + * Creates a new HorizontalPodAutoscaling instance using the specified properties. + * @param [properties] Properties to set + * @returns HorizontalPodAutoscaling instance + */ + public static create(properties?: google.container.v1.IHorizontalPodAutoscaling): google.container.v1.HorizontalPodAutoscaling; + + /** + * Encodes the specified HorizontalPodAutoscaling message. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages. + * @param message HorizontalPodAutoscaling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IHorizontalPodAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HorizontalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages. + * @param message HorizontalPodAutoscaling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IHorizontalPodAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HorizontalPodAutoscaling + * @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.HorizontalPodAutoscaling; + + /** + * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HorizontalPodAutoscaling + * @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.HorizontalPodAutoscaling; + + /** + * Verifies a HorizontalPodAutoscaling 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 HorizontalPodAutoscaling message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HorizontalPodAutoscaling + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.HorizontalPodAutoscaling; + + /** + * Creates a plain object from a HorizontalPodAutoscaling message. Also converts values to other types if specified. + * @param message HorizontalPodAutoscaling + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.HorizontalPodAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HorizontalPodAutoscaling to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a KubernetesDashboard. */ + interface IKubernetesDashboard { + + /** KubernetesDashboard disabled */ + disabled?: (boolean|null); + } + + /** Represents a KubernetesDashboard. */ + class KubernetesDashboard implements IKubernetesDashboard { + + /** + * Constructs a new KubernetesDashboard. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IKubernetesDashboard); + + /** KubernetesDashboard disabled. */ + public disabled: boolean; + + /** + * Creates a new KubernetesDashboard instance using the specified properties. + * @param [properties] Properties to set + * @returns KubernetesDashboard instance + */ + public static create(properties?: google.container.v1.IKubernetesDashboard): google.container.v1.KubernetesDashboard; + + /** + * Encodes the specified KubernetesDashboard message. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages. + * @param message KubernetesDashboard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IKubernetesDashboard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified KubernetesDashboard message, length delimited. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages. + * @param message KubernetesDashboard message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IKubernetesDashboard, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a KubernetesDashboard message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns KubernetesDashboard + * @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.KubernetesDashboard; + + /** + * Decodes a KubernetesDashboard message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns KubernetesDashboard + * @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.KubernetesDashboard; + + /** + * Verifies a KubernetesDashboard 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 KubernetesDashboard message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns KubernetesDashboard + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.KubernetesDashboard; + + /** + * Creates a plain object from a KubernetesDashboard message. Also converts values to other types if specified. + * @param message KubernetesDashboard + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.KubernetesDashboard, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this KubernetesDashboard to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NetworkPolicyConfig. */ + interface INetworkPolicyConfig { + + /** NetworkPolicyConfig disabled */ + disabled?: (boolean|null); + } + + /** Represents a NetworkPolicyConfig. */ + class NetworkPolicyConfig implements INetworkPolicyConfig { + + /** + * Constructs a new NetworkPolicyConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INetworkPolicyConfig); + + /** NetworkPolicyConfig disabled. */ + public disabled: boolean; + + /** + * Creates a new NetworkPolicyConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkPolicyConfig instance + */ + public static create(properties?: google.container.v1.INetworkPolicyConfig): google.container.v1.NetworkPolicyConfig; + + /** + * Encodes the specified NetworkPolicyConfig message. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages. + * @param message NetworkPolicyConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INetworkPolicyConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkPolicyConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages. + * @param message NetworkPolicyConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INetworkPolicyConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkPolicyConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkPolicyConfig + * @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.NetworkPolicyConfig; + + /** + * Decodes a NetworkPolicyConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkPolicyConfig + * @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.NetworkPolicyConfig; + + /** + * Verifies a NetworkPolicyConfig 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 NetworkPolicyConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkPolicyConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NetworkPolicyConfig; + + /** + * Creates a plain object from a NetworkPolicyConfig message. Also converts values to other types if specified. + * @param message NetworkPolicyConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NetworkPolicyConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkPolicyConfig to JSON. + * @returns JSON object + */ + 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); + + /** PrivateClusterConfig privateEndpoint */ + privateEndpoint?: (string|null); + + /** PrivateClusterConfig publicEndpoint */ + publicEndpoint?: (string|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; + + /** + * 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 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. + * @param message MasterAuthorizedNetworksConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.MasterAuthorizedNetworksConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MasterAuthorizedNetworksConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace MasterAuthorizedNetworksConfig { + + /** Properties of a CidrBlock. */ + interface ICidrBlock { + + /** CidrBlock displayName */ + displayName?: (string|null); + + /** CidrBlock cidrBlock */ + cidrBlock?: (string|null); + } + + /** Represents a CidrBlock. */ + class CidrBlock implements ICidrBlock { + + /** + * Constructs a new CidrBlock. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock); + + /** CidrBlock displayName. */ + public displayName: string; + + /** CidrBlock cidrBlock. */ + public cidrBlock: string; + + /** + * Creates a new CidrBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns CidrBlock instance + */ + public static create(properties?: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock): google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock; + + /** + * Encodes the specified CidrBlock message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * @param message CidrBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * @param message CidrBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CidrBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CidrBlock + * @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.CidrBlock; + + /** + * Decodes a CidrBlock message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CidrBlock + * @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.CidrBlock; + + /** + * Verifies a CidrBlock 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 CidrBlock message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CidrBlock + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock; + + /** + * Creates a plain object from a CidrBlock message. Also converts values to other types if specified. + * @param message CidrBlock + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CidrBlock to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a LegacyAbac. */ + interface ILegacyAbac { + + /** LegacyAbac enabled */ + enabled?: (boolean|null); + } + + /** Represents a LegacyAbac. */ + class LegacyAbac implements ILegacyAbac { + + /** + * Constructs a new LegacyAbac. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ILegacyAbac); + + /** LegacyAbac enabled. */ + public enabled: boolean; + + /** + * Creates a new LegacyAbac instance using the specified properties. + * @param [properties] Properties to set + * @returns LegacyAbac instance + */ + public static create(properties?: google.container.v1.ILegacyAbac): google.container.v1.LegacyAbac; + + /** + * Encodes the specified LegacyAbac message. Does not implicitly {@link google.container.v1.LegacyAbac.verify|verify} messages. + * @param message LegacyAbac message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ILegacyAbac, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LegacyAbac message, length delimited. Does not implicitly {@link google.container.v1.LegacyAbac.verify|verify} messages. + * @param message LegacyAbac message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ILegacyAbac, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LegacyAbac message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LegacyAbac + * @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.LegacyAbac; + + /** + * Decodes a LegacyAbac message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LegacyAbac + * @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.LegacyAbac; + + /** + * Verifies a LegacyAbac 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 LegacyAbac message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LegacyAbac + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.LegacyAbac; + + /** + * Creates a plain object from a LegacyAbac message. Also converts values to other types if specified. + * @param message LegacyAbac + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.LegacyAbac, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LegacyAbac to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NetworkPolicy. */ + interface INetworkPolicy { + + /** NetworkPolicy provider */ + provider?: (google.container.v1.NetworkPolicy.Provider|null); + + /** NetworkPolicy enabled */ + enabled?: (boolean|null); + } + + /** Represents a NetworkPolicy. */ + class NetworkPolicy implements INetworkPolicy { + + /** + * Constructs a new NetworkPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INetworkPolicy); + + /** NetworkPolicy provider. */ + public provider: google.container.v1.NetworkPolicy.Provider; + + /** NetworkPolicy enabled. */ + public enabled: boolean; + + /** + * Creates a new NetworkPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkPolicy instance + */ + public static create(properties?: google.container.v1.INetworkPolicy): google.container.v1.NetworkPolicy; + + /** + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages. + * @param message NetworkPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages. + * @param message NetworkPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INetworkPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkPolicy + * @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.NetworkPolicy; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkPolicy + * @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.NetworkPolicy; + + /** + * Verifies a NetworkPolicy 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 NetworkPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkPolicy + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NetworkPolicy; + + /** + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. + * @param message NetworkPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NetworkPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace NetworkPolicy { + + /** Provider enum. */ + enum Provider { + PROVIDER_UNSPECIFIED = 0, + CALICO = 1 + } + } + + /** Properties of a IPAllocationPolicy. */ + interface IIPAllocationPolicy { + + /** IPAllocationPolicy useIpAliases */ + useIpAliases?: (boolean|null); + + /** IPAllocationPolicy createSubnetwork */ + createSubnetwork?: (boolean|null); + + /** IPAllocationPolicy subnetworkName */ + subnetworkName?: (string|null); + + /** IPAllocationPolicy clusterIpv4Cidr */ + clusterIpv4Cidr?: (string|null); + + /** IPAllocationPolicy nodeIpv4Cidr */ + nodeIpv4Cidr?: (string|null); + + /** IPAllocationPolicy servicesIpv4Cidr */ + servicesIpv4Cidr?: (string|null); + + /** IPAllocationPolicy clusterSecondaryRangeName */ + clusterSecondaryRangeName?: (string|null); + + /** IPAllocationPolicy servicesSecondaryRangeName */ + servicesSecondaryRangeName?: (string|null); + + /** IPAllocationPolicy clusterIpv4CidrBlock */ + clusterIpv4CidrBlock?: (string|null); + + /** IPAllocationPolicy nodeIpv4CidrBlock */ + nodeIpv4CidrBlock?: (string|null); + + /** IPAllocationPolicy servicesIpv4CidrBlock */ + servicesIpv4CidrBlock?: (string|null); + } + + /** Represents a IPAllocationPolicy. */ + class IPAllocationPolicy implements IIPAllocationPolicy { + + /** + * Constructs a new IPAllocationPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IIPAllocationPolicy); + + /** IPAllocationPolicy useIpAliases. */ + public useIpAliases: boolean; + + /** IPAllocationPolicy createSubnetwork. */ + public createSubnetwork: boolean; + + /** IPAllocationPolicy subnetworkName. */ + public subnetworkName: string; + + /** IPAllocationPolicy clusterIpv4Cidr. */ + public clusterIpv4Cidr: string; + + /** IPAllocationPolicy nodeIpv4Cidr. */ + public nodeIpv4Cidr: string; + + /** IPAllocationPolicy servicesIpv4Cidr. */ + public servicesIpv4Cidr: string; + + /** IPAllocationPolicy clusterSecondaryRangeName. */ + public clusterSecondaryRangeName: string; + + /** IPAllocationPolicy servicesSecondaryRangeName. */ + public servicesSecondaryRangeName: string; + + /** IPAllocationPolicy clusterIpv4CidrBlock. */ + public clusterIpv4CidrBlock: string; + + /** IPAllocationPolicy nodeIpv4CidrBlock. */ + public nodeIpv4CidrBlock: string; + + /** IPAllocationPolicy servicesIpv4CidrBlock. */ + public servicesIpv4CidrBlock: string; + + /** + * Creates a new IPAllocationPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns IPAllocationPolicy instance + */ + public static create(properties?: google.container.v1.IIPAllocationPolicy): google.container.v1.IPAllocationPolicy; + + /** + * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.container.v1.IPAllocationPolicy.verify|verify} messages. + * @param message IPAllocationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IIPAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.container.v1.IPAllocationPolicy.verify|verify} messages. + * @param message IPAllocationPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IIPAllocationPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a IPAllocationPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IPAllocationPolicy + * @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.IPAllocationPolicy; + + /** + * Decodes a IPAllocationPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IPAllocationPolicy + * @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.IPAllocationPolicy; + + /** + * Verifies a IPAllocationPolicy 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 IPAllocationPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IPAllocationPolicy + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.IPAllocationPolicy; + + /** + * Creates a plain object from a IPAllocationPolicy message. Also converts values to other types if specified. + * @param message IPAllocationPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.IPAllocationPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IPAllocationPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Cluster. */ + interface ICluster { + + /** Cluster name */ + name?: (string|null); + + /** Cluster description */ + description?: (string|null); + + /** Cluster initialNodeCount */ + initialNodeCount?: (number|null); + + /** Cluster nodeConfig */ + nodeConfig?: (google.container.v1.INodeConfig|null); + + /** Cluster masterAuth */ + masterAuth?: (google.container.v1.IMasterAuth|null); + + /** Cluster loggingService */ + loggingService?: (string|null); + + /** Cluster monitoringService */ + monitoringService?: (string|null); + + /** Cluster network */ + network?: (string|null); + + /** Cluster clusterIpv4Cidr */ + clusterIpv4Cidr?: (string|null); + + /** Cluster addonsConfig */ + addonsConfig?: (google.container.v1.IAddonsConfig|null); + + /** Cluster subnetwork */ + subnetwork?: (string|null); + + /** Cluster nodePools */ + nodePools?: (google.container.v1.INodePool[]|null); + + /** Cluster locations */ + locations?: (string[]|null); + + /** Cluster enableKubernetesAlpha */ + enableKubernetesAlpha?: (boolean|null); + + /** Cluster resourceLabels */ + resourceLabels?: ({ [k: string]: string }|null); + + /** Cluster labelFingerprint */ + labelFingerprint?: (string|null); + + /** Cluster legacyAbac */ + legacyAbac?: (google.container.v1.ILegacyAbac|null); + + /** Cluster networkPolicy */ + networkPolicy?: (google.container.v1.INetworkPolicy|null); + + /** Cluster ipAllocationPolicy */ + ipAllocationPolicy?: (google.container.v1.IIPAllocationPolicy|null); + + /** Cluster masterAuthorizedNetworksConfig */ + masterAuthorizedNetworksConfig?: (google.container.v1.IMasterAuthorizedNetworksConfig|null); + + /** Cluster maintenancePolicy */ + maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + + /** Cluster networkConfig */ + networkConfig?: (google.container.v1.INetworkConfig|null); + + /** Cluster privateClusterConfig */ + privateClusterConfig?: (google.container.v1.IPrivateClusterConfig|null); + + /** Cluster selfLink */ + selfLink?: (string|null); + + /** Cluster zone */ + zone?: (string|null); + + /** Cluster endpoint */ + endpoint?: (string|null); + + /** Cluster initialClusterVersion */ + initialClusterVersion?: (string|null); + + /** Cluster currentMasterVersion */ + currentMasterVersion?: (string|null); + + /** Cluster currentNodeVersion */ + currentNodeVersion?: (string|null); + + /** Cluster createTime */ + createTime?: (string|null); + + /** Cluster status */ + status?: (google.container.v1.Cluster.Status|null); + + /** Cluster statusMessage */ + statusMessage?: (string|null); + + /** Cluster nodeIpv4CidrSize */ + nodeIpv4CidrSize?: (number|null); + + /** Cluster servicesIpv4Cidr */ + servicesIpv4Cidr?: (string|null); + + /** Cluster instanceGroupUrls */ + instanceGroupUrls?: (string[]|null); + + /** Cluster currentNodeCount */ + currentNodeCount?: (number|null); + + /** Cluster expireTime */ + expireTime?: (string|null); + + /** Cluster location */ + location?: (string|null); + } + + /** Represents a Cluster. */ + class Cluster implements ICluster { + + /** + * Constructs a new Cluster. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ICluster); + + /** Cluster name. */ + public name: string; + + /** Cluster description. */ + public description: string; + + /** Cluster initialNodeCount. */ + public initialNodeCount: number; + + /** Cluster nodeConfig. */ + public nodeConfig?: (google.container.v1.INodeConfig|null); + + /** Cluster masterAuth. */ + public masterAuth?: (google.container.v1.IMasterAuth|null); + + /** Cluster loggingService. */ + public loggingService: string; + + /** Cluster monitoringService. */ + public monitoringService: string; + + /** Cluster network. */ + public network: string; + + /** Cluster clusterIpv4Cidr. */ + public clusterIpv4Cidr: string; + + /** Cluster addonsConfig. */ + public addonsConfig?: (google.container.v1.IAddonsConfig|null); + + /** Cluster subnetwork. */ + public subnetwork: string; + + /** Cluster nodePools. */ + public nodePools: google.container.v1.INodePool[]; + + /** Cluster locations. */ + public locations: string[]; + + /** Cluster enableKubernetesAlpha. */ + public enableKubernetesAlpha: boolean; + + /** Cluster resourceLabels. */ + public resourceLabels: { [k: string]: string }; + + /** Cluster labelFingerprint. */ + public labelFingerprint: string; + + /** Cluster legacyAbac. */ + public legacyAbac?: (google.container.v1.ILegacyAbac|null); + + /** Cluster networkPolicy. */ + public networkPolicy?: (google.container.v1.INetworkPolicy|null); + + /** Cluster ipAllocationPolicy. */ + public ipAllocationPolicy?: (google.container.v1.IIPAllocationPolicy|null); + + /** Cluster masterAuthorizedNetworksConfig. */ + public masterAuthorizedNetworksConfig?: (google.container.v1.IMasterAuthorizedNetworksConfig|null); + + /** Cluster maintenancePolicy. */ + public maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + + /** Cluster networkConfig. */ + public networkConfig?: (google.container.v1.INetworkConfig|null); + + /** Cluster privateClusterConfig. */ + public privateClusterConfig?: (google.container.v1.IPrivateClusterConfig|null); + + /** Cluster selfLink. */ + public selfLink: string; + + /** Cluster zone. */ + public zone: string; + + /** Cluster endpoint. */ + public endpoint: string; + + /** Cluster initialClusterVersion. */ + public initialClusterVersion: string; + + /** Cluster currentMasterVersion. */ + public currentMasterVersion: string; + + /** Cluster currentNodeVersion. */ + public currentNodeVersion: string; + + /** Cluster createTime. */ + public createTime: string; + + /** Cluster status. */ + public status: google.container.v1.Cluster.Status; + + /** Cluster statusMessage. */ + public statusMessage: string; + + /** Cluster nodeIpv4CidrSize. */ + public nodeIpv4CidrSize: number; + + /** Cluster servicesIpv4Cidr. */ + public servicesIpv4Cidr: string; + + /** Cluster instanceGroupUrls. */ + public instanceGroupUrls: string[]; + + /** Cluster currentNodeCount. */ + public currentNodeCount: number; + + /** Cluster expireTime. */ + public expireTime: string; + + /** Cluster location. */ + public location: string; + + /** + * Creates a new Cluster instance using the specified properties. + * @param [properties] Properties to set + * @returns Cluster instance + */ + public static create(properties?: google.container.v1.ICluster): google.container.v1.Cluster; + + /** + * Encodes the specified Cluster message. Does not implicitly {@link google.container.v1.Cluster.verify|verify} messages. + * @param message Cluster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Cluster message, length delimited. Does not implicitly {@link google.container.v1.Cluster.verify|verify} messages. + * @param message Cluster message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ICluster, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Cluster message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Cluster + * @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.Cluster; + + /** + * Decodes a Cluster message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Cluster + * @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.Cluster; + + /** + * Verifies a Cluster 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 Cluster message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Cluster + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.Cluster; + + /** + * Creates a plain object from a Cluster message. Also converts values to other types if specified. + * @param message Cluster + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.Cluster, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Cluster to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Cluster { + + /** Status enum. */ + enum Status { + STATUS_UNSPECIFIED = 0, + PROVISIONING = 1, + RUNNING = 2, + RECONCILING = 3, + STOPPING = 4, + ERROR = 5, + DEGRADED = 6 + } + } + + /** Properties of a ClusterUpdate. */ + interface IClusterUpdate { + + /** ClusterUpdate desiredNodeVersion */ + desiredNodeVersion?: (string|null); + + /** ClusterUpdate desiredMonitoringService */ + desiredMonitoringService?: (string|null); + + /** ClusterUpdate desiredAddonsConfig */ + desiredAddonsConfig?: (google.container.v1.IAddonsConfig|null); + + /** ClusterUpdate desiredNodePoolId */ + desiredNodePoolId?: (string|null); + + /** ClusterUpdate desiredImageType */ + desiredImageType?: (string|null); + + /** ClusterUpdate desiredNodePoolAutoscaling */ + desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null); + + /** ClusterUpdate desiredLocations */ + desiredLocations?: (string[]|null); + + /** ClusterUpdate desiredMasterAuthorizedNetworksConfig */ + desiredMasterAuthorizedNetworksConfig?: (google.container.v1.IMasterAuthorizedNetworksConfig|null); + + /** ClusterUpdate desiredMasterVersion */ + desiredMasterVersion?: (string|null); + } + + /** Represents a ClusterUpdate. */ + class ClusterUpdate implements IClusterUpdate { + + /** + * Constructs a new ClusterUpdate. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IClusterUpdate); + + /** ClusterUpdate desiredNodeVersion. */ + public desiredNodeVersion: string; + + /** ClusterUpdate desiredMonitoringService. */ + public desiredMonitoringService: string; + + /** ClusterUpdate desiredAddonsConfig. */ + public desiredAddonsConfig?: (google.container.v1.IAddonsConfig|null); + + /** ClusterUpdate desiredNodePoolId. */ + public desiredNodePoolId: string; + + /** ClusterUpdate desiredImageType. */ + public desiredImageType: string; + + /** ClusterUpdate desiredNodePoolAutoscaling. */ + public desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null); + + /** ClusterUpdate desiredLocations. */ + public desiredLocations: string[]; + + /** ClusterUpdate desiredMasterAuthorizedNetworksConfig. */ + public desiredMasterAuthorizedNetworksConfig?: (google.container.v1.IMasterAuthorizedNetworksConfig|null); + + /** ClusterUpdate desiredMasterVersion. */ + public desiredMasterVersion: string; + + /** + * Creates a new ClusterUpdate instance using the specified properties. + * @param [properties] Properties to set + * @returns ClusterUpdate instance + */ + public static create(properties?: google.container.v1.IClusterUpdate): google.container.v1.ClusterUpdate; + + /** + * Encodes the specified ClusterUpdate message. Does not implicitly {@link google.container.v1.ClusterUpdate.verify|verify} messages. + * @param message ClusterUpdate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IClusterUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ClusterUpdate message, length delimited. Does not implicitly {@link google.container.v1.ClusterUpdate.verify|verify} messages. + * @param message ClusterUpdate message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IClusterUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ClusterUpdate message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ClusterUpdate + * @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.ClusterUpdate; + + /** + * Decodes a ClusterUpdate message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ClusterUpdate + * @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.ClusterUpdate; + + /** + * Verifies a ClusterUpdate 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 ClusterUpdate message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ClusterUpdate + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ClusterUpdate; + + /** + * Creates a plain object from a ClusterUpdate message. Also converts values to other types if specified. + * @param message ClusterUpdate + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ClusterUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ClusterUpdate to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Operation. */ + interface IOperation { + + /** Operation name */ + name?: (string|null); + + /** Operation zone */ + zone?: (string|null); + + /** Operation operationType */ + operationType?: (google.container.v1.Operation.Type|null); + + /** Operation status */ + status?: (google.container.v1.Operation.Status|null); + + /** Operation detail */ + detail?: (string|null); + + /** Operation statusMessage */ + statusMessage?: (string|null); + + /** Operation selfLink */ + selfLink?: (string|null); + + /** Operation targetLink */ + targetLink?: (string|null); + + /** Operation location */ + location?: (string|null); + + /** Operation startTime */ + startTime?: (string|null); + + /** Operation endTime */ + endTime?: (string|null); + } + + /** Represents an Operation. */ + class Operation implements IOperation { + + /** + * Constructs a new Operation. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IOperation); + + /** Operation name. */ + public name: string; + + /** Operation zone. */ + public zone: string; + + /** Operation operationType. */ + public operationType: google.container.v1.Operation.Type; + + /** Operation status. */ + public status: google.container.v1.Operation.Status; + + /** Operation detail. */ + public detail: string; + + /** Operation statusMessage. */ + public statusMessage: string; + + /** Operation selfLink. */ + public selfLink: string; + + /** Operation targetLink. */ + public targetLink: string; + + /** Operation location. */ + public location: string; + + /** Operation startTime. */ + public startTime: string; + + /** Operation endTime. */ + public endTime: string; + + /** + * Creates a new Operation instance using the specified properties. + * @param [properties] Properties to set + * @returns Operation instance + */ + public static create(properties?: google.container.v1.IOperation): google.container.v1.Operation; + + /** + * Encodes the specified Operation message. Does not implicitly {@link google.container.v1.Operation.verify|verify} messages. + * @param message Operation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Operation message, length delimited. Does not implicitly {@link google.container.v1.Operation.verify|verify} messages. + * @param message Operation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IOperation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Operation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Operation + * @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.Operation; + + /** + * Decodes an Operation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Operation + * @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.Operation; + + /** + * Verifies an Operation 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 Operation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Operation + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.Operation; + + /** + * Creates a plain object from an Operation message. Also converts values to other types if specified. + * @param message Operation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.Operation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Operation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Operation { + + /** Status enum. */ + enum Status { + STATUS_UNSPECIFIED = 0, + PENDING = 1, + RUNNING = 2, + DONE = 3, + ABORTING = 4 + } + + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + CREATE_CLUSTER = 1, + DELETE_CLUSTER = 2, + UPGRADE_MASTER = 3, + UPGRADE_NODES = 4, + REPAIR_CLUSTER = 5, + UPDATE_CLUSTER = 6, + CREATE_NODE_POOL = 7, + DELETE_NODE_POOL = 8, + SET_NODE_POOL_MANAGEMENT = 9, + AUTO_REPAIR_NODES = 10, + AUTO_UPGRADE_NODES = 11, + SET_LABELS = 12, + SET_MASTER_AUTH = 13, + SET_NODE_POOL_SIZE = 14, + SET_NETWORK_POLICY = 15, + SET_MAINTENANCE_POLICY = 16 + } + } + + /** Properties of a CreateClusterRequest. */ + interface ICreateClusterRequest { + + /** CreateClusterRequest projectId */ + projectId?: (string|null); + + /** CreateClusterRequest zone */ + zone?: (string|null); + + /** CreateClusterRequest cluster */ + cluster?: (google.container.v1.ICluster|null); + + /** CreateClusterRequest parent */ + parent?: (string|null); + } + + /** Represents a CreateClusterRequest. */ + class CreateClusterRequest implements ICreateClusterRequest { + + /** + * Constructs a new CreateClusterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ICreateClusterRequest); + + /** CreateClusterRequest projectId. */ + public projectId: string; + + /** CreateClusterRequest zone. */ + public zone: string; + + /** CreateClusterRequest cluster. */ + public cluster?: (google.container.v1.ICluster|null); + + /** CreateClusterRequest parent. */ + public parent: string; + + /** + * Creates a new CreateClusterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateClusterRequest instance + */ + public static create(properties?: google.container.v1.ICreateClusterRequest): google.container.v1.CreateClusterRequest; + + /** + * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.container.v1.CreateClusterRequest.verify|verify} messages. + * @param message CreateClusterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ICreateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateClusterRequest.verify|verify} messages. + * @param message CreateClusterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ICreateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateClusterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateClusterRequest + * @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.CreateClusterRequest; + + /** + * Decodes a CreateClusterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateClusterRequest + * @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.CreateClusterRequest; + + /** + * Verifies a CreateClusterRequest 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 CreateClusterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateClusterRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.CreateClusterRequest; + + /** + * Creates a plain object from a CreateClusterRequest message. Also converts values to other types if specified. + * @param message CreateClusterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.CreateClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateClusterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetClusterRequest. */ + interface IGetClusterRequest { + + /** GetClusterRequest projectId */ + projectId?: (string|null); + + /** GetClusterRequest zone */ + zone?: (string|null); + + /** GetClusterRequest clusterId */ + clusterId?: (string|null); + + /** GetClusterRequest name */ + name?: (string|null); + } + + /** Represents a GetClusterRequest. */ + class GetClusterRequest implements IGetClusterRequest { + + /** + * Constructs a new GetClusterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGetClusterRequest); + + /** GetClusterRequest projectId. */ + public projectId: string; + + /** GetClusterRequest zone. */ + public zone: string; + + /** GetClusterRequest clusterId. */ + public clusterId: string; + + /** GetClusterRequest name. */ + public name: string; + + /** + * Creates a new GetClusterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetClusterRequest instance + */ + public static create(properties?: google.container.v1.IGetClusterRequest): google.container.v1.GetClusterRequest; + + /** + * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.container.v1.GetClusterRequest.verify|verify} messages. + * @param message GetClusterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IGetClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.GetClusterRequest.verify|verify} messages. + * @param message GetClusterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IGetClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetClusterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetClusterRequest + * @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.GetClusterRequest; + + /** + * Decodes a GetClusterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetClusterRequest + * @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.GetClusterRequest; + + /** + * Verifies a GetClusterRequest 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 GetClusterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetClusterRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GetClusterRequest; + + /** + * Creates a plain object from a GetClusterRequest message. Also converts values to other types if specified. + * @param message GetClusterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.GetClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetClusterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateClusterRequest. */ + interface IUpdateClusterRequest { + + /** UpdateClusterRequest projectId */ + projectId?: (string|null); + + /** UpdateClusterRequest zone */ + zone?: (string|null); + + /** UpdateClusterRequest clusterId */ + clusterId?: (string|null); + + /** UpdateClusterRequest update */ + update?: (google.container.v1.IClusterUpdate|null); + + /** UpdateClusterRequest name */ + name?: (string|null); + } + + /** Represents an UpdateClusterRequest. */ + class UpdateClusterRequest implements IUpdateClusterRequest { + + /** + * Constructs a new UpdateClusterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IUpdateClusterRequest); + + /** UpdateClusterRequest projectId. */ + public projectId: string; + + /** UpdateClusterRequest zone. */ + public zone: string; + + /** UpdateClusterRequest clusterId. */ + public clusterId: string; + + /** UpdateClusterRequest update. */ + public update?: (google.container.v1.IClusterUpdate|null); + + /** UpdateClusterRequest name. */ + public name: string; + + /** + * Creates a new UpdateClusterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateClusterRequest instance + */ + public static create(properties?: google.container.v1.IUpdateClusterRequest): google.container.v1.UpdateClusterRequest; + + /** + * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.container.v1.UpdateClusterRequest.verify|verify} messages. + * @param message UpdateClusterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IUpdateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateClusterRequest.verify|verify} messages. + * @param message UpdateClusterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IUpdateClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateClusterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateClusterRequest + * @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.UpdateClusterRequest; + + /** + * Decodes an UpdateClusterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateClusterRequest + * @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.UpdateClusterRequest; + + /** + * Verifies an UpdateClusterRequest 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 UpdateClusterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateClusterRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.UpdateClusterRequest; + + /** + * Creates a plain object from an UpdateClusterRequest message. Also converts values to other types if specified. + * @param message UpdateClusterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.UpdateClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateClusterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateNodePoolRequest. */ + interface IUpdateNodePoolRequest { + + /** UpdateNodePoolRequest projectId */ + projectId?: (string|null); + + /** UpdateNodePoolRequest zone */ + zone?: (string|null); + + /** UpdateNodePoolRequest clusterId */ + clusterId?: (string|null); + + /** UpdateNodePoolRequest nodePoolId */ + nodePoolId?: (string|null); + + /** UpdateNodePoolRequest nodeVersion */ + nodeVersion?: (string|null); + + /** UpdateNodePoolRequest imageType */ + imageType?: (string|null); + + /** UpdateNodePoolRequest name */ + name?: (string|null); + } + + /** Represents an UpdateNodePoolRequest. */ + class UpdateNodePoolRequest implements IUpdateNodePoolRequest { + + /** + * Constructs a new UpdateNodePoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IUpdateNodePoolRequest); + + /** UpdateNodePoolRequest projectId. */ + public projectId: string; + + /** UpdateNodePoolRequest zone. */ + public zone: string; + + /** UpdateNodePoolRequest clusterId. */ + public clusterId: string; + + /** UpdateNodePoolRequest nodePoolId. */ + public nodePoolId: string; + + /** UpdateNodePoolRequest nodeVersion. */ + public nodeVersion: string; + + /** UpdateNodePoolRequest imageType. */ + public imageType: string; + + /** UpdateNodePoolRequest name. */ + public name: string; + + /** + * Creates a new UpdateNodePoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateNodePoolRequest instance + */ + public static create(properties?: google.container.v1.IUpdateNodePoolRequest): google.container.v1.UpdateNodePoolRequest; + + /** + * Encodes the specified UpdateNodePoolRequest message. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.verify|verify} messages. + * @param message UpdateNodePoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IUpdateNodePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.verify|verify} messages. + * @param message UpdateNodePoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IUpdateNodePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateNodePoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateNodePoolRequest + * @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.UpdateNodePoolRequest; + + /** + * Decodes an UpdateNodePoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateNodePoolRequest + * @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.UpdateNodePoolRequest; + + /** + * Verifies an UpdateNodePoolRequest 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 UpdateNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateNodePoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.UpdateNodePoolRequest; + + /** + * Creates a plain object from an UpdateNodePoolRequest message. Also converts values to other types if specified. + * @param message UpdateNodePoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.UpdateNodePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateNodePoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetNodePoolAutoscalingRequest. */ + interface ISetNodePoolAutoscalingRequest { + + /** SetNodePoolAutoscalingRequest projectId */ + projectId?: (string|null); + + /** SetNodePoolAutoscalingRequest zone */ + zone?: (string|null); + + /** SetNodePoolAutoscalingRequest clusterId */ + clusterId?: (string|null); + + /** SetNodePoolAutoscalingRequest nodePoolId */ + nodePoolId?: (string|null); + + /** SetNodePoolAutoscalingRequest autoscaling */ + autoscaling?: (google.container.v1.INodePoolAutoscaling|null); + + /** SetNodePoolAutoscalingRequest name */ + name?: (string|null); + } + + /** Represents a SetNodePoolAutoscalingRequest. */ + class SetNodePoolAutoscalingRequest implements ISetNodePoolAutoscalingRequest { + + /** + * Constructs a new SetNodePoolAutoscalingRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetNodePoolAutoscalingRequest); + + /** SetNodePoolAutoscalingRequest projectId. */ + public projectId: string; + + /** SetNodePoolAutoscalingRequest zone. */ + public zone: string; + + /** SetNodePoolAutoscalingRequest clusterId. */ + public clusterId: string; + + /** SetNodePoolAutoscalingRequest nodePoolId. */ + public nodePoolId: string; + + /** SetNodePoolAutoscalingRequest autoscaling. */ + public autoscaling?: (google.container.v1.INodePoolAutoscaling|null); + + /** SetNodePoolAutoscalingRequest name. */ + public name: string; + + /** + * Creates a new SetNodePoolAutoscalingRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetNodePoolAutoscalingRequest instance + */ + public static create(properties?: google.container.v1.ISetNodePoolAutoscalingRequest): google.container.v1.SetNodePoolAutoscalingRequest; + + /** + * Encodes the specified SetNodePoolAutoscalingRequest message. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages. + * @param message SetNodePoolAutoscalingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ISetNodePoolAutoscalingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetNodePoolAutoscalingRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages. + * @param message SetNodePoolAutoscalingRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetNodePoolAutoscalingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetNodePoolAutoscalingRequest + * @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.SetNodePoolAutoscalingRequest; + + /** + * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetNodePoolAutoscalingRequest + * @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.SetNodePoolAutoscalingRequest; + + /** + * Verifies a SetNodePoolAutoscalingRequest 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 SetNodePoolAutoscalingRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetNodePoolAutoscalingRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolAutoscalingRequest; + + /** + * Creates a plain object from a SetNodePoolAutoscalingRequest message. Also converts values to other types if specified. + * @param message SetNodePoolAutoscalingRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.SetNodePoolAutoscalingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetNodePoolAutoscalingRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetLoggingServiceRequest. */ + interface ISetLoggingServiceRequest { + + /** SetLoggingServiceRequest projectId */ + projectId?: (string|null); + + /** SetLoggingServiceRequest zone */ + zone?: (string|null); + + /** SetLoggingServiceRequest clusterId */ + clusterId?: (string|null); + + /** SetLoggingServiceRequest loggingService */ + loggingService?: (string|null); + + /** SetLoggingServiceRequest name */ + name?: (string|null); + } + + /** Represents a SetLoggingServiceRequest. */ + class SetLoggingServiceRequest implements ISetLoggingServiceRequest { + + /** + * Constructs a new SetLoggingServiceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetLoggingServiceRequest); + + /** SetLoggingServiceRequest projectId. */ + public projectId: string; + + /** SetLoggingServiceRequest zone. */ + public zone: string; + + /** SetLoggingServiceRequest clusterId. */ + public clusterId: string; + + /** SetLoggingServiceRequest loggingService. */ + public loggingService: string; + + /** SetLoggingServiceRequest name. */ + public name: string; + + /** + * Creates a new SetLoggingServiceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetLoggingServiceRequest instance + */ + public static create(properties?: google.container.v1.ISetLoggingServiceRequest): google.container.v1.SetLoggingServiceRequest; + + /** + * Encodes the specified SetLoggingServiceRequest message. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. + * @param message SetLoggingServiceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ISetLoggingServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetLoggingServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. + * @param message SetLoggingServiceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetLoggingServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetLoggingServiceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetLoggingServiceRequest + * @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.SetLoggingServiceRequest; + + /** + * Decodes a SetLoggingServiceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetLoggingServiceRequest + * @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.SetLoggingServiceRequest; + + /** + * Verifies a SetLoggingServiceRequest 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 SetLoggingServiceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetLoggingServiceRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetLoggingServiceRequest; + + /** + * Creates a plain object from a SetLoggingServiceRequest message. Also converts values to other types if specified. + * @param message SetLoggingServiceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.SetLoggingServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetLoggingServiceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetMonitoringServiceRequest. */ + interface ISetMonitoringServiceRequest { + + /** SetMonitoringServiceRequest projectId */ + projectId?: (string|null); + + /** SetMonitoringServiceRequest zone */ + zone?: (string|null); + + /** SetMonitoringServiceRequest clusterId */ + clusterId?: (string|null); + + /** SetMonitoringServiceRequest monitoringService */ + monitoringService?: (string|null); + + /** SetMonitoringServiceRequest name */ + name?: (string|null); + } + + /** Represents a SetMonitoringServiceRequest. */ + class SetMonitoringServiceRequest implements ISetMonitoringServiceRequest { + + /** + * Constructs a new SetMonitoringServiceRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetMonitoringServiceRequest); + + /** SetMonitoringServiceRequest projectId. */ + public projectId: string; + + /** SetMonitoringServiceRequest zone. */ + public zone: string; + + /** SetMonitoringServiceRequest clusterId. */ + public clusterId: string; + + /** SetMonitoringServiceRequest monitoringService. */ + public monitoringService: string; + + /** SetMonitoringServiceRequest name. */ + public name: string; + + /** + * Creates a new SetMonitoringServiceRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetMonitoringServiceRequest instance + */ + public static create(properties?: google.container.v1.ISetMonitoringServiceRequest): google.container.v1.SetMonitoringServiceRequest; + + /** + * Encodes the specified SetMonitoringServiceRequest message. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. + * @param message SetMonitoringServiceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ISetMonitoringServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetMonitoringServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. + * @param message SetMonitoringServiceRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetMonitoringServiceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetMonitoringServiceRequest + * @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.SetMonitoringServiceRequest; + + /** + * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetMonitoringServiceRequest + * @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.SetMonitoringServiceRequest; + + /** + * Verifies a SetMonitoringServiceRequest 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 SetMonitoringServiceRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetMonitoringServiceRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetMonitoringServiceRequest; + + /** + * Creates a plain object from a SetMonitoringServiceRequest message. Also converts values to other types if specified. + * @param message SetMonitoringServiceRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.SetMonitoringServiceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetMonitoringServiceRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetAddonsConfigRequest. */ + interface ISetAddonsConfigRequest { + + /** SetAddonsConfigRequest projectId */ + projectId?: (string|null); + + /** SetAddonsConfigRequest zone */ + zone?: (string|null); + + /** SetAddonsConfigRequest clusterId */ + clusterId?: (string|null); + + /** SetAddonsConfigRequest addonsConfig */ + addonsConfig?: (google.container.v1.IAddonsConfig|null); + + /** SetAddonsConfigRequest name */ + name?: (string|null); + } + + /** Represents a SetAddonsConfigRequest. */ + class SetAddonsConfigRequest implements ISetAddonsConfigRequest { + + /** + * Constructs a new SetAddonsConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetAddonsConfigRequest); + + /** SetAddonsConfigRequest projectId. */ + public projectId: string; + + /** SetAddonsConfigRequest zone. */ + public zone: string; + + /** SetAddonsConfigRequest clusterId. */ + public clusterId: string; + + /** SetAddonsConfigRequest addonsConfig. */ + public addonsConfig?: (google.container.v1.IAddonsConfig|null); + + /** SetAddonsConfigRequest name. */ + public name: string; + + /** + * Creates a new SetAddonsConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetAddonsConfigRequest instance + */ + public static create(properties?: google.container.v1.ISetAddonsConfigRequest): google.container.v1.SetAddonsConfigRequest; + + /** + * Encodes the specified SetAddonsConfigRequest message. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. + * @param message SetAddonsConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ISetAddonsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetAddonsConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. + * @param message SetAddonsConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetAddonsConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetAddonsConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetAddonsConfigRequest + * @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.SetAddonsConfigRequest; + + /** + * Decodes a SetAddonsConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetAddonsConfigRequest + * @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.SetAddonsConfigRequest; + + /** + * Verifies a SetAddonsConfigRequest 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 SetAddonsConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetAddonsConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetAddonsConfigRequest; + + /** + * Creates a plain object from a SetAddonsConfigRequest message. Also converts values to other types if specified. + * @param message SetAddonsConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.SetAddonsConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetAddonsConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetLocationsRequest. */ + interface ISetLocationsRequest { + + /** SetLocationsRequest projectId */ + projectId?: (string|null); + + /** SetLocationsRequest zone */ + zone?: (string|null); + + /** SetLocationsRequest clusterId */ + clusterId?: (string|null); + + /** SetLocationsRequest locations */ + locations?: (string[]|null); + + /** SetLocationsRequest name */ + name?: (string|null); + } + + /** Represents a SetLocationsRequest. */ + class SetLocationsRequest implements ISetLocationsRequest { + + /** + * Constructs a new SetLocationsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetLocationsRequest); + + /** SetLocationsRequest projectId. */ + public projectId: string; + + /** SetLocationsRequest zone. */ + public zone: string; + + /** SetLocationsRequest clusterId. */ + public clusterId: string; + + /** SetLocationsRequest locations. */ + public locations: string[]; + + /** SetLocationsRequest name. */ + public name: string; + + /** + * Creates a new SetLocationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetLocationsRequest instance + */ + public static create(properties?: google.container.v1.ISetLocationsRequest): google.container.v1.SetLocationsRequest; + + /** + * Encodes the specified SetLocationsRequest message. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. + * @param message SetLocationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ISetLocationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetLocationsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. + * @param message SetLocationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetLocationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetLocationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetLocationsRequest + * @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.SetLocationsRequest; + + /** + * Decodes a SetLocationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetLocationsRequest + * @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.SetLocationsRequest; + + /** + * Verifies a SetLocationsRequest 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 SetLocationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetLocationsRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetLocationsRequest; + + /** + * Creates a plain object from a SetLocationsRequest message. Also converts values to other types if specified. + * @param message SetLocationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.SetLocationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetLocationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateMasterRequest. */ + interface IUpdateMasterRequest { + + /** UpdateMasterRequest projectId */ + projectId?: (string|null); + + /** UpdateMasterRequest zone */ + zone?: (string|null); + + /** UpdateMasterRequest clusterId */ + clusterId?: (string|null); + + /** UpdateMasterRequest masterVersion */ + masterVersion?: (string|null); + + /** UpdateMasterRequest name */ + name?: (string|null); + } + + /** Represents an UpdateMasterRequest. */ + class UpdateMasterRequest implements IUpdateMasterRequest { + + /** + * Constructs a new UpdateMasterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IUpdateMasterRequest); + + /** UpdateMasterRequest projectId. */ + public projectId: string; + + /** UpdateMasterRequest zone. */ + public zone: string; + + /** UpdateMasterRequest clusterId. */ + public clusterId: string; + + /** UpdateMasterRequest masterVersion. */ + public masterVersion: string; + + /** UpdateMasterRequest name. */ + public name: string; + + /** + * Creates a new UpdateMasterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateMasterRequest instance + */ + public static create(properties?: google.container.v1.IUpdateMasterRequest): google.container.v1.UpdateMasterRequest; + + /** + * Encodes the specified UpdateMasterRequest message. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. + * @param message UpdateMasterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IUpdateMasterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateMasterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. + * @param message UpdateMasterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IUpdateMasterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateMasterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateMasterRequest + * @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.UpdateMasterRequest; + + /** + * Decodes an UpdateMasterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateMasterRequest + * @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.UpdateMasterRequest; + + /** + * Verifies an UpdateMasterRequest 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 UpdateMasterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateMasterRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.UpdateMasterRequest; + + /** + * Creates a plain object from an UpdateMasterRequest message. Also converts values to other types if specified. + * @param message UpdateMasterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.UpdateMasterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateMasterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetMasterAuthRequest. */ + interface ISetMasterAuthRequest { + + /** SetMasterAuthRequest projectId */ + projectId?: (string|null); + + /** SetMasterAuthRequest zone */ + zone?: (string|null); + + /** SetMasterAuthRequest clusterId */ + clusterId?: (string|null); + + /** SetMasterAuthRequest action */ + action?: (google.container.v1.SetMasterAuthRequest.Action|null); + + /** SetMasterAuthRequest update */ + update?: (google.container.v1.IMasterAuth|null); + + /** SetMasterAuthRequest name */ + name?: (string|null); + } + + /** Represents a SetMasterAuthRequest. */ + class SetMasterAuthRequest implements ISetMasterAuthRequest { + + /** + * Constructs a new SetMasterAuthRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetMasterAuthRequest); + + /** SetMasterAuthRequest projectId. */ + public projectId: string; + + /** SetMasterAuthRequest zone. */ + public zone: string; + + /** SetMasterAuthRequest clusterId. */ + public clusterId: string; + + /** SetMasterAuthRequest action. */ + public action: google.container.v1.SetMasterAuthRequest.Action; + + /** SetMasterAuthRequest update. */ + public update?: (google.container.v1.IMasterAuth|null); + + /** SetMasterAuthRequest name. */ + public name: string; + + /** + * Creates a new SetMasterAuthRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetMasterAuthRequest instance + */ + public static create(properties?: google.container.v1.ISetMasterAuthRequest): google.container.v1.SetMasterAuthRequest; + + /** + * Encodes the specified SetMasterAuthRequest message. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. + * @param message SetMasterAuthRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ISetMasterAuthRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SetMasterAuthRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. + * @param message SetMasterAuthRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetMasterAuthRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SetMasterAuthRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SetMasterAuthRequest + * @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.SetMasterAuthRequest; + + /** + * Decodes a SetMasterAuthRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SetMasterAuthRequest + * @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.SetMasterAuthRequest; + + /** + * Verifies a SetMasterAuthRequest 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 SetMasterAuthRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetMasterAuthRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetMasterAuthRequest; + + /** + * Creates a plain object from a SetMasterAuthRequest message. Also converts values to other types if specified. + * @param message SetMasterAuthRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.SetMasterAuthRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetMasterAuthRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SetMasterAuthRequest { + + /** Action enum. */ + enum Action { + UNKNOWN = 0, + SET_PASSWORD = 1, + GENERATE_PASSWORD = 2, + SET_USERNAME = 3 + } + } + + /** Properties of a DeleteClusterRequest. */ + interface IDeleteClusterRequest { + + /** DeleteClusterRequest projectId */ + projectId?: (string|null); + + /** DeleteClusterRequest zone */ + zone?: (string|null); + + /** DeleteClusterRequest clusterId */ + clusterId?: (string|null); + + /** DeleteClusterRequest name */ + name?: (string|null); + } + + /** Represents a DeleteClusterRequest. */ + class DeleteClusterRequest implements IDeleteClusterRequest { + + /** + * Constructs a new DeleteClusterRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IDeleteClusterRequest); + + /** DeleteClusterRequest projectId. */ + public projectId: string; + + /** DeleteClusterRequest zone. */ + public zone: string; + + /** DeleteClusterRequest clusterId. */ + public clusterId: string; + + /** DeleteClusterRequest name. */ + public name: string; + + /** + * Creates a new DeleteClusterRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteClusterRequest instance + */ + public static create(properties?: google.container.v1.IDeleteClusterRequest): google.container.v1.DeleteClusterRequest; + + /** + * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages. + * @param message DeleteClusterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IDeleteClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages. + * @param message DeleteClusterRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IDeleteClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteClusterRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteClusterRequest + * @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.DeleteClusterRequest; + + /** + * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteClusterRequest + * @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.DeleteClusterRequest; + + /** + * Verifies a DeleteClusterRequest 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 DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteClusterRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.DeleteClusterRequest; + + /** + * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified. + * @param message DeleteClusterRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.DeleteClusterRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteClusterRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListClustersRequest. */ + interface IListClustersRequest { + + /** ListClustersRequest projectId */ + projectId?: (string|null); + + /** ListClustersRequest zone */ + zone?: (string|null); + + /** ListClustersRequest parent */ + parent?: (string|null); + } + + /** Represents a ListClustersRequest. */ + class ListClustersRequest implements IListClustersRequest { + + /** + * Constructs a new ListClustersRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IListClustersRequest); + + /** ListClustersRequest projectId. */ + public projectId: string; + + /** ListClustersRequest zone. */ + public zone: string; + + /** ListClustersRequest parent. */ + public parent: string; + + /** + * Creates a new ListClustersRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListClustersRequest instance + */ + public static create(properties?: google.container.v1.IListClustersRequest): google.container.v1.ListClustersRequest; + + /** + * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * @param message ListClustersRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IListClustersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * @param message ListClustersRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IListClustersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListClustersRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListClustersRequest + * @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.ListClustersRequest; + + /** + * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListClustersRequest + * @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.ListClustersRequest; + + /** + * Verifies a ListClustersRequest 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 ListClustersRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListClustersRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ListClustersRequest; + + /** + * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. + * @param message ListClustersRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ListClustersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListClustersRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListClustersResponse. */ + interface IListClustersResponse { + + /** ListClustersResponse clusters */ + clusters?: (google.container.v1.ICluster[]|null); + + /** ListClustersResponse missingZones */ + missingZones?: (string[]|null); + } + + /** Represents a ListClustersResponse. */ + class ListClustersResponse implements IListClustersResponse { + + /** + * Constructs a new ListClustersResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IListClustersResponse); + + /** ListClustersResponse clusters. */ + public clusters: google.container.v1.ICluster[]; + + /** ListClustersResponse missingZones. */ + public missingZones: string[]; + + /** + * Creates a new ListClustersResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListClustersResponse instance + */ + public static create(properties?: google.container.v1.IListClustersResponse): google.container.v1.ListClustersResponse; + + /** + * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. + * @param message ListClustersResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IListClustersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. + * @param message ListClustersResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IListClustersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListClustersResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListClustersResponse + * @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.ListClustersResponse; + + /** + * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListClustersResponse + * @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.ListClustersResponse; + + /** + * Verifies a ListClustersResponse 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 ListClustersResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListClustersResponse + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ListClustersResponse; + + /** + * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. + * @param message ListClustersResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ListClustersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListClustersResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetOperationRequest. */ + interface IGetOperationRequest { + + /** GetOperationRequest projectId */ + projectId?: (string|null); + + /** GetOperationRequest zone */ + zone?: (string|null); + + /** GetOperationRequest operationId */ + operationId?: (string|null); + + /** GetOperationRequest name */ + name?: (string|null); + } + + /** Represents a GetOperationRequest. */ + class GetOperationRequest implements IGetOperationRequest { + + /** + * Constructs a new GetOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGetOperationRequest); + + /** GetOperationRequest projectId. */ + public projectId: string; + + /** GetOperationRequest zone. */ + public zone: string; + + /** GetOperationRequest operationId. */ + public operationId: string; + + /** GetOperationRequest name. */ + public name: string; + + /** + * Creates a new GetOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetOperationRequest instance + */ + public static create(properties?: google.container.v1.IGetOperationRequest): google.container.v1.GetOperationRequest; + + /** + * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. + * @param message GetOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. + * @param message GetOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IGetOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetOperationRequest + * @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.GetOperationRequest; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetOperationRequest + * @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.GetOperationRequest; + + /** + * Verifies a GetOperationRequest 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 GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GetOperationRequest; + + /** + * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. + * @param message GetOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.GetOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListOperationsRequest. */ + interface IListOperationsRequest { + + /** ListOperationsRequest projectId */ + projectId?: (string|null); + + /** ListOperationsRequest zone */ + zone?: (string|null); + + /** ListOperationsRequest parent */ + parent?: (string|null); + } + + /** Represents a ListOperationsRequest. */ + class ListOperationsRequest implements IListOperationsRequest { + + /** + * Constructs a new ListOperationsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IListOperationsRequest); + + /** ListOperationsRequest projectId. */ + public projectId: string; + + /** ListOperationsRequest zone. */ + public zone: string; + + /** ListOperationsRequest parent. */ + public parent: string; + + /** + * Creates a new ListOperationsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListOperationsRequest instance + */ + public static create(properties?: google.container.v1.IListOperationsRequest): google.container.v1.ListOperationsRequest; + + /** + * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. + * @param message ListOperationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. + * @param message ListOperationsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IListOperationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListOperationsRequest + * @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.ListOperationsRequest; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListOperationsRequest + * @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.ListOperationsRequest; + + /** + * Verifies a ListOperationsRequest 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 ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListOperationsRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ListOperationsRequest; + + /** + * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. + * @param message ListOperationsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ListOperationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListOperationsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CancelOperationRequest. */ + interface ICancelOperationRequest { + + /** CancelOperationRequest projectId */ + projectId?: (string|null); + + /** CancelOperationRequest zone */ + zone?: (string|null); + + /** CancelOperationRequest operationId */ + operationId?: (string|null); + + /** CancelOperationRequest name */ + name?: (string|null); + } + + /** Represents a CancelOperationRequest. */ + class CancelOperationRequest implements ICancelOperationRequest { + + /** + * Constructs a new CancelOperationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ICancelOperationRequest); + + /** CancelOperationRequest projectId. */ + public projectId: string; + + /** CancelOperationRequest zone. */ + public zone: string; + + /** CancelOperationRequest operationId. */ + public operationId: string; + + /** CancelOperationRequest name. */ + public name: string; + + /** + * Creates a new CancelOperationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelOperationRequest instance + */ + public static create(properties?: google.container.v1.ICancelOperationRequest): google.container.v1.CancelOperationRequest; + + /** + * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. + * @param message CancelOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. + * @param message CancelOperationRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ICancelOperationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CancelOperationRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelOperationRequest + * @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.CancelOperationRequest; + + /** + * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelOperationRequest + * @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.CancelOperationRequest; + + /** + * Verifies a CancelOperationRequest 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 CancelOperationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelOperationRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.CancelOperationRequest; + + /** + * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. + * @param message CancelOperationRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.CancelOperationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelOperationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListOperationsResponse. */ + interface IListOperationsResponse { + + /** ListOperationsResponse operations */ + operations?: (google.container.v1.IOperation[]|null); + + /** ListOperationsResponse missingZones */ + missingZones?: (string[]|null); + } + + /** Represents a ListOperationsResponse. */ + class ListOperationsResponse implements IListOperationsResponse { + + /** + * Constructs a new ListOperationsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IListOperationsResponse); + + /** ListOperationsResponse operations. */ + public operations: google.container.v1.IOperation[]; + + /** ListOperationsResponse missingZones. */ + public missingZones: string[]; + + /** + * Creates a new ListOperationsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListOperationsResponse instance + */ + public static create(properties?: google.container.v1.IListOperationsResponse): google.container.v1.ListOperationsResponse; + + /** + * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. + * @param message ListOperationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. + * @param message ListOperationsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IListOperationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListOperationsResponse + * @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.ListOperationsResponse; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListOperationsResponse + * @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.ListOperationsResponse; + + /** + * Verifies a ListOperationsResponse 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 ListOperationsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListOperationsResponse + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ListOperationsResponse; + + /** + * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. + * @param message ListOperationsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ListOperationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListOperationsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetServerConfigRequest. */ + interface IGetServerConfigRequest { + + /** GetServerConfigRequest projectId */ + projectId?: (string|null); + + /** GetServerConfigRequest zone */ + zone?: (string|null); + + /** GetServerConfigRequest name */ + name?: (string|null); + } + + /** Represents a GetServerConfigRequest. */ + class GetServerConfigRequest implements IGetServerConfigRequest { + + /** + * Constructs a new GetServerConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGetServerConfigRequest); + + /** GetServerConfigRequest projectId. */ + public projectId: string; + + /** GetServerConfigRequest zone. */ + public zone: string; + + /** GetServerConfigRequest name. */ + public name: string; + + /** + * Creates a new GetServerConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetServerConfigRequest instance + */ + public static create(properties?: google.container.v1.IGetServerConfigRequest): google.container.v1.GetServerConfigRequest; + + /** + * Encodes the specified GetServerConfigRequest message. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. + * @param message GetServerConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IGetServerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetServerConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. + * @param message GetServerConfigRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IGetServerConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetServerConfigRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetServerConfigRequest + * @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.GetServerConfigRequest; + + /** + * Decodes a GetServerConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetServerConfigRequest + * @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.GetServerConfigRequest; + + /** + * Verifies a GetServerConfigRequest 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 GetServerConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetServerConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GetServerConfigRequest; + + /** + * Creates a plain object from a GetServerConfigRequest message. Also converts values to other types if specified. + * @param message GetServerConfigRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.GetServerConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetServerConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServerConfig. */ + interface IServerConfig { + + /** ServerConfig defaultClusterVersion */ + defaultClusterVersion?: (string|null); + + /** ServerConfig validNodeVersions */ + validNodeVersions?: (string[]|null); + + /** ServerConfig defaultImageType */ + defaultImageType?: (string|null); + + /** ServerConfig validImageTypes */ + validImageTypes?: (string[]|null); + + /** ServerConfig validMasterVersions */ + validMasterVersions?: (string[]|null); + } + + /** Represents a ServerConfig. */ + class ServerConfig implements IServerConfig { + + /** + * Constructs a new ServerConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IServerConfig); + + /** ServerConfig defaultClusterVersion. */ + public defaultClusterVersion: string; + + /** ServerConfig validNodeVersions. */ + public validNodeVersions: string[]; + + /** ServerConfig defaultImageType. */ + public defaultImageType: string; + + /** ServerConfig validImageTypes. */ + public validImageTypes: string[]; + + /** ServerConfig validMasterVersions. */ + public validMasterVersions: string[]; + + /** + * Creates a new ServerConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ServerConfig instance + */ + public static create(properties?: google.container.v1.IServerConfig): google.container.v1.ServerConfig; + + /** + * Encodes the specified ServerConfig message. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. + * @param message ServerConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IServerConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServerConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. + * @param message ServerConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IServerConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServerConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServerConfig + * @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; + + /** + * Decodes a ServerConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServerConfig + * @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; + + /** + * Verifies a ServerConfig 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 ServerConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServerConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ServerConfig; + + /** + * Creates a plain object from a ServerConfig message. Also converts values to other types if specified. + * @param message ServerConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ServerConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServerConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateNodePoolRequest. */ + interface ICreateNodePoolRequest { + + /** CreateNodePoolRequest projectId */ + projectId?: (string|null); + + /** CreateNodePoolRequest zone */ + zone?: (string|null); + + /** CreateNodePoolRequest clusterId */ + clusterId?: (string|null); + + /** CreateNodePoolRequest nodePool */ + nodePool?: (google.container.v1.INodePool|null); + + /** CreateNodePoolRequest parent */ + parent?: (string|null); + } + + /** Represents a CreateNodePoolRequest. */ + class CreateNodePoolRequest implements ICreateNodePoolRequest { + + /** + * Constructs a new CreateNodePoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ICreateNodePoolRequest); + + /** CreateNodePoolRequest projectId. */ + public projectId: string; + + /** CreateNodePoolRequest zone. */ + public zone: string; + + /** CreateNodePoolRequest clusterId. */ + public clusterId: string; + + /** CreateNodePoolRequest nodePool. */ + public nodePool?: (google.container.v1.INodePool|null); + + /** CreateNodePoolRequest parent. */ + public parent: string; + + /** + * Creates a new CreateNodePoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateNodePoolRequest instance + */ + public static create(properties?: google.container.v1.ICreateNodePoolRequest): google.container.v1.CreateNodePoolRequest; + + /** + * Encodes the specified CreateNodePoolRequest message. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. + * @param message CreateNodePoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ICreateNodePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CreateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. + * @param message CreateNodePoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ICreateNodePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CreateNodePoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateNodePoolRequest + * @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.CreateNodePoolRequest; + + /** + * Decodes a CreateNodePoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateNodePoolRequest + * @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.CreateNodePoolRequest; + + /** + * Verifies a CreateNodePoolRequest 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 CreateNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateNodePoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.CreateNodePoolRequest; + + /** + * Creates a plain object from a CreateNodePoolRequest message. Also converts values to other types if specified. + * @param message CreateNodePoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.CreateNodePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CreateNodePoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DeleteNodePoolRequest. */ + interface IDeleteNodePoolRequest { + + /** DeleteNodePoolRequest projectId */ + projectId?: (string|null); + + /** DeleteNodePoolRequest zone */ + zone?: (string|null); + + /** DeleteNodePoolRequest clusterId */ + clusterId?: (string|null); + + /** DeleteNodePoolRequest nodePoolId */ + nodePoolId?: (string|null); + + /** DeleteNodePoolRequest name */ + name?: (string|null); + } + + /** Represents a DeleteNodePoolRequest. */ + class DeleteNodePoolRequest implements IDeleteNodePoolRequest { + + /** + * Constructs a new DeleteNodePoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IDeleteNodePoolRequest); + + /** DeleteNodePoolRequest projectId. */ + public projectId: string; + + /** DeleteNodePoolRequest zone. */ + public zone: string; + + /** DeleteNodePoolRequest clusterId. */ + public clusterId: string; + + /** DeleteNodePoolRequest nodePoolId. */ + public nodePoolId: string; + + /** DeleteNodePoolRequest name. */ + public name: string; + + /** + * Creates a new DeleteNodePoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteNodePoolRequest instance + */ + public static create(properties?: google.container.v1.IDeleteNodePoolRequest): google.container.v1.DeleteNodePoolRequest; + + /** + * Encodes the specified DeleteNodePoolRequest message. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. + * @param message DeleteNodePoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IDeleteNodePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. + * @param message DeleteNodePoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IDeleteNodePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteNodePoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteNodePoolRequest + * @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.DeleteNodePoolRequest; + + /** + * Decodes a DeleteNodePoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteNodePoolRequest + * @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.DeleteNodePoolRequest; + + /** + * Verifies a DeleteNodePoolRequest 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 DeleteNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteNodePoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.DeleteNodePoolRequest; + + /** + * Creates a plain object from a DeleteNodePoolRequest message. Also converts values to other types if specified. + * @param message DeleteNodePoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.DeleteNodePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteNodePoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListNodePoolsRequest. */ + interface IListNodePoolsRequest { + + /** ListNodePoolsRequest projectId */ + projectId?: (string|null); + + /** ListNodePoolsRequest zone */ + zone?: (string|null); + + /** ListNodePoolsRequest clusterId */ + clusterId?: (string|null); + + /** ListNodePoolsRequest parent */ + parent?: (string|null); + } + + /** Represents a ListNodePoolsRequest. */ + class ListNodePoolsRequest implements IListNodePoolsRequest { + + /** + * Constructs a new ListNodePoolsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IListNodePoolsRequest); + + /** ListNodePoolsRequest projectId. */ + public projectId: string; + + /** ListNodePoolsRequest zone. */ + public zone: string; + + /** ListNodePoolsRequest clusterId. */ + public clusterId: string; + + /** ListNodePoolsRequest parent. */ + public parent: string; + + /** + * Creates a new ListNodePoolsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListNodePoolsRequest instance + */ + public static create(properties?: google.container.v1.IListNodePoolsRequest): google.container.v1.ListNodePoolsRequest; + + /** + * Encodes the specified ListNodePoolsRequest message. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. + * @param message ListNodePoolsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IListNodePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListNodePoolsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. + * @param message ListNodePoolsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IListNodePoolsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListNodePoolsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListNodePoolsRequest + * @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.ListNodePoolsRequest; + + /** + * Decodes a ListNodePoolsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListNodePoolsRequest + * @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.ListNodePoolsRequest; + + /** + * Verifies a ListNodePoolsRequest 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 ListNodePoolsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListNodePoolsRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ListNodePoolsRequest; + + /** + * Creates a plain object from a ListNodePoolsRequest message. Also converts values to other types if specified. + * @param message ListNodePoolsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ListNodePoolsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListNodePoolsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetNodePoolRequest. */ + interface IGetNodePoolRequest { + + /** GetNodePoolRequest projectId */ + projectId?: (string|null); + + /** GetNodePoolRequest zone */ + zone?: (string|null); + + /** GetNodePoolRequest clusterId */ + clusterId?: (string|null); + + /** GetNodePoolRequest nodePoolId */ + nodePoolId?: (string|null); + + /** GetNodePoolRequest name */ + name?: (string|null); + } + + /** Represents a GetNodePoolRequest. */ + class GetNodePoolRequest implements IGetNodePoolRequest { + + /** + * Constructs a new GetNodePoolRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGetNodePoolRequest); + + /** GetNodePoolRequest projectId. */ + public projectId: string; + + /** GetNodePoolRequest zone. */ + public zone: string; + + /** GetNodePoolRequest clusterId. */ + public clusterId: string; + + /** GetNodePoolRequest nodePoolId. */ + public nodePoolId: string; + + /** GetNodePoolRequest name. */ + public name: string; + + /** + * Creates a new GetNodePoolRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetNodePoolRequest instance + */ + public static create(properties?: google.container.v1.IGetNodePoolRequest): google.container.v1.GetNodePoolRequest; + + /** + * Encodes the specified GetNodePoolRequest message. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. + * @param message GetNodePoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IGetNodePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GetNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. + * @param message GetNodePoolRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IGetNodePoolRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GetNodePoolRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetNodePoolRequest + * @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.GetNodePoolRequest; + + /** + * Decodes a GetNodePoolRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetNodePoolRequest + * @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.GetNodePoolRequest; + + /** + * Verifies a GetNodePoolRequest 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 GetNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetNodePoolRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GetNodePoolRequest; + + /** + * Creates a plain object from a GetNodePoolRequest message. Also converts values to other types if specified. + * @param message GetNodePoolRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.GetNodePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetNodePoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NodePool. */ + interface INodePool { + + /** NodePool name */ + name?: (string|null); + + /** NodePool config */ + config?: (google.container.v1.INodeConfig|null); + + /** NodePool initialNodeCount */ + initialNodeCount?: (number|null); + + /** NodePool selfLink */ + selfLink?: (string|null); + + /** NodePool version */ + version?: (string|null); + + /** NodePool instanceGroupUrls */ + instanceGroupUrls?: (string[]|null); + + /** NodePool status */ + status?: (google.container.v1.NodePool.Status|null); + + /** NodePool statusMessage */ + statusMessage?: (string|null); + + /** NodePool autoscaling */ + autoscaling?: (google.container.v1.INodePoolAutoscaling|null); + + /** NodePool management */ + management?: (google.container.v1.INodeManagement|null); + } + + /** Represents a NodePool. */ + class NodePool implements INodePool { + + /** + * Constructs a new NodePool. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodePool); + + /** NodePool name. */ + public name: string; + + /** NodePool config. */ + public config?: (google.container.v1.INodeConfig|null); + + /** NodePool initialNodeCount. */ + public initialNodeCount: number; + + /** NodePool selfLink. */ + public selfLink: string; + + /** NodePool version. */ + public version: string; + + /** NodePool instanceGroupUrls. */ + public instanceGroupUrls: string[]; + + /** NodePool status. */ + public status: google.container.v1.NodePool.Status; + + /** NodePool statusMessage. */ + public statusMessage: string; + + /** NodePool autoscaling. */ + public autoscaling?: (google.container.v1.INodePoolAutoscaling|null); + + /** NodePool management. */ + public management?: (google.container.v1.INodeManagement|null); + + /** + * Creates a new NodePool instance using the specified properties. + * @param [properties] Properties to set + * @returns NodePool instance + */ + public static create(properties?: google.container.v1.INodePool): google.container.v1.NodePool; + + /** + * Encodes the specified NodePool message. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. + * @param message NodePool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodePool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodePool message, length delimited. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. + * @param message NodePool message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodePool, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodePool message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodePool + * @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; + + /** + * Decodes a NodePool message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodePool + * @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; + + /** + * Verifies a NodePool 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 NodePool message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodePool + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePool; + + /** + * Creates a plain object from a NodePool message. Also converts values to other types if specified. + * @param message NodePool + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodePool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodePool to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace NodePool { + + /** Status enum. */ + enum Status { + STATUS_UNSPECIFIED = 0, + PROVISIONING = 1, + RUNNING = 2, + RUNNING_WITH_ERROR = 3, + RECONCILING = 4, + STOPPING = 5, + ERROR = 6 + } + } + + /** Properties of a NodeManagement. */ + interface INodeManagement { + + /** NodeManagement autoUpgrade */ + autoUpgrade?: (boolean|null); + + /** NodeManagement autoRepair */ + autoRepair?: (boolean|null); + + /** NodeManagement upgradeOptions */ + upgradeOptions?: (google.container.v1.IAutoUpgradeOptions|null); + } + + /** Represents a NodeManagement. */ + class NodeManagement implements INodeManagement { + + /** + * Constructs a new NodeManagement. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodeManagement); + + /** 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); + } + + /** 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); + + /** + * 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); + } + + /** 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 policy. */ + public policy?: "dailyMaintenanceWindow"; + + /** + * 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 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; + + /** SetNodePoolManagementRequest management. */ + public management?: (google.container.v1.INodeManagement|null); + + /** SetNodePoolManagementRequest name. */ + public name: string; + + /** + * Creates a new SetNodePoolManagementRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetNodePoolManagementRequest instance + */ + public static create(properties?: google.container.v1.ISetNodePoolManagementRequest): google.container.v1.SetNodePoolManagementRequest; + + /** + * 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.ISetNodePoolManagementRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetNodePoolManagementRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.SetNodePoolManagementRequest; + + /** + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.SetNodePoolManagementRequest; + + /** + * 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 SetNodePoolManagementRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetNodePoolManagementRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolManagementRequest; + + /** + * 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.SetNodePoolManagementRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetNodePoolManagementRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetNodePoolSizeRequest. */ + interface ISetNodePoolSizeRequest { + + /** SetNodePoolSizeRequest projectId */ + projectId?: (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 a SetNodePoolSizeRequest. */ + class SetNodePoolSizeRequest implements ISetNodePoolSizeRequest { + + /** + * Constructs a new SetNodePoolSizeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetNodePoolSizeRequest); + + /** SetNodePoolSizeRequest projectId. */ + public projectId: 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 SetNodePoolSizeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetNodePoolSizeRequest instance + */ + public static create(properties?: google.container.v1.ISetNodePoolSizeRequest): google.container.v1.SetNodePoolSizeRequest; + + /** + * 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.ISetNodePoolSizeRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetNodePoolSizeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.SetNodePoolSizeRequest; + + /** + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.SetNodePoolSizeRequest; + + /** + * 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 a SetNodePoolSizeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetNodePoolSizeRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetNodePoolSizeRequest; + + /** + * 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.SetNodePoolSizeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetNodePoolSizeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a RollbackNodePoolUpgradeRequest. */ + interface IRollbackNodePoolUpgradeRequest { + + /** RollbackNodePoolUpgradeRequest projectId */ + projectId?: (string|null); + + /** RollbackNodePoolUpgradeRequest zone */ + zone?: (string|null); + + /** RollbackNodePoolUpgradeRequest clusterId */ + clusterId?: (string|null); + + /** RollbackNodePoolUpgradeRequest nodePoolId */ + nodePoolId?: (string|null); + + /** RollbackNodePoolUpgradeRequest name */ + name?: (string|null); + } + + /** Represents a RollbackNodePoolUpgradeRequest. */ + class RollbackNodePoolUpgradeRequest implements IRollbackNodePoolUpgradeRequest { + + /** + * Constructs a new RollbackNodePoolUpgradeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IRollbackNodePoolUpgradeRequest); + + /** RollbackNodePoolUpgradeRequest projectId. */ + public projectId: string; + + /** RollbackNodePoolUpgradeRequest zone. */ + public zone: string; + + /** RollbackNodePoolUpgradeRequest clusterId. */ + public clusterId: string; + + /** RollbackNodePoolUpgradeRequest nodePoolId. */ + public nodePoolId: string; + + /** RollbackNodePoolUpgradeRequest name. */ + public name: string; + + /** + * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns RollbackNodePoolUpgradeRequest instance + */ + public static create(properties?: google.container.v1.IRollbackNodePoolUpgradeRequest): google.container.v1.RollbackNodePoolUpgradeRequest; + + /** + * 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.IRollbackNodePoolUpgradeRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IRollbackNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.RollbackNodePoolUpgradeRequest; + + /** + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.RollbackNodePoolUpgradeRequest; + + /** + * 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 RollbackNodePoolUpgradeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RollbackNodePoolUpgradeRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.RollbackNodePoolUpgradeRequest; + + /** + * 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.RollbackNodePoolUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RollbackNodePoolUpgradeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListNodePoolsResponse. */ + interface IListNodePoolsResponse { + + /** ListNodePoolsResponse nodePools */ + nodePools?: (google.container.v1.INodePool[]|null); + } + + /** Represents a ListNodePoolsResponse. */ + class ListNodePoolsResponse implements IListNodePoolsResponse { + + /** + * Constructs a new ListNodePoolsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IListNodePoolsResponse); + + /** ListNodePoolsResponse nodePools. */ + public nodePools: google.container.v1.INodePool[]; + + /** + * Creates a new ListNodePoolsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListNodePoolsResponse instance + */ + public static create(properties?: google.container.v1.IListNodePoolsResponse): google.container.v1.ListNodePoolsResponse; + + /** + * 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.IListNodePoolsResponse, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IListNodePoolsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.ListNodePoolsResponse; + + /** + * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ListNodePoolsResponse; + + /** + * 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 ListNodePoolsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListNodePoolsResponse + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ListNodePoolsResponse; + + /** + * 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.ListNodePoolsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListNodePoolsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NodePoolAutoscaling. */ + interface INodePoolAutoscaling { + + /** NodePoolAutoscaling enabled */ + enabled?: (boolean|null); + + /** NodePoolAutoscaling minNodeCount */ + minNodeCount?: (number|null); + + /** NodePoolAutoscaling maxNodeCount */ + maxNodeCount?: (number|null); + } + + /** Represents a NodePoolAutoscaling. */ + class NodePoolAutoscaling implements INodePoolAutoscaling { + + /** + * Constructs a new NodePoolAutoscaling. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodePoolAutoscaling); + + /** NodePoolAutoscaling enabled. */ + public enabled: boolean; + + /** NodePoolAutoscaling minNodeCount. */ + public minNodeCount: number; + + /** NodePoolAutoscaling maxNodeCount. */ + public maxNodeCount: number; + + /** + * Creates a new NodePoolAutoscaling instance using the specified properties. + * @param [properties] Properties to set + * @returns NodePoolAutoscaling instance + */ + public static create(properties?: google.container.v1.INodePoolAutoscaling): google.container.v1.NodePoolAutoscaling; + + /** + * 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.INodePoolAutoscaling, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.NodePoolAutoscaling; + + /** + * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.NodePoolAutoscaling; + + /** + * 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 NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodePoolAutoscaling + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolAutoscaling; + + /** + * 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.NodePoolAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodePoolAutoscaling to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetLabelsRequest. */ + interface ISetLabelsRequest { + + /** SetLabelsRequest projectId */ + projectId?: (string|null); + + /** SetLabelsRequest zone */ + zone?: (string|null); + + /** SetLabelsRequest clusterId */ + clusterId?: (string|null); + + /** SetLabelsRequest resourceLabels */ + resourceLabels?: ({ [k: string]: string }|null); + + /** SetLabelsRequest labelFingerprint */ + labelFingerprint?: (string|null); + + /** SetLabelsRequest name */ + name?: (string|null); + } + + /** Represents a SetLabelsRequest. */ + class SetLabelsRequest implements ISetLabelsRequest { + + /** + * Constructs a new SetLabelsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetLabelsRequest); + + /** SetLabelsRequest projectId. */ + public projectId: string; + + /** SetLabelsRequest zone. */ + public zone: string; + + /** SetLabelsRequest clusterId. */ + public clusterId: string; + + /** SetLabelsRequest resourceLabels. */ + public resourceLabels: { [k: string]: string }; + + /** SetLabelsRequest labelFingerprint. */ + public labelFingerprint: string; + + /** SetLabelsRequest name. */ + public name: string; + + /** + * Creates a new SetLabelsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetLabelsRequest instance + */ + public static create(properties?: google.container.v1.ISetLabelsRequest): google.container.v1.SetLabelsRequest; + + /** + * 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.ISetLabelsRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.SetLabelsRequest; + + /** + * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.SetLabelsRequest; + + /** + * 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 SetLabelsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetLabelsRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetLabelsRequest; + + /** + * 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.SetLabelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetLabelsRequest 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); + + /** SetLegacyAbacRequest enabled */ + enabled?: (boolean|null); + + /** SetLegacyAbacRequest name */ + name?: (string|null); + } + + /** Represents a SetLegacyAbacRequest. */ + class SetLegacyAbacRequest implements ISetLegacyAbacRequest { + + /** + * Constructs a new SetLegacyAbacRequest. + * @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; + + /** SetLegacyAbacRequest enabled. */ + public enabled: boolean; + + /** SetLegacyAbacRequest name. */ + public name: string; + + /** + * Creates a new SetLegacyAbacRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetLegacyAbacRequest instance + */ + public static create(properties?: google.container.v1.ISetLegacyAbacRequest): google.container.v1.SetLegacyAbacRequest; + + /** + * 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.ISetLegacyAbacRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetLegacyAbacRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.SetLegacyAbacRequest; + + /** + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.SetLegacyAbacRequest; + + /** + * 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 SetLegacyAbacRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetLegacyAbacRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetLegacyAbacRequest; + + /** + * 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.SetLegacyAbacRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetLegacyAbacRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a StartIPRotationRequest. */ + interface IStartIPRotationRequest { + + /** 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 StartIPRotationRequest. */ + class StartIPRotationRequest implements IStartIPRotationRequest { + + /** + * Constructs a new StartIPRotationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IStartIPRotationRequest); + + /** 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 StartIPRotationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StartIPRotationRequest instance + */ + public static create(properties?: google.container.v1.IStartIPRotationRequest): google.container.v1.StartIPRotationRequest; + + /** + * 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.IStartIPRotationRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IStartIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.StartIPRotationRequest; + + /** + * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.StartIPRotationRequest; + + /** + * 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 StartIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartIPRotationRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.StartIPRotationRequest; + + /** + * 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.StartIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartIPRotationRequest 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); + + /** CompleteIPRotationRequest name */ + name?: (string|null); + } + + /** Represents a CompleteIPRotationRequest. */ + class CompleteIPRotationRequest implements ICompleteIPRotationRequest { + + /** + * Constructs a new CompleteIPRotationRequest. + * @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; + + /** CompleteIPRotationRequest name. */ + public name: string; + + /** + * Creates a new CompleteIPRotationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CompleteIPRotationRequest instance + */ + public static create(properties?: google.container.v1.ICompleteIPRotationRequest): google.container.v1.CompleteIPRotationRequest; + + /** + * 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.ICompleteIPRotationRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ICompleteIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.CompleteIPRotationRequest; + + /** + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.CompleteIPRotationRequest; + + /** + * 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 CompleteIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompleteIPRotationRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.CompleteIPRotationRequest; + + /** + * 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.CompleteIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompleteIPRotationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AcceleratorConfig. */ + interface IAcceleratorConfig { + + /** AcceleratorConfig acceleratorCount */ + acceleratorCount?: (number|Long|null); + + /** AcceleratorConfig acceleratorType */ + acceleratorType?: (string|null); + } + + /** Represents an AcceleratorConfig. */ + class AcceleratorConfig implements IAcceleratorConfig { + + /** + * Constructs a new AcceleratorConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IAcceleratorConfig); + + /** AcceleratorConfig acceleratorCount. */ + public acceleratorCount: (number|Long); + + /** AcceleratorConfig acceleratorType. */ + public acceleratorType: string; + + /** + * Creates a new AcceleratorConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns AcceleratorConfig instance + */ + public static create(properties?: google.container.v1.IAcceleratorConfig): google.container.v1.AcceleratorConfig; + + /** + * 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.IAcceleratorConfig, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.AcceleratorConfig; + + /** + * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.AcceleratorConfig; + + /** + * 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 AcceleratorConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AcceleratorConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.AcceleratorConfig; + + /** + * 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.AcceleratorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AcceleratorConfig 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); + + /** SetNetworkPolicyRequest name */ + name?: (string|null); + } + + /** Represents a SetNetworkPolicyRequest. */ + class SetNetworkPolicyRequest implements ISetNetworkPolicyRequest { + + /** + * Constructs a new SetNetworkPolicyRequest. + * @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; + + /** SetNetworkPolicyRequest networkPolicy. */ + public networkPolicy?: (google.container.v1.INetworkPolicy|null); + + /** SetNetworkPolicyRequest name. */ + public name: string; + + /** + * Creates a new SetNetworkPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetNetworkPolicyRequest instance + */ + public static create(properties?: google.container.v1.ISetNetworkPolicyRequest): google.container.v1.SetNetworkPolicyRequest; + + /** + * 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.ISetNetworkPolicyRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.SetNetworkPolicyRequest; + + /** + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.SetNetworkPolicyRequest; + + /** + * 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 SetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetNetworkPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetNetworkPolicyRequest; + + /** + * 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.SetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetNetworkPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetMaintenancePolicyRequest. */ + interface ISetMaintenancePolicyRequest { + + /** SetMaintenancePolicyRequest projectId */ + projectId?: (string|null); + + /** SetMaintenancePolicyRequest zone */ + zone?: (string|null); + + /** SetMaintenancePolicyRequest clusterId */ + clusterId?: (string|null); + + /** SetMaintenancePolicyRequest maintenancePolicy */ + maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + + /** SetMaintenancePolicyRequest name */ + name?: (string|null); + } + + /** Represents a SetMaintenancePolicyRequest. */ + class SetMaintenancePolicyRequest implements ISetMaintenancePolicyRequest { + + /** + * Constructs a new SetMaintenancePolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetMaintenancePolicyRequest); + + /** SetMaintenancePolicyRequest projectId. */ + public projectId: string; + + /** SetMaintenancePolicyRequest zone. */ + public zone: string; + + /** SetMaintenancePolicyRequest clusterId. */ + public clusterId: string; + + /** SetMaintenancePolicyRequest maintenancePolicy. */ + public maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + + /** SetMaintenancePolicyRequest name. */ + public name: string; + + /** + * Creates a new SetMaintenancePolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetMaintenancePolicyRequest instance + */ + public static create(properties?: google.container.v1.ISetMaintenancePolicyRequest): google.container.v1.SetMaintenancePolicyRequest; + + /** + * 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.ISetMaintenancePolicyRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetMaintenancePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.SetMaintenancePolicyRequest; + + /** + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.SetMaintenancePolicyRequest; + + /** + * 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 SetMaintenancePolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetMaintenancePolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetMaintenancePolicyRequest; + + /** + * 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.SetMaintenancePolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetMaintenancePolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NetworkConfig. */ + interface INetworkConfig { + + /** NetworkConfig network */ + network?: (string|null); + + /** NetworkConfig subnetwork */ + subnetwork?: (string|null); + } + + /** Represents a NetworkConfig. */ + class NetworkConfig implements INetworkConfig { + + /** + * Constructs a new NetworkConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INetworkConfig); + + /** NetworkConfig network. */ + public network: string; + + /** NetworkConfig subnetwork. */ + public subnetwork: string; + + /** + * Creates a new NetworkConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkConfig instance + */ + public static create(properties?: google.container.v1.INetworkConfig): google.container.v1.NetworkConfig; + + /** + * 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.INetworkConfig, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.NetworkConfig; + + /** + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.NetworkConfig; + + /** + * 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 NetworkConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NetworkConfig; + + /** + * 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.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fullyDecodeReservedExpansion */ + fullyDecodeReservedExpansion?: (boolean|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fullyDecodeReservedExpansion. */ + public fullyDecodeReservedExpansion: boolean; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @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.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @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.api.Http; + + /** + * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule responseBody */ + responseBody?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get: string; + + /** HttpRule put. */ + public put: string; + + /** HttpRule post. */ + public post: string; + + /** HttpRule delete. */ + public delete: string; + + /** HttpRule patch. */ + public patch: string; + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule responseBody. */ + public responseBody: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @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.api.HttpRule; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @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.api.HttpRule; + + /** + * Verifies a HttpRule 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 HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { + + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; + + /** + * Verifies a DescriptorProto 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 DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DescriptorProto { + + /** Properties of an ExtensionRange. */ + interface IExtensionRange { + + /** ExtensionRange start */ + start?: (number|null); + + /** ExtensionRange end */ + end?: (number|null); + + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } + + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange 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 ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange 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 ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { + + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { + + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); + + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRangeOptions instance + */ + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRangeOptions + * @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.protobuf.ExtensionRangeOptions; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRangeOptions + * @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.protobuf.ExtensionRangeOptions; + + /** + * Verifies an ExtensionRangeOptions 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 ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRangeOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { + + /** FieldDescriptorProto name */ + name?: (string|null); + + /** FieldDescriptorProto number */ + number?: (number|null); + + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|null); + + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|null); + + /** FieldDescriptorProto typeName */ + typeName?: (string|null); + + /** FieldDescriptorProto extendee */ + extendee?: (string|null); + + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); + + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); + + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); + + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); + } + + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { + + /** + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldDescriptorProto); + + /** FieldDescriptorProto name. */ + public name: string; + + /** FieldDescriptorProto number. */ + public number: number; + + /** FieldDescriptorProto label. */ + public label: google.protobuf.FieldDescriptorProto.Label; + + /** FieldDescriptorProto type. */ + public type: google.protobuf.FieldDescriptorProto.Type; + + /** FieldDescriptorProto typeName. */ + public typeName: string; + + /** FieldDescriptorProto extendee. */ + public extendee: string; + + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; + + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; + + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldDescriptorProto + * @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.protobuf.FieldDescriptorProto; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldDescriptorProto + * @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.protobuf.FieldDescriptorProto; + + /** + * Verifies a FieldDescriptorProto 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FieldDescriptorProto { + + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } + + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } + + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { + + /** OneofDescriptorProto name */ + name?: (string|null); + + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); + } + + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { + + /** + * Constructs a new OneofDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofDescriptorProto); + + /** OneofDescriptorProto name. */ + public name: string; + + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofDescriptorProto instance + */ + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofDescriptorProto + * @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.protobuf.OneofDescriptorProto; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofDescriptorProto + * @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.protobuf.OneofDescriptorProto; + + /** + * Verifies an OneofDescriptorProto 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 OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { + + /** EnumDescriptorProto name */ + name?: (string|null); + + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + + /** EnumDescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { + + /** + * Constructs a new EnumDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumDescriptorProto); + + /** EnumDescriptorProto name. */ + public name: string; + + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; + + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); + + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + + /** EnumDescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumDescriptorProto + * @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.protobuf.EnumDescriptorProto; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumDescriptorProto + * @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.protobuf.EnumDescriptorProto; + + /** + * Verifies an EnumDescriptorProto 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 EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace EnumDescriptorProto { + + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { + + /** EnumReservedRange start */ + start?: (number|null); + + /** EnumReservedRange end */ + end?: (number|null); + } + + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { + + /** + * Constructs a new EnumReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + + /** EnumReservedRange start. */ + public start: number; + + /** EnumReservedRange end. */ + public end: number; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumReservedRange instance + */ + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumReservedRange + * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumReservedRange + * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Verifies an EnumReservedRange 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 EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { + + /** EnumValueDescriptorProto name */ + name?: (string|null); + + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto 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 EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; + + /** + * Verifies a ServiceDescriptorProto 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { + + /** MethodDescriptorProto name */ + name?: (string|null); + + /** MethodDescriptorProto inputType */ + inputType?: (string|null); + + /** MethodDescriptorProto outputType */ + outputType?: (string|null); + + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); + + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); + } + + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { + + /** + * Constructs a new MethodDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodDescriptorProto); + + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodDescriptorProto instance + */ + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodDescriptorProto + * @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.protobuf.MethodDescriptorProto; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodDescriptorProto + * @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.protobuf.MethodDescriptorProto; + + /** + * Verifies a MethodDescriptorProto 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); + + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); + + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); + + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); + + /** FileOptions deprecated */ + deprecated?: (boolean|null); + + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); + + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); + + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); + + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); + + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); + + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); + + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); + + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); + + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { + + /** + * Constructs a new FileOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileOptions); + + /** FileOptions javaPackage. */ + public javaPackage: string; + + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; + + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; + + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; + + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; + + /** FileOptions optimizeFor. */ + public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + + /** FileOptions goPackage. */ + public goPackage: string; + + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; + + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; + + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; + + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; + + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; + + /** FileOptions phpNamespace. */ + public phpNamespace: string; + + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; + + /** FileOptions rubyPackage. */ + public rubyPackage: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FileOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FileOptions instance + */ + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileOptions + * @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.protobuf.FileOptions; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileOptions + * @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.protobuf.FileOptions; + + /** + * Verifies a FileOptions 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 FileOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FileOptions { + + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 + } + } + + /** Properties of a MessageOptions. */ + interface IMessageOptions { + + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); + + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { + + /** + * Constructs a new MessageOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; + + /** MessageOptions deprecated. */ + public deprecated: boolean; + + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MessageOptions instance + */ + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MessageOptions + * @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.protobuf.MessageOptions; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MessageOptions + * @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.protobuf.MessageOptions; + + /** + * Verifies a MessageOptions 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 MessageOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MessageOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MessageOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FieldOptions. */ + interface IFieldOptions { + + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|null); + + /** FieldOptions packed */ + packed?: (boolean|null); + + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|null); + + /** FieldOptions lazy */ + lazy?: (boolean|null); + + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { + + /** + * Constructs a new FieldOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFieldOptions); + + /** FieldOptions ctype. */ + public ctype: google.protobuf.FieldOptions.CType; + + /** FieldOptions packed. */ + public packed: boolean; + + /** FieldOptions jstype. */ + public jstype: google.protobuf.FieldOptions.JSType; + + /** FieldOptions lazy. */ + public lazy: boolean; + + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns FieldOptions instance + */ + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FieldOptions + * @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.protobuf.FieldOptions; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FieldOptions + * @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.protobuf.FieldOptions; + + /** + * Verifies a FieldOptions 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 FieldOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FieldOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FieldOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace FieldOptions { + + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } + + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 + } + } + + /** Properties of an OneofOptions. */ + interface IOneofOptions { + + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { + + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); + + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @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.protobuf.OneofOptions; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @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.protobuf.OneofOptions; + + /** + * Verifies an OneofOptions 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 OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumOptions. */ + interface IEnumOptions { + + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); + + /** EnumOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { + + /** + * Constructs a new EnumOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumOptions); + + /** EnumOptions allowAlias. */ + public allowAlias: boolean; + + /** EnumOptions deprecated. */ + public deprecated: boolean; + + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumOptions instance + */ + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumOptions + * @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.protobuf.EnumOptions; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumOptions + * @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.protobuf.EnumOptions; + + /** + * Verifies an EnumOptions 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 EnumOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { + + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); + + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { + + /** + * Constructs a new EnumValueOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueOptions); + + /** EnumValueOptions deprecated. */ + public deprecated: boolean; + + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueOptions instance + */ + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueOptions + * @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.protobuf.EnumValueOptions; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueOptions + * @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.protobuf.EnumValueOptions; + + /** + * Verifies an EnumValueOptions 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 EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceOptions. */ + interface IServiceOptions { + + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); + + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } + + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { + + /** + * Constructs a new ServiceOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceOptions); + + /** ServiceOptions deprecated. */ + public deprecated: boolean; + + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceOptions instance + */ + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceOptions + * @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.protobuf.ServiceOptions; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceOptions + * @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.protobuf.ServiceOptions; + + /** + * Verifies a ServiceOptions 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 ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ServiceOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MethodOptions. */ + interface IMethodOptions { + + /** MethodOptions deprecated */ + deprecated?: (boolean|null); + + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null); + + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); + } + + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { + + /** + * Constructs a new MethodOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IMethodOptions); + + /** MethodOptions deprecated. */ + public deprecated: boolean; + + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; + + /** MethodOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MethodOptions instance + */ + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MethodOptions + * @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.protobuf.MethodOptions; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MethodOptions + * @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.protobuf.MethodOptions; + + /** + * Verifies a MethodOptions 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 MethodOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MethodOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace MethodOptions { + + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 + } + } + + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { + + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); + + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); + + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|null); + + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|null); + + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); + } + + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { + + /** + * Constructs a new UninterpretedOption. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUninterpretedOption); + + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; + + /** UninterpretedOption identifierValue. */ + public identifierValue: string; + + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long); + + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long); + + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: Uint8Array; + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @param [properties] Properties to set + * @returns UninterpretedOption instance + */ + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UninterpretedOption + * @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.protobuf.UninterpretedOption; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UninterpretedOption + * @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.protobuf.UninterpretedOption; + + /** + * Verifies an UninterpretedOption 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 UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UninterpretedOption + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UninterpretedOption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace UninterpretedOption { + + /** Properties of a NamePart. */ + interface INamePart { + + /** NamePart namePart */ + namePart: string; + + /** NamePart isExtension */ + isExtension: boolean; + } + + /** Represents a NamePart. */ + class NamePart implements INamePart { + + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + + /** NamePart namePart. */ + public namePart: string; + + /** NamePart isExtension. */ + public isExtension: boolean; + + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart 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 NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { + + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } + + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { + + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); + + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns SourceCodeInfo instance + */ + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SourceCodeInfo + * @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.protobuf.SourceCodeInfo; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SourceCodeInfo + * @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.protobuf.SourceCodeInfo; + + /** + * Verifies a SourceCodeInfo 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 SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SourceCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SourceCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace SourceCodeInfo { + + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); + } + + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location 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 Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { + + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + } + + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { + + /** + * Constructs a new GeneratedCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IGeneratedCodeInfo); + + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns GeneratedCodeInfo instance + */ + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GeneratedCodeInfo + * @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.protobuf.GeneratedCodeInfo; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GeneratedCodeInfo + * @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.protobuf.GeneratedCodeInfo; + + /** + * Verifies a GeneratedCodeInfo 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 GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GeneratedCodeInfo + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace GeneratedCodeInfo { + + /** Properties of an Annotation. */ + interface IAnnotation { + + /** Annotation path */ + path?: (number[]|null); + + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation 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 Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of an Empty. */ + interface IEmpty { + } + + /** Represents an Empty. */ + class Empty implements IEmpty { + + /** + * Constructs a new Empty. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEmpty); + + /** + * Creates a new Empty instance using the specified properties. + * @param [properties] Properties to set + * @returns Empty instance + */ + public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; + + /** + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Empty message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Empty + * @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.protobuf.Empty; + + /** + * Decodes an Empty message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Empty + * @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.protobuf.Empty; + + /** + * Verifies an Empty 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 Empty message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Empty + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; + + /** + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @param message Empty + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Empty to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } +} diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js new file mode 100644 index 00000000000..d040d317e7c --- /dev/null +++ b/packages/google-container/protos/protos.js @@ -0,0 +1,27851 @@ +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +(function(global, factory) { /* global define, require, module */ + + /* AMD */ if (typeof define === 'function' && define.amd) + define(["protobufjs/minimal"], factory); + + /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) + module.exports = factory(require("protobufjs/minimal")); + +})(this, function($protobuf) { + "use strict"; + + // Common aliases + var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; + + // Exported root namespace + var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); + + $root.google = (function() { + + /** + * Namespace google. + * @exports google + * @namespace + */ + var google = {}; + + google.container = (function() { + + /** + * Namespace container. + * @memberof google + * @namespace + */ + var container = {}; + + container.v1 = (function() { + + /** + * Namespace v1. + * @memberof google.container + * @namespace + */ + var v1 = {}; + + v1.ClusterManager = (function() { + + /** + * Constructs a new ClusterManager service. + * @memberof google.container.v1 + * @classdesc Represents a ClusterManager + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function ClusterManager(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (ClusterManager.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ClusterManager; + + /** + * Creates new ClusterManager service using the specified rpc implementation. + * @function create + * @memberof google.container.v1.ClusterManager + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {ClusterManager} RPC service. Useful where requests and/or responses are streamed. + */ + ClusterManager.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#listClusters}. + * @memberof google.container.v1.ClusterManager + * @typedef ListClustersCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.ListClustersResponse} [response] ListClustersResponse + */ + + /** + * Calls ListClusters. + * @function listClusters + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IListClustersRequest} request ListClustersRequest message or plain object + * @param {google.container.v1.ClusterManager.ListClustersCallback} callback Node-style callback called with the error, if any, and ListClustersResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.listClusters = function listClusters(request, callback) { + return this.rpcCall(listClusters, $root.google.container.v1.ListClustersRequest, $root.google.container.v1.ListClustersResponse, request, callback); + }, "name", { value: "ListClusters" }); + + /** + * Calls ListClusters. + * @function listClusters + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IListClustersRequest} request ListClustersRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#getCluster}. + * @memberof google.container.v1.ClusterManager + * @typedef GetClusterCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Cluster} [response] Cluster + */ + + /** + * Calls GetCluster. + * @function getCluster + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IGetClusterRequest} request GetClusterRequest message or plain object + * @param {google.container.v1.ClusterManager.GetClusterCallback} callback Node-style callback called with the error, if any, and Cluster + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.getCluster = function getCluster(request, callback) { + return this.rpcCall(getCluster, $root.google.container.v1.GetClusterRequest, $root.google.container.v1.Cluster, request, callback); + }, "name", { value: "GetCluster" }); + + /** + * Calls GetCluster. + * @function getCluster + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IGetClusterRequest} request GetClusterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#createCluster}. + * @memberof google.container.v1.ClusterManager + * @typedef CreateClusterCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls CreateCluster. + * @function createCluster + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ICreateClusterRequest} request CreateClusterRequest message or plain object + * @param {google.container.v1.ClusterManager.CreateClusterCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.createCluster = function createCluster(request, callback) { + return this.rpcCall(createCluster, $root.google.container.v1.CreateClusterRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "CreateCluster" }); + + /** + * Calls CreateCluster. + * @function createCluster + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ICreateClusterRequest} request CreateClusterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#updateCluster}. + * @memberof google.container.v1.ClusterManager + * @typedef UpdateClusterCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls UpdateCluster. + * @function updateCluster + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IUpdateClusterRequest} request UpdateClusterRequest message or plain object + * @param {google.container.v1.ClusterManager.UpdateClusterCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.updateCluster = function updateCluster(request, callback) { + return this.rpcCall(updateCluster, $root.google.container.v1.UpdateClusterRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "UpdateCluster" }); + + /** + * Calls UpdateCluster. + * @function updateCluster + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IUpdateClusterRequest} request UpdateClusterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#updateNodePool}. + * @memberof google.container.v1.ClusterManager + * @typedef UpdateNodePoolCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls UpdateNodePool. + * @function updateNodePool + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IUpdateNodePoolRequest} request UpdateNodePoolRequest message or plain object + * @param {google.container.v1.ClusterManager.UpdateNodePoolCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.updateNodePool = function updateNodePool(request, callback) { + return this.rpcCall(updateNodePool, $root.google.container.v1.UpdateNodePoolRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "UpdateNodePool" }); + + /** + * Calls UpdateNodePool. + * @function updateNodePool + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IUpdateNodePoolRequest} request UpdateNodePoolRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolAutoscaling}. + * @memberof google.container.v1.ClusterManager + * @typedef SetNodePoolAutoscalingCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetNodePoolAutoscaling. + * @function setNodePoolAutoscaling + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetNodePoolAutoscalingRequest} request SetNodePoolAutoscalingRequest message or plain object + * @param {google.container.v1.ClusterManager.SetNodePoolAutoscalingCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setNodePoolAutoscaling = function setNodePoolAutoscaling(request, callback) { + return this.rpcCall(setNodePoolAutoscaling, $root.google.container.v1.SetNodePoolAutoscalingRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetNodePoolAutoscaling" }); + + /** + * Calls SetNodePoolAutoscaling. + * @function setNodePoolAutoscaling + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetNodePoolAutoscalingRequest} request SetNodePoolAutoscalingRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setLoggingService}. + * @memberof google.container.v1.ClusterManager + * @typedef SetLoggingServiceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetLoggingService. + * @function setLoggingService + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetLoggingServiceRequest} request SetLoggingServiceRequest message or plain object + * @param {google.container.v1.ClusterManager.SetLoggingServiceCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setLoggingService = function setLoggingService(request, callback) { + return this.rpcCall(setLoggingService, $root.google.container.v1.SetLoggingServiceRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetLoggingService" }); + + /** + * Calls SetLoggingService. + * @function setLoggingService + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetLoggingServiceRequest} request SetLoggingServiceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setMonitoringService}. + * @memberof google.container.v1.ClusterManager + * @typedef SetMonitoringServiceCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetMonitoringService. + * @function setMonitoringService + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetMonitoringServiceRequest} request SetMonitoringServiceRequest message or plain object + * @param {google.container.v1.ClusterManager.SetMonitoringServiceCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setMonitoringService = function setMonitoringService(request, callback) { + return this.rpcCall(setMonitoringService, $root.google.container.v1.SetMonitoringServiceRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetMonitoringService" }); + + /** + * Calls SetMonitoringService. + * @function setMonitoringService + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetMonitoringServiceRequest} request SetMonitoringServiceRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setAddonsConfig}. + * @memberof google.container.v1.ClusterManager + * @typedef SetAddonsConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetAddonsConfig. + * @function setAddonsConfig + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetAddonsConfigRequest} request SetAddonsConfigRequest message or plain object + * @param {google.container.v1.ClusterManager.SetAddonsConfigCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setAddonsConfig = function setAddonsConfig(request, callback) { + return this.rpcCall(setAddonsConfig, $root.google.container.v1.SetAddonsConfigRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetAddonsConfig" }); + + /** + * Calls SetAddonsConfig. + * @function setAddonsConfig + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetAddonsConfigRequest} request SetAddonsConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setLocations}. + * @memberof google.container.v1.ClusterManager + * @typedef SetLocationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetLocations. + * @function setLocations + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetLocationsRequest} request SetLocationsRequest message or plain object + * @param {google.container.v1.ClusterManager.SetLocationsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setLocations = function setLocations(request, callback) { + return this.rpcCall(setLocations, $root.google.container.v1.SetLocationsRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetLocations" }); + + /** + * Calls SetLocations. + * @function setLocations + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetLocationsRequest} request SetLocationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#updateMaster}. + * @memberof google.container.v1.ClusterManager + * @typedef UpdateMasterCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls UpdateMaster. + * @function updateMaster + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IUpdateMasterRequest} request UpdateMasterRequest message or plain object + * @param {google.container.v1.ClusterManager.UpdateMasterCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.updateMaster = function updateMaster(request, callback) { + return this.rpcCall(updateMaster, $root.google.container.v1.UpdateMasterRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "UpdateMaster" }); + + /** + * Calls UpdateMaster. + * @function updateMaster + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IUpdateMasterRequest} request UpdateMasterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setMasterAuth}. + * @memberof google.container.v1.ClusterManager + * @typedef SetMasterAuthCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetMasterAuth. + * @function setMasterAuth + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetMasterAuthRequest} request SetMasterAuthRequest message or plain object + * @param {google.container.v1.ClusterManager.SetMasterAuthCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setMasterAuth = function setMasterAuth(request, callback) { + return this.rpcCall(setMasterAuth, $root.google.container.v1.SetMasterAuthRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetMasterAuth" }); + + /** + * Calls SetMasterAuth. + * @function setMasterAuth + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetMasterAuthRequest} request SetMasterAuthRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#deleteCluster}. + * @memberof google.container.v1.ClusterManager + * @typedef DeleteClusterCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls DeleteCluster. + * @function deleteCluster + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IDeleteClusterRequest} request DeleteClusterRequest message or plain object + * @param {google.container.v1.ClusterManager.DeleteClusterCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.deleteCluster = function deleteCluster(request, callback) { + return this.rpcCall(deleteCluster, $root.google.container.v1.DeleteClusterRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "DeleteCluster" }); + + /** + * Calls DeleteCluster. + * @function deleteCluster + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IDeleteClusterRequest} request DeleteClusterRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#listOperations}. + * @memberof google.container.v1.ClusterManager + * @typedef ListOperationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.ListOperationsResponse} [response] ListOperationsResponse + */ + + /** + * Calls ListOperations. + * @function listOperations + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IListOperationsRequest} request ListOperationsRequest message or plain object + * @param {google.container.v1.ClusterManager.ListOperationsCallback} callback Node-style callback called with the error, if any, and ListOperationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.listOperations = function listOperations(request, callback) { + return this.rpcCall(listOperations, $root.google.container.v1.ListOperationsRequest, $root.google.container.v1.ListOperationsResponse, request, callback); + }, "name", { value: "ListOperations" }); + + /** + * Calls ListOperations. + * @function listOperations + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IListOperationsRequest} request ListOperationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#getOperation}. + * @memberof google.container.v1.ClusterManager + * @typedef GetOperationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls GetOperation. + * @function getOperation + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IGetOperationRequest} request GetOperationRequest message or plain object + * @param {google.container.v1.ClusterManager.GetOperationCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.getOperation = function getOperation(request, callback) { + return this.rpcCall(getOperation, $root.google.container.v1.GetOperationRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "GetOperation" }); + + /** + * Calls GetOperation. + * @function getOperation + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IGetOperationRequest} request GetOperationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#cancelOperation}. + * @memberof google.container.v1.ClusterManager + * @typedef CancelOperationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelOperation. + * @function cancelOperation + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ICancelOperationRequest} request CancelOperationRequest message or plain object + * @param {google.container.v1.ClusterManager.CancelOperationCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.cancelOperation = function cancelOperation(request, callback) { + return this.rpcCall(cancelOperation, $root.google.container.v1.CancelOperationRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelOperation" }); + + /** + * Calls CancelOperation. + * @function cancelOperation + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ICancelOperationRequest} request CancelOperationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#getServerConfig}. + * @memberof google.container.v1.ClusterManager + * @typedef GetServerConfigCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.ServerConfig} [response] ServerConfig + */ + + /** + * Calls GetServerConfig. + * @function getServerConfig + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IGetServerConfigRequest} request GetServerConfigRequest message or plain object + * @param {google.container.v1.ClusterManager.GetServerConfigCallback} callback Node-style callback called with the error, if any, and ServerConfig + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.getServerConfig = function getServerConfig(request, callback) { + return this.rpcCall(getServerConfig, $root.google.container.v1.GetServerConfigRequest, $root.google.container.v1.ServerConfig, request, callback); + }, "name", { value: "GetServerConfig" }); + + /** + * Calls GetServerConfig. + * @function getServerConfig + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IGetServerConfigRequest} request GetServerConfigRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#listNodePools}. + * @memberof google.container.v1.ClusterManager + * @typedef ListNodePoolsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.ListNodePoolsResponse} [response] ListNodePoolsResponse + */ + + /** + * Calls ListNodePools. + * @function listNodePools + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IListNodePoolsRequest} request ListNodePoolsRequest message or plain object + * @param {google.container.v1.ClusterManager.ListNodePoolsCallback} callback Node-style callback called with the error, if any, and ListNodePoolsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.listNodePools = function listNodePools(request, callback) { + return this.rpcCall(listNodePools, $root.google.container.v1.ListNodePoolsRequest, $root.google.container.v1.ListNodePoolsResponse, request, callback); + }, "name", { value: "ListNodePools" }); + + /** + * Calls ListNodePools. + * @function listNodePools + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IListNodePoolsRequest} request ListNodePoolsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#getNodePool}. + * @memberof google.container.v1.ClusterManager + * @typedef GetNodePoolCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.NodePool} [response] NodePool + */ + + /** + * Calls GetNodePool. + * @function getNodePool + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IGetNodePoolRequest} request GetNodePoolRequest message or plain object + * @param {google.container.v1.ClusterManager.GetNodePoolCallback} callback Node-style callback called with the error, if any, and NodePool + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.getNodePool = function getNodePool(request, callback) { + return this.rpcCall(getNodePool, $root.google.container.v1.GetNodePoolRequest, $root.google.container.v1.NodePool, request, callback); + }, "name", { value: "GetNodePool" }); + + /** + * Calls GetNodePool. + * @function getNodePool + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IGetNodePoolRequest} request GetNodePoolRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#createNodePool}. + * @memberof google.container.v1.ClusterManager + * @typedef CreateNodePoolCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls CreateNodePool. + * @function createNodePool + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ICreateNodePoolRequest} request CreateNodePoolRequest message or plain object + * @param {google.container.v1.ClusterManager.CreateNodePoolCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.createNodePool = function createNodePool(request, callback) { + return this.rpcCall(createNodePool, $root.google.container.v1.CreateNodePoolRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "CreateNodePool" }); + + /** + * Calls CreateNodePool. + * @function createNodePool + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ICreateNodePoolRequest} request CreateNodePoolRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#deleteNodePool}. + * @memberof google.container.v1.ClusterManager + * @typedef DeleteNodePoolCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls DeleteNodePool. + * @function deleteNodePool + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IDeleteNodePoolRequest} request DeleteNodePoolRequest message or plain object + * @param {google.container.v1.ClusterManager.DeleteNodePoolCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.deleteNodePool = function deleteNodePool(request, callback) { + return this.rpcCall(deleteNodePool, $root.google.container.v1.DeleteNodePoolRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "DeleteNodePool" }); + + /** + * Calls DeleteNodePool. + * @function deleteNodePool + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IDeleteNodePoolRequest} request DeleteNodePoolRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#rollbackNodePoolUpgrade}. + * @memberof google.container.v1.ClusterManager + * @typedef RollbackNodePoolUpgradeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls RollbackNodePoolUpgrade. + * @function rollbackNodePoolUpgrade + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} request RollbackNodePoolUpgradeRequest message or plain object + * @param {google.container.v1.ClusterManager.RollbackNodePoolUpgradeCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.rollbackNodePoolUpgrade = function rollbackNodePoolUpgrade(request, callback) { + return this.rpcCall(rollbackNodePoolUpgrade, $root.google.container.v1.RollbackNodePoolUpgradeRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "RollbackNodePoolUpgrade" }); + + /** + * Calls RollbackNodePoolUpgrade. + * @function rollbackNodePoolUpgrade + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} request RollbackNodePoolUpgradeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolManagement}. + * @memberof google.container.v1.ClusterManager + * @typedef SetNodePoolManagementCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetNodePoolManagement. + * @function setNodePoolManagement + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetNodePoolManagementRequest} request SetNodePoolManagementRequest message or plain object + * @param {google.container.v1.ClusterManager.SetNodePoolManagementCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setNodePoolManagement = function setNodePoolManagement(request, callback) { + return this.rpcCall(setNodePoolManagement, $root.google.container.v1.SetNodePoolManagementRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetNodePoolManagement" }); + + /** + * Calls SetNodePoolManagement. + * @function setNodePoolManagement + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetNodePoolManagementRequest} request SetNodePoolManagementRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setLabels}. + * @memberof google.container.v1.ClusterManager + * @typedef SetLabelsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetLabels. + * @function setLabels + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetLabelsRequest} request SetLabelsRequest message or plain object + * @param {google.container.v1.ClusterManager.SetLabelsCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setLabels = function setLabels(request, callback) { + return this.rpcCall(setLabels, $root.google.container.v1.SetLabelsRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetLabels" }); + + /** + * Calls SetLabels. + * @function setLabels + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetLabelsRequest} request SetLabelsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setLegacyAbac}. + * @memberof google.container.v1.ClusterManager + * @typedef SetLegacyAbacCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetLegacyAbac. + * @function setLegacyAbac + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetLegacyAbacRequest} request SetLegacyAbacRequest message or plain object + * @param {google.container.v1.ClusterManager.SetLegacyAbacCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setLegacyAbac = function setLegacyAbac(request, callback) { + return this.rpcCall(setLegacyAbac, $root.google.container.v1.SetLegacyAbacRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetLegacyAbac" }); + + /** + * Calls SetLegacyAbac. + * @function setLegacyAbac + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetLegacyAbacRequest} request SetLegacyAbacRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#startIPRotation}. + * @memberof google.container.v1.ClusterManager + * @typedef StartIPRotationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls StartIPRotation. + * @function startIPRotation + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IStartIPRotationRequest} request StartIPRotationRequest message or plain object + * @param {google.container.v1.ClusterManager.StartIPRotationCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.startIPRotation = function startIPRotation(request, callback) { + return this.rpcCall(startIPRotation, $root.google.container.v1.StartIPRotationRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "StartIPRotation" }); + + /** + * Calls StartIPRotation. + * @function startIPRotation + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IStartIPRotationRequest} request StartIPRotationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#completeIPRotation}. + * @memberof google.container.v1.ClusterManager + * @typedef CompleteIPRotationCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls CompleteIPRotation. + * @function completeIPRotation + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ICompleteIPRotationRequest} request CompleteIPRotationRequest message or plain object + * @param {google.container.v1.ClusterManager.CompleteIPRotationCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.completeIPRotation = function completeIPRotation(request, callback) { + return this.rpcCall(completeIPRotation, $root.google.container.v1.CompleteIPRotationRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "CompleteIPRotation" }); + + /** + * Calls CompleteIPRotation. + * @function completeIPRotation + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ICompleteIPRotationRequest} request CompleteIPRotationRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolSize}. + * @memberof google.container.v1.ClusterManager + * @typedef SetNodePoolSizeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetNodePoolSize. + * @function setNodePoolSize + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetNodePoolSizeRequest} request SetNodePoolSizeRequest message or plain object + * @param {google.container.v1.ClusterManager.SetNodePoolSizeCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setNodePoolSize = function setNodePoolSize(request, callback) { + return this.rpcCall(setNodePoolSize, $root.google.container.v1.SetNodePoolSizeRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetNodePoolSize" }); + + /** + * Calls SetNodePoolSize. + * @function setNodePoolSize + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetNodePoolSizeRequest} request SetNodePoolSizeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setNetworkPolicy}. + * @memberof google.container.v1.ClusterManager + * @typedef SetNetworkPolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetNetworkPolicy. + * @function setNetworkPolicy + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetNetworkPolicyRequest} request SetNetworkPolicyRequest message or plain object + * @param {google.container.v1.ClusterManager.SetNetworkPolicyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setNetworkPolicy = function setNetworkPolicy(request, callback) { + return this.rpcCall(setNetworkPolicy, $root.google.container.v1.SetNetworkPolicyRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetNetworkPolicy" }); + + /** + * Calls SetNetworkPolicy. + * @function setNetworkPolicy + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetNetworkPolicyRequest} request SetNetworkPolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.container.v1.ClusterManager#setMaintenancePolicy}. + * @memberof google.container.v1.ClusterManager + * @typedef SetMaintenancePolicyCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.Operation} [response] Operation + */ + + /** + * Calls SetMaintenancePolicy. + * @function setMaintenancePolicy + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetMaintenancePolicyRequest} request SetMaintenancePolicyRequest message or plain object + * @param {google.container.v1.ClusterManager.SetMaintenancePolicyCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.setMaintenancePolicy = function setMaintenancePolicy(request, callback) { + return this.rpcCall(setMaintenancePolicy, $root.google.container.v1.SetMaintenancePolicyRequest, $root.google.container.v1.Operation, request, callback); + }, "name", { value: "SetMaintenancePolicy" }); + + /** + * Calls SetMaintenancePolicy. + * @function setMaintenancePolicy + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ISetMaintenancePolicyRequest} request SetMaintenancePolicyRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return ClusterManager; + })(); + + v1.NodeConfig = (function() { + + /** + * Properties of a NodeConfig. + * @memberof google.container.v1 + * @interface INodeConfig + * @property {string|null} [machineType] NodeConfig machineType + * @property {number|null} [diskSizeGb] NodeConfig diskSizeGb + * @property {Array.|null} [oauthScopes] NodeConfig oauthScopes + * @property {string|null} [serviceAccount] NodeConfig serviceAccount + * @property {Object.|null} [metadata] NodeConfig metadata + * @property {string|null} [imageType] NodeConfig imageType + * @property {Object.|null} [labels] NodeConfig labels + * @property {number|null} [localSsdCount] NodeConfig localSsdCount + * @property {Array.|null} [tags] NodeConfig tags + * @property {boolean|null} [preemptible] NodeConfig preemptible + * @property {Array.|null} [accelerators] NodeConfig accelerators + * @property {string|null} [diskType] NodeConfig diskType + * @property {string|null} [minCpuPlatform] NodeConfig minCpuPlatform + */ + + /** + * Constructs a new NodeConfig. + * @memberof google.container.v1 + * @classdesc Represents a NodeConfig. + * @implements INodeConfig + * @constructor + * @param {google.container.v1.INodeConfig=} [properties] Properties to set + */ + function NodeConfig(properties) { + this.oauthScopes = []; + this.metadata = {}; + this.labels = {}; + this.tags = []; + this.accelerators = []; + 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]]; + } + + /** + * NodeConfig machineType. + * @member {string} machineType + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.machineType = ""; + + /** + * NodeConfig diskSizeGb. + * @member {number} diskSizeGb + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.diskSizeGb = 0; + + /** + * NodeConfig oauthScopes. + * @member {Array.} oauthScopes + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.oauthScopes = $util.emptyArray; + + /** + * NodeConfig serviceAccount. + * @member {string} serviceAccount + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.serviceAccount = ""; + + /** + * NodeConfig metadata. + * @member {Object.} metadata + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.metadata = $util.emptyObject; + + /** + * NodeConfig imageType. + * @member {string} imageType + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.imageType = ""; + + /** + * NodeConfig labels. + * @member {Object.} labels + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.labels = $util.emptyObject; + + /** + * NodeConfig localSsdCount. + * @member {number} localSsdCount + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.localSsdCount = 0; + + /** + * NodeConfig tags. + * @member {Array.} tags + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.tags = $util.emptyArray; + + /** + * NodeConfig preemptible. + * @member {boolean} preemptible + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.preemptible = false; + + /** + * NodeConfig accelerators. + * @member {Array.} accelerators + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.accelerators = $util.emptyArray; + + /** + * NodeConfig diskType. + * @member {string} diskType + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.diskType = ""; + + /** + * NodeConfig minCpuPlatform. + * @member {string} minCpuPlatform + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.minCpuPlatform = ""; + + /** + * Creates a new NodeConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NodeConfig + * @static + * @param {google.container.v1.INodeConfig=} [properties] Properties to set + * @returns {google.container.v1.NodeConfig} NodeConfig instance + */ + NodeConfig.create = function create(properties) { + return new NodeConfig(properties); + }; + + /** + * Encodes the specified NodeConfig message. Does not implicitly {@link google.container.v1.NodeConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodeConfig + * @static + * @param {google.container.v1.INodeConfig} message NodeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.machineType != null && message.hasOwnProperty("machineType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.diskSizeGb); + if (message.oauthScopes != null && message.oauthScopes.length) + for (var i = 0; i < message.oauthScopes.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.oauthScopes[i]); + if (message.metadata != null && message.hasOwnProperty("metadata")) + for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim(); + if (message.imageType != null && message.hasOwnProperty("imageType")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.imageType); + if (message.labels != null && message.hasOwnProperty("labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.localSsdCount != null && message.hasOwnProperty("localSsdCount")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.localSsdCount); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.tags[i]); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.serviceAccount); + if (message.preemptible != null && message.hasOwnProperty("preemptible")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.preemptible); + if (message.accelerators != null && message.accelerators.length) + for (var i = 0; i < message.accelerators.length; ++i) + $root.google.container.v1.AcceleratorConfig.encode(message.accelerators[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.diskType != null && message.hasOwnProperty("diskType")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.diskType); + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.minCpuPlatform); + return writer; + }; + + /** + * Encodes the specified NodeConfig message, length delimited. Does not implicitly {@link google.container.v1.NodeConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodeConfig + * @static + * @param {google.container.v1.INodeConfig} message NodeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodeConfig} NodeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeConfig.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.NodeConfig(), key; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.machineType = reader.string(); + break; + case 2: + message.diskSizeGb = reader.int32(); + break; + case 3: + if (!(message.oauthScopes && message.oauthScopes.length)) + message.oauthScopes = []; + message.oauthScopes.push(reader.string()); + break; + case 9: + message.serviceAccount = reader.string(); + break; + case 4: + reader.skip().pos++; + if (message.metadata === $util.emptyObject) + message.metadata = {}; + key = reader.string(); + reader.pos++; + message.metadata[key] = reader.string(); + break; + case 5: + message.imageType = reader.string(); + break; + case 6: + reader.skip().pos++; + if (message.labels === $util.emptyObject) + message.labels = {}; + key = reader.string(); + reader.pos++; + message.labels[key] = reader.string(); + break; + case 7: + message.localSsdCount = reader.int32(); + break; + case 8: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + case 10: + message.preemptible = reader.bool(); + break; + case 11: + if (!(message.accelerators && message.accelerators.length)) + message.accelerators = []; + message.accelerators.push($root.google.container.v1.AcceleratorConfig.decode(reader, reader.uint32())); + break; + case 12: + message.diskType = reader.string(); + break; + case 13: + message.minCpuPlatform = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodeConfig} NodeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeConfig message. + * @function verify + * @memberof google.container.v1.NodeConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.machineType != null && message.hasOwnProperty("machineType")) + if (!$util.isString(message.machineType)) + return "machineType: string expected"; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + if (!$util.isInteger(message.diskSizeGb)) + return "diskSizeGb: integer expected"; + if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) { + if (!Array.isArray(message.oauthScopes)) + return "oauthScopes: array expected"; + for (var i = 0; i < message.oauthScopes.length; ++i) + if (!$util.isString(message.oauthScopes[i])) + return "oauthScopes: string[] expected"; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + if (!$util.isObject(message.metadata)) + return "metadata: object expected"; + var key = Object.keys(message.metadata); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.metadata[key[i]])) + return "metadata: string{k:string} expected"; + } + if (message.imageType != null && message.hasOwnProperty("imageType")) + if (!$util.isString(message.imageType)) + return "imageType: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.localSsdCount != null && message.hasOwnProperty("localSsdCount")) + if (!$util.isInteger(message.localSsdCount)) + return "localSsdCount: integer expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + if (message.preemptible != null && message.hasOwnProperty("preemptible")) + if (typeof message.preemptible !== "boolean") + return "preemptible: boolean expected"; + if (message.accelerators != null && message.hasOwnProperty("accelerators")) { + if (!Array.isArray(message.accelerators)) + return "accelerators: array expected"; + for (var i = 0; i < message.accelerators.length; ++i) { + var error = $root.google.container.v1.AcceleratorConfig.verify(message.accelerators[i]); + if (error) + return "accelerators." + error; + } + } + if (message.diskType != null && message.hasOwnProperty("diskType")) + if (!$util.isString(message.diskType)) + return "diskType: string expected"; + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + if (!$util.isString(message.minCpuPlatform)) + return "minCpuPlatform: string expected"; + return null; + }; + + /** + * Creates a NodeConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodeConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodeConfig} NodeConfig + */ + NodeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeConfig) + return object; + var message = new $root.google.container.v1.NodeConfig(); + if (object.machineType != null) + message.machineType = String(object.machineType); + if (object.diskSizeGb != null) + message.diskSizeGb = object.diskSizeGb | 0; + if (object.oauthScopes) { + if (!Array.isArray(object.oauthScopes)) + throw TypeError(".google.container.v1.NodeConfig.oauthScopes: array expected"); + message.oauthScopes = []; + for (var i = 0; i < object.oauthScopes.length; ++i) + message.oauthScopes[i] = String(object.oauthScopes[i]); + } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.metadata) { + if (typeof object.metadata !== "object") + throw TypeError(".google.container.v1.NodeConfig.metadata: object expected"); + message.metadata = {}; + for (var keys = Object.keys(object.metadata), i = 0; i < keys.length; ++i) + message.metadata[keys[i]] = String(object.metadata[keys[i]]); + } + if (object.imageType != null) + message.imageType = String(object.imageType); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.container.v1.NodeConfig.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.localSsdCount != null) + message.localSsdCount = object.localSsdCount | 0; + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.container.v1.NodeConfig.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + if (object.preemptible != null) + message.preemptible = Boolean(object.preemptible); + if (object.accelerators) { + if (!Array.isArray(object.accelerators)) + throw TypeError(".google.container.v1.NodeConfig.accelerators: array expected"); + message.accelerators = []; + for (var i = 0; i < object.accelerators.length; ++i) { + if (typeof object.accelerators[i] !== "object") + throw TypeError(".google.container.v1.NodeConfig.accelerators: object expected"); + message.accelerators[i] = $root.google.container.v1.AcceleratorConfig.fromObject(object.accelerators[i]); + } + } + if (object.diskType != null) + message.diskType = String(object.diskType); + if (object.minCpuPlatform != null) + message.minCpuPlatform = String(object.minCpuPlatform); + return message; + }; + + /** + * Creates a plain object from a NodeConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodeConfig + * @static + * @param {google.container.v1.NodeConfig} message NodeConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.oauthScopes = []; + object.tags = []; + object.accelerators = []; + } + if (options.objects || options.defaults) { + object.metadata = {}; + object.labels = {}; + } + if (options.defaults) { + object.machineType = ""; + object.diskSizeGb = 0; + object.imageType = ""; + object.localSsdCount = 0; + object.serviceAccount = ""; + object.preemptible = false; + object.diskType = ""; + object.minCpuPlatform = ""; + } + if (message.machineType != null && message.hasOwnProperty("machineType")) + object.machineType = message.machineType; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + object.diskSizeGb = message.diskSizeGb; + if (message.oauthScopes && message.oauthScopes.length) { + object.oauthScopes = []; + for (var j = 0; j < message.oauthScopes.length; ++j) + object.oauthScopes[j] = message.oauthScopes[j]; + } + var keys2; + if (message.metadata && (keys2 = Object.keys(message.metadata)).length) { + object.metadata = {}; + for (var j = 0; j < keys2.length; ++j) + object.metadata[keys2[j]] = message.metadata[keys2[j]]; + } + if (message.imageType != null && message.hasOwnProperty("imageType")) + object.imageType = message.imageType; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.localSsdCount != null && message.hasOwnProperty("localSsdCount")) + object.localSsdCount = message.localSsdCount; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.preemptible != null && message.hasOwnProperty("preemptible")) + object.preemptible = message.preemptible; + if (message.accelerators && message.accelerators.length) { + object.accelerators = []; + for (var j = 0; j < message.accelerators.length; ++j) + object.accelerators[j] = $root.google.container.v1.AcceleratorConfig.toObject(message.accelerators[j], options); + } + if (message.diskType != null && message.hasOwnProperty("diskType")) + object.diskType = message.diskType; + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + object.minCpuPlatform = message.minCpuPlatform; + return object; + }; + + /** + * Converts this NodeConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NodeConfig + * @instance + * @returns {Object.} JSON object + */ + NodeConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NodeConfig; + })(); + + v1.MasterAuth = (function() { + + /** + * Properties of a MasterAuth. + * @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 + */ + + /** + * Constructs a new MasterAuth. + * @memberof google.container.v1 + * @classdesc Represents a MasterAuth. + * @implements IMasterAuth + * @constructor + * @param {google.container.v1.IMasterAuth=} [properties] Properties to set + */ + function MasterAuth(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]]; + } + + /** + * 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 + * @instance + */ + MasterAuth.prototype.clusterCaCertificate = ""; + + /** + * MasterAuth clientCertificate. + * @member {string} clientCertificate + * @memberof google.container.v1.MasterAuth + * @instance + */ + MasterAuth.prototype.clientCertificate = ""; + + /** + * 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.MasterAuth + * @static + * @param {google.container.v1.IMasterAuth=} [properties] Properties to set + * @returns {google.container.v1.MasterAuth} MasterAuth instance + */ + MasterAuth.create = function create(properties) { + return new MasterAuth(properties); + }; + + /** + * Encodes the specified MasterAuth message. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MasterAuth + * @static + * @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 + */ + MasterAuth.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.username != null && message.hasOwnProperty("username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.password != null && message.hasOwnProperty("password")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); + if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) + $root.google.container.v1.ClientCertificateConfig.encode(message.clientCertificateConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.clusterCaCertificate); + if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.clientCertificate); + if (message.clientKey != null && message.hasOwnProperty("clientKey")) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.clientKey); + return writer; + }; + + /** + * Encodes the specified MasterAuth message, length delimited. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MasterAuth + * @static + * @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 + */ + MasterAuth.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MasterAuth message from the specified reader or buffer. + * @function decode + * @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.MasterAuth} MasterAuth + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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.username = reader.string(); + break; + case 2: + message.password = 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MasterAuth message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MasterAuth + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + MasterAuth.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MasterAuth message. + * @function verify + * @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 + */ + MasterAuth.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.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. + * @function fromObject + * @memberof google.container.v1.MasterAuth + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MasterAuth} MasterAuth + */ + MasterAuth.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MasterAuth) + 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); + } + 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. + * @function toObject + * @memberof google.container.v1.MasterAuth + * @static + * @param {google.container.v1.MasterAuth} message MasterAuth + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MasterAuth.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.username = ""; + object.password = ""; + object.clientCertificateConfig = null; + object.clusterCaCertificate = ""; + object.clientCertificate = ""; + object.clientKey = ""; + } + 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. + * @function toJSON + * @memberof google.container.v1.MasterAuth + * @instance + * @returns {Object.} JSON object + */ + MasterAuth.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MasterAuth; + })(); + + v1.ClientCertificateConfig = (function() { + + /** + * Properties of a ClientCertificateConfig. + * @memberof google.container.v1 + * @interface IClientCertificateConfig + * @property {boolean|null} [issueClientCertificate] ClientCertificateConfig issueClientCertificate + */ + + /** + * Constructs a new ClientCertificateConfig. + * @memberof google.container.v1 + * @classdesc Represents a ClientCertificateConfig. + * @implements IClientCertificateConfig + * @constructor + * @param {google.container.v1.IClientCertificateConfig=} [properties] Properties to set + */ + function ClientCertificateConfig(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]]; + } + + /** + * ClientCertificateConfig issueClientCertificate. + * @member {boolean} issueClientCertificate + * @memberof google.container.v1.ClientCertificateConfig + * @instance + */ + ClientCertificateConfig.prototype.issueClientCertificate = false; + + /** + * Creates a new ClientCertificateConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ClientCertificateConfig + * @static + * @param {google.container.v1.IClientCertificateConfig=} [properties] Properties to set + * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig instance + */ + ClientCertificateConfig.create = function create(properties) { + return new ClientCertificateConfig(properties); + }; + + /** + * Encodes the specified ClientCertificateConfig message. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ClientCertificateConfig + * @static + * @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 + */ + ClientCertificateConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.issueClientCertificate); + return writer; + }; + + /** + * Encodes the specified ClientCertificateConfig message, length delimited. Does not implicitly {@link google.container.v1.ClientCertificateConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ClientCertificateConfig + * @static + * @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 + */ + ClientCertificateConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ClientCertificateConfig message from the specified reader or buffer. + * @function decode + * @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.ClientCertificateConfig} ClientCertificateConfig + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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.issueClientCertificate = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ClientCertificateConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ClientCertificateConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ClientCertificateConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ClientCertificateConfig message. + * @function verify + * @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 + */ + ClientCertificateConfig.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"; + return null; + }; + + /** + * Creates a ClientCertificateConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ClientCertificateConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ClientCertificateConfig} ClientCertificateConfig + */ + ClientCertificateConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ClientCertificateConfig) + return object; + 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 ClientCertificateConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ClientCertificateConfig + * @static + * @param {google.container.v1.ClientCertificateConfig} message ClientCertificateConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ClientCertificateConfig.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; + return object; + }; + + /** + * Converts this ClientCertificateConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ClientCertificateConfig + * @instance + * @returns {Object.} JSON object + */ + ClientCertificateConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ClientCertificateConfig; + })(); + + v1.AddonsConfig = (function() { + + /** + * Properties of an AddonsConfig. + * @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 + */ + + /** + * Constructs a new AddonsConfig. + * @memberof google.container.v1 + * @classdesc Represents an AddonsConfig. + * @implements IAddonsConfig + * @constructor + * @param {google.container.v1.IAddonsConfig=} [properties] Properties to set + */ + function AddonsConfig(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]]; + } + + /** + * AddonsConfig httpLoadBalancing. + * @member {google.container.v1.IHttpLoadBalancing|null|undefined} httpLoadBalancing + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.httpLoadBalancing = null; + + /** + * 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; + + /** + * Creates a new AddonsConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.AddonsConfig + * @static + * @param {google.container.v1.IAddonsConfig=} [properties] Properties to set + * @returns {google.container.v1.AddonsConfig} AddonsConfig instance + */ + AddonsConfig.create = function create(properties) { + return new AddonsConfig(properties); + }; + + /** + * Encodes the specified AddonsConfig message. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.AddonsConfig + * @static + * @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 + */ + AddonsConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) + $root.google.container.v1.HttpLoadBalancing.encode(message.httpLoadBalancing, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling")) + $root.google.container.v1.HorizontalPodAutoscaling.encode(message.horizontalPodAutoscaling, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard")) + $root.google.container.v1.KubernetesDashboard.encode(message.kubernetesDashboard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig")) + $root.google.container.v1.NetworkPolicyConfig.encode(message.networkPolicyConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified AddonsConfig message, length delimited. Does not implicitly {@link google.container.v1.AddonsConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.AddonsConfig + * @static + * @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 + */ + AddonsConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AddonsConfig message from the specified reader or buffer. + * @function decode + * @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.AddonsConfig} AddonsConfig + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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.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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AddonsConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.AddonsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + AddonsConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AddonsConfig message. + * @function verify + * @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 + */ + AddonsConfig.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; + } + return null; + }; + + /** + * Creates an AddonsConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.AddonsConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.AddonsConfig} AddonsConfig + */ + AddonsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AddonsConfig) + 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); + } + return message; + }; + + /** + * Creates a plain object from an AddonsConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.AddonsConfig + * @static + * @param {google.container.v1.AddonsConfig} message AddonsConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AddonsConfig.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; + } + 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); + return object; + }; + + /** + * Converts this AddonsConfig to JSON. + * @function toJSON + * @memberof google.container.v1.AddonsConfig + * @instance + * @returns {Object.} JSON object + */ + AddonsConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AddonsConfig; + })(); + + v1.HttpLoadBalancing = (function() { + + /** + * Properties of a HttpLoadBalancing. + * @memberof google.container.v1 + * @interface IHttpLoadBalancing + * @property {boolean|null} [disabled] HttpLoadBalancing disabled + */ + + /** + * Constructs a new HttpLoadBalancing. + * @memberof google.container.v1 + * @classdesc Represents a HttpLoadBalancing. + * @implements IHttpLoadBalancing + * @constructor + * @param {google.container.v1.IHttpLoadBalancing=} [properties] Properties to set + */ + function HttpLoadBalancing(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]]; + } + + /** + * HttpLoadBalancing disabled. + * @member {boolean} disabled + * @memberof google.container.v1.HttpLoadBalancing + * @instance + */ + HttpLoadBalancing.prototype.disabled = false; + + /** + * Creates a new HttpLoadBalancing instance using the specified properties. + * @function create + * @memberof google.container.v1.HttpLoadBalancing + * @static + * @param {google.container.v1.IHttpLoadBalancing=} [properties] Properties to set + * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing instance + */ + HttpLoadBalancing.create = function create(properties) { + return new HttpLoadBalancing(properties); + }; + + /** + * Encodes the specified HttpLoadBalancing message. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages. + * @function encode + * @memberof google.container.v1.HttpLoadBalancing + * @static + * @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 + */ + HttpLoadBalancing.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disabled != null && message.hasOwnProperty("disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + return writer; + }; + + /** + * Encodes the specified HttpLoadBalancing message, length delimited. Does not implicitly {@link google.container.v1.HttpLoadBalancing.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.HttpLoadBalancing + * @static + * @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 + */ + HttpLoadBalancing.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpLoadBalancing message from the specified reader or buffer. + * @function decode + * @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.HttpLoadBalancing} HttpLoadBalancing + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + case 1: + message.disabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpLoadBalancing message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.HttpLoadBalancing + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + HttpLoadBalancing.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpLoadBalancing message. + * @function verify + * @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 + */ + HttpLoadBalancing.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"; + return null; + }; + + /** + * Creates a HttpLoadBalancing message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.HttpLoadBalancing + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.HttpLoadBalancing} HttpLoadBalancing + */ + HttpLoadBalancing.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.HttpLoadBalancing) + return object; + 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 HttpLoadBalancing message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.HttpLoadBalancing + * @static + * @param {google.container.v1.HttpLoadBalancing} message HttpLoadBalancing + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpLoadBalancing.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; + return object; + }; + + /** + * Converts this HttpLoadBalancing to JSON. + * @function toJSON + * @memberof google.container.v1.HttpLoadBalancing + * @instance + * @returns {Object.} JSON object + */ + HttpLoadBalancing.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return HttpLoadBalancing; + })(); + + v1.HorizontalPodAutoscaling = (function() { + + /** + * Properties of a HorizontalPodAutoscaling. + * @memberof google.container.v1 + * @interface IHorizontalPodAutoscaling + * @property {boolean|null} [disabled] HorizontalPodAutoscaling disabled + */ + + /** + * Constructs a new HorizontalPodAutoscaling. + * @memberof google.container.v1 + * @classdesc Represents a HorizontalPodAutoscaling. + * @implements IHorizontalPodAutoscaling + * @constructor + * @param {google.container.v1.IHorizontalPodAutoscaling=} [properties] Properties to set + */ + function HorizontalPodAutoscaling(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]]; + } + + /** + * HorizontalPodAutoscaling disabled. + * @member {boolean} disabled + * @memberof google.container.v1.HorizontalPodAutoscaling + * @instance + */ + HorizontalPodAutoscaling.prototype.disabled = false; + + /** + * Creates a new HorizontalPodAutoscaling instance using the specified properties. + * @function create + * @memberof google.container.v1.HorizontalPodAutoscaling + * @static + * @param {google.container.v1.IHorizontalPodAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling instance + */ + HorizontalPodAutoscaling.create = function create(properties) { + return new HorizontalPodAutoscaling(properties); + }; + + /** + * Encodes the specified HorizontalPodAutoscaling message. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages. + * @function encode + * @memberof google.container.v1.HorizontalPodAutoscaling + * @static + * @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 + */ + HorizontalPodAutoscaling.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disabled != null && message.hasOwnProperty("disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + return writer; + }; + + /** + * Encodes the specified HorizontalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.HorizontalPodAutoscaling.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.HorizontalPodAutoscaling + * @static + * @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 + */ + HorizontalPodAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer. + * @function decode + * @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.HorizontalPodAutoscaling} HorizontalPodAutoscaling + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + case 1: + message.disabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HorizontalPodAutoscaling message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.HorizontalPodAutoscaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + HorizontalPodAutoscaling.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HorizontalPodAutoscaling message. + * @function verify + * @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 + */ + HorizontalPodAutoscaling.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"; + return null; + }; + + /** + * Creates a HorizontalPodAutoscaling message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.HorizontalPodAutoscaling + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.HorizontalPodAutoscaling} HorizontalPodAutoscaling + */ + HorizontalPodAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.HorizontalPodAutoscaling) + return object; + 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 HorizontalPodAutoscaling message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.HorizontalPodAutoscaling + * @static + * @param {google.container.v1.HorizontalPodAutoscaling} message HorizontalPodAutoscaling + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HorizontalPodAutoscaling.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; + return object; + }; + + /** + * Converts this HorizontalPodAutoscaling to JSON. + * @function toJSON + * @memberof google.container.v1.HorizontalPodAutoscaling + * @instance + * @returns {Object.} JSON object + */ + HorizontalPodAutoscaling.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return HorizontalPodAutoscaling; + })(); + + v1.KubernetesDashboard = (function() { + + /** + * Properties of a KubernetesDashboard. + * @memberof google.container.v1 + * @interface IKubernetesDashboard + * @property {boolean|null} [disabled] KubernetesDashboard disabled + */ + + /** + * Constructs a new KubernetesDashboard. + * @memberof google.container.v1 + * @classdesc Represents a KubernetesDashboard. + * @implements IKubernetesDashboard + * @constructor + * @param {google.container.v1.IKubernetesDashboard=} [properties] Properties to set + */ + function KubernetesDashboard(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]]; + } + + /** + * KubernetesDashboard disabled. + * @member {boolean} disabled + * @memberof google.container.v1.KubernetesDashboard + * @instance + */ + KubernetesDashboard.prototype.disabled = false; + + /** + * Creates a new KubernetesDashboard instance using the specified properties. + * @function create + * @memberof google.container.v1.KubernetesDashboard + * @static + * @param {google.container.v1.IKubernetesDashboard=} [properties] Properties to set + * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard instance + */ + KubernetesDashboard.create = function create(properties) { + return new KubernetesDashboard(properties); + }; + + /** + * Encodes the specified KubernetesDashboard message. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages. + * @function encode + * @memberof google.container.v1.KubernetesDashboard + * @static + * @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 + */ + KubernetesDashboard.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disabled != null && message.hasOwnProperty("disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + return writer; + }; + + /** + * Encodes the specified KubernetesDashboard message, length delimited. Does not implicitly {@link google.container.v1.KubernetesDashboard.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.KubernetesDashboard + * @static + * @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 + */ + KubernetesDashboard.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a KubernetesDashboard message from the specified reader or buffer. + * @function decode + * @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.KubernetesDashboard} KubernetesDashboard + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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.disabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a KubernetesDashboard message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.KubernetesDashboard + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + KubernetesDashboard.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a KubernetesDashboard message. + * @function verify + * @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 + */ + KubernetesDashboard.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"; + return null; + }; + + /** + * Creates a KubernetesDashboard message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.KubernetesDashboard + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.KubernetesDashboard} KubernetesDashboard + */ + KubernetesDashboard.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.KubernetesDashboard) + return object; + 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 KubernetesDashboard message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.KubernetesDashboard + * @static + * @param {google.container.v1.KubernetesDashboard} message KubernetesDashboard + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + KubernetesDashboard.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; + return object; + }; + + /** + * Converts this KubernetesDashboard to JSON. + * @function toJSON + * @memberof google.container.v1.KubernetesDashboard + * @instance + * @returns {Object.} JSON object + */ + KubernetesDashboard.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return KubernetesDashboard; + })(); + + v1.NetworkPolicyConfig = (function() { + + /** + * Properties of a NetworkPolicyConfig. + * @memberof google.container.v1 + * @interface INetworkPolicyConfig + * @property {boolean|null} [disabled] NetworkPolicyConfig disabled + */ + + /** + * Constructs a new NetworkPolicyConfig. + * @memberof google.container.v1 + * @classdesc Represents a NetworkPolicyConfig. + * @implements INetworkPolicyConfig + * @constructor + * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set + */ + function NetworkPolicyConfig(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]]; + } + + /** + * NetworkPolicyConfig disabled. + * @member {boolean} disabled + * @memberof google.container.v1.NetworkPolicyConfig + * @instance + */ + NetworkPolicyConfig.prototype.disabled = false; + + /** + * Creates a new NetworkPolicyConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NetworkPolicyConfig + * @static + * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set + * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig instance + */ + NetworkPolicyConfig.create = function create(properties) { + return new NetworkPolicyConfig(properties); + }; + + /** + * Encodes the specified NetworkPolicyConfig message. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NetworkPolicyConfig + * @static + * @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 + */ + NetworkPolicyConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.disabled != null && message.hasOwnProperty("disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + return writer; + }; + + /** + * Encodes the specified NetworkPolicyConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicyConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NetworkPolicyConfig + * @static + * @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 + */ + NetworkPolicyConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkPolicyConfig message from the specified reader or buffer. + * @function decode + * @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.NetworkPolicyConfig} NetworkPolicyConfig + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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.disabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkPolicyConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NetworkPolicyConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + NetworkPolicyConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkPolicyConfig message. + * @function verify + * @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 + */ + NetworkPolicyConfig.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"; + return null; + }; + + /** + * Creates a NetworkPolicyConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NetworkPolicyConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig + */ + NetworkPolicyConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NetworkPolicyConfig) + return object; + var message = new $root.google.container.v1.NetworkPolicyConfig(); + 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. + * @function toObject + * @memberof google.container.v1.NetworkPolicyConfig + * @static + * @param {google.container.v1.NetworkPolicyConfig} message NetworkPolicyConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkPolicyConfig.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; + return object; + }; + + /** + * Converts this NetworkPolicyConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NetworkPolicyConfig + * @instance + * @returns {Object.} JSON object + */ + NetworkPolicyConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NetworkPolicyConfig; + })(); + + v1.PrivateClusterConfig = (function() { + + /** + * Properties of a PrivateClusterConfig. + * @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 + */ + + /** + * Constructs a new PrivateClusterConfig. + * @memberof google.container.v1 + * @classdesc Represents a PrivateClusterConfig. + * @implements IPrivateClusterConfig + * @constructor + * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set + */ + function PrivateClusterConfig(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]]; + } + + /** + * 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 + * @instance + */ + PrivateClusterConfig.prototype.publicEndpoint = ""; + + /** + * Creates a new PrivateClusterConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.PrivateClusterConfig + * @static + * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set + * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig instance + */ + PrivateClusterConfig.create = function create(properties) { + return new PrivateClusterConfig(properties); + }; + + /** + * Encodes the specified PrivateClusterConfig message. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.PrivateClusterConfig + * @static + * @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 + */ + PrivateClusterConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateNodes); + if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePrivateEndpoint); + if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4CidrBlock); + if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.privateEndpoint); + if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint); + return writer; + }; + + /** + * Encodes the specified PrivateClusterConfig message, length delimited. Does not implicitly {@link google.container.v1.PrivateClusterConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.PrivateClusterConfig + * @static + * @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 + */ + PrivateClusterConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PrivateClusterConfig message from the specified reader or buffer. + * @function decode + * @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.PrivateClusterConfig} PrivateClusterConfig + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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.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; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PrivateClusterConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.PrivateClusterConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + PrivateClusterConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PrivateClusterConfig message. + * @function verify + * @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 + */ + PrivateClusterConfig.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"; + return null; + }; + + /** + * Creates a PrivateClusterConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.PrivateClusterConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig + */ + PrivateClusterConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.PrivateClusterConfig) + 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); + return message; + }; + + /** + * Creates a plain object from a PrivateClusterConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.PrivateClusterConfig + * @static + * @param {google.container.v1.PrivateClusterConfig} message PrivateClusterConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PrivateClusterConfig.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; + return object; + }; + + /** + * Converts this PrivateClusterConfig to JSON. + * @function toJSON + * @memberof google.container.v1.PrivateClusterConfig + * @instance + * @returns {Object.} JSON object + */ + PrivateClusterConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PrivateClusterConfig; + })(); + + v1.MasterAuthorizedNetworksConfig = (function() { + + /** + * Properties of a MasterAuthorizedNetworksConfig. + * @memberof google.container.v1 + * @interface IMasterAuthorizedNetworksConfig + * @property {boolean|null} [enabled] MasterAuthorizedNetworksConfig enabled + * @property {Array.|null} [cidrBlocks] MasterAuthorizedNetworksConfig cidrBlocks + */ + + /** + * Constructs a new MasterAuthorizedNetworksConfig. + * @memberof google.container.v1 + * @classdesc Represents a MasterAuthorizedNetworksConfig. + * @implements IMasterAuthorizedNetworksConfig + * @constructor + * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set + */ + function MasterAuthorizedNetworksConfig(properties) { + this.cidrBlocks = []; + 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]]; + } + + /** + * MasterAuthorizedNetworksConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @instance + */ + MasterAuthorizedNetworksConfig.prototype.enabled = false; + + /** + * MasterAuthorizedNetworksConfig cidrBlocks. + * @member {Array.} cidrBlocks + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @instance + */ + MasterAuthorizedNetworksConfig.prototype.cidrBlocks = $util.emptyArray; + + /** + * 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 + */ + MasterAuthorizedNetworksConfig.create = function create(properties) { + return new MasterAuthorizedNetworksConfig(properties); + }; + + /** + * 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 + */ + MasterAuthorizedNetworksConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && message.hasOwnProperty("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. + * @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 + */ + MasterAuthorizedNetworksConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * 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 + */ + 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; + }; + + /** + * 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 + */ + MasterAuthorizedNetworksConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * 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 + */ + 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; + }; + + /** + * 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 + */ + 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; + }; + + /** + * 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 + */ + 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; + }; + + /** + * Converts this MasterAuthorizedNetworksConfig to JSON. + * @function toJSON + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @instance + * @returns {Object.} JSON object + */ + MasterAuthorizedNetworksConfig.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 && message.hasOwnProperty("displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.cidrBlock != null && message.hasOwnProperty("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; + })(); + + v1.LegacyAbac = (function() { + + /** + * Properties of a LegacyAbac. + * @memberof google.container.v1 + * @interface ILegacyAbac + * @property {boolean|null} [enabled] LegacyAbac enabled + */ + + /** + * Constructs a new LegacyAbac. + * @memberof google.container.v1 + * @classdesc Represents a LegacyAbac. + * @implements ILegacyAbac + * @constructor + * @param {google.container.v1.ILegacyAbac=} [properties] Properties to set + */ + 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]]; + } + + /** + * LegacyAbac enabled. + * @member {boolean} enabled + * @memberof google.container.v1.LegacyAbac + * @instance + */ + LegacyAbac.prototype.enabled = false; + + /** + * 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 + */ + LegacyAbac.create = function create(properties) { + return new LegacyAbac(properties); + }; + + /** + * 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 + */ + LegacyAbac.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * 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 + */ + LegacyAbac.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * 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 + */ + 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; + }; + + /** + * 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 + */ + LegacyAbac.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * 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 + */ + 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; + }; + + /** + * 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 + */ + 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; + }; + + /** + * 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 + */ + 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; + }; + + /** + * Converts this LegacyAbac to JSON. + * @function toJSON + * @memberof google.container.v1.LegacyAbac + * @instance + * @returns {Object.} JSON object + */ + LegacyAbac.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LegacyAbac; + })(); + + v1.NetworkPolicy = (function() { + + /** + * 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 + */ + + /** + * Constructs a new NetworkPolicy. + * @memberof google.container.v1 + * @classdesc Represents a NetworkPolicy. + * @implements INetworkPolicy + * @constructor + * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set + */ + 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]]; + } + + /** + * NetworkPolicy provider. + * @member {google.container.v1.NetworkPolicy.Provider} provider + * @memberof google.container.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.provider = 0; + + /** + * NetworkPolicy enabled. + * @member {boolean} enabled + * @memberof google.container.v1.NetworkPolicy + * @instance + */ + NetworkPolicy.prototype.enabled = false; + + /** + * Creates a new NetworkPolicy instance using the specified properties. + * @function create + * @memberof google.container.v1.NetworkPolicy + * @static + * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set + * @returns {google.container.v1.NetworkPolicy} NetworkPolicy instance + */ + NetworkPolicy.create = function create(properties) { + return new NetworkPolicy(properties); + }; + + /** + * Encodes the specified NetworkPolicy message. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NetworkPolicy + * @static + * @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 + */ + NetworkPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.provider != null && message.hasOwnProperty("provider")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified NetworkPolicy message, length delimited. Does not implicitly {@link google.container.v1.NetworkPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NetworkPolicy + * @static + * @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 + */ + NetworkPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkPolicy message from the specified reader or buffer. + * @function decode + * @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.NetworkPolicy} NetworkPolicy + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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.provider = reader.int32(); + break; + case 2: + message.enabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + 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; + } + 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 {string} + * @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.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 + */ + + /** + * 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 = ""; + + /** + * 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 && message.hasOwnProperty("useIpAliases")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases); + if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.createSubnetwork); + if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subnetworkName); + if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4Cidr); + if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeIpv4Cidr); + if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.servicesIpv4Cidr); + if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.clusterSecondaryRangeName); + if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.servicesSecondaryRangeName); + if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4CidrBlock); + if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.nodeIpv4CidrBlock); + if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.servicesIpv4CidrBlock); + 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; + 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"; + 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); + 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 = ""; + } + 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; + 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.INetworkConfig|null} [networkConfig] Cluster networkConfig + * @property {google.container.v1.IPrivateClusterConfig|null} [privateClusterConfig] Cluster privateClusterConfig + * @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 + */ + + /** + * 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 = []; + 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 networkConfig. + * @member {google.container.v1.INetworkConfig|null|undefined} networkConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.networkConfig = null; + + /** + * Cluster privateClusterConfig. + * @member {google.container.v1.IPrivateClusterConfig|null|undefined} privateClusterConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.privateClusterConfig = 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 = ""; + + /** + * 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 && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); + if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) + $root.google.container.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.masterAuth != null && message.hasOwnProperty("masterAuth")) + $root.google.container.v1.MasterAuth.encode(message.masterAuth, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.loggingService != null && message.hasOwnProperty("loggingService")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.loggingService); + if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.monitoringService); + if (message.network != null && message.hasOwnProperty("network")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.network); + if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4Cidr); + if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) + $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.subnetwork != null && message.hasOwnProperty("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 && message.hasOwnProperty("enableKubernetesAlpha")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableKubernetesAlpha); + if (message.resourceLabels != null && message.hasOwnProperty("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 && message.hasOwnProperty("labelFingerprint")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.labelFingerprint); + if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) + $root.google.container.v1.LegacyAbac.encode(message.legacyAbac, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) + $root.google.container.v1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) + $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.masterAuthorizedNetworksConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) + $root.google.container.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) + $root.google.container.v1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.zone); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.endpoint); + if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion")) + writer.uint32(/* id 103, wireType 2 =*/826).string(message.initialClusterVersion); + if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion")) + writer.uint32(/* id 104, wireType 2 =*/834).string(message.currentMasterVersion); + if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion")) + writer.uint32(/* id 105, wireType 2 =*/842).string(message.currentNodeVersion); + if (message.createTime != null && message.hasOwnProperty("createTime")) + writer.uint32(/* id 106, wireType 2 =*/850).string(message.createTime); + if (message.status != null && message.hasOwnProperty("status")) + writer.uint32(/* id 107, wireType 0 =*/856).int32(message.status); + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + writer.uint32(/* id 108, wireType 2 =*/866).string(message.statusMessage); + if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize")) + writer.uint32(/* id 109, wireType 0 =*/872).int32(message.nodeIpv4CidrSize); + if (message.servicesIpv4Cidr != null && message.hasOwnProperty("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 && message.hasOwnProperty("currentNodeCount")) + writer.uint32(/* id 112, wireType 0 =*/896).int32(message.currentNodeCount); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + writer.uint32(/* id 113, wireType 2 =*/906).string(message.expireTime); + if (message.location != null && message.hasOwnProperty("location")) + writer.uint32(/* id 114, wireType 2 =*/914).string(message.location); + 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; + 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: + reader.skip().pos++; + if (message.resourceLabels === $util.emptyObject) + message.resourceLabels = {}; + key = reader.string(); + reader.pos++; + message.resourceLabels[key] = reader.string(); + 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 27: + message.networkConfig = $root.google.container.v1.NetworkConfig.decode(reader, reader.uint32()); + break; + case 37: + message.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.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; + 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.networkConfig != null && message.hasOwnProperty("networkConfig")) { + var error = $root.google.container.v1.NetworkConfig.verify(message.networkConfig); + if (error) + return "networkConfig." + 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.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"; + 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.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.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.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); + 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 = []; + } + 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.networkConfig = null; + object.privateClusterConfig = 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 = ""; + } + 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.networkConfig != null && message.hasOwnProperty("networkConfig")) + object.networkConfig = $root.google.container.v1.NetworkConfig.toObject(message.networkConfig, options); + if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) + object.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.toObject(message.privateClusterConfig, 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; + 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 {string} + * @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.INodePoolAutoscaling|null} [desiredNodePoolAutoscaling] ClusterUpdate desiredNodePoolAutoscaling + * @property {Array.|null} [desiredLocations] ClusterUpdate desiredLocations + * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [desiredMasterAuthorizedNetworksConfig] ClusterUpdate desiredMasterAuthorizedNetworksConfig + * @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 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 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 && message.hasOwnProperty("desiredNodeVersion")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.desiredNodeVersion); + if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.desiredMonitoringService); + if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) + $root.google.container.v1.AddonsConfig.encode(message.desiredAddonsConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.desiredNodePoolId); + if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.desiredImageType); + if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("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 && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) + $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.desiredMasterAuthorizedNetworksConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.desiredMasterVersion != null && message.hasOwnProperty("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 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 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.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.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.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.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.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.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 + */ + + /** + * 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) { + 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 = ""; + + /** + * 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 && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.operationType != null && message.hasOwnProperty("operationType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operationType); + if (message.status != null && message.hasOwnProperty("status")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.selfLink); + if (message.targetLink != null && message.hasOwnProperty("targetLink")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetLink); + if (message.detail != null && message.hasOwnProperty("detail")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.detail); + if (message.location != null && message.hasOwnProperty("location")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.location); + if (message.startTime != null && message.hasOwnProperty("startTime")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTime); + if (message.endTime != null && message.hasOwnProperty("endTime")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.endTime); + 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; + 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"; + 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); + 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.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 = ""; + } + 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; + 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 {string} + * @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 {string} + * @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.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 && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.cluster != null && message.hasOwnProperty("cluster")) + $root.google.container.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && message.hasOwnProperty("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 && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && message.hasOwnProperty("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 && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.update != null && message.hasOwnProperty("update")) + $root.google.container.v1.ClusterUpdate.encode(message.update, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("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 "update." + 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 (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.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 + */ + + /** + * 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) { + 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 = ""; + + /** + * 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 && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeVersion); + if (message.imageType != null && message.hasOwnProperty("imageType")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.imageType); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + 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"; + return null; + }; + + /** + * Creates an UpdateNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest + */ + UpdateNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UpdateNodePoolRequest) + return object; + 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.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); + return message; + }; + + /** + * Creates a plain object from an UpdateNodePoolRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {google.container.v1.UpdateNodePoolRequest} message UpdateNodePoolRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateNodePoolRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.nodeVersion = ""; + object.imageType = ""; + 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.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; + return object; + }; + + /** + * Converts this UpdateNodePoolRequest to JSON. + * @function toJSON + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateNodePoolRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateNodePoolRequest; + })(); + + v1.SetNodePoolAutoscalingRequest = (function() { + + /** + * Properties of a SetNodePoolAutoscalingRequest. + * @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 + */ + + /** + * Constructs a new SetNodePoolAutoscalingRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetNodePoolAutoscalingRequest. + * @implements ISetNodePoolAutoscalingRequest + * @constructor + * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set + */ + function SetNodePoolAutoscalingRequest(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]]; + } + + /** + * SetNodePoolAutoscalingRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @instance + */ + SetNodePoolAutoscalingRequest.prototype.projectId = ""; + + /** + * SetNodePoolAutoscalingRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @instance + */ + SetNodePoolAutoscalingRequest.prototype.zone = ""; + + /** + * SetNodePoolAutoscalingRequest 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 + * @instance + */ + SetNodePoolAutoscalingRequest.prototype.autoscaling = null; + + /** + * SetNodePoolAutoscalingRequest name. + * @member {string} name + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @instance + */ + SetNodePoolAutoscalingRequest.prototype.name = ""; + + /** + * 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 + */ + 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 && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("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; + }; + + /** + * 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 + */ + 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; + }; + + /** + * Converts this SetNodePoolAutoscalingRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @instance + * @returns {Object.} JSON object + */ + SetNodePoolAutoscalingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetNodePoolAutoscalingRequest; + })(); + + v1.SetLoggingServiceRequest = (function() { + + /** + * 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 + */ + + /** + * Constructs a new SetLoggingServiceRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetLoggingServiceRequest. + * @implements ISetLoggingServiceRequest + * @constructor + * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set + */ + 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]]; + } + + /** + * SetLoggingServiceRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetLoggingServiceRequest + * @instance + */ + SetLoggingServiceRequest.prototype.projectId = ""; + + /** + * SetLoggingServiceRequest 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 + * @instance + */ + SetLoggingServiceRequest.prototype.loggingService = ""; + + /** + * SetLoggingServiceRequest name. + * @member {string} name + * @memberof google.container.v1.SetLoggingServiceRequest + * @instance + */ + SetLoggingServiceRequest.prototype.name = ""; + + /** + * Creates a new SetLoggingServiceRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest instance + */ + SetLoggingServiceRequest.create = function create(properties) { + return new SetLoggingServiceRequest(properties); + }; + + /** + * Encodes the specified SetLoggingServiceRequest message. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @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 + */ + SetLoggingServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.loggingService != null && message.hasOwnProperty("loggingService")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.loggingService); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetLoggingServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @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 + */ + SetLoggingServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetLoggingServiceRequest message from the specified reader or buffer. + * @function decode + * @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.SetLoggingServiceRequest} SetLoggingServiceRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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 1: + message.projectId = reader.string(); + break; + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetLoggingServiceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetLoggingServiceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetLoggingServiceRequest message. + * @function verify + * @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 + */ + SetLoggingServiceRequest.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.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 SetLoggingServiceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest + */ + SetLoggingServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLoggingServiceRequest) + return object; + 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 SetLoggingServiceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @param {google.container.v1.SetLoggingServiceRequest} message SetLoggingServiceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetLoggingServiceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + 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 SetLoggingServiceRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetLoggingServiceRequest + * @instance + * @returns {Object.} JSON object + */ + SetLoggingServiceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetLoggingServiceRequest; + })(); + + v1.SetMonitoringServiceRequest = (function() { + + /** + * Properties of a SetMonitoringServiceRequest. + * @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 + */ + + /** + * Constructs a new SetMonitoringServiceRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetMonitoringServiceRequest. + * @implements ISetMonitoringServiceRequest + * @constructor + * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set + */ + function SetMonitoringServiceRequest(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]]; + } + + /** + * 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 + * @instance + */ + SetMonitoringServiceRequest.prototype.monitoringService = ""; + + /** + * SetMonitoringServiceRequest name. + * @member {string} name + * @memberof google.container.v1.SetMonitoringServiceRequest + * @instance + */ + SetMonitoringServiceRequest.prototype.name = ""; + + /** + * Creates a new SetMonitoringServiceRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set + * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest instance + */ + SetMonitoringServiceRequest.create = function create(properties) { + return new SetMonitoringServiceRequest(properties); + }; + + /** + * Encodes the specified SetMonitoringServiceRequest message. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @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 + */ + SetMonitoringServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.monitoringService); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetMonitoringServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @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 + */ + SetMonitoringServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer. + * @function decode + * @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.SetMonitoringServiceRequest} SetMonitoringServiceRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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.projectId = reader.string(); + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetMonitoringServiceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetMonitoringServiceRequest message. + * @function verify + * @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 + */ + SetMonitoringServiceRequest.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"; + return null; + }; + + /** + * Creates a SetMonitoringServiceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @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 a SetMonitoringServiceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @param {google.container.v1.SetMonitoringServiceRequest} message SetMonitoringServiceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetMonitoringServiceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.monitoringService = ""; + 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.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. + * @function toJSON + * @memberof google.container.v1.SetMonitoringServiceRequest + * @instance + * @returns {Object.} JSON object + */ + SetMonitoringServiceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetMonitoringServiceRequest; + })(); + + v1.SetAddonsConfigRequest = (function() { + + /** + * Properties of a SetAddonsConfigRequest. + * @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 + */ + + /** + * Constructs a new SetAddonsConfigRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetAddonsConfigRequest. + * @implements ISetAddonsConfigRequest + * @constructor + * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set + */ + function SetAddonsConfigRequest(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]]; + } + + /** + * SetAddonsConfigRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + */ + SetAddonsConfigRequest.prototype.projectId = ""; + + /** + * SetAddonsConfigRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + */ + SetAddonsConfigRequest.prototype.zone = ""; + + /** + * SetAddonsConfigRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + */ + SetAddonsConfigRequest.prototype.clusterId = ""; + + /** + * SetAddonsConfigRequest addonsConfig. + * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + */ + SetAddonsConfigRequest.prototype.addonsConfig = null; + + /** + * 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.SetAddonsConfigRequest + * @static + * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set + * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest instance + */ + SetAddonsConfigRequest.create = function create(properties) { + return new SetAddonsConfigRequest(properties); + }; + + /** + * Encodes the specified SetAddonsConfigRequest message. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @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 + */ + SetAddonsConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) + $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetAddonsConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @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 + */ + SetAddonsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetAddonsConfigRequest message from the specified reader or buffer. + * @function decode + * @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.SetAddonsConfigRequest} SetAddonsConfigRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + case 1: + message.projectId = reader.string(); + break; + case 2: + 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()); + break; + case 6: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetAddonsConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetAddonsConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetAddonsConfigRequest message. + * @function verify + * @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 + */ + SetAddonsConfigRequest.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.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 a SetAddonsConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest + */ + SetAddonsConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetAddonsConfigRequest) + return object; + 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.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.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. + * @function toObject + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @param {google.container.v1.SetAddonsConfigRequest} message SetAddonsConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetAddonsConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + 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.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 SetAddonsConfigRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + * @returns {Object.} JSON object + */ + SetAddonsConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetAddonsConfigRequest; + })(); + + v1.SetLocationsRequest = (function() { + + /** + * Properties of a SetLocationsRequest. + * @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 + */ + + /** + * Constructs a new SetLocationsRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetLocationsRequest. + * @implements ISetLocationsRequest + * @constructor + * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set + */ + function SetLocationsRequest(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]]; + } + + /** + * SetLocationsRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetLocationsRequest + * @instance + */ + SetLocationsRequest.prototype.projectId = ""; + + /** + * SetLocationsRequest 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 + * @instance + */ + SetLocationsRequest.prototype.locations = $util.emptyArray; + + /** + * SetLocationsRequest name. + * @member {string} name + * @memberof google.container.v1.SetLocationsRequest + * @instance + */ + SetLocationsRequest.prototype.name = ""; + + /** + * Creates a new SetLocationsRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetLocationsRequest + * @static + * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest instance + */ + SetLocationsRequest.create = function create(properties) { + return new SetLocationsRequest(properties); + }; + + /** + * Encodes the specified SetLocationsRequest message. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetLocationsRequest + * @static + * @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 + */ + SetLocationsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("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 && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetLocationsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetLocationsRequest + * @static + * @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 + */ + SetLocationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetLocationsRequest message from the specified reader or buffer. + * @function decode + * @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.SetLocationsRequest} SetLocationsRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + case 1: + message.projectId = reader.string(); + break; + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetLocationsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetLocationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetLocationsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetLocationsRequest message. + * @function verify + * @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 + */ + SetLocationsRequest.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.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"; + return null; + }; + + /** + * Creates a SetLocationsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetLocationsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest + */ + SetLocationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLocationsRequest) + return object; + 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 SetLocationsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetLocationsRequest + * @static + * @param {google.container.v1.SetLocationsRequest} message SetLocationsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + 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 = ""; + 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.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 SetLocationsRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetLocationsRequest + * @instance + * @returns {Object.} JSON object + */ + SetLocationsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetLocationsRequest; + })(); + + v1.UpdateMasterRequest = (function() { + + /** + * Properties of an UpdateMasterRequest. + * @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 + */ + + /** + * Constructs a new UpdateMasterRequest. + * @memberof google.container.v1 + * @classdesc Represents an UpdateMasterRequest. + * @implements IUpdateMasterRequest + * @constructor + * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set + */ + function UpdateMasterRequest(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]]; + } + + /** + * UpdateMasterRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.UpdateMasterRequest + * @instance + */ + UpdateMasterRequest.prototype.projectId = ""; + + /** + * UpdateMasterRequest zone. + * @member {string} zone + * @memberof google.container.v1.UpdateMasterRequest + * @instance + */ + UpdateMasterRequest.prototype.zone = ""; + + /** + * UpdateMasterRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.UpdateMasterRequest + * @instance + */ + UpdateMasterRequest.prototype.clusterId = ""; + + /** + * UpdateMasterRequest masterVersion. + * @member {string} masterVersion + * @memberof google.container.v1.UpdateMasterRequest + * @instance + */ + UpdateMasterRequest.prototype.masterVersion = ""; + + /** + * UpdateMasterRequest name. + * @member {string} name + * @memberof google.container.v1.UpdateMasterRequest + * @instance + */ + UpdateMasterRequest.prototype.name = ""; + + /** + * Creates a new UpdateMasterRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set + * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest instance + */ + UpdateMasterRequest.create = function create(properties) { + return new UpdateMasterRequest(properties); + }; + + /** + * Encodes the specified UpdateMasterRequest message. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @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 + */ + UpdateMasterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.masterVersion != null && message.hasOwnProperty("masterVersion")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.masterVersion); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + return writer; + }; + + /** + * Encodes the specified UpdateMasterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @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 + */ + UpdateMasterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateMasterRequest message from the specified reader or buffer. + * @function decode + * @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.UpdateMasterRequest} UpdateMasterRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.masterVersion = reader.string(); + break; + case 7: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateMasterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UpdateMasterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateMasterRequest message. + * @function verify + * @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 + */ + UpdateMasterRequest.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.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"; + return null; + }; + + /** + * Creates an UpdateMasterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest + */ + UpdateMasterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UpdateMasterRequest) + return object; + 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.masterVersion != null) + message.masterVersion = String(object.masterVersion); + 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. + * @function toObject + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @param {google.container.v1.UpdateMasterRequest} message UpdateMasterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateMasterRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.masterVersion = ""; + 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this UpdateMasterRequest to JSON. + * @function toJSON + * @memberof google.container.v1.UpdateMasterRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateMasterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateMasterRequest; + })(); + + v1.SetMasterAuthRequest = (function() { + + /** + * Properties of a SetMasterAuthRequest. + * @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 + */ + + /** + * Constructs a new SetMasterAuthRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetMasterAuthRequest. + * @implements ISetMasterAuthRequest + * @constructor + * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set + */ + function SetMasterAuthRequest(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]]; + } + + /** + * 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 + * @instance + */ + SetMasterAuthRequest.prototype.update = null; + + /** + * SetMasterAuthRequest name. + * @member {string} name + * @memberof google.container.v1.SetMasterAuthRequest + * @instance + */ + SetMasterAuthRequest.prototype.name = ""; + + /** + * Creates a new SetMasterAuthRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set + * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest instance + */ + SetMasterAuthRequest.create = function create(properties) { + return new SetMasterAuthRequest(properties); + }; + + /** + * Encodes the specified SetMasterAuthRequest message. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @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 + */ + SetMasterAuthRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.action != null && message.hasOwnProperty("action")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action); + if (message.update != null && message.hasOwnProperty("update")) + $root.google.container.v1.MasterAuth.encode(message.update, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetMasterAuthRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @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 + */ + SetMasterAuthRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetMasterAuthRequest message from the specified reader or buffer. + * @function decode + * @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.SetMasterAuthRequest} SetMasterAuthRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + 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()); + break; + case 7: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetMasterAuthRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetMasterAuthRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetMasterAuthRequest message. + * @function verify + * @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 + */ + SetMasterAuthRequest.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.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"; + return null; + }; + + /** + * Creates a SetMasterAuthRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest + */ + SetMasterAuthRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetMasterAuthRequest) + 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; + } + 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 a SetMasterAuthRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @param {google.container.v1.SetMasterAuthRequest} message SetMasterAuthRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetMasterAuthRequest.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 (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. + * @function toJSON + * @memberof google.container.v1.SetMasterAuthRequest + * @instance + * @returns {Object.} JSON object + */ + SetMasterAuthRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Action enum. + * @name google.container.v1.SetMasterAuthRequest.Action + * @enum {string} + * @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.DeleteClusterRequest = (function() { + + /** + * Properties of a DeleteClusterRequest. + * @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 + */ + + /** + * Constructs a new DeleteClusterRequest. + * @memberof google.container.v1 + * @classdesc Represents a DeleteClusterRequest. + * @implements IDeleteClusterRequest + * @constructor + * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set + */ + function DeleteClusterRequest(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]]; + } + + /** + * DeleteClusterRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.DeleteClusterRequest + * @instance + */ + DeleteClusterRequest.prototype.projectId = ""; + + /** + * DeleteClusterRequest zone. + * @member {string} zone + * @memberof google.container.v1.DeleteClusterRequest + * @instance + */ + DeleteClusterRequest.prototype.zone = ""; + + /** + * DeleteClusterRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.DeleteClusterRequest + * @instance + */ + DeleteClusterRequest.prototype.clusterId = ""; + + /** + * DeleteClusterRequest name. + * @member {string} name + * @memberof google.container.v1.DeleteClusterRequest + * @instance + */ + DeleteClusterRequest.prototype.name = ""; + + /** + * Creates a new DeleteClusterRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set + * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest instance + */ + DeleteClusterRequest.create = function create(properties) { + return new DeleteClusterRequest(properties); + }; + + /** + * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @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 + */ + DeleteClusterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && message.hasOwnProperty("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. + * @function encodeDelimited + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @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 + */ + DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteClusterRequest message from the specified reader or buffer. + * @function decode + * @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.DeleteClusterRequest} DeleteClusterRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteClusterRequest message. + * @function verify + * @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 + */ + DeleteClusterRequest.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 DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest + */ + DeleteClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DeleteClusterRequest) + return object; + 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.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. + * @function toObject + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @param {google.container.v1.DeleteClusterRequest} message DeleteClusterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteClusterRequest.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. + * @function toJSON + * @memberof google.container.v1.DeleteClusterRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteClusterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteClusterRequest; + })(); + + v1.ListClustersRequest = (function() { + + /** + * Properties of a ListClustersRequest. + * @memberof google.container.v1 + * @interface IListClustersRequest + * @property {string|null} [projectId] ListClustersRequest projectId + * @property {string|null} [zone] ListClustersRequest zone + * @property {string|null} [parent] ListClustersRequest parent + */ + + /** + * Constructs a new ListClustersRequest. + * @memberof google.container.v1 + * @classdesc Represents a ListClustersRequest. + * @implements IListClustersRequest + * @constructor + * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set + */ + function ListClustersRequest(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]]; + } + + /** + * ListClustersRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.projectId = ""; + + /** + * ListClustersRequest zone. + * @member {string} zone + * @memberof google.container.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.zone = ""; + + /** + * ListClustersRequest parent. + * @member {string} parent + * @memberof google.container.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.parent = ""; + + /** + * Creates a new ListClustersRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.ListClustersRequest + * @static + * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set + * @returns {google.container.v1.ListClustersRequest} ListClustersRequest instance + */ + ListClustersRequest.create = function create(properties) { + return new ListClustersRequest(properties); + }; + + /** + * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ListClustersRequest + * @static + * @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 + */ + ListClustersRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.parent != null && message.hasOwnProperty("parent")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + return writer; + }; + + /** + * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ListClustersRequest + * @static + * @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 + */ + ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListClustersRequest message from the specified reader or buffer. + * @function decode + * @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.ListClustersRequest} ListClustersRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + 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.ListClustersRequest(); + 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 4: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ListClustersRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ListClustersRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListClustersRequest message. + * @function verify + * @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 + */ + ListClustersRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ListClustersRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + */ + ListClustersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListClustersRequest) + return object; + 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.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ListClustersRequest + * @static + * @param {google.container.v1.ListClustersRequest} message ListClustersRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListClustersRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + 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.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this ListClustersRequest to JSON. + * @function toJSON + * @memberof google.container.v1.ListClustersRequest + * @instance + * @returns {Object.} JSON object + */ + ListClustersRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListClustersRequest; + })(); + + v1.ListClustersResponse = (function() { + + /** + * Properties of a ListClustersResponse. + * @memberof google.container.v1 + * @interface IListClustersResponse + * @property {Array.|null} [clusters] ListClustersResponse clusters + * @property {Array.|null} [missingZones] ListClustersResponse missingZones + */ + + /** + * Constructs a new ListClustersResponse. + * @memberof google.container.v1 + * @classdesc Represents a ListClustersResponse. + * @implements IListClustersResponse + * @constructor + * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set + */ + 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) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListClustersResponse clusters. + * @member {Array.} clusters + * @memberof google.container.v1.ListClustersResponse + * @instance + */ + ListClustersResponse.prototype.clusters = $util.emptyArray; + + /** + * ListClustersResponse missingZones. + * @member {Array.} missingZones + * @memberof google.container.v1.ListClustersResponse + * @instance + */ + ListClustersResponse.prototype.missingZones = $util.emptyArray; + + /** + * Creates a new ListClustersResponse instance using the specified properties. + * @function create + * @memberof google.container.v1.ListClustersResponse + * @static + * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set + * @returns {google.container.v1.ListClustersResponse} ListClustersResponse instance + */ + ListClustersResponse.create = function create(properties) { + return new ListClustersResponse(properties); + }; + + /** + * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ListClustersResponse + * @static + * @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 + */ + ListClustersResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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 ListClustersResponse message, length delimited. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ListClustersResponse + * @static + * @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 + */ + ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListClustersResponse message from the specified reader or buffer. + * @function decode + * @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.ListClustersResponse} ListClustersResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + 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.ListClustersResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.clusters && message.clusters.length)) + message.clusters = []; + message.clusters.push($root.google.container.v1.Cluster.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.missingZones && message.missingZones.length)) + message.missingZones = []; + message.missingZones.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ListClustersResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ListClustersResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListClustersResponse message. + * @function verify + * @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 + */ + ListClustersResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object 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 ListClustersResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ListClustersResponse + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ListClustersResponse} ListClustersResponse + */ + ListClustersResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListClustersResponse) + return object; + 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 ListClustersResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ListClustersResponse + * @static + * @param {google.container.v1.ListClustersResponse} message ListClustersResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListClustersResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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]; + } + return object; + }; + + /** + * Converts this ListClustersResponse to JSON. + * @function toJSON + * @memberof google.container.v1.ListClustersResponse + * @instance + * @returns {Object.} JSON object + */ + ListClustersResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListClustersResponse; + })(); + + v1.GetOperationRequest = (function() { + + /** + * Properties of a GetOperationRequest. + * @memberof google.container.v1 + * @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 GetOperationRequest. + * @memberof google.container.v1 + * @classdesc Represents a GetOperationRequest. + * @implements IGetOperationRequest + * @constructor + * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set + */ + function GetOperationRequest(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]]; + } + + /** + * GetOperationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.GetOperationRequest + * @instance + */ + GetOperationRequest.prototype.projectId = ""; + + /** + * GetOperationRequest zone. + * @member {string} zone + * @memberof google.container.v1.GetOperationRequest + * @instance + */ + GetOperationRequest.prototype.zone = ""; + + /** + * GetOperationRequest operationId. + * @member {string} operationId + * @memberof google.container.v1.GetOperationRequest + * @instance + */ + GetOperationRequest.prototype.operationId = ""; + + /** + * GetOperationRequest name. + * @member {string} name + * @memberof google.container.v1.GetOperationRequest + * @instance + */ + GetOperationRequest.prototype.name = ""; + + /** + * Creates a new GetOperationRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.GetOperationRequest + * @static + * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set + * @returns {google.container.v1.GetOperationRequest} GetOperationRequest instance + */ + GetOperationRequest.create = function create(properties) { + return new GetOperationRequest(properties); + }; + + /** + * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GetOperationRequest + * @static + * @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 + */ + GetOperationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.operationId != null && message.hasOwnProperty("operationId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GetOperationRequest + * @static + * @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 + */ + GetOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer. + * @function decode + * @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.GetOperationRequest} GetOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + 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.GetOperationRequest(); + 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.operationId = reader.string(); + break; + case 5: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GetOperationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetOperationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetOperationRequest message. + * @function verify + * @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 + */ + GetOperationRequest.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.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"; + return null; + }; + + /** + * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GetOperationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GetOperationRequest} GetOperationRequest + */ + GetOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetOperationRequest) + return object; + 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.operationId != null) + message.operationId = String(object.operationId); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GetOperationRequest + * @static + * @param {google.container.v1.GetOperationRequest} message GetOperationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetOperationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + 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.operationId != null && message.hasOwnProperty("operationId")) + object.operationId = message.operationId; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetOperationRequest to JSON. + * @function toJSON + * @memberof google.container.v1.GetOperationRequest + * @instance + * @returns {Object.} JSON object + */ + GetOperationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetOperationRequest; + })(); + + v1.ListOperationsRequest = (function() { + + /** + * Properties of a ListOperationsRequest. + * @memberof google.container.v1 + * @interface IListOperationsRequest + * @property {string|null} [projectId] ListOperationsRequest projectId + * @property {string|null} [zone] ListOperationsRequest zone + * @property {string|null} [parent] ListOperationsRequest parent + */ + + /** + * Constructs a new ListOperationsRequest. + * @memberof google.container.v1 + * @classdesc Represents a ListOperationsRequest. + * @implements IListOperationsRequest + * @constructor + * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set + */ + function ListOperationsRequest(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]]; + } + + /** + * ListOperationsRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.ListOperationsRequest + * @instance + */ + ListOperationsRequest.prototype.projectId = ""; + + /** + * ListOperationsRequest zone. + * @member {string} zone + * @memberof google.container.v1.ListOperationsRequest + * @instance + */ + ListOperationsRequest.prototype.zone = ""; + + /** + * ListOperationsRequest parent. + * @member {string} parent + * @memberof google.container.v1.ListOperationsRequest + * @instance + */ + ListOperationsRequest.prototype.parent = ""; + + /** + * Creates a new ListOperationsRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.ListOperationsRequest + * @static + * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set + * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest instance + */ + ListOperationsRequest.create = function create(properties) { + return new ListOperationsRequest(properties); + }; + + /** + * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ListOperationsRequest + * @static + * @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 + */ + ListOperationsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.parent != null && message.hasOwnProperty("parent")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + return writer; + }; + + /** + * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ListOperationsRequest + * @static + * @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 + */ + ListOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer. + * @function decode + * @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.ListOperationsRequest} ListOperationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + 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.ListOperationsRequest(); + 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 4: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ListOperationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ListOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListOperationsRequest message. + * @function verify + * @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 + */ + ListOperationsRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ListOperationsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest + */ + ListOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListOperationsRequest) + return object; + 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.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ListOperationsRequest + * @static + * @param {google.container.v1.ListOperationsRequest} message ListOperationsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListOperationsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + 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.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this ListOperationsRequest to JSON. + * @function toJSON + * @memberof google.container.v1.ListOperationsRequest + * @instance + * @returns {Object.} JSON object + */ + ListOperationsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListOperationsRequest; + })(); + + v1.CancelOperationRequest = (function() { + + /** + * Properties of a CancelOperationRequest. + * @memberof google.container.v1 + * @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 CancelOperationRequest. + * @memberof google.container.v1 + * @classdesc Represents a CancelOperationRequest. + * @implements ICancelOperationRequest + * @constructor + * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set + */ + function CancelOperationRequest(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]]; + } + + /** + * CancelOperationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.CancelOperationRequest + * @instance + */ + CancelOperationRequest.prototype.projectId = ""; + + /** + * CancelOperationRequest zone. + * @member {string} zone + * @memberof google.container.v1.CancelOperationRequest + * @instance + */ + CancelOperationRequest.prototype.zone = ""; + + /** + * CancelOperationRequest operationId. + * @member {string} operationId + * @memberof google.container.v1.CancelOperationRequest + * @instance + */ + CancelOperationRequest.prototype.operationId = ""; + + /** + * CancelOperationRequest name. + * @member {string} name + * @memberof google.container.v1.CancelOperationRequest + * @instance + */ + CancelOperationRequest.prototype.name = ""; + + /** + * Creates a new CancelOperationRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.CancelOperationRequest + * @static + * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set + * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest instance + */ + CancelOperationRequest.create = function create(properties) { + return new CancelOperationRequest(properties); + }; + + /** + * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.CancelOperationRequest + * @static + * @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 + */ + CancelOperationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.operationId != null && message.hasOwnProperty("operationId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + return writer; + }; + + /** + * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.CancelOperationRequest + * @static + * @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 + */ + CancelOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CancelOperationRequest message from the specified reader or buffer. + * @function decode + * @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.CancelOperationRequest} CancelOperationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + 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.CancelOperationRequest(); + 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.operationId = reader.string(); + break; + case 4: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.CancelOperationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + CancelOperationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CancelOperationRequest message. + * @function verify + * @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 + */ + CancelOperationRequest.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.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"; + return null; + }; + + /** + * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.CancelOperationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest + */ + CancelOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CancelOperationRequest) + return object; + 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.operationId != null) + message.operationId = String(object.operationId); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.CancelOperationRequest + * @static + * @param {google.container.v1.CancelOperationRequest} message CancelOperationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CancelOperationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + 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.operationId != null && message.hasOwnProperty("operationId")) + object.operationId = message.operationId; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this CancelOperationRequest to JSON. + * @function toJSON + * @memberof google.container.v1.CancelOperationRequest + * @instance + * @returns {Object.} JSON object + */ + CancelOperationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CancelOperationRequest; + })(); + + v1.ListOperationsResponse = (function() { + + /** + * Properties of a ListOperationsResponse. + * @memberof google.container.v1 + * @interface IListOperationsResponse + * @property {Array.|null} [operations] ListOperationsResponse operations + * @property {Array.|null} [missingZones] ListOperationsResponse missingZones + */ + + /** + * Constructs a new ListOperationsResponse. + * @memberof google.container.v1 + * @classdesc Represents a ListOperationsResponse. + * @implements IListOperationsResponse + * @constructor + * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set + */ + 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) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListOperationsResponse operations. + * @member {Array.} operations + * @memberof google.container.v1.ListOperationsResponse + * @instance + */ + ListOperationsResponse.prototype.operations = $util.emptyArray; + + /** + * ListOperationsResponse missingZones. + * @member {Array.} missingZones + * @memberof google.container.v1.ListOperationsResponse + * @instance + */ + ListOperationsResponse.prototype.missingZones = $util.emptyArray; + + /** + * Creates a new ListOperationsResponse instance using the specified properties. + * @function create + * @memberof google.container.v1.ListOperationsResponse + * @static + * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set + * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse instance + */ + ListOperationsResponse.create = function create(properties) { + return new ListOperationsResponse(properties); + }; + + /** + * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ListOperationsResponse + * @static + * @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 + */ + ListOperationsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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 ListOperationsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ListOperationsResponse + * @static + * @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 + */ + ListOperationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer. + * @function decode + * @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.ListOperationsResponse} ListOperationsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + 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.ListOperationsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.operations && message.operations.length)) + message.operations = []; + message.operations.push($root.google.container.v1.Operation.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.missingZones && message.missingZones.length)) + message.missingZones = []; + message.missingZones.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ListOperationsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ListOperationsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListOperationsResponse message. + * @function verify + * @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 + */ + ListOperationsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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.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 ListOperationsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ListOperationsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse + */ + ListOperationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListOperationsResponse) + return object; + 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.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]); + } + return message; + }; + + /** + * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ListOperationsResponse + * @static + * @param {google.container.v1.ListOperationsResponse} message ListOperationsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListOperationsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + 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]; + } + return object; + }; + + /** + * Converts this ListOperationsResponse to JSON. + * @function toJSON + * @memberof google.container.v1.ListOperationsResponse + * @instance + * @returns {Object.} JSON object + */ + ListOperationsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListOperationsResponse; + })(); + + v1.GetServerConfigRequest = (function() { + + /** + * Properties of a GetServerConfigRequest. + * @memberof google.container.v1 + * @interface IGetServerConfigRequest + * @property {string|null} [projectId] GetServerConfigRequest projectId + * @property {string|null} [zone] GetServerConfigRequest zone + * @property {string|null} [name] GetServerConfigRequest name + */ + + /** + * Constructs a new GetServerConfigRequest. + * @memberof google.container.v1 + * @classdesc Represents a GetServerConfigRequest. + * @implements IGetServerConfigRequest + * @constructor + * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set + */ + function GetServerConfigRequest(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]]; + } + + /** + * GetServerConfigRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.GetServerConfigRequest + * @instance + */ + GetServerConfigRequest.prototype.projectId = ""; + + /** + * GetServerConfigRequest zone. + * @member {string} zone + * @memberof google.container.v1.GetServerConfigRequest + * @instance + */ + GetServerConfigRequest.prototype.zone = ""; + + /** + * GetServerConfigRequest name. + * @member {string} name + * @memberof google.container.v1.GetServerConfigRequest + * @instance + */ + GetServerConfigRequest.prototype.name = ""; + + /** + * Creates a new GetServerConfigRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.GetServerConfigRequest + * @static + * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set + * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest instance + */ + GetServerConfigRequest.create = function create(properties) { + return new GetServerConfigRequest(properties); + }; + + /** + * Encodes the specified GetServerConfigRequest message. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GetServerConfigRequest + * @static + * @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 + */ + GetServerConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetServerConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GetServerConfigRequest + * @static + * @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 + */ + GetServerConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetServerConfigRequest message from the specified reader or buffer. + * @function decode + * @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.GetServerConfigRequest} GetServerConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + 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.GetServerConfigRequest(); + 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 4: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetServerConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GetServerConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + GetServerConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetServerConfigRequest message. + * @function verify + * @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 + */ + GetServerConfigRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetServerConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GetServerConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest + */ + GetServerConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetServerConfigRequest) + return object; + 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.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetServerConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GetServerConfigRequest + * @static + * @param {google.container.v1.GetServerConfigRequest} message GetServerConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetServerConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetServerConfigRequest to JSON. + * @function toJSON + * @memberof google.container.v1.GetServerConfigRequest + * @instance + * @returns {Object.} JSON object + */ + GetServerConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetServerConfigRequest; + })(); + + v1.ServerConfig = (function() { + + /** + * Properties of a ServerConfig. + * @memberof google.container.v1 + * @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 + */ + + /** + * Constructs a new ServerConfig. + * @memberof google.container.v1 + * @classdesc Represents a ServerConfig. + * @implements IServerConfig + * @constructor + * @param {google.container.v1.IServerConfig=} [properties] Properties to set + */ + function ServerConfig(properties) { + this.validNodeVersions = []; + this.validImageTypes = []; + this.validMasterVersions = []; + 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]]; + } + + /** + * ServerConfig defaultClusterVersion. + * @member {string} defaultClusterVersion + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.defaultClusterVersion = ""; + + /** + * ServerConfig validNodeVersions. + * @member {Array.} validNodeVersions + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.validNodeVersions = $util.emptyArray; + + /** + * ServerConfig defaultImageType. + * @member {string} defaultImageType + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.defaultImageType = ""; + + /** + * ServerConfig validImageTypes. + * @member {Array.} validImageTypes + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.validImageTypes = $util.emptyArray; + + /** + * ServerConfig validMasterVersions. + * @member {Array.} validMasterVersions + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.validMasterVersions = $util.emptyArray; + + /** + * Creates a new ServerConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ServerConfig + * @static + * @param {google.container.v1.IServerConfig=} [properties] Properties to set + * @returns {google.container.v1.ServerConfig} ServerConfig instance + */ + ServerConfig.create = function create(properties) { + return new ServerConfig(properties); + }; + + /** + * Encodes the specified ServerConfig message. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ServerConfig + * @static + * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServerConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultClusterVersion); + if (message.validNodeVersions != null && message.validNodeVersions.length) + for (var i = 0; i < message.validNodeVersions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.validNodeVersions[i]); + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultImageType); + if (message.validImageTypes != null && message.validImageTypes.length) + for (var i = 0; i < message.validImageTypes.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.validImageTypes[i]); + if (message.validMasterVersions != null && message.validMasterVersions.length) + for (var i = 0; i < message.validMasterVersions.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.validMasterVersions[i]); + return writer; + }; + + /** + * Encodes the specified ServerConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ServerConfig + * @static + * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServerConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServerConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ServerConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ServerConfig} ServerConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServerConfig.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.ServerConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.defaultClusterVersion = reader.string(); + break; + case 3: + if (!(message.validNodeVersions && message.validNodeVersions.length)) + message.validNodeVersions = []; + message.validNodeVersions.push(reader.string()); + break; + case 4: + message.defaultImageType = reader.string(); + break; + case 5: + if (!(message.validImageTypes && message.validImageTypes.length)) + message.validImageTypes = []; + message.validImageTypes.push(reader.string()); + break; + case 6: + if (!(message.validMasterVersions && message.validMasterVersions.length)) + message.validMasterVersions = []; + message.validMasterVersions.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServerConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ServerConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ServerConfig} ServerConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServerConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServerConfig message. + * @function verify + * @memberof google.container.v1.ServerConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServerConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + if (!$util.isString(message.defaultClusterVersion)) + return "defaultClusterVersion: string expected"; + if (message.validNodeVersions != null && message.hasOwnProperty("validNodeVersions")) { + if (!Array.isArray(message.validNodeVersions)) + return "validNodeVersions: array expected"; + for (var i = 0; i < message.validNodeVersions.length; ++i) + if (!$util.isString(message.validNodeVersions[i])) + return "validNodeVersions: string[] expected"; + } + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + if (!$util.isString(message.defaultImageType)) + return "defaultImageType: string expected"; + if (message.validImageTypes != null && message.hasOwnProperty("validImageTypes")) { + if (!Array.isArray(message.validImageTypes)) + return "validImageTypes: array expected"; + for (var i = 0; i < message.validImageTypes.length; ++i) + if (!$util.isString(message.validImageTypes[i])) + return "validImageTypes: string[] expected"; + } + if (message.validMasterVersions != null && message.hasOwnProperty("validMasterVersions")) { + if (!Array.isArray(message.validMasterVersions)) + return "validMasterVersions: array expected"; + for (var i = 0; i < message.validMasterVersions.length; ++i) + if (!$util.isString(message.validMasterVersions[i])) + return "validMasterVersions: string[] expected"; + } + return null; + }; + + /** + * Creates a ServerConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ServerConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ServerConfig} ServerConfig + */ + ServerConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ServerConfig) + return object; + var message = new $root.google.container.v1.ServerConfig(); + if (object.defaultClusterVersion != null) + message.defaultClusterVersion = String(object.defaultClusterVersion); + if (object.validNodeVersions) { + if (!Array.isArray(object.validNodeVersions)) + throw TypeError(".google.container.v1.ServerConfig.validNodeVersions: array expected"); + message.validNodeVersions = []; + for (var i = 0; i < object.validNodeVersions.length; ++i) + message.validNodeVersions[i] = String(object.validNodeVersions[i]); + } + if (object.defaultImageType != null) + message.defaultImageType = String(object.defaultImageType); + if (object.validImageTypes) { + if (!Array.isArray(object.validImageTypes)) + throw TypeError(".google.container.v1.ServerConfig.validImageTypes: array expected"); + message.validImageTypes = []; + for (var i = 0; i < object.validImageTypes.length; ++i) + message.validImageTypes[i] = String(object.validImageTypes[i]); + } + if (object.validMasterVersions) { + if (!Array.isArray(object.validMasterVersions)) + throw TypeError(".google.container.v1.ServerConfig.validMasterVersions: array expected"); + message.validMasterVersions = []; + for (var i = 0; i < object.validMasterVersions.length; ++i) + message.validMasterVersions[i] = String(object.validMasterVersions[i]); + } + return message; + }; + + /** + * Creates a plain object from a ServerConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ServerConfig + * @static + * @param {google.container.v1.ServerConfig} message ServerConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServerConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.validNodeVersions = []; + object.validImageTypes = []; + object.validMasterVersions = []; + } + if (options.defaults) { + object.defaultClusterVersion = ""; + object.defaultImageType = ""; + } + if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + object.defaultClusterVersion = message.defaultClusterVersion; + if (message.validNodeVersions && message.validNodeVersions.length) { + object.validNodeVersions = []; + for (var j = 0; j < message.validNodeVersions.length; ++j) + object.validNodeVersions[j] = message.validNodeVersions[j]; + } + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + object.defaultImageType = message.defaultImageType; + if (message.validImageTypes && message.validImageTypes.length) { + object.validImageTypes = []; + for (var j = 0; j < message.validImageTypes.length; ++j) + object.validImageTypes[j] = message.validImageTypes[j]; + } + if (message.validMasterVersions && message.validMasterVersions.length) { + object.validMasterVersions = []; + for (var j = 0; j < message.validMasterVersions.length; ++j) + object.validMasterVersions[j] = message.validMasterVersions[j]; + } + return object; + }; + + /** + * Converts this ServerConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ServerConfig + * @instance + * @returns {Object.} JSON object + */ + ServerConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ServerConfig; + })(); + + v1.CreateNodePoolRequest = (function() { + + /** + * Properties of a CreateNodePoolRequest. + * @memberof google.container.v1 + * @interface ICreateNodePoolRequest + * @property {string|null} [projectId] CreateNodePoolRequest projectId + * @property {string|null} [zone] CreateNodePoolRequest zone + * @property {string|null} [clusterId] CreateNodePoolRequest clusterId + * @property {google.container.v1.INodePool|null} [nodePool] CreateNodePoolRequest nodePool + * @property {string|null} [parent] CreateNodePoolRequest parent + */ + + /** + * Constructs a new CreateNodePoolRequest. + * @memberof google.container.v1 + * @classdesc Represents a CreateNodePoolRequest. + * @implements ICreateNodePoolRequest + * @constructor + * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set + */ + function CreateNodePoolRequest(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]]; + } + + /** + * CreateNodePoolRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.projectId = ""; + + /** + * CreateNodePoolRequest zone. + * @member {string} zone + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.zone = ""; + + /** + * CreateNodePoolRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.clusterId = ""; + + /** + * CreateNodePoolRequest nodePool. + * @member {google.container.v1.INodePool|null|undefined} nodePool + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.nodePool = null; + + /** + * CreateNodePoolRequest parent. + * @member {string} parent + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.parent = ""; + + /** + * Creates a new CreateNodePoolRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.CreateNodePoolRequest + * @static + * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest instance + */ + CreateNodePoolRequest.create = function create(properties) { + return new CreateNodePoolRequest(properties); + }; + + /** + * Encodes the specified CreateNodePoolRequest message. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.CreateNodePoolRequest + * @static + * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateNodePoolRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePool != null && message.hasOwnProperty("nodePool")) + $root.google.container.v1.NodePool.encode(message.nodePool, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parent != null && message.hasOwnProperty("parent")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.parent); + return writer; + }; + + /** + * Encodes the specified CreateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.CreateNodePoolRequest + * @static + * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateNodePoolRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.CreateNodePoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateNodePoolRequest.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.CreateNodePoolRequest(); + 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.nodePool = $root.google.container.v1.NodePool.decode(reader, reader.uint32()); + break; + case 6: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CreateNodePoolRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.CreateNodePoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateNodePoolRequest message. + * @function verify + * @memberof google.container.v1.CreateNodePoolRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateNodePoolRequest.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.nodePool != null && message.hasOwnProperty("nodePool")) { + var error = $root.google.container.v1.NodePool.verify(message.nodePool); + if (error) + return "nodePool." + error; + } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a CreateNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.CreateNodePoolRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + */ + CreateNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CreateNodePoolRequest) + return object; + var message = new $root.google.container.v1.CreateNodePoolRequest(); + 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.nodePool != null) { + if (typeof object.nodePool !== "object") + throw TypeError(".google.container.v1.CreateNodePoolRequest.nodePool: object expected"); + message.nodePool = $root.google.container.v1.NodePool.fromObject(object.nodePool); + } + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a CreateNodePoolRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.CreateNodePoolRequest + * @static + * @param {google.container.v1.CreateNodePoolRequest} message CreateNodePoolRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateNodePoolRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePool = 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.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePool != null && message.hasOwnProperty("nodePool")) + object.nodePool = $root.google.container.v1.NodePool.toObject(message.nodePool, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this CreateNodePoolRequest to JSON. + * @function toJSON + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + * @returns {Object.} JSON object + */ + CreateNodePoolRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CreateNodePoolRequest; + })(); + + v1.DeleteNodePoolRequest = (function() { + + /** + * Properties of a DeleteNodePoolRequest. + * @memberof google.container.v1 + * @interface IDeleteNodePoolRequest + * @property {string|null} [projectId] DeleteNodePoolRequest projectId + * @property {string|null} [zone] DeleteNodePoolRequest zone + * @property {string|null} [clusterId] DeleteNodePoolRequest clusterId + * @property {string|null} [nodePoolId] DeleteNodePoolRequest nodePoolId + * @property {string|null} [name] DeleteNodePoolRequest name + */ + + /** + * Constructs a new DeleteNodePoolRequest. + * @memberof google.container.v1 + * @classdesc Represents a DeleteNodePoolRequest. + * @implements IDeleteNodePoolRequest + * @constructor + * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set + */ + function DeleteNodePoolRequest(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]]; + } + + /** + * DeleteNodePoolRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.DeleteNodePoolRequest + * @instance + */ + DeleteNodePoolRequest.prototype.projectId = ""; + + /** + * DeleteNodePoolRequest zone. + * @member {string} zone + * @memberof google.container.v1.DeleteNodePoolRequest + * @instance + */ + DeleteNodePoolRequest.prototype.zone = ""; + + /** + * DeleteNodePoolRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.DeleteNodePoolRequest + * @instance + */ + DeleteNodePoolRequest.prototype.clusterId = ""; + + /** + * DeleteNodePoolRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.DeleteNodePoolRequest + * @instance + */ + DeleteNodePoolRequest.prototype.nodePoolId = ""; + + /** + * DeleteNodePoolRequest name. + * @member {string} name + * @memberof google.container.v1.DeleteNodePoolRequest + * @instance + */ + DeleteNodePoolRequest.prototype.name = ""; + + /** + * Creates a new DeleteNodePoolRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.DeleteNodePoolRequest + * @static + * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest instance + */ + DeleteNodePoolRequest.create = function create(properties) { + return new DeleteNodePoolRequest(properties); + }; + + /** + * Encodes the specified DeleteNodePoolRequest message. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.DeleteNodePoolRequest + * @static + * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteNodePoolRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.DeleteNodePoolRequest + * @static + * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteNodePoolRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.DeleteNodePoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteNodePoolRequest.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.DeleteNodePoolRequest(); + 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 6: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteNodePoolRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.DeleteNodePoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteNodePoolRequest message. + * @function verify + * @memberof google.container.v1.DeleteNodePoolRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteNodePoolRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.DeleteNodePoolRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + */ + DeleteNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DeleteNodePoolRequest) + return object; + var message = new $root.google.container.v1.DeleteNodePoolRequest(); + 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.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteNodePoolRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.DeleteNodePoolRequest + * @static + * @param {google.container.v1.DeleteNodePoolRequest} message DeleteNodePoolRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteNodePoolRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteNodePoolRequest to JSON. + * @function toJSON + * @memberof google.container.v1.DeleteNodePoolRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteNodePoolRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteNodePoolRequest; + })(); + + v1.ListNodePoolsRequest = (function() { + + /** + * Properties of a ListNodePoolsRequest. + * @memberof google.container.v1 + * @interface IListNodePoolsRequest + * @property {string|null} [projectId] ListNodePoolsRequest projectId + * @property {string|null} [zone] ListNodePoolsRequest zone + * @property {string|null} [clusterId] ListNodePoolsRequest clusterId + * @property {string|null} [parent] ListNodePoolsRequest parent + */ + + /** + * Constructs a new ListNodePoolsRequest. + * @memberof google.container.v1 + * @classdesc Represents a ListNodePoolsRequest. + * @implements IListNodePoolsRequest + * @constructor + * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set + */ + function ListNodePoolsRequest(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]]; + } + + /** + * ListNodePoolsRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.ListNodePoolsRequest + * @instance + */ + ListNodePoolsRequest.prototype.projectId = ""; + + /** + * ListNodePoolsRequest zone. + * @member {string} zone + * @memberof google.container.v1.ListNodePoolsRequest + * @instance + */ + ListNodePoolsRequest.prototype.zone = ""; + + /** + * ListNodePoolsRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.ListNodePoolsRequest + * @instance + */ + ListNodePoolsRequest.prototype.clusterId = ""; + + /** + * ListNodePoolsRequest parent. + * @member {string} parent + * @memberof google.container.v1.ListNodePoolsRequest + * @instance + */ + ListNodePoolsRequest.prototype.parent = ""; + + /** + * Creates a new ListNodePoolsRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.ListNodePoolsRequest + * @static + * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest instance + */ + ListNodePoolsRequest.create = function create(properties) { + return new ListNodePoolsRequest(properties); + }; + + /** + * Encodes the specified ListNodePoolsRequest message. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ListNodePoolsRequest + * @static + * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNodePoolsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.parent != null && message.hasOwnProperty("parent")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); + return writer; + }; + + /** + * Encodes the specified ListNodePoolsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ListNodePoolsRequest + * @static + * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNodePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListNodePoolsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ListNodePoolsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNodePoolsRequest.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.ListNodePoolsRequest(); + 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.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListNodePoolsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ListNodePoolsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNodePoolsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListNodePoolsRequest message. + * @function verify + * @memberof google.container.v1.ListNodePoolsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListNodePoolsRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a ListNodePoolsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ListNodePoolsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + */ + ListNodePoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListNodePoolsRequest) + return object; + var message = new $root.google.container.v1.ListNodePoolsRequest(); + 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.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a ListNodePoolsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ListNodePoolsRequest + * @static + * @param {google.container.v1.ListNodePoolsRequest} message ListNodePoolsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListNodePoolsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + 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.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this ListNodePoolsRequest to JSON. + * @function toJSON + * @memberof google.container.v1.ListNodePoolsRequest + * @instance + * @returns {Object.} JSON object + */ + ListNodePoolsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListNodePoolsRequest; + })(); + + v1.GetNodePoolRequest = (function() { + + /** + * Properties of a GetNodePoolRequest. + * @memberof google.container.v1 + * @interface IGetNodePoolRequest + * @property {string|null} [projectId] GetNodePoolRequest projectId + * @property {string|null} [zone] GetNodePoolRequest zone + * @property {string|null} [clusterId] GetNodePoolRequest clusterId + * @property {string|null} [nodePoolId] GetNodePoolRequest nodePoolId + * @property {string|null} [name] GetNodePoolRequest name + */ + + /** + * Constructs a new GetNodePoolRequest. + * @memberof google.container.v1 + * @classdesc Represents a GetNodePoolRequest. + * @implements IGetNodePoolRequest + * @constructor + * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set + */ + function GetNodePoolRequest(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]]; + } + + /** + * GetNodePoolRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.GetNodePoolRequest + * @instance + */ + GetNodePoolRequest.prototype.projectId = ""; + + /** + * GetNodePoolRequest zone. + * @member {string} zone + * @memberof google.container.v1.GetNodePoolRequest + * @instance + */ + GetNodePoolRequest.prototype.zone = ""; + + /** + * GetNodePoolRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.GetNodePoolRequest + * @instance + */ + GetNodePoolRequest.prototype.clusterId = ""; + + /** + * GetNodePoolRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.GetNodePoolRequest + * @instance + */ + GetNodePoolRequest.prototype.nodePoolId = ""; + + /** + * GetNodePoolRequest name. + * @member {string} name + * @memberof google.container.v1.GetNodePoolRequest + * @instance + */ + GetNodePoolRequest.prototype.name = ""; + + /** + * Creates a new GetNodePoolRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.GetNodePoolRequest + * @static + * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest instance + */ + GetNodePoolRequest.create = function create(properties) { + return new GetNodePoolRequest(properties); + }; + + /** + * Encodes the specified GetNodePoolRequest message. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GetNodePoolRequest + * @static + * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetNodePoolRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GetNodePoolRequest + * @static + * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetNodePoolRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.GetNodePoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetNodePoolRequest.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.GetNodePoolRequest(); + 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 6: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetNodePoolRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GetNodePoolRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetNodePoolRequest message. + * @function verify + * @memberof google.container.v1.GetNodePoolRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetNodePoolRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GetNodePoolRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + */ + GetNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetNodePoolRequest) + return object; + var message = new $root.google.container.v1.GetNodePoolRequest(); + 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.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetNodePoolRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GetNodePoolRequest + * @static + * @param {google.container.v1.GetNodePoolRequest} message GetNodePoolRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetNodePoolRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetNodePoolRequest to JSON. + * @function toJSON + * @memberof google.container.v1.GetNodePoolRequest + * @instance + * @returns {Object.} JSON object + */ + GetNodePoolRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetNodePoolRequest; + })(); + + v1.NodePool = (function() { + + /** + * Properties of a NodePool. + * @memberof google.container.v1 + * @interface INodePool + * @property {string|null} [name] NodePool name + * @property {google.container.v1.INodeConfig|null} [config] NodePool config + * @property {number|null} [initialNodeCount] NodePool initialNodeCount + * @property {string|null} [selfLink] NodePool selfLink + * @property {string|null} [version] NodePool version + * @property {Array.|null} [instanceGroupUrls] NodePool instanceGroupUrls + * @property {google.container.v1.NodePool.Status|null} [status] NodePool status + * @property {string|null} [statusMessage] NodePool statusMessage + * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] NodePool autoscaling + * @property {google.container.v1.INodeManagement|null} [management] NodePool management + */ + + /** + * Constructs a new NodePool. + * @memberof google.container.v1 + * @classdesc Represents a NodePool. + * @implements INodePool + * @constructor + * @param {google.container.v1.INodePool=} [properties] Properties to set + */ + function NodePool(properties) { + this.instanceGroupUrls = []; + 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]]; + } + + /** + * NodePool name. + * @member {string} name + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.name = ""; + + /** + * NodePool config. + * @member {google.container.v1.INodeConfig|null|undefined} config + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.config = null; + + /** + * NodePool initialNodeCount. + * @member {number} initialNodeCount + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.initialNodeCount = 0; + + /** + * NodePool selfLink. + * @member {string} selfLink + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.selfLink = ""; + + /** + * NodePool version. + * @member {string} version + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.version = ""; + + /** + * NodePool instanceGroupUrls. + * @member {Array.} instanceGroupUrls + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.instanceGroupUrls = $util.emptyArray; + + /** + * NodePool status. + * @member {google.container.v1.NodePool.Status} status + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.status = 0; + + /** + * NodePool statusMessage. + * @member {string} statusMessage + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.statusMessage = ""; + + /** + * NodePool autoscaling. + * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.autoscaling = null; + + /** + * NodePool management. + * @member {google.container.v1.INodeManagement|null|undefined} management + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.management = null; + + /** + * Creates a new NodePool instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePool + * @static + * @param {google.container.v1.INodePool=} [properties] Properties to set + * @returns {google.container.v1.NodePool} NodePool instance + */ + NodePool.create = function create(properties) { + return new NodePool(properties); + }; + + /** + * Encodes the specified NodePool message. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePool + * @static + * @param {google.container.v1.INodePool} message NodePool message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePool.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.config != null && message.hasOwnProperty("config")) + $root.google.container.v1.NodeConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.management != null && message.hasOwnProperty("management")) + $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.version); + if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) + for (var i = 0; i < message.instanceGroupUrls.length; ++i) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.instanceGroupUrls[i]); + if (message.status != null && message.hasOwnProperty("status")) + writer.uint32(/* id 103, wireType 0 =*/824).int32(message.status); + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + writer.uint32(/* id 104, wireType 2 =*/834).string(message.statusMessage); + return writer; + }; + + /** + * Encodes the specified NodePool message, length delimited. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePool + * @static + * @param {google.container.v1.INodePool} message NodePool message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePool.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodePool message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePool + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePool} NodePool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePool.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.NodePool(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.config = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); + break; + case 3: + message.initialNodeCount = reader.int32(); + break; + case 100: + message.selfLink = reader.string(); + break; + case 101: + message.version = reader.string(); + break; + case 102: + if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) + message.instanceGroupUrls = []; + message.instanceGroupUrls.push(reader.string()); + break; + case 103: + message.status = reader.int32(); + break; + case 104: + message.statusMessage = reader.string(); + break; + case 4: + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); + break; + case 5: + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodePool message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePool + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePool} NodePool + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePool.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodePool message. + * @function verify + * @memberof google.container.v1.NodePool + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodePool.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.config != null && message.hasOwnProperty("config")) { + var error = $root.google.container.v1.NodeConfig.verify(message.config); + if (error) + return "config." + error; + } + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + if (!$util.isInteger(message.initialNodeCount)) + return "initialNodeCount: integer expected"; + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: 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.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.autoscaling != null && message.hasOwnProperty("autoscaling")) { + var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling); + if (error) + return "autoscaling." + error; + } + if (message.management != null && message.hasOwnProperty("management")) { + var error = $root.google.container.v1.NodeManagement.verify(message.management); + if (error) + return "management." + error; + } + return null; + }; + + /** + * Creates a NodePool message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePool + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePool} NodePool + */ + NodePool.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePool) + return object; + var message = new $root.google.container.v1.NodePool(); + if (object.name != null) + message.name = String(object.name); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.container.v1.NodePool.config: object expected"); + message.config = $root.google.container.v1.NodeConfig.fromObject(object.config); + } + if (object.initialNodeCount != null) + message.initialNodeCount = object.initialNodeCount | 0; + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.version != null) + message.version = String(object.version); + if (object.instanceGroupUrls) { + if (!Array.isArray(object.instanceGroupUrls)) + throw TypeError(".google.container.v1.NodePool.instanceGroupUrls: array expected"); + message.instanceGroupUrls = []; + for (var i = 0; i < object.instanceGroupUrls.length; ++i) + message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]); + } + 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 "RUNNING_WITH_ERROR": + case 3: + message.status = 3; + break; + case "RECONCILING": + case 4: + message.status = 4; + break; + case "STOPPING": + case 5: + message.status = 5; + break; + case "ERROR": + case 6: + message.status = 6; + break; + } + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.autoscaling != null) { + if (typeof object.autoscaling !== "object") + throw TypeError(".google.container.v1.NodePool.autoscaling: object expected"); + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling); + } + if (object.management != null) { + if (typeof object.management !== "object") + throw TypeError(".google.container.v1.NodePool.management: object expected"); + message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); + } + return message; + }; + + /** + * Creates a plain object from a NodePool message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePool + * @static + * @param {google.container.v1.NodePool} message NodePool + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodePool.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.instanceGroupUrls = []; + if (options.defaults) { + object.name = ""; + object.config = null; + object.initialNodeCount = 0; + object.autoscaling = null; + object.management = null; + object.selfLink = ""; + object.version = ""; + object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; + object.statusMessage = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.container.v1.NodeConfig.toObject(message.config, options); + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + object.initialNodeCount = message.initialNodeCount; + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options); + if (message.management != null && message.hasOwnProperty("management")) + object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + object.selfLink = message.selfLink; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + 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.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.google.container.v1.NodePool.Status[message.status] : message.status; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + return object; + }; + + /** + * Converts this NodePool to JSON. + * @function toJSON + * @memberof google.container.v1.NodePool + * @instance + * @returns {Object.} JSON object + */ + NodePool.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Status enum. + * @name google.container.v1.NodePool.Status + * @enum {string} + * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value + * @property {number} PROVISIONING=1 PROVISIONING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} RUNNING_WITH_ERROR=3 RUNNING_WITH_ERROR value + * @property {number} RECONCILING=4 RECONCILING value + * @property {number} STOPPING=5 STOPPING value + * @property {number} ERROR=6 ERROR value + */ + NodePool.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] = "RUNNING_WITH_ERROR"] = 3; + values[valuesById[4] = "RECONCILING"] = 4; + values[valuesById[5] = "STOPPING"] = 5; + values[valuesById[6] = "ERROR"] = 6; + return values; + })(); + + return NodePool; + })(); + + v1.NodeManagement = (function() { + + /** + * Properties of a NodeManagement. + * @memberof google.container.v1 + * @interface INodeManagement + * @property {boolean|null} [autoUpgrade] NodeManagement autoUpgrade + * @property {boolean|null} [autoRepair] NodeManagement autoRepair + * @property {google.container.v1.IAutoUpgradeOptions|null} [upgradeOptions] NodeManagement upgradeOptions + */ + + /** + * Constructs a new NodeManagement. + * @memberof google.container.v1 + * @classdesc Represents a NodeManagement. + * @implements INodeManagement + * @constructor + * @param {google.container.v1.INodeManagement=} [properties] Properties to set + */ + function NodeManagement(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]]; + } + + /** + * NodeManagement autoUpgrade. + * @member {boolean} autoUpgrade + * @memberof google.container.v1.NodeManagement + * @instance + */ + NodeManagement.prototype.autoUpgrade = false; + + /** + * NodeManagement autoRepair. + * @member {boolean} autoRepair + * @memberof google.container.v1.NodeManagement + * @instance + */ + NodeManagement.prototype.autoRepair = false; + + /** + * NodeManagement upgradeOptions. + * @member {google.container.v1.IAutoUpgradeOptions|null|undefined} upgradeOptions + * @memberof google.container.v1.NodeManagement + * @instance + */ + NodeManagement.prototype.upgradeOptions = null; + + /** + * Creates a new NodeManagement instance using the specified properties. + * @function create + * @memberof google.container.v1.NodeManagement + * @static + * @param {google.container.v1.INodeManagement=} [properties] Properties to set + * @returns {google.container.v1.NodeManagement} NodeManagement instance + */ + NodeManagement.create = function create(properties) { + return new NodeManagement(properties); + }; + + /** + * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodeManagement + * @static + * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeManagement.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.autoUpgrade); + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autoRepair); + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) + $root.google.container.v1.AutoUpgradeOptions.encode(message.upgradeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodeManagement + * @static + * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeManagement.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeManagement message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodeManagement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodeManagement} NodeManagement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeManagement.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.NodeManagement(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.autoUpgrade = reader.bool(); + break; + case 2: + message.autoRepair = reader.bool(); + break; + case 10: + message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeManagement message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodeManagement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodeManagement} NodeManagement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeManagement.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeManagement message. + * @function verify + * @memberof google.container.v1.NodeManagement + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeManagement.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + if (typeof message.autoUpgrade !== "boolean") + return "autoUpgrade: boolean expected"; + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + if (typeof message.autoRepair !== "boolean") + return "autoRepair: boolean expected"; + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) { + var error = $root.google.container.v1.AutoUpgradeOptions.verify(message.upgradeOptions); + if (error) + return "upgradeOptions." + error; + } + return null; + }; + + /** + * Creates a NodeManagement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodeManagement + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodeManagement} NodeManagement + */ + NodeManagement.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeManagement) + return object; + var message = new $root.google.container.v1.NodeManagement(); + if (object.autoUpgrade != null) + message.autoUpgrade = Boolean(object.autoUpgrade); + if (object.autoRepair != null) + message.autoRepair = Boolean(object.autoRepair); + if (object.upgradeOptions != null) { + if (typeof object.upgradeOptions !== "object") + throw TypeError(".google.container.v1.NodeManagement.upgradeOptions: object expected"); + message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.fromObject(object.upgradeOptions); + } + return message; + }; + + /** + * Creates a plain object from a NodeManagement message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodeManagement + * @static + * @param {google.container.v1.NodeManagement} message NodeManagement + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeManagement.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.autoUpgrade = false; + object.autoRepair = false; + object.upgradeOptions = null; + } + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + object.autoUpgrade = message.autoUpgrade; + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + object.autoRepair = message.autoRepair; + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) + object.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.toObject(message.upgradeOptions, options); + return object; + }; + + /** + * Converts this NodeManagement to JSON. + * @function toJSON + * @memberof google.container.v1.NodeManagement + * @instance + * @returns {Object.} JSON object + */ + NodeManagement.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NodeManagement; + })(); + + v1.AutoUpgradeOptions = (function() { + + /** + * Properties of an AutoUpgradeOptions. + * @memberof google.container.v1 + * @interface IAutoUpgradeOptions + * @property {string|null} [autoUpgradeStartTime] AutoUpgradeOptions autoUpgradeStartTime + * @property {string|null} [description] AutoUpgradeOptions description + */ + + /** + * Constructs a new AutoUpgradeOptions. + * @memberof google.container.v1 + * @classdesc Represents an AutoUpgradeOptions. + * @implements IAutoUpgradeOptions + * @constructor + * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set + */ + function AutoUpgradeOptions(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]]; + } + + /** + * AutoUpgradeOptions autoUpgradeStartTime. + * @member {string} autoUpgradeStartTime + * @memberof google.container.v1.AutoUpgradeOptions + * @instance + */ + AutoUpgradeOptions.prototype.autoUpgradeStartTime = ""; + + /** + * AutoUpgradeOptions description. + * @member {string} description + * @memberof google.container.v1.AutoUpgradeOptions + * @instance + */ + AutoUpgradeOptions.prototype.description = ""; + + /** + * Creates a new AutoUpgradeOptions instance using the specified properties. + * @function create + * @memberof google.container.v1.AutoUpgradeOptions + * @static + * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions instance + */ + AutoUpgradeOptions.create = function create(properties) { + return new AutoUpgradeOptions(properties); + }; + + /** + * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. + * @function encode + * @memberof google.container.v1.AutoUpgradeOptions + * @static + * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoUpgradeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoUpgradeStartTime); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + return writer; + }; + + /** + * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.AutoUpgradeOptions + * @static + * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AutoUpgradeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AutoUpgradeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.AutoUpgradeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoUpgradeOptions.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.AutoUpgradeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.autoUpgradeStartTime = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.AutoUpgradeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AutoUpgradeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AutoUpgradeOptions message. + * @function verify + * @memberof google.container.v1.AutoUpgradeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AutoUpgradeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + if (!$util.isString(message.autoUpgradeStartTime)) + return "autoUpgradeStartTime: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + return null; + }; + + /** + * Creates an AutoUpgradeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.AutoUpgradeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + */ + AutoUpgradeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AutoUpgradeOptions) + return object; + var message = new $root.google.container.v1.AutoUpgradeOptions(); + if (object.autoUpgradeStartTime != null) + message.autoUpgradeStartTime = String(object.autoUpgradeStartTime); + if (object.description != null) + message.description = String(object.description); + return message; + }; + + /** + * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.AutoUpgradeOptions + * @static + * @param {google.container.v1.AutoUpgradeOptions} message AutoUpgradeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AutoUpgradeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.autoUpgradeStartTime = ""; + object.description = ""; + } + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + object.autoUpgradeStartTime = message.autoUpgradeStartTime; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + return object; + }; + + /** + * Converts this AutoUpgradeOptions to JSON. + * @function toJSON + * @memberof google.container.v1.AutoUpgradeOptions + * @instance + * @returns {Object.} JSON object + */ + AutoUpgradeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AutoUpgradeOptions; + })(); + + v1.MaintenancePolicy = (function() { + + /** + * Properties of a MaintenancePolicy. + * @memberof google.container.v1 + * @interface IMaintenancePolicy + * @property {google.container.v1.IMaintenanceWindow|null} [window] MaintenancePolicy window + */ + + /** + * Constructs a new MaintenancePolicy. + * @memberof google.container.v1 + * @classdesc Represents a MaintenancePolicy. + * @implements IMaintenancePolicy + * @constructor + * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set + */ + function MaintenancePolicy(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]]; + } + + /** + * MaintenancePolicy window. + * @member {google.container.v1.IMaintenanceWindow|null|undefined} window + * @memberof google.container.v1.MaintenancePolicy + * @instance + */ + MaintenancePolicy.prototype.window = null; + + /** + * Creates a new MaintenancePolicy instance using the specified properties. + * @function create + * @memberof google.container.v1.MaintenancePolicy + * @static + * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy instance + */ + MaintenancePolicy.create = function create(properties) { + return new MaintenancePolicy(properties); + }; + + /** + * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MaintenancePolicy + * @static + * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaintenancePolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.window != null && message.hasOwnProperty("window")) + $root.google.container.v1.MaintenanceWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MaintenancePolicy + * @static + * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaintenancePolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MaintenancePolicy message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.MaintenancePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaintenancePolicy.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.MaintenancePolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.window = $root.google.container.v1.MaintenanceWindow.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MaintenancePolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaintenancePolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MaintenancePolicy message. + * @function verify + * @memberof google.container.v1.MaintenancePolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MaintenancePolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.window != null && message.hasOwnProperty("window")) { + var error = $root.google.container.v1.MaintenanceWindow.verify(message.window); + if (error) + return "window." + error; + } + return null; + }; + + /** + * Creates a MaintenancePolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.MaintenancePolicy + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + */ + MaintenancePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaintenancePolicy) + return object; + var message = new $root.google.container.v1.MaintenancePolicy(); + if (object.window != null) { + if (typeof object.window !== "object") + throw TypeError(".google.container.v1.MaintenancePolicy.window: object expected"); + message.window = $root.google.container.v1.MaintenanceWindow.fromObject(object.window); + } + return message; + }; + + /** + * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MaintenancePolicy + * @static + * @param {google.container.v1.MaintenancePolicy} message MaintenancePolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MaintenancePolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.window = null; + if (message.window != null && message.hasOwnProperty("window")) + object.window = $root.google.container.v1.MaintenanceWindow.toObject(message.window, options); + return object; + }; + + /** + * Converts this MaintenancePolicy to JSON. + * @function toJSON + * @memberof google.container.v1.MaintenancePolicy + * @instance + * @returns {Object.} JSON object + */ + MaintenancePolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MaintenancePolicy; + })(); + + v1.MaintenanceWindow = (function() { + + /** + * Properties of a MaintenanceWindow. + * @memberof google.container.v1 + * @interface IMaintenanceWindow + * @property {google.container.v1.IDailyMaintenanceWindow|null} [dailyMaintenanceWindow] MaintenanceWindow dailyMaintenanceWindow + */ + + /** + * Constructs a new MaintenanceWindow. + * @memberof google.container.v1 + * @classdesc Represents a MaintenanceWindow. + * @implements IMaintenanceWindow + * @constructor + * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set + */ + function MaintenanceWindow(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]]; + } + + /** + * MaintenanceWindow dailyMaintenanceWindow. + * @member {google.container.v1.IDailyMaintenanceWindow|null|undefined} dailyMaintenanceWindow + * @memberof google.container.v1.MaintenanceWindow + * @instance + */ + MaintenanceWindow.prototype.dailyMaintenanceWindow = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MaintenanceWindow policy. + * @member {"dailyMaintenanceWindow"|undefined} policy + * @memberof google.container.v1.MaintenanceWindow + * @instance + */ + Object.defineProperty(MaintenanceWindow.prototype, "policy", { + get: $util.oneOfGetter($oneOfFields = ["dailyMaintenanceWindow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MaintenanceWindow instance using the specified properties. + * @function create + * @memberof google.container.v1.MaintenanceWindow + * @static + * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow instance + */ + MaintenanceWindow.create = function create(properties) { + return new MaintenanceWindow(properties); + }; + + /** + * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MaintenanceWindow + * @static + * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaintenanceWindow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) + $root.google.container.v1.DailyMaintenanceWindow.encode(message.dailyMaintenanceWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MaintenanceWindow + * @static + * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MaintenanceWindow message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.MaintenanceWindow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaintenanceWindow.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.MaintenanceWindow(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MaintenanceWindow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MaintenanceWindow message. + * @function verify + * @memberof google.container.v1.MaintenanceWindow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MaintenanceWindow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { + properties.policy = 1; + { + var error = $root.google.container.v1.DailyMaintenanceWindow.verify(message.dailyMaintenanceWindow); + if (error) + return "dailyMaintenanceWindow." + error; + } + } + return null; + }; + + /** + * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.MaintenanceWindow + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + */ + MaintenanceWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaintenanceWindow) + return object; + var message = new $root.google.container.v1.MaintenanceWindow(); + if (object.dailyMaintenanceWindow != null) { + if (typeof object.dailyMaintenanceWindow !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.dailyMaintenanceWindow: object expected"); + message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.fromObject(object.dailyMaintenanceWindow); + } + return message; + }; + + /** + * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MaintenanceWindow + * @static + * @param {google.container.v1.MaintenanceWindow} message MaintenanceWindow + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MaintenanceWindow.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { + object.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.toObject(message.dailyMaintenanceWindow, options); + if (options.oneofs) + object.policy = "dailyMaintenanceWindow"; + } + return object; + }; + + /** + * Converts this MaintenanceWindow to JSON. + * @function toJSON + * @memberof google.container.v1.MaintenanceWindow + * @instance + * @returns {Object.} JSON object + */ + MaintenanceWindow.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MaintenanceWindow; + })(); + + v1.DailyMaintenanceWindow = (function() { + + /** + * Properties of a DailyMaintenanceWindow. + * @memberof google.container.v1 + * @interface IDailyMaintenanceWindow + * @property {string|null} [startTime] DailyMaintenanceWindow startTime + * @property {string|null} [duration] DailyMaintenanceWindow duration + */ + + /** + * Constructs a new DailyMaintenanceWindow. + * @memberof google.container.v1 + * @classdesc Represents a DailyMaintenanceWindow. + * @implements IDailyMaintenanceWindow + * @constructor + * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set + */ + function DailyMaintenanceWindow(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]]; + } + + /** + * DailyMaintenanceWindow startTime. + * @member {string} startTime + * @memberof google.container.v1.DailyMaintenanceWindow + * @instance + */ + DailyMaintenanceWindow.prototype.startTime = ""; + + /** + * DailyMaintenanceWindow duration. + * @member {string} duration + * @memberof google.container.v1.DailyMaintenanceWindow + * @instance + */ + DailyMaintenanceWindow.prototype.duration = ""; + + /** + * Creates a new DailyMaintenanceWindow instance using the specified properties. + * @function create + * @memberof google.container.v1.DailyMaintenanceWindow + * @static + * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow instance + */ + DailyMaintenanceWindow.create = function create(properties) { + return new DailyMaintenanceWindow(properties); + }; + + /** + * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. + * @function encode + * @memberof google.container.v1.DailyMaintenanceWindow + * @static + * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DailyMaintenanceWindow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.startTime != null && message.hasOwnProperty("startTime")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.startTime); + if (message.duration != null && message.hasOwnProperty("duration")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.duration); + return writer; + }; + + /** + * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.DailyMaintenanceWindow + * @static + * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DailyMaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DailyMaintenanceWindow message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.DailyMaintenanceWindow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DailyMaintenanceWindow.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.DailyMaintenanceWindow(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.startTime = reader.string(); + break; + case 3: + message.duration = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.DailyMaintenanceWindow + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DailyMaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DailyMaintenanceWindow message. + * @function verify + * @memberof google.container.v1.DailyMaintenanceWindow + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DailyMaintenanceWindow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) + if (!$util.isString(message.startTime)) + return "startTime: string expected"; + if (message.duration != null && message.hasOwnProperty("duration")) + if (!$util.isString(message.duration)) + return "duration: string expected"; + return null; + }; + + /** + * Creates a DailyMaintenanceWindow message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.DailyMaintenanceWindow + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + */ + DailyMaintenanceWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DailyMaintenanceWindow) + return object; + var message = new $root.google.container.v1.DailyMaintenanceWindow(); + if (object.startTime != null) + message.startTime = String(object.startTime); + if (object.duration != null) + message.duration = String(object.duration); + return message; + }; + + /** + * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.DailyMaintenanceWindow + * @static + * @param {google.container.v1.DailyMaintenanceWindow} message DailyMaintenanceWindow + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DailyMaintenanceWindow.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.startTime = ""; + object.duration = ""; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = message.startTime; + if (message.duration != null && message.hasOwnProperty("duration")) + object.duration = message.duration; + return object; + }; + + /** + * Converts this DailyMaintenanceWindow to JSON. + * @function toJSON + * @memberof google.container.v1.DailyMaintenanceWindow + * @instance + * @returns {Object.} JSON object + */ + DailyMaintenanceWindow.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DailyMaintenanceWindow; + })(); + + v1.SetNodePoolManagementRequest = (function() { + + /** + * Properties of a SetNodePoolManagementRequest. + * @memberof google.container.v1 + * @interface ISetNodePoolManagementRequest + * @property {string|null} [projectId] SetNodePoolManagementRequest projectId + * @property {string|null} [zone] SetNodePoolManagementRequest zone + * @property {string|null} [clusterId] SetNodePoolManagementRequest clusterId + * @property {string|null} [nodePoolId] SetNodePoolManagementRequest nodePoolId + * @property {google.container.v1.INodeManagement|null} [management] SetNodePoolManagementRequest management + * @property {string|null} [name] SetNodePoolManagementRequest name + */ + + /** + * Constructs a new SetNodePoolManagementRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetNodePoolManagementRequest. + * @implements ISetNodePoolManagementRequest + * @constructor + * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set + */ + function SetNodePoolManagementRequest(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]]; + } + + /** + * SetNodePoolManagementRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.projectId = ""; + + /** + * SetNodePoolManagementRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.zone = ""; + + /** + * SetNodePoolManagementRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.clusterId = ""; + + /** + * SetNodePoolManagementRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.nodePoolId = ""; + + /** + * SetNodePoolManagementRequest management. + * @member {google.container.v1.INodeManagement|null|undefined} management + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.management = null; + + /** + * SetNodePoolManagementRequest name. + * @member {string} name + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.name = ""; + + /** + * Creates a new SetNodePoolManagementRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetNodePoolManagementRequest + * @static + * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest instance + */ + SetNodePoolManagementRequest.create = function create(properties) { + return new SetNodePoolManagementRequest(properties); + }; + + /** + * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetNodePoolManagementRequest + * @static + * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetNodePoolManagementRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.management != null && message.hasOwnProperty("management")) + $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetNodePoolManagementRequest + * @static + * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetNodePoolManagementRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.SetNodePoolManagementRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetNodePoolManagementRequest.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.SetNodePoolManagementRequest(); + 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.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + case 7: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetNodePoolManagementRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetNodePoolManagementRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetNodePoolManagementRequest message. + * @function verify + * @memberof google.container.v1.SetNodePoolManagementRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetNodePoolManagementRequest.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.management != null && message.hasOwnProperty("management")) { + var error = $root.google.container.v1.NodeManagement.verify(message.management); + if (error) + return "management." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a SetNodePoolManagementRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetNodePoolManagementRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + */ + SetNodePoolManagementRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNodePoolManagementRequest) + return object; + var message = new $root.google.container.v1.SetNodePoolManagementRequest(); + 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.management != null) { + if (typeof object.management !== "object") + throw TypeError(".google.container.v1.SetNodePoolManagementRequest.management: object expected"); + message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); + } + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetNodePoolManagementRequest + * @static + * @param {google.container.v1.SetNodePoolManagementRequest} message SetNodePoolManagementRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetNodePoolManagementRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.management = 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.management != null && message.hasOwnProperty("management")) + object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this SetNodePoolManagementRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + * @returns {Object.} JSON object + */ + SetNodePoolManagementRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetNodePoolManagementRequest; + })(); + + v1.SetNodePoolSizeRequest = (function() { + + /** + * Properties of a SetNodePoolSizeRequest. + * @memberof google.container.v1 + * @interface ISetNodePoolSizeRequest + * @property {string|null} [projectId] SetNodePoolSizeRequest projectId + * @property {string|null} [zone] SetNodePoolSizeRequest zone + * @property {string|null} [clusterId] SetNodePoolSizeRequest clusterId + * @property {string|null} [nodePoolId] SetNodePoolSizeRequest nodePoolId + * @property {number|null} [nodeCount] SetNodePoolSizeRequest nodeCount + * @property {string|null} [name] SetNodePoolSizeRequest name + */ + + /** + * Constructs a new SetNodePoolSizeRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetNodePoolSizeRequest. + * @implements ISetNodePoolSizeRequest + * @constructor + * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + */ + function SetNodePoolSizeRequest(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]]; + } + + /** + * SetNodePoolSizeRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.projectId = ""; + + /** + * SetNodePoolSizeRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.zone = ""; + + /** + * SetNodePoolSizeRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.clusterId = ""; + + /** + * SetNodePoolSizeRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.nodePoolId = ""; + + /** + * SetNodePoolSizeRequest nodeCount. + * @member {number} nodeCount + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.nodeCount = 0; + + /** + * SetNodePoolSizeRequest name. + * @member {string} name + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.name = ""; + + /** + * Creates a new SetNodePoolSizeRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetNodePoolSizeRequest + * @static + * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest instance + */ + SetNodePoolSizeRequest.create = function create(properties) { + return new SetNodePoolSizeRequest(properties); + }; + + /** + * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetNodePoolSizeRequest + * @static + * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetNodePoolSizeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nodeCount); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetNodePoolSizeRequest + * @static + * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetNodePoolSizeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.SetNodePoolSizeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetNodePoolSizeRequest.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.SetNodePoolSizeRequest(); + 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.nodeCount = reader.int32(); + break; + case 7: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetNodePoolSizeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetNodePoolSizeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetNodePoolSizeRequest message. + * @function verify + * @memberof google.container.v1.SetNodePoolSizeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetNodePoolSizeRequest.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.nodeCount != null && message.hasOwnProperty("nodeCount")) + if (!$util.isInteger(message.nodeCount)) + return "nodeCount: integer expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a SetNodePoolSizeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetNodePoolSizeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + */ + SetNodePoolSizeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNodePoolSizeRequest) + return object; + var message = new $root.google.container.v1.SetNodePoolSizeRequest(); + 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.nodeCount != null) + message.nodeCount = object.nodeCount | 0; + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetNodePoolSizeRequest + * @static + * @param {google.container.v1.SetNodePoolSizeRequest} message SetNodePoolSizeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetNodePoolSizeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.nodeCount = 0; + 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.nodeCount != null && message.hasOwnProperty("nodeCount")) + object.nodeCount = message.nodeCount; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this SetNodePoolSizeRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + * @returns {Object.} JSON object + */ + SetNodePoolSizeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetNodePoolSizeRequest; + })(); + + v1.RollbackNodePoolUpgradeRequest = (function() { + + /** + * Properties of a RollbackNodePoolUpgradeRequest. + * @memberof google.container.v1 + * @interface IRollbackNodePoolUpgradeRequest + * @property {string|null} [projectId] RollbackNodePoolUpgradeRequest projectId + * @property {string|null} [zone] RollbackNodePoolUpgradeRequest zone + * @property {string|null} [clusterId] RollbackNodePoolUpgradeRequest clusterId + * @property {string|null} [nodePoolId] RollbackNodePoolUpgradeRequest nodePoolId + * @property {string|null} [name] RollbackNodePoolUpgradeRequest name + */ + + /** + * Constructs a new RollbackNodePoolUpgradeRequest. + * @memberof google.container.v1 + * @classdesc Represents a RollbackNodePoolUpgradeRequest. + * @implements IRollbackNodePoolUpgradeRequest + * @constructor + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set + */ + function RollbackNodePoolUpgradeRequest(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]]; + } + + /** + * RollbackNodePoolUpgradeRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance + */ + RollbackNodePoolUpgradeRequest.prototype.projectId = ""; + + /** + * RollbackNodePoolUpgradeRequest zone. + * @member {string} zone + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance + */ + RollbackNodePoolUpgradeRequest.prototype.zone = ""; + + /** + * RollbackNodePoolUpgradeRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance + */ + RollbackNodePoolUpgradeRequest.prototype.clusterId = ""; + + /** + * RollbackNodePoolUpgradeRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance + */ + RollbackNodePoolUpgradeRequest.prototype.nodePoolId = ""; + + /** + * RollbackNodePoolUpgradeRequest name. + * @member {string} name + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance + */ + RollbackNodePoolUpgradeRequest.prototype.name = ""; + + /** + * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @static + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest instance + */ + RollbackNodePoolUpgradeRequest.create = function create(properties) { + return new RollbackNodePoolUpgradeRequest(properties); + }; + + /** + * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @static + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RollbackNodePoolUpgradeRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @static + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RollbackNodePoolUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RollbackNodePoolUpgradeRequest.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.RollbackNodePoolUpgradeRequest(); + 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 6: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RollbackNodePoolUpgradeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RollbackNodePoolUpgradeRequest message. + * @function verify + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RollbackNodePoolUpgradeRequest.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a RollbackNodePoolUpgradeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + */ + RollbackNodePoolUpgradeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.RollbackNodePoolUpgradeRequest) + return object; + var message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); + 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.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @static + * @param {google.container.v1.RollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RollbackNodePoolUpgradeRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this RollbackNodePoolUpgradeRequest to JSON. + * @function toJSON + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance + * @returns {Object.} JSON object + */ + RollbackNodePoolUpgradeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return RollbackNodePoolUpgradeRequest; + })(); + + v1.ListNodePoolsResponse = (function() { + + /** + * Properties of a ListNodePoolsResponse. + * @memberof google.container.v1 + * @interface IListNodePoolsResponse + * @property {Array.|null} [nodePools] ListNodePoolsResponse nodePools + */ + + /** + * Constructs a new ListNodePoolsResponse. + * @memberof google.container.v1 + * @classdesc Represents a ListNodePoolsResponse. + * @implements IListNodePoolsResponse + * @constructor + * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set + */ + function ListNodePoolsResponse(properties) { + this.nodePools = []; + 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]]; + } + + /** + * ListNodePoolsResponse nodePools. + * @member {Array.} nodePools + * @memberof google.container.v1.ListNodePoolsResponse + * @instance + */ + ListNodePoolsResponse.prototype.nodePools = $util.emptyArray; + + /** + * Creates a new ListNodePoolsResponse instance using the specified properties. + * @function create + * @memberof google.container.v1.ListNodePoolsResponse + * @static + * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse instance + */ + ListNodePoolsResponse.create = function create(properties) { + return new ListNodePoolsResponse(properties); + }; + + /** + * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ListNodePoolsResponse + * @static + * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNodePoolsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ListNodePoolsResponse + * @static + * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListNodePoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListNodePoolsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ListNodePoolsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNodePoolsResponse.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.ListNodePoolsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.nodePools && message.nodePools.length)) + message.nodePools = []; + message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ListNodePoolsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListNodePoolsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListNodePoolsResponse message. + * @function verify + * @memberof google.container.v1.ListNodePoolsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListNodePoolsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object 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; + } + } + return null; + }; + + /** + * Creates a ListNodePoolsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ListNodePoolsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + */ + ListNodePoolsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListNodePoolsResponse) + return object; + var message = new $root.google.container.v1.ListNodePoolsResponse(); + if (object.nodePools) { + if (!Array.isArray(object.nodePools)) + throw TypeError(".google.container.v1.ListNodePoolsResponse.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.ListNodePoolsResponse.nodePools: object expected"); + message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ListNodePoolsResponse + * @static + * @param {google.container.v1.ListNodePoolsResponse} message ListNodePoolsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListNodePoolsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.nodePools = []; + 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); + } + return object; + }; + + /** + * Converts this ListNodePoolsResponse to JSON. + * @function toJSON + * @memberof google.container.v1.ListNodePoolsResponse + * @instance + * @returns {Object.} JSON object + */ + ListNodePoolsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListNodePoolsResponse; + })(); + + v1.NodePoolAutoscaling = (function() { + + /** + * Properties of a NodePoolAutoscaling. + * @memberof google.container.v1 + * @interface INodePoolAutoscaling + * @property {boolean|null} [enabled] NodePoolAutoscaling enabled + * @property {number|null} [minNodeCount] NodePoolAutoscaling minNodeCount + * @property {number|null} [maxNodeCount] NodePoolAutoscaling maxNodeCount + */ + + /** + * Constructs a new NodePoolAutoscaling. + * @memberof google.container.v1 + * @classdesc Represents a NodePoolAutoscaling. + * @implements INodePoolAutoscaling + * @constructor + * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set + */ + function NodePoolAutoscaling(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]]; + } + + /** + * NodePoolAutoscaling enabled. + * @member {boolean} enabled + * @memberof google.container.v1.NodePoolAutoscaling + * @instance + */ + NodePoolAutoscaling.prototype.enabled = false; + + /** + * NodePoolAutoscaling minNodeCount. + * @member {number} minNodeCount + * @memberof google.container.v1.NodePoolAutoscaling + * @instance + */ + NodePoolAutoscaling.prototype.minNodeCount = 0; + + /** + * NodePoolAutoscaling maxNodeCount. + * @member {number} maxNodeCount + * @memberof google.container.v1.NodePoolAutoscaling + * @instance + */ + NodePoolAutoscaling.prototype.maxNodeCount = 0; + + /** + * Creates a new NodePoolAutoscaling instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePoolAutoscaling + * @static + * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling instance + */ + NodePoolAutoscaling.create = function create(properties) { + return new NodePoolAutoscaling(properties); + }; + + /** + * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePoolAutoscaling + * @static + * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolAutoscaling.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minNodeCount); + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); + return writer; + }; + + /** + * Encodes the specified NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePoolAutoscaling + * @static + * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodePoolAutoscaling message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePoolAutoscaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolAutoscaling.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.NodePoolAutoscaling(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + case 2: + message.minNodeCount = reader.int32(); + break; + case 3: + message.maxNodeCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePoolAutoscaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolAutoscaling.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodePoolAutoscaling message. + * @function verify + * @memberof google.container.v1.NodePoolAutoscaling + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodePoolAutoscaling.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.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + if (!$util.isInteger(message.minNodeCount)) + return "minNodeCount: integer expected"; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + if (!$util.isInteger(message.maxNodeCount)) + return "maxNodeCount: integer expected"; + return null; + }; + + /** + * Creates a NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePoolAutoscaling + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + */ + NodePoolAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePoolAutoscaling) + return object; + var message = new $root.google.container.v1.NodePoolAutoscaling(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.minNodeCount != null) + message.minNodeCount = object.minNodeCount | 0; + if (object.maxNodeCount != null) + message.maxNodeCount = object.maxNodeCount | 0; + return message; + }; + + /** + * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePoolAutoscaling + * @static + * @param {google.container.v1.NodePoolAutoscaling} message NodePoolAutoscaling + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodePoolAutoscaling.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enabled = false; + object.minNodeCount = 0; + object.maxNodeCount = 0; + } + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + object.minNodeCount = message.minNodeCount; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + object.maxNodeCount = message.maxNodeCount; + return object; + }; + + /** + * Converts this NodePoolAutoscaling to JSON. + * @function toJSON + * @memberof google.container.v1.NodePoolAutoscaling + * @instance + * @returns {Object.} JSON object + */ + NodePoolAutoscaling.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NodePoolAutoscaling; + })(); + + v1.SetLabelsRequest = (function() { + + /** + * Properties of a SetLabelsRequest. + * @memberof google.container.v1 + * @interface ISetLabelsRequest + * @property {string|null} [projectId] SetLabelsRequest projectId + * @property {string|null} [zone] SetLabelsRequest zone + * @property {string|null} [clusterId] SetLabelsRequest clusterId + * @property {Object.|null} [resourceLabels] SetLabelsRequest resourceLabels + * @property {string|null} [labelFingerprint] SetLabelsRequest labelFingerprint + * @property {string|null} [name] SetLabelsRequest name + */ + + /** + * Constructs a new SetLabelsRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetLabelsRequest. + * @implements ISetLabelsRequest + * @constructor + * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set + */ + function SetLabelsRequest(properties) { + this.resourceLabels = {}; + 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]]; + } + + /** + * SetLabelsRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetLabelsRequest + * @instance + */ + SetLabelsRequest.prototype.projectId = ""; + + /** + * SetLabelsRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetLabelsRequest + * @instance + */ + SetLabelsRequest.prototype.zone = ""; + + /** + * SetLabelsRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetLabelsRequest + * @instance + */ + SetLabelsRequest.prototype.clusterId = ""; + + /** + * SetLabelsRequest resourceLabels. + * @member {Object.} resourceLabels + * @memberof google.container.v1.SetLabelsRequest + * @instance + */ + SetLabelsRequest.prototype.resourceLabels = $util.emptyObject; + + /** + * SetLabelsRequest labelFingerprint. + * @member {string} labelFingerprint + * @memberof google.container.v1.SetLabelsRequest + * @instance + */ + SetLabelsRequest.prototype.labelFingerprint = ""; + + /** + * SetLabelsRequest name. + * @member {string} name + * @memberof google.container.v1.SetLabelsRequest + * @instance + */ + SetLabelsRequest.prototype.name = ""; + + /** + * Creates a new SetLabelsRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetLabelsRequest + * @static + * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest instance + */ + SetLabelsRequest.create = function create(properties) { + return new SetLabelsRequest(properties); + }; + + /** + * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetLabelsRequest + * @static + * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetLabelsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) + for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).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 && message.hasOwnProperty("labelFingerprint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.labelFingerprint); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetLabelsRequest + * @static + * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetLabelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetLabelsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.SetLabelsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetLabelsRequest.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.SetLabelsRequest(), key; + 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: + reader.skip().pos++; + if (message.resourceLabels === $util.emptyObject) + message.resourceLabels = {}; + key = reader.string(); + reader.pos++; + message.resourceLabels[key] = reader.string(); + break; + case 5: + message.labelFingerprint = reader.string(); + break; + case 7: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetLabelsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetLabelsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetLabelsRequest message. + * @function verify + * @memberof google.container.v1.SetLabelsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetLabelsRequest.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.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a SetLabelsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetLabelsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + */ + SetLabelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLabelsRequest) + return object; + var message = new $root.google.container.v1.SetLabelsRequest(); + 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.resourceLabels) { + if (typeof object.resourceLabels !== "object") + throw TypeError(".google.container.v1.SetLabelsRequest.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.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetLabelsRequest + * @static + * @param {google.container.v1.SetLabelsRequest} message SetLabelsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetLabelsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.resourceLabels = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.labelFingerprint = ""; + 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; + 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this SetLabelsRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetLabelsRequest + * @instance + * @returns {Object.} JSON object + */ + SetLabelsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetLabelsRequest; + })(); + + v1.SetLegacyAbacRequest = (function() { + + /** + * Properties of a SetLegacyAbacRequest. + * @memberof google.container.v1 + * @interface ISetLegacyAbacRequest + * @property {string|null} [projectId] SetLegacyAbacRequest projectId + * @property {string|null} [zone] SetLegacyAbacRequest zone + * @property {string|null} [clusterId] SetLegacyAbacRequest clusterId + * @property {boolean|null} [enabled] SetLegacyAbacRequest enabled + * @property {string|null} [name] SetLegacyAbacRequest name + */ + + /** + * Constructs a new SetLegacyAbacRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetLegacyAbacRequest. + * @implements ISetLegacyAbacRequest + * @constructor + * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set + */ + function SetLegacyAbacRequest(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]]; + } + + /** + * SetLegacyAbacRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetLegacyAbacRequest + * @instance + */ + SetLegacyAbacRequest.prototype.projectId = ""; + + /** + * SetLegacyAbacRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetLegacyAbacRequest + * @instance + */ + SetLegacyAbacRequest.prototype.zone = ""; + + /** + * SetLegacyAbacRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetLegacyAbacRequest + * @instance + */ + SetLegacyAbacRequest.prototype.clusterId = ""; + + /** + * SetLegacyAbacRequest enabled. + * @member {boolean} enabled + * @memberof google.container.v1.SetLegacyAbacRequest + * @instance + */ + SetLegacyAbacRequest.prototype.enabled = false; + + /** + * SetLegacyAbacRequest name. + * @member {string} name + * @memberof google.container.v1.SetLegacyAbacRequest + * @instance + */ + SetLegacyAbacRequest.prototype.name = ""; + + /** + * Creates a new SetLegacyAbacRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetLegacyAbacRequest + * @static + * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest instance + */ + SetLegacyAbacRequest.create = function create(properties) { + return new SetLegacyAbacRequest(properties); + }; + + /** + * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetLegacyAbacRequest + * @static + * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetLegacyAbacRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetLegacyAbacRequest + * @static + * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetLegacyAbacRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.SetLegacyAbacRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetLegacyAbacRequest.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.SetLegacyAbacRequest(); + 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.enabled = reader.bool(); + break; + case 6: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetLegacyAbacRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetLegacyAbacRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetLegacyAbacRequest message. + * @function verify + * @memberof google.container.v1.SetLegacyAbacRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetLegacyAbacRequest.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.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a SetLegacyAbacRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetLegacyAbacRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + */ + SetLegacyAbacRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLegacyAbacRequest) + return object; + var message = new $root.google.container.v1.SetLegacyAbacRequest(); + 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.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetLegacyAbacRequest + * @static + * @param {google.container.v1.SetLegacyAbacRequest} message SetLegacyAbacRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetLegacyAbacRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.enabled = false; + 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.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this SetLegacyAbacRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetLegacyAbacRequest + * @instance + * @returns {Object.} JSON object + */ + SetLegacyAbacRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetLegacyAbacRequest; + })(); + + v1.StartIPRotationRequest = (function() { + + /** + * Properties of a StartIPRotationRequest. + * @memberof google.container.v1 + * @interface IStartIPRotationRequest + * @property {string|null} [projectId] StartIPRotationRequest projectId + * @property {string|null} [zone] StartIPRotationRequest zone + * @property {string|null} [clusterId] StartIPRotationRequest clusterId + * @property {string|null} [name] StartIPRotationRequest name + * @property {boolean|null} [rotateCredentials] StartIPRotationRequest rotateCredentials + */ + + /** + * Constructs a new StartIPRotationRequest. + * @memberof google.container.v1 + * @classdesc Represents a StartIPRotationRequest. + * @implements IStartIPRotationRequest + * @constructor + * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set + */ + function StartIPRotationRequest(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]]; + } + + /** + * StartIPRotationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.projectId = ""; + + /** + * StartIPRotationRequest zone. + * @member {string} zone + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.zone = ""; + + /** + * StartIPRotationRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.clusterId = ""; + + /** + * StartIPRotationRequest name. + * @member {string} name + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.name = ""; + + /** + * StartIPRotationRequest rotateCredentials. + * @member {boolean} rotateCredentials + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.rotateCredentials = false; + + /** + * Creates a new StartIPRotationRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.StartIPRotationRequest + * @static + * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest instance + */ + StartIPRotationRequest.create = function create(properties) { + return new StartIPRotationRequest(properties); + }; + + /** + * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.StartIPRotationRequest + * @static + * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StartIPRotationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateCredentials); + return writer; + }; + + /** + * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.StartIPRotationRequest + * @static + * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StartIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StartIPRotationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.StartIPRotationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StartIPRotationRequest.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.StartIPRotationRequest(); + 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 6: + message.name = reader.string(); + break; + case 7: + message.rotateCredentials = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.StartIPRotationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StartIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StartIPRotationRequest message. + * @function verify + * @memberof google.container.v1.StartIPRotationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StartIPRotationRequest.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"; + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + if (typeof message.rotateCredentials !== "boolean") + return "rotateCredentials: boolean expected"; + return null; + }; + + /** + * Creates a StartIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.StartIPRotationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + */ + StartIPRotationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.StartIPRotationRequest) + return object; + var message = new $root.google.container.v1.StartIPRotationRequest(); + 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); + if (object.rotateCredentials != null) + message.rotateCredentials = Boolean(object.rotateCredentials); + return message; + }; + + /** + * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.StartIPRotationRequest + * @static + * @param {google.container.v1.StartIPRotationRequest} message StartIPRotationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StartIPRotationRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.name = ""; + object.rotateCredentials = false; + } + 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; + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + object.rotateCredentials = message.rotateCredentials; + return object; + }; + + /** + * Converts this StartIPRotationRequest to JSON. + * @function toJSON + * @memberof google.container.v1.StartIPRotationRequest + * @instance + * @returns {Object.} JSON object + */ + StartIPRotationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return StartIPRotationRequest; + })(); + + v1.CompleteIPRotationRequest = (function() { + + /** + * Properties of a CompleteIPRotationRequest. + * @memberof google.container.v1 + * @interface ICompleteIPRotationRequest + * @property {string|null} [projectId] CompleteIPRotationRequest projectId + * @property {string|null} [zone] CompleteIPRotationRequest zone + * @property {string|null} [clusterId] CompleteIPRotationRequest clusterId + * @property {string|null} [name] CompleteIPRotationRequest name + */ + + /** + * Constructs a new CompleteIPRotationRequest. + * @memberof google.container.v1 + * @classdesc Represents a CompleteIPRotationRequest. + * @implements ICompleteIPRotationRequest + * @constructor + * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set + */ + function CompleteIPRotationRequest(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]]; + } + + /** + * CompleteIPRotationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.CompleteIPRotationRequest + * @instance + */ + CompleteIPRotationRequest.prototype.projectId = ""; + + /** + * CompleteIPRotationRequest zone. + * @member {string} zone + * @memberof google.container.v1.CompleteIPRotationRequest + * @instance + */ + CompleteIPRotationRequest.prototype.zone = ""; + + /** + * CompleteIPRotationRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.CompleteIPRotationRequest + * @instance + */ + CompleteIPRotationRequest.prototype.clusterId = ""; + + /** + * CompleteIPRotationRequest name. + * @member {string} name + * @memberof google.container.v1.CompleteIPRotationRequest + * @instance + */ + CompleteIPRotationRequest.prototype.name = ""; + + /** + * Creates a new CompleteIPRotationRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest instance + */ + CompleteIPRotationRequest.create = function create(properties) { + return new CompleteIPRotationRequest(properties); + }; + + /** + * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompleteIPRotationRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + return writer; + }; + + /** + * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompleteIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompleteIPRotationRequest.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.CompleteIPRotationRequest(); + 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 7: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompleteIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompleteIPRotationRequest message. + * @function verify + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompleteIPRotationRequest.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 CompleteIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + */ + CompleteIPRotationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CompleteIPRotationRequest) + return object; + var message = new $root.google.container.v1.CompleteIPRotationRequest(); + 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 CompleteIPRotationRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {google.container.v1.CompleteIPRotationRequest} message CompleteIPRotationRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompleteIPRotationRequest.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 CompleteIPRotationRequest to JSON. + * @function toJSON + * @memberof google.container.v1.CompleteIPRotationRequest + * @instance + * @returns {Object.} JSON object + */ + CompleteIPRotationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CompleteIPRotationRequest; + })(); + + v1.AcceleratorConfig = (function() { + + /** + * Properties of an AcceleratorConfig. + * @memberof google.container.v1 + * @interface IAcceleratorConfig + * @property {number|Long|null} [acceleratorCount] AcceleratorConfig acceleratorCount + * @property {string|null} [acceleratorType] AcceleratorConfig acceleratorType + */ + + /** + * Constructs a new AcceleratorConfig. + * @memberof google.container.v1 + * @classdesc Represents an AcceleratorConfig. + * @implements IAcceleratorConfig + * @constructor + * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set + */ + function AcceleratorConfig(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]]; + } + + /** + * AcceleratorConfig acceleratorCount. + * @member {number|Long} acceleratorCount + * @memberof google.container.v1.AcceleratorConfig + * @instance + */ + AcceleratorConfig.prototype.acceleratorCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * AcceleratorConfig acceleratorType. + * @member {string} acceleratorType + * @memberof google.container.v1.AcceleratorConfig + * @instance + */ + AcceleratorConfig.prototype.acceleratorType = ""; + + /** + * Creates a new AcceleratorConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.AcceleratorConfig + * @static + * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig instance + */ + AcceleratorConfig.create = function create(properties) { + return new AcceleratorConfig(properties); + }; + + /** + * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.AcceleratorConfig + * @static + * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcceleratorConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); + return writer; + }; + + /** + * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.AcceleratorConfig + * @static + * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AcceleratorConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AcceleratorConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.AcceleratorConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcceleratorConfig.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.AcceleratorConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.acceleratorCount = reader.int64(); + break; + case 2: + message.acceleratorType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.AcceleratorConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AcceleratorConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AcceleratorConfig message. + * @function verify + * @memberof google.container.v1.AcceleratorConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AcceleratorConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + if (!$util.isInteger(message.acceleratorCount) && !(message.acceleratorCount && $util.isInteger(message.acceleratorCount.low) && $util.isInteger(message.acceleratorCount.high))) + return "acceleratorCount: integer|Long expected"; + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + if (!$util.isString(message.acceleratorType)) + return "acceleratorType: string expected"; + return null; + }; + + /** + * Creates an AcceleratorConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.AcceleratorConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + */ + AcceleratorConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AcceleratorConfig) + return object; + var message = new $root.google.container.v1.AcceleratorConfig(); + if (object.acceleratorCount != null) + if ($util.Long) + (message.acceleratorCount = $util.Long.fromValue(object.acceleratorCount)).unsigned = false; + else if (typeof object.acceleratorCount === "string") + message.acceleratorCount = parseInt(object.acceleratorCount, 10); + else if (typeof object.acceleratorCount === "number") + message.acceleratorCount = object.acceleratorCount; + else if (typeof object.acceleratorCount === "object") + message.acceleratorCount = new $util.LongBits(object.acceleratorCount.low >>> 0, object.acceleratorCount.high >>> 0).toNumber(); + if (object.acceleratorType != null) + message.acceleratorType = String(object.acceleratorType); + return message; + }; + + /** + * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.AcceleratorConfig + * @static + * @param {google.container.v1.AcceleratorConfig} message AcceleratorConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AcceleratorConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.acceleratorCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.acceleratorCount = options.longs === String ? "0" : 0; + object.acceleratorType = ""; + } + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + if (typeof message.acceleratorCount === "number") + object.acceleratorCount = options.longs === String ? String(message.acceleratorCount) : message.acceleratorCount; + else + object.acceleratorCount = options.longs === String ? $util.Long.prototype.toString.call(message.acceleratorCount) : options.longs === Number ? new $util.LongBits(message.acceleratorCount.low >>> 0, message.acceleratorCount.high >>> 0).toNumber() : message.acceleratorCount; + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + object.acceleratorType = message.acceleratorType; + return object; + }; + + /** + * Converts this AcceleratorConfig to JSON. + * @function toJSON + * @memberof google.container.v1.AcceleratorConfig + * @instance + * @returns {Object.} JSON object + */ + AcceleratorConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AcceleratorConfig; + })(); + + v1.SetNetworkPolicyRequest = (function() { + + /** + * Properties of a SetNetworkPolicyRequest. + * @memberof google.container.v1 + * @interface ISetNetworkPolicyRequest + * @property {string|null} [projectId] SetNetworkPolicyRequest projectId + * @property {string|null} [zone] SetNetworkPolicyRequest zone + * @property {string|null} [clusterId] SetNetworkPolicyRequest clusterId + * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] SetNetworkPolicyRequest networkPolicy + * @property {string|null} [name] SetNetworkPolicyRequest name + */ + + /** + * Constructs a new SetNetworkPolicyRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetNetworkPolicyRequest. + * @implements ISetNetworkPolicyRequest + * @constructor + * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set + */ + function SetNetworkPolicyRequest(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]]; + } + + /** + * SetNetworkPolicyRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNetworkPolicyRequest + * @instance + */ + SetNetworkPolicyRequest.prototype.projectId = ""; + + /** + * SetNetworkPolicyRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNetworkPolicyRequest + * @instance + */ + SetNetworkPolicyRequest.prototype.zone = ""; + + /** + * SetNetworkPolicyRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNetworkPolicyRequest + * @instance + */ + SetNetworkPolicyRequest.prototype.clusterId = ""; + + /** + * SetNetworkPolicyRequest networkPolicy. + * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy + * @memberof google.container.v1.SetNetworkPolicyRequest + * @instance + */ + SetNetworkPolicyRequest.prototype.networkPolicy = null; + + /** + * SetNetworkPolicyRequest name. + * @member {string} name + * @memberof google.container.v1.SetNetworkPolicyRequest + * @instance + */ + SetNetworkPolicyRequest.prototype.name = ""; + + /** + * Creates a new SetNetworkPolicyRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetNetworkPolicyRequest + * @static + * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest instance + */ + SetNetworkPolicyRequest.create = function create(properties) { + return new SetNetworkPolicyRequest(properties); + }; + + /** + * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetNetworkPolicyRequest + * @static + * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetNetworkPolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetNetworkPolicyRequest + * @static + * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.SetNetworkPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetNetworkPolicyRequest.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.SetNetworkPolicyRequest(); + 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.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); + break; + case 6: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetNetworkPolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetNetworkPolicyRequest message. + * @function verify + * @memberof google.container.v1.SetNetworkPolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetNetworkPolicyRequest.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.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { + var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy); + if (error) + return "networkPolicy." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a SetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetNetworkPolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + */ + SetNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNetworkPolicyRequest) + return object; + var message = new $root.google.container.v1.SetNetworkPolicyRequest(); + 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.networkPolicy != null) { + if (typeof object.networkPolicy !== "object") + throw TypeError(".google.container.v1.SetNetworkPolicyRequest.networkPolicy: object expected"); + message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy); + } + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetNetworkPolicyRequest + * @static + * @param {google.container.v1.SetNetworkPolicyRequest} message SetNetworkPolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetNetworkPolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.networkPolicy = 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.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this SetNetworkPolicyRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetNetworkPolicyRequest + * @instance + * @returns {Object.} JSON object + */ + SetNetworkPolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetNetworkPolicyRequest; + })(); + + v1.SetMaintenancePolicyRequest = (function() { + + /** + * Properties of a SetMaintenancePolicyRequest. + * @memberof google.container.v1 + * @interface ISetMaintenancePolicyRequest + * @property {string|null} [projectId] SetMaintenancePolicyRequest projectId + * @property {string|null} [zone] SetMaintenancePolicyRequest zone + * @property {string|null} [clusterId] SetMaintenancePolicyRequest clusterId + * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] SetMaintenancePolicyRequest maintenancePolicy + * @property {string|null} [name] SetMaintenancePolicyRequest name + */ + + /** + * Constructs a new SetMaintenancePolicyRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetMaintenancePolicyRequest. + * @implements ISetMaintenancePolicyRequest + * @constructor + * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set + */ + function SetMaintenancePolicyRequest(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]]; + } + + /** + * SetMaintenancePolicyRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @instance + */ + SetMaintenancePolicyRequest.prototype.projectId = ""; + + /** + * SetMaintenancePolicyRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @instance + */ + SetMaintenancePolicyRequest.prototype.zone = ""; + + /** + * SetMaintenancePolicyRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @instance + */ + SetMaintenancePolicyRequest.prototype.clusterId = ""; + + /** + * SetMaintenancePolicyRequest maintenancePolicy. + * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @instance + */ + SetMaintenancePolicyRequest.prototype.maintenancePolicy = null; + + /** + * SetMaintenancePolicyRequest name. + * @member {string} name + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @instance + */ + SetMaintenancePolicyRequest.prototype.name = ""; + + /** + * Creates a new SetMaintenancePolicyRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @static + * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest instance + */ + SetMaintenancePolicyRequest.create = function create(properties) { + return new SetMaintenancePolicyRequest(properties); + }; + + /** + * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @static + * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetMaintenancePolicyRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @static + * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SetMaintenancePolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetMaintenancePolicyRequest.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.SetMaintenancePolicyRequest(); + 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.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); + break; + case 5: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SetMaintenancePolicyRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetMaintenancePolicyRequest message. + * @function verify + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SetMaintenancePolicyRequest.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.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) { + var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy); + if (error) + return "maintenancePolicy." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a SetMaintenancePolicyRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest + */ + SetMaintenancePolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetMaintenancePolicyRequest) + return object; + var message = new $root.google.container.v1.SetMaintenancePolicyRequest(); + 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.maintenancePolicy != null) { + if (typeof object.maintenancePolicy !== "object") + throw TypeError(".google.container.v1.SetMaintenancePolicyRequest.maintenancePolicy: object expected"); + message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy); + } + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @static + * @param {google.container.v1.SetMaintenancePolicyRequest} message SetMaintenancePolicyRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetMaintenancePolicyRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.maintenancePolicy = 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.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this SetMaintenancePolicyRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @instance + * @returns {Object.} JSON object + */ + SetMaintenancePolicyRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetMaintenancePolicyRequest; + })(); + + v1.NetworkConfig = (function() { + + /** + * Properties of a NetworkConfig. + * @memberof google.container.v1 + * @interface INetworkConfig + * @property {string|null} [network] NetworkConfig network + * @property {string|null} [subnetwork] NetworkConfig subnetwork + */ + + /** + * Constructs a new NetworkConfig. + * @memberof google.container.v1 + * @classdesc Represents a NetworkConfig. + * @implements INetworkConfig + * @constructor + * @param {google.container.v1.INetworkConfig=} [properties] Properties to set + */ + function NetworkConfig(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]]; + } + + /** + * NetworkConfig network. + * @member {string} network + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.network = ""; + + /** + * NetworkConfig subnetwork. + * @member {string} subnetwork + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.subnetwork = ""; + + /** + * Creates a new NetworkConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NetworkConfig + * @static + * @param {google.container.v1.INetworkConfig=} [properties] Properties to set + * @returns {google.container.v1.NetworkConfig} NetworkConfig instance + */ + NetworkConfig.create = function create(properties) { + return new NetworkConfig(properties); + }; + + /** + * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NetworkConfig + * @static + * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.network != null && message.hasOwnProperty("network")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); + return writer; + }; + + /** + * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NetworkConfig + * @static + * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NetworkConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkConfig.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.NetworkConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.network = reader.string(); + break; + case 2: + message.subnetwork = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NetworkConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkConfig message. + * @function verify + * @memberof google.container.v1.NetworkConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (!$util.isString(message.subnetwork)) + return "subnetwork: string expected"; + return null; + }; + + /** + * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NetworkConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NetworkConfig} NetworkConfig + */ + NetworkConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NetworkConfig) + return object; + var message = new $root.google.container.v1.NetworkConfig(); + if (object.network != null) + message.network = String(object.network); + if (object.subnetwork != null) + message.subnetwork = String(object.subnetwork); + return message; + }; + + /** + * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NetworkConfig + * @static + * @param {google.container.v1.NetworkConfig} message NetworkConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.network = ""; + object.subnetwork = ""; + } + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + object.subnetwork = message.subnetwork; + return object; + }; + + /** + * Converts this NetworkConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NetworkConfig + * @instance + * @returns {Object.} JSON object + */ + NetworkConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NetworkConfig; + })(); + + return v1; + })(); + + return container; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + 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]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + return writer; + }; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.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.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + case 2: + message.fullyDecodeReservedExpansion = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; + return null; + }; + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); + return message; + }; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; + return object; + }; + + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + 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]]; + } + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule get. + * @member {string} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = ""; + + /** + * HttpRule put. + * @member {string} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = ""; + + /** + * HttpRule post. + * @member {string} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = ""; + + /** + * HttpRule delete. + * @member {string} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = ""; + + /** + * HttpRule patch. + * @member {string} patch + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.patch = ""; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && message.hasOwnProperty("selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && message.hasOwnProperty("get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && message.hasOwnProperty("put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && message.hasOwnProperty("post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && message.hasOwnProperty("delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && message.hasOwnProperty("patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && message.hasOwnProperty("body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && message.hasOwnProperty("custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + return writer; + }; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.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.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.selector = reader.string(); + break; + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message["delete"] = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 7: + message.body = reader.string(); + break; + case 12: + message.responseBody = reader.string(); + break; + case 11: + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; + return object; + }; + + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(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]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && message.hasOwnProperty("kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && message.hasOwnProperty("path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.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.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CustomHttpPattern; + })(); + + return api; + })(); + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + 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]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.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.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; + + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + 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]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message["package"] != null && message.hasOwnProperty("package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && message.hasOwnProperty("syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + return writer; + }; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.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.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message["package"] = reader.string(); + break; + case 3: + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + case 10: + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + case 11: + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + case 4: + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.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["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + return null; + }; + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + var message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + return message; + }; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + return object; + }; + + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.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.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + case 8: + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.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.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(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]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && message.hasOwnProperty("start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.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.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(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]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && message.hasOwnProperty("start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.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.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.ExtensionRangeOptions = (function() { + + /** + * Properties of an ExtensionRangeOptions. + * @memberof google.protobuf + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + */ + + /** + * Constructs a new ExtensionRangeOptions. + * @memberof google.protobuf + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions + * @constructor + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + */ + function ExtensionRangeOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ExtensionRangeOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + */ + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); + }; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.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.protobuf.ExtensionRangeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRangeOptions message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRangeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + */ + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRangeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + * @returns {Object.} JSON object + */ + ExtensionRangeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(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]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.extendee != null && message.hasOwnProperty("extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && message.hasOwnProperty("number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && message.hasOwnProperty("label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && message.hasOwnProperty("type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && message.hasOwnProperty("typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + return writer; + }; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.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.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.number = reader.int32(); + break; + case 4: + message.label = reader.int32(); + break; + case 5: + message.type = reader.int32(); + break; + case 6: + message.typeName = reader.string(); + break; + case 2: + message.extendee = reader.string(); + break; + case 7: + message.defaultValue = reader.string(); + break; + case 9: + message.oneofIndex = reader.int32(); + break; + case 10: + message.jsonName = reader.string(); + break; + case 8: + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.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.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + 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: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + } + switch (object.type) { + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + return object; + }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {string} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {string} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(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]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.name = ""; + + /** + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto + * @instance + */ + OneofDescriptorProto.prototype.options = null; + + /** + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.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.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.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.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { + + /** + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * EnumDescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new EnumDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + */ + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.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.protobuf.EnumDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + case 4: + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumDescriptorProto.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.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); + if (error) + return "value." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + */ + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.value = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + EnumDescriptorProto.EnumReservedRange = (function() { + + /** + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end + */ + + /** + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange + * @constructor + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + */ + function EnumReservedRange(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]]; + } + + /** + * EnumReservedRange start. + * @member {number} start + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.start = 0; + + /** + * EnumReservedRange end. + * @member {number} end + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.end = 0; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance + */ + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); + }; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && message.hasOwnProperty("start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.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.protobuf.EnumDescriptorProto.EnumReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumReservedRange message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnumReservedRange; + })(); + + return EnumDescriptorProto; + })(); + + protobuf.EnumValueDescriptorProto = (function() { + + /** + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + */ + + /** + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto + * @constructor + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + */ + function EnumValueDescriptorProto(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]]; + } + + /** + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.name = ""; + + /** + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.number = 0; + + /** + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + */ + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); + }; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && message.hasOwnProperty("number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.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.protobuf.EnumValueDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.number = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueDescriptorProto message. + * @function verify + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueDescriptorProto.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.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + */ + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + return object; + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.number = 0; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnumValueDescriptorProto; + })(); + + protobuf.ServiceDescriptorProto = (function() { + + /** + * Properties of a ServiceDescriptorProto. + * @memberof google.protobuf + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + */ + + /** + * Constructs a new ServiceDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto + * @constructor + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + */ + function ServiceDescriptorProto(properties) { + this.method = []; + 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]]; + } + + /** + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.name = ""; + + /** + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + */ + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); + }; + + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.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.protobuf.ServiceDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceDescriptorProto message. + * @function verify + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceDescriptorProto.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.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (error) + return "method." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + return object; + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ServiceDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + ServiceDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ServiceDescriptorProto; + })(); + + protobuf.MethodDescriptorProto = (function() { + + /** + * Properties of a MethodDescriptorProto. + * @memberof google.protobuf + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + */ + + /** + * Constructs a new MethodDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto + * @constructor + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + */ + function MethodDescriptorProto(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]]; + } + + /** + * MethodDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.name = ""; + + /** + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.inputType = ""; + + /** + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.outputType = ""; + + /** + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.options = null; + + /** + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.clientStreaming = false; + + /** + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto + * @instance + */ + MethodDescriptorProto.prototype.serverStreaming = false; + + /** + * Creates a new MethodDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + */ + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); + }; + + /** + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.inputType != null && message.hasOwnProperty("inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && message.hasOwnProperty("outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); + if (message.options != null && message.hasOwnProperty("options")) + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + return writer; + }; + + /** + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.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.protobuf.MethodDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.inputType = reader.string(); + break; + case 3: + message.outputType = reader.string(); + break; + case 4: + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + case 5: + message.clientStreaming = reader.bool(); + break; + case 6: + message.serverStreaming = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodDescriptorProto message. + * @function verify + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodDescriptorProto.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.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MethodOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; + return null; + }; + + /** + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + */ + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) + return object; + var message = new $root.google.protobuf.MethodDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + } + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); + return message; + }; + + /** + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.inputType = ""; + object.outputType = ""; + object.options = null; + object.clientStreaming = false; + object.serverStreaming = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; + return object; + }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.MethodDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + MethodDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MethodDescriptorProto; + })(); + + protobuf.FileOptions = (function() { + + /** + * Properties of a FileOptions. + * @memberof google.protobuf + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + */ + + /** + * Constructs a new FileOptions. + * @memberof google.protobuf + * @classdesc Represents a FileOptions. + * @implements IFileOptions + * @constructor + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + */ + function FileOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaPackage = ""; + + /** + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaOuterClassname = ""; + + /** + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaMultipleFiles = false; + + /** + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenerateEqualsAndHash = false; + + /** + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaStringCheckUtf8 = false; + + /** + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.optimizeFor = 1; + + /** + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.goPackage = ""; + + /** + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccGenericServices = false; + + /** + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.javaGenericServices = false; + + /** + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.pyGenericServices = false; + + /** + * FileOptions phpGenericServices. + * @member {boolean} phpGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = false; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.swiftPrefix = ""; + + /** + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpClassPrefix = ""; + + /** + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpNamespace = ""; + + /** + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpMetadataNamespace = ""; + + /** + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.rubyPackage = ""; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance + */ + FileOptions.create = function create(properties) { + return new FileOptions(properties); + }; + + /** + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.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.protobuf.FileOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.javaPackage = reader.string(); + break; + case 8: + message.javaOuterClassname = reader.string(); + break; + case 10: + message.javaMultipleFiles = reader.bool(); + break; + case 20: + message.javaGenerateEqualsAndHash = reader.bool(); + break; + case 27: + message.javaStringCheckUtf8 = reader.bool(); + break; + case 9: + message.optimizeFor = reader.int32(); + break; + case 11: + message.goPackage = reader.string(); + break; + case 16: + message.ccGenericServices = reader.bool(); + break; + case 17: + message.javaGenericServices = reader.bool(); + break; + case 18: + message.pyGenericServices = reader.bool(); + break; + case 42: + message.phpGenericServices = reader.bool(); + break; + case 23: + message.deprecated = reader.bool(); + break; + case 31: + message.ccEnableArenas = reader.bool(); + break; + case 36: + message.objcClassPrefix = reader.string(); + break; + case 37: + message.csharpNamespace = reader.string(); + break; + case 39: + message.swiftPrefix = reader.string(); + break; + case 40: + message.phpClassPrefix = reader.string(); + break; + case 41: + message.phpNamespace = reader.string(); + break; + case 44: + message.phpMetadataNamespace = reader.string(); + break; + case 45: + message.rubyPackage = reader.string(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileOptions} FileOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileOptions message. + * @function verify + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (typeof message.phpGenericServices !== "boolean") + return "phpGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileOptions} FileOptions + */ + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) + return object; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + case "SPEED": + case 1: + message.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; + } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.phpGenericServices != null) + message.phpGenericServices = Boolean(object.phpGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = false; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpGenericServices = false; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + object.phpGenericServices = message.phpGenericServices; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {string} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); + + return FileOptions; + })(); + + protobuf.MessageOptions = (function() { + + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + */ + + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; + + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; + + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; + + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; + + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; + + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.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.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messageSetWireFormat = reader.bool(); + break; + case 2: + message.noStandardDescriptorAccessor = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 7: + message.mapEntry = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) + return object; + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MessageOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MessageOptions; + })(); + + protobuf.FieldOptions = (function() { + + /** + * Properties of a FieldOptions. + * @memberof google.protobuf + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + */ + + /** + * Constructs a new FieldOptions. + * @memberof google.protobuf + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions + * @constructor + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + */ + function FieldOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new FieldOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance + */ + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); + }; + + /** + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.ctype != null && message.hasOwnProperty("ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && message.hasOwnProperty("packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && message.hasOwnProperty("lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && message.hasOwnProperty("jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && message.hasOwnProperty("weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.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.protobuf.FieldOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldOptions} FieldOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldOptions message. + * @function verify + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldOptions} FieldOptions + */ + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) + return object; + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldOptions + * @static + * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this FieldOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FieldOptions + * @instance + * @returns {Object.} JSON object + */ + FieldOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {string} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {string} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + return FieldOptions; + })(); + + protobuf.OneofOptions = (function() { + + /** + * Properties of an OneofOptions. + * @memberof google.protobuf + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + */ + + /** + * Constructs a new OneofOptions. + * @memberof google.protobuf + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions + * @constructor + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + */ + function OneofOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions + * @instance + */ + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new OneofOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance + */ + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); + }; + + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.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.protobuf.OneofOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) + return object; + var message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this OneofOptions to JSON. + * @function toJSON + * @memberof google.protobuf.OneofOptions + * @instance + * @returns {Object.} JSON object + */ + OneofOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return OneofOptions; + })(); + + protobuf.EnumOptions = (function() { + + /** + * Properties of an EnumOptions. + * @memberof google.protobuf + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + */ + + /** + * Constructs a new EnumOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions + * @constructor + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + */ + function EnumOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.allowAlias = false; + + /** + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.deprecated = false; + + /** + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance + */ + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); + }; + + /** + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.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.protobuf.EnumOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.allowAlias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumOptions} EnumOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumOptions message. + * @function verify + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumOptions} EnumOptions + */ + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) + return object; + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumOptions + * @static + * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.allowAlias = false; + object.deprecated = false; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumOptions + * @instance + * @returns {Object.} JSON object + */ + EnumOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnumOptions; + })(); + + protobuf.EnumValueOptions = (function() { + + /** + * Properties of an EnumValueOptions. + * @memberof google.protobuf + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + */ + + /** + * Constructs a new EnumValueOptions. + * @memberof google.protobuf + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions + * @constructor + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + */ + function EnumValueOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.deprecated = false; + + /** + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions + * @instance + */ + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumValueOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + */ + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); + }; + + /** + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.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.protobuf.EnumValueOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumValueOptions message. + * @function verify + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumValueOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + */ + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) + return object; + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumValueOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this EnumValueOptions to JSON. + * @function toJSON + * @memberof google.protobuf.EnumValueOptions + * @instance + * @returns {Object.} JSON object + */ + EnumValueOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EnumValueOptions; + })(); + + protobuf.ServiceOptions = (function() { + + /** + * Properties of a ServiceOptions. + * @memberof google.protobuf + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + */ + + /** + * Constructs a new ServiceOptions. + * @memberof google.protobuf + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions + * @constructor + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + */ + function ServiceOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.deprecated = false; + + /** + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ServiceOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + */ + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); + }; + + /** + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.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.protobuf.ServiceOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ServiceOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ServiceOptions message. + * @function verify + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ServiceOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ServiceOptions} ServiceOptions + */ + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) + return object; + var message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ServiceOptions + * @static + * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ServiceOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ServiceOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ServiceOptions + * @instance + * @returns {Object.} JSON object + */ + ServiceOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ServiceOptions; + })(); + + protobuf.MethodOptions = (function() { + + /** + * Properties of a MethodOptions. + * @memberof google.protobuf + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + */ + + /** + * Constructs a new MethodOptions. + * @memberof google.protobuf + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions + * @constructor + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + */ + function MethodOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.deprecated = false; + + /** + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.idempotencyLevel = 0; + + /** + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * Creates a new MethodOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance + */ + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); + }; + + /** + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.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.protobuf.MethodOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 33: + message.deprecated = reader.bool(); + break; + case 34: + message.idempotencyLevel = reader.int32(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 72295728: + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MethodOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MethodOptions} MethodOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MethodOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MethodOptions message. + * @function verify + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MethodOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); + if (error) + return ".google.api.http." + error; + } + return null; + }; + + /** + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MethodOptions} MethodOptions + */ + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) + return object; + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + message.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + message.idempotencyLevel = 2; + break; + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + return message; + }; + + /** + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MethodOptions + * @static + * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MethodOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.deprecated = false; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object[".google.api.http"] = null; + } + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); + return object; + }; + + /** + * Converts this MethodOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MethodOptions + * @instance + * @returns {Object.} JSON object + */ + MethodOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel + * @enum {string} + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value + */ + MethodOptions.IdempotencyLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; + return values; + })(); + + return MethodOptions; + })(); + + protobuf.UninterpretedOption = (function() { + + /** + * Properties of an UninterpretedOption. + * @memberof google.protobuf + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + */ + + /** + * Constructs a new UninterpretedOption. + * @memberof google.protobuf + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption + * @constructor + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + */ + function UninterpretedOption(properties) { + this.name = []; + 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]]; + } + + /** + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.identifierValue = ""; + + /** + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + + /** + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.doubleValue = 0; + + /** + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + + /** + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.aggregateValue = ""; + + /** + * Creates a new UninterpretedOption instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + */ + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); + }; + + /** + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + return writer; + }; + + /** + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.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.protobuf.UninterpretedOption(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + case 3: + message.identifierValue = reader.string(); + break; + case 4: + message.positiveIntValue = reader.uint64(); + break; + case 5: + message.negativeIntValue = reader.int64(); + break; + case 6: + message.doubleValue = reader.double(); + break; + case 7: + message.stringValue = reader.bytes(); + break; + case 8: + message.aggregateValue = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UninterpretedOption message. + * @function verify + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UninterpretedOption.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; + return null; + }; + + /** + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + */ + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) + return object; + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } + } + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); + return message; + }; + + /** + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UninterpretedOption.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.name = []; + if (options.defaults) { + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; + } + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; + return object; + }; + + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(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]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.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.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namePart = reader.string(); + break; + case 2: + message.isExtension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NamePart; + })(); + + return UninterpretedOption; + })(); + + protobuf.SourceCodeInfo = (function() { + + /** + * Properties of a SourceCodeInfo. + * @memberof google.protobuf + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location + */ + + /** + * Constructs a new SourceCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo + * @constructor + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + */ + function SourceCodeInfo(properties) { + this.location = []; + 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]]; + } + + /** + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo + * @instance + */ + SourceCodeInfo.prototype.location = $util.emptyArray; + + /** + * Creates a new SourceCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + */ + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); + }; + + /** + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.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.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); + if (error) + return "location." + error; + } + } + return null; + }; + + /** + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + */ + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) + return object; + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SourceCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); + } + return object; + }; + + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + 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]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.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.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + case 3: + message.leadingComments = reader.string(); + break; + case 4: + message.trailingComments = reader.string(); + break; + case 6: + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; + + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Location; + })(); + + return SourceCodeInfo; + })(); + + protobuf.GeneratedCodeInfo = (function() { + + /** + * Properties of a GeneratedCodeInfo. + * @memberof google.protobuf + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + */ + + /** + * Constructs a new GeneratedCodeInfo. + * @memberof google.protobuf + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo + * @constructor + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + */ + function GeneratedCodeInfo(properties) { + this.annotation = []; + 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]]; + } + + /** + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + */ + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + + /** + * Creates a new GeneratedCodeInfo instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + */ + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); + }; + + /** + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.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.protobuf.GeneratedCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GeneratedCodeInfo message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GeneratedCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); + if (error) + return "annotation." + error; + } + } + return null; + }; + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + 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]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && message.hasOwnProperty("begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && message.hasOwnProperty("end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.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.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + message.sourceFile = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Annotation; + })(); + + return GeneratedCodeInfo; + })(); + + protobuf.Empty = (function() { + + /** + * Properties of an Empty. + * @memberof google.protobuf + * @interface IEmpty + */ + + /** + * Constructs a new Empty. + * @memberof google.protobuf + * @classdesc Represents an Empty. + * @implements IEmpty + * @constructor + * @param {google.protobuf.IEmpty=} [properties] Properties to set + */ + function Empty(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]]; + } + + /** + * Creates a new Empty instance using the specified properties. + * @function create + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @returns {google.protobuf.Empty} Empty instance + */ + Empty.create = function create(properties) { + return new Empty(properties); + }; + + /** + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Empty.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + return writer; + }; + + /** + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Empty.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Empty message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Empty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Empty} Empty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Empty.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.protobuf.Empty(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Empty message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Empty + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Empty} Empty + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Empty.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Empty message. + * @function verify + * @memberof google.protobuf.Empty + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Empty.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + return null; + }; + + /** + * Creates an Empty message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Empty + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Empty} Empty + */ + Empty.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Empty) + return object; + return new $root.google.protobuf.Empty(); + }; + + /** + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Empty + * @static + * @param {google.protobuf.Empty} message Empty + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Empty.toObject = function toObject() { + return {}; + }; + + /** + * Converts this Empty to JSON. + * @function toJSON + * @memberof google.protobuf.Empty + * @instance + * @returns {Object.} JSON object + */ + Empty.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Empty; + })(); + + return protobuf; + })(); + + return google; + })(); + + return $root; +}); diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index e375b076111..d99a7fe1f37 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-08-31T11:08:57.597485Z", + "updateTime": "2019-09-27T11:11:23.278022Z", "sources": [ { "generator": { "name": "artman", - "version": "0.36.1", - "dockerImage": "googleapis/artman@sha256:7c20f006c7a62d9d782e2665647d52290c37a952ef3cd134624d5dd62b3f71bd" + "version": "0.37.1", + "dockerImage": "googleapis/artman@sha256:6068f67900a3f0bdece596b97bda8fc70406ca0e137a941f4c81d3217c994a80" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "82809578652607c8ee29d9e199c21f28f81a03e0", - "internalRef": "266247326" + "sha": "cd112d8d255e0099df053643d4bd12c228ef7b1b", + "internalRef": "271468707" } }, { From b5fcb111b1ea25f12363aa1307f1a16f1d422098 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 1 Oct 2019 20:15:00 -0700 Subject: [PATCH 150/371] fix: use compatible version of google-gax * fix: use compatible version of google-gax * fix: use gax v1.6.3 --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2ea9e729948..3014c8f6803 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -37,7 +37,7 @@ "predocs-test": "npm run docs" }, "dependencies": { - "google-gax": "^1.1.1" + "google-gax": "^1.6.3" }, "devDependencies": { "codecov": "^3.5.0", From edc7aefa50babef23a0df59bcfa7d47644e6c0bc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 7 Oct 2019 21:26:12 -0700 Subject: [PATCH 151/371] chore: update pull request template (#235) --- packages/google-container/synth.metadata | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index d99a7fe1f37..c46e4e04f66 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-09-27T11:11:23.278022Z", + "updateTime": "2019-10-01T11:12:20.844264Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "cd112d8d255e0099df053643d4bd12c228ef7b1b", - "internalRef": "271468707" + "sha": "ce3c574d1266026cebea3a893247790bd68191c2", + "internalRef": "272147209" } }, { From b8936c6564130e754a54397669c2150140616d82 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Tue, 8 Oct 2019 17:33:24 -0700 Subject: [PATCH 152/371] chore: update CONTRIBUTING.md and make releaseType node (#239) --- packages/google-container/CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/google-container/CONTRIBUTING.md b/packages/google-container/CONTRIBUTING.md index 78aaa61b269..f6c4cf010e3 100644 --- a/packages/google-container/CONTRIBUTING.md +++ b/packages/google-container/CONTRIBUTING.md @@ -34,6 +34,7 @@ accept your pull requests. 1. Ensure that your code adheres to the existing style in the code to which you are contributing. 1. Ensure that your code has an appropriate set of tests which all pass. +1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling. 1. Submit a pull request. ## Running the tests @@ -46,8 +47,17 @@ accept your pull requests. 1. Run the tests: + # Run unit tests. npm test + # Run sample integration tests. + gcloud auth application-default login + npm run samples-test + + # Run all system tests. + gcloud auth application-default login + npm run system-test + 1. Lint (and maybe fix) any changes: npm run fix From 2047884c3f3e3009ca62b84d5801f48b6790ebe0 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2019 21:09:25 -0700 Subject: [PATCH 153/371] chore: release 1.3.0 (#232) * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json [ci skip] --- packages/google-container/CHANGELOG.md | 12 ++++++++++++ packages/google-container/package.json | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 487241e5bd6..4eabdbe2cab 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,18 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [1.3.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.2.0...v1.3.0) (2019-10-09) + + +### Bug Fixes + +* use compatible version of google-gax ([c39495e](https://www.github.com/googleapis/nodejs-cloud-container/commit/c39495e)) + + +### Features + +* .d.ts for protos ([#231](https://www.github.com/googleapis/nodejs-cloud-container/issues/231)) ([290fc8a](https://www.github.com/googleapis/nodejs-cloud-container/commit/290fc8a)) + ## [1.2.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.1.4...v1.2.0) (2019-09-16) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 3014c8f6803..2da29106657 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.2.0", + "version": "1.3.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { From 884941e55697012073c70ae456105b7e8e50fc99 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 21 Oct 2019 18:16:59 -0700 Subject: [PATCH 154/371] fix(deps): bump google-gax to 1.7.5 (#240) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2da29106657..4ab8d781f96 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -37,7 +37,7 @@ "predocs-test": "npm run docs" }, "dependencies": { - "google-gax": "^1.6.3" + "google-gax": "^1.7.5" }, "devDependencies": { "codecov": "^3.5.0", From b3a52193a98f11dc97cabee2997081fb4e9b61a4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 22 Oct 2019 13:31:11 -0700 Subject: [PATCH 155/371] chore: release 1.3.1 (#241) --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 4eabdbe2cab..0d6b9e86dca 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [1.3.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.3.0...v1.3.1) (2019-10-22) + + +### Bug Fixes + +* **deps:** bump google-gax to 1.7.5 ([#240](https://www.github.com/googleapis/nodejs-cloud-container/issues/240)) ([fefaf21](https://www.github.com/googleapis/nodejs-cloud-container/commit/fefaf21f74c817f6b8b6b0ed7a19346c44878d96)) + ## [1.3.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.2.0...v1.3.0) (2019-10-09) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 4ab8d781f96..954d79d20a5 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.3.0", + "version": "1.3.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 5ee09fcba5c..f27011922c7 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.2.0" + "@google-cloud/container": "^1.3.1" }, "devDependencies": { "chai": "^4.2.0", From e7c55e0bd2e809fa584c705fd0698419cabb09d9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 5 Nov 2019 11:41:27 -0800 Subject: [PATCH 156/371] chore: exclude gapic files from code coverage (#244) --- packages/google-container/.nycrc | 1 - packages/google-container/synth.metadata | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/google-container/.nycrc b/packages/google-container/.nycrc index 23e322204ec..367688844eb 100644 --- a/packages/google-container/.nycrc +++ b/packages/google-container/.nycrc @@ -10,7 +10,6 @@ "**/docs", "**/samples", "**/scripts", - "**/src/**/v*/**/*.js", "**/protos", "**/test", ".jsdoc.js", diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index c46e4e04f66..4a7c2a0e9bd 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,26 +1,26 @@ { - "updateTime": "2019-10-01T11:12:20.844264Z", + "updateTime": "2019-11-05T12:09:53.811391Z", "sources": [ { "generator": { "name": "artman", - "version": "0.37.1", - "dockerImage": "googleapis/artman@sha256:6068f67900a3f0bdece596b97bda8fc70406ca0e137a941f4c81d3217c994a80" + "version": "0.41.0", + "dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "ce3c574d1266026cebea3a893247790bd68191c2", - "internalRef": "272147209" + "sha": "8c6569ced063c08a48272de2e887860d0c40d388", + "internalRef": "278552094" } }, { "template": { "name": "node_library", "origin": "synthtool.gcp", - "version": "2019.5.2" + "version": "2019.10.17" } } ], From 8a1d00d079661f72f2c3846cf0c1e42971d281c1 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Wed, 13 Nov 2019 12:27:41 -0800 Subject: [PATCH 157/371] fix(docs): snippets are now replaced in jsdoc comments (#245) --- packages/google-container/.jsdoc.js | 3 ++- packages/google-container/package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index cfc9d66e4e5..c5451c153d2 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -26,7 +26,8 @@ module.exports = { destination: './docs/' }, plugins: [ - 'plugins/markdown' + 'plugins/markdown', + 'jsdoc-region-tag' ], source: { excludePattern: '(^|\\/|\\\\)[._]', diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 954d79d20a5..75f00ebe160 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -48,6 +48,7 @@ "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", + "jsdoc-region-tag": "^1.0.2", "linkinator": "^1.5.0", "mocha": "^6.1.4", "nyc": "^14.1.1", From 1e897d1d3be1cdee62622bf6347e1980dded02fa Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 13 Nov 2019 12:54:27 -0800 Subject: [PATCH 158/371] feat: support listUsableSubnetworks rpc and new node config (#246) --- .../google/container/v1/cluster_service.proto | 1361 +- packages/google-container/protos/protos.d.ts | 3532 ++- packages/google-container/protos/protos.js | 23736 ++++++++++------ packages/google-container/protos/protos.json | 1000 +- .../src/v1/cluster_manager_client.js | 449 +- .../src/v1/cluster_manager_client_config.json | 67 +- .../container/v1/doc_cluster_service.js | 1092 +- .../v1/doc/google/protobuf/doc_timestamp.js | 119 + packages/google-container/synth.metadata | 10 +- packages/google-container/test/gapic-v1.js | 67 + 10 files changed, 21546 insertions(+), 9887 deletions(-) create mode 100644 packages/google-container/src/v1/doc/google/protobuf/doc_timestamp.js diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index db7744d04e8..86475baad30 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,18 +18,23 @@ syntax = "proto3"; package google.container.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.Container.V1"; option go_package = "google.golang.org/genproto/googleapis/container/v1;container"; option java_multiple_files = true; option java_outer_classname = "ClusterServiceProto"; option java_package = "com.google.container.v1"; -option csharp_namespace = "Google.Cloud.Container.V1"; option php_namespace = "Google\\Cloud\\Container\\V1"; - // Google Kubernetes Engine Cluster Manager v1 service ClusterManager { + option (google.api.default_host) = "container.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Lists all clusters owned by a project in either the specified zone or all // zones. rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { @@ -39,6 +44,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/clusters" } }; + option (google.api.method_signature) = "project_id,zone"; } // Gets the details of a specific cluster. @@ -49,6 +55,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; } // Creates a cluster, consisting of the specified number and type of Google @@ -58,12 +65,12 @@ service ClusterManager { // [default network](/compute/docs/networks-and-firewalls#networks). // // One firewall is added for the cluster. After cluster creation, - // the cluster creates routes for each node to allow the containers + // the Kubelet creates routes for each node to allow the containers // on that node to communicate with all other instances in the // cluster. // // Finally, an entry is added to the project's global metadata indicating - // which CIDR range is being used by the cluster. + // which CIDR range the cluster is using. rpc CreateCluster(CreateClusterRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/clusters" @@ -73,6 +80,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster"; } // Updates the settings of a specific cluster. @@ -85,9 +93,10 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,update"; } - // Updates the version and/or image type for a specific node pool. + // Updates the version and/or image type for the specified node pool. rpc UpdateNodePool(UpdateNodePoolRequest) returns (Operation) { option (google.api.http) = { put: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" @@ -99,7 +108,7 @@ service ClusterManager { }; } - // Sets the autoscaling settings for a specific node pool. + // Sets the autoscaling settings for the specified node pool. rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling" @@ -121,6 +130,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,logging_service"; } // Sets the monitoring service for a specific cluster. @@ -133,6 +143,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,monitoring_service"; } // Sets the addons for a specific cluster. @@ -145,6 +156,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,addons_config"; } // Sets the locations for a specific cluster. @@ -157,6 +169,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,locations"; } // Updates the master for a specific cluster. @@ -169,11 +182,12 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,master_version"; } - // Used to set master auth materials. Currently supports :- - // Changing the admin password for a specific cluster. - // This can be either via password generation or explicitly set the password. + // Sets master auth materials. Currently supports changing the admin password + // or a specific cluster, either via password generation or explicitly setting + // the password. rpc SetMasterAuth(SetMasterAuthRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth" @@ -191,9 +205,9 @@ service ClusterManager { // Firewalls and routes that were configured during cluster creation // are also deleted. // - // Other Google Compute Engine resources that might be in use by the cluster - // (e.g. load balancer resources) will not be deleted if they weren't present - // at the initial create time. + // Other Google Compute Engine resources that might be in use by the cluster, + // such as load balancer resources, are not deleted if they weren't present + // when the cluster was initially created. rpc DeleteCluster(DeleteClusterRequest) returns (Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/clusters/*}" @@ -201,6 +215,7 @@ service ClusterManager { delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; } // Lists all operations in a project in a specific zone or all zones. @@ -211,6 +226,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/operations" } }; + option (google.api.method_signature) = "project_id,zone"; } // Gets the specified operation. @@ -221,6 +237,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" } }; + option (google.api.method_signature) = "project_id,zone,operation_id"; } // Cancels the specified operation. @@ -233,9 +250,10 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,operation_id"; } - // Returns configuration info about the Kubernetes Engine service. + // Returns configuration info about the Google Kubernetes Engine service. rpc GetServerConfig(GetServerConfigRequest) returns (ServerConfig) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*}/serverConfig" @@ -243,6 +261,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/serverconfig" } }; + option (google.api.method_signature) = "project_id,zone"; } // Lists the node pools for a cluster. @@ -253,9 +272,10 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; } - // Retrieves the node pool requested. + // Retrieves the requested node pool. rpc GetNodePool(GetNodePoolRequest) returns (NodePool) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" @@ -263,6 +283,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; } // Creates a node pool for a cluster. @@ -275,6 +296,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool"; } // Deletes a node pool from a cluster. @@ -285,10 +307,11 @@ service ClusterManager { delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; } - // Roll back the previously Aborted or Failed NodePool upgrade. - // This will be an no-op if the last upgrade successfully completed. + // Rolls back a previously Aborted or Failed NodePool upgrade. + // This makes no changes if the last upgrade successfully completed. rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback" @@ -298,6 +321,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; } // Sets the NodeManagement options for a node pool. @@ -334,9 +358,10 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,enabled"; } - // Start master IP rotation. + // Starts master IP rotation. rpc StartIPRotation(StartIPRotationRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation" @@ -346,6 +371,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; } // Completes master IP rotation. @@ -358,6 +384,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; } // Sets the size for a specific node pool. @@ -372,7 +399,7 @@ service ClusterManager { }; } - // Enables/Disables Network Policy for a cluster. + // Enables or disables Network Policy for a cluster. rpc SetNetworkPolicy(SetNetworkPolicyRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy" @@ -382,6 +409,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,network_policy"; } // Sets the maintenance policy for a cluster. @@ -394,6 +422,14 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,maintenance_policy"; + } + + // Lists subnetworks that are usable for creating clusters in a project. + rpc ListUsableSubnetworks(ListUsableSubnetworksRequest) returns (ListUsableSubnetworksResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*}/aggregated/usableSubnetworks" + }; } } @@ -443,6 +479,7 @@ message NodeConfig { // "cluster-name" // "cluster-uid" // "configure-sh" + // "containerd-configure-sh" // "enable-os-login" // "gci-update-strategy" // "gci-ensure-gke-docker" @@ -450,6 +487,13 @@ message NodeConfig { // "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" // // 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 @@ -474,9 +518,9 @@ message NodeConfig { // The number of local SSD disks to be attached to the node. // - // The limit for this value is dependant upon the maximum number of + // The limit for this value is dependent upon the maximum number of // disks available on a machine per zone. See: - // https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits + // https://cloud.google.com/compute/docs/disks/local-ssd // for more information. int32 local_ssd_count = 7; @@ -509,6 +553,64 @@ message NodeConfig { // information, read [how to specify min CPU // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) string min_cpu_platform = 13; + + // 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; + + // Shielded Instance options. + ShieldedInstanceConfig shielded_instance_config = 20; +} + +// A set of Shielded Instance options. +message ShieldedInstanceConfig { + // Defines whether the instance has Secure Boot enabled. + // + // Secure Boot helps ensure that the system only runs authentic software by + // verifying the digital signature of all boot components, and halting the + // boot process if signature verification fails. + bool enable_secure_boot = 1; + + // Defines whether the instance has integrity monitoring enabled. + // + // Enables monitoring and attestation of the boot integrity of the instance. + // The attestation is performed against the integrity policy baseline. This + // baseline is initially derived from the implicitly trusted boot image when + // the instance is created. + bool enable_integrity_monitoring = 2; +} + +// 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/ +message NodeTaint { + // Possible values for Effect in taint. + enum Effect { + // Not set + EFFECT_UNSPECIFIED = 0; + + // NoSchedule + NO_SCHEDULE = 1; + + // PreferNoSchedule + PREFER_NO_SCHEDULE = 2; + + // NoExecute + NO_EXECUTE = 3; + } + + // Key for taint. + string key = 1; + + // Value for taint. + string value = 2; + + // Effect for taint. + Effect effect = 3; } // The authentication information for accessing the master endpoint. @@ -516,8 +618,8 @@ message NodeConfig { // certificates. message MasterAuth { // The username to use for HTTP basic authentication to the master endpoint. - // For clusters v1.6.0 and later, you can disable basic authentication by - // providing an empty username. + // 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; // The password to use for HTTP basic authentication to the master endpoint. @@ -563,12 +665,20 @@ message AddonsConfig { HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; // Configuration for the Kubernetes Dashboard. - KubernetesDashboard kubernetes_dashboard = 3; + // This addon is deprecated, and will be disabled in 1.15. It is recommended + // to use the Cloud Console to manage and monitor your Kubernetes clusters, + // workloads and applications. For more information, see: + // https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; // Configuration for NetworkPolicy. This only tracks whether the addon // is enabled or not on the Master, it does not track whether network policy // is enabled for the nodes. NetworkPolicyConfig network_policy_config = 4; + + // Configuration for the Cloud Run addon, which allows the user to use a + // managed Knative service. + CloudRunConfig cloud_run_config = 7; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -627,6 +737,23 @@ message PrivateClusterConfig { string public_endpoint = 5; } +// Configuration for returning group information from authenticators. +message AuthenticatorGroupsConfig { + // Whether this cluster should return group membership lookups + // during authentication using a group of security groups. + bool enabled = 1; + + // The name of the security group-of-groups to be used. Only relevant + // if enabled = true. + string security_group = 2; +} + +// Configuration options for the Cloud Run feature. +message CloudRunConfig { + // Whether Cloud Run addon is enabled for this cluster. + bool disabled = 1; +} + // Configuration options for the master authorized networks feature. Enabled // master authorized networks will disallow all external traffic to access // Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -644,7 +771,7 @@ message MasterAuthorizedNetworksConfig { // Whether or not master authorized networks is enabled. bool enabled = 1; - // cidr_blocks define up to 10 external networks that could access + // cidr_blocks define up to 50 external networks that could access // Kubernetes master through HTTPS. repeated CidrBlock cidr_blocks = 2; } @@ -678,6 +805,13 @@ message NetworkPolicy { bool enabled = 2; } +// Configuration for Binary Authorization. +message BinaryAuthorization { + // Enable Binary Authorization for this cluster. If enabled, all container + // images will be validated by Binary Authorization. + bool enabled = 1; +} + // Configuration for controlling how IPs are allocated in the cluster. message IPAllocationPolicy { // Whether alias IPs will be used for pod IPs in the cluster. @@ -769,6 +903,23 @@ 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 services_ipv4_cidr_block = 11; + + // The IP address range of the Cloud TPUs in this cluster. If unspecified, a + // range will be automatically chosen with the default size. + // + // This field is only applicable when `use_ip_aliases` is true. + // + // If unspecified, the range will use the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + // `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; } // A Google Kubernetes Engine cluster. @@ -803,7 +954,8 @@ message Cluster { } // The name of this cluster. The name must be unique within this project - // and zone, and can be up to 40 characters with the following restrictions: + // and location (e.g. zone or region), and can be up to 40 characters with + // the following restrictions: // // * Lowercase letters, numbers, and hyphens only. // * Must start with a letter. @@ -821,26 +973,35 @@ message Cluster { // "node_pool" object, since this configuration (along with the // "node_config") will be used to create a "NodePool" object with an // auto-generated name. Do not use this and a node_pool at the same time. - int32 initial_node_count = 3; + // + // This field is deprecated, use node_pool.initial_node_count instead. + int32 initial_node_count = 3 [deprecated = true]; // Parameters used in creating the cluster's nodes. - // See `nodeConfig` for the description of its properties. // For requests, this field should only be used in lieu of a // "node_pool" object, since this configuration (along with the // "initial_node_count") will be used to create a "NodePool" object with an // auto-generated name. Do not use this and a node_pool at the same time. // For responses, this field will be populated with the node configuration of - // the first node pool. + // the first node pool. (For configuration of each node pool, see + // `node_pool.config`) // // If unspecified, the defaults are used. - NodeConfig node_config = 4; + // This field is deprecated, use node_pool.config instead. + NodeConfig node_config = 4 [deprecated = true]; // The authentication information for accessing the master endpoint. + // If unspecified, the defaults are used: + // For clusters before v1.12, if master_auth is unspecified, `username` will + // be set to "admin", a random password will be generated, and a client + // certificate will be issued. MasterAuth master_auth = 5; // 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. // * if left as an empty string,`logging.googleapis.com` will be used. @@ -880,7 +1041,7 @@ message Cluster { repeated NodePool node_pools = 12; // The list of Google Compute Engine - // [locations](/compute/docs/zones#available) in which the cluster's nodes + // [zones](/compute/docs/zones#available) in which the cluster's nodes // should be located. repeated string locations = 13; @@ -914,12 +1075,36 @@ message Cluster { // Configure the maintenance policy for this cluster. MaintenancePolicy maintenance_policy = 23; + // Configuration for Binary Authorization. + BinaryAuthorization binary_authorization = 24; + + // Cluster-level autoscaling configuration. + ClusterAutoscaling autoscaling = 26; + // Configuration for cluster networking. NetworkConfig network_config = 27; + // The default constraint on the maximum number of pods that can be run + // simultaneously on a node in the node pool of this cluster. Only honored + // if cluster created with IP Alias support. + MaxPodsConstraint default_max_pods_constraint = 30; + + // Configuration for exporting resource usages. Resource usage export is + // disabled when this config is unspecified. + ResourceUsageExportConfig resource_usage_export_config = 33; + + // Configuration controlling RBAC group membership information. + AuthenticatorGroupsConfig authenticator_groups_config = 34; + // Configuration for private cluster. PrivateClusterConfig private_cluster_config = 37; + // Configuration of etcd encryption. + DatabaseEncryption database_encryption = 38; + + // Cluster-level Vertical Pod Autoscaling configuration. + VerticalPodAutoscaling vertical_pod_autoscaling = 39; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -956,7 +1141,7 @@ message Cluster { string current_master_version = 104; // [Output only] Deprecated, use - // [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool) + // [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.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. @@ -975,7 +1160,8 @@ message Cluster { // [Output only] The size of the address space on each node for hosting // containers. This is provisioned from within the `container_ipv4_cidr` - // range. + // range. This field will only be set when cluster is in route-based network + // mode. int32 node_ipv4_cidr_size = 109; // [Output only] The IP address range of the Kubernetes services in @@ -988,8 +1174,9 @@ message Cluster { // Deprecated. Use node_pools.instance_group_urls. repeated string instance_group_urls = 111 [deprecated = true]; - // [Output only] The number of nodes currently in the cluster. - int32 current_node_count = 112; + // [Output only] The number of nodes currently in the cluster. Deprecated. + // Call Kubernetes API directly to retrieve node information. + int32 current_node_count = 112 [deprecated = true]; // [Output only] The time the cluster will be automatically // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. @@ -1000,6 +1187,17 @@ message Cluster { // [region](/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. + bool enable_tpu = 115; + + // [Output only] The IP address range of the Cloud TPUs in this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `1.2.3.4/29`). + string tpu_ipv4_cidr_block = 116; + + // Which conditions caused the current cluster state. + repeated StatusCondition conditions = 118; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -1022,6 +1220,8 @@ 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 string desired_monitoring_service = 5; @@ -1039,6 +1239,9 @@ message ClusterUpdate { // NOTE: Set the "desired_node_pool" field as well. string desired_image_type = 8; + // Configuration of etcd encryption. + DatabaseEncryption desired_database_encryption = 46; + // 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 @@ -1046,7 +1249,7 @@ message ClusterUpdate { NodePoolAutoscaling desired_node_pool_autoscaling = 9; // The desired list of Google Compute Engine - // [locations](/compute/docs/zones#available) in which the cluster's nodes + // [zones](/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. @@ -1057,6 +1260,30 @@ message ClusterUpdate { // The desired configuration options for master authorized networks feature. MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + // Cluster-level autoscaling configuration. + ClusterAutoscaling desired_cluster_autoscaling = 15; + + // The desired configuration options for the Binary Authorization feature. + BinaryAuthorization desired_binary_authorization = 16; + + // 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 + string desired_logging_service = 19; + + // The desired configuration for exporting resource usage. + ResourceUsageExportConfig desired_resource_usage_export_config = 21; + + // Cluster-level Vertical Pod Autoscaling configuration. + VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + + // The desired config of Intra-node visibility. + IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + // The Kubernetes version to change the master to. // // Users may specify either explicit versions offered by @@ -1185,24 +1412,36 @@ message Operation { // [Output only] The time the operation completed, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. string end_time = 11; + + // Which conditions caused the current cluster state. + repeated StatusCondition cluster_conditions = 13; + + // Which conditions caused the current node pool state. + repeated StatusCondition nodepool_conditions = 14; } // CreateClusterRequest creates a cluster. message CreateClusterRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // A [cluster + // Required. A [cluster // resource](/container-engine/reference/rest/v1/projects.zones.clusters) - Cluster cluster = 3; + Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; // The parent (project and location) where the cluster will be created. // Specified in the format 'projects/*/locations/*'. @@ -1211,20 +1450,29 @@ message CreateClusterRequest { // GetClusterRequest gets the settings of a cluster. message GetClusterRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to retrieve. + // Required. Deprecated. The name of the cluster to retrieve. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster) of the cluster to retrieve. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1233,23 +1481,32 @@ message GetClusterRequest { // UpdateClusterRequest updates the settings of a cluster. message UpdateClusterRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // A description of the update. - ClusterUpdate update = 4; + // Required. A description of the update. + ClusterUpdate update = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to update. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1258,26 +1515,38 @@ message UpdateClusterRequest { // UpdateNodePoolRequests update a node pool's image and/or version. message UpdateNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to upgrade. + // Required. Deprecated. The name of the node pool to upgrade. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The Kubernetes version to change the nodes to (typically an + // Required. The Kubernetes version to change the nodes to (typically an // upgrade). // // Users may specify either explicit versions offered by Kubernetes Engine or @@ -1288,10 +1557,10 @@ message UpdateNodePoolRequest { // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version // - "1.X.Y-gke.N": picks an explicit Kubernetes version // - "-": picks the Kubernetes master version - string node_version = 5; + string node_version = 5 [(google.api.field_behavior) = REQUIRED]; - // The desired image type for the node pool. - string image_type = 6; + // Required. The desired image type for the node pool. + string image_type = 6 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster, node pool) of the node pool to // update. Specified in the format @@ -1301,27 +1570,39 @@ message UpdateNodePoolRequest { // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. message SetNodePoolAutoscalingRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to upgrade. + // Required. Deprecated. The name of the node pool to upgrade. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Autoscaling configuration for the node pool. - NodePoolAutoscaling autoscaling = 5; + // Required. Autoscaling configuration for the node pool. + NodePoolAutoscaling autoscaling = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster, node pool) of the node pool to set // autoscaler settings. Specified in the format @@ -1331,27 +1612,33 @@ message SetNodePoolAutoscalingRequest { // SetLoggingServiceRequest sets the logging service of a cluster. message SetLoggingServiceRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2; + string zone = 2 [(google.api.field_behavior) = REQUIRED]; - // Deprecated. The name of the cluster to upgrade. + // Required. 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The logging service the cluster should use to write metrics. + // Required. The logging service the cluster should use to write metrics. // Currently available options: // // * "logging.googleapis.com" - the Google Cloud Logging service // * "none" - no metrics will be exported from the cluster - string logging_service = 4; + string logging_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set logging. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1360,27 +1647,38 @@ message SetLoggingServiceRequest { // SetMonitoringServiceRequest sets the monitoring service of a cluster. message SetMonitoringServiceRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The monitoring service the cluster should use to write metrics. + // 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 - string monitoring_service = 4; + string monitoring_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set monitoring. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1389,24 +1687,33 @@ message SetMonitoringServiceRequest { // SetAddonsConfigRequest sets the addons associated with the cluster. message SetAddonsConfigRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The desired configurations for the various addons available to run in the + // Required. The desired configurations for the various addons available to run in the // cluster. - AddonsConfig addons_config = 4; + AddonsConfig addons_config = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set addons. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1415,29 +1722,38 @@ message SetAddonsConfigRequest { // SetLocationsRequest sets the locations of the cluster. message SetLocationsRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The desired list of Google Compute Engine - // [locations](/compute/docs/zones#available) in which the cluster's nodes + // Required. The desired list of Google Compute Engine + // [zones](/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; + repeated string locations = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set locations. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1446,22 +1762,31 @@ message SetLocationsRequest { // UpdateMasterRequest updates the master of the cluster. message UpdateMasterRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The Kubernetes version to change the master to. + // Required. The Kubernetes version to change the master to. // // Users may specify either explicit versions offered by Kubernetes Engine or // version aliases, which have the following behavior: @@ -1471,7 +1796,7 @@ message UpdateMasterRequest { // - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version // - "1.X.Y-gke.N": picks an explicit Kubernetes version // - "-": picks the default Kubernetes version - string master_version = 4; + string master_version = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to update. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1498,26 +1823,35 @@ message SetMasterAuthRequest { SET_USERNAME = 3; } - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The exact form of action to be taken on the master auth. - Action action = 4; + // Required. The exact form of action to be taken on the master auth. + Action action = 4 [(google.api.field_behavior) = REQUIRED]; - // A description of the update. - MasterAuth update = 5; + // Required. A description of the update. + MasterAuth update = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set auth. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1526,20 +1860,29 @@ message SetMasterAuthRequest { // DeleteClusterRequest deletes a cluster. message DeleteClusterRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to delete. + // Required. Deprecated. The name of the cluster to delete. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster) of the cluster to delete. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1548,16 +1891,22 @@ message DeleteClusterRequest { // ListClustersRequest lists clusters. message ListClustersRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The parent (project and location) where the clusters will be listed. // Specified in the format 'projects/*/locations/*'. @@ -1578,20 +1927,29 @@ message ListClustersResponse { // GetOperationRequest gets a single operation. message GetOperationRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The server-assigned `name` of the operation. + // Required. Deprecated. The server-assigned `name` of the operation. // This field has been deprecated and replaced by the name field. - string operation_id = 3 [deprecated = true]; + string operation_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, operation id) of the operation to get. // Specified in the format 'projects/*/locations/*/operations/*'. @@ -1600,15 +1958,21 @@ message GetOperationRequest { // ListOperationsRequest lists operations. message ListOperationsRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The parent (project and location) where the operations will be listed. // Specified in the format 'projects/*/locations/*'. @@ -1618,19 +1982,28 @@ message ListOperationsRequest { // CancelOperationRequest cancels a single operation. message CancelOperationRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The server-assigned `name` of the operation. + // Required. Deprecated. The server-assigned `name` of the operation. // This field has been deprecated and replaced by the name field. - string operation_id = 3 [deprecated = true]; + string operation_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, operation id) of the operation to cancel. // Specified in the format 'projects/*/locations/*/operations/*'. @@ -1649,18 +2022,24 @@ message ListOperationsResponse { // Gets the current Kubernetes Engine service configuration. message GetServerConfigRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) to return operations for. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The name (project and location) of the server config to get - // Specified in the format 'projects/*/locations/*'. + // The name (project and location) of the server config to get, + // specified in the format 'projects/*/locations/*'. string name = 4; } @@ -1684,23 +2063,32 @@ message ServerConfig { // CreateNodePoolRequest creates a node pool for a cluster. message CreateNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the parent field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The node pool to create. - NodePool node_pool = 4; + // Required. The node pool to create. + NodePool node_pool = 4 [(google.api.field_behavior) = REQUIRED]; // The parent (project, location, cluster id) where the node pool will be // created. Specified in the format @@ -1710,24 +2098,36 @@ message CreateNodePoolRequest { // DeleteNodePoolRequest deletes a node pool for a cluster. message DeleteNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to delete. + // Required. Deprecated. The name of the node pool to delete. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster, node pool id) of the node pool to // delete. Specified in the format @@ -1737,20 +2137,29 @@ message DeleteNodePoolRequest { // ListNodePoolsRequest lists the node pool(s) for a cluster. message ListNodePoolsRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the parent field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The parent (project, location, cluster id) where the node pools will be // listed. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1759,24 +2168,36 @@ message ListNodePoolsRequest { // GetNodePoolRequest retrieves a node pool for a cluster. message GetNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool. + // Required. Deprecated. The name of the node pool. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster, node pool id) of the node pool to // get. Specified in the format @@ -1858,6 +2279,16 @@ message NodePool { // NodeManagement configuration for this NodePool. NodeManagement management = 5; + + // The constraint on the maximum number of pods that can be run + // simultaneously on a node in the node pool. + MaxPodsConstraint max_pods_constraint = 6; + + // Which conditions caused the current node pool state. + repeated StatusCondition conditions = 105; + + // [Output only] The pod CIDR block size per node in this node pool. + int32 pod_ipv4_cidr_size = 7; } // NodeManagement defines the set of node management services turned on for the @@ -1895,6 +2326,13 @@ message AutoUpgradeOptions { message MaintenancePolicy { // Specifies the maintenance window in which maintenance may be performed. MaintenanceWindow window = 1; + + // 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 + // resource version and include it with requests to set the policy. + string resource_version = 3; } // MaintenanceWindow defines the maintenance window to be used for the cluster. @@ -1902,14 +2340,68 @@ message MaintenanceWindow { oneof policy { // DailyMaintenanceWindow specifies a daily maintenance operation window. DailyMaintenanceWindow daily_maintenance_window = 2; + + // RecurringWindow specifies some number of recurring time periods for + // maintenance to occur. The time windows may be overlapping. If no + // maintenance windows are set, maintenance can occur at any time. + RecurringTimeWindow recurring_window = 3; } + + // Exceptions to maintenance window. Non-emergency maintenance should not + // occur in these windows. + map maintenance_exclusions = 4; +} + +// Represents an arbitrary window of time. +message TimeWindow { + // The time that the window first starts. + google.protobuf.Timestamp start_time = 1; + + // The time that the window ends. The end time should take place after the + // start time. + google.protobuf.Timestamp end_time = 2; +} + +// Represents an arbitrary window of time that recurs. +message RecurringTimeWindow { + // The window of the first recurrence. + TimeWindow window = 1; + + // An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how + // this window reccurs. They go on for the span of time between the start and + // end time. + // + // For example, to have something repeat every weekday, you'd use: + // FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // To repeat some window daily (equivalent to the DailyMaintenanceWindow): + // FREQ=DAILY + // For the first weekend of every month: + // 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 + // + // 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 + // + // 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. + string recurrence = 2; } // Time window specified for daily maintenance operations. message DailyMaintenanceWindow { // Time within the maintenance window to start the maintenance operations. // Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - // format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT. + // format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. string start_time = 2; // [Output only] Duration of the time window, automatically chosen to be @@ -1922,27 +2414,39 @@ message DailyMaintenanceWindow { // SetNodePoolManagementRequest sets the node management properties of a node // pool. message SetNodePoolManagementRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to update. + // Required. Deprecated. The name of the cluster to update. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to update. + // Required. Deprecated. The name of the node pool to update. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // NodeManagement configuration for the node pool. - NodeManagement management = 5; + // Required. NodeManagement configuration for the node pool. + NodeManagement management = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster, node pool id) of the node pool to set // management properties. Specified in the format @@ -1953,27 +2457,39 @@ message SetNodePoolManagementRequest { // SetNodePoolSizeRequest sets the size a node // pool. message SetNodePoolSizeRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to update. + // Required. Deprecated. The name of the cluster to update. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to update. + // Required. Deprecated. The name of the node pool to update. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The desired node count for the pool. - int32 node_count = 5; + // Required. The desired node count for the pool. + int32 node_count = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster, node pool id) of the node pool to set // size. @@ -1985,24 +2501,36 @@ message SetNodePoolSizeRequest { // NodePool upgrade. This will be an no-op if the last upgrade successfully // completed. message RollbackNodePoolUpgradeRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to rollback. + // Required. Deprecated. The name of the cluster to rollback. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to rollback. + // Required. Deprecated. The name of the node pool to rollback. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [deprecated = true]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster, node pool id) of the node poll to // rollback upgrade. @@ -2016,6 +2544,52 @@ message ListNodePoolsResponse { repeated NodePool node_pools = 1; } +// ClusterAutoscaling contains global, per-cluster information +// required by Cluster Autoscaler to automatically adjust +// the size of the cluster and create/delete +// node pools based on the current needs. +message ClusterAutoscaling { + // Enables automatic node pool creation and deletion. + bool enable_node_autoprovisioning = 1; + + // Contains global constraints regarding minimum and maximum + // amount of resources in the cluster. + repeated ResourceLimit resource_limits = 2; + + // AutoprovisioningNodePoolDefaults contains defaults for a node pool + // created by NAP. + AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + + // The list of Google Compute Engine [zones](/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. + 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. + string service_account = 2; +} + +// Contains information about amount of some resource in the cluster. +// For memory, value should be in GB. +message ResourceLimit { + // Resource name "cpu", "memory" or gpu-specific string. + string resource_type = 1; + + // Minimum amount of the resource in the cluster. + int64 minimum = 2; + + // Maximum amount of the resource in the cluster. + int64 maximum = 3; +} + // NodePoolAutoscaling contains information required by cluster autoscaler to // adjust the size of the node pool to the current cluster usage. message NodePoolAutoscaling { @@ -2029,37 +2603,49 @@ message NodePoolAutoscaling { // Maximum number of nodes in the NodePool. Must be >= min_node_count. There // has to enough quota to scale up the cluster. int32 max_node_count = 3; + + // Can this node pool be deleted automatically. + bool autoprovisioned = 4; } // SetLabelsRequest sets the Google Cloud Platform labels on a Google Container // Engine cluster, which will in turn set them for Google Compute Engine // resources used by that cluster message SetLabelsRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The labels to set for that cluster. - map resource_labels = 4; + // Required. The labels to set for that cluster. + map resource_labels = 4 [(google.api.field_behavior) = REQUIRED]; - // The fingerprint of the previous set of labels for this resource, + // Required. The fingerprint of the previous set of labels for this resource, // 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 // resource to get the latest fingerprint. - string label_fingerprint = 5; + string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set labels. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2069,23 +2655,32 @@ message SetLabelsRequest { // SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for // a cluster. message SetLegacyAbacRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to update. + // Required. Deprecated. The name of the cluster to update. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Whether ABAC authorization will be enabled in the cluster. - bool enabled = 4; + // Required. Whether ABAC authorization will be enabled in the cluster. + bool enabled = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set legacy abac. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2095,20 +2690,29 @@ message SetLegacyAbacRequest { // StartIPRotationRequest creates a new IP for the cluster and then performs // a node upgrade on each node pool to point to the new IP. message StartIPRotationRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster id) of the cluster to start IP // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2120,20 +2724,29 @@ message StartIPRotationRequest { // CompleteIPRotationRequest moves the cluster master back into single-IP mode. message CompleteIPRotationRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster id) of the cluster to complete IP // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2146,29 +2759,38 @@ message AcceleratorConfig { int64 accelerator_count = 1; // The accelerator type resource name. List of supported accelerators - // [here](/compute/docs/gpus/#Introduction) + // [here](/compute/docs/gpus) string accelerator_type = 2; } // SetNetworkPolicyRequest enables/disables network policy for a cluster. message SetNetworkPolicyRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Configuration options for the NetworkPolicy feature. - NetworkPolicy network_policy = 4; + // Required. Configuration options for the NetworkPolicy feature. + NetworkPolicy network_policy = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set networking // policy. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2177,21 +2799,21 @@ message SetNetworkPolicyRequest { // SetMaintenancePolicyRequest sets the maintenance policy for a cluster. message SetMaintenancePolicyRequest { - // The Google Developers Console [project ID or project + // Required. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - // The name of the Google Compute Engine + // Required. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + string zone = 2 [(google.api.field_behavior) = REQUIRED]; - // The name of the cluster to update. - string cluster_id = 3; + // Required. The name of the cluster to update. + string cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; - // The maintenance policy to be set for the cluster. An empty field + // Required. The maintenance policy to be set for the cluster. An empty field // clears the existing maintenance policy. - MaintenancePolicy maintenance_policy = 4; + MaintenancePolicy maintenance_policy = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set maintenance // policy. @@ -2199,6 +2821,40 @@ message SetMaintenancePolicyRequest { string name = 5; } +// StatusCondition describes why a cluster or a node pool has a certain status +// (e.g., ERROR or DEGRADED). +message StatusCondition { + // Code for each condition + enum Code { + // UNKNOWN indicates a generic condition. + UNKNOWN = 0; + + // GCE_STOCKOUT indicates a Google Compute Engine stockout. + GCE_STOCKOUT = 1; + + // GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot + // service account. + GKE_SERVICE_ACCOUNT_DELETED = 2; + + // Google Compute Engine quota was exceeded. + GCE_QUOTA_EXCEEDED = 3; + + // Cluster state was manually changed by an SRE due to a system logic error. + SET_BY_OPERATOR = 4; + + // Unable to perform an encrypt operation against the CloudKMS key used for + // etcd level encryption. + // More codes TBA + CLOUD_KMS_KEY_ERROR = 7; + } + + // Machine-friendly representation of the condition + Code code = 1; + + // Human-friendly representation of the condition + string message = 2; +} + // NetworkConfig reports the relative names of network & subnetwork. message NetworkConfig { // Output only. The relative name of the Google Compute Engine @@ -2211,4 +2867,175 @@ message NetworkConfig { // [subnetwork](/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; +} + +// IntraNodeVisibilityConfig contains the desired config of the intra-node +// visibility on this cluster. +message IntraNodeVisibilityConfig { + // Enables intra node visibility for this cluster. + bool enabled = 1; +} + +// Constraints applied to pods. +message MaxPodsConstraint { + // Constraint enforced on the max num of pods per node. + int64 max_pods_per_node = 1; +} + +// Configuration of etcd encryption. +message DatabaseEncryption { + // State of etcd encryption. + enum State { + // Should never be set + UNKNOWN = 0; + + // Secrets in etcd are encrypted. + ENCRYPTED = 1; + + // Secrets in etcd are stored in plain text (at etcd level) - this is + // unrelated to GCE level full disk encryption. + DECRYPTED = 2; + } + + // Denotes the state of etcd encryption. + State state = 2; + + // Name of CloudKMS key to use for the encryption of secrets in etcd. + // Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key + string key_name = 1; +} + +// ListUsableSubnetworksRequest requests the list of usable subnetworks +// available to a user for creating clusters. +message ListUsableSubnetworksRequest { + // The parent project where subnetworks are usable. + // Specified in the format 'projects/*'. + string parent = 1; + + // Filtering currently only supports equality on the networkProjectId and must + // be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + // is the project which owns the listed subnetworks. This defaults to the + // parent project ID. + string filter = 2; + + // The max number of results per page that should be returned. If the number + // of available results is larger than `page_size`, a `next_page_token` is + // returned which can be used to get the next page of results in subsequent + // requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + int32 page_size = 3; + + // Specifies a page token to use. Set this to the nextPageToken returned by + // previous list requests to get the next page of results. + string page_token = 4; +} + +// ListUsableSubnetworksResponse is the response of +// ListUsableSubnetworksRequest. +message ListUsableSubnetworksResponse { + // A list of usable subnetworks in the specified network project. + repeated UsableSubnetwork subnetworks = 1; + + // This token allows you to get the next page of results for list requests. + // If the number of results is larger than `page_size`, use the + // `next_page_token` as a value for the query parameter `page_token` in the + // next request. The value will become empty when there are no more pages. + string next_page_token = 2; +} + +// Secondary IP range of a usable subnetwork. +message UsableSubnetworkSecondaryRange { + // Status shows the current usage of a secondary IP range. + enum Status { + // UNKNOWN is the zero value of the Status enum. It's not a valid status. + UNKNOWN = 0; + + // UNUSED denotes that this range is unclaimed by any cluster. + UNUSED = 1; + + // IN_USE_SERVICE denotes that this range is claimed by a cluster for + // services. It cannot be used for other clusters. + IN_USE_SERVICE = 2; + + // IN_USE_SHAREABLE_POD denotes this range was created by the network admin + // and is currently claimed by a cluster for pods. It can only be used by + // other clusters as a pod range. + IN_USE_SHAREABLE_POD = 3; + + // IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed + // for pods. It cannot be used for other clusters. + IN_USE_MANAGED_POD = 4; + } + + // The name associated with this subnetwork secondary range, used when adding + // an alias IP range to a VM instance. + string range_name = 1; + + // The range of IP addresses belonging to this subnetwork secondary range. + string ip_cidr_range = 2; + + // This field is to determine the status of the secondary range programmably. + Status status = 3; +} + +// UsableSubnetwork resource returns the subnetwork name, its associated network +// and the primary CIDR range. +message UsableSubnetwork { + // Subnetwork Name. + // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + string subnetwork = 1; + + // Network Name. + // Example: projects/my-project/global/networks/my-network + string network = 2; + + // The range of internal addresses that are owned by this subnetwork. + string ip_cidr_range = 3; + + // Secondary IP ranges. + repeated UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + + // A human readable status message representing the reasons for cases where + // the caller cannot use the secondary ranges under the subnet. For example if + // the secondary_ip_ranges is empty due to a permission issue, an insufficient + // permission message will be given by status_message. + string status_message = 5; +} + +// Configuration for exporting cluster resource usages. +message ResourceUsageExportConfig { + // Parameters for using BigQuery as the destination of resource usage export. + message BigQueryDestination { + // The ID of a BigQuery Dataset. + string dataset_id = 1; + } + + // Parameters for controlling consumption metering. + message ConsumptionMeteringConfig { + // Whether to enable consumption metering for this cluster. If enabled, a + // second BigQuery table will be created to hold resource consumption + // records. + bool enabled = 1; + } + + // Configuration to use BigQuery as usage export destination. + BigQueryDestination bigquery_destination = 1; + + // Whether to enable network egress metering for this cluster. If enabled, a + // daemonset will be created in the cluster to meter network egress traffic. + bool enable_network_egress_metering = 2; + + // Configuration to enable resource consumption metering. + ConsumptionMeteringConfig consumption_metering_config = 3; +} + +// VerticalPodAutoscaling contains global, per-cluster information +// required by Vertical Pod Autoscaler to automatically adjust +// the resources of pods controlled by it. +message VerticalPodAutoscaling { + // Enables vertical pod autoscaling. + bool enabled = 1; } diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 3484b8177d1..25197370512 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -447,6 +447,20 @@ export namespace google { * @returns Promise */ public setMaintenancePolicy(request: google.container.v1.ISetMaintenancePolicyRequest): Promise; + + /** + * Calls ListUsableSubnetworks. + * @param request ListUsableSubnetworksRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListUsableSubnetworksResponse + */ + public listUsableSubnetworks(request: google.container.v1.IListUsableSubnetworksRequest, callback: google.container.v1.ClusterManager.ListUsableSubnetworksCallback): void; + + /** + * Calls ListUsableSubnetworks. + * @param request ListUsableSubnetworksRequest message or plain object + * @returns Promise + */ + public listUsableSubnetworks(request: google.container.v1.IListUsableSubnetworksRequest): Promise; } namespace ClusterManager { @@ -660,6 +674,13 @@ export namespace google { * @param [response] Operation */ type SetMaintenancePolicyCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + + /** + * Callback as used by {@link google.container.v1.ClusterManager#listUsableSubnetworks}. + * @param error Error, if any + * @param [response] ListUsableSubnetworksResponse + */ + type ListUsableSubnetworksCallback = (error: (Error|null), response?: google.container.v1.ListUsableSubnetworksResponse) => void; } /** Properties of a NodeConfig. */ @@ -703,6 +724,12 @@ export namespace google { /** NodeConfig minCpuPlatform */ minCpuPlatform?: (string|null); + + /** NodeConfig taints */ + taints?: (google.container.v1.INodeTaint[]|null); + + /** NodeConfig shieldedInstanceConfig */ + shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null); } /** Represents a NodeConfig. */ @@ -753,6 +780,12 @@ export namespace google { /** NodeConfig minCpuPlatform. */ public minCpuPlatform: string; + /** NodeConfig taints. */ + public taints: google.container.v1.INodeTaint[]; + + /** NodeConfig shieldedInstanceConfig. */ + public shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null); + /** * Creates a new NodeConfig instance using the specified properties. * @param [properties] Properties to set @@ -824,6 +857,215 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a ShieldedInstanceConfig. */ + interface IShieldedInstanceConfig { + + /** ShieldedInstanceConfig enableSecureBoot */ + enableSecureBoot?: (boolean|null); + + /** ShieldedInstanceConfig enableIntegrityMonitoring */ + enableIntegrityMonitoring?: (boolean|null); + } + + /** Represents a ShieldedInstanceConfig. */ + class ShieldedInstanceConfig implements IShieldedInstanceConfig { + + /** + * Constructs a new ShieldedInstanceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IShieldedInstanceConfig); + + /** ShieldedInstanceConfig enableSecureBoot. */ + public enableSecureBoot: boolean; + + /** ShieldedInstanceConfig enableIntegrityMonitoring. */ + public enableIntegrityMonitoring: boolean; + + /** + * Creates a new ShieldedInstanceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ShieldedInstanceConfig instance + */ + public static create(properties?: google.container.v1.IShieldedInstanceConfig): google.container.v1.ShieldedInstanceConfig; + + /** + * Encodes the specified ShieldedInstanceConfig message. Does not implicitly {@link google.container.v1.ShieldedInstanceConfig.verify|verify} messages. + * @param message ShieldedInstanceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IShieldedInstanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ShieldedInstanceConfig message, length delimited. Does not implicitly {@link google.container.v1.ShieldedInstanceConfig.verify|verify} messages. + * @param message ShieldedInstanceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IShieldedInstanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ShieldedInstanceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ShieldedInstanceConfig + * @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.ShieldedInstanceConfig; + + /** + * Decodes a ShieldedInstanceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ShieldedInstanceConfig + * @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.ShieldedInstanceConfig; + + /** + * Verifies a ShieldedInstanceConfig 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 ShieldedInstanceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ShieldedInstanceConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ShieldedInstanceConfig; + + /** + * Creates a plain object from a ShieldedInstanceConfig message. Also converts values to other types if specified. + * @param message ShieldedInstanceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ShieldedInstanceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ShieldedInstanceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NodeTaint. */ + interface INodeTaint { + + /** NodeTaint key */ + key?: (string|null); + + /** NodeTaint value */ + value?: (string|null); + + /** NodeTaint effect */ + effect?: (google.container.v1.NodeTaint.Effect|null); + } + + /** Represents a NodeTaint. */ + class NodeTaint implements INodeTaint { + + /** + * Constructs a new NodeTaint. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodeTaint); + + /** NodeTaint key. */ + public key: string; + + /** NodeTaint value. */ + public value: string; + + /** NodeTaint effect. */ + public effect: google.container.v1.NodeTaint.Effect; + + /** + * Creates a new NodeTaint instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeTaint instance + */ + public static create(properties?: google.container.v1.INodeTaint): google.container.v1.NodeTaint; + + /** + * Encodes the specified NodeTaint message. Does not implicitly {@link google.container.v1.NodeTaint.verify|verify} messages. + * @param message NodeTaint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodeTaint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodeTaint message, length delimited. Does not implicitly {@link google.container.v1.NodeTaint.verify|verify} messages. + * @param message NodeTaint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodeTaint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeTaint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeTaint + * @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.NodeTaint; + + /** + * Decodes a NodeTaint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeTaint + * @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.NodeTaint; + + /** + * Verifies a NodeTaint 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 NodeTaint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeTaint + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodeTaint; + + /** + * Creates a plain object from a NodeTaint message. Also converts values to other types if specified. + * @param message NodeTaint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodeTaint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodeTaint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace NodeTaint { + + /** Effect enum. */ + enum Effect { + EFFECT_UNSPECIFIED = 0, + NO_SCHEDULE = 1, + PREFER_NO_SCHEDULE = 2, + NO_EXECUTE = 3 + } + } + /** Properties of a MasterAuth. */ interface IMasterAuth { @@ -1048,6 +1290,9 @@ export namespace google { /** AddonsConfig networkPolicyConfig */ networkPolicyConfig?: (google.container.v1.INetworkPolicyConfig|null); + + /** AddonsConfig cloudRunConfig */ + cloudRunConfig?: (google.container.v1.ICloudRunConfig|null); } /** Represents an AddonsConfig. */ @@ -1071,6 +1316,9 @@ export namespace google { /** AddonsConfig networkPolicyConfig. */ public networkPolicyConfig?: (google.container.v1.INetworkPolicyConfig|null); + /** AddonsConfig cloudRunConfig. */ + public cloudRunConfig?: (google.container.v1.ICloudRunConfig|null); + /** * Creates a new AddonsConfig instance using the specified properties. * @param [properties] Properties to set @@ -1616,160 +1864,346 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a MasterAuthorizedNetworksConfig. */ - interface IMasterAuthorizedNetworksConfig { + /** Properties of an AuthenticatorGroupsConfig. */ + interface IAuthenticatorGroupsConfig { - /** MasterAuthorizedNetworksConfig enabled */ + /** AuthenticatorGroupsConfig enabled */ enabled?: (boolean|null); - /** MasterAuthorizedNetworksConfig cidrBlocks */ - cidrBlocks?: (google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]|null); + /** AuthenticatorGroupsConfig securityGroup */ + securityGroup?: (string|null); } - /** Represents a MasterAuthorizedNetworksConfig. */ - class MasterAuthorizedNetworksConfig implements IMasterAuthorizedNetworksConfig { + /** Represents an AuthenticatorGroupsConfig. */ + class AuthenticatorGroupsConfig implements IAuthenticatorGroupsConfig { /** - * Constructs a new MasterAuthorizedNetworksConfig. + * Constructs a new AuthenticatorGroupsConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IMasterAuthorizedNetworksConfig); + constructor(properties?: google.container.v1.IAuthenticatorGroupsConfig); - /** MasterAuthorizedNetworksConfig enabled. */ + /** AuthenticatorGroupsConfig enabled. */ public enabled: boolean; - /** MasterAuthorizedNetworksConfig cidrBlocks. */ - public cidrBlocks: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]; + /** AuthenticatorGroupsConfig securityGroup. */ + public securityGroup: string; /** - * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. + * Creates a new AuthenticatorGroupsConfig instance using the specified properties. * @param [properties] Properties to set - * @returns MasterAuthorizedNetworksConfig instance + * @returns AuthenticatorGroupsConfig instance */ - public static create(properties?: google.container.v1.IMasterAuthorizedNetworksConfig): google.container.v1.MasterAuthorizedNetworksConfig; + public static create(properties?: google.container.v1.IAuthenticatorGroupsConfig): google.container.v1.AuthenticatorGroupsConfig; /** - * 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 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.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IAuthenticatorGroupsConfig, 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 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.IMasterAuthorizedNetworksConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IAuthenticatorGroupsConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer. + * 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 MasterAuthorizedNetworksConfig + * @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.MasterAuthorizedNetworksConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AuthenticatorGroupsConfig; /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer, length delimited. + * Decodes an AuthenticatorGroupsConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MasterAuthorizedNetworksConfig + * @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.MasterAuthorizedNetworksConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AuthenticatorGroupsConfig; /** - * Verifies a MasterAuthorizedNetworksConfig message. + * 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 a MasterAuthorizedNetworksConfig 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. * @param object Plain object - * @returns MasterAuthorizedNetworksConfig + * @returns AuthenticatorGroupsConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.MasterAuthorizedNetworksConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.AuthenticatorGroupsConfig; /** - * Creates a plain object from a MasterAuthorizedNetworksConfig message. Also converts values to other types if specified. - * @param message MasterAuthorizedNetworksConfig + * 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.MasterAuthorizedNetworksConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.AuthenticatorGroupsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MasterAuthorizedNetworksConfig to JSON. + * Converts this AuthenticatorGroupsConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace MasterAuthorizedNetworksConfig { + /** Properties of a CloudRunConfig. */ + interface ICloudRunConfig { - /** Properties of a CidrBlock. */ - interface ICidrBlock { + /** CloudRunConfig disabled */ + disabled?: (boolean|null); + } - /** CidrBlock displayName */ - displayName?: (string|null); + /** Represents a CloudRunConfig. */ + class CloudRunConfig implements ICloudRunConfig { - /** CidrBlock cidrBlock */ - cidrBlock?: (string|null); - } + /** + * Constructs a new CloudRunConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ICloudRunConfig); - /** Represents a CidrBlock. */ - class CidrBlock implements ICidrBlock { + /** CloudRunConfig disabled. */ + public disabled: boolean; - /** - * Constructs a new CidrBlock. - * @param [properties] Properties to set - */ - constructor(properties?: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock); + /** + * Creates a new CloudRunConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns CloudRunConfig instance + */ + public static create(properties?: google.container.v1.ICloudRunConfig): google.container.v1.CloudRunConfig; - /** CidrBlock displayName. */ - public displayName: string; + /** + * Encodes the specified CloudRunConfig message. Does not implicitly {@link google.container.v1.CloudRunConfig.verify|verify} messages. + * @param message CloudRunConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ICloudRunConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** CidrBlock cidrBlock. */ - public cidrBlock: string; + /** + * Encodes the specified CloudRunConfig message, length delimited. Does not implicitly {@link google.container.v1.CloudRunConfig.verify|verify} messages. + * @param message CloudRunConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ICloudRunConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new CidrBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns CidrBlock instance - */ - public static create(properties?: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock): google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock; + /** + * Decodes a CloudRunConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CloudRunConfig + * @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.CloudRunConfig; - /** - * Encodes the specified CidrBlock message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. - * @param message CidrBlock message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CloudRunConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CloudRunConfig + * @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.CloudRunConfig; - /** - * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. - * @param message CidrBlock message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a CloudRunConfig 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); - /** - * Decodes a CidrBlock message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CidrBlock - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ + /** + * Creates a CloudRunConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CloudRunConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.CloudRunConfig; + + /** + * Creates a plain object from a CloudRunConfig message. Also converts values to other types if specified. + * @param message CloudRunConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.CloudRunConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CloudRunConfig 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. + * @param message MasterAuthorizedNetworksConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.MasterAuthorizedNetworksConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MasterAuthorizedNetworksConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace MasterAuthorizedNetworksConfig { + + /** Properties of a CidrBlock. */ + interface ICidrBlock { + + /** CidrBlock displayName */ + displayName?: (string|null); + + /** CidrBlock cidrBlock */ + cidrBlock?: (string|null); + } + + /** Represents a CidrBlock. */ + class CidrBlock implements ICidrBlock { + + /** + * Constructs a new CidrBlock. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock); + + /** CidrBlock displayName. */ + public displayName: string; + + /** CidrBlock cidrBlock. */ + public cidrBlock: string; + + /** + * Creates a new CidrBlock instance using the specified properties. + * @param [properties] Properties to set + * @returns CidrBlock instance + */ + public static create(properties?: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock): google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock; + + /** + * Encodes the specified CidrBlock message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * @param message CidrBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CidrBlock message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.verify|verify} messages. + * @param message CidrBlock message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CidrBlock message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CidrBlock + * @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.CidrBlock; /** @@ -2006,6 +2440,96 @@ export namespace google { } } + /** Properties of a BinaryAuthorization. */ + interface IBinaryAuthorization { + + /** BinaryAuthorization enabled */ + enabled?: (boolean|null); + } + + /** Represents a BinaryAuthorization. */ + class BinaryAuthorization implements IBinaryAuthorization { + + /** + * Constructs a new BinaryAuthorization. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IBinaryAuthorization); + + /** BinaryAuthorization enabled. */ + public enabled: boolean; + + /** + * Creates a new BinaryAuthorization instance using the specified properties. + * @param [properties] Properties to set + * @returns BinaryAuthorization instance + */ + public static create(properties?: google.container.v1.IBinaryAuthorization): google.container.v1.BinaryAuthorization; + + /** + * Encodes the specified BinaryAuthorization message. Does not implicitly {@link google.container.v1.BinaryAuthorization.verify|verify} messages. + * @param message BinaryAuthorization message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IBinaryAuthorization, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BinaryAuthorization message, length delimited. Does not implicitly {@link google.container.v1.BinaryAuthorization.verify|verify} messages. + * @param message BinaryAuthorization message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IBinaryAuthorization, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BinaryAuthorization message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BinaryAuthorization + * @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.BinaryAuthorization; + + /** + * Decodes a BinaryAuthorization message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BinaryAuthorization + * @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.BinaryAuthorization; + + /** + * Verifies a BinaryAuthorization 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 BinaryAuthorization message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BinaryAuthorization + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.BinaryAuthorization; + + /** + * Creates a plain object from a BinaryAuthorization message. Also converts values to other types if specified. + * @param message BinaryAuthorization + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.BinaryAuthorization, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BinaryAuthorization to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a IPAllocationPolicy. */ interface IIPAllocationPolicy { @@ -2041,6 +2565,9 @@ export namespace google { /** IPAllocationPolicy servicesIpv4CidrBlock */ servicesIpv4CidrBlock?: (string|null); + + /** IPAllocationPolicy tpuIpv4CidrBlock */ + tpuIpv4CidrBlock?: (string|null); } /** Represents a IPAllocationPolicy. */ @@ -2085,6 +2612,9 @@ export namespace google { /** IPAllocationPolicy servicesIpv4CidrBlock. */ public servicesIpv4CidrBlock: string; + /** IPAllocationPolicy tpuIpv4CidrBlock. */ + public tpuIpv4CidrBlock: string; + /** * Creates a new IPAllocationPolicy instance using the specified properties. * @param [properties] Properties to set @@ -2222,12 +2752,33 @@ export namespace google { /** Cluster maintenancePolicy */ maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + /** Cluster binaryAuthorization */ + binaryAuthorization?: (google.container.v1.IBinaryAuthorization|null); + + /** Cluster autoscaling */ + autoscaling?: (google.container.v1.IClusterAutoscaling|null); + /** Cluster networkConfig */ networkConfig?: (google.container.v1.INetworkConfig|null); + /** Cluster defaultMaxPodsConstraint */ + defaultMaxPodsConstraint?: (google.container.v1.IMaxPodsConstraint|null); + + /** Cluster resourceUsageExportConfig */ + resourceUsageExportConfig?: (google.container.v1.IResourceUsageExportConfig|null); + + /** Cluster authenticatorGroupsConfig */ + authenticatorGroupsConfig?: (google.container.v1.IAuthenticatorGroupsConfig|null); + /** Cluster privateClusterConfig */ privateClusterConfig?: (google.container.v1.IPrivateClusterConfig|null); + /** Cluster databaseEncryption */ + databaseEncryption?: (google.container.v1.IDatabaseEncryption|null); + + /** Cluster verticalPodAutoscaling */ + verticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null); + /** Cluster selfLink */ selfLink?: (string|null); @@ -2272,6 +2823,15 @@ export namespace google { /** Cluster location */ location?: (string|null); + + /** Cluster enableTpu */ + enableTpu?: (boolean|null); + + /** Cluster tpuIpv4CidrBlock */ + tpuIpv4CidrBlock?: (string|null); + + /** Cluster conditions */ + conditions?: (google.container.v1.IStatusCondition[]|null); } /** Represents a Cluster. */ @@ -2346,12 +2906,33 @@ export namespace google { /** Cluster maintenancePolicy. */ public maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + /** Cluster binaryAuthorization. */ + public binaryAuthorization?: (google.container.v1.IBinaryAuthorization|null); + + /** Cluster autoscaling. */ + public autoscaling?: (google.container.v1.IClusterAutoscaling|null); + /** Cluster networkConfig. */ public networkConfig?: (google.container.v1.INetworkConfig|null); + /** Cluster defaultMaxPodsConstraint. */ + public defaultMaxPodsConstraint?: (google.container.v1.IMaxPodsConstraint|null); + + /** Cluster resourceUsageExportConfig. */ + public resourceUsageExportConfig?: (google.container.v1.IResourceUsageExportConfig|null); + + /** Cluster authenticatorGroupsConfig. */ + public authenticatorGroupsConfig?: (google.container.v1.IAuthenticatorGroupsConfig|null); + /** Cluster privateClusterConfig. */ public privateClusterConfig?: (google.container.v1.IPrivateClusterConfig|null); + /** Cluster databaseEncryption. */ + public databaseEncryption?: (google.container.v1.IDatabaseEncryption|null); + + /** Cluster verticalPodAutoscaling. */ + public verticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null); + /** Cluster selfLink. */ public selfLink: string; @@ -2397,6 +2978,15 @@ export namespace google { /** Cluster location. */ public location: string; + /** Cluster enableTpu. */ + public enableTpu: boolean; + + /** Cluster tpuIpv4CidrBlock. */ + public tpuIpv4CidrBlock: string; + + /** Cluster conditions. */ + public conditions: google.container.v1.IStatusCondition[]; + /** * Creates a new Cluster instance using the specified properties. * @param [properties] Properties to set @@ -2500,6 +3090,9 @@ export namespace google { /** ClusterUpdate desiredImageType */ desiredImageType?: (string|null); + /** ClusterUpdate desiredDatabaseEncryption */ + desiredDatabaseEncryption?: (google.container.v1.IDatabaseEncryption|null); + /** ClusterUpdate desiredNodePoolAutoscaling */ desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null); @@ -2509,12 +3102,30 @@ export namespace google { /** ClusterUpdate desiredMasterAuthorizedNetworksConfig */ desiredMasterAuthorizedNetworksConfig?: (google.container.v1.IMasterAuthorizedNetworksConfig|null); - /** ClusterUpdate desiredMasterVersion */ - desiredMasterVersion?: (string|null); - } + /** ClusterUpdate desiredClusterAutoscaling */ + desiredClusterAutoscaling?: (google.container.v1.IClusterAutoscaling|null); - /** Represents a ClusterUpdate. */ - class ClusterUpdate implements IClusterUpdate { + /** ClusterUpdate desiredBinaryAuthorization */ + desiredBinaryAuthorization?: (google.container.v1.IBinaryAuthorization|null); + + /** ClusterUpdate desiredLoggingService */ + desiredLoggingService?: (string|null); + + /** ClusterUpdate desiredResourceUsageExportConfig */ + desiredResourceUsageExportConfig?: (google.container.v1.IResourceUsageExportConfig|null); + + /** ClusterUpdate desiredVerticalPodAutoscaling */ + desiredVerticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null); + + /** ClusterUpdate desiredIntraNodeVisibilityConfig */ + desiredIntraNodeVisibilityConfig?: (google.container.v1.IIntraNodeVisibilityConfig|null); + + /** ClusterUpdate desiredMasterVersion */ + desiredMasterVersion?: (string|null); + } + + /** Represents a ClusterUpdate. */ + class ClusterUpdate implements IClusterUpdate { /** * Constructs a new ClusterUpdate. @@ -2537,6 +3148,9 @@ export namespace google { /** ClusterUpdate desiredImageType. */ public desiredImageType: string; + /** ClusterUpdate desiredDatabaseEncryption. */ + public desiredDatabaseEncryption?: (google.container.v1.IDatabaseEncryption|null); + /** ClusterUpdate desiredNodePoolAutoscaling. */ public desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null); @@ -2546,6 +3160,24 @@ export namespace google { /** ClusterUpdate desiredMasterAuthorizedNetworksConfig. */ public desiredMasterAuthorizedNetworksConfig?: (google.container.v1.IMasterAuthorizedNetworksConfig|null); + /** ClusterUpdate desiredClusterAutoscaling. */ + public desiredClusterAutoscaling?: (google.container.v1.IClusterAutoscaling|null); + + /** ClusterUpdate desiredBinaryAuthorization. */ + public desiredBinaryAuthorization?: (google.container.v1.IBinaryAuthorization|null); + + /** ClusterUpdate desiredLoggingService. */ + public desiredLoggingService: string; + + /** ClusterUpdate desiredResourceUsageExportConfig. */ + public desiredResourceUsageExportConfig?: (google.container.v1.IResourceUsageExportConfig|null); + + /** ClusterUpdate desiredVerticalPodAutoscaling. */ + public desiredVerticalPodAutoscaling?: (google.container.v1.IVerticalPodAutoscaling|null); + + /** ClusterUpdate desiredIntraNodeVisibilityConfig. */ + public desiredIntraNodeVisibilityConfig?: (google.container.v1.IIntraNodeVisibilityConfig|null); + /** ClusterUpdate desiredMasterVersion. */ public desiredMasterVersion: string; @@ -2655,6 +3287,12 @@ export namespace google { /** Operation endTime */ endTime?: (string|null); + + /** Operation clusterConditions */ + clusterConditions?: (google.container.v1.IStatusCondition[]|null); + + /** Operation nodepoolConditions */ + nodepoolConditions?: (google.container.v1.IStatusCondition[]|null); } /** Represents an Operation. */ @@ -2699,6 +3337,12 @@ export namespace google { /** Operation endTime. */ public endTime: string; + /** Operation clusterConditions. */ + public clusterConditions: google.container.v1.IStatusCondition[]; + + /** Operation nodepoolConditions. */ + public nodepoolConditions: google.container.v1.IStatusCondition[]; + /** * Creates a new Operation instance using the specified properties. * @param [properties] Properties to set @@ -5498,6 +6142,15 @@ export namespace google { /** NodePool management */ management?: (google.container.v1.INodeManagement|null); + + /** NodePool maxPodsConstraint */ + maxPodsConstraint?: (google.container.v1.IMaxPodsConstraint|null); + + /** NodePool conditions */ + conditions?: (google.container.v1.IStatusCondition[]|null); + + /** NodePool podIpv4CidrSize */ + podIpv4CidrSize?: (number|null); } /** Represents a NodePool. */ @@ -5539,6 +6192,15 @@ export namespace google { /** NodePool management. */ public management?: (google.container.v1.INodeManagement|null); + /** NodePool maxPodsConstraint. */ + public maxPodsConstraint?: (google.container.v1.IMaxPodsConstraint|null); + + /** NodePool conditions. */ + public conditions: google.container.v1.IStatusCondition[]; + + /** NodePool podIpv4CidrSize. */ + public podIpv4CidrSize: number; + /** * Creates a new NodePool instance using the specified properties. * @param [properties] Properties to set @@ -5827,6 +6489,9 @@ export namespace google { /** MaintenancePolicy window */ window?: (google.container.v1.IMaintenanceWindow|null); + + /** MaintenancePolicy resourceVersion */ + resourceVersion?: (string|null); } /** Represents a MaintenancePolicy. */ @@ -5841,6 +6506,9 @@ export namespace google { /** 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 @@ -5917,6 +6585,12 @@ export namespace google { /** 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. */ @@ -5931,8 +6605,14 @@ export namespace google { /** 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"; + public policy?: ("dailyMaintenanceWindow"|"recurringWindow"); /** * Creates a new MaintenanceWindow instance using the specified properties. @@ -6005,6 +6685,198 @@ export namespace google { 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 { @@ -6545,979 +7417,2499 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a NodePoolAutoscaling. */ - interface INodePoolAutoscaling { + /** Properties of a ClusterAutoscaling. */ + interface IClusterAutoscaling { - /** NodePoolAutoscaling enabled */ - enabled?: (boolean|null); + /** ClusterAutoscaling enableNodeAutoprovisioning */ + enableNodeAutoprovisioning?: (boolean|null); - /** NodePoolAutoscaling minNodeCount */ - minNodeCount?: (number|null); + /** ClusterAutoscaling resourceLimits */ + resourceLimits?: (google.container.v1.IResourceLimit[]|null); - /** NodePoolAutoscaling maxNodeCount */ - maxNodeCount?: (number|null); + /** ClusterAutoscaling autoprovisioningNodePoolDefaults */ + autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null); + + /** ClusterAutoscaling autoprovisioningLocations */ + autoprovisioningLocations?: (string[]|null); } - /** Represents a NodePoolAutoscaling. */ - class NodePoolAutoscaling implements INodePoolAutoscaling { + /** Represents a ClusterAutoscaling. */ + class ClusterAutoscaling implements IClusterAutoscaling { /** - * Constructs a new NodePoolAutoscaling. + * Constructs a new ClusterAutoscaling. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.INodePoolAutoscaling); + constructor(properties?: google.container.v1.IClusterAutoscaling); - /** NodePoolAutoscaling enabled. */ - public enabled: boolean; + /** ClusterAutoscaling enableNodeAutoprovisioning. */ + public enableNodeAutoprovisioning: boolean; - /** NodePoolAutoscaling minNodeCount. */ - public minNodeCount: number; + /** ClusterAutoscaling resourceLimits. */ + public resourceLimits: google.container.v1.IResourceLimit[]; - /** NodePoolAutoscaling maxNodeCount. */ - public maxNodeCount: number; + /** ClusterAutoscaling autoprovisioningNodePoolDefaults. */ + public autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null); + + /** ClusterAutoscaling autoprovisioningLocations. */ + public autoprovisioningLocations: string[]; /** - * Creates a new NodePoolAutoscaling instance using the specified properties. + * Creates a new ClusterAutoscaling instance using the specified properties. * @param [properties] Properties to set - * @returns NodePoolAutoscaling instance + * @returns ClusterAutoscaling instance */ - public static create(properties?: google.container.v1.INodePoolAutoscaling): google.container.v1.NodePoolAutoscaling; + public static create(properties?: google.container.v1.IClusterAutoscaling): google.container.v1.ClusterAutoscaling; /** - * 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 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.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IClusterAutoscaling, 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 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.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IClusterAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NodePoolAutoscaling 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 NodePoolAutoscaling + * @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.NodePoolAutoscaling; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ClusterAutoscaling; /** - * Decodes a NodePoolAutoscaling 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 NodePoolAutoscaling + * @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.NodePoolAutoscaling; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ClusterAutoscaling; /** - * Verifies a NodePoolAutoscaling 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 NodePoolAutoscaling 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 NodePoolAutoscaling + * @returns ClusterAutoscaling */ - public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolAutoscaling; + public static fromObject(object: { [k: string]: any }): google.container.v1.ClusterAutoscaling; /** - * 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 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.NodePoolAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.ClusterAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NodePoolAutoscaling to JSON. + * Converts this ClusterAutoscaling to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetLabelsRequest. */ - interface ISetLabelsRequest { - - /** SetLabelsRequest projectId */ - projectId?: (string|null); - - /** SetLabelsRequest zone */ - zone?: (string|null); - - /** SetLabelsRequest clusterId */ - clusterId?: (string|null); - - /** SetLabelsRequest resourceLabels */ - resourceLabels?: ({ [k: string]: string }|null); + /** Properties of an AutoprovisioningNodePoolDefaults. */ + interface IAutoprovisioningNodePoolDefaults { - /** SetLabelsRequest labelFingerprint */ - labelFingerprint?: (string|null); + /** AutoprovisioningNodePoolDefaults oauthScopes */ + oauthScopes?: (string[]|null); - /** SetLabelsRequest name */ - name?: (string|null); + /** AutoprovisioningNodePoolDefaults serviceAccount */ + serviceAccount?: (string|null); } - /** Represents a SetLabelsRequest. */ - class SetLabelsRequest implements ISetLabelsRequest { + /** Represents an AutoprovisioningNodePoolDefaults. */ + class AutoprovisioningNodePoolDefaults implements IAutoprovisioningNodePoolDefaults { /** - * Constructs a new SetLabelsRequest. + * Constructs a new AutoprovisioningNodePoolDefaults. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ISetLabelsRequest); - - /** SetLabelsRequest projectId. */ - public projectId: string; - - /** SetLabelsRequest zone. */ - public zone: string; - - /** SetLabelsRequest clusterId. */ - public clusterId: string; + constructor(properties?: google.container.v1.IAutoprovisioningNodePoolDefaults); - /** SetLabelsRequest resourceLabels. */ - public resourceLabels: { [k: string]: string }; - - /** SetLabelsRequest labelFingerprint. */ - public labelFingerprint: string; + /** AutoprovisioningNodePoolDefaults oauthScopes. */ + public oauthScopes: string[]; - /** SetLabelsRequest name. */ - public name: string; + /** AutoprovisioningNodePoolDefaults serviceAccount. */ + public serviceAccount: string; /** - * Creates a new SetLabelsRequest instance using the specified properties. + * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties. * @param [properties] Properties to set - * @returns SetLabelsRequest instance + * @returns AutoprovisioningNodePoolDefaults instance */ - public static create(properties?: google.container.v1.ISetLabelsRequest): google.container.v1.SetLabelsRequest; + public static create(properties?: google.container.v1.IAutoprovisioningNodePoolDefaults): google.container.v1.AutoprovisioningNodePoolDefaults; /** - * 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 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.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IAutoprovisioningNodePoolDefaults, 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 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.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IAutoprovisioningNodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetLabelsRequest 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 SetLabelsRequest + * @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.SetLabelsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.AutoprovisioningNodePoolDefaults; /** - * Decodes a SetLabelsRequest 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 SetLabelsRequest + * @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.SetLabelsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.AutoprovisioningNodePoolDefaults; /** - * Verifies a SetLabelsRequest 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 SetLabelsRequest 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 SetLabelsRequest + * @returns AutoprovisioningNodePoolDefaults */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SetLabelsRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.AutoprovisioningNodePoolDefaults; /** - * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified. - * @param message SetLabelsRequest + * 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.SetLabelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.AutoprovisioningNodePoolDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetLabelsRequest to JSON. + * Converts this AutoprovisioningNodePoolDefaults to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetLegacyAbacRequest. */ - interface ISetLegacyAbacRequest { + /** Properties of a ResourceLimit. */ + interface IResourceLimit { - /** SetLegacyAbacRequest projectId */ + /** ResourceLimit resourceType */ + resourceType?: (string|null); + + /** ResourceLimit minimum */ + minimum?: (number|Long|null); + + /** ResourceLimit maximum */ + maximum?: (number|Long|null); + } + + /** Represents a ResourceLimit. */ + class ResourceLimit implements IResourceLimit { + + /** + * Constructs a new ResourceLimit. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IResourceLimit); + + /** ResourceLimit resourceType. */ + public resourceType: string; + + /** ResourceLimit minimum. */ + public minimum: (number|Long); + + /** ResourceLimit maximum. */ + public maximum: (number|Long); + + /** + * Creates a new ResourceLimit instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceLimit instance + */ + public static create(properties?: google.container.v1.IResourceLimit): google.container.v1.ResourceLimit; + + /** + * 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.IResourceLimit, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IResourceLimit, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.ResourceLimit; + + /** + * Decodes a ResourceLimit message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.ResourceLimit; + + /** + * 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 ResourceLimit message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceLimit + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ResourceLimit; + + /** + * 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.ResourceLimit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceLimit to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NodePoolAutoscaling. */ + interface INodePoolAutoscaling { + + /** NodePoolAutoscaling enabled */ + enabled?: (boolean|null); + + /** NodePoolAutoscaling minNodeCount */ + minNodeCount?: (number|null); + + /** NodePoolAutoscaling maxNodeCount */ + maxNodeCount?: (number|null); + + /** NodePoolAutoscaling autoprovisioned */ + autoprovisioned?: (boolean|null); + } + + /** Represents a NodePoolAutoscaling. */ + class NodePoolAutoscaling implements INodePoolAutoscaling { + + /** + * Constructs a new NodePoolAutoscaling. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodePoolAutoscaling); + + /** NodePoolAutoscaling enabled. */ + public enabled: boolean; + + /** NodePoolAutoscaling minNodeCount. */ + public minNodeCount: number; + + /** NodePoolAutoscaling maxNodeCount. */ + public maxNodeCount: number; + + /** NodePoolAutoscaling autoprovisioned. */ + public autoprovisioned: boolean; + + /** + * Creates a new NodePoolAutoscaling instance using the specified properties. + * @param [properties] Properties to set + * @returns NodePoolAutoscaling instance + */ + public static create(properties?: google.container.v1.INodePoolAutoscaling): google.container.v1.NodePoolAutoscaling; + + /** + * 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.INodePoolAutoscaling, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodePoolAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.NodePoolAutoscaling; + + /** + * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.NodePoolAutoscaling; + + /** + * 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 NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodePoolAutoscaling + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolAutoscaling; + + /** + * 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.NodePoolAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodePoolAutoscaling to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetLabelsRequest. */ + interface ISetLabelsRequest { + + /** SetLabelsRequest projectId */ projectId?: (string|null); - /** SetLegacyAbacRequest zone */ + /** SetLabelsRequest zone */ zone?: (string|null); - /** SetLegacyAbacRequest clusterId */ + /** SetLabelsRequest clusterId */ clusterId?: (string|null); - /** SetLegacyAbacRequest enabled */ - enabled?: (boolean|null); + /** SetLabelsRequest resourceLabels */ + resourceLabels?: ({ [k: string]: string }|null); - /** SetLegacyAbacRequest name */ + /** SetLabelsRequest labelFingerprint */ + labelFingerprint?: (string|null); + + /** SetLabelsRequest name */ name?: (string|null); } - /** Represents a SetLegacyAbacRequest. */ - class SetLegacyAbacRequest implements ISetLegacyAbacRequest { + /** Represents a SetLabelsRequest. */ + class SetLabelsRequest implements ISetLabelsRequest { /** - * Constructs a new SetLegacyAbacRequest. + * Constructs a new SetLabelsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ISetLegacyAbacRequest); + constructor(properties?: google.container.v1.ISetLabelsRequest); - /** SetLegacyAbacRequest projectId. */ + /** SetLabelsRequest projectId. */ public projectId: string; - /** SetLegacyAbacRequest zone. */ + /** SetLabelsRequest zone. */ public zone: string; - /** SetLegacyAbacRequest clusterId. */ + /** SetLabelsRequest clusterId. */ public clusterId: string; - /** SetLegacyAbacRequest enabled. */ - public enabled: boolean; + /** SetLabelsRequest resourceLabels. */ + public resourceLabels: { [k: string]: string }; + + /** SetLabelsRequest labelFingerprint. */ + public labelFingerprint: string; + + /** SetLabelsRequest name. */ + public name: string; + + /** + * Creates a new SetLabelsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetLabelsRequest instance + */ + public static create(properties?: google.container.v1.ISetLabelsRequest): google.container.v1.SetLabelsRequest; + + /** + * 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.ISetLabelsRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetLabelsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.SetLabelsRequest; + + /** + * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.SetLabelsRequest; + + /** + * 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 SetLabelsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetLabelsRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetLabelsRequest; + + /** + * 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.SetLabelsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetLabelsRequest 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); + + /** SetLegacyAbacRequest enabled */ + enabled?: (boolean|null); + + /** SetLegacyAbacRequest name */ + name?: (string|null); + } + + /** Represents a SetLegacyAbacRequest. */ + class SetLegacyAbacRequest implements ISetLegacyAbacRequest { + + /** + * Constructs a new SetLegacyAbacRequest. + * @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; + + /** SetLegacyAbacRequest enabled. */ + public enabled: boolean; + + /** SetLegacyAbacRequest name. */ + public name: string; + + /** + * Creates a new SetLegacyAbacRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetLegacyAbacRequest instance + */ + public static create(properties?: google.container.v1.ISetLegacyAbacRequest): google.container.v1.SetLegacyAbacRequest; + + /** + * 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.ISetLegacyAbacRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetLegacyAbacRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.SetLegacyAbacRequest; + + /** + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.SetLegacyAbacRequest; + + /** + * 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 SetLegacyAbacRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetLegacyAbacRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetLegacyAbacRequest; + + /** + * 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.SetLegacyAbacRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetLegacyAbacRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a StartIPRotationRequest. */ + interface IStartIPRotationRequest { + + /** 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 StartIPRotationRequest. */ + class StartIPRotationRequest implements IStartIPRotationRequest { + + /** + * Constructs a new StartIPRotationRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IStartIPRotationRequest); + + /** 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 StartIPRotationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns StartIPRotationRequest instance + */ + public static create(properties?: google.container.v1.IStartIPRotationRequest): google.container.v1.StartIPRotationRequest; + + /** + * 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.IStartIPRotationRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IStartIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.StartIPRotationRequest; + + /** + * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.StartIPRotationRequest; + + /** + * 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 StartIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StartIPRotationRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.StartIPRotationRequest; + + /** + * 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.StartIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StartIPRotationRequest 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); + + /** CompleteIPRotationRequest name */ + name?: (string|null); + } + + /** Represents a CompleteIPRotationRequest. */ + class CompleteIPRotationRequest implements ICompleteIPRotationRequest { + + /** + * Constructs a new CompleteIPRotationRequest. + * @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; + + /** CompleteIPRotationRequest name. */ + public name: string; + + /** + * Creates a new CompleteIPRotationRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CompleteIPRotationRequest instance + */ + public static create(properties?: google.container.v1.ICompleteIPRotationRequest): google.container.v1.CompleteIPRotationRequest; + + /** + * 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.ICompleteIPRotationRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ICompleteIPRotationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.CompleteIPRotationRequest; + + /** + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.CompleteIPRotationRequest; + + /** + * 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 CompleteIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompleteIPRotationRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.CompleteIPRotationRequest; + + /** + * 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.CompleteIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompleteIPRotationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AcceleratorConfig. */ + interface IAcceleratorConfig { + + /** AcceleratorConfig acceleratorCount */ + acceleratorCount?: (number|Long|null); + + /** AcceleratorConfig acceleratorType */ + acceleratorType?: (string|null); + } + + /** Represents an AcceleratorConfig. */ + class AcceleratorConfig implements IAcceleratorConfig { + + /** + * Constructs a new AcceleratorConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IAcceleratorConfig); + + /** AcceleratorConfig acceleratorCount. */ + public acceleratorCount: (number|Long); + + /** AcceleratorConfig acceleratorType. */ + public acceleratorType: string; + + /** + * Creates a new AcceleratorConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns AcceleratorConfig instance + */ + public static create(properties?: google.container.v1.IAcceleratorConfig): google.container.v1.AcceleratorConfig; + + /** + * 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.IAcceleratorConfig, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.AcceleratorConfig; + + /** + * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.AcceleratorConfig; + + /** + * 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 AcceleratorConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AcceleratorConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.AcceleratorConfig; + + /** + * 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.AcceleratorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AcceleratorConfig 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); + + /** SetNetworkPolicyRequest name */ + name?: (string|null); + } + + /** Represents a SetNetworkPolicyRequest. */ + class SetNetworkPolicyRequest implements ISetNetworkPolicyRequest { + + /** + * Constructs a new SetNetworkPolicyRequest. + * @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; + + /** SetNetworkPolicyRequest networkPolicy. */ + public networkPolicy?: (google.container.v1.INetworkPolicy|null); + + /** SetNetworkPolicyRequest name. */ + public name: string; + + /** + * Creates a new SetNetworkPolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetNetworkPolicyRequest instance + */ + public static create(properties?: google.container.v1.ISetNetworkPolicyRequest): google.container.v1.SetNetworkPolicyRequest; + + /** + * 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.ISetNetworkPolicyRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetNetworkPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.SetNetworkPolicyRequest; + + /** + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.SetNetworkPolicyRequest; + + /** + * 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 SetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetNetworkPolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetNetworkPolicyRequest; + + /** + * 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.SetNetworkPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetNetworkPolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SetMaintenancePolicyRequest. */ + interface ISetMaintenancePolicyRequest { + + /** SetMaintenancePolicyRequest projectId */ + projectId?: (string|null); + + /** SetMaintenancePolicyRequest zone */ + zone?: (string|null); + + /** SetMaintenancePolicyRequest clusterId */ + clusterId?: (string|null); + + /** SetMaintenancePolicyRequest maintenancePolicy */ + maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + + /** SetMaintenancePolicyRequest name */ + name?: (string|null); + } + + /** Represents a SetMaintenancePolicyRequest. */ + class SetMaintenancePolicyRequest implements ISetMaintenancePolicyRequest { + + /** + * Constructs a new SetMaintenancePolicyRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISetMaintenancePolicyRequest); + + /** SetMaintenancePolicyRequest projectId. */ + public projectId: string; + + /** SetMaintenancePolicyRequest zone. */ + public zone: string; + + /** SetMaintenancePolicyRequest clusterId. */ + public clusterId: string; + + /** SetMaintenancePolicyRequest maintenancePolicy. */ + public maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + + /** SetMaintenancePolicyRequest name. */ + public name: string; + + /** + * Creates a new SetMaintenancePolicyRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns SetMaintenancePolicyRequest instance + */ + public static create(properties?: google.container.v1.ISetMaintenancePolicyRequest): google.container.v1.SetMaintenancePolicyRequest; + + /** + * 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.ISetMaintenancePolicyRequest, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISetMaintenancePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.SetMaintenancePolicyRequest; + + /** + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.SetMaintenancePolicyRequest; + + /** + * 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 SetMaintenancePolicyRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SetMaintenancePolicyRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SetMaintenancePolicyRequest; + + /** + * 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.SetMaintenancePolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SetMaintenancePolicyRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a StatusCondition. */ + interface IStatusCondition { + + /** StatusCondition code */ + code?: (google.container.v1.StatusCondition.Code|null); + + /** StatusCondition message */ + message?: (string|null); + } + + /** Represents a StatusCondition. */ + class StatusCondition implements IStatusCondition { + + /** + * Constructs a new StatusCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IStatusCondition); + + /** StatusCondition code. */ + public code: google.container.v1.StatusCondition.Code; + + /** StatusCondition message. */ + public message: string; + + /** + * Creates a new StatusCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns StatusCondition instance + */ + public static create(properties?: google.container.v1.IStatusCondition): google.container.v1.StatusCondition; + + /** + * 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.IStatusCondition, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IStatusCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.StatusCondition; + + /** + * Decodes a StatusCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.StatusCondition; + + /** + * 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 StatusCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StatusCondition + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.StatusCondition; + + /** + * 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.StatusCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StatusCondition 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); + + /** NetworkConfig enableIntraNodeVisibility */ + enableIntraNodeVisibility?: (boolean|null); + } + + /** Represents a NetworkConfig. */ + class NetworkConfig implements INetworkConfig { + + /** + * Constructs a new NetworkConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INetworkConfig); + + /** NetworkConfig network. */ + public network: string; + + /** NetworkConfig subnetwork. */ + public subnetwork: string; + + /** NetworkConfig enableIntraNodeVisibility. */ + public enableIntraNodeVisibility: boolean; + + /** + * Creates a new NetworkConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkConfig instance + */ + public static create(properties?: google.container.v1.INetworkConfig): google.container.v1.NetworkConfig; + + /** + * 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.INetworkConfig, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.NetworkConfig; + + /** + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.NetworkConfig; + + /** + * 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 NetworkConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NetworkConfig; + + /** + * 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.NetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IntraNodeVisibilityConfig. */ + interface IIntraNodeVisibilityConfig { + + /** IntraNodeVisibilityConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents an IntraNodeVisibilityConfig. */ + class IntraNodeVisibilityConfig implements IIntraNodeVisibilityConfig { + + /** + * Constructs a new IntraNodeVisibilityConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IIntraNodeVisibilityConfig); + + /** IntraNodeVisibilityConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new IntraNodeVisibilityConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns IntraNodeVisibilityConfig instance + */ + public static create(properties?: google.container.v1.IIntraNodeVisibilityConfig): google.container.v1.IntraNodeVisibilityConfig; + + /** + * Encodes the specified IntraNodeVisibilityConfig message. Does not implicitly {@link google.container.v1.IntraNodeVisibilityConfig.verify|verify} messages. + * @param message IntraNodeVisibilityConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IIntraNodeVisibilityConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IntraNodeVisibilityConfig message, length delimited. Does not implicitly {@link google.container.v1.IntraNodeVisibilityConfig.verify|verify} messages. + * @param message IntraNodeVisibilityConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IIntraNodeVisibilityConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntraNodeVisibilityConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntraNodeVisibilityConfig + * @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.IntraNodeVisibilityConfig; + + /** + * Decodes an IntraNodeVisibilityConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntraNodeVisibilityConfig + * @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.IntraNodeVisibilityConfig; + + /** + * Verifies an IntraNodeVisibilityConfig 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 IntraNodeVisibilityConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntraNodeVisibilityConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.IntraNodeVisibilityConfig; + + /** + * Creates a plain object from an IntraNodeVisibilityConfig message. Also converts values to other types if specified. + * @param message IntraNodeVisibilityConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.IntraNodeVisibilityConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IntraNodeVisibilityConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MaxPodsConstraint. */ + interface IMaxPodsConstraint { + + /** MaxPodsConstraint maxPodsPerNode */ + maxPodsPerNode?: (number|Long|null); + } + + /** Represents a MaxPodsConstraint. */ + class MaxPodsConstraint implements IMaxPodsConstraint { + + /** + * Constructs a new MaxPodsConstraint. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IMaxPodsConstraint); + + /** MaxPodsConstraint maxPodsPerNode. */ + public maxPodsPerNode: (number|Long); + + /** + * Creates a new MaxPodsConstraint instance using the specified properties. + * @param [properties] Properties to set + * @returns MaxPodsConstraint instance + */ + public static create(properties?: google.container.v1.IMaxPodsConstraint): google.container.v1.MaxPodsConstraint; + + /** + * Encodes the specified MaxPodsConstraint message. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. + * @param message MaxPodsConstraint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IMaxPodsConstraint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaxPodsConstraint message, length delimited. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. + * @param message MaxPodsConstraint message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IMaxPodsConstraint, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaxPodsConstraint message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaxPodsConstraint + * @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.MaxPodsConstraint; + + /** + * Decodes a MaxPodsConstraint message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaxPodsConstraint + * @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.MaxPodsConstraint; + + /** + * Verifies a MaxPodsConstraint 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 MaxPodsConstraint message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaxPodsConstraint + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.MaxPodsConstraint; + + /** + * Creates a plain object from a MaxPodsConstraint message. Also converts values to other types if specified. + * @param message MaxPodsConstraint + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.MaxPodsConstraint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaxPodsConstraint to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DatabaseEncryption. */ + interface IDatabaseEncryption { + + /** DatabaseEncryption state */ + state?: (google.container.v1.DatabaseEncryption.State|null); + + /** DatabaseEncryption keyName */ + keyName?: (string|null); + } + + /** Represents a DatabaseEncryption. */ + class DatabaseEncryption implements IDatabaseEncryption { + + /** + * Constructs a new DatabaseEncryption. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IDatabaseEncryption); + + /** DatabaseEncryption state. */ + public state: google.container.v1.DatabaseEncryption.State; - /** SetLegacyAbacRequest name. */ - public name: string; + /** DatabaseEncryption keyName. */ + public keyName: string; /** - * Creates a new SetLegacyAbacRequest instance using the specified properties. + * Creates a new DatabaseEncryption instance using the specified properties. * @param [properties] Properties to set - * @returns SetLegacyAbacRequest instance + * @returns DatabaseEncryption instance */ - public static create(properties?: google.container.v1.ISetLegacyAbacRequest): google.container.v1.SetLegacyAbacRequest; + public static create(properties?: google.container.v1.IDatabaseEncryption): google.container.v1.DatabaseEncryption; /** - * 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 DatabaseEncryption message. Does not implicitly {@link google.container.v1.DatabaseEncryption.verify|verify} messages. + * @param message DatabaseEncryption 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.IDatabaseEncryption, 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 DatabaseEncryption message, length delimited. Does not implicitly {@link google.container.v1.DatabaseEncryption.verify|verify} messages. + * @param message DatabaseEncryption 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.IDatabaseEncryption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetLegacyAbacRequest message from the specified reader or buffer. + * Decodes a DatabaseEncryption 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 DatabaseEncryption * @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.DatabaseEncryption; /** - * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. + * Decodes a DatabaseEncryption message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetLegacyAbacRequest + * @returns DatabaseEncryption * @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.DatabaseEncryption; /** - * Verifies a SetLegacyAbacRequest message. + * Verifies a DatabaseEncryption 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 DatabaseEncryption message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetLegacyAbacRequest + * @returns DatabaseEncryption */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SetLegacyAbacRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.DatabaseEncryption; /** - * 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 DatabaseEncryption message. Also converts values to other types if specified. + * @param message DatabaseEncryption * @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.DatabaseEncryption, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetLegacyAbacRequest to JSON. + * Converts this DatabaseEncryption to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a StartIPRotationRequest. */ - interface IStartIPRotationRequest { + namespace DatabaseEncryption { - /** StartIPRotationRequest projectId */ - projectId?: (string|null); + /** State enum. */ + enum State { + UNKNOWN = 0, + ENCRYPTED = 1, + DECRYPTED = 2 + } + } - /** StartIPRotationRequest zone */ - zone?: (string|null); + /** Properties of a ListUsableSubnetworksRequest. */ + interface IListUsableSubnetworksRequest { - /** StartIPRotationRequest clusterId */ - clusterId?: (string|null); + /** ListUsableSubnetworksRequest parent */ + parent?: (string|null); - /** StartIPRotationRequest name */ - name?: (string|null); + /** ListUsableSubnetworksRequest filter */ + filter?: (string|null); - /** StartIPRotationRequest rotateCredentials */ - rotateCredentials?: (boolean|null); + /** ListUsableSubnetworksRequest pageSize */ + pageSize?: (number|null); + + /** ListUsableSubnetworksRequest pageToken */ + pageToken?: (string|null); } - /** Represents a StartIPRotationRequest. */ - class StartIPRotationRequest implements IStartIPRotationRequest { + /** Represents a ListUsableSubnetworksRequest. */ + class ListUsableSubnetworksRequest implements IListUsableSubnetworksRequest { /** - * Constructs a new StartIPRotationRequest. + * Constructs a new ListUsableSubnetworksRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IStartIPRotationRequest); + constructor(properties?: google.container.v1.IListUsableSubnetworksRequest); - /** StartIPRotationRequest projectId. */ - public projectId: string; - - /** StartIPRotationRequest zone. */ - public zone: string; + /** ListUsableSubnetworksRequest parent. */ + public parent: string; - /** StartIPRotationRequest clusterId. */ - public clusterId: string; + /** ListUsableSubnetworksRequest filter. */ + public filter: string; - /** StartIPRotationRequest name. */ - public name: string; + /** ListUsableSubnetworksRequest pageSize. */ + public pageSize: number; - /** StartIPRotationRequest rotateCredentials. */ - public rotateCredentials: boolean; + /** ListUsableSubnetworksRequest pageToken. */ + public pageToken: string; /** - * Creates a new StartIPRotationRequest instance using the specified properties. + * Creates a new ListUsableSubnetworksRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StartIPRotationRequest instance + * @returns ListUsableSubnetworksRequest instance */ - public static create(properties?: google.container.v1.IStartIPRotationRequest): google.container.v1.StartIPRotationRequest; + public static create(properties?: google.container.v1.IListUsableSubnetworksRequest): google.container.v1.ListUsableSubnetworksRequest; /** - * 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 ListUsableSubnetworksRequest message. Does not implicitly {@link google.container.v1.ListUsableSubnetworksRequest.verify|verify} messages. + * @param message ListUsableSubnetworksRequest 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.IListUsableSubnetworksRequest, 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 ListUsableSubnetworksRequest message, length delimited. Does not implicitly {@link google.container.v1.ListUsableSubnetworksRequest.verify|verify} messages. + * @param message ListUsableSubnetworksRequest 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.IListUsableSubnetworksRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StartIPRotationRequest message from the specified reader or buffer. + * Decodes a ListUsableSubnetworksRequest 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 ListUsableSubnetworksRequest * @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.ListUsableSubnetworksRequest; /** - * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUsableSubnetworksRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StartIPRotationRequest + * @returns ListUsableSubnetworksRequest * @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.ListUsableSubnetworksRequest; /** - * Verifies a StartIPRotationRequest message. + * Verifies a ListUsableSubnetworksRequest 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 ListUsableSubnetworksRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StartIPRotationRequest + * @returns ListUsableSubnetworksRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.StartIPRotationRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.ListUsableSubnetworksRequest; /** - * 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 ListUsableSubnetworksRequest message. Also converts values to other types if specified. + * @param message ListUsableSubnetworksRequest * @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.ListUsableSubnetworksRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StartIPRotationRequest to JSON. + * Converts this ListUsableSubnetworksRequest 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); + /** Properties of a ListUsableSubnetworksResponse. */ + interface IListUsableSubnetworksResponse { - /** CompleteIPRotationRequest clusterId */ - clusterId?: (string|null); + /** ListUsableSubnetworksResponse subnetworks */ + subnetworks?: (google.container.v1.IUsableSubnetwork[]|null); - /** CompleteIPRotationRequest name */ - name?: (string|null); + /** ListUsableSubnetworksResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CompleteIPRotationRequest. */ - class CompleteIPRotationRequest implements ICompleteIPRotationRequest { + /** Represents a ListUsableSubnetworksResponse. */ + class ListUsableSubnetworksResponse implements IListUsableSubnetworksResponse { /** - * Constructs a new CompleteIPRotationRequest. + * Constructs a new ListUsableSubnetworksResponse. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ICompleteIPRotationRequest); - - /** CompleteIPRotationRequest projectId. */ - public projectId: string; - - /** CompleteIPRotationRequest zone. */ - public zone: string; + constructor(properties?: google.container.v1.IListUsableSubnetworksResponse); - /** CompleteIPRotationRequest clusterId. */ - public clusterId: string; + /** ListUsableSubnetworksResponse subnetworks. */ + public subnetworks: google.container.v1.IUsableSubnetwork[]; - /** CompleteIPRotationRequest name. */ - public name: string; + /** ListUsableSubnetworksResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CompleteIPRotationRequest instance using the specified properties. + * Creates a new ListUsableSubnetworksResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CompleteIPRotationRequest instance + * @returns ListUsableSubnetworksResponse instance */ - public static create(properties?: google.container.v1.ICompleteIPRotationRequest): google.container.v1.CompleteIPRotationRequest; + public static create(properties?: google.container.v1.IListUsableSubnetworksResponse): google.container.v1.ListUsableSubnetworksResponse; /** - * 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 ListUsableSubnetworksResponse message. Does not implicitly {@link google.container.v1.ListUsableSubnetworksResponse.verify|verify} messages. + * @param message ListUsableSubnetworksResponse 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.IListUsableSubnetworksResponse, 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 ListUsableSubnetworksResponse message, length delimited. Does not implicitly {@link google.container.v1.ListUsableSubnetworksResponse.verify|verify} messages. + * @param message ListUsableSubnetworksResponse 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.IListUsableSubnetworksResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CompleteIPRotationRequest message from the specified reader or buffer. + * Decodes a ListUsableSubnetworksResponse 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 ListUsableSubnetworksResponse * @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.ListUsableSubnetworksResponse; /** - * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUsableSubnetworksResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CompleteIPRotationRequest + * @returns ListUsableSubnetworksResponse * @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.ListUsableSubnetworksResponse; /** - * Verifies a CompleteIPRotationRequest message. + * Verifies a ListUsableSubnetworksResponse 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 ListUsableSubnetworksResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CompleteIPRotationRequest + * @returns ListUsableSubnetworksResponse */ - public static fromObject(object: { [k: string]: any }): google.container.v1.CompleteIPRotationRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.ListUsableSubnetworksResponse; /** - * 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 ListUsableSubnetworksResponse message. Also converts values to other types if specified. + * @param message ListUsableSubnetworksResponse * @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.ListUsableSubnetworksResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompleteIPRotationRequest to JSON. + * Converts this ListUsableSubnetworksResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AcceleratorConfig. */ - interface IAcceleratorConfig { + /** Properties of a UsableSubnetworkSecondaryRange. */ + interface IUsableSubnetworkSecondaryRange { - /** AcceleratorConfig acceleratorCount */ - acceleratorCount?: (number|Long|null); + /** UsableSubnetworkSecondaryRange rangeName */ + rangeName?: (string|null); - /** AcceleratorConfig acceleratorType */ - acceleratorType?: (string|null); + /** UsableSubnetworkSecondaryRange ipCidrRange */ + ipCidrRange?: (string|null); + + /** UsableSubnetworkSecondaryRange status */ + status?: (google.container.v1.UsableSubnetworkSecondaryRange.Status|null); } - /** Represents an AcceleratorConfig. */ - class AcceleratorConfig implements IAcceleratorConfig { + /** Represents a UsableSubnetworkSecondaryRange. */ + class UsableSubnetworkSecondaryRange implements IUsableSubnetworkSecondaryRange { /** - * Constructs a new AcceleratorConfig. + * Constructs a new UsableSubnetworkSecondaryRange. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IAcceleratorConfig); + constructor(properties?: google.container.v1.IUsableSubnetworkSecondaryRange); - /** AcceleratorConfig acceleratorCount. */ - public acceleratorCount: (number|Long); + /** UsableSubnetworkSecondaryRange rangeName. */ + public rangeName: string; - /** AcceleratorConfig acceleratorType. */ - public acceleratorType: string; + /** UsableSubnetworkSecondaryRange ipCidrRange. */ + public ipCidrRange: string; + + /** UsableSubnetworkSecondaryRange status. */ + public status: google.container.v1.UsableSubnetworkSecondaryRange.Status; /** - * Creates a new AcceleratorConfig instance using the specified properties. + * Creates a new UsableSubnetworkSecondaryRange instance using the specified properties. * @param [properties] Properties to set - * @returns AcceleratorConfig instance + * @returns UsableSubnetworkSecondaryRange instance */ - public static create(properties?: google.container.v1.IAcceleratorConfig): google.container.v1.AcceleratorConfig; + public static create(properties?: google.container.v1.IUsableSubnetworkSecondaryRange): google.container.v1.UsableSubnetworkSecondaryRange; /** - * 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 UsableSubnetworkSecondaryRange message. Does not implicitly {@link google.container.v1.UsableSubnetworkSecondaryRange.verify|verify} messages. + * @param message UsableSubnetworkSecondaryRange 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.IUsableSubnetworkSecondaryRange, 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 UsableSubnetworkSecondaryRange message, length delimited. Does not implicitly {@link google.container.v1.UsableSubnetworkSecondaryRange.verify|verify} messages. + * @param message UsableSubnetworkSecondaryRange 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.IUsableSubnetworkSecondaryRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer. + * Decodes a UsableSubnetworkSecondaryRange 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 UsableSubnetworkSecondaryRange * @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.UsableSubnetworkSecondaryRange; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. + * Decodes a UsableSubnetworkSecondaryRange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AcceleratorConfig + * @returns UsableSubnetworkSecondaryRange * @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.UsableSubnetworkSecondaryRange; /** - * Verifies an AcceleratorConfig message. + * Verifies a UsableSubnetworkSecondaryRange 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 UsableSubnetworkSecondaryRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AcceleratorConfig + * @returns UsableSubnetworkSecondaryRange */ - public static fromObject(object: { [k: string]: any }): google.container.v1.AcceleratorConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.UsableSubnetworkSecondaryRange; /** - * 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 UsableSubnetworkSecondaryRange message. Also converts values to other types if specified. + * @param message UsableSubnetworkSecondaryRange * @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.UsableSubnetworkSecondaryRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AcceleratorConfig to JSON. + * Converts this UsableSubnetworkSecondaryRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetNetworkPolicyRequest. */ - interface ISetNetworkPolicyRequest { + namespace UsableSubnetworkSecondaryRange { - /** SetNetworkPolicyRequest projectId */ - projectId?: (string|null); + /** Status enum. */ + enum Status { + UNKNOWN = 0, + UNUSED = 1, + IN_USE_SERVICE = 2, + IN_USE_SHAREABLE_POD = 3, + IN_USE_MANAGED_POD = 4 + } + } - /** SetNetworkPolicyRequest zone */ - zone?: (string|null); + /** Properties of a UsableSubnetwork. */ + interface IUsableSubnetwork { - /** SetNetworkPolicyRequest clusterId */ - clusterId?: (string|null); + /** UsableSubnetwork subnetwork */ + subnetwork?: (string|null); - /** SetNetworkPolicyRequest networkPolicy */ - networkPolicy?: (google.container.v1.INetworkPolicy|null); + /** UsableSubnetwork network */ + network?: (string|null); - /** SetNetworkPolicyRequest name */ - name?: (string|null); + /** UsableSubnetwork ipCidrRange */ + ipCidrRange?: (string|null); + + /** UsableSubnetwork secondaryIpRanges */ + secondaryIpRanges?: (google.container.v1.IUsableSubnetworkSecondaryRange[]|null); + + /** UsableSubnetwork statusMessage */ + statusMessage?: (string|null); } - /** Represents a SetNetworkPolicyRequest. */ - class SetNetworkPolicyRequest implements ISetNetworkPolicyRequest { + /** Represents a UsableSubnetwork. */ + class UsableSubnetwork implements IUsableSubnetwork { /** - * Constructs a new SetNetworkPolicyRequest. + * Constructs a new UsableSubnetwork. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.ISetNetworkPolicyRequest); + constructor(properties?: google.container.v1.IUsableSubnetwork); - /** SetNetworkPolicyRequest projectId. */ - public projectId: string; + /** UsableSubnetwork subnetwork. */ + public subnetwork: string; - /** SetNetworkPolicyRequest zone. */ - public zone: string; + /** UsableSubnetwork network. */ + public network: string; - /** SetNetworkPolicyRequest clusterId. */ - public clusterId: string; + /** UsableSubnetwork ipCidrRange. */ + public ipCidrRange: string; - /** SetNetworkPolicyRequest networkPolicy. */ - public networkPolicy?: (google.container.v1.INetworkPolicy|null); + /** UsableSubnetwork secondaryIpRanges. */ + public secondaryIpRanges: google.container.v1.IUsableSubnetworkSecondaryRange[]; - /** SetNetworkPolicyRequest name. */ - public name: string; + /** UsableSubnetwork statusMessage. */ + public statusMessage: string; /** - * Creates a new SetNetworkPolicyRequest instance using the specified properties. + * Creates a new UsableSubnetwork instance using the specified properties. * @param [properties] Properties to set - * @returns SetNetworkPolicyRequest instance + * @returns UsableSubnetwork instance */ - public static create(properties?: google.container.v1.ISetNetworkPolicyRequest): google.container.v1.SetNetworkPolicyRequest; + public static create(properties?: google.container.v1.IUsableSubnetwork): google.container.v1.UsableSubnetwork; /** - * 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 UsableSubnetwork message. Does not implicitly {@link google.container.v1.UsableSubnetwork.verify|verify} messages. + * @param message UsableSubnetwork 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.IUsableSubnetwork, 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 UsableSubnetwork message, length delimited. Does not implicitly {@link google.container.v1.UsableSubnetwork.verify|verify} messages. + * @param message UsableSubnetwork 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.IUsableSubnetwork, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a UsableSubnetwork 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 UsableSubnetwork * @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.UsableSubnetwork; /** - * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a UsableSubnetwork message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetNetworkPolicyRequest + * @returns UsableSubnetwork * @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.UsableSubnetwork; /** - * Verifies a SetNetworkPolicyRequest message. + * Verifies a UsableSubnetwork 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 UsableSubnetwork message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetNetworkPolicyRequest + * @returns UsableSubnetwork */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SetNetworkPolicyRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.UsableSubnetwork; /** - * 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 UsableSubnetwork message. Also converts values to other types if specified. + * @param message UsableSubnetwork * @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.UsableSubnetwork, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetNetworkPolicyRequest to JSON. + * Converts this UsableSubnetwork to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SetMaintenancePolicyRequest. */ - interface ISetMaintenancePolicyRequest { - - /** SetMaintenancePolicyRequest projectId */ - projectId?: (string|null); - - /** SetMaintenancePolicyRequest zone */ - zone?: (string|null); + /** Properties of a ResourceUsageExportConfig. */ + interface IResourceUsageExportConfig { - /** SetMaintenancePolicyRequest clusterId */ - clusterId?: (string|null); + /** ResourceUsageExportConfig bigqueryDestination */ + bigqueryDestination?: (google.container.v1.ResourceUsageExportConfig.IBigQueryDestination|null); - /** SetMaintenancePolicyRequest maintenancePolicy */ - maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + /** ResourceUsageExportConfig enableNetworkEgressMetering */ + enableNetworkEgressMetering?: (boolean|null); - /** SetMaintenancePolicyRequest name */ - name?: (string|null); + /** ResourceUsageExportConfig consumptionMeteringConfig */ + consumptionMeteringConfig?: (google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig|null); } - /** Represents a SetMaintenancePolicyRequest. */ - class SetMaintenancePolicyRequest implements ISetMaintenancePolicyRequest { - - /** - * Constructs a new SetMaintenancePolicyRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.container.v1.ISetMaintenancePolicyRequest); - - /** SetMaintenancePolicyRequest projectId. */ - public projectId: string; + /** Represents a ResourceUsageExportConfig. */ + class ResourceUsageExportConfig implements IResourceUsageExportConfig { - /** SetMaintenancePolicyRequest zone. */ - public zone: string; + /** + * Constructs a new ResourceUsageExportConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IResourceUsageExportConfig); - /** SetMaintenancePolicyRequest clusterId. */ - public clusterId: string; + /** ResourceUsageExportConfig bigqueryDestination. */ + public bigqueryDestination?: (google.container.v1.ResourceUsageExportConfig.IBigQueryDestination|null); - /** SetMaintenancePolicyRequest maintenancePolicy. */ - public maintenancePolicy?: (google.container.v1.IMaintenancePolicy|null); + /** ResourceUsageExportConfig enableNetworkEgressMetering. */ + public enableNetworkEgressMetering: boolean; - /** SetMaintenancePolicyRequest name. */ - public name: string; + /** ResourceUsageExportConfig consumptionMeteringConfig. */ + public consumptionMeteringConfig?: (google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig|null); /** - * Creates a new SetMaintenancePolicyRequest instance using the specified properties. + * Creates a new ResourceUsageExportConfig instance using the specified properties. * @param [properties] Properties to set - * @returns SetMaintenancePolicyRequest instance + * @returns ResourceUsageExportConfig instance */ - public static create(properties?: google.container.v1.ISetMaintenancePolicyRequest): google.container.v1.SetMaintenancePolicyRequest; + public static create(properties?: google.container.v1.IResourceUsageExportConfig): google.container.v1.ResourceUsageExportConfig; /** - * 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 ResourceUsageExportConfig message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.verify|verify} messages. + * @param message ResourceUsageExportConfig 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.IResourceUsageExportConfig, 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 ResourceUsageExportConfig message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.verify|verify} messages. + * @param message ResourceUsageExportConfig 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.IResourceUsageExportConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer. + * Decodes a ResourceUsageExportConfig 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 ResourceUsageExportConfig * @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.ResourceUsageExportConfig; /** - * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a ResourceUsageExportConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SetMaintenancePolicyRequest + * @returns ResourceUsageExportConfig * @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.ResourceUsageExportConfig; /** - * Verifies a SetMaintenancePolicyRequest message. + * Verifies a ResourceUsageExportConfig 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 ResourceUsageExportConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SetMaintenancePolicyRequest + * @returns ResourceUsageExportConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.SetMaintenancePolicyRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.ResourceUsageExportConfig; /** - * 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 ResourceUsageExportConfig message. Also converts values to other types if specified. + * @param message ResourceUsageExportConfig * @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.ResourceUsageExportConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SetMaintenancePolicyRequest to JSON. + * Converts this ResourceUsageExportConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a NetworkConfig. */ - interface INetworkConfig { + namespace ResourceUsageExportConfig { - /** NetworkConfig network */ - network?: (string|null); + /** Properties of a BigQueryDestination. */ + interface IBigQueryDestination { - /** NetworkConfig subnetwork */ - subnetwork?: (string|null); + /** BigQueryDestination datasetId */ + datasetId?: (string|null); + } + + /** Represents a BigQueryDestination. */ + class BigQueryDestination implements IBigQueryDestination { + + /** + * Constructs a new BigQueryDestination. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ResourceUsageExportConfig.IBigQueryDestination); + + /** BigQueryDestination datasetId. */ + public datasetId: string; + + /** + * Creates a new BigQueryDestination instance using the specified properties. + * @param [properties] Properties to set + * @returns BigQueryDestination instance + */ + public static create(properties?: google.container.v1.ResourceUsageExportConfig.IBigQueryDestination): google.container.v1.ResourceUsageExportConfig.BigQueryDestination; + + /** + * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * @param message BigQueryDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ResourceUsageExportConfig.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * @param message BigQueryDestination message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ResourceUsageExportConfig.IBigQueryDestination, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BigQueryDestination message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BigQueryDestination + * @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.ResourceUsageExportConfig.BigQueryDestination; + + /** + * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BigQueryDestination + * @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.ResourceUsageExportConfig.BigQueryDestination; + + /** + * Verifies a BigQueryDestination 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 BigQueryDestination message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BigQueryDestination + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ResourceUsageExportConfig.BigQueryDestination; + + /** + * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified. + * @param message BigQueryDestination + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ResourceUsageExportConfig.BigQueryDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BigQueryDestination to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ConsumptionMeteringConfig. */ + interface IConsumptionMeteringConfig { + + /** ConsumptionMeteringConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a ConsumptionMeteringConfig. */ + class ConsumptionMeteringConfig implements IConsumptionMeteringConfig { + + /** + * Constructs a new ConsumptionMeteringConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig); + + /** ConsumptionMeteringConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new ConsumptionMeteringConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ConsumptionMeteringConfig instance + */ + public static create(properties?: google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig): google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig; + + /** + * Encodes the specified ConsumptionMeteringConfig message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. + * @param message ConsumptionMeteringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConsumptionMeteringConfig message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. + * @param message ConsumptionMeteringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConsumptionMeteringConfig + * @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.ResourceUsageExportConfig.ConsumptionMeteringConfig; + + /** + * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConsumptionMeteringConfig + * @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.ResourceUsageExportConfig.ConsumptionMeteringConfig; + + /** + * Verifies a ConsumptionMeteringConfig 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 ConsumptionMeteringConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConsumptionMeteringConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig; + + /** + * Creates a plain object from a ConsumptionMeteringConfig message. Also converts values to other types if specified. + * @param message ConsumptionMeteringConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConsumptionMeteringConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a NetworkConfig. */ - class NetworkConfig implements INetworkConfig { + /** Properties of a VerticalPodAutoscaling. */ + interface IVerticalPodAutoscaling { + + /** VerticalPodAutoscaling enabled */ + enabled?: (boolean|null); + } + + /** Represents a VerticalPodAutoscaling. */ + class VerticalPodAutoscaling implements IVerticalPodAutoscaling { /** - * Constructs a new NetworkConfig. + * Constructs a new VerticalPodAutoscaling. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.INetworkConfig); - - /** NetworkConfig network. */ - public network: string; + constructor(properties?: google.container.v1.IVerticalPodAutoscaling); - /** NetworkConfig subnetwork. */ - public subnetwork: string; + /** VerticalPodAutoscaling enabled. */ + public enabled: boolean; /** - * Creates a new NetworkConfig instance using the specified properties. + * Creates a new VerticalPodAutoscaling instance using the specified properties. * @param [properties] Properties to set - * @returns NetworkConfig instance + * @returns VerticalPodAutoscaling instance */ - public static create(properties?: google.container.v1.INetworkConfig): google.container.v1.NetworkConfig; + public static create(properties?: google.container.v1.IVerticalPodAutoscaling): google.container.v1.VerticalPodAutoscaling; /** - * 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 VerticalPodAutoscaling message. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. + * @param message VerticalPodAutoscaling 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.IVerticalPodAutoscaling, 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 VerticalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. + * @param message VerticalPodAutoscaling 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.IVerticalPodAutoscaling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NetworkConfig message from the specified reader or buffer. + * Decodes a VerticalPodAutoscaling 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 VerticalPodAutoscaling * @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.VerticalPodAutoscaling; /** - * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * Decodes a VerticalPodAutoscaling message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NetworkConfig + * @returns VerticalPodAutoscaling * @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.VerticalPodAutoscaling; /** - * Verifies a NetworkConfig message. + * Verifies a VerticalPodAutoscaling 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 VerticalPodAutoscaling message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NetworkConfig + * @returns VerticalPodAutoscaling */ - public static fromObject(object: { [k: string]: any }): google.container.v1.NetworkConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.VerticalPodAutoscaling; /** - * 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 VerticalPodAutoscaling message. Also converts values to other types if specified. + * @param message VerticalPodAutoscaling * @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.VerticalPodAutoscaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NetworkConfig to JSON. + * Converts this VerticalPodAutoscaling to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -7866,6 +10258,16 @@ export namespace google { */ public toJSON(): { [k: string]: any }; } + + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5 + } } /** Namespace protobuf. */ @@ -9718,6 +12120,9 @@ export namespace google { /** FieldOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FieldOptions .google.api.fieldBehavior */ + ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); } /** Represents a FieldOptions. */ @@ -10134,6 +12539,12 @@ export namespace google { /** ServiceOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); + + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); } /** Represents a ServiceOptions. */ @@ -10236,6 +12647,9 @@ export namespace google { /** MethodOptions .google.api.http */ ".google.api.http"?: (google.api.IHttpRule|null); + + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); } /** Represents a MethodOptions. */ @@ -11053,5 +13467,101 @@ export namespace google { */ public toJSON(): { [k: string]: any }; } + + /** Properties of a Timestamp. */ + interface ITimestamp { + + /** Timestamp seconds */ + seconds?: (number|Long|null); + + /** Timestamp nanos */ + nanos?: (number|null); + } + + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { + + /** + * Constructs a new Timestamp. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ITimestamp); + + /** Timestamp seconds. */ + public seconds: (number|Long); + + /** Timestamp nanos. */ + public nanos: number; + + /** + * Creates a new Timestamp instance using the specified properties. + * @param [properties] Properties to set + * @returns Timestamp instance + */ + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Timestamp + * @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.protobuf.Timestamp; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Timestamp + * @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.protobuf.Timestamp; + + /** + * Verifies a Timestamp 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 Timestamp message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Timestamp + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @param message Timestamp + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Timestamp to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } } diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index d040d317e7c..6906a585962 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1065,6 +1065,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.container.v1.ClusterManager#listUsableSubnetworks}. + * @memberof google.container.v1.ClusterManager + * @typedef ListUsableSubnetworksCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.container.v1.ListUsableSubnetworksResponse} [response] ListUsableSubnetworksResponse + */ + + /** + * Calls ListUsableSubnetworks. + * @function listUsableSubnetworks + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IListUsableSubnetworksRequest} request ListUsableSubnetworksRequest message or plain object + * @param {google.container.v1.ClusterManager.ListUsableSubnetworksCallback} callback Node-style callback called with the error, if any, and ListUsableSubnetworksResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.listUsableSubnetworks = function listUsableSubnetworks(request, callback) { + return this.rpcCall(listUsableSubnetworks, $root.google.container.v1.ListUsableSubnetworksRequest, $root.google.container.v1.ListUsableSubnetworksResponse, request, callback); + }, "name", { value: "ListUsableSubnetworks" }); + + /** + * Calls ListUsableSubnetworks. + * @function listUsableSubnetworks + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.IListUsableSubnetworksRequest} request ListUsableSubnetworksRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + return ClusterManager; })(); @@ -1087,6 +1120,8 @@ * @property {Array.|null} [accelerators] NodeConfig accelerators * @property {string|null} [diskType] NodeConfig diskType * @property {string|null} [minCpuPlatform] NodeConfig minCpuPlatform + * @property {Array.|null} [taints] NodeConfig taints + * @property {google.container.v1.IShieldedInstanceConfig|null} [shieldedInstanceConfig] NodeConfig shieldedInstanceConfig */ /** @@ -1103,6 +1138,7 @@ this.labels = {}; this.tags = []; this.accelerators = []; + this.taints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1213,6 +1249,22 @@ */ NodeConfig.prototype.minCpuPlatform = ""; + /** + * NodeConfig taints. + * @member {Array.} taints + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.taints = $util.emptyArray; + + /** + * NodeConfig shieldedInstanceConfig. + * @member {google.container.v1.IShieldedInstanceConfig|null|undefined} shieldedInstanceConfig + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.shieldedInstanceConfig = null; + /** * Creates a new NodeConfig instance using the specified properties. * @function create @@ -1268,6 +1320,11 @@ writer.uint32(/* id 12, wireType 2 =*/98).string(message.diskType); if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.minCpuPlatform); + 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.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) + $root.google.container.v1.ShieldedInstanceConfig.encode(message.shieldedInstanceConfig, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); return writer; }; @@ -1357,6 +1414,14 @@ case 13: message.minCpuPlatform = reader.string(); 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 20: + message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -1455,6 +1520,20 @@ if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) if (!$util.isString(message.minCpuPlatform)) return "minCpuPlatform: string expected"; + if (message.taints != null && message.hasOwnProperty("taints")) { + if (!Array.isArray(message.taints)) + return "taints: array expected"; + for (var i = 0; i < message.taints.length; ++i) { + var error = $root.google.container.v1.NodeTaint.verify(message.taints[i]); + if (error) + return "taints." + error; + } + } + if (message.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) { + var error = $root.google.container.v1.ShieldedInstanceConfig.verify(message.shieldedInstanceConfig); + if (error) + return "shieldedInstanceConfig." + error; + } return null; }; @@ -1524,6 +1603,21 @@ message.diskType = String(object.diskType); if (object.minCpuPlatform != null) message.minCpuPlatform = String(object.minCpuPlatform); + if (object.taints) { + if (!Array.isArray(object.taints)) + throw TypeError(".google.container.v1.NodeConfig.taints: array expected"); + message.taints = []; + for (var i = 0; i < object.taints.length; ++i) { + if (typeof object.taints[i] !== "object") + throw TypeError(".google.container.v1.NodeConfig.taints: object expected"); + message.taints[i] = $root.google.container.v1.NodeTaint.fromObject(object.taints[i]); + } + } + 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); + } return message; }; @@ -1544,6 +1638,7 @@ object.oauthScopes = []; object.tags = []; object.accelerators = []; + object.taints = []; } if (options.objects || options.defaults) { object.metadata = {}; @@ -1558,6 +1653,7 @@ object.preemptible = false; object.diskType = ""; object.minCpuPlatform = ""; + object.shieldedInstanceConfig = null; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -1601,6 +1697,13 @@ object.diskType = message.diskType; if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) object.minCpuPlatform = message.minCpuPlatform; + 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.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) + object.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.toObject(message.shieldedInstanceConfig, options); return object; }; @@ -1618,29 +1721,25 @@ return NodeConfig; })(); - v1.MasterAuth = (function() { + v1.ShieldedInstanceConfig = (function() { /** - * Properties of a MasterAuth. + * Properties of a ShieldedInstanceConfig. * @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 IShieldedInstanceConfig + * @property {boolean|null} [enableSecureBoot] ShieldedInstanceConfig enableSecureBoot + * @property {boolean|null} [enableIntegrityMonitoring] ShieldedInstanceConfig enableIntegrityMonitoring */ /** - * Constructs a new MasterAuth. + * Constructs a new ShieldedInstanceConfig. * @memberof google.container.v1 - * @classdesc Represents a MasterAuth. - * @implements IMasterAuth + * @classdesc Represents a ShieldedInstanceConfig. + * @implements IShieldedInstanceConfig * @constructor - * @param {google.container.v1.IMasterAuth=} [properties] Properties to set + * @param {google.container.v1.IShieldedInstanceConfig=} [properties] Properties to set */ - function MasterAuth(properties) { + function ShieldedInstanceConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1648,140 +1747,88 @@ } /** - * 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 - * @instance - */ - MasterAuth.prototype.clusterCaCertificate = ""; - - /** - * MasterAuth clientCertificate. - * @member {string} clientCertificate - * @memberof google.container.v1.MasterAuth + * ShieldedInstanceConfig enableSecureBoot. + * @member {boolean} enableSecureBoot + * @memberof google.container.v1.ShieldedInstanceConfig * @instance */ - MasterAuth.prototype.clientCertificate = ""; + ShieldedInstanceConfig.prototype.enableSecureBoot = false; /** - * MasterAuth clientKey. - * @member {string} clientKey - * @memberof google.container.v1.MasterAuth + * ShieldedInstanceConfig enableIntegrityMonitoring. + * @member {boolean} enableIntegrityMonitoring + * @memberof google.container.v1.ShieldedInstanceConfig * @instance */ - MasterAuth.prototype.clientKey = ""; + ShieldedInstanceConfig.prototype.enableIntegrityMonitoring = false; /** - * Creates a new MasterAuth instance using the specified properties. + * Creates a new ShieldedInstanceConfig instance using the specified properties. * @function create - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ShieldedInstanceConfig * @static - * @param {google.container.v1.IMasterAuth=} [properties] Properties to set - * @returns {google.container.v1.MasterAuth} MasterAuth instance + * @param {google.container.v1.IShieldedInstanceConfig=} [properties] Properties to set + * @returns {google.container.v1.ShieldedInstanceConfig} ShieldedInstanceConfig instance */ - MasterAuth.create = function create(properties) { - return new MasterAuth(properties); + ShieldedInstanceConfig.create = function create(properties) { + return new ShieldedInstanceConfig(properties); }; /** - * Encodes the specified MasterAuth message. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages. + * Encodes the specified ShieldedInstanceConfig message. Does not implicitly {@link google.container.v1.ShieldedInstanceConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ShieldedInstanceConfig * @static - * @param {google.container.v1.IMasterAuth} message MasterAuth message or plain object to encode + * @param {google.container.v1.IShieldedInstanceConfig} message ShieldedInstanceConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterAuth.encode = function encode(message, writer) { + ShieldedInstanceConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && message.hasOwnProperty("username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.password != null && message.hasOwnProperty("password")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); - if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) - $root.google.container.v1.ClientCertificateConfig.encode(message.clientCertificateConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate")) - writer.uint32(/* id 100, wireType 2 =*/802).string(message.clusterCaCertificate); - if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) - writer.uint32(/* id 101, wireType 2 =*/810).string(message.clientCertificate); - if (message.clientKey != null && message.hasOwnProperty("clientKey")) - writer.uint32(/* id 102, wireType 2 =*/818).string(message.clientKey); + if (message.enableSecureBoot != null && message.hasOwnProperty("enableSecureBoot")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableSecureBoot); + if (message.enableIntegrityMonitoring != null && message.hasOwnProperty("enableIntegrityMonitoring")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableIntegrityMonitoring); return writer; }; /** - * Encodes the specified MasterAuth message, length delimited. Does not implicitly {@link google.container.v1.MasterAuth.verify|verify} messages. + * Encodes the specified ShieldedInstanceConfig message, length delimited. Does not implicitly {@link google.container.v1.ShieldedInstanceConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ShieldedInstanceConfig * @static - * @param {google.container.v1.IMasterAuth} message MasterAuth message or plain object to encode + * @param {google.container.v1.IShieldedInstanceConfig} message ShieldedInstanceConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MasterAuth.encodeDelimited = function encodeDelimited(message, writer) { + ShieldedInstanceConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MasterAuth message from the specified reader or buffer. + * Decodes a ShieldedInstanceConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ShieldedInstanceConfig * @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.ShieldedInstanceConfig} ShieldedInstanceConfig * @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) { + ShieldedInstanceConfig.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.ShieldedInstanceConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.username = reader.string(); + message.enableSecureBoot = reader.bool(); break; case 2: - message.password = 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(); + message.enableIntegrityMonitoring = reader.bool(); break; default: reader.skipType(tag & 7); @@ -1792,153 +1839,118 @@ }; /** - * Decodes a MasterAuth message from the specified reader or buffer, length delimited. + * Decodes a ShieldedInstanceConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ShieldedInstanceConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MasterAuth} MasterAuth + * @returns {google.container.v1.ShieldedInstanceConfig} ShieldedInstanceConfig * @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) { + ShieldedInstanceConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MasterAuth message. + * Verifies a ShieldedInstanceConfig message. * @function verify - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ShieldedInstanceConfig * @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) { + ShieldedInstanceConfig.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.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"; + if (message.enableSecureBoot != null && message.hasOwnProperty("enableSecureBoot")) + if (typeof message.enableSecureBoot !== "boolean") + return "enableSecureBoot: boolean expected"; + if (message.enableIntegrityMonitoring != null && message.hasOwnProperty("enableIntegrityMonitoring")) + if (typeof message.enableIntegrityMonitoring !== "boolean") + return "enableIntegrityMonitoring: boolean expected"; return null; }; /** - * Creates a MasterAuth message from a plain object. Also converts values to their respective internal types. + * Creates a ShieldedInstanceConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ShieldedInstanceConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MasterAuth} MasterAuth + * @returns {google.container.v1.ShieldedInstanceConfig} ShieldedInstanceConfig */ - MasterAuth.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MasterAuth) + ShieldedInstanceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ShieldedInstanceConfig) 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); - } - 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); + var message = new $root.google.container.v1.ShieldedInstanceConfig(); + if (object.enableSecureBoot != null) + message.enableSecureBoot = Boolean(object.enableSecureBoot); + if (object.enableIntegrityMonitoring != null) + message.enableIntegrityMonitoring = Boolean(object.enableIntegrityMonitoring); return message; }; /** - * Creates a plain object from a MasterAuth message. Also converts values to other types if specified. + * Creates a plain object from a ShieldedInstanceConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ShieldedInstanceConfig * @static - * @param {google.container.v1.MasterAuth} message MasterAuth + * @param {google.container.v1.ShieldedInstanceConfig} message ShieldedInstanceConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MasterAuth.toObject = function toObject(message, options) { + ShieldedInstanceConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.username = ""; - object.password = ""; - object.clientCertificateConfig = null; - object.clusterCaCertificate = ""; - object.clientCertificate = ""; - object.clientKey = ""; + object.enableSecureBoot = false; + object.enableIntegrityMonitoring = false; } - 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; + if (message.enableSecureBoot != null && message.hasOwnProperty("enableSecureBoot")) + object.enableSecureBoot = message.enableSecureBoot; + if (message.enableIntegrityMonitoring != null && message.hasOwnProperty("enableIntegrityMonitoring")) + object.enableIntegrityMonitoring = message.enableIntegrityMonitoring; return object; }; /** - * Converts this MasterAuth to JSON. + * Converts this ShieldedInstanceConfig to JSON. * @function toJSON - * @memberof google.container.v1.MasterAuth + * @memberof google.container.v1.ShieldedInstanceConfig * @instance * @returns {Object.} JSON object */ - MasterAuth.prototype.toJSON = function toJSON() { + ShieldedInstanceConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MasterAuth; + return ShieldedInstanceConfig; })(); - 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) @@ -1946,75 +1958,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 && message.hasOwnProperty("issueClientCertificate")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.issueClientCertificate); + if (message.key != null && message.hasOwnProperty("key")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); + if (message.value != null && message.hasOwnProperty("value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.effect != null && message.hasOwnProperty("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); @@ -2025,110 +2063,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 {string} + * @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 + * @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) @@ -2136,114 +2234,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 = ""; /** - * Creates a new AddonsConfig instance using the specified properties. + * MasterAuth clientCertificate. + * @member {string} clientCertificate + * @memberof google.container.v1.MasterAuth + * @instance + */ + MasterAuth.prototype.clientCertificate = ""; + + /** + * 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 && message.hasOwnProperty("httpLoadBalancing")) - $root.google.container.v1.HttpLoadBalancing.encode(message.httpLoadBalancing, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling")) - $root.google.container.v1.HorizontalPodAutoscaling.encode(message.horizontalPodAutoscaling, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard")) - $root.google.container.v1.KubernetesDashboard.encode(message.kubernetesDashboard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig")) - $root.google.container.v1.NetworkPolicyConfig.encode(message.networkPolicyConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.username != null && message.hasOwnProperty("username")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (message.password != null && message.hasOwnProperty("password")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); + if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) + $root.google.container.v1.ClientCertificateConfig.encode(message.clientCertificateConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.clusterCaCertificate); + if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.clientCertificate); + if (message.clientKey != null && message.hasOwnProperty("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 101: + message.clientCertificate = reader.string(); + break; + case 102: + message.clientKey = reader.string(); break; default: reader.skipType(tag & 7); @@ -2254,152 +2378,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 (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 "networkPolicyConfig." + error; + return "clientCertificateConfig." + error; } - return null; - }; - - /** - * Creates an AddonsConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.container.v1.AddonsConfig + 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. + * @function fromObject + * @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); + 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.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.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) @@ -2407,75 +2532,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 && message.hasOwnProperty("disabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + if (message.issueClientCertificate != null && message.hasOwnProperty("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); @@ -2486,107 +2611,111 @@ }; /** - * 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 */ /** - * 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) @@ -2594,75 +2723,127 @@ } /** - * HorizontalPodAutoscaling disabled. - * @member {boolean} disabled - * @memberof google.container.v1.HorizontalPodAutoscaling - * @instance + * 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; + + /** + * 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 && message.hasOwnProperty("disabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) + $root.google.container.v1.HttpLoadBalancing.encode(message.httpLoadBalancing, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("horizontalPodAutoscaling")) + $root.google.container.v1.HorizontalPodAutoscaling.encode(message.horizontalPodAutoscaling, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.kubernetesDashboard != null && message.hasOwnProperty("kubernetesDashboard")) + $root.google.container.v1.KubernetesDashboard.encode(message.kubernetesDashboard, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.networkPolicyConfig != null && message.hasOwnProperty("networkPolicyConfig")) + $root.google.container.v1.NetworkPolicyConfig.encode(message.networkPolicyConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.cloudRunConfig != null && message.hasOwnProperty("cloudRunConfig")) + $root.google.container.v1.CloudRunConfig.encode(message.cloudRunConfig, writer.uint32(/* id 7, wireType 2 =*/58).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; default: reader.skipType(tag & 7); @@ -2673,107 +2854,165 @@ }; /** - * 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; + } 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); + } 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; + } + 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); 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) @@ -2781,35 +3020,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 && message.hasOwnProperty("disabled")) @@ -2818,33 +3057,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) { @@ -2860,30 +3099,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")) @@ -2893,32 +3132,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 = {}; @@ -2930,37 +3169,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) @@ -2968,35 +3207,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 && message.hasOwnProperty("disabled")) @@ -3005,33 +3244,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) { @@ -3047,30 +3286,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")) @@ -3080,32 +3319,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 = {}; @@ -3117,41 +3356,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) @@ -3159,127 +3394,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 && message.hasOwnProperty("enablePrivateNodes")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateNodes); - if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePrivateEndpoint); - if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4CidrBlock); - if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.privateEndpoint); - if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint); + if (message.disabled != null && message.hasOwnProperty("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); @@ -3290,142 +3473,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.MasterAuthorizedNetworksConfig = (function() { + v1.NetworkPolicyConfig = (function() { /** - * Properties of a MasterAuthorizedNetworksConfig. + * Properties of a NetworkPolicyConfig. * @memberof google.container.v1 - * @interface IMasterAuthorizedNetworksConfig - * @property {boolean|null} [enabled] MasterAuthorizedNetworksConfig enabled - * @property {Array.|null} [cidrBlocks] MasterAuthorizedNetworksConfig cidrBlocks + * @interface INetworkPolicyConfig + * @property {boolean|null} [disabled] NetworkPolicyConfig disabled */ /** - * Constructs a new MasterAuthorizedNetworksConfig. + * Constructs a new NetworkPolicyConfig. * @memberof google.container.v1 - * @classdesc Represents a MasterAuthorizedNetworksConfig. - * @implements IMasterAuthorizedNetworksConfig + * @classdesc Represents a NetworkPolicyConfig. + * @implements INetworkPolicyConfig * @constructor - * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set + * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set */ - function MasterAuthorizedNetworksConfig(properties) { - this.cidrBlocks = []; + function NetworkPolicyConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3433,91 +3581,75 @@ } /** - * MasterAuthorizedNetworksConfig enabled. - * @member {boolean} enabled - * @memberof google.container.v1.MasterAuthorizedNetworksConfig - * @instance - */ - MasterAuthorizedNetworksConfig.prototype.enabled = false; - - /** - * MasterAuthorizedNetworksConfig cidrBlocks. - * @member {Array.} cidrBlocks - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * NetworkPolicyConfig disabled. + * @member {boolean} disabled + * @memberof google.container.v1.NetworkPolicyConfig * @instance */ - MasterAuthorizedNetworksConfig.prototype.cidrBlocks = $util.emptyArray; + NetworkPolicyConfig.prototype.disabled = false; /** - * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. + * Creates a new NetworkPolicyConfig instance using the specified properties. * @function create - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static - * @param {google.container.v1.IMasterAuthorizedNetworksConfig=} [properties] Properties to set - * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig instance + * @param {google.container.v1.INetworkPolicyConfig=} [properties] Properties to set + * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig instance */ - MasterAuthorizedNetworksConfig.create = function create(properties) { - return new MasterAuthorizedNetworksConfig(properties); + NetworkPolicyConfig.create = function create(properties) { + return new NetworkPolicyConfig(properties); }; /** - * Encodes the specified MasterAuthorizedNetworksConfig message. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.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.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static - * @param {google.container.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig 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 */ - MasterAuthorizedNetworksConfig.encode = function encode(message, writer) { + NetworkPolicyConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("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(); + if (message.disabled != null && message.hasOwnProperty("disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; /** - * Encodes the specified MasterAuthorizedNetworksConfig message, length delimited. Does not implicitly {@link google.container.v1.MasterAuthorizedNetworksConfig.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.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static - * @param {google.container.v1.IMasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig 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 */ - MasterAuthorizedNetworksConfig.encodeDelimited = function encodeDelimited(message, writer) { + NetworkPolicyConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MasterAuthorizedNetworksConfig message from the specified reader or buffer. + * Decodes a NetworkPolicyConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @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.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @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 */ - MasterAuthorizedNetworksConfig.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.MasterAuthorizedNetworksConfig(); + 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: - if (!(message.cidrBlocks && message.cidrBlocks.length)) - message.cidrBlocks = []; - message.cidrBlocks.push($root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.decode(reader, reader.uint32())); + message.disabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -3528,419 +3660,239 @@ }; /** - * Decodes a MasterAuthorizedNetworksConfig 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.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @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 */ - MasterAuthorizedNetworksConfig.decodeDelimited = function decodeDelimited(reader) { + NetworkPolicyConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MasterAuthorizedNetworksConfig message. + * Verifies a NetworkPolicyConfig message. * @function verify - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @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 */ - MasterAuthorizedNetworksConfig.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.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; - } - } + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; return null; }; /** - * Creates a MasterAuthorizedNetworksConfig 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.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MasterAuthorizedNetworksConfig} MasterAuthorizedNetworksConfig + * @returns {google.container.v1.NetworkPolicyConfig} NetworkPolicyConfig */ - MasterAuthorizedNetworksConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MasterAuthorizedNetworksConfig) + NetworkPolicyConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NetworkPolicyConfig) 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]); - } - } + var message = new $root.google.container.v1.NetworkPolicyConfig(); + if (object.disabled != null) + message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from a MasterAuthorizedNetworksConfig 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.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.NetworkPolicyConfig * @static - * @param {google.container.v1.MasterAuthorizedNetworksConfig} message MasterAuthorizedNetworksConfig + * @param {google.container.v1.NetworkPolicyConfig} message NetworkPolicyConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MasterAuthorizedNetworksConfig.toObject = function toObject(message, options) { + NetworkPolicyConfig.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); - } + object.disabled = false; + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; return object; }; /** - * Converts this MasterAuthorizedNetworksConfig to JSON. + * Converts this NetworkPolicyConfig to JSON. * @function toJSON - * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @memberof google.container.v1.NetworkPolicyConfig * @instance * @returns {Object.} JSON object */ - MasterAuthorizedNetworksConfig.prototype.toJSON = function toJSON() { + NetworkPolicyConfig.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 - */ + return NetworkPolicyConfig; + })(); - /** - * 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]]; - } + v1.PrivateClusterConfig = (function() { - /** - * CidrBlock displayName. - * @member {string} displayName - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @instance - */ - CidrBlock.prototype.displayName = ""; + /** + * Properties of a PrivateClusterConfig. + * @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 + */ - /** - * CidrBlock cidrBlock. - * @member {string} cidrBlock - * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - * @instance - */ - CidrBlock.prototype.cidrBlock = ""; + /** + * Constructs a new PrivateClusterConfig. + * @memberof google.container.v1 + * @classdesc Represents a PrivateClusterConfig. + * @implements IPrivateClusterConfig + * @constructor + * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set + */ + function PrivateClusterConfig(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]]; + } - /** - * 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); - }; + /** + * PrivateClusterConfig enablePrivateNodes. + * @member {boolean} enablePrivateNodes + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.enablePrivateNodes = false; - /** - * 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 && message.hasOwnProperty("displayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock); - return writer; - }; + /** + * PrivateClusterConfig enablePrivateEndpoint. + * @member {boolean} enablePrivateEndpoint + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.enablePrivateEndpoint = false; - /** - * 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(); - }; + /** + * PrivateClusterConfig masterIpv4CidrBlock. + * @member {string} masterIpv4CidrBlock + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.masterIpv4CidrBlock = ""; - /** - * 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; - }; + /** + * PrivateClusterConfig privateEndpoint. + * @member {string} privateEndpoint + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.privateEndpoint = ""; - /** - * 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()); - }; + /** + * PrivateClusterConfig publicEndpoint. + * @member {string} publicEndpoint + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.publicEndpoint = ""; - /** - * 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; - })(); - - v1.LegacyAbac = (function() { - - /** - * Properties of a LegacyAbac. - * @memberof google.container.v1 - * @interface ILegacyAbac - * @property {boolean|null} [enabled] LegacyAbac enabled - */ - - /** - * Constructs a new LegacyAbac. - * @memberof google.container.v1 - * @classdesc Represents a LegacyAbac. - * @implements ILegacyAbac - * @constructor - * @param {google.container.v1.ILegacyAbac=} [properties] Properties to set - */ - 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]]; - } - - /** - * LegacyAbac enabled. - * @member {boolean} enabled - * @memberof google.container.v1.LegacyAbac - * @instance - */ - LegacyAbac.prototype.enabled = false; - - /** - * 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 - */ - LegacyAbac.create = function create(properties) { - return new LegacyAbac(properties); - }; + /** + * Creates a new PrivateClusterConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.PrivateClusterConfig + * @static + * @param {google.container.v1.IPrivateClusterConfig=} [properties] Properties to set + * @returns {google.container.v1.PrivateClusterConfig} PrivateClusterConfig instance + */ + 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 && message.hasOwnProperty("enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateNodes); + if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePrivateEndpoint); + if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4CidrBlock); + if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.privateEndpoint); + if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint); 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; default: reader.skipType(tag & 7); @@ -3951,108 +3903,141 @@ }; /** - * 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"; 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); 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 = ""; + } + 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; 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) @@ -4060,88 +4045,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 && message.hasOwnProperty("provider")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider); if (message.enabled != null && message.hasOwnProperty("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 && message.hasOwnProperty("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); @@ -4152,153 +4137,116 @@ }; /** - * 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 {string} - * @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.IPAllocationPolicy = (function() { + v1.CloudRunConfig = (function() { /** - * Properties of a IPAllocationPolicy. + * Properties of a CloudRunConfig. * @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 + * @interface ICloudRunConfig + * @property {boolean|null} [disabled] CloudRunConfig disabled */ /** - * Constructs a new IPAllocationPolicy. + * Constructs a new CloudRunConfig. * @memberof google.container.v1 - * @classdesc Represents a IPAllocationPolicy. - * @implements IIPAllocationPolicy + * @classdesc Represents a CloudRunConfig. + * @implements ICloudRunConfig * @constructor - * @param {google.container.v1.IIPAllocationPolicy=} [properties] Properties to set + * @param {google.container.v1.ICloudRunConfig=} [properties] Properties to set */ - function IPAllocationPolicy(properties) { + function CloudRunConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4306,208 +4254,78 @@ } /** - * 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 + * CloudRunConfig disabled. + * @member {boolean} disabled + * @memberof google.container.v1.CloudRunConfig * @instance */ - IPAllocationPolicy.prototype.servicesIpv4CidrBlock = ""; + CloudRunConfig.prototype.disabled = false; /** - * Creates a new IPAllocationPolicy instance using the specified properties. + * Creates a new CloudRunConfig instance using the specified properties. * @function create - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.CloudRunConfig * @static - * @param {google.container.v1.IIPAllocationPolicy=} [properties] Properties to set - * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy instance + * @param {google.container.v1.ICloudRunConfig=} [properties] Properties to set + * @returns {google.container.v1.CloudRunConfig} CloudRunConfig instance */ - IPAllocationPolicy.create = function create(properties) { - return new IPAllocationPolicy(properties); + CloudRunConfig.create = function create(properties) { + return new CloudRunConfig(properties); }; /** - * Encodes the specified IPAllocationPolicy message. Does not implicitly {@link google.container.v1.IPAllocationPolicy.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.IPAllocationPolicy + * @memberof google.container.v1.CloudRunConfig * @static - * @param {google.container.v1.IIPAllocationPolicy} message IPAllocationPolicy 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 */ - IPAllocationPolicy.encode = function encode(message, writer) { + CloudRunConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases); - if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.createSubnetwork); - if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subnetworkName); - if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4Cidr); - if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeIpv4Cidr); - if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.servicesIpv4Cidr); - if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.clusterSecondaryRangeName); - if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.servicesSecondaryRangeName); - if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4CidrBlock); - if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.nodeIpv4CidrBlock); - if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.servicesIpv4CidrBlock); + if (message.disabled != null && message.hasOwnProperty("disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; /** - * Encodes the specified IPAllocationPolicy message, length delimited. Does not implicitly {@link google.container.v1.IPAllocationPolicy.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.IPAllocationPolicy + * @memberof google.container.v1.CloudRunConfig * @static - * @param {google.container.v1.IIPAllocationPolicy} message IPAllocationPolicy 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 */ - IPAllocationPolicy.encodeDelimited = function encodeDelimited(message, writer) { + CloudRunConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a IPAllocationPolicy message from the specified reader or buffer. + * Decodes a CloudRunConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.IPAllocationPolicy + * @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.IPAllocationPolicy} IPAllocationPolicy + * @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 */ - IPAllocationPolicy.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.IPAllocationPolicy(); + 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.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(); + message.disabled = reader.bool(); 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; - default: - reader.skipType(tag & 7); + default: + reader.skipType(tag & 7); break; } } @@ -4515,229 +4333,109 @@ }; /** - * Decodes a IPAllocationPolicy 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.IPAllocationPolicy + * @memberof google.container.v1.CloudRunConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy + * @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 */ - IPAllocationPolicy.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 IPAllocationPolicy message. + * Verifies a CloudRunConfig message. * @function verify - * @memberof google.container.v1.IPAllocationPolicy + * @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 */ - IPAllocationPolicy.verify = function verify(message) { + CloudRunConfig.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.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; return null; }; /** - * Creates a IPAllocationPolicy 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.IPAllocationPolicy + * @memberof google.container.v1.CloudRunConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.IPAllocationPolicy} IPAllocationPolicy + * @returns {google.container.v1.CloudRunConfig} CloudRunConfig */ - IPAllocationPolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.IPAllocationPolicy) + CloudRunConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CloudRunConfig) 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); + var message = new $root.google.container.v1.CloudRunConfig(); + if (object.disabled != null) + message.disabled = Boolean(object.disabled); return message; }; /** - * Creates a plain object from a IPAllocationPolicy 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.IPAllocationPolicy + * @memberof google.container.v1.CloudRunConfig * @static - * @param {google.container.v1.IPAllocationPolicy} message IPAllocationPolicy + * @param {google.container.v1.CloudRunConfig} message CloudRunConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IPAllocationPolicy.toObject = function toObject(message, options) { + CloudRunConfig.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 = ""; - } - 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 (options.defaults) + object.disabled = false; + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; return object; }; /** - * Converts this IPAllocationPolicy to JSON. + * Converts this CloudRunConfig to JSON. * @function toJSON - * @memberof google.container.v1.IPAllocationPolicy + * @memberof google.container.v1.CloudRunConfig * @instance * @returns {Object.} JSON object */ - IPAllocationPolicy.prototype.toJSON = function toJSON() { + CloudRunConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IPAllocationPolicy; + return CloudRunConfig; })(); - 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.INetworkConfig|null} [networkConfig] Cluster networkConfig - * @property {google.container.v1.IPrivateClusterConfig|null} [privateClusterConfig] Cluster privateClusterConfig - * @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 + * @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 = []; + function MasterAuthorizedNetworksConfig(properties) { + this.cidrBlocks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -4745,571 +4443,715 @@ } /** - * Cluster name. - * @member {string} name - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.name = ""; - - /** - * Cluster description. - * @member {string} description - * @memberof google.container.v1.Cluster + * MasterAuthorizedNetworksConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.MasterAuthorizedNetworksConfig * @instance */ - Cluster.prototype.description = ""; + MasterAuthorizedNetworksConfig.prototype.enabled = false; /** - * Cluster initialNodeCount. - * @member {number} initialNodeCount - * @memberof google.container.v1.Cluster + * MasterAuthorizedNetworksConfig cidrBlocks. + * @member {Array.} cidrBlocks + * @memberof google.container.v1.MasterAuthorizedNetworksConfig * @instance */ - Cluster.prototype.initialNodeCount = 0; + MasterAuthorizedNetworksConfig.prototype.cidrBlocks = $util.emptyArray; /** - * Cluster nodeConfig. - * @member {google.container.v1.INodeConfig|null|undefined} nodeConfig - * @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.nodeConfig = null; + MasterAuthorizedNetworksConfig.create = function create(properties) { + return new MasterAuthorizedNetworksConfig(properties); + }; /** - * Cluster masterAuth. - * @member {google.container.v1.IMasterAuth|null|undefined} masterAuth - * @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.masterAuth = null; + MasterAuthorizedNetworksConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && message.hasOwnProperty("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 loggingService. - * @member {string} loggingService - * @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.loggingService = ""; + MasterAuthorizedNetworksConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Cluster monitoringService. - * @member {string} monitoringService - * @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.monitoringService = ""; + 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 network. - * @member {string} network - * @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.network = ""; + MasterAuthorizedNetworksConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Cluster clusterIpv4Cidr. - * @member {string} clusterIpv4Cidr - * @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.clusterIpv4Cidr = ""; + 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 addonsConfig. - * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig - * @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.addonsConfig = null; + 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 subnetwork. - * @member {string} subnetwork - * @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.subnetwork = ""; + 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 nodePools. - * @member {Array.} nodePools - * @memberof google.container.v1.Cluster + * Converts this MasterAuthorizedNetworksConfig to JSON. + * @function toJSON + * @memberof google.container.v1.MasterAuthorizedNetworksConfig * @instance + * @returns {Object.} JSON object */ - Cluster.prototype.nodePools = $util.emptyArray; + MasterAuthorizedNetworksConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Cluster locations. - * @member {Array.} locations - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.locations = $util.emptyArray; + MasterAuthorizedNetworksConfig.CidrBlock = (function() { - /** - * Cluster enableKubernetesAlpha. - * @member {boolean} enableKubernetesAlpha - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.enableKubernetesAlpha = false; + /** + * Properties of a CidrBlock. + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @interface ICidrBlock + * @property {string|null} [displayName] CidrBlock displayName + * @property {string|null} [cidrBlock] CidrBlock cidrBlock + */ - /** - * Cluster resourceLabels. - * @member {Object.} resourceLabels - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.resourceLabels = $util.emptyObject; + /** + * 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 labelFingerprint. - * @member {string} labelFingerprint - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.labelFingerprint = ""; + /** + * CidrBlock displayName. + * @member {string} displayName + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @instance + */ + CidrBlock.prototype.displayName = ""; - /** - * Cluster legacyAbac. - * @member {google.container.v1.ILegacyAbac|null|undefined} legacyAbac - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.legacyAbac = null; + /** + * CidrBlock cidrBlock. + * @member {string} cidrBlock + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @instance + */ + CidrBlock.prototype.cidrBlock = ""; - /** - * Cluster networkPolicy. - * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.networkPolicy = 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 ipAllocationPolicy. - * @member {google.container.v1.IIPAllocationPolicy|null|undefined} ipAllocationPolicy - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.ipAllocationPolicy = 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 && message.hasOwnProperty("displayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); + if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock); + return writer; + }; - /** - * 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, 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 maintenancePolicy. - * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.maintenancePolicy = 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 networkConfig. - * @member {google.container.v1.INetworkConfig|null|undefined} networkConfig - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.networkConfig = 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 privateClusterConfig. - * @member {google.container.v1.IPrivateClusterConfig|null|undefined} privateClusterConfig - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.privateClusterConfig = 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 selfLink. - * @member {string} selfLink - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.selfLink = ""; + /** + * 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 zone. - * @member {string} zone - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.zone = ""; + /** + * 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 endpoint. - * @member {string} endpoint - * @memberof google.container.v1.Cluster - * @instance - */ - Cluster.prototype.endpoint = ""; + /** + * 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; + })(); + + v1.LegacyAbac = (function() { /** - * Cluster initialClusterVersion. - * @member {string} initialClusterVersion - * @memberof google.container.v1.Cluster - * @instance + * Properties of a LegacyAbac. + * @memberof google.container.v1 + * @interface ILegacyAbac + * @property {boolean|null} [enabled] LegacyAbac enabled */ - Cluster.prototype.initialClusterVersion = ""; /** - * Cluster currentMasterVersion. - * @member {string} currentMasterVersion - * @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.currentMasterVersion = ""; + 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 currentNodeVersion. - * @member {string} currentNodeVersion - * @memberof google.container.v1.Cluster + * LegacyAbac enabled. + * @member {boolean} enabled + * @memberof google.container.v1.LegacyAbac * @instance */ - Cluster.prototype.currentNodeVersion = ""; + LegacyAbac.prototype.enabled = false; /** - * Cluster createTime. - * @member {string} createTime - * @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.createTime = ""; + LegacyAbac.create = function create(properties) { + return new LegacyAbac(properties); + }; /** - * Cluster status. - * @member {google.container.v1.Cluster.Status} status - * @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.status = 0; + LegacyAbac.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; /** - * Cluster statusMessage. - * @member {string} statusMessage - * @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.statusMessage = ""; + LegacyAbac.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Cluster nodeIpv4CidrSize. - * @member {number} nodeIpv4CidrSize - * @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.nodeIpv4CidrSize = 0; + 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 servicesIpv4Cidr. - * @member {string} servicesIpv4Cidr - * @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.servicesIpv4Cidr = ""; + LegacyAbac.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Cluster instanceGroupUrls. - * @member {Array.} instanceGroupUrls - * @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.instanceGroupUrls = $util.emptyArray; + 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 currentNodeCount. - * @member {number} currentNodeCount - * @memberof google.container.v1.Cluster + * 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 + */ + 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; + }; + + /** + * 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 + */ + 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; + }; + + /** + * Converts this LegacyAbac to JSON. + * @function toJSON + * @memberof google.container.v1.LegacyAbac * @instance + * @returns {Object.} JSON object */ - Cluster.prototype.currentNodeCount = 0; + LegacyAbac.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LegacyAbac; + })(); + + v1.NetworkPolicy = (function() { /** - * Cluster expireTime. - * @member {string} expireTime - * @memberof google.container.v1.Cluster + * 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 + */ + + /** + * Constructs a new NetworkPolicy. + * @memberof google.container.v1 + * @classdesc Represents a NetworkPolicy. + * @implements INetworkPolicy + * @constructor + * @param {google.container.v1.INetworkPolicy=} [properties] Properties to set + */ + 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]]; + } + + /** + * NetworkPolicy provider. + * @member {google.container.v1.NetworkPolicy.Provider} provider + * @memberof google.container.v1.NetworkPolicy * @instance */ - Cluster.prototype.expireTime = ""; + NetworkPolicy.prototype.provider = 0; /** - * Cluster location. - * @member {string} location - * @memberof google.container.v1.Cluster + * NetworkPolicy enabled. + * @member {boolean} enabled + * @memberof google.container.v1.NetworkPolicy * @instance */ - Cluster.prototype.location = ""; + 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 && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.description != null && message.hasOwnProperty("description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) - $root.google.container.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.masterAuth != null && message.hasOwnProperty("masterAuth")) - $root.google.container.v1.MasterAuth.encode(message.masterAuth, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.loggingService != null && message.hasOwnProperty("loggingService")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.loggingService); - if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.monitoringService); - if (message.network != null && message.hasOwnProperty("network")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.network); - if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4Cidr); - if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) - $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.subnetwork != null && message.hasOwnProperty("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 && message.hasOwnProperty("enableKubernetesAlpha")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableKubernetesAlpha); - if (message.resourceLabels != null && message.hasOwnProperty("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 && message.hasOwnProperty("labelFingerprint")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.labelFingerprint); - if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) - $root.google.container.v1.LegacyAbac.encode(message.legacyAbac, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) - $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) - $root.google.container.v1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) - $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.masterAuthorizedNetworksConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); - if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) - $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) - $root.google.container.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); - if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) - $root.google.container.v1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 101, wireType 2 =*/810).string(message.zone); - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - writer.uint32(/* id 102, wireType 2 =*/818).string(message.endpoint); - if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion")) - writer.uint32(/* id 103, wireType 2 =*/826).string(message.initialClusterVersion); - if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion")) - writer.uint32(/* id 104, wireType 2 =*/834).string(message.currentMasterVersion); - if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion")) - writer.uint32(/* id 105, wireType 2 =*/842).string(message.currentNodeVersion); - if (message.createTime != null && message.hasOwnProperty("createTime")) - writer.uint32(/* id 106, wireType 2 =*/850).string(message.createTime); - if (message.status != null && message.hasOwnProperty("status")) - writer.uint32(/* id 107, wireType 0 =*/856).int32(message.status); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - writer.uint32(/* id 108, wireType 2 =*/866).string(message.statusMessage); - if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize")) - writer.uint32(/* id 109, wireType 0 =*/872).int32(message.nodeIpv4CidrSize); - if (message.servicesIpv4Cidr != null && message.hasOwnProperty("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 && message.hasOwnProperty("currentNodeCount")) - writer.uint32(/* id 112, wireType 0 =*/896).int32(message.currentNodeCount); - if (message.expireTime != null && message.hasOwnProperty("expireTime")) - writer.uint32(/* id 113, wireType 2 =*/906).string(message.expireTime); - if (message.location != null && message.hasOwnProperty("location")) - writer.uint32(/* id 114, wireType 2 =*/914).string(message.location); + if (message.provider != null && message.hasOwnProperty("provider")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider); + if (message.enabled != null && message.hasOwnProperty("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; + 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: - reader.skip().pos++; - if (message.resourceLabels === $util.emptyObject) - message.resourceLabels = {}; - key = reader.string(); - reader.pos++; - message.resourceLabels[key] = reader.string(); - 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 27: - message.networkConfig = $root.google.container.v1.NetworkConfig.decode(reader, reader.uint32()); - break; - case 37: - message.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.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(); + message.enabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -5320,583 +5162,7135 @@ }; /** - * Decodes a Cluster message from the specified reader or buffer, length delimited. + * Decodes a NetworkPolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.NetworkPolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @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.decodeDelimited = function decodeDelimited(reader) { + NetworkPolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Cluster message. + * Verifies a NetworkPolicy message. * @function verify - * @memberof google.container.v1.Cluster + * @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 */ - Cluster.verify = function verify(message) { + NetworkPolicy.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.provider != null && message.hasOwnProperty("provider")) + switch (message.provider) { + default: + return "provider: enum value expected"; + case 0: + case 1: + break; } - } - 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.networkConfig != null && message.hasOwnProperty("networkConfig")) { - var error = $root.google.container.v1.NetworkConfig.verify(message.networkConfig); - if (error) - return "networkConfig." + 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.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.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; return null; }; /** - * Creates a Cluster message from a plain object. Also converts values to their respective internal types. + * Creates a NetworkPolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.NetworkPolicy * @static * @param {Object.} object Plain object - * @returns {google.container.v1.Cluster} Cluster + * @returns {google.container.v1.NetworkPolicy} NetworkPolicy */ - Cluster.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.Cluster) + NetworkPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NetworkPolicy) 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.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.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.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": + var message = new $root.google.container.v1.NetworkPolicy(); + switch (object.provider) { + case "PROVIDER_UNSPECIFIED": case 0: - message.status = 0; + message.provider = 0; break; - case "PROVISIONING": + case "CALICO": 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; + message.provider = 1; 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.enabled != null) + message.enabled = Boolean(object.enabled); return message; }; /** - * Creates a plain object from a Cluster message. Also converts values to other types if specified. + * Creates a plain object from a NetworkPolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.NetworkPolicy * @static - * @param {google.container.v1.Cluster} message Cluster + * @param {google.container.v1.NetworkPolicy} message NetworkPolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Cluster.toObject = function toObject(message, options) { + NetworkPolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.nodePools = []; - object.locations = []; - object.instanceGroupUrls = []; - } - 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.networkConfig = null; - object.privateClusterConfig = 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 = ""; - } - 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]; + object.provider = options.enums === String ? "PROVIDER_UNSPECIFIED" : 0; + object.enabled = false; } - 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.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 {string} + * @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 && message.hasOwnProperty("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); + break; + } } - 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.networkConfig != null && message.hasOwnProperty("networkConfig")) - object.networkConfig = $root.google.container.v1.NetworkConfig.toObject(message.networkConfig, options); - if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) - object.privateClusterConfig = $root.google.container.v1.PrivateClusterConfig.toObject(message.privateClusterConfig, 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; + return message; + }; + + /** + * Decodes a BinaryAuthorization message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.BinaryAuthorization + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BinaryAuthorization message. + * @function verify + * @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 + */ + BinaryAuthorization.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; + }; + + /** + * 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 + */ + + /** + * 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 = ""; + + /** + * 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 && message.hasOwnProperty("useIpAliases")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases); + if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.createSubnetwork); + if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subnetworkName); + if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4Cidr); + if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeIpv4Cidr); 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]; + writer.uint32(/* id 6, wireType 2 =*/50).string(message.servicesIpv4Cidr); + if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.clusterSecondaryRangeName); + if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.servicesSecondaryRangeName); + if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4CidrBlock); + if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.nodeIpv4CidrBlock); + if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.servicesIpv4CidrBlock); + if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.tpuIpv4CidrBlock); + 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; + 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"; + 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); + 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 = ""; + } + 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; + 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 {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 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 && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); + if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) + $root.google.container.v1.NodeConfig.encode(message.nodeConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.masterAuth != null && message.hasOwnProperty("masterAuth")) + $root.google.container.v1.MasterAuth.encode(message.masterAuth, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.loggingService != null && message.hasOwnProperty("loggingService")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.loggingService); + if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.monitoringService); + if (message.network != null && message.hasOwnProperty("network")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.network); + if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4Cidr); + if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) + $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.subnetwork != null && message.hasOwnProperty("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 && message.hasOwnProperty("enableKubernetesAlpha")) + writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableKubernetesAlpha); + if (message.resourceLabels != null && message.hasOwnProperty("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 && message.hasOwnProperty("labelFingerprint")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.labelFingerprint); + if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) + $root.google.container.v1.LegacyAbac.encode(message.legacyAbac, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.ipAllocationPolicy != null && message.hasOwnProperty("ipAllocationPolicy")) + $root.google.container.v1.IPAllocationPolicy.encode(message.ipAllocationPolicy, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("masterAuthorizedNetworksConfig")) + $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.masterAuthorizedNetworksConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.binaryAuthorization != null && message.hasOwnProperty("binaryAuthorization")) + $root.google.container.v1.BinaryAuthorization.encode(message.binaryAuthorization, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + $root.google.container.v1.ClusterAutoscaling.encode(message.autoscaling, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) + $root.google.container.v1.NetworkConfig.encode(message.networkConfig, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); + if (message.defaultMaxPodsConstraint != null && message.hasOwnProperty("defaultMaxPodsConstraint")) + $root.google.container.v1.MaxPodsConstraint.encode(message.defaultMaxPodsConstraint, writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); + if (message.resourceUsageExportConfig != null && message.hasOwnProperty("resourceUsageExportConfig")) + $root.google.container.v1.ResourceUsageExportConfig.encode(message.resourceUsageExportConfig, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); + if (message.authenticatorGroupsConfig != null && message.hasOwnProperty("authenticatorGroupsConfig")) + $root.google.container.v1.AuthenticatorGroupsConfig.encode(message.authenticatorGroupsConfig, writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); + if (message.privateClusterConfig != null && message.hasOwnProperty("privateClusterConfig")) + $root.google.container.v1.PrivateClusterConfig.encode(message.privateClusterConfig, writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); + if (message.databaseEncryption != null && message.hasOwnProperty("databaseEncryption")) + $root.google.container.v1.DatabaseEncryption.encode(message.databaseEncryption, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); + if (message.verticalPodAutoscaling != null && message.hasOwnProperty("verticalPodAutoscaling")) + $root.google.container.v1.VerticalPodAutoscaling.encode(message.verticalPodAutoscaling, writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.zone); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.endpoint); + if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion")) + writer.uint32(/* id 103, wireType 2 =*/826).string(message.initialClusterVersion); + if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion")) + writer.uint32(/* id 104, wireType 2 =*/834).string(message.currentMasterVersion); + if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion")) + writer.uint32(/* id 105, wireType 2 =*/842).string(message.currentNodeVersion); + if (message.createTime != null && message.hasOwnProperty("createTime")) + writer.uint32(/* id 106, wireType 2 =*/850).string(message.createTime); + if (message.status != null && message.hasOwnProperty("status")) + writer.uint32(/* id 107, wireType 0 =*/856).int32(message.status); + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + writer.uint32(/* id 108, wireType 2 =*/866).string(message.statusMessage); + if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize")) + writer.uint32(/* id 109, wireType 0 =*/872).int32(message.nodeIpv4CidrSize); + if (message.servicesIpv4Cidr != null && message.hasOwnProperty("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 && message.hasOwnProperty("currentNodeCount")) + writer.uint32(/* id 112, wireType 0 =*/896).int32(message.currentNodeCount); + if (message.expireTime != null && message.hasOwnProperty("expireTime")) + writer.uint32(/* id 113, wireType 2 =*/906).string(message.expireTime); + if (message.location != null && message.hasOwnProperty("location")) + writer.uint32(/* id 114, wireType 2 =*/914).string(message.location); + if (message.enableTpu != null && message.hasOwnProperty("enableTpu")) + writer.uint32(/* id 115, wireType 0 =*/920).bool(message.enableTpu); + if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("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; + 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: + reader.skip().pos++; + if (message.resourceLabels === $util.emptyObject) + message.resourceLabels = {}; + key = reader.string(); + reader.pos++; + message.resourceLabels[key] = reader.string(); + 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(); + 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.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.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.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.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 {string} + * @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 + */ + + /** + * 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 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 desiredIntraNodeVisibilityConfig. + * @member {google.container.v1.IIntraNodeVisibilityConfig|null|undefined} desiredIntraNodeVisibilityConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredIntraNodeVisibilityConfig = 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 && message.hasOwnProperty("desiredNodeVersion")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.desiredNodeVersion); + if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.desiredMonitoringService); + if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) + $root.google.container.v1.AddonsConfig.encode(message.desiredAddonsConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.desiredNodePoolId); + if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.desiredImageType); + if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("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 && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) + $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.desiredMasterAuthorizedNetworksConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.desiredClusterAutoscaling != null && message.hasOwnProperty("desiredClusterAutoscaling")) + $root.google.container.v1.ClusterAutoscaling.encode(message.desiredClusterAutoscaling, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.desiredBinaryAuthorization != null && message.hasOwnProperty("desiredBinaryAuthorization")) + $root.google.container.v1.BinaryAuthorization.encode(message.desiredBinaryAuthorization, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.desiredLoggingService != null && message.hasOwnProperty("desiredLoggingService")) + writer.uint32(/* id 19, wireType 2 =*/154).string(message.desiredLoggingService); + if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig")) + $root.google.container.v1.ResourceUsageExportConfig.encode(message.desiredResourceUsageExportConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.desiredVerticalPodAutoscaling != null && message.hasOwnProperty("desiredVerticalPodAutoscaling")) + $root.google.container.v1.VerticalPodAutoscaling.encode(message.desiredVerticalPodAutoscaling, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.desiredIntraNodeVisibilityConfig != null && message.hasOwnProperty("desiredIntraNodeVisibilityConfig")) + $root.google.container.v1.IntraNodeVisibilityConfig.encode(message.desiredIntraNodeVisibilityConfig, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.desiredDatabaseEncryption != null && message.hasOwnProperty("desiredDatabaseEncryption")) + $root.google.container.v1.DatabaseEncryption.encode(message.desiredDatabaseEncryption, writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim(); + if (message.desiredMasterVersion != null && message.hasOwnProperty("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 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 26: + message.desiredIntraNodeVisibilityConfig = $root.google.container.v1.IntraNodeVisibilityConfig.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.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"; + 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.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); + 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.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; + 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 {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 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 && message.hasOwnProperty("name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.operationType != null && message.hasOwnProperty("operationType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operationType); + if (message.status != null && message.hasOwnProperty("status")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.selfLink); + if (message.targetLink != null && message.hasOwnProperty("targetLink")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetLink); + if (message.detail != null && message.hasOwnProperty("detail")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.detail); + if (message.location != null && message.hasOwnProperty("location")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.location); + if (message.startTime != null && message.hasOwnProperty("startTime")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTime); + if (message.endTime != null && message.hasOwnProperty("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(); + 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 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.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.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 = ""; + } + 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.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 {string} + * @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 {string} + * @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.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 && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.cluster != null && message.hasOwnProperty("cluster")) + $root.google.container.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parent != null && message.hasOwnProperty("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 && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && message.hasOwnProperty("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 && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.update != null && message.hasOwnProperty("update")) + $root.google.container.v1.ClusterUpdate.encode(message.update, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("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 "update." + 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 (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.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 + */ + + /** + * 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) { + 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 = ""; + + /** + * 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 && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeVersion); + if (message.imageType != null && message.hasOwnProperty("imageType")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.imageType); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); + 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; + default: + reader.skipType(tag & 7); + break; + } + } + 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"; + return null; + }; + + /** + * Creates an UpdateNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest + */ + UpdateNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UpdateNodePoolRequest) + return object; + 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.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); + return message; + }; + + /** + * Creates a plain object from an UpdateNodePoolRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {google.container.v1.UpdateNodePoolRequest} message UpdateNodePoolRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateNodePoolRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.nodeVersion = ""; + object.imageType = ""; + 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.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; + return object; + }; + + /** + * Converts this UpdateNodePoolRequest to JSON. + * @function toJSON + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateNodePoolRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateNodePoolRequest; + })(); + + v1.SetNodePoolAutoscalingRequest = (function() { + + /** + * Properties of a SetNodePoolAutoscalingRequest. + * @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 + */ + + /** + * Constructs a new SetNodePoolAutoscalingRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetNodePoolAutoscalingRequest. + * @implements ISetNodePoolAutoscalingRequest + * @constructor + * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set + */ + function SetNodePoolAutoscalingRequest(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]]; + } + + /** + * SetNodePoolAutoscalingRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @instance + */ + SetNodePoolAutoscalingRequest.prototype.projectId = ""; + + /** + * SetNodePoolAutoscalingRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @instance + */ + SetNodePoolAutoscalingRequest.prototype.zone = ""; + + /** + * SetNodePoolAutoscalingRequest 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 + * @instance + */ + SetNodePoolAutoscalingRequest.prototype.autoscaling = null; + + /** + * SetNodePoolAutoscalingRequest name. + * @member {string} name + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @instance + */ + SetNodePoolAutoscalingRequest.prototype.name = ""; + + /** + * 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 + */ + 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 && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("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; + }; + + /** + * 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 + */ + 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; + }; + + /** + * Converts this SetNodePoolAutoscalingRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @instance + * @returns {Object.} JSON object + */ + SetNodePoolAutoscalingRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetNodePoolAutoscalingRequest; + })(); + + v1.SetLoggingServiceRequest = (function() { + + /** + * 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 + */ + + /** + * Constructs a new SetLoggingServiceRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetLoggingServiceRequest. + * @implements ISetLoggingServiceRequest + * @constructor + * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set + */ + 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]]; + } + + /** + * SetLoggingServiceRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetLoggingServiceRequest + * @instance + */ + SetLoggingServiceRequest.prototype.projectId = ""; + + /** + * SetLoggingServiceRequest 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 + * @instance + */ + SetLoggingServiceRequest.prototype.loggingService = ""; + + /** + * SetLoggingServiceRequest name. + * @member {string} name + * @memberof google.container.v1.SetLoggingServiceRequest + * @instance + */ + SetLoggingServiceRequest.prototype.name = ""; + + /** + * Creates a new SetLoggingServiceRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest instance + */ + SetLoggingServiceRequest.create = function create(properties) { + return new SetLoggingServiceRequest(properties); + }; + + /** + * Encodes the specified SetLoggingServiceRequest message. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @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 + */ + SetLoggingServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.loggingService != null && message.hasOwnProperty("loggingService")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.loggingService); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetLoggingServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @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 + */ + SetLoggingServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetLoggingServiceRequest message from the specified reader or buffer. + * @function decode + * @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.SetLoggingServiceRequest} SetLoggingServiceRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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 1: + message.projectId = reader.string(); + break; + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetLoggingServiceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetLoggingServiceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetLoggingServiceRequest message. + * @function verify + * @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 + */ + SetLoggingServiceRequest.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.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 SetLoggingServiceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest + */ + SetLoggingServiceRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLoggingServiceRequest) + return object; + 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 SetLoggingServiceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @param {google.container.v1.SetLoggingServiceRequest} message SetLoggingServiceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetLoggingServiceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + 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 SetLoggingServiceRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetLoggingServiceRequest + * @instance + * @returns {Object.} JSON object + */ + SetLoggingServiceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetLoggingServiceRequest; + })(); + + v1.SetMonitoringServiceRequest = (function() { + + /** + * Properties of a SetMonitoringServiceRequest. + * @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 + */ + + /** + * Constructs a new SetMonitoringServiceRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetMonitoringServiceRequest. + * @implements ISetMonitoringServiceRequest + * @constructor + * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set + */ + function SetMonitoringServiceRequest(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]]; + } + + /** + * 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 + * @instance + */ + SetMonitoringServiceRequest.prototype.monitoringService = ""; + + /** + * SetMonitoringServiceRequest name. + * @member {string} name + * @memberof google.container.v1.SetMonitoringServiceRequest + * @instance + */ + SetMonitoringServiceRequest.prototype.name = ""; + + /** + * Creates a new SetMonitoringServiceRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set + * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest instance + */ + SetMonitoringServiceRequest.create = function create(properties) { + return new SetMonitoringServiceRequest(properties); + }; + + /** + * Encodes the specified SetMonitoringServiceRequest message. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @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 + */ + SetMonitoringServiceRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.monitoringService); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetMonitoringServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @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 + */ + SetMonitoringServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer. + * @function decode + * @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.SetMonitoringServiceRequest} SetMonitoringServiceRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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.projectId = reader.string(); + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetMonitoringServiceRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetMonitoringServiceRequest message. + * @function verify + * @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 + */ + SetMonitoringServiceRequest.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"; + return null; + }; + + /** + * Creates a SetMonitoringServiceRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @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 a SetMonitoringServiceRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @param {google.container.v1.SetMonitoringServiceRequest} message SetMonitoringServiceRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetMonitoringServiceRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.monitoringService = ""; + 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.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. + * @function toJSON + * @memberof google.container.v1.SetMonitoringServiceRequest + * @instance + * @returns {Object.} JSON object + */ + SetMonitoringServiceRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetMonitoringServiceRequest; + })(); + + v1.SetAddonsConfigRequest = (function() { + + /** + * Properties of a SetAddonsConfigRequest. + * @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 + */ + + /** + * Constructs a new SetAddonsConfigRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetAddonsConfigRequest. + * @implements ISetAddonsConfigRequest + * @constructor + * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set + */ + function SetAddonsConfigRequest(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]]; + } + + /** + * SetAddonsConfigRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + */ + SetAddonsConfigRequest.prototype.projectId = ""; + + /** + * SetAddonsConfigRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + */ + SetAddonsConfigRequest.prototype.zone = ""; + + /** + * SetAddonsConfigRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + */ + SetAddonsConfigRequest.prototype.clusterId = ""; + + /** + * SetAddonsConfigRequest addonsConfig. + * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + */ + SetAddonsConfigRequest.prototype.addonsConfig = null; + + /** + * 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.SetAddonsConfigRequest + * @static + * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set + * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest instance + */ + SetAddonsConfigRequest.create = function create(properties) { + return new SetAddonsConfigRequest(properties); + }; + + /** + * Encodes the specified SetAddonsConfigRequest message. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @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 + */ + SetAddonsConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) + $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetAddonsConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @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 + */ + SetAddonsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetAddonsConfigRequest message from the specified reader or buffer. + * @function decode + * @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.SetAddonsConfigRequest} SetAddonsConfigRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + case 1: + message.projectId = reader.string(); + break; + case 2: + 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()); + break; + case 6: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetAddonsConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetAddonsConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetAddonsConfigRequest message. + * @function verify + * @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 + */ + SetAddonsConfigRequest.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.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 a SetAddonsConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest + */ + SetAddonsConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetAddonsConfigRequest) + return object; + 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.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.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. + * @function toObject + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @param {google.container.v1.SetAddonsConfigRequest} message SetAddonsConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetAddonsConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + 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.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 SetAddonsConfigRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetAddonsConfigRequest + * @instance + * @returns {Object.} JSON object + */ + SetAddonsConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetAddonsConfigRequest; + })(); + + v1.SetLocationsRequest = (function() { + + /** + * Properties of a SetLocationsRequest. + * @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 + */ + + /** + * Constructs a new SetLocationsRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetLocationsRequest. + * @implements ISetLocationsRequest + * @constructor + * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set + */ + function SetLocationsRequest(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]]; + } + + /** + * SetLocationsRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetLocationsRequest + * @instance + */ + SetLocationsRequest.prototype.projectId = ""; + + /** + * SetLocationsRequest 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 + * @instance + */ + SetLocationsRequest.prototype.locations = $util.emptyArray; + + /** + * SetLocationsRequest name. + * @member {string} name + * @memberof google.container.v1.SetLocationsRequest + * @instance + */ + SetLocationsRequest.prototype.name = ""; + + /** + * Creates a new SetLocationsRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetLocationsRequest + * @static + * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest instance + */ + SetLocationsRequest.create = function create(properties) { + return new SetLocationsRequest(properties); + }; + + /** + * Encodes the specified SetLocationsRequest message. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetLocationsRequest + * @static + * @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 + */ + SetLocationsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("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 && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetLocationsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetLocationsRequest + * @static + * @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 + */ + SetLocationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetLocationsRequest message from the specified reader or buffer. + * @function decode + * @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.SetLocationsRequest} SetLocationsRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + case 1: + message.projectId = reader.string(); + break; + 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(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetLocationsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetLocationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetLocationsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetLocationsRequest message. + * @function verify + * @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 + */ + SetLocationsRequest.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.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"; + return null; + }; + + /** + * Creates a SetLocationsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetLocationsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest + */ + SetLocationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLocationsRequest) + return object; + 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 SetLocationsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetLocationsRequest + * @static + * @param {google.container.v1.SetLocationsRequest} message SetLocationsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + 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 = ""; + 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.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 SetLocationsRequest to JSON. + * @function toJSON + * @memberof google.container.v1.SetLocationsRequest + * @instance + * @returns {Object.} JSON object + */ + SetLocationsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SetLocationsRequest; + })(); + + v1.UpdateMasterRequest = (function() { + + /** + * Properties of an UpdateMasterRequest. + * @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 + */ + + /** + * Constructs a new UpdateMasterRequest. + * @memberof google.container.v1 + * @classdesc Represents an UpdateMasterRequest. + * @implements IUpdateMasterRequest + * @constructor + * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set + */ + function UpdateMasterRequest(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]]; + } + + /** + * UpdateMasterRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.UpdateMasterRequest + * @instance + */ + UpdateMasterRequest.prototype.projectId = ""; + + /** + * UpdateMasterRequest zone. + * @member {string} zone + * @memberof google.container.v1.UpdateMasterRequest + * @instance + */ + UpdateMasterRequest.prototype.zone = ""; + + /** + * UpdateMasterRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.UpdateMasterRequest + * @instance + */ + UpdateMasterRequest.prototype.clusterId = ""; + + /** + * UpdateMasterRequest masterVersion. + * @member {string} masterVersion + * @memberof google.container.v1.UpdateMasterRequest + * @instance + */ + UpdateMasterRequest.prototype.masterVersion = ""; + + /** + * UpdateMasterRequest name. + * @member {string} name + * @memberof google.container.v1.UpdateMasterRequest + * @instance + */ + UpdateMasterRequest.prototype.name = ""; + + /** + * Creates a new UpdateMasterRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set + * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest instance + */ + UpdateMasterRequest.create = function create(properties) { + return new UpdateMasterRequest(properties); + }; + + /** + * Encodes the specified UpdateMasterRequest message. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @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 + */ + UpdateMasterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.masterVersion != null && message.hasOwnProperty("masterVersion")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.masterVersion); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + return writer; + }; + + /** + * Encodes the specified UpdateMasterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @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 + */ + UpdateMasterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateMasterRequest message from the specified reader or buffer. + * @function decode + * @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.UpdateMasterRequest} UpdateMasterRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.masterVersion = reader.string(); + break; + case 7: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateMasterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + UpdateMasterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateMasterRequest message. + * @function verify + * @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 + */ + UpdateMasterRequest.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.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"; + return null; + }; + + /** + * Creates an UpdateMasterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest + */ + UpdateMasterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UpdateMasterRequest) + return object; + 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.masterVersion != null) + message.masterVersion = String(object.masterVersion); + 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. + * @function toObject + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @param {google.container.v1.UpdateMasterRequest} message UpdateMasterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateMasterRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.masterVersion = ""; + 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this UpdateMasterRequest to JSON. + * @function toJSON + * @memberof google.container.v1.UpdateMasterRequest + * @instance + * @returns {Object.} JSON object + */ + UpdateMasterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateMasterRequest; + })(); + + v1.SetMasterAuthRequest = (function() { + + /** + * Properties of a SetMasterAuthRequest. + * @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 + */ + + /** + * Constructs a new SetMasterAuthRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetMasterAuthRequest. + * @implements ISetMasterAuthRequest + * @constructor + * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set + */ + function SetMasterAuthRequest(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]]; + } + + /** + * 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 + * @instance + */ + SetMasterAuthRequest.prototype.update = null; + + /** + * SetMasterAuthRequest name. + * @member {string} name + * @memberof google.container.v1.SetMasterAuthRequest + * @instance + */ + SetMasterAuthRequest.prototype.name = ""; + + /** + * Creates a new SetMasterAuthRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set + * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest instance + */ + SetMasterAuthRequest.create = function create(properties) { + return new SetMasterAuthRequest(properties); + }; + + /** + * Encodes the specified SetMasterAuthRequest message. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @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 + */ + SetMasterAuthRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.action != null && message.hasOwnProperty("action")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action); + if (message.update != null && message.hasOwnProperty("update")) + $root.google.container.v1.MasterAuth.encode(message.update, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + return writer; + }; + + /** + * Encodes the specified SetMasterAuthRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @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 + */ + SetMasterAuthRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SetMasterAuthRequest message from the specified reader or buffer. + * @function decode + * @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.SetMasterAuthRequest} SetMasterAuthRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + 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()); + break; + case 7: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SetMasterAuthRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + SetMasterAuthRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SetMasterAuthRequest message. + * @function verify + * @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 + */ + SetMasterAuthRequest.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.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"; + return null; + }; + + /** + * Creates a SetMasterAuthRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest + */ + SetMasterAuthRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetMasterAuthRequest) + 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; + } + 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 a SetMasterAuthRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @param {google.container.v1.SetMasterAuthRequest} message SetMasterAuthRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SetMasterAuthRequest.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 (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. + * @function toJSON + * @memberof google.container.v1.SetMasterAuthRequest + * @instance + * @returns {Object.} JSON object + */ + SetMasterAuthRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Action enum. + * @name google.container.v1.SetMasterAuthRequest.Action + * @enum {string} + * @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.DeleteClusterRequest = (function() { + + /** + * Properties of a DeleteClusterRequest. + * @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 + */ + + /** + * Constructs a new DeleteClusterRequest. + * @memberof google.container.v1 + * @classdesc Represents a DeleteClusterRequest. + * @implements IDeleteClusterRequest + * @constructor + * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set + */ + function DeleteClusterRequest(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]]; + } + + /** + * DeleteClusterRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.DeleteClusterRequest + * @instance + */ + DeleteClusterRequest.prototype.projectId = ""; + + /** + * DeleteClusterRequest zone. + * @member {string} zone + * @memberof google.container.v1.DeleteClusterRequest + * @instance + */ + DeleteClusterRequest.prototype.zone = ""; + + /** + * DeleteClusterRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.DeleteClusterRequest + * @instance + */ + DeleteClusterRequest.prototype.clusterId = ""; + + /** + * DeleteClusterRequest name. + * @member {string} name + * @memberof google.container.v1.DeleteClusterRequest + * @instance + */ + DeleteClusterRequest.prototype.name = ""; + + /** + * Creates a new DeleteClusterRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set + * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest instance + */ + DeleteClusterRequest.create = function create(properties) { + return new DeleteClusterRequest(properties); + }; + + /** + * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @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 + */ + DeleteClusterRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && message.hasOwnProperty("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. + * @function encodeDelimited + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @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 + */ + DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteClusterRequest message from the specified reader or buffer. + * @function decode + * @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.DeleteClusterRequest} DeleteClusterRequest + * @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) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + 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) { + case 1: + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + DeleteClusterRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteClusterRequest message. + * @function verify + * @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 + */ + DeleteClusterRequest.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 DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest + */ + DeleteClusterRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DeleteClusterRequest) + return object; + 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.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. + * @function toObject + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @param {google.container.v1.DeleteClusterRequest} message DeleteClusterRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteClusterRequest.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. + * @function toJSON + * @memberof google.container.v1.DeleteClusterRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteClusterRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteClusterRequest; + })(); + + v1.ListClustersRequest = (function() { + + /** + * Properties of a ListClustersRequest. + * @memberof google.container.v1 + * @interface IListClustersRequest + * @property {string|null} [projectId] ListClustersRequest projectId + * @property {string|null} [zone] ListClustersRequest zone + * @property {string|null} [parent] ListClustersRequest parent + */ + + /** + * Constructs a new ListClustersRequest. + * @memberof google.container.v1 + * @classdesc Represents a ListClustersRequest. + * @implements IListClustersRequest + * @constructor + * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set + */ + function ListClustersRequest(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]]; + } + + /** + * ListClustersRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.projectId = ""; + + /** + * ListClustersRequest zone. + * @member {string} zone + * @memberof google.container.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.zone = ""; + + /** + * ListClustersRequest parent. + * @member {string} parent + * @memberof google.container.v1.ListClustersRequest + * @instance + */ + ListClustersRequest.prototype.parent = ""; + + /** + * Creates a new ListClustersRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.ListClustersRequest + * @static + * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set + * @returns {google.container.v1.ListClustersRequest} ListClustersRequest instance + */ + ListClustersRequest.create = function create(properties) { + return new ListClustersRequest(properties); + }; + + /** + * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ListClustersRequest + * @static + * @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 + */ + ListClustersRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.parent != null && message.hasOwnProperty("parent")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + return writer; + }; + + /** + * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ListClustersRequest + * @static + * @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 + */ + ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListClustersRequest message from the specified reader or buffer. + * @function decode + * @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.ListClustersRequest} ListClustersRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + 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.ListClustersRequest(); + 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 4: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ListClustersRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @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 + */ + ListClustersRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListClustersRequest message. + * @function verify + * @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 + */ + ListClustersRequest.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.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ListClustersRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + */ + ListClustersRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListClustersRequest) + return object; + 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.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ListClustersRequest + * @static + * @param {google.container.v1.ListClustersRequest} message ListClustersRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListClustersRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.parent = ""; } - 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.projectId != null && message.hasOwnProperty("projectId")) + object.projectId = message.projectId; + if (message.zone != null && message.hasOwnProperty("zone")) + object.zone = message.zone; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this Cluster to JSON. + * Converts this ListClustersRequest to JSON. * @function toJSON - * @memberof google.container.v1.Cluster + * @memberof google.container.v1.ListClustersRequest * @instance * @returns {Object.} JSON object */ - Cluster.prototype.toJSON = function toJSON() { + ListClustersRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Status enum. - * @name google.container.v1.Cluster.Status - * @enum {string} - * @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; + return ListClustersRequest; })(); - v1.ClusterUpdate = (function() { + v1.ListClustersResponse = (function() { /** - * Properties of a ClusterUpdate. + * Properties of a ListClustersResponse. * @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.INodePoolAutoscaling|null} [desiredNodePoolAutoscaling] ClusterUpdate desiredNodePoolAutoscaling - * @property {Array.|null} [desiredLocations] ClusterUpdate desiredLocations - * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [desiredMasterAuthorizedNetworksConfig] ClusterUpdate desiredMasterAuthorizedNetworksConfig - * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion + * @interface IListClustersResponse + * @property {Array.|null} [clusters] ListClustersResponse clusters + * @property {Array.|null} [missingZones] ListClustersResponse missingZones */ /** - * Constructs a new ClusterUpdate. + * Constructs a new ListClustersResponse. * @memberof google.container.v1 - * @classdesc Represents a ClusterUpdate. - * @implements IClusterUpdate + * @classdesc Represents a ListClustersResponse. + * @implements IListClustersResponse * @constructor - * @param {google.container.v1.IClusterUpdate=} [properties] Properties to set + * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set */ - function ClusterUpdate(properties) { - this.desiredLocations = []; + 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) @@ -5904,182 +12298,94 @@ } /** - * 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 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 + * ListClustersResponse clusters. + * @member {Array.} clusters + * @memberof google.container.v1.ListClustersResponse * @instance */ - ClusterUpdate.prototype.desiredMasterAuthorizedNetworksConfig = null; + ListClustersResponse.prototype.clusters = $util.emptyArray; /** - * ClusterUpdate desiredMasterVersion. - * @member {string} desiredMasterVersion - * @memberof google.container.v1.ClusterUpdate + * ListClustersResponse missingZones. + * @member {Array.} missingZones + * @memberof google.container.v1.ListClustersResponse * @instance */ - ClusterUpdate.prototype.desiredMasterVersion = ""; + ListClustersResponse.prototype.missingZones = $util.emptyArray; /** - * Creates a new ClusterUpdate instance using the specified properties. + * Creates a new ListClustersResponse instance using the specified properties. * @function create - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.ListClustersResponse * @static - * @param {google.container.v1.IClusterUpdate=} [properties] Properties to set - * @returns {google.container.v1.ClusterUpdate} ClusterUpdate instance + * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set + * @returns {google.container.v1.ListClustersResponse} ListClustersResponse instance */ - ClusterUpdate.create = function create(properties) { - return new ClusterUpdate(properties); + ListClustersResponse.create = function create(properties) { + return new ListClustersResponse(properties); }; /** - * Encodes the specified ClusterUpdate message. Does not implicitly {@link google.container.v1.ClusterUpdate.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.ClusterUpdate + * @memberof google.container.v1.ListClustersResponse * @static - * @param {google.container.v1.IClusterUpdate} message ClusterUpdate 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 */ - ClusterUpdate.encode = function encode(message, writer) { + ListClustersResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.desiredNodeVersion); - if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.desiredMonitoringService); - if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) - $root.google.container.v1.AddonsConfig.encode(message.desiredAddonsConfig, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.desiredNodePoolId); - if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.desiredImageType); - if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("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 && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) - $root.google.container.v1.MasterAuthorizedNetworksConfig.encode(message.desiredMasterAuthorizedNetworksConfig, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) - writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); + 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 ClusterUpdate message, length delimited. Does not implicitly {@link google.container.v1.ClusterUpdate.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.ClusterUpdate + * @memberof google.container.v1.ListClustersResponse * @static - * @param {google.container.v1.IClusterUpdate} message ClusterUpdate 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 */ - ClusterUpdate.encodeDelimited = function encodeDelimited(message, writer) { + ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClusterUpdate message from the specified reader or buffer. + * Decodes a ListClustersResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ClusterUpdate + * @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.ClusterUpdate} ClusterUpdate + * @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 */ - ClusterUpdate.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.ClusterUpdate(); + 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 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 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 100: - message.desiredMasterVersion = reader.string(); + case 1: + if (!(message.clusters && message.clusters.length)) + message.clusters = []; + message.clusters.push($root.google.container.v1.Cluster.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.missingZones && message.missingZones.length)) + message.missingZones = []; + message.missingZones.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -6090,416 +12396,263 @@ }; /** - * Decodes a ClusterUpdate 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.ClusterUpdate + * @memberof google.container.v1.ListClustersResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ClusterUpdate} ClusterUpdate + * @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 */ - ClusterUpdate.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 ClusterUpdate message. + * Verifies a ListClustersResponse message. * @function verify - * @memberof google.container.v1.ClusterUpdate + * @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 */ - ClusterUpdate.verify = function verify(message) { + ListClustersResponse.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.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.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.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) { - var error = $root.google.container.v1.MasterAuthorizedNetworksConfig.verify(message.desiredMasterAuthorizedNetworksConfig); - if (error) - return "desiredMasterAuthorizedNetworksConfig." + 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"; } - 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. + * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.ListClustersResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ClusterUpdate} ClusterUpdate + * @returns {google.container.v1.ListClustersResponse} ListClustersResponse */ - ClusterUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ClusterUpdate) + ListClustersResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListClustersResponse) 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.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]); + 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.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.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]); } - 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. + * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ClusterUpdate + * @memberof google.container.v1.ListClustersResponse * @static - * @param {google.container.v1.ClusterUpdate} message ClusterUpdate + * @param {google.container.v1.ListClustersResponse} message ListClustersResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClusterUpdate.toObject = function toObject(message, options) { + ListClustersResponse.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.desiredMasterVersion = ""; + if (options.arrays || options.defaults) { + object.clusters = []; + object.missingZones = []; } - 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.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.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) - object.desiredMasterAuthorizedNetworksConfig = $root.google.container.v1.MasterAuthorizedNetworksConfig.toObject(message.desiredMasterAuthorizedNetworksConfig, 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 - */ - - /** - * 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) { - 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; + if (message.missingZones && message.missingZones.length) { + object.missingZones = []; + for (var j = 0; j < message.missingZones.length; ++j) + object.missingZones[j] = message.missingZones[j]; + } + return object; + }; /** - * Operation detail. - * @member {string} detail - * @memberof google.container.v1.Operation + * Converts this ListClustersResponse to JSON. + * @function toJSON + * @memberof google.container.v1.ListClustersResponse * @instance + * @returns {Object.} JSON object */ - Operation.prototype.detail = ""; + ListClustersResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListClustersResponse; + })(); + + v1.GetOperationRequest = (function() { /** - * Operation statusMessage. - * @member {string} statusMessage - * @memberof google.container.v1.Operation - * @instance + * Properties of a GetOperationRequest. + * @memberof google.container.v1 + * @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 */ - Operation.prototype.statusMessage = ""; /** - * Operation selfLink. - * @member {string} selfLink - * @memberof google.container.v1.Operation - * @instance + * Constructs a new GetOperationRequest. + * @memberof google.container.v1 + * @classdesc Represents a GetOperationRequest. + * @implements IGetOperationRequest + * @constructor + * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set */ - Operation.prototype.selfLink = ""; + function GetOperationRequest(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]]; + } /** - * Operation targetLink. - * @member {string} targetLink - * @memberof google.container.v1.Operation + * GetOperationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.GetOperationRequest * @instance */ - Operation.prototype.targetLink = ""; + GetOperationRequest.prototype.projectId = ""; /** - * Operation location. - * @member {string} location - * @memberof google.container.v1.Operation + * GetOperationRequest zone. + * @member {string} zone + * @memberof google.container.v1.GetOperationRequest * @instance */ - Operation.prototype.location = ""; + GetOperationRequest.prototype.zone = ""; /** - * Operation startTime. - * @member {string} startTime - * @memberof google.container.v1.Operation + * GetOperationRequest operationId. + * @member {string} operationId + * @memberof google.container.v1.GetOperationRequest * @instance */ - Operation.prototype.startTime = ""; + GetOperationRequest.prototype.operationId = ""; /** - * Operation endTime. - * @member {string} endTime - * @memberof google.container.v1.Operation + * GetOperationRequest name. + * @member {string} name + * @memberof google.container.v1.GetOperationRequest * @instance */ - Operation.prototype.endTime = ""; + GetOperationRequest.prototype.name = ""; /** - * Creates a new Operation instance using the specified properties. + * Creates a new GetOperationRequest instance using the specified properties. * @function create - * @memberof google.container.v1.Operation + * @memberof google.container.v1.GetOperationRequest * @static - * @param {google.container.v1.IOperation=} [properties] Properties to set - * @returns {google.container.v1.Operation} Operation instance + * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set + * @returns {google.container.v1.GetOperationRequest} GetOperationRequest instance */ - Operation.create = function create(properties) { - return new Operation(properties); + GetOperationRequest.create = function create(properties) { + return new GetOperationRequest(properties); }; /** - * Encodes the specified Operation message. Does not implicitly {@link google.container.v1.Operation.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.Operation + * @memberof google.container.v1.GetOperationRequest * @static - * @param {google.container.v1.IOperation} message Operation 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 */ - Operation.encode = function encode(message, writer) { + GetOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationType != null && message.hasOwnProperty("operationType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operationType); - if (message.status != null && message.hasOwnProperty("status")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.selfLink); - if (message.targetLink != null && message.hasOwnProperty("targetLink")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetLink); - if (message.detail != null && message.hasOwnProperty("detail")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.detail); - if (message.location != null && message.hasOwnProperty("location")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.location); - if (message.startTime != null && message.hasOwnProperty("startTime")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTime); - if (message.endTime != null && message.hasOwnProperty("endTime")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.endTime); + if (message.operationId != null && message.hasOwnProperty("operationId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 5, wireType 2 =*/42).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 GetOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.Operation + * @memberof google.container.v1.GetOperationRequest * @static - * @param {google.container.v1.IOperation} message Operation 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 */ - Operation.encodeDelimited = function encodeDelimited(message, writer) { + GetOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Operation message from the specified reader or buffer. + * Decodes a GetOperationRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.Operation + * @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.Operation} Operation + * @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 */ - Operation.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.Operation(); + 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) { 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(); + message.operationId = 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.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -6510,371 +12663,134 @@ }; /** - * Decodes an Operation 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.Operation + * @memberof google.container.v1.GetOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.Operation} Operation + * @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 */ - 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"; + GetOperationRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetOperationRequest message. + * @function verify + * @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 + */ + GetOperationRequest.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.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"; return null; }; /** - * Creates an Operation 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.Operation + * @memberof google.container.v1.GetOperationRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.Operation} Operation + * @returns {google.container.v1.GetOperationRequest} GetOperationRequest */ - Operation.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.Operation) + GetOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetOperationRequest) return object; - var message = new $root.google.container.v1.Operation(); - if (object.name != null) - message.name = String(object.name); + 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); - 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.operationId != null) + message.operationId = String(object.operationId); + 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 GetOperationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.Operation + * @memberof google.container.v1.GetOperationRequest * @static - * @param {google.container.v1.Operation} message Operation + * @param {google.container.v1.GetOperationRequest} message GetOperationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Operation.toObject = function toObject(message, options) { + GetOperationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; 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.operationId = ""; + 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; - 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 {string} - * @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 {string} - * @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 + 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 GetOperationRequest to JSON. + * @function toJSON + * @memberof google.container.v1.GetOperationRequest + * @instance + * @returns {Object.} JSON object */ - 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; - })(); + GetOperationRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return Operation; + return GetOperationRequest; })(); - v1.CreateClusterRequest = (function() { + v1.ListOperationsRequest = (function() { /** - * Properties of a CreateClusterRequest. + * Properties of a ListOperationsRequest. * @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 IListOperationsRequest + * @property {string|null} [projectId] ListOperationsRequest projectId + * @property {string|null} [zone] ListOperationsRequest zone + * @property {string|null} [parent] ListOperationsRequest parent */ /** - * Constructs a new CreateClusterRequest. + * Constructs a new ListOperationsRequest. * @memberof google.container.v1 - * @classdesc Represents a CreateClusterRequest. - * @implements ICreateClusterRequest + * @classdesc Represents a ListOperationsRequest. + * @implements IListOperationsRequest * @constructor - * @param {google.container.v1.ICreateClusterRequest=} [properties] Properties to set + * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set */ - function CreateClusterRequest(properties) { + function ListOperationsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -6882,100 +12798,90 @@ } /** - * CreateClusterRequest projectId. + * ListOperationsRequest projectId. * @member {string} projectId - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.ListOperationsRequest * @instance */ - CreateClusterRequest.prototype.projectId = ""; + ListOperationsRequest.prototype.projectId = ""; /** - * CreateClusterRequest zone. + * ListOperationsRequest 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 + * @memberof google.container.v1.ListOperationsRequest * @instance */ - CreateClusterRequest.prototype.cluster = null; + ListOperationsRequest.prototype.zone = ""; /** - * CreateClusterRequest parent. + * ListOperationsRequest parent. * @member {string} parent - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.ListOperationsRequest * @instance */ - CreateClusterRequest.prototype.parent = ""; + ListOperationsRequest.prototype.parent = ""; /** - * Creates a new CreateClusterRequest instance using the specified properties. + * Creates a new ListOperationsRequest instance using the specified properties. * @function create - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.ListOperationsRequest * @static - * @param {google.container.v1.ICreateClusterRequest=} [properties] Properties to set - * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest instance + * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set + * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest instance */ - CreateClusterRequest.create = function create(properties) { - return new CreateClusterRequest(properties); + ListOperationsRequest.create = function create(properties) { + return new ListOperationsRequest(properties); }; /** - * Encodes the specified CreateClusterRequest message. Does not implicitly {@link google.container.v1.CreateClusterRequest.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.CreateClusterRequest + * @memberof google.container.v1.ListOperationsRequest * @static - * @param {google.container.v1.ICreateClusterRequest} message CreateClusterRequest 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 */ - CreateClusterRequest.encode = function encode(message, writer) { + ListOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.cluster != null && message.hasOwnProperty("cluster")) - $root.google.container.v1.Cluster.encode(message.cluster, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.parent != null && message.hasOwnProperty("parent")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); return writer; }; /** - * Encodes the specified CreateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateClusterRequest.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.CreateClusterRequest + * @memberof google.container.v1.ListOperationsRequest * @static - * @param {google.container.v1.ICreateClusterRequest} message CreateClusterRequest 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 */ - CreateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateClusterRequest message from the specified reader or buffer. + * Decodes a ListOperationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CreateClusterRequest + * @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.CreateClusterRequest} CreateClusterRequest + * @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 */ - CreateClusterRequest.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.CreateClusterRequest(); + 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) { @@ -6985,10 +12891,7 @@ case 2: message.zone = reader.string(); break; - case 3: - message.cluster = $root.google.container.v1.Cluster.decode(reader, reader.uint32()); - break; - case 5: + case 4: message.parent = reader.string(); break; default: @@ -7000,30 +12903,30 @@ }; /** - * Decodes a CreateClusterRequest 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.CreateClusterRequest + * @memberof google.container.v1.ListOperationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest + * @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 */ - CreateClusterRequest.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 CreateClusterRequest message. + * Verifies a ListOperationsRequest message. * @function verify - * @memberof google.container.v1.CreateClusterRequest + * @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 */ - CreateClusterRequest.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")) @@ -7032,11 +12935,6 @@ 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"; @@ -7044,96 +12942,88 @@ }; /** - * Creates a CreateClusterRequest 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.CreateClusterRequest + * @memberof google.container.v1.ListOperationsRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CreateClusterRequest} CreateClusterRequest + * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest */ - CreateClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CreateClusterRequest) + ListOperationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListOperationsRequest) return object; - var message = new $root.google.container.v1.CreateClusterRequest(); + 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.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. + * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.ListOperationsRequest * @static - * @param {google.container.v1.CreateClusterRequest} message CreateClusterRequest + * @param {google.container.v1.ListOperationsRequest} message ListOperationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateClusterRequest.toObject = function toObject(message, options) { + ListOperationsRequest.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. + * Converts this ListOperationsRequest to JSON. * @function toJSON - * @memberof google.container.v1.CreateClusterRequest + * @memberof google.container.v1.ListOperationsRequest * @instance * @returns {Object.} JSON object */ - CreateClusterRequest.prototype.toJSON = function toJSON() { + ListOperationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateClusterRequest; + return ListOperationsRequest; })(); - v1.GetClusterRequest = (function() { + v1.CancelOperationRequest = (function() { /** - * Properties of a GetClusterRequest. + * Properties of a CancelOperationRequest. * @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 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 GetClusterRequest. + * Constructs a new CancelOperationRequest. * @memberof google.container.v1 - * @classdesc Represents a GetClusterRequest. - * @implements IGetClusterRequest + * @classdesc Represents a CancelOperationRequest. + * @implements ICancelOperationRequest * @constructor - * @param {google.container.v1.IGetClusterRequest=} [properties] Properties to set + * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set */ - function GetClusterRequest(properties) { + function CancelOperationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7141,100 +13031,100 @@ } /** - * GetClusterRequest projectId. + * CancelOperationRequest projectId. * @member {string} projectId - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.CancelOperationRequest * @instance */ - GetClusterRequest.prototype.projectId = ""; + CancelOperationRequest.prototype.projectId = ""; /** - * GetClusterRequest zone. + * CancelOperationRequest zone. * @member {string} zone - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.CancelOperationRequest * @instance */ - GetClusterRequest.prototype.zone = ""; + CancelOperationRequest.prototype.zone = ""; /** - * GetClusterRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.GetClusterRequest + * CancelOperationRequest operationId. + * @member {string} operationId + * @memberof google.container.v1.CancelOperationRequest * @instance */ - GetClusterRequest.prototype.clusterId = ""; + CancelOperationRequest.prototype.operationId = ""; /** - * GetClusterRequest name. + * CancelOperationRequest name. * @member {string} name - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.CancelOperationRequest * @instance */ - GetClusterRequest.prototype.name = ""; + CancelOperationRequest.prototype.name = ""; /** - * Creates a new GetClusterRequest instance using the specified properties. + * Creates a new CancelOperationRequest instance using the specified properties. * @function create - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.CancelOperationRequest * @static - * @param {google.container.v1.IGetClusterRequest=} [properties] Properties to set - * @returns {google.container.v1.GetClusterRequest} GetClusterRequest instance + * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set + * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest instance */ - GetClusterRequest.create = function create(properties) { - return new GetClusterRequest(properties); + CancelOperationRequest.create = function create(properties) { + return new CancelOperationRequest(properties); }; /** - * Encodes the specified GetClusterRequest message. Does not implicitly {@link google.container.v1.GetClusterRequest.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.GetClusterRequest + * @memberof google.container.v1.CancelOperationRequest * @static - * @param {google.container.v1.IGetClusterRequest} message GetClusterRequest 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 */ - GetClusterRequest.encode = function encode(message, writer) { + CancelOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.operationId != null && message.hasOwnProperty("operationId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + writer.uint32(/* id 4, wireType 2 =*/34).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 CancelOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.CancelOperationRequest * @static - * @param {google.container.v1.IGetClusterRequest} message GetClusterRequest 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 */ - GetClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetClusterRequest message from the specified reader or buffer. + * Decodes a CancelOperationRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetClusterRequest + * @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.GetClusterRequest} GetClusterRequest + * @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 */ - GetClusterRequest.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.GetClusterRequest(); + 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) { @@ -7245,9 +13135,9 @@ message.zone = reader.string(); break; case 3: - message.clusterId = reader.string(); + message.operationId = reader.string(); break; - case 5: + case 4: message.name = reader.string(); break; default: @@ -7259,30 +13149,30 @@ }; /** - * Decodes a GetClusterRequest 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.GetClusterRequest + * @memberof google.container.v1.CancelOperationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetClusterRequest} GetClusterRequest + * @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 */ - GetClusterRequest.decodeDelimited = function decodeDelimited(reader) { + CancelOperationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetClusterRequest message. + * Verifies a CancelOperationRequest message. * @function verify - * @memberof google.container.v1.GetClusterRequest + * @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 */ - GetClusterRequest.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")) @@ -7291,9 +13181,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.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"; @@ -7301,94 +13191,93 @@ }; /** - * Creates a GetClusterRequest 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.GetClusterRequest + * @memberof google.container.v1.CancelOperationRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetClusterRequest} GetClusterRequest + * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest */ - GetClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetClusterRequest) + CancelOperationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CancelOperationRequest) return object; - var message = new $root.google.container.v1.GetClusterRequest(); + 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.operationId != null) + message.operationId = String(object.operationId); 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 CancelOperationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.CancelOperationRequest * @static - * @param {google.container.v1.GetClusterRequest} message GetClusterRequest + * @param {google.container.v1.CancelOperationRequest} message CancelOperationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetClusterRequest.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.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.operationId != null && message.hasOwnProperty("operationId")) + object.operationId = message.operationId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this GetClusterRequest to JSON. + * Converts this CancelOperationRequest to JSON. * @function toJSON - * @memberof google.container.v1.GetClusterRequest + * @memberof google.container.v1.CancelOperationRequest * @instance * @returns {Object.} JSON object */ - GetClusterRequest.prototype.toJSON = function toJSON() { + CancelOperationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetClusterRequest; + return CancelOperationRequest; })(); - v1.UpdateClusterRequest = (function() { + v1.ListOperationsResponse = (function() { /** - * Properties of an UpdateClusterRequest. + * Properties of a ListOperationsResponse. * @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 IListOperationsResponse + * @property {Array.|null} [operations] ListOperationsResponse operations + * @property {Array.|null} [missingZones] ListOperationsResponse missingZones */ /** - * Constructs a new UpdateClusterRequest. + * Constructs a new ListOperationsResponse. * @memberof google.container.v1 - * @classdesc Represents an UpdateClusterRequest. - * @implements IUpdateClusterRequest + * @classdesc Represents a ListOperationsResponse. + * @implements IListOperationsResponse * @constructor - * @param {google.container.v1.IUpdateClusterRequest=} [properties] Properties to set + * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set */ - function UpdateClusterRequest(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) @@ -7396,127 +13285,94 @@ } /** - * 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 + * ListOperationsResponse operations. + * @member {Array.} operations + * @memberof google.container.v1.ListOperationsResponse * @instance */ - UpdateClusterRequest.prototype.update = null; + ListOperationsResponse.prototype.operations = $util.emptyArray; /** - * UpdateClusterRequest name. - * @member {string} name - * @memberof google.container.v1.UpdateClusterRequest + * ListOperationsResponse missingZones. + * @member {Array.} missingZones + * @memberof google.container.v1.ListOperationsResponse * @instance */ - UpdateClusterRequest.prototype.name = ""; + ListOperationsResponse.prototype.missingZones = $util.emptyArray; /** - * Creates a new UpdateClusterRequest instance using the specified properties. + * Creates a new ListOperationsResponse instance using the specified properties. * @function create - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.ListOperationsResponse * @static - * @param {google.container.v1.IUpdateClusterRequest=} [properties] Properties to set - * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest instance + * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set + * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse instance */ - UpdateClusterRequest.create = function create(properties) { - return new UpdateClusterRequest(properties); + ListOperationsResponse.create = function create(properties) { + return new ListOperationsResponse(properties); }; /** - * Encodes the specified UpdateClusterRequest message. Does not implicitly {@link google.container.v1.UpdateClusterRequest.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.UpdateClusterRequest + * @memberof google.container.v1.ListOperationsResponse * @static - * @param {google.container.v1.IUpdateClusterRequest} message UpdateClusterRequest 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 */ - UpdateClusterRequest.encode = function encode(message, writer) { + ListOperationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.update != null && message.hasOwnProperty("update")) - $root.google.container.v1.ClusterUpdate.encode(message.update, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 5, wireType 2 =*/42).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 UpdateClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateClusterRequest.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.UpdateClusterRequest + * @memberof google.container.v1.ListOperationsResponse * @static - * @param {google.container.v1.IUpdateClusterRequest} message UpdateClusterRequest 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 */ - UpdateClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListOperationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateClusterRequest message from the specified reader or buffer. + * Decodes a ListOperationsResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.UpdateClusterRequest + * @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.UpdateClusterRequest} UpdateClusterRequest + * @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 */ - UpdateClusterRequest.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.UpdateClusterRequest(); + 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(); + if (!(message.operations && message.operations.length)) + message.operations = []; + message.operations.push($root.google.container.v1.Operation.decode(reader, reader.uint32())); 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(); + if (!(message.missingZones && message.missingZones.length)) + message.missingZones = []; + message.missingZones.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -7527,151 +13383,147 @@ }; /** - * Decodes an UpdateClusterRequest 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.UpdateClusterRequest + * @memberof google.container.v1.ListOperationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest + * @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 */ - UpdateClusterRequest.decodeDelimited = function decodeDelimited(reader) { + ListOperationsResponse.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 "update." + error; + + /** + * Verifies a ListOperationsResponse message. + * @function verify + * @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 + */ + ListOperationsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + 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.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"; } - 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. + * Creates a ListOperationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.ListOperationsResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.UpdateClusterRequest} UpdateClusterRequest + * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse */ - UpdateClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.UpdateClusterRequest) + ListOperationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListOperationsResponse) 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); + 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.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 an UpdateClusterRequest 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.UpdateClusterRequest + * @memberof google.container.v1.ListOperationsResponse * @static - * @param {google.container.v1.UpdateClusterRequest} message UpdateClusterRequest + * @param {google.container.v1.ListOperationsResponse} message ListOperationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateClusterRequest.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.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.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. + * Converts this ListOperationsResponse to JSON. * @function toJSON - * @memberof google.container.v1.UpdateClusterRequest + * @memberof google.container.v1.ListOperationsResponse * @instance * @returns {Object.} JSON object */ - UpdateClusterRequest.prototype.toJSON = function toJSON() { + ListOperationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateClusterRequest; + return ListOperationsResponse; })(); - v1.UpdateNodePoolRequest = (function() { + v1.GetServerConfigRequest = (function() { /** - * Properties of an UpdateNodePoolRequest. + * Properties of a GetServerConfigRequest. * @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 IGetServerConfigRequest + * @property {string|null} [projectId] GetServerConfigRequest projectId + * @property {string|null} [zone] GetServerConfigRequest zone + * @property {string|null} [name] GetServerConfigRequest name */ /** - * Constructs a new UpdateNodePoolRequest. + * Constructs a new GetServerConfigRequest. * @memberof google.container.v1 - * @classdesc Represents an UpdateNodePoolRequest. - * @implements IUpdateNodePoolRequest + * @classdesc Represents a GetServerConfigRequest. + * @implements IGetServerConfigRequest * @constructor - * @param {google.container.v1.IUpdateNodePoolRequest=} [properties] Properties to set + * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set */ - function UpdateNodePoolRequest(properties) { + function GetServerConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7679,152 +13531,100 @@ } /** - * UpdateNodePoolRequest projectId. + * GetServerConfigRequest projectId. * @member {string} projectId - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.GetServerConfigRequest * @instance */ - UpdateNodePoolRequest.prototype.projectId = ""; + GetServerConfigRequest.prototype.projectId = ""; /** - * UpdateNodePoolRequest zone. + * GetServerConfigRequest 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 + * @memberof google.container.v1.GetServerConfigRequest * @instance */ - UpdateNodePoolRequest.prototype.imageType = ""; + GetServerConfigRequest.prototype.zone = ""; /** - * UpdateNodePoolRequest name. + * GetServerConfigRequest name. * @member {string} name - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.GetServerConfigRequest * @instance */ - UpdateNodePoolRequest.prototype.name = ""; + GetServerConfigRequest.prototype.name = ""; /** - * Creates a new UpdateNodePoolRequest instance using the specified properties. + * Creates a new GetServerConfigRequest instance using the specified properties. * @function create - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.GetServerConfigRequest * @static - * @param {google.container.v1.IUpdateNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest instance + * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set + * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest instance */ - UpdateNodePoolRequest.create = function create(properties) { - return new UpdateNodePoolRequest(properties); + GetServerConfigRequest.create = function create(properties) { + return new GetServerConfigRequest(properties); }; /** - * Encodes the specified UpdateNodePoolRequest message. Does not implicitly {@link google.container.v1.UpdateNodePoolRequest.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.UpdateNodePoolRequest + * @memberof google.container.v1.GetServerConfigRequest * @static - * @param {google.container.v1.IUpdateNodePoolRequest} message UpdateNodePoolRequest 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 */ - UpdateNodePoolRequest.encode = function encode(message, writer) { + GetServerConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeVersion); - if (message.imageType != null && message.hasOwnProperty("imageType")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.imageType); if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); + writer.uint32(/* id 4, wireType 2 =*/34).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 GetServerConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.GetServerConfigRequest * @static - * @param {google.container.v1.IUpdateNodePoolRequest} message UpdateNodePoolRequest 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 */ - UpdateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetServerConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateNodePoolRequest message from the specified reader or buffer. + * Decodes a GetServerConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.UpdateNodePoolRequest + * @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.UpdateNodePoolRequest} UpdateNodePoolRequest + * @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 */ - UpdateNodePoolRequest.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.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(); + 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) { + case 1: + message.projectId = reader.string(); break; - case 6: - message.imageType = reader.string(); + case 2: + message.zone = reader.string(); break; - case 8: + case 4: message.name = reader.string(); break; default: @@ -7836,30 +13636,30 @@ }; /** - * Decodes an UpdateNodePoolRequest 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.UpdateNodePoolRequest + * @memberof google.container.v1.GetServerConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest + * @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 */ - UpdateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + GetServerConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateNodePoolRequest message. + * Verifies a GetServerConfigRequest message. * @function verify - * @memberof google.container.v1.UpdateNodePoolRequest + * @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 */ - UpdateNodePoolRequest.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")) @@ -7868,18 +13668,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.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"; @@ -7887,110 +13675,92 @@ }; /** - * Creates an UpdateNodePoolRequest 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.UpdateNodePoolRequest + * @memberof google.container.v1.GetServerConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.UpdateNodePoolRequest} UpdateNodePoolRequest + * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest */ - UpdateNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.UpdateNodePoolRequest) + GetServerConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetServerConfigRequest) return object; - var message = new $root.google.container.v1.UpdateNodePoolRequest(); + 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.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); return message; }; /** - * Creates a plain object from an UpdateNodePoolRequest 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.UpdateNodePoolRequest + * @memberof google.container.v1.GetServerConfigRequest * @static - * @param {google.container.v1.UpdateNodePoolRequest} message UpdateNodePoolRequest + * @param {google.container.v1.GetServerConfigRequest} message GetServerConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateNodePoolRequest.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.nodePoolId = ""; - object.nodeVersion = ""; - object.imageType = ""; 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.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; return object; }; /** - * Converts this UpdateNodePoolRequest to JSON. + * Converts this GetServerConfigRequest to JSON. * @function toJSON - * @memberof google.container.v1.UpdateNodePoolRequest + * @memberof google.container.v1.GetServerConfigRequest * @instance * @returns {Object.} JSON object */ - UpdateNodePoolRequest.prototype.toJSON = function toJSON() { + GetServerConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateNodePoolRequest; + return GetServerConfigRequest; })(); - v1.SetNodePoolAutoscalingRequest = (function() { + v1.ServerConfig = (function() { /** - * Properties of a SetNodePoolAutoscalingRequest. + * Properties of a ServerConfig. * @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 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 */ /** - * Constructs a new SetNodePoolAutoscalingRequest. + * Constructs a new ServerConfig. * @memberof google.container.v1 - * @classdesc Represents a SetNodePoolAutoscalingRequest. - * @implements ISetNodePoolAutoscalingRequest + * @classdesc Represents a ServerConfig. + * @implements IServerConfig * @constructor - * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set + * @param {google.container.v1.IServerConfig=} [properties] Properties to set */ - function SetNodePoolAutoscalingRequest(properties) { + function ServerConfig(properties) { + this.validNodeVersions = []; + this.validImageTypes = []; + this.validMasterVersions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -7998,140 +13768,136 @@ } /** - * SetNodePoolAutoscalingRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetNodePoolAutoscalingRequest - * @instance - */ - SetNodePoolAutoscalingRequest.prototype.projectId = ""; - - /** - * SetNodePoolAutoscalingRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * ServerConfig defaultClusterVersion. + * @member {string} defaultClusterVersion + * @memberof google.container.v1.ServerConfig * @instance */ - SetNodePoolAutoscalingRequest.prototype.zone = ""; + ServerConfig.prototype.defaultClusterVersion = ""; /** - * SetNodePoolAutoscalingRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * ServerConfig validNodeVersions. + * @member {Array.} validNodeVersions + * @memberof google.container.v1.ServerConfig * @instance */ - SetNodePoolAutoscalingRequest.prototype.clusterId = ""; + ServerConfig.prototype.validNodeVersions = $util.emptyArray; /** - * SetNodePoolAutoscalingRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * ServerConfig defaultImageType. + * @member {string} defaultImageType + * @memberof google.container.v1.ServerConfig * @instance */ - SetNodePoolAutoscalingRequest.prototype.nodePoolId = ""; + ServerConfig.prototype.defaultImageType = ""; /** - * SetNodePoolAutoscalingRequest autoscaling. - * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * ServerConfig validImageTypes. + * @member {Array.} validImageTypes + * @memberof google.container.v1.ServerConfig * @instance */ - SetNodePoolAutoscalingRequest.prototype.autoscaling = null; + ServerConfig.prototype.validImageTypes = $util.emptyArray; /** - * SetNodePoolAutoscalingRequest name. - * @member {string} name - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * ServerConfig validMasterVersions. + * @member {Array.} validMasterVersions + * @memberof google.container.v1.ServerConfig * @instance */ - SetNodePoolAutoscalingRequest.prototype.name = ""; + ServerConfig.prototype.validMasterVersions = $util.emptyArray; /** - * Creates a new SetNodePoolAutoscalingRequest instance using the specified properties. + * Creates a new ServerConfig instance using the specified properties. * @function create - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.ISetNodePoolAutoscalingRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest instance + * @param {google.container.v1.IServerConfig=} [properties] Properties to set + * @returns {google.container.v1.ServerConfig} ServerConfig instance */ - SetNodePoolAutoscalingRequest.create = function create(properties) { - return new SetNodePoolAutoscalingRequest(properties); + ServerConfig.create = function create(properties) { + return new ServerConfig(properties); }; /** - * Encodes the specified SetNodePoolAutoscalingRequest message. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages. + * Encodes the specified ServerConfig message. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.ISetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest message or plain object to encode + * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolAutoscalingRequest.encode = function encode(message, writer) { + ServerConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) - $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultClusterVersion); + if (message.validNodeVersions != null && message.validNodeVersions.length) + for (var i = 0; i < message.validNodeVersions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.validNodeVersions[i]); + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultImageType); + if (message.validImageTypes != null && message.validImageTypes.length) + for (var i = 0; i < message.validImageTypes.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.validImageTypes[i]); + if (message.validMasterVersions != null && message.validMasterVersions.length) + for (var i = 0; i < message.validMasterVersions.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.validMasterVersions[i]); return writer; }; /** - * Encodes the specified SetNodePoolAutoscalingRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolAutoscalingRequest.verify|verify} messages. + * Encodes the specified ServerConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.ISetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest message or plain object to encode + * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolAutoscalingRequest.encodeDelimited = function encodeDelimited(message, writer) { + ServerConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer. + * Decodes a ServerConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.ServerConfig * @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.ServerConfig} ServerConfig * @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) { + ServerConfig.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.ServerConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); - break; - case 2: - message.zone = reader.string(); + message.defaultClusterVersion = reader.string(); break; case 3: - message.clusterId = reader.string(); + if (!(message.validNodeVersions && message.validNodeVersions.length)) + message.validNodeVersions = []; + message.validNodeVersions.push(reader.string()); break; case 4: - message.nodePoolId = reader.string(); + message.defaultImageType = reader.string(); break; case 5: - message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); + if (!(message.validImageTypes && message.validImageTypes.length)) + message.validImageTypes = []; + message.validImageTypes.push(reader.string()); break; case 6: - message.name = reader.string(); + if (!(message.validMasterVersions && message.validMasterVersions.length)) + message.validMasterVersions = []; + message.validMasterVersions.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -8142,157 +13908,182 @@ }; /** - * Decodes a SetNodePoolAutoscalingRequest message from the specified reader or buffer, length delimited. + * Decodes a ServerConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.ServerConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest + * @returns {google.container.v1.ServerConfig} ServerConfig * @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) { + ServerConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNodePoolAutoscalingRequest message. + * Verifies a ServerConfig message. * @function verify - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.ServerConfig * @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) { + ServerConfig.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.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + if (!$util.isString(message.defaultClusterVersion)) + return "defaultClusterVersion: string expected"; + if (message.validNodeVersions != null && message.hasOwnProperty("validNodeVersions")) { + if (!Array.isArray(message.validNodeVersions)) + return "validNodeVersions: array expected"; + for (var i = 0; i < message.validNodeVersions.length; ++i) + if (!$util.isString(message.validNodeVersions[i])) + return "validNodeVersions: string[] expected"; + } + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + if (!$util.isString(message.defaultImageType)) + return "defaultImageType: string expected"; + if (message.validImageTypes != null && message.hasOwnProperty("validImageTypes")) { + if (!Array.isArray(message.validImageTypes)) + return "validImageTypes: array expected"; + for (var i = 0; i < message.validImageTypes.length; ++i) + if (!$util.isString(message.validImageTypes[i])) + return "validImageTypes: string[] expected"; + } + if (message.validMasterVersions != null && message.hasOwnProperty("validMasterVersions")) { + if (!Array.isArray(message.validMasterVersions)) + return "validMasterVersions: array expected"; + for (var i = 0; i < message.validMasterVersions.length; ++i) + if (!$util.isString(message.validMasterVersions[i])) + return "validMasterVersions: string[] expected"; } - 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. + * Creates a ServerConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.ServerConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNodePoolAutoscalingRequest} SetNodePoolAutoscalingRequest + * @returns {google.container.v1.ServerConfig} ServerConfig */ - SetNodePoolAutoscalingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNodePoolAutoscalingRequest) + ServerConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ServerConfig) 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); + var message = new $root.google.container.v1.ServerConfig(); + if (object.defaultClusterVersion != null) + message.defaultClusterVersion = String(object.defaultClusterVersion); + if (object.validNodeVersions) { + if (!Array.isArray(object.validNodeVersions)) + throw TypeError(".google.container.v1.ServerConfig.validNodeVersions: array expected"); + message.validNodeVersions = []; + for (var i = 0; i < object.validNodeVersions.length; ++i) + message.validNodeVersions[i] = String(object.validNodeVersions[i]); + } + if (object.defaultImageType != null) + message.defaultImageType = String(object.defaultImageType); + if (object.validImageTypes) { + if (!Array.isArray(object.validImageTypes)) + throw TypeError(".google.container.v1.ServerConfig.validImageTypes: array expected"); + message.validImageTypes = []; + for (var i = 0; i < object.validImageTypes.length; ++i) + message.validImageTypes[i] = String(object.validImageTypes[i]); + } + if (object.validMasterVersions) { + if (!Array.isArray(object.validMasterVersions)) + throw TypeError(".google.container.v1.ServerConfig.validMasterVersions: array expected"); + message.validMasterVersions = []; + for (var i = 0; i < object.validMasterVersions.length; ++i) + message.validMasterVersions[i] = String(object.validMasterVersions[i]); } - 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 ServerConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.SetNodePoolAutoscalingRequest} message SetNodePoolAutoscalingRequest + * @param {google.container.v1.ServerConfig} message ServerConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNodePoolAutoscalingRequest.toObject = function toObject(message, options) { + ServerConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.validNodeVersions = []; + object.validImageTypes = []; + object.validMasterVersions = []; + } if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePoolId = ""; - object.autoscaling = null; - object.name = ""; + object.defaultClusterVersion = ""; + object.defaultImageType = ""; + } + if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + object.defaultClusterVersion = message.defaultClusterVersion; + if (message.validNodeVersions && message.validNodeVersions.length) { + object.validNodeVersions = []; + for (var j = 0; j < message.validNodeVersions.length; ++j) + object.validNodeVersions[j] = message.validNodeVersions[j]; + } + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + object.defaultImageType = message.defaultImageType; + if (message.validImageTypes && message.validImageTypes.length) { + object.validImageTypes = []; + for (var j = 0; j < message.validImageTypes.length; ++j) + object.validImageTypes[j] = message.validImageTypes[j]; + } + if (message.validMasterVersions && message.validMasterVersions.length) { + object.validMasterVersions = []; + for (var j = 0; j < message.validMasterVersions.length; ++j) + object.validMasterVersions[j] = message.validMasterVersions[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.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 ServerConfig to JSON. * @function toJSON - * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @memberof google.container.v1.ServerConfig * @instance * @returns {Object.} JSON object */ - SetNodePoolAutoscalingRequest.prototype.toJSON = function toJSON() { + ServerConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNodePoolAutoscalingRequest; + return ServerConfig; })(); - v1.SetLoggingServiceRequest = (function() { + v1.CreateNodePoolRequest = (function() { /** - * Properties of a SetLoggingServiceRequest. + * Properties of a CreateNodePoolRequest. * @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 ICreateNodePoolRequest + * @property {string|null} [projectId] CreateNodePoolRequest projectId + * @property {string|null} [zone] CreateNodePoolRequest zone + * @property {string|null} [clusterId] CreateNodePoolRequest clusterId + * @property {google.container.v1.INodePool|null} [nodePool] CreateNodePoolRequest nodePool + * @property {string|null} [parent] CreateNodePoolRequest parent */ /** - * Constructs a new SetLoggingServiceRequest. + * Constructs a new CreateNodePoolRequest. * @memberof google.container.v1 - * @classdesc Represents a SetLoggingServiceRequest. - * @implements ISetLoggingServiceRequest + * @classdesc Represents a CreateNodePoolRequest. + * @implements ICreateNodePoolRequest * @constructor - * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set + * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set */ - function SetLoggingServiceRequest(properties) { + function CreateNodePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8300,67 +14091,67 @@ } /** - * SetLoggingServiceRequest projectId. + * CreateNodePoolRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @instance */ - SetLoggingServiceRequest.prototype.projectId = ""; + CreateNodePoolRequest.prototype.projectId = ""; /** - * SetLoggingServiceRequest zone. + * CreateNodePoolRequest zone. * @member {string} zone - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @instance */ - SetLoggingServiceRequest.prototype.zone = ""; + CreateNodePoolRequest.prototype.zone = ""; /** - * SetLoggingServiceRequest clusterId. + * CreateNodePoolRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @instance */ - SetLoggingServiceRequest.prototype.clusterId = ""; + CreateNodePoolRequest.prototype.clusterId = ""; /** - * SetLoggingServiceRequest loggingService. - * @member {string} loggingService - * @memberof google.container.v1.SetLoggingServiceRequest + * CreateNodePoolRequest nodePool. + * @member {google.container.v1.INodePool|null|undefined} nodePool + * @memberof google.container.v1.CreateNodePoolRequest * @instance */ - SetLoggingServiceRequest.prototype.loggingService = ""; + CreateNodePoolRequest.prototype.nodePool = null; /** - * SetLoggingServiceRequest name. - * @member {string} name - * @memberof google.container.v1.SetLoggingServiceRequest + * CreateNodePoolRequest parent. + * @member {string} parent + * @memberof google.container.v1.CreateNodePoolRequest * @instance */ - SetLoggingServiceRequest.prototype.name = ""; + CreateNodePoolRequest.prototype.parent = ""; /** - * Creates a new SetLoggingServiceRequest instance using the specified properties. + * Creates a new CreateNodePoolRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.ISetLoggingServiceRequest=} [properties] Properties to set - * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest instance + * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest instance */ - SetLoggingServiceRequest.create = function create(properties) { - return new SetLoggingServiceRequest(properties); + CreateNodePoolRequest.create = function create(properties) { + return new CreateNodePoolRequest(properties); }; /** - * Encodes the specified SetLoggingServiceRequest message. Does not implicitly {@link google.container.v1.SetLoggingServiceRequest.verify|verify} messages. + * Encodes the specified CreateNodePoolRequest message. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.ISetLoggingServiceRequest} message SetLoggingServiceRequest message or plain object to encode + * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLoggingServiceRequest.encode = function encode(message, writer) { + CreateNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -8369,41 +14160,41 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.loggingService != null && message.hasOwnProperty("loggingService")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.loggingService); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + if (message.nodePool != null && message.hasOwnProperty("nodePool")) + $root.google.container.v1.NodePool.encode(message.nodePool, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parent != null && message.hasOwnProperty("parent")) + writer.uint32(/* id 6, wireType 2 =*/50).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 CreateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.ISetLoggingServiceRequest} message SetLoggingServiceRequest message or plain object to encode + * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLoggingServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetLoggingServiceRequest message from the specified reader or buffer. + * Decodes a CreateNodePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @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.CreateNodePoolRequest} CreateNodePoolRequest * @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) { + CreateNodePoolRequest.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.CreateNodePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8417,10 +14208,10 @@ message.clusterId = reader.string(); break; case 4: - message.loggingService = reader.string(); + message.nodePool = $root.google.container.v1.NodePool.decode(reader, reader.uint32()); break; - case 5: - message.name = reader.string(); + case 6: + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -8431,30 +14222,30 @@ }; /** - * Decodes a SetLoggingServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateNodePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest * @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) { + CreateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetLoggingServiceRequest message. + * Verifies a CreateNodePoolRequest message. * @function verify - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @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) { + CreateNodePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -8466,50 +14257,55 @@ 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"; + if (message.nodePool != null && message.hasOwnProperty("nodePool")) { + var error = $root.google.container.v1.NodePool.verify(message.nodePool); + if (error) + return "nodePool." + error; + } + 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 CreateNodePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetLoggingServiceRequest} SetLoggingServiceRequest + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest */ - SetLoggingServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetLoggingServiceRequest) + CreateNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CreateNodePoolRequest) return object; - var message = new $root.google.container.v1.SetLoggingServiceRequest(); + var message = new $root.google.container.v1.CreateNodePoolRequest(); 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.nodePool != null) { + if (typeof object.nodePool !== "object") + throw TypeError(".google.container.v1.CreateNodePoolRequest.nodePool: object expected"); + message.nodePool = $root.google.container.v1.NodePool.fromObject(object.nodePool); + } + 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 CreateNodePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.SetLoggingServiceRequest} message SetLoggingServiceRequest + * @param {google.container.v1.CreateNodePoolRequest} message CreateNodePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetLoggingServiceRequest.toObject = function toObject(message, options) { + CreateNodePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -8517,8 +14313,8 @@ object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.loggingService = ""; - object.name = ""; + object.nodePool = null; + object.parent = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; @@ -8526,49 +14322,49 @@ 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.nodePool != null && message.hasOwnProperty("nodePool")) + object.nodePool = $root.google.container.v1.NodePool.toObject(message.nodePool, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this SetLoggingServiceRequest to JSON. + * Converts this CreateNodePoolRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetLoggingServiceRequest + * @memberof google.container.v1.CreateNodePoolRequest * @instance * @returns {Object.} JSON object */ - SetLoggingServiceRequest.prototype.toJSON = function toJSON() { + CreateNodePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetLoggingServiceRequest; + return CreateNodePoolRequest; })(); - v1.SetMonitoringServiceRequest = (function() { + v1.DeleteNodePoolRequest = (function() { /** - * Properties of a SetMonitoringServiceRequest. + * Properties of a DeleteNodePoolRequest. * @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 IDeleteNodePoolRequest + * @property {string|null} [projectId] DeleteNodePoolRequest projectId + * @property {string|null} [zone] DeleteNodePoolRequest zone + * @property {string|null} [clusterId] DeleteNodePoolRequest clusterId + * @property {string|null} [nodePoolId] DeleteNodePoolRequest nodePoolId + * @property {string|null} [name] DeleteNodePoolRequest name */ /** - * Constructs a new SetMonitoringServiceRequest. + * Constructs a new DeleteNodePoolRequest. * @memberof google.container.v1 - * @classdesc Represents a SetMonitoringServiceRequest. - * @implements ISetMonitoringServiceRequest + * @classdesc Represents a DeleteNodePoolRequest. + * @implements IDeleteNodePoolRequest * @constructor - * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set + * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set */ - function SetMonitoringServiceRequest(properties) { + function DeleteNodePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8576,67 +14372,67 @@ } /** - * SetMonitoringServiceRequest projectId. + * DeleteNodePoolRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - SetMonitoringServiceRequest.prototype.projectId = ""; + DeleteNodePoolRequest.prototype.projectId = ""; /** - * SetMonitoringServiceRequest zone. + * DeleteNodePoolRequest zone. * @member {string} zone - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - SetMonitoringServiceRequest.prototype.zone = ""; + DeleteNodePoolRequest.prototype.zone = ""; /** - * SetMonitoringServiceRequest clusterId. + * DeleteNodePoolRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - SetMonitoringServiceRequest.prototype.clusterId = ""; + DeleteNodePoolRequest.prototype.clusterId = ""; /** - * SetMonitoringServiceRequest monitoringService. - * @member {string} monitoringService - * @memberof google.container.v1.SetMonitoringServiceRequest + * DeleteNodePoolRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - SetMonitoringServiceRequest.prototype.monitoringService = ""; + DeleteNodePoolRequest.prototype.nodePoolId = ""; /** - * SetMonitoringServiceRequest name. + * DeleteNodePoolRequest name. * @member {string} name - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - SetMonitoringServiceRequest.prototype.name = ""; + DeleteNodePoolRequest.prototype.name = ""; /** - * Creates a new SetMonitoringServiceRequest instance using the specified properties. + * Creates a new DeleteNodePoolRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.ISetMonitoringServiceRequest=} [properties] Properties to set - * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest instance + * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest instance */ - SetMonitoringServiceRequest.create = function create(properties) { - return new SetMonitoringServiceRequest(properties); + DeleteNodePoolRequest.create = function create(properties) { + return new DeleteNodePoolRequest(properties); }; /** - * Encodes the specified SetMonitoringServiceRequest message. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. + * Encodes the specified DeleteNodePoolRequest message. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.ISetMonitoringServiceRequest} message SetMonitoringServiceRequest message or plain object to encode + * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMonitoringServiceRequest.encode = function encode(message, writer) { + DeleteNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -8645,41 +14441,41 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.monitoringService); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified SetMonitoringServiceRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMonitoringServiceRequest.verify|verify} messages. + * Encodes the specified DeleteNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.ISetMonitoringServiceRequest} message SetMonitoringServiceRequest message or plain object to encode + * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMonitoringServiceRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer. + * Decodes a DeleteNodePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @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.DeleteNodePoolRequest} DeleteNodePoolRequest * @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) { + DeleteNodePoolRequest.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.DeleteNodePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8693,7 +14489,7 @@ message.clusterId = reader.string(); break; case 4: - message.monitoringService = reader.string(); + message.nodePoolId = reader.string(); break; case 6: message.name = reader.string(); @@ -8707,30 +14503,30 @@ }; /** - * Decodes a SetMonitoringServiceRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNodePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest * @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) { + DeleteNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetMonitoringServiceRequest message. + * Verifies a DeleteNodePoolRequest message. * @function verify - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @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) { + DeleteNodePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -8742,9 +14538,9 @@ 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.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -8752,40 +14548,40 @@ }; /** - * Creates a SetMonitoringServiceRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNodePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetMonitoringServiceRequest} SetMonitoringServiceRequest + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest */ - SetMonitoringServiceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetMonitoringServiceRequest) + DeleteNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DeleteNodePoolRequest) return object; - var message = new $root.google.container.v1.SetMonitoringServiceRequest(); + var message = new $root.google.container.v1.DeleteNodePoolRequest(); 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.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a SetMonitoringServiceRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNodePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.SetMonitoringServiceRequest} message SetMonitoringServiceRequest + * @param {google.container.v1.DeleteNodePoolRequest} message DeleteNodePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetMonitoringServiceRequest.toObject = function toObject(message, options) { + DeleteNodePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -8793,7 +14589,7 @@ object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.monitoringService = ""; + object.nodePoolId = ""; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -8802,49 +14598,48 @@ 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.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this SetMonitoringServiceRequest to JSON. + * Converts this DeleteNodePoolRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetMonitoringServiceRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance * @returns {Object.} JSON object */ - SetMonitoringServiceRequest.prototype.toJSON = function toJSON() { + DeleteNodePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetMonitoringServiceRequest; + return DeleteNodePoolRequest; })(); - v1.SetAddonsConfigRequest = (function() { + v1.ListNodePoolsRequest = (function() { /** - * Properties of a SetAddonsConfigRequest. + * Properties of a ListNodePoolsRequest. * @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 IListNodePoolsRequest + * @property {string|null} [projectId] ListNodePoolsRequest projectId + * @property {string|null} [zone] ListNodePoolsRequest zone + * @property {string|null} [clusterId] ListNodePoolsRequest clusterId + * @property {string|null} [parent] ListNodePoolsRequest parent */ /** - * Constructs a new SetAddonsConfigRequest. + * Constructs a new ListNodePoolsRequest. * @memberof google.container.v1 - * @classdesc Represents a SetAddonsConfigRequest. - * @implements ISetAddonsConfigRequest + * @classdesc Represents a ListNodePoolsRequest. + * @implements IListNodePoolsRequest * @constructor - * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set + * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set */ - function SetAddonsConfigRequest(properties) { + function ListNodePoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -8852,67 +14647,59 @@ } /** - * SetAddonsConfigRequest projectId. + * ListNodePoolsRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance */ - SetAddonsConfigRequest.prototype.projectId = ""; + ListNodePoolsRequest.prototype.projectId = ""; /** - * SetAddonsConfigRequest zone. + * ListNodePoolsRequest zone. * @member {string} zone - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance */ - SetAddonsConfigRequest.prototype.zone = ""; + ListNodePoolsRequest.prototype.zone = ""; /** - * SetAddonsConfigRequest clusterId. + * ListNodePoolsRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.SetAddonsConfigRequest - * @instance - */ - SetAddonsConfigRequest.prototype.clusterId = ""; - - /** - * SetAddonsConfigRequest addonsConfig. - * @member {google.container.v1.IAddonsConfig|null|undefined} addonsConfig - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance */ - SetAddonsConfigRequest.prototype.addonsConfig = null; + ListNodePoolsRequest.prototype.clusterId = ""; /** - * SetAddonsConfigRequest name. - * @member {string} name - * @memberof google.container.v1.SetAddonsConfigRequest + * ListNodePoolsRequest parent. + * @member {string} parent + * @memberof google.container.v1.ListNodePoolsRequest * @instance */ - SetAddonsConfigRequest.prototype.name = ""; + ListNodePoolsRequest.prototype.parent = ""; /** - * Creates a new SetAddonsConfigRequest instance using the specified properties. + * Creates a new ListNodePoolsRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.ISetAddonsConfigRequest=} [properties] Properties to set - * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest instance + * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest instance */ - SetAddonsConfigRequest.create = function create(properties) { - return new SetAddonsConfigRequest(properties); + ListNodePoolsRequest.create = function create(properties) { + return new ListNodePoolsRequest(properties); }; /** - * Encodes the specified SetAddonsConfigRequest message. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. + * Encodes the specified ListNodePoolsRequest message. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.ISetAddonsConfigRequest} message SetAddonsConfigRequest message or plain object to encode + * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetAddonsConfigRequest.encode = function encode(message, writer) { + ListNodePoolsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -8921,41 +14708,39 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) - $root.google.container.v1.AddonsConfig.encode(message.addonsConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.parent != null && message.hasOwnProperty("parent")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); return writer; }; /** - * Encodes the specified SetAddonsConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.SetAddonsConfigRequest.verify|verify} messages. + * Encodes the specified ListNodePoolsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.ISetAddonsConfigRequest} message SetAddonsConfigRequest message or plain object to encode + * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetAddonsConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNodePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetAddonsConfigRequest message from the specified reader or buffer. + * Decodes a ListNodePoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @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.ListNodePoolsRequest} ListNodePoolsRequest * @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) { + ListNodePoolsRequest.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.ListNodePoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -8968,11 +14753,8 @@ case 3: message.clusterId = reader.string(); break; - case 4: - message.addonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32()); - break; - case 6: - message.name = reader.string(); + case 5: + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -8983,30 +14765,30 @@ }; /** - * Decodes a SetAddonsConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodePoolsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest * @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) { + ListNodePoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetAddonsConfigRequest message. + * Verifies a ListNodePoolsRequest message. * @function verify - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @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) { + ListNodePoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -9018,55 +14800,45 @@ 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.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 SetAddonsConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodePoolsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetAddonsConfigRequest} SetAddonsConfigRequest + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest */ - SetAddonsConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetAddonsConfigRequest) + ListNodePoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListNodePoolsRequest) return object; - var message = new $root.google.container.v1.SetAddonsConfigRequest(); + var message = new $root.google.container.v1.ListNodePoolsRequest(); 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.name != null) - message.name = String(object.name); + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a SetAddonsConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNodePoolsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.SetAddonsConfigRequest} message SetAddonsConfigRequest + * @param {google.container.v1.ListNodePoolsRequest} message ListNodePoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetAddonsConfigRequest.toObject = function toObject(message, options) { + ListNodePoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -9074,8 +14846,7 @@ object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.addonsConfig = null; - object.name = ""; + object.parent = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; @@ -9083,50 +14854,47 @@ 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this SetAddonsConfigRequest to JSON. + * Converts this ListNodePoolsRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetAddonsConfigRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance * @returns {Object.} JSON object */ - SetAddonsConfigRequest.prototype.toJSON = function toJSON() { + ListNodePoolsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetAddonsConfigRequest; + return ListNodePoolsRequest; })(); - v1.SetLocationsRequest = (function() { + v1.GetNodePoolRequest = (function() { /** - * Properties of a SetLocationsRequest. + * Properties of a GetNodePoolRequest. * @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 IGetNodePoolRequest + * @property {string|null} [projectId] GetNodePoolRequest projectId + * @property {string|null} [zone] GetNodePoolRequest zone + * @property {string|null} [clusterId] GetNodePoolRequest clusterId + * @property {string|null} [nodePoolId] GetNodePoolRequest nodePoolId + * @property {string|null} [name] GetNodePoolRequest name */ /** - * Constructs a new SetLocationsRequest. + * Constructs a new GetNodePoolRequest. * @memberof google.container.v1 - * @classdesc Represents a SetLocationsRequest. - * @implements ISetLocationsRequest + * @classdesc Represents a GetNodePoolRequest. + * @implements IGetNodePoolRequest * @constructor - * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set + * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set */ - function SetLocationsRequest(properties) { - this.locations = []; + function GetNodePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9134,67 +14902,67 @@ } /** - * SetLocationsRequest projectId. + * GetNodePoolRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - SetLocationsRequest.prototype.projectId = ""; + GetNodePoolRequest.prototype.projectId = ""; /** - * SetLocationsRequest zone. + * GetNodePoolRequest zone. * @member {string} zone - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - SetLocationsRequest.prototype.zone = ""; + GetNodePoolRequest.prototype.zone = ""; /** - * SetLocationsRequest clusterId. + * GetNodePoolRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - SetLocationsRequest.prototype.clusterId = ""; + GetNodePoolRequest.prototype.clusterId = ""; /** - * SetLocationsRequest locations. - * @member {Array.} locations - * @memberof google.container.v1.SetLocationsRequest + * GetNodePoolRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - SetLocationsRequest.prototype.locations = $util.emptyArray; + GetNodePoolRequest.prototype.nodePoolId = ""; /** - * SetLocationsRequest name. + * GetNodePoolRequest name. * @member {string} name - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - SetLocationsRequest.prototype.name = ""; + GetNodePoolRequest.prototype.name = ""; /** - * Creates a new SetLocationsRequest instance using the specified properties. + * Creates a new GetNodePoolRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.ISetLocationsRequest=} [properties] Properties to set - * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest instance + * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest instance */ - SetLocationsRequest.create = function create(properties) { - return new SetLocationsRequest(properties); + GetNodePoolRequest.create = function create(properties) { + return new GetNodePoolRequest(properties); }; /** - * Encodes the specified SetLocationsRequest message. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. + * Encodes the specified GetNodePoolRequest message. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.ISetLocationsRequest} message SetLocationsRequest message or plain object to encode + * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLocationsRequest.encode = function encode(message, writer) { + GetNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -9203,42 +14971,41 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && message.hasOwnProperty("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.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified SetLocationsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLocationsRequest.verify|verify} messages. + * Encodes the specified GetNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.ISetLocationsRequest} message SetLocationsRequest message or plain object to encode + * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLocationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetLocationsRequest message from the specified reader or buffer. + * Decodes a GetNodePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @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.GetNodePoolRequest} GetNodePoolRequest * @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) { + GetNodePoolRequest.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.GetNodePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -9252,9 +15019,7 @@ message.clusterId = reader.string(); break; case 4: - if (!(message.locations && message.locations.length)) - message.locations = []; - message.locations.push(reader.string()); + message.nodePoolId = reader.string(); break; case 6: message.name = reader.string(); @@ -9268,30 +15033,30 @@ }; /** - * Decodes a SetLocationsRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNodePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest * @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) { + GetNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetLocationsRequest message. + * Verifies a GetNodePoolRequest message. * @function verify - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @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) { + GetNodePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -9303,13 +15068,9 @@ 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.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -9317,54 +15078,48 @@ }; /** - * Creates a SetLocationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNodePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetLocationsRequest} SetLocationsRequest + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest */ - SetLocationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetLocationsRequest) + GetNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetNodePoolRequest) return object; - var message = new $root.google.container.v1.SetLocationsRequest(); + var message = new $root.google.container.v1.GetNodePoolRequest(); 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.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a SetLocationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNodePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.SetLocationsRequest} message SetLocationsRequest + * @param {google.container.v1.GetNodePoolRequest} message GetNodePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetLocationsRequest.toObject = function toObject(message, options) { + GetNodePoolRequest.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.nodePoolId = ""; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -9373,52 +15128,59 @@ 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.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this SetLocationsRequest to JSON. + * Converts this GetNodePoolRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetLocationsRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance * @returns {Object.} JSON object */ - SetLocationsRequest.prototype.toJSON = function toJSON() { + GetNodePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetLocationsRequest; + return GetNodePoolRequest; })(); - v1.UpdateMasterRequest = (function() { + v1.NodePool = (function() { /** - * Properties of an UpdateMasterRequest. + * Properties of a NodePool. * @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 INodePool + * @property {string|null} [name] NodePool name + * @property {google.container.v1.INodeConfig|null} [config] NodePool config + * @property {number|null} [initialNodeCount] NodePool initialNodeCount + * @property {string|null} [selfLink] NodePool selfLink + * @property {string|null} [version] NodePool version + * @property {Array.|null} [instanceGroupUrls] NodePool instanceGroupUrls + * @property {google.container.v1.NodePool.Status|null} [status] NodePool status + * @property {string|null} [statusMessage] NodePool statusMessage + * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] NodePool autoscaling + * @property {google.container.v1.INodeManagement|null} [management] NodePool management + * @property {google.container.v1.IMaxPodsConstraint|null} [maxPodsConstraint] NodePool maxPodsConstraint + * @property {Array.|null} [conditions] NodePool conditions + * @property {number|null} [podIpv4CidrSize] NodePool podIpv4CidrSize */ /** - * Constructs a new UpdateMasterRequest. + * Constructs a new NodePool. * @memberof google.container.v1 - * @classdesc Represents an UpdateMasterRequest. - * @implements IUpdateMasterRequest + * @classdesc Represents a NodePool. + * @implements INodePool * @constructor - * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set + * @param {google.container.v1.INodePool=} [properties] Properties to set */ - function UpdateMasterRequest(properties) { + function NodePool(properties) { + this.instanceGroupUrls = []; + this.conditions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9426,127 +15188,237 @@ } /** - * UpdateMasterRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.UpdateMasterRequest + * NodePool name. + * @member {string} name + * @memberof google.container.v1.NodePool * @instance */ - UpdateMasterRequest.prototype.projectId = ""; + NodePool.prototype.name = ""; /** - * UpdateMasterRequest zone. - * @member {string} zone - * @memberof google.container.v1.UpdateMasterRequest + * NodePool config. + * @member {google.container.v1.INodeConfig|null|undefined} config + * @memberof google.container.v1.NodePool * @instance */ - UpdateMasterRequest.prototype.zone = ""; + NodePool.prototype.config = null; /** - * UpdateMasterRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.UpdateMasterRequest + * NodePool initialNodeCount. + * @member {number} initialNodeCount + * @memberof google.container.v1.NodePool * @instance */ - UpdateMasterRequest.prototype.clusterId = ""; + NodePool.prototype.initialNodeCount = 0; /** - * UpdateMasterRequest masterVersion. - * @member {string} masterVersion - * @memberof google.container.v1.UpdateMasterRequest + * NodePool selfLink. + * @member {string} selfLink + * @memberof google.container.v1.NodePool * @instance */ - UpdateMasterRequest.prototype.masterVersion = ""; + NodePool.prototype.selfLink = ""; /** - * UpdateMasterRequest name. - * @member {string} name - * @memberof google.container.v1.UpdateMasterRequest + * NodePool version. + * @member {string} version + * @memberof google.container.v1.NodePool * @instance */ - UpdateMasterRequest.prototype.name = ""; + NodePool.prototype.version = ""; /** - * Creates a new UpdateMasterRequest instance using the specified properties. + * NodePool instanceGroupUrls. + * @member {Array.} instanceGroupUrls + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.instanceGroupUrls = $util.emptyArray; + + /** + * NodePool status. + * @member {google.container.v1.NodePool.Status} status + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.status = 0; + + /** + * NodePool statusMessage. + * @member {string} statusMessage + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.statusMessage = ""; + + /** + * NodePool autoscaling. + * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.autoscaling = null; + + /** + * NodePool management. + * @member {google.container.v1.INodeManagement|null|undefined} management + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.management = null; + + /** + * NodePool maxPodsConstraint. + * @member {google.container.v1.IMaxPodsConstraint|null|undefined} maxPodsConstraint + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.maxPodsConstraint = null; + + /** + * NodePool conditions. + * @member {Array.} conditions + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.conditions = $util.emptyArray; + + /** + * NodePool podIpv4CidrSize. + * @member {number} podIpv4CidrSize + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.podIpv4CidrSize = 0; + + /** + * Creates a new NodePool instance using the specified properties. * @function create - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.IUpdateMasterRequest=} [properties] Properties to set - * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest instance + * @param {google.container.v1.INodePool=} [properties] Properties to set + * @returns {google.container.v1.NodePool} NodePool instance */ - UpdateMasterRequest.create = function create(properties) { - return new UpdateMasterRequest(properties); + NodePool.create = function create(properties) { + return new NodePool(properties); }; /** - * Encodes the specified UpdateMasterRequest message. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. + * Encodes the specified NodePool message. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. * @function encode - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.IUpdateMasterRequest} message UpdateMasterRequest message or plain object to encode + * @param {google.container.v1.INodePool} message NodePool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer - */ - UpdateMasterRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.masterVersion != null && message.hasOwnProperty("masterVersion")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.masterVersion); + */ + NodePool.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.config != null && message.hasOwnProperty("config")) + $root.google.container.v1.NodeConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.management != null && message.hasOwnProperty("management")) + $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) + $root.google.container.v1.MaxPodsConstraint.encode(message.maxPodsConstraint, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.podIpv4CidrSize); + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); + if (message.version != null && message.hasOwnProperty("version")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.version); + if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) + for (var i = 0; i < message.instanceGroupUrls.length; ++i) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.instanceGroupUrls[i]); + if (message.status != null && message.hasOwnProperty("status")) + writer.uint32(/* id 103, wireType 0 =*/824).int32(message.status); + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + writer.uint32(/* id 104, wireType 2 =*/834).string(message.statusMessage); + 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 105, wireType 2 =*/842).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateMasterRequest message, length delimited. Does not implicitly {@link google.container.v1.UpdateMasterRequest.verify|verify} messages. + * Encodes the specified NodePool message, length delimited. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.IUpdateMasterRequest} message UpdateMasterRequest message or plain object to encode + * @param {google.container.v1.INodePool} message NodePool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateMasterRequest.encodeDelimited = function encodeDelimited(message, writer) { + NodePool.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateMasterRequest message from the specified reader or buffer. + * Decodes a NodePool message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.NodePool * @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.NodePool} NodePool * @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) { + NodePool.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.NodePool(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.name = reader.string(); break; case 2: - message.zone = reader.string(); + message.config = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); break; case 3: - message.clusterId = reader.string(); + message.initialNodeCount = reader.int32(); + break; + case 100: + message.selfLink = reader.string(); + break; + case 101: + message.version = reader.string(); + break; + case 102: + if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) + message.instanceGroupUrls = []; + message.instanceGroupUrls.push(reader.string()); + break; + case 103: + message.status = reader.int32(); + break; + case 104: + message.statusMessage = reader.string(); break; case 4: - message.masterVersion = reader.string(); + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); + break; + case 5: + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + case 6: + message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32()); + break; + case 105: + if (!(message.conditions && message.conditions.length)) + message.conditions = []; + message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); break; case 7: - message.name = reader.string(); + message.podIpv4CidrSize = reader.int32(); break; default: reader.skipType(tag & 7); @@ -9557,145 +15429,319 @@ }; /** - * Decodes an UpdateMasterRequest message from the specified reader or buffer, length delimited. + * Decodes a NodePool message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.NodePool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest + * @returns {google.container.v1.NodePool} NodePool * @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) { + NodePool.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateMasterRequest message. + * Verifies a NodePool message. * @function verify - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.NodePool * @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) { + NodePool.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.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"; + if (message.config != null && message.hasOwnProperty("config")) { + var error = $root.google.container.v1.NodeConfig.verify(message.config); + if (error) + return "config." + error; + } + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + if (!$util.isInteger(message.initialNodeCount)) + return "initialNodeCount: integer expected"; + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: 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.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.autoscaling != null && message.hasOwnProperty("autoscaling")) { + var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling); + if (error) + return "autoscaling." + error; + } + if (message.management != null && message.hasOwnProperty("management")) { + var error = $root.google.container.v1.NodeManagement.verify(message.management); + if (error) + return "management." + error; + } + if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) { + var error = $root.google.container.v1.MaxPodsConstraint.verify(message.maxPodsConstraint); + if (error) + return "maxPodsConstraint." + error; + } + 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; + } + } + if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) + if (!$util.isInteger(message.podIpv4CidrSize)) + return "podIpv4CidrSize: integer expected"; return null; }; /** - * Creates an UpdateMasterRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NodePool message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.NodePool * @static * @param {Object.} object Plain object - * @returns {google.container.v1.UpdateMasterRequest} UpdateMasterRequest + * @returns {google.container.v1.NodePool} NodePool */ - UpdateMasterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.UpdateMasterRequest) + NodePool.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePool) return object; - 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.masterVersion != null) - message.masterVersion = String(object.masterVersion); + var message = new $root.google.container.v1.NodePool(); if (object.name != null) message.name = String(object.name); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.container.v1.NodePool.config: object expected"); + message.config = $root.google.container.v1.NodeConfig.fromObject(object.config); + } + if (object.initialNodeCount != null) + message.initialNodeCount = object.initialNodeCount | 0; + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.version != null) + message.version = String(object.version); + if (object.instanceGroupUrls) { + if (!Array.isArray(object.instanceGroupUrls)) + throw TypeError(".google.container.v1.NodePool.instanceGroupUrls: array expected"); + message.instanceGroupUrls = []; + for (var i = 0; i < object.instanceGroupUrls.length; ++i) + message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]); + } + 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 "RUNNING_WITH_ERROR": + case 3: + message.status = 3; + break; + case "RECONCILING": + case 4: + message.status = 4; + break; + case "STOPPING": + case 5: + message.status = 5; + break; + case "ERROR": + case 6: + message.status = 6; + break; + } + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.autoscaling != null) { + if (typeof object.autoscaling !== "object") + throw TypeError(".google.container.v1.NodePool.autoscaling: object expected"); + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling); + } + if (object.management != null) { + if (typeof object.management !== "object") + throw TypeError(".google.container.v1.NodePool.management: object expected"); + message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); + } + if (object.maxPodsConstraint != null) { + if (typeof object.maxPodsConstraint !== "object") + throw TypeError(".google.container.v1.NodePool.maxPodsConstraint: object expected"); + message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.fromObject(object.maxPodsConstraint); + } + if (object.conditions) { + if (!Array.isArray(object.conditions)) + throw TypeError(".google.container.v1.NodePool.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.NodePool.conditions: object expected"); + message.conditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.conditions[i]); + } + } + if (object.podIpv4CidrSize != null) + message.podIpv4CidrSize = object.podIpv4CidrSize | 0; return message; }; /** - * Creates a plain object from an UpdateMasterRequest message. Also converts values to other types if specified. + * Creates a plain object from a NodePool message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.UpdateMasterRequest} message UpdateMasterRequest + * @param {google.container.v1.NodePool} message NodePool * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateMasterRequest.toObject = function toObject(message, options) { + NodePool.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.instanceGroupUrls = []; + object.conditions = []; + } if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.masterVersion = ""; object.name = ""; + object.config = null; + object.initialNodeCount = 0; + object.autoscaling = null; + object.management = null; + object.maxPodsConstraint = null; + object.podIpv4CidrSize = 0; + object.selfLink = ""; + object.version = ""; + object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; + object.statusMessage = ""; } - 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.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.container.v1.NodeConfig.toObject(message.config, options); + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + object.initialNodeCount = message.initialNodeCount; + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options); + if (message.management != null && message.hasOwnProperty("management")) + object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) + object.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.toObject(message.maxPodsConstraint, options); + if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) + object.podIpv4CidrSize = message.podIpv4CidrSize; + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + object.selfLink = message.selfLink; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + 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.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.google.container.v1.NodePool.Status[message.status] : message.status; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + 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 UpdateMasterRequest to JSON. + * Converts this NodePool to JSON. * @function toJSON - * @memberof google.container.v1.UpdateMasterRequest + * @memberof google.container.v1.NodePool * @instance * @returns {Object.} JSON object */ - UpdateMasterRequest.prototype.toJSON = function toJSON() { + NodePool.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateMasterRequest; + /** + * Status enum. + * @name google.container.v1.NodePool.Status + * @enum {string} + * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value + * @property {number} PROVISIONING=1 PROVISIONING value + * @property {number} RUNNING=2 RUNNING value + * @property {number} RUNNING_WITH_ERROR=3 RUNNING_WITH_ERROR value + * @property {number} RECONCILING=4 RECONCILING value + * @property {number} STOPPING=5 STOPPING value + * @property {number} ERROR=6 ERROR value + */ + NodePool.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] = "RUNNING_WITH_ERROR"] = 3; + values[valuesById[4] = "RECONCILING"] = 4; + values[valuesById[5] = "STOPPING"] = 5; + values[valuesById[6] = "ERROR"] = 6; + return values; + })(); + + return NodePool; })(); - v1.SetMasterAuthRequest = (function() { + v1.NodeManagement = (function() { /** - * Properties of a SetMasterAuthRequest. + * Properties of a NodeManagement. * @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 INodeManagement + * @property {boolean|null} [autoUpgrade] NodeManagement autoUpgrade + * @property {boolean|null} [autoRepair] NodeManagement autoRepair + * @property {google.container.v1.IAutoUpgradeOptions|null} [upgradeOptions] NodeManagement upgradeOptions */ /** - * Constructs a new SetMasterAuthRequest. + * Constructs a new NodeManagement. * @memberof google.container.v1 - * @classdesc Represents a SetMasterAuthRequest. - * @implements ISetMasterAuthRequest + * @classdesc Represents a NodeManagement. + * @implements INodeManagement * @constructor - * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set + * @param {google.container.v1.INodeManagement=} [properties] Properties to set */ - function SetMasterAuthRequest(properties) { + function NodeManagement(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -9703,140 +15749,101 @@ } /** - * 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 + * NodeManagement autoUpgrade. + * @member {boolean} autoUpgrade + * @memberof google.container.v1.NodeManagement * @instance */ - SetMasterAuthRequest.prototype.action = 0; + NodeManagement.prototype.autoUpgrade = false; /** - * SetMasterAuthRequest update. - * @member {google.container.v1.IMasterAuth|null|undefined} update - * @memberof google.container.v1.SetMasterAuthRequest + * NodeManagement autoRepair. + * @member {boolean} autoRepair + * @memberof google.container.v1.NodeManagement * @instance */ - SetMasterAuthRequest.prototype.update = null; + NodeManagement.prototype.autoRepair = false; /** - * SetMasterAuthRequest name. - * @member {string} name - * @memberof google.container.v1.SetMasterAuthRequest + * NodeManagement upgradeOptions. + * @member {google.container.v1.IAutoUpgradeOptions|null|undefined} upgradeOptions + * @memberof google.container.v1.NodeManagement * @instance */ - SetMasterAuthRequest.prototype.name = ""; + NodeManagement.prototype.upgradeOptions = null; /** - * Creates a new SetMasterAuthRequest instance using the specified properties. + * Creates a new NodeManagement instance using the specified properties. * @function create - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.ISetMasterAuthRequest=} [properties] Properties to set - * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest instance + * @param {google.container.v1.INodeManagement=} [properties] Properties to set + * @returns {google.container.v1.NodeManagement} NodeManagement instance */ - SetMasterAuthRequest.create = function create(properties) { - return new SetMasterAuthRequest(properties); + NodeManagement.create = function create(properties) { + return new NodeManagement(properties); }; /** - * Encodes the specified SetMasterAuthRequest message. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. + * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.ISetMasterAuthRequest} message SetMasterAuthRequest message or plain object to encode + * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMasterAuthRequest.encode = function encode(message, writer) { + NodeManagement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.action != null && message.hasOwnProperty("action")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action); - if (message.update != null && message.hasOwnProperty("update")) - $root.google.container.v1.MasterAuth.encode(message.update, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.autoUpgrade); + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autoRepair); + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) + $root.google.container.v1.AutoUpgradeOptions.encode(message.upgradeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetMasterAuthRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMasterAuthRequest.verify|verify} messages. + * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.ISetMasterAuthRequest} message SetMasterAuthRequest message or plain object to encode + * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMasterAuthRequest.encodeDelimited = function encodeDelimited(message, writer) { + NodeManagement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetMasterAuthRequest message from the specified reader or buffer. + * Decodes a NodeManagement message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.NodeManagement * @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.NodeManagement} NodeManagement * @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) { + NodeManagement.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.NodeManagement(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.autoUpgrade = reader.bool(); 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()); + message.autoRepair = reader.bool(); break; - case 7: - message.name = reader.string(); + case 10: + message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -9847,197 +15854,130 @@ }; /** - * Decodes a SetMasterAuthRequest message from the specified reader or buffer, length delimited. + * Decodes a NodeManagement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.NodeManagement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest + * @returns {google.container.v1.NodeManagement} NodeManagement * @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) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SetMasterAuthRequest message. - * @function verify - * @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 - */ - SetMasterAuthRequest.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.update != null && message.hasOwnProperty("update")) { - var error = $root.google.container.v1.MasterAuth.verify(message.update); + NodeManagement.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeManagement message. + * @function verify + * @memberof google.container.v1.NodeManagement + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeManagement.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + if (typeof message.autoUpgrade !== "boolean") + return "autoUpgrade: boolean expected"; + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + if (typeof message.autoRepair !== "boolean") + return "autoRepair: boolean expected"; + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) { + var error = $root.google.container.v1.AutoUpgradeOptions.verify(message.upgradeOptions); if (error) - return "update." + error; + return "upgradeOptions." + error; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; return null; }; /** - * Creates a SetMasterAuthRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NodeManagement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.NodeManagement * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetMasterAuthRequest} SetMasterAuthRequest + * @returns {google.container.v1.NodeManagement} NodeManagement */ - SetMasterAuthRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetMasterAuthRequest) + NodeManagement.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeManagement) 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; - } - 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); + var message = new $root.google.container.v1.NodeManagement(); + if (object.autoUpgrade != null) + message.autoUpgrade = Boolean(object.autoUpgrade); + if (object.autoRepair != null) + message.autoRepair = Boolean(object.autoRepair); + if (object.upgradeOptions != null) { + if (typeof object.upgradeOptions !== "object") + throw TypeError(".google.container.v1.NodeManagement.upgradeOptions: object expected"); + message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.fromObject(object.upgradeOptions); } - 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 NodeManagement message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.SetMasterAuthRequest} message SetMasterAuthRequest + * @param {google.container.v1.NodeManagement} message NodeManagement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetMasterAuthRequest.toObject = function toObject(message, options) { + NodeManagement.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 = ""; + object.autoUpgrade = false; + object.autoRepair = false; + object.upgradeOptions = 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.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; + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + object.autoUpgrade = message.autoUpgrade; + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + object.autoRepair = message.autoRepair; + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) + object.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.toObject(message.upgradeOptions, options); return object; }; /** - * Converts this SetMasterAuthRequest to JSON. + * Converts this NodeManagement to JSON. * @function toJSON - * @memberof google.container.v1.SetMasterAuthRequest + * @memberof google.container.v1.NodeManagement * @instance * @returns {Object.} JSON object */ - SetMasterAuthRequest.prototype.toJSON = function toJSON() { + NodeManagement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Action enum. - * @name google.container.v1.SetMasterAuthRequest.Action - * @enum {string} - * @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 NodeManagement; })(); - v1.DeleteClusterRequest = (function() { + v1.AutoUpgradeOptions = (function() { /** - * Properties of a DeleteClusterRequest. + * Properties of an AutoUpgradeOptions. * @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 IAutoUpgradeOptions + * @property {string|null} [autoUpgradeStartTime] AutoUpgradeOptions autoUpgradeStartTime + * @property {string|null} [description] AutoUpgradeOptions description */ /** - * Constructs a new DeleteClusterRequest. + * Constructs a new AutoUpgradeOptions. * @memberof google.container.v1 - * @classdesc Represents a DeleteClusterRequest. - * @implements IDeleteClusterRequest + * @classdesc Represents an AutoUpgradeOptions. + * @implements IAutoUpgradeOptions * @constructor - * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set + * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set */ - function DeleteClusterRequest(properties) { + function AutoUpgradeOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10045,114 +15985,88 @@ } /** - * DeleteClusterRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.DeleteClusterRequest - * @instance - */ - DeleteClusterRequest.prototype.projectId = ""; - - /** - * DeleteClusterRequest zone. - * @member {string} zone - * @memberof google.container.v1.DeleteClusterRequest - * @instance - */ - DeleteClusterRequest.prototype.zone = ""; - - /** - * DeleteClusterRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.DeleteClusterRequest + * AutoUpgradeOptions autoUpgradeStartTime. + * @member {string} autoUpgradeStartTime + * @memberof google.container.v1.AutoUpgradeOptions * @instance */ - DeleteClusterRequest.prototype.clusterId = ""; + AutoUpgradeOptions.prototype.autoUpgradeStartTime = ""; /** - * DeleteClusterRequest name. - * @member {string} name - * @memberof google.container.v1.DeleteClusterRequest + * AutoUpgradeOptions description. + * @member {string} description + * @memberof google.container.v1.AutoUpgradeOptions * @instance */ - DeleteClusterRequest.prototype.name = ""; + AutoUpgradeOptions.prototype.description = ""; /** - * Creates a new DeleteClusterRequest instance using the specified properties. + * Creates a new AutoUpgradeOptions instance using the specified properties. * @function create - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.IDeleteClusterRequest=} [properties] Properties to set - * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest instance + * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions instance */ - DeleteClusterRequest.create = function create(properties) { - return new DeleteClusterRequest(properties); + AutoUpgradeOptions.create = function create(properties) { + return new AutoUpgradeOptions(properties); }; /** - * Encodes the specified DeleteClusterRequest message. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages. + * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. * @function encode - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode + * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteClusterRequest.encode = function encode(message, writer) { + AutoUpgradeOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoUpgradeStartTime); + if (message.description != null && message.hasOwnProperty("description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); return writer; }; /** - * Encodes the specified DeleteClusterRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteClusterRequest.verify|verify} messages. + * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.IDeleteClusterRequest} message DeleteClusterRequest message or plain object to encode + * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteClusterRequest.encodeDelimited = function encodeDelimited(message, writer) { + AutoUpgradeOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteClusterRequest message from the specified reader or buffer. + * Decodes an AutoUpgradeOptions message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.AutoUpgradeOptions * @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.AutoUpgradeOptions} AutoUpgradeOptions * @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) { + AutoUpgradeOptions.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.AutoUpgradeOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.autoUpgradeStartTime = reader.string(); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 4: - message.name = reader.string(); + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -10163,134 +16077,117 @@ }; /** - * Decodes a DeleteClusterRequest message from the specified reader or buffer, length delimited. + * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.AutoUpgradeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions * @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) { + AutoUpgradeOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteClusterRequest message. + * Verifies an AutoUpgradeOptions message. * @function verify - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.AutoUpgradeOptions * @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) { + AutoUpgradeOptions.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"; + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + if (!$util.isString(message.autoUpgradeStartTime)) + return "autoUpgradeStartTime: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a DeleteClusterRequest message from a plain object. Also converts values to their respective internal types. + * Creates an AutoUpgradeOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.AutoUpgradeOptions * @static * @param {Object.} object Plain object - * @returns {google.container.v1.DeleteClusterRequest} DeleteClusterRequest + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions */ - DeleteClusterRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.DeleteClusterRequest) + AutoUpgradeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AutoUpgradeOptions) return object; - 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.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.AutoUpgradeOptions(); + if (object.autoUpgradeStartTime != null) + message.autoUpgradeStartTime = String(object.autoUpgradeStartTime); + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a DeleteClusterRequest message. Also converts values to other types if specified. + * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.DeleteClusterRequest} message DeleteClusterRequest + * @param {google.container.v1.AutoUpgradeOptions} message AutoUpgradeOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteClusterRequest.toObject = function toObject(message, options) { + AutoUpgradeOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.name = ""; + object.autoUpgradeStartTime = ""; + object.description = ""; } - 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; + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + object.autoUpgradeStartTime = message.autoUpgradeStartTime; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this DeleteClusterRequest to JSON. + * Converts this AutoUpgradeOptions to JSON. * @function toJSON - * @memberof google.container.v1.DeleteClusterRequest + * @memberof google.container.v1.AutoUpgradeOptions * @instance * @returns {Object.} JSON object */ - DeleteClusterRequest.prototype.toJSON = function toJSON() { + AutoUpgradeOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteClusterRequest; + return AutoUpgradeOptions; })(); - v1.ListClustersRequest = (function() { + v1.MaintenancePolicy = (function() { /** - * Properties of a ListClustersRequest. + * Properties of a MaintenancePolicy. * @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 IMaintenancePolicy + * @property {google.container.v1.IMaintenanceWindow|null} [window] MaintenancePolicy window + * @property {string|null} [resourceVersion] MaintenancePolicy resourceVersion */ /** - * Constructs a new ListClustersRequest. + * Constructs a new MaintenancePolicy. * @memberof google.container.v1 - * @classdesc Represents a ListClustersRequest. - * @implements IListClustersRequest + * @classdesc Represents a MaintenancePolicy. + * @implements IMaintenancePolicy * @constructor - * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set + * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set */ - function ListClustersRequest(properties) { + function MaintenancePolicy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10298,101 +16195,88 @@ } /** - * ListClustersRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.ListClustersRequest - * @instance - */ - ListClustersRequest.prototype.projectId = ""; - - /** - * ListClustersRequest zone. - * @member {string} zone - * @memberof google.container.v1.ListClustersRequest + * MaintenancePolicy window. + * @member {google.container.v1.IMaintenanceWindow|null|undefined} window + * @memberof google.container.v1.MaintenancePolicy * @instance */ - ListClustersRequest.prototype.zone = ""; + MaintenancePolicy.prototype.window = null; /** - * ListClustersRequest parent. - * @member {string} parent - * @memberof google.container.v1.ListClustersRequest + * MaintenancePolicy resourceVersion. + * @member {string} resourceVersion + * @memberof google.container.v1.MaintenancePolicy * @instance */ - ListClustersRequest.prototype.parent = ""; + MaintenancePolicy.prototype.resourceVersion = ""; /** - * Creates a new ListClustersRequest instance using the specified properties. + * Creates a new MaintenancePolicy instance using the specified properties. * @function create - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest instance + * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy instance */ - ListClustersRequest.create = function create(properties) { - return new ListClustersRequest(properties); + MaintenancePolicy.create = function create(properties) { + return new MaintenancePolicy(properties); }; /** - * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode + * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersRequest.encode = function encode(message, writer) { + MaintenancePolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.parent != null && message.hasOwnProperty("parent")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + if (message.window != null && message.hasOwnProperty("window")) + $root.google.container.v1.MaintenanceWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resourceVersion); return writer; }; /** - * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode + * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) { + MaintenancePolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListClustersRequest message from the specified reader or buffer. + * Decodes a MaintenancePolicy message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersRequest.decode = function decode(reader, length) { + MaintenancePolicy.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.ListClustersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaintenancePolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); - break; - case 2: - message.zone = reader.string(); + message.window = $root.google.container.v1.MaintenanceWindow.decode(reader, reader.uint32()); break; - case 4: - message.parent = reader.string(); + case 3: + message.resourceVersion = reader.string(); break; default: reader.skipType(tag & 7); @@ -10403,127 +16287,124 @@ }; /** - * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. + * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersRequest.decodeDelimited = function decodeDelimited(reader) { + MaintenancePolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListClustersRequest message. + * Verifies a MaintenancePolicy message. * @function verify - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListClustersRequest.verify = function verify(message) { + MaintenancePolicy.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.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.window != null && message.hasOwnProperty("window")) { + var error = $root.google.container.v1.MaintenanceWindow.verify(message.window); + if (error) + return "window." + error; + } + if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) + if (!$util.isString(message.resourceVersion)) + return "resourceVersion: string expected"; return null; }; /** - * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MaintenancePolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy */ - ListClustersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListClustersRequest) + MaintenancePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaintenancePolicy) return object; - 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.parent != null) - message.parent = String(object.parent); + var message = new $root.google.container.v1.MaintenancePolicy(); + if (object.window != null) { + if (typeof object.window !== "object") + throw TypeError(".google.container.v1.MaintenancePolicy.window: object expected"); + message.window = $root.google.container.v1.MaintenanceWindow.fromObject(object.window); + } + if (object.resourceVersion != null) + message.resourceVersion = String(object.resourceVersion); return message; }; /** - * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. + * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.ListClustersRequest} message ListClustersRequest + * @param {google.container.v1.MaintenancePolicy} message MaintenancePolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListClustersRequest.toObject = function toObject(message, options) { + MaintenancePolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.parent = ""; + object.window = null; + object.resourceVersion = ""; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.window != null && message.hasOwnProperty("window")) + object.window = $root.google.container.v1.MaintenanceWindow.toObject(message.window, options); + if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) + object.resourceVersion = message.resourceVersion; return object; }; /** - * Converts this ListClustersRequest to JSON. + * Converts this MaintenancePolicy to JSON. * @function toJSON - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.MaintenancePolicy * @instance * @returns {Object.} JSON object */ - ListClustersRequest.prototype.toJSON = function toJSON() { + MaintenancePolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListClustersRequest; + return MaintenancePolicy; })(); - v1.ListClustersResponse = (function() { + v1.MaintenanceWindow = (function() { /** - * Properties of a ListClustersResponse. + * Properties of a MaintenanceWindow. * @memberof google.container.v1 - * @interface IListClustersResponse - * @property {Array.|null} [clusters] ListClustersResponse clusters - * @property {Array.|null} [missingZones] ListClustersResponse missingZones + * @interface IMaintenanceWindow + * @property {google.container.v1.IDailyMaintenanceWindow|null} [dailyMaintenanceWindow] MaintenanceWindow dailyMaintenanceWindow + * @property {google.container.v1.IRecurringTimeWindow|null} [recurringWindow] MaintenanceWindow recurringWindow + * @property {Object.|null} [maintenanceExclusions] MaintenanceWindow maintenanceExclusions */ /** - * Constructs a new ListClustersResponse. + * Constructs a new MaintenanceWindow. * @memberof google.container.v1 - * @classdesc Represents a ListClustersResponse. - * @implements IListClustersResponse + * @classdesc Represents a MaintenanceWindow. + * @implements IMaintenanceWindow * @constructor - * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set + * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set */ - function ListClustersResponse(properties) { - this.clusters = []; - this.missingZones = []; + function MaintenanceWindow(properties) { + this.maintenanceExclusions = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10531,94 +16412,123 @@ } /** - * ListClustersResponse clusters. - * @member {Array.} clusters - * @memberof google.container.v1.ListClustersResponse + * MaintenanceWindow dailyMaintenanceWindow. + * @member {google.container.v1.IDailyMaintenanceWindow|null|undefined} dailyMaintenanceWindow + * @memberof google.container.v1.MaintenanceWindow * @instance */ - ListClustersResponse.prototype.clusters = $util.emptyArray; + MaintenanceWindow.prototype.dailyMaintenanceWindow = null; /** - * ListClustersResponse missingZones. - * @member {Array.} missingZones - * @memberof google.container.v1.ListClustersResponse + * MaintenanceWindow recurringWindow. + * @member {google.container.v1.IRecurringTimeWindow|null|undefined} recurringWindow + * @memberof google.container.v1.MaintenanceWindow * @instance */ - ListClustersResponse.prototype.missingZones = $util.emptyArray; + MaintenanceWindow.prototype.recurringWindow = null; /** - * Creates a new ListClustersResponse instance using the specified properties. + * MaintenanceWindow maintenanceExclusions. + * @member {Object.} maintenanceExclusions + * @memberof google.container.v1.MaintenanceWindow + * @instance + */ + MaintenanceWindow.prototype.maintenanceExclusions = $util.emptyObject; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MaintenanceWindow policy. + * @member {"dailyMaintenanceWindow"|"recurringWindow"|undefined} policy + * @memberof google.container.v1.MaintenanceWindow + * @instance + */ + Object.defineProperty(MaintenanceWindow.prototype, "policy", { + get: $util.oneOfGetter($oneOfFields = ["dailyMaintenanceWindow", "recurringWindow"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new MaintenanceWindow instance using the specified properties. * @function create - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse instance + * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow instance */ - ListClustersResponse.create = function create(properties) { - return new ListClustersResponse(properties); + MaintenanceWindow.create = function create(properties) { + return new MaintenanceWindow(properties); }; /** - * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. + * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode + * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersResponse.encode = function encode(message, writer) { + MaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - 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]); + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) + $root.google.container.v1.DailyMaintenanceWindow.encode(message.dailyMaintenanceWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) + $root.google.container.v1.RecurringTimeWindow.encode(message.recurringWindow, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maintenanceExclusions != null && message.hasOwnProperty("maintenanceExclusions")) + for (var keys = Object.keys(message.maintenanceExclusions), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.container.v1.TimeWindow.encode(message.maintenanceExclusions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. + * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode + * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) { + MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListClustersResponse message from the specified reader or buffer. + * Decodes a MaintenanceWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.MaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersResponse.decode = function decode(reader, length) { + MaintenanceWindow.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.ListClustersResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaintenanceWindow(), key; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.clusters && message.clusters.length)) - message.clusters = []; - message.clusters.push($root.google.container.v1.Cluster.decode(reader, reader.uint32())); - break; case 2: - if (!(message.missingZones && message.missingZones.length)) - message.missingZones = []; - message.missingZones.push(reader.string()); + message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.decode(reader, reader.uint32()); + break; + case 3: + message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.decode(reader, reader.uint32()); + break; + case 4: + reader.skip().pos++; + if (message.maintenanceExclusions === $util.emptyObject) + message.maintenanceExclusions = {}; + key = reader.string(); + reader.pos++; + message.maintenanceExclusions[key] = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -10629,148 +16539,166 @@ }; /** - * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. + * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.MaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersResponse.decodeDelimited = function decodeDelimited(reader) { + MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListClustersResponse message. + * Verifies a MaintenanceWindow message. * @function verify - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.MaintenanceWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListClustersResponse.verify = function verify(message) { + MaintenanceWindow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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]); + var properties = {}; + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { + properties.policy = 1; + { + var error = $root.google.container.v1.DailyMaintenanceWindow.verify(message.dailyMaintenanceWindow); if (error) - return "clusters." + error; + return "dailyMaintenanceWindow." + 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"; + if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) { + if (properties.policy === 1) + return "policy: multiple values"; + properties.policy = 1; + { + var error = $root.google.container.v1.RecurringTimeWindow.verify(message.recurringWindow); + if (error) + return "recurringWindow." + error; + } + } + if (message.maintenanceExclusions != null && message.hasOwnProperty("maintenanceExclusions")) { + if (!$util.isObject(message.maintenanceExclusions)) + return "maintenanceExclusions: object expected"; + var key = Object.keys(message.maintenanceExclusions); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.container.v1.TimeWindow.verify(message.maintenanceExclusions[key[i]]); + if (error) + return "maintenanceExclusions." + error; + } } return null; }; /** - * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types. + * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.MaintenanceWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow */ - ListClustersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListClustersResponse) + MaintenanceWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaintenanceWindow) return object; - 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]); - } + var message = new $root.google.container.v1.MaintenanceWindow(); + if (object.dailyMaintenanceWindow != null) { + if (typeof object.dailyMaintenanceWindow !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.dailyMaintenanceWindow: object expected"); + message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.fromObject(object.dailyMaintenanceWindow); } - 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]); + if (object.recurringWindow != null) { + if (typeof object.recurringWindow !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.recurringWindow: object expected"); + message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.fromObject(object.recurringWindow); + } + if (object.maintenanceExclusions) { + if (typeof object.maintenanceExclusions !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.maintenanceExclusions: object expected"); + message.maintenanceExclusions = {}; + for (var keys = Object.keys(object.maintenanceExclusions), i = 0; i < keys.length; ++i) { + if (typeof object.maintenanceExclusions[keys[i]] !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.maintenanceExclusions: object expected"); + message.maintenanceExclusions[keys[i]] = $root.google.container.v1.TimeWindow.fromObject(object.maintenanceExclusions[keys[i]]); + } } return message; }; /** - * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. + * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.ListClustersResponse} message ListClustersResponse + * @param {google.container.v1.MaintenanceWindow} message MaintenanceWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListClustersResponse.toObject = function toObject(message, options) { + MaintenanceWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.clusters = []; - object.missingZones = []; + if (options.objects || options.defaults) + object.maintenanceExclusions = {}; + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { + object.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.toObject(message.dailyMaintenanceWindow, options); + if (options.oneofs) + object.policy = "dailyMaintenanceWindow"; } - 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.recurringWindow != null && message.hasOwnProperty("recurringWindow")) { + object.recurringWindow = $root.google.container.v1.RecurringTimeWindow.toObject(message.recurringWindow, options); + if (options.oneofs) + object.policy = "recurringWindow"; } - if (message.missingZones && message.missingZones.length) { - object.missingZones = []; - for (var j = 0; j < message.missingZones.length; ++j) - object.missingZones[j] = message.missingZones[j]; + var keys2; + if (message.maintenanceExclusions && (keys2 = Object.keys(message.maintenanceExclusions)).length) { + object.maintenanceExclusions = {}; + for (var j = 0; j < keys2.length; ++j) + object.maintenanceExclusions[keys2[j]] = $root.google.container.v1.TimeWindow.toObject(message.maintenanceExclusions[keys2[j]], options); } return object; }; /** - * Converts this ListClustersResponse to JSON. + * Converts this MaintenanceWindow to JSON. * @function toJSON - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.MaintenanceWindow * @instance * @returns {Object.} JSON object */ - ListClustersResponse.prototype.toJSON = function toJSON() { + MaintenanceWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListClustersResponse; + return MaintenanceWindow; })(); - v1.GetOperationRequest = (function() { + v1.TimeWindow = (function() { /** - * Properties of a GetOperationRequest. + * Properties of a TimeWindow. * @memberof google.container.v1 - * @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 + * @interface ITimeWindow + * @property {google.protobuf.ITimestamp|null} [startTime] TimeWindow startTime + * @property {google.protobuf.ITimestamp|null} [endTime] TimeWindow endTime */ /** - * Constructs a new GetOperationRequest. + * Constructs a new TimeWindow. * @memberof google.container.v1 - * @classdesc Represents a GetOperationRequest. - * @implements IGetOperationRequest + * @classdesc Represents a TimeWindow. + * @implements ITimeWindow * @constructor - * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set + * @param {google.container.v1.ITimeWindow=} [properties] Properties to set */ - function GetOperationRequest(properties) { + function TimeWindow(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -10778,114 +16706,88 @@ } /** - * GetOperationRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.GetOperationRequest - * @instance - */ - GetOperationRequest.prototype.projectId = ""; - - /** - * GetOperationRequest zone. - * @member {string} zone - * @memberof google.container.v1.GetOperationRequest - * @instance - */ - GetOperationRequest.prototype.zone = ""; - - /** - * GetOperationRequest operationId. - * @member {string} operationId - * @memberof google.container.v1.GetOperationRequest + * TimeWindow startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.container.v1.TimeWindow * @instance */ - GetOperationRequest.prototype.operationId = ""; + TimeWindow.prototype.startTime = null; /** - * GetOperationRequest name. - * @member {string} name - * @memberof google.container.v1.GetOperationRequest + * TimeWindow endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.container.v1.TimeWindow * @instance */ - GetOperationRequest.prototype.name = ""; + TimeWindow.prototype.endTime = null; /** - * Creates a new GetOperationRequest instance using the specified properties. + * Creates a new TimeWindow instance using the specified properties. * @function create - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest instance + * @param {google.container.v1.ITimeWindow=} [properties] Properties to set + * @returns {google.container.v1.TimeWindow} TimeWindow instance */ - GetOperationRequest.create = function create(properties) { - return new GetOperationRequest(properties); + TimeWindow.create = function create(properties) { + return new TimeWindow(properties); }; /** - * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. + * Encodes the specified TimeWindow message. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.IGetOperationRequest} message GetOperationRequest message or plain object to encode + * @param {google.container.v1.ITimeWindow} message TimeWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOperationRequest.encode = function encode(message, writer) { + TimeWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationId != null && message.hasOwnProperty("operationId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + if (message.startTime != null && message.hasOwnProperty("startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && message.hasOwnProperty("endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. + * Encodes the specified TimeWindow message, length delimited. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.IGetOperationRequest} message GetOperationRequest message or plain object to encode + * @param {google.container.v1.ITimeWindow} message TimeWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + TimeWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetOperationRequest message from the specified reader or buffer. + * Decodes a TimeWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.TimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest + * @returns {google.container.v1.TimeWindow} TimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOperationRequest.decode = function decode(reader, length) { + TimeWindow.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.GetOperationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.TimeWindow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.operationId = reader.string(); - break; - case 5: - message.name = reader.string(); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -10896,134 +16798,127 @@ }; /** - * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * Decodes a TimeWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.TimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest + * @returns {google.container.v1.TimeWindow} TimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOperationRequest.decodeDelimited = function decodeDelimited(reader) { + TimeWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetOperationRequest message. + * Verifies a TimeWindow message. * @function verify - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.TimeWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetOperationRequest.verify = function verify(message) { + TimeWindow.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.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"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } return null; }; /** - * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TimeWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.TimeWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest + * @returns {google.container.v1.TimeWindow} TimeWindow */ - GetOperationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetOperationRequest) + TimeWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.TimeWindow) return object; - 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.operationId != null) - message.operationId = String(object.operationId); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.TimeWindow(); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.container.v1.TimeWindow.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.container.v1.TimeWindow.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } return message; }; /** - * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. + * Creates a plain object from a TimeWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.GetOperationRequest} message GetOperationRequest + * @param {google.container.v1.TimeWindow} message TimeWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetOperationRequest.toObject = function toObject(message, options) { + TimeWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.operationId = ""; - object.name = ""; + object.startTime = null; + object.endTime = 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.operationId != null && message.hasOwnProperty("operationId")) - object.operationId = message.operationId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this GetOperationRequest to JSON. + * Converts this TimeWindow to JSON. * @function toJSON - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.TimeWindow * @instance * @returns {Object.} JSON object */ - GetOperationRequest.prototype.toJSON = function toJSON() { + TimeWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetOperationRequest; + return TimeWindow; })(); - v1.ListOperationsRequest = (function() { + v1.RecurringTimeWindow = (function() { /** - * Properties of a ListOperationsRequest. + * Properties of a RecurringTimeWindow. * @memberof google.container.v1 - * @interface IListOperationsRequest - * @property {string|null} [projectId] ListOperationsRequest projectId - * @property {string|null} [zone] ListOperationsRequest zone - * @property {string|null} [parent] ListOperationsRequest parent + * @interface IRecurringTimeWindow + * @property {google.container.v1.ITimeWindow|null} [window] RecurringTimeWindow window + * @property {string|null} [recurrence] RecurringTimeWindow recurrence */ /** - * Constructs a new ListOperationsRequest. + * Constructs a new RecurringTimeWindow. * @memberof google.container.v1 - * @classdesc Represents a ListOperationsRequest. - * @implements IListOperationsRequest + * @classdesc Represents a RecurringTimeWindow. + * @implements IRecurringTimeWindow * @constructor - * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set + * @param {google.container.v1.IRecurringTimeWindow=} [properties] Properties to set */ - function ListOperationsRequest(properties) { + function RecurringTimeWindow(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11031,101 +16926,88 @@ } /** - * ListOperationsRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.ListOperationsRequest - * @instance - */ - ListOperationsRequest.prototype.projectId = ""; - - /** - * ListOperationsRequest zone. - * @member {string} zone - * @memberof google.container.v1.ListOperationsRequest + * RecurringTimeWindow window. + * @member {google.container.v1.ITimeWindow|null|undefined} window + * @memberof google.container.v1.RecurringTimeWindow * @instance */ - ListOperationsRequest.prototype.zone = ""; + RecurringTimeWindow.prototype.window = null; /** - * ListOperationsRequest parent. - * @member {string} parent - * @memberof google.container.v1.ListOperationsRequest + * RecurringTimeWindow recurrence. + * @member {string} recurrence + * @memberof google.container.v1.RecurringTimeWindow * @instance */ - ListOperationsRequest.prototype.parent = ""; + RecurringTimeWindow.prototype.recurrence = ""; /** - * Creates a new ListOperationsRequest instance using the specified properties. + * Creates a new RecurringTimeWindow instance using the specified properties. * @function create - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.RecurringTimeWindow * @static - * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest instance + * @param {google.container.v1.IRecurringTimeWindow=} [properties] Properties to set + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow instance */ - ListOperationsRequest.create = function create(properties) { - return new ListOperationsRequest(properties); + RecurringTimeWindow.create = function create(properties) { + return new RecurringTimeWindow(properties); }; /** - * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. + * Encodes the specified RecurringTimeWindow message. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.RecurringTimeWindow * @static - * @param {google.container.v1.IListOperationsRequest} message ListOperationsRequest message or plain object to encode + * @param {google.container.v1.IRecurringTimeWindow} message RecurringTimeWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsRequest.encode = function encode(message, writer) { + RecurringTimeWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.parent != null && message.hasOwnProperty("parent")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + if (message.window != null && message.hasOwnProperty("window")) + $root.google.container.v1.TimeWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recurrence != null && message.hasOwnProperty("recurrence")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.recurrence); return writer; }; /** - * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. + * Encodes the specified RecurringTimeWindow message, length delimited. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.RecurringTimeWindow * @static - * @param {google.container.v1.IListOperationsRequest} message ListOperationsRequest message or plain object to encode + * @param {google.container.v1.IRecurringTimeWindow} message RecurringTimeWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecurringTimeWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListOperationsRequest message from the specified reader or buffer. + * Decodes a RecurringTimeWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsRequest.decode = function decode(reader, length) { + RecurringTimeWindow.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.ListOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.RecurringTimeWindow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.window = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); break; case 2: - message.zone = reader.string(); - break; - case 4: - message.parent = reader.string(); + message.recurrence = reader.string(); break; default: reader.skipType(tag & 7); @@ -11136,242 +17018,211 @@ }; /** - * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a RecurringTimeWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + RecurringTimeWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListOperationsRequest message. + * Verifies a RecurringTimeWindow message. * @function verify - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListOperationsRequest.verify = function verify(message) { + RecurringTimeWindow.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.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.window != null && message.hasOwnProperty("window")) { + var error = $root.google.container.v1.TimeWindow.verify(message.window); + if (error) + return "window." + error; + } + if (message.recurrence != null && message.hasOwnProperty("recurrence")) + if (!$util.isString(message.recurrence)) + return "recurrence: string expected"; return null; }; /** - * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecurringTimeWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow */ - ListOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListOperationsRequest) + RecurringTimeWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.RecurringTimeWindow) return object; - 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.parent != null) - message.parent = String(object.parent); + var message = new $root.google.container.v1.RecurringTimeWindow(); + if (object.window != null) { + if (typeof object.window !== "object") + throw TypeError(".google.container.v1.RecurringTimeWindow.window: object expected"); + message.window = $root.google.container.v1.TimeWindow.fromObject(object.window); + } + if (object.recurrence != null) + message.recurrence = String(object.recurrence); return message; }; /** - * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecurringTimeWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.RecurringTimeWindow * @static - * @param {google.container.v1.ListOperationsRequest} message ListOperationsRequest + * @param {google.container.v1.RecurringTimeWindow} message RecurringTimeWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListOperationsRequest.toObject = function toObject(message, options) { + RecurringTimeWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.parent = ""; + object.window = null; + object.recurrence = ""; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.window != null && message.hasOwnProperty("window")) + object.window = $root.google.container.v1.TimeWindow.toObject(message.window, options); + if (message.recurrence != null && message.hasOwnProperty("recurrence")) + object.recurrence = message.recurrence; return object; }; /** - * Converts this ListOperationsRequest to JSON. + * Converts this RecurringTimeWindow to JSON. * @function toJSON - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.RecurringTimeWindow * @instance * @returns {Object.} JSON object */ - ListOperationsRequest.prototype.toJSON = function toJSON() { + RecurringTimeWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListOperationsRequest; + return RecurringTimeWindow; })(); - v1.CancelOperationRequest = (function() { + v1.DailyMaintenanceWindow = (function() { /** - * Properties of a CancelOperationRequest. + * Properties of a DailyMaintenanceWindow. * @memberof google.container.v1 - * @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 + * @interface IDailyMaintenanceWindow + * @property {string|null} [startTime] DailyMaintenanceWindow startTime + * @property {string|null} [duration] DailyMaintenanceWindow duration */ /** - * Constructs a new CancelOperationRequest. + * Constructs a new DailyMaintenanceWindow. * @memberof google.container.v1 - * @classdesc Represents a CancelOperationRequest. - * @implements ICancelOperationRequest - * @constructor - * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set - */ - function CancelOperationRequest(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]]; - } - - /** - * CancelOperationRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.CancelOperationRequest - * @instance - */ - CancelOperationRequest.prototype.projectId = ""; - - /** - * CancelOperationRequest zone. - * @member {string} zone - * @memberof google.container.v1.CancelOperationRequest - * @instance + * @classdesc Represents a DailyMaintenanceWindow. + * @implements IDailyMaintenanceWindow + * @constructor + * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set */ - CancelOperationRequest.prototype.zone = ""; + function DailyMaintenanceWindow(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]]; + } /** - * CancelOperationRequest operationId. - * @member {string} operationId - * @memberof google.container.v1.CancelOperationRequest + * DailyMaintenanceWindow startTime. + * @member {string} startTime + * @memberof google.container.v1.DailyMaintenanceWindow * @instance */ - CancelOperationRequest.prototype.operationId = ""; + DailyMaintenanceWindow.prototype.startTime = ""; /** - * CancelOperationRequest name. - * @member {string} name - * @memberof google.container.v1.CancelOperationRequest + * DailyMaintenanceWindow duration. + * @member {string} duration + * @memberof google.container.v1.DailyMaintenanceWindow * @instance */ - CancelOperationRequest.prototype.name = ""; + DailyMaintenanceWindow.prototype.duration = ""; /** - * Creates a new CancelOperationRequest instance using the specified properties. + * Creates a new DailyMaintenanceWindow instance using the specified properties. * @function create - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest instance + * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow instance */ - CancelOperationRequest.create = function create(properties) { - return new CancelOperationRequest(properties); + DailyMaintenanceWindow.create = function create(properties) { + return new DailyMaintenanceWindow(properties); }; /** - * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. + * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode + * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelOperationRequest.encode = function encode(message, writer) { + DailyMaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationId != null && message.hasOwnProperty("operationId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.startTime != null && message.hasOwnProperty("startTime")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.startTime); + if (message.duration != null && message.hasOwnProperty("duration")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.duration); return writer; }; /** - * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. + * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode + * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + DailyMaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelOperationRequest message from the specified reader or buffer. + * Decodes a DailyMaintenanceWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelOperationRequest.decode = function decode(reader, length) { + DailyMaintenanceWindow.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.CancelOperationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DailyMaintenanceWindow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; case 2: - message.zone = reader.string(); + message.startTime = reader.string(); break; case 3: - message.operationId = reader.string(); - break; - case 4: - message.name = reader.string(); + message.duration = reader.string(); break; default: reader.skipType(tag & 7); @@ -11382,135 +17233,121 @@ }; /** - * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. + * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelOperationRequest.decodeDelimited = function decodeDelimited(reader) { + DailyMaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelOperationRequest message. + * Verifies a DailyMaintenanceWindow message. * @function verify - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelOperationRequest.verify = function verify(message) { + DailyMaintenanceWindow.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.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"; + if (message.startTime != null && message.hasOwnProperty("startTime")) + if (!$util.isString(message.startTime)) + return "startTime: string expected"; + if (message.duration != null && message.hasOwnProperty("duration")) + if (!$util.isString(message.duration)) + return "duration: string expected"; return null; }; /** - * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DailyMaintenanceWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow */ - CancelOperationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CancelOperationRequest) + DailyMaintenanceWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DailyMaintenanceWindow) return object; - 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.operationId != null) - message.operationId = String(object.operationId); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.DailyMaintenanceWindow(); + if (object.startTime != null) + message.startTime = String(object.startTime); + if (object.duration != null) + message.duration = String(object.duration); return message; }; /** - * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. + * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.CancelOperationRequest} message CancelOperationRequest + * @param {google.container.v1.DailyMaintenanceWindow} message DailyMaintenanceWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelOperationRequest.toObject = function toObject(message, options) { + DailyMaintenanceWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.operationId = ""; - object.name = ""; + object.startTime = ""; + object.duration = ""; } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.operationId != null && message.hasOwnProperty("operationId")) - object.operationId = message.operationId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = message.startTime; + if (message.duration != null && message.hasOwnProperty("duration")) + object.duration = message.duration; return object; }; /** - * Converts this CancelOperationRequest to JSON. + * Converts this DailyMaintenanceWindow to JSON. * @function toJSON - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.DailyMaintenanceWindow * @instance * @returns {Object.} JSON object */ - CancelOperationRequest.prototype.toJSON = function toJSON() { + DailyMaintenanceWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelOperationRequest; + return DailyMaintenanceWindow; })(); - v1.ListOperationsResponse = (function() { + v1.SetNodePoolManagementRequest = (function() { /** - * Properties of a ListOperationsResponse. + * Properties of a SetNodePoolManagementRequest. * @memberof google.container.v1 - * @interface IListOperationsResponse - * @property {Array.|null} [operations] ListOperationsResponse operations - * @property {Array.|null} [missingZones] ListOperationsResponse missingZones + * @interface ISetNodePoolManagementRequest + * @property {string|null} [projectId] SetNodePoolManagementRequest projectId + * @property {string|null} [zone] SetNodePoolManagementRequest zone + * @property {string|null} [clusterId] SetNodePoolManagementRequest clusterId + * @property {string|null} [nodePoolId] SetNodePoolManagementRequest nodePoolId + * @property {google.container.v1.INodeManagement|null} [management] SetNodePoolManagementRequest management + * @property {string|null} [name] SetNodePoolManagementRequest name */ /** - * Constructs a new ListOperationsResponse. + * Constructs a new SetNodePoolManagementRequest. * @memberof google.container.v1 - * @classdesc Represents a ListOperationsResponse. - * @implements IListOperationsResponse + * @classdesc Represents a SetNodePoolManagementRequest. + * @implements ISetNodePoolManagementRequest * @constructor - * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set + * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set */ - function ListOperationsResponse(properties) { - this.operations = []; - this.missingZones = []; + function SetNodePoolManagementRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -11518,94 +17355,140 @@ } /** - * ListOperationsResponse operations. - * @member {Array.} operations - * @memberof google.container.v1.ListOperationsResponse + * SetNodePoolManagementRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance */ - ListOperationsResponse.prototype.operations = $util.emptyArray; + SetNodePoolManagementRequest.prototype.projectId = ""; /** - * ListOperationsResponse missingZones. - * @member {Array.} missingZones - * @memberof google.container.v1.ListOperationsResponse + * SetNodePoolManagementRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance */ - ListOperationsResponse.prototype.missingZones = $util.emptyArray; + SetNodePoolManagementRequest.prototype.zone = ""; /** - * Creates a new ListOperationsResponse instance using the specified properties. + * SetNodePoolManagementRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.clusterId = ""; + + /** + * SetNodePoolManagementRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.nodePoolId = ""; + + /** + * SetNodePoolManagementRequest management. + * @member {google.container.v1.INodeManagement|null|undefined} management + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.management = null; + + /** + * SetNodePoolManagementRequest name. + * @member {string} name + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.name = ""; + + /** + * Creates a new SetNodePoolManagementRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse instance + * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest instance */ - ListOperationsResponse.create = function create(properties) { - return new ListOperationsResponse(properties); + SetNodePoolManagementRequest.create = function create(properties) { + return new SetNodePoolManagementRequest(properties); }; /** - * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. + * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.IListOperationsResponse} message ListOperationsResponse message or plain object to encode + * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsResponse.encode = function encode(message, writer) { + SetNodePoolManagementRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - 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]); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.management != null && message.hasOwnProperty("management")) + $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. + * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.IListOperationsResponse} message ListOperationsResponse message or plain object to encode + * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SetNodePoolManagementRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListOperationsResponse message from the specified reader or buffer. + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsResponse.decode = function decode(reader, length) { + SetNodePoolManagementRequest.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.ListOperationsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNodePoolManagementRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.operations && message.operations.length)) - message.operations = []; - message.operations.push($root.google.container.v1.Operation.decode(reader, reader.uint32())); + message.projectId = reader.string(); break; case 2: - if (!(message.missingZones && message.missingZones.length)) - message.missingZones = []; - message.missingZones.push(reader.string()); + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.nodePoolId = reader.string(); + break; + case 5: + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + case 7: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -11616,238 +17499,279 @@ }; /** - * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsResponse.decodeDelimited = function decodeDelimited(reader) { + SetNodePoolManagementRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListOperationsResponse message. + * Verifies a SetNodePoolManagementRequest message. * @function verify - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListOperationsResponse.verify = function verify(message) { + SetNodePoolManagementRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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.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"; + 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.management != null && message.hasOwnProperty("management")) { + var error = $root.google.container.v1.NodeManagement.verify(message.management); + if (error) + return "management." + error; } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListOperationsResponse 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. * @function fromObject - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest */ - ListOperationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListOperationsResponse) + SetNodePoolManagementRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNodePoolManagementRequest) return object; - 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.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]); + var message = new $root.google.container.v1.SetNodePoolManagementRequest(); + 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.management != null) { + if (typeof object.management !== "object") + throw TypeError(".google.container.v1.SetNodePoolManagementRequest.management: object expected"); + message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); } + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.ListOperationsResponse} message ListOperationsResponse + * @param {google.container.v1.SetNodePoolManagementRequest} message SetNodePoolManagementRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListOperationsResponse.toObject = function toObject(message, options) { + SetNodePoolManagementRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - 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 (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.management = 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.management != null && message.hasOwnProperty("management")) + object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListOperationsResponse to JSON. + * Converts this SetNodePoolManagementRequest to JSON. * @function toJSON - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance * @returns {Object.} JSON object */ - ListOperationsResponse.prototype.toJSON = function toJSON() { + SetNodePoolManagementRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListOperationsResponse; + return SetNodePoolManagementRequest; })(); - v1.GetServerConfigRequest = (function() { + v1.SetNodePoolSizeRequest = (function() { /** - * Properties of a GetServerConfigRequest. + * Properties of a SetNodePoolSizeRequest. * @memberof google.container.v1 - * @interface IGetServerConfigRequest - * @property {string|null} [projectId] GetServerConfigRequest projectId - * @property {string|null} [zone] GetServerConfigRequest zone - * @property {string|null} [name] GetServerConfigRequest name + * @interface ISetNodePoolSizeRequest + * @property {string|null} [projectId] SetNodePoolSizeRequest projectId + * @property {string|null} [zone] SetNodePoolSizeRequest zone + * @property {string|null} [clusterId] SetNodePoolSizeRequest clusterId + * @property {string|null} [nodePoolId] SetNodePoolSizeRequest nodePoolId + * @property {number|null} [nodeCount] SetNodePoolSizeRequest nodeCount + * @property {string|null} [name] SetNodePoolSizeRequest name */ /** - * Constructs a new GetServerConfigRequest. + * Constructs a new SetNodePoolSizeRequest. * @memberof google.container.v1 - * @classdesc Represents a GetServerConfigRequest. - * @implements IGetServerConfigRequest + * @classdesc Represents a SetNodePoolSizeRequest. + * @implements ISetNodePoolSizeRequest * @constructor - * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set + * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + */ + function SetNodePoolSizeRequest(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]]; + } + + /** + * SetNodePoolSizeRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.projectId = ""; + + /** + * SetNodePoolSizeRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.zone = ""; + + /** + * SetNodePoolSizeRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance */ - function GetServerConfigRequest(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]]; - } + SetNodePoolSizeRequest.prototype.clusterId = ""; /** - * GetServerConfigRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.GetServerConfigRequest + * SetNodePoolSizeRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.SetNodePoolSizeRequest * @instance */ - GetServerConfigRequest.prototype.projectId = ""; + SetNodePoolSizeRequest.prototype.nodePoolId = ""; /** - * GetServerConfigRequest zone. - * @member {string} zone - * @memberof google.container.v1.GetServerConfigRequest + * SetNodePoolSizeRequest nodeCount. + * @member {number} nodeCount + * @memberof google.container.v1.SetNodePoolSizeRequest * @instance */ - GetServerConfigRequest.prototype.zone = ""; + SetNodePoolSizeRequest.prototype.nodeCount = 0; /** - * GetServerConfigRequest name. + * SetNodePoolSizeRequest name. * @member {string} name - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.SetNodePoolSizeRequest * @instance */ - GetServerConfigRequest.prototype.name = ""; + SetNodePoolSizeRequest.prototype.name = ""; /** - * Creates a new GetServerConfigRequest instance using the specified properties. + * Creates a new SetNodePoolSizeRequest instance using the specified properties. * @function create - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest instance + * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest instance */ - GetServerConfigRequest.create = function create(properties) { - return new GetServerConfigRequest(properties); + SetNodePoolSizeRequest.create = function create(properties) { + return new SetNodePoolSizeRequest(properties); }; /** - * Encodes the specified GetServerConfigRequest message. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. + * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.IGetServerConfigRequest} message GetServerConfigRequest message or plain object to encode + * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetServerConfigRequest.encode = function encode(message, writer) { + SetNodePoolSizeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nodeCount); if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified GetServerConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. + * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.IGetServerConfigRequest} message GetServerConfigRequest message or plain object to encode + * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetServerConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetNodePoolSizeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetServerConfigRequest message from the specified reader or buffer. + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetServerConfigRequest.decode = function decode(reader, length) { + SetNodePoolSizeRequest.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.GetServerConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNodePoolSizeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -11857,7 +17781,16 @@ case 2: message.zone = reader.string(); break; + case 3: + message.clusterId = reader.string(); + break; case 4: + message.nodePoolId = reader.string(); + break; + case 5: + message.nodeCount = reader.int32(); + break; + case 7: message.name = reader.string(); break; default: @@ -11869,30 +17802,30 @@ }; /** - * Decodes a GetServerConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetServerConfigRequest.decodeDelimited = function decodeDelimited(reader) { + SetNodePoolSizeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetServerConfigRequest message. + * Verifies a SetNodePoolSizeRequest message. * @function verify - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetServerConfigRequest.verify = function verify(message) { + SetNodePoolSizeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -11901,6 +17834,15 @@ 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.nodeCount != null && message.hasOwnProperty("nodeCount")) + if (!$util.isInteger(message.nodeCount)) + return "nodeCount: integer expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -11908,92 +17850,104 @@ }; /** - * Creates a GetServerConfigRequest 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. * @function fromObject - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest */ - GetServerConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetServerConfigRequest) + SetNodePoolSizeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNodePoolSizeRequest) return object; - var message = new $root.google.container.v1.GetServerConfigRequest(); + var message = new $root.google.container.v1.SetNodePoolSizeRequest(); 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.nodeCount != null) + message.nodeCount = object.nodeCount | 0; if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetServerConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.GetServerConfigRequest} message GetServerConfigRequest + * @param {google.container.v1.SetNodePoolSizeRequest} message SetNodePoolSizeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetServerConfigRequest.toObject = function toObject(message, options) { + SetNodePoolSizeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.nodeCount = 0; 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.nodeCount != null && message.hasOwnProperty("nodeCount")) + object.nodeCount = message.nodeCount; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this GetServerConfigRequest to JSON. + * Converts this SetNodePoolSizeRequest to JSON. * @function toJSON - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.SetNodePoolSizeRequest * @instance * @returns {Object.} JSON object */ - GetServerConfigRequest.prototype.toJSON = function toJSON() { + SetNodePoolSizeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetServerConfigRequest; + return SetNodePoolSizeRequest; })(); - v1.ServerConfig = (function() { + v1.RollbackNodePoolUpgradeRequest = (function() { /** - * Properties of a ServerConfig. + * Properties of a RollbackNodePoolUpgradeRequest. * @memberof google.container.v1 - * @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 + * @interface IRollbackNodePoolUpgradeRequest + * @property {string|null} [projectId] RollbackNodePoolUpgradeRequest projectId + * @property {string|null} [zone] RollbackNodePoolUpgradeRequest zone + * @property {string|null} [clusterId] RollbackNodePoolUpgradeRequest clusterId + * @property {string|null} [nodePoolId] RollbackNodePoolUpgradeRequest nodePoolId + * @property {string|null} [name] RollbackNodePoolUpgradeRequest name */ /** - * Constructs a new ServerConfig. + * Constructs a new RollbackNodePoolUpgradeRequest. * @memberof google.container.v1 - * @classdesc Represents a ServerConfig. - * @implements IServerConfig + * @classdesc Represents a RollbackNodePoolUpgradeRequest. + * @implements IRollbackNodePoolUpgradeRequest * @constructor - * @param {google.container.v1.IServerConfig=} [properties] Properties to set + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set */ - function ServerConfig(properties) { - this.validNodeVersions = []; - this.validImageTypes = []; - this.validMasterVersions = []; + function RollbackNodePoolUpgradeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12001,136 +17955,127 @@ } /** - * ServerConfig defaultClusterVersion. - * @member {string} defaultClusterVersion - * @memberof google.container.v1.ServerConfig + * RollbackNodePoolUpgradeRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance */ - ServerConfig.prototype.defaultClusterVersion = ""; + RollbackNodePoolUpgradeRequest.prototype.projectId = ""; /** - * ServerConfig validNodeVersions. - * @member {Array.} validNodeVersions - * @memberof google.container.v1.ServerConfig + * RollbackNodePoolUpgradeRequest zone. + * @member {string} zone + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance */ - ServerConfig.prototype.validNodeVersions = $util.emptyArray; + RollbackNodePoolUpgradeRequest.prototype.zone = ""; /** - * ServerConfig defaultImageType. - * @member {string} defaultImageType - * @memberof google.container.v1.ServerConfig + * RollbackNodePoolUpgradeRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance */ - ServerConfig.prototype.defaultImageType = ""; + RollbackNodePoolUpgradeRequest.prototype.clusterId = ""; /** - * ServerConfig validImageTypes. - * @member {Array.} validImageTypes - * @memberof google.container.v1.ServerConfig + * RollbackNodePoolUpgradeRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance */ - ServerConfig.prototype.validImageTypes = $util.emptyArray; + RollbackNodePoolUpgradeRequest.prototype.nodePoolId = ""; /** - * ServerConfig validMasterVersions. - * @member {Array.} validMasterVersions - * @memberof google.container.v1.ServerConfig + * RollbackNodePoolUpgradeRequest name. + * @member {string} name + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance */ - ServerConfig.prototype.validMasterVersions = $util.emptyArray; + RollbackNodePoolUpgradeRequest.prototype.name = ""; /** - * Creates a new ServerConfig instance using the specified properties. + * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.IServerConfig=} [properties] Properties to set - * @returns {google.container.v1.ServerConfig} ServerConfig instance + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest instance */ - ServerConfig.create = function create(properties) { - return new ServerConfig(properties); + RollbackNodePoolUpgradeRequest.create = function create(properties) { + return new RollbackNodePoolUpgradeRequest(properties); }; /** - * Encodes the specified ServerConfig message. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. + * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServerConfig.encode = function encode(message, writer) { + RollbackNodePoolUpgradeRequest.encode = function encode(message, writer) { if (!writer) - writer = $Writer.create(); - if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultClusterVersion); - if (message.validNodeVersions != null && message.validNodeVersions.length) - for (var i = 0; i < message.validNodeVersions.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.validNodeVersions[i]); - if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultImageType); - if (message.validImageTypes != null && message.validImageTypes.length) - for (var i = 0; i < message.validImageTypes.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.validImageTypes[i]); - if (message.validMasterVersions != null && message.validMasterVersions.length) - for (var i = 0; i < message.validMasterVersions.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.validMasterVersions[i]); + writer = $Writer.create(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified ServerConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. + * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServerConfig.encodeDelimited = function encodeDelimited(message, writer) { + RollbackNodePoolUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServerConfig message from the specified reader or buffer. + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ServerConfig} ServerConfig + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServerConfig.decode = function decode(reader, length) { + RollbackNodePoolUpgradeRequest.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.ServerConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.defaultClusterVersion = reader.string(); + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); break; case 3: - if (!(message.validNodeVersions && message.validNodeVersions.length)) - message.validNodeVersions = []; - message.validNodeVersions.push(reader.string()); + message.clusterId = reader.string(); break; case 4: - message.defaultImageType = reader.string(); - break; - case 5: - if (!(message.validImageTypes && message.validImageTypes.length)) - message.validImageTypes = []; - message.validImageTypes.push(reader.string()); + message.nodePoolId = reader.string(); break; case 6: - if (!(message.validMasterVersions && message.validMasterVersions.length)) - message.validMasterVersions = []; - message.validMasterVersions.push(reader.string()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -12141,310 +18086,220 @@ }; /** - * Decodes a ServerConfig message from the specified reader or buffer, length delimited. + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ServerConfig} ServerConfig + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServerConfig.decodeDelimited = function decodeDelimited(reader) { + RollbackNodePoolUpgradeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServerConfig message. + * Verifies a RollbackNodePoolUpgradeRequest message. * @function verify - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServerConfig.verify = function verify(message) { + RollbackNodePoolUpgradeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) - if (!$util.isString(message.defaultClusterVersion)) - return "defaultClusterVersion: string expected"; - if (message.validNodeVersions != null && message.hasOwnProperty("validNodeVersions")) { - if (!Array.isArray(message.validNodeVersions)) - return "validNodeVersions: array expected"; - for (var i = 0; i < message.validNodeVersions.length; ++i) - if (!$util.isString(message.validNodeVersions[i])) - return "validNodeVersions: string[] expected"; - } - if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) - if (!$util.isString(message.defaultImageType)) - return "defaultImageType: string expected"; - if (message.validImageTypes != null && message.hasOwnProperty("validImageTypes")) { - if (!Array.isArray(message.validImageTypes)) - return "validImageTypes: array expected"; - for (var i = 0; i < message.validImageTypes.length; ++i) - if (!$util.isString(message.validImageTypes[i])) - return "validImageTypes: string[] expected"; - } - if (message.validMasterVersions != null && message.hasOwnProperty("validMasterVersions")) { - if (!Array.isArray(message.validMasterVersions)) - return "validMasterVersions: array expected"; - for (var i = 0; i < message.validMasterVersions.length; ++i) - if (!$util.isString(message.validMasterVersions[i])) - return "validMasterVersions: 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.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ServerConfig 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. * @function fromObject - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ServerConfig} ServerConfig + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest */ - ServerConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ServerConfig) + RollbackNodePoolUpgradeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.RollbackNodePoolUpgradeRequest) return object; - var message = new $root.google.container.v1.ServerConfig(); - if (object.defaultClusterVersion != null) - message.defaultClusterVersion = String(object.defaultClusterVersion); - if (object.validNodeVersions) { - if (!Array.isArray(object.validNodeVersions)) - throw TypeError(".google.container.v1.ServerConfig.validNodeVersions: array expected"); - message.validNodeVersions = []; - for (var i = 0; i < object.validNodeVersions.length; ++i) - message.validNodeVersions[i] = String(object.validNodeVersions[i]); - } - if (object.defaultImageType != null) - message.defaultImageType = String(object.defaultImageType); - if (object.validImageTypes) { - if (!Array.isArray(object.validImageTypes)) - throw TypeError(".google.container.v1.ServerConfig.validImageTypes: array expected"); - message.validImageTypes = []; - for (var i = 0; i < object.validImageTypes.length; ++i) - message.validImageTypes[i] = String(object.validImageTypes[i]); - } - if (object.validMasterVersions) { - if (!Array.isArray(object.validMasterVersions)) - throw TypeError(".google.container.v1.ServerConfig.validMasterVersions: array expected"); - message.validMasterVersions = []; - for (var i = 0; i < object.validMasterVersions.length; ++i) - message.validMasterVersions[i] = String(object.validMasterVersions[i]); - } + var message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); + 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.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ServerConfig message. Also converts values to other types if specified. + * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.ServerConfig} message ServerConfig + * @param {google.container.v1.RollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServerConfig.toObject = function toObject(message, options) { + RollbackNodePoolUpgradeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.validNodeVersions = []; - object.validImageTypes = []; - object.validMasterVersions = []; - } if (options.defaults) { - object.defaultClusterVersion = ""; - object.defaultImageType = ""; - } - if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) - object.defaultClusterVersion = message.defaultClusterVersion; - if (message.validNodeVersions && message.validNodeVersions.length) { - object.validNodeVersions = []; - for (var j = 0; j < message.validNodeVersions.length; ++j) - object.validNodeVersions[j] = message.validNodeVersions[j]; - } - if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) - object.defaultImageType = message.defaultImageType; - if (message.validImageTypes && message.validImageTypes.length) { - object.validImageTypes = []; - for (var j = 0; j < message.validImageTypes.length; ++j) - object.validImageTypes[j] = message.validImageTypes[j]; - } - if (message.validMasterVersions && message.validMasterVersions.length) { - object.validMasterVersions = []; - for (var j = 0; j < message.validMasterVersions.length; ++j) - object.validMasterVersions[j] = message.validMasterVersions[j]; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ServerConfig to JSON. + * Converts this RollbackNodePoolUpgradeRequest to JSON. * @function toJSON - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance * @returns {Object.} JSON object */ - ServerConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ServerConfig; - })(); - - v1.CreateNodePoolRequest = (function() { - - /** - * Properties of a CreateNodePoolRequest. - * @memberof google.container.v1 - * @interface ICreateNodePoolRequest - * @property {string|null} [projectId] CreateNodePoolRequest projectId - * @property {string|null} [zone] CreateNodePoolRequest zone - * @property {string|null} [clusterId] CreateNodePoolRequest clusterId - * @property {google.container.v1.INodePool|null} [nodePool] CreateNodePoolRequest nodePool - * @property {string|null} [parent] CreateNodePoolRequest parent - */ - - /** - * Constructs a new CreateNodePoolRequest. - * @memberof google.container.v1 - * @classdesc Represents a CreateNodePoolRequest. - * @implements ICreateNodePoolRequest - * @constructor - * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set - */ - function CreateNodePoolRequest(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]]; - } - - /** - * CreateNodePoolRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.CreateNodePoolRequest - * @instance - */ - CreateNodePoolRequest.prototype.projectId = ""; - - /** - * CreateNodePoolRequest zone. - * @member {string} zone - * @memberof google.container.v1.CreateNodePoolRequest - * @instance - */ - CreateNodePoolRequest.prototype.zone = ""; + RollbackNodePoolUpgradeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return RollbackNodePoolUpgradeRequest; + })(); + + v1.ListNodePoolsResponse = (function() { /** - * CreateNodePoolRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.CreateNodePoolRequest - * @instance + * Properties of a ListNodePoolsResponse. + * @memberof google.container.v1 + * @interface IListNodePoolsResponse + * @property {Array.|null} [nodePools] ListNodePoolsResponse nodePools */ - CreateNodePoolRequest.prototype.clusterId = ""; /** - * CreateNodePoolRequest nodePool. - * @member {google.container.v1.INodePool|null|undefined} nodePool - * @memberof google.container.v1.CreateNodePoolRequest - * @instance + * Constructs a new ListNodePoolsResponse. + * @memberof google.container.v1 + * @classdesc Represents a ListNodePoolsResponse. + * @implements IListNodePoolsResponse + * @constructor + * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set */ - CreateNodePoolRequest.prototype.nodePool = null; + function ListNodePoolsResponse(properties) { + this.nodePools = []; + 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]]; + } /** - * CreateNodePoolRequest parent. - * @member {string} parent - * @memberof google.container.v1.CreateNodePoolRequest + * ListNodePoolsResponse nodePools. + * @member {Array.} nodePools + * @memberof google.container.v1.ListNodePoolsResponse * @instance */ - CreateNodePoolRequest.prototype.parent = ""; + ListNodePoolsResponse.prototype.nodePools = $util.emptyArray; /** - * Creates a new CreateNodePoolRequest instance using the specified properties. + * Creates a new ListNodePoolsResponse instance using the specified properties. * @function create - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest instance + * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse instance */ - CreateNodePoolRequest.create = function create(properties) { - return new CreateNodePoolRequest(properties); + ListNodePoolsResponse.create = function create(properties) { + return new ListNodePoolsResponse(properties); }; /** - * Encodes the specified CreateNodePoolRequest message. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. + * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. * @function encode - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode + * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNodePoolRequest.encode = function encode(message, writer) { + ListNodePoolsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePool != null && message.hasOwnProperty("nodePool")) - $root.google.container.v1.NodePool.encode(message.nodePool, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parent != null && message.hasOwnProperty("parent")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.parent); + 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 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. + * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode + * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNodePoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateNodePoolRequest message from the specified reader or buffer. + * Decodes a ListNodePoolsResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNodePoolRequest.decode = function decode(reader, length) { + ListNodePoolsResponse.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.CreateNodePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListNodePoolsResponse(); 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.nodePool = $root.google.container.v1.NodePool.decode(reader, reader.uint32()); - break; - case 6: - message.parent = reader.string(); + if (!(message.nodePools && message.nodePools.length)) + message.nodePools = []; + message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -12455,149 +18310,129 @@ }; /** - * Decodes a CreateNodePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + ListNodePoolsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateNodePoolRequest message. + * Verifies a ListNodePoolsResponse message. * @function verify - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateNodePoolRequest.verify = function verify(message) { + ListNodePoolsResponse.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.nodePool != null && message.hasOwnProperty("nodePool")) { - var error = $root.google.container.v1.NodePool.verify(message.nodePool); - if (error) - return "nodePool." + error; + 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.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; return null; }; /** - * Creates a CreateNodePoolRequest 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. * @function fromObject - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse */ - CreateNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CreateNodePoolRequest) + ListNodePoolsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListNodePoolsResponse) return object; - var message = new $root.google.container.v1.CreateNodePoolRequest(); - 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.nodePool != null) { - if (typeof object.nodePool !== "object") - throw TypeError(".google.container.v1.CreateNodePoolRequest.nodePool: object expected"); - message.nodePool = $root.google.container.v1.NodePool.fromObject(object.nodePool); + var message = new $root.google.container.v1.ListNodePoolsResponse(); + if (object.nodePools) { + if (!Array.isArray(object.nodePools)) + throw TypeError(".google.container.v1.ListNodePoolsResponse.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.ListNodePoolsResponse.nodePools: object expected"); + message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]); + } } - if (object.parent != null) - message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a CreateNodePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.CreateNodePoolRequest} message CreateNodePoolRequest + * @param {google.container.v1.ListNodePoolsResponse} message ListNodePoolsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateNodePoolRequest.toObject = function toObject(message, options) { + ListNodePoolsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePool = null; - object.parent = ""; + if (options.arrays || options.defaults) + object.nodePools = []; + 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.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.nodePool != null && message.hasOwnProperty("nodePool")) - object.nodePool = $root.google.container.v1.NodePool.toObject(message.nodePool, options); - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; return object; }; /** - * Converts this CreateNodePoolRequest to JSON. + * Converts this ListNodePoolsResponse to JSON. * @function toJSON - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.ListNodePoolsResponse * @instance * @returns {Object.} JSON object */ - CreateNodePoolRequest.prototype.toJSON = function toJSON() { + ListNodePoolsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateNodePoolRequest; + return ListNodePoolsResponse; })(); - v1.DeleteNodePoolRequest = (function() { + v1.ClusterAutoscaling = (function() { /** - * Properties of a DeleteNodePoolRequest. + * Properties of a ClusterAutoscaling. * @memberof google.container.v1 - * @interface IDeleteNodePoolRequest - * @property {string|null} [projectId] DeleteNodePoolRequest projectId - * @property {string|null} [zone] DeleteNodePoolRequest zone - * @property {string|null} [clusterId] DeleteNodePoolRequest clusterId - * @property {string|null} [nodePoolId] DeleteNodePoolRequest nodePoolId - * @property {string|null} [name] DeleteNodePoolRequest name + * @interface IClusterAutoscaling + * @property {boolean|null} [enableNodeAutoprovisioning] ClusterAutoscaling enableNodeAutoprovisioning + * @property {Array.|null} [resourceLimits] ClusterAutoscaling resourceLimits + * @property {google.container.v1.IAutoprovisioningNodePoolDefaults|null} [autoprovisioningNodePoolDefaults] ClusterAutoscaling autoprovisioningNodePoolDefaults + * @property {Array.|null} [autoprovisioningLocations] ClusterAutoscaling autoprovisioningLocations */ /** - * Constructs a new DeleteNodePoolRequest. + * Constructs a new ClusterAutoscaling. * @memberof google.container.v1 - * @classdesc Represents a DeleteNodePoolRequest. - * @implements IDeleteNodePoolRequest + * @classdesc Represents a ClusterAutoscaling. + * @implements IClusterAutoscaling * @constructor - * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set + * @param {google.container.v1.IClusterAutoscaling=} [properties] Properties to set */ - function DeleteNodePoolRequest(properties) { + function ClusterAutoscaling(properties) { + this.resourceLimits = []; + this.autoprovisioningLocations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12605,127 +18440,120 @@ } /** - * DeleteNodePoolRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.DeleteNodePoolRequest - * @instance - */ - DeleteNodePoolRequest.prototype.projectId = ""; - - /** - * DeleteNodePoolRequest zone. - * @member {string} zone - * @memberof google.container.v1.DeleteNodePoolRequest + * ClusterAutoscaling enableNodeAutoprovisioning. + * @member {boolean} enableNodeAutoprovisioning + * @memberof google.container.v1.ClusterAutoscaling * @instance */ - DeleteNodePoolRequest.prototype.zone = ""; + ClusterAutoscaling.prototype.enableNodeAutoprovisioning = false; /** - * DeleteNodePoolRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.DeleteNodePoolRequest + * ClusterAutoscaling resourceLimits. + * @member {Array.} resourceLimits + * @memberof google.container.v1.ClusterAutoscaling * @instance */ - DeleteNodePoolRequest.prototype.clusterId = ""; + ClusterAutoscaling.prototype.resourceLimits = $util.emptyArray; /** - * DeleteNodePoolRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.DeleteNodePoolRequest + * ClusterAutoscaling autoprovisioningNodePoolDefaults. + * @member {google.container.v1.IAutoprovisioningNodePoolDefaults|null|undefined} autoprovisioningNodePoolDefaults + * @memberof google.container.v1.ClusterAutoscaling * @instance */ - DeleteNodePoolRequest.prototype.nodePoolId = ""; + ClusterAutoscaling.prototype.autoprovisioningNodePoolDefaults = null; /** - * DeleteNodePoolRequest name. - * @member {string} name - * @memberof google.container.v1.DeleteNodePoolRequest + * ClusterAutoscaling autoprovisioningLocations. + * @member {Array.} autoprovisioningLocations + * @memberof google.container.v1.ClusterAutoscaling * @instance */ - DeleteNodePoolRequest.prototype.name = ""; + ClusterAutoscaling.prototype.autoprovisioningLocations = $util.emptyArray; /** - * Creates a new DeleteNodePoolRequest instance using the specified properties. + * Creates a new ClusterAutoscaling instance using the specified properties. * @function create - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest instance + * @param {google.container.v1.IClusterAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling instance */ - DeleteNodePoolRequest.create = function create(properties) { - return new DeleteNodePoolRequest(properties); + ClusterAutoscaling.create = function create(properties) { + return new ClusterAutoscaling(properties); }; /** - * Encodes the specified DeleteNodePoolRequest message. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. + * Encodes the specified ClusterAutoscaling message. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. * @function encode - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode + * @param {google.container.v1.IClusterAutoscaling} message ClusterAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNodePoolRequest.encode = function encode(message, writer) { + ClusterAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableNodeAutoprovisioning); + if (message.resourceLimits != null && message.resourceLimits.length) + for (var i = 0; i < message.resourceLimits.length; ++i) + $root.google.container.v1.ResourceLimit.encode(message.resourceLimits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) + $root.google.container.v1.AutoprovisioningNodePoolDefaults.encode(message.autoprovisioningNodePoolDefaults, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.autoprovisioningLocations != null && message.autoprovisioningLocations.length) + for (var i = 0; i < message.autoprovisioningLocations.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.autoprovisioningLocations[i]); return writer; }; /** - * Encodes the specified DeleteNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. + * Encodes the specified ClusterAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode + * @param {google.container.v1.IClusterAutoscaling} message ClusterAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + ClusterAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteNodePoolRequest message from the specified reader or buffer. + * Decodes a ClusterAutoscaling message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNodePoolRequest.decode = function decode(reader, length) { + ClusterAutoscaling.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.DeleteNodePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ClusterAutoscaling(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.enableNodeAutoprovisioning = reader.bool(); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); + if (!(message.resourceLimits && message.resourceLimits.length)) + message.resourceLimits = []; + message.resourceLimits.push($root.google.container.v1.ResourceLimit.decode(reader, reader.uint32())); break; case 4: - message.nodePoolId = reader.string(); + message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.decode(reader, reader.uint32()); break; - case 6: - message.name = reader.string(); + case 5: + if (!(message.autoprovisioningLocations && message.autoprovisioningLocations.length)) + message.autoprovisioningLocations = []; + message.autoprovisioningLocations.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -12736,143 +18564,170 @@ }; /** - * Decodes a DeleteNodePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a ClusterAutoscaling message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + ClusterAutoscaling.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteNodePoolRequest message. + * Verifies a ClusterAutoscaling message. * @function verify - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteNodePoolRequest.verify = function verify(message) { + ClusterAutoscaling.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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) + if (typeof message.enableNodeAutoprovisioning !== "boolean") + return "enableNodeAutoprovisioning: boolean expected"; + if (message.resourceLimits != null && message.hasOwnProperty("resourceLimits")) { + if (!Array.isArray(message.resourceLimits)) + return "resourceLimits: array expected"; + for (var i = 0; i < message.resourceLimits.length; ++i) { + var error = $root.google.container.v1.ResourceLimit.verify(message.resourceLimits[i]); + if (error) + return "resourceLimits." + error; + } + } + if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) { + var error = $root.google.container.v1.AutoprovisioningNodePoolDefaults.verify(message.autoprovisioningNodePoolDefaults); + if (error) + return "autoprovisioningNodePoolDefaults." + error; + } + if (message.autoprovisioningLocations != null && message.hasOwnProperty("autoprovisioningLocations")) { + if (!Array.isArray(message.autoprovisioningLocations)) + return "autoprovisioningLocations: array expected"; + for (var i = 0; i < message.autoprovisioningLocations.length; ++i) + if (!$util.isString(message.autoprovisioningLocations[i])) + return "autoprovisioningLocations: string[] expected"; + } return null; }; /** - * Creates a DeleteNodePoolRequest 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. * @function fromObject - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {Object.} object Plain object - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling */ - DeleteNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.DeleteNodePoolRequest) + ClusterAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ClusterAutoscaling) return object; - var message = new $root.google.container.v1.DeleteNodePoolRequest(); - 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.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.ClusterAutoscaling(); + if (object.enableNodeAutoprovisioning != null) + message.enableNodeAutoprovisioning = Boolean(object.enableNodeAutoprovisioning); + if (object.resourceLimits) { + if (!Array.isArray(object.resourceLimits)) + throw TypeError(".google.container.v1.ClusterAutoscaling.resourceLimits: array expected"); + message.resourceLimits = []; + for (var i = 0; i < object.resourceLimits.length; ++i) { + if (typeof object.resourceLimits[i] !== "object") + throw TypeError(".google.container.v1.ClusterAutoscaling.resourceLimits: object expected"); + message.resourceLimits[i] = $root.google.container.v1.ResourceLimit.fromObject(object.resourceLimits[i]); + } + } + if (object.autoprovisioningNodePoolDefaults != null) { + if (typeof object.autoprovisioningNodePoolDefaults !== "object") + throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningNodePoolDefaults: object expected"); + message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.fromObject(object.autoprovisioningNodePoolDefaults); + } + if (object.autoprovisioningLocations) { + if (!Array.isArray(object.autoprovisioningLocations)) + throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningLocations: array expected"); + message.autoprovisioningLocations = []; + for (var i = 0; i < object.autoprovisioningLocations.length; ++i) + message.autoprovisioningLocations[i] = String(object.autoprovisioningLocations[i]); + } return message; }; /** - * Creates a plain object from a DeleteNodePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a ClusterAutoscaling message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.DeleteNodePoolRequest} message DeleteNodePoolRequest + * @param {google.container.v1.ClusterAutoscaling} message ClusterAutoscaling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteNodePoolRequest.toObject = function toObject(message, options) { + ClusterAutoscaling.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.resourceLimits = []; + object.autoprovisioningLocations = []; + } if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePoolId = ""; - object.name = ""; + object.enableNodeAutoprovisioning = false; + object.autoprovisioningNodePoolDefaults = null; + } + if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) + object.enableNodeAutoprovisioning = message.enableNodeAutoprovisioning; + if (message.resourceLimits && message.resourceLimits.length) { + object.resourceLimits = []; + for (var j = 0; j < message.resourceLimits.length; ++j) + object.resourceLimits[j] = $root.google.container.v1.ResourceLimit.toObject(message.resourceLimits[j], options); + } + if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) + object.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.toObject(message.autoprovisioningNodePoolDefaults, options); + if (message.autoprovisioningLocations && message.autoprovisioningLocations.length) { + object.autoprovisioningLocations = []; + for (var j = 0; j < message.autoprovisioningLocations.length; ++j) + object.autoprovisioningLocations[j] = message.autoprovisioningLocations[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.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - object.nodePoolId = message.nodePoolId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; return object; }; /** - * Converts this DeleteNodePoolRequest to JSON. + * Converts this ClusterAutoscaling to JSON. * @function toJSON - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.ClusterAutoscaling * @instance * @returns {Object.} JSON object */ - DeleteNodePoolRequest.prototype.toJSON = function toJSON() { + ClusterAutoscaling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteNodePoolRequest; + return ClusterAutoscaling; })(); - v1.ListNodePoolsRequest = (function() { + v1.AutoprovisioningNodePoolDefaults = (function() { /** - * Properties of a ListNodePoolsRequest. + * Properties of an AutoprovisioningNodePoolDefaults. * @memberof google.container.v1 - * @interface IListNodePoolsRequest - * @property {string|null} [projectId] ListNodePoolsRequest projectId - * @property {string|null} [zone] ListNodePoolsRequest zone - * @property {string|null} [clusterId] ListNodePoolsRequest clusterId - * @property {string|null} [parent] ListNodePoolsRequest parent + * @interface IAutoprovisioningNodePoolDefaults + * @property {Array.|null} [oauthScopes] AutoprovisioningNodePoolDefaults oauthScopes + * @property {string|null} [serviceAccount] AutoprovisioningNodePoolDefaults serviceAccount */ /** - * Constructs a new ListNodePoolsRequest. + * Constructs a new AutoprovisioningNodePoolDefaults. * @memberof google.container.v1 - * @classdesc Represents a ListNodePoolsRequest. - * @implements IListNodePoolsRequest + * @classdesc Represents an AutoprovisioningNodePoolDefaults. + * @implements IAutoprovisioningNodePoolDefaults * @constructor - * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults=} [properties] Properties to set */ - function ListNodePoolsRequest(properties) { + function AutoprovisioningNodePoolDefaults(properties) { + this.oauthScopes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12880,114 +18735,91 @@ } /** - * ListNodePoolsRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.ListNodePoolsRequest - * @instance - */ - ListNodePoolsRequest.prototype.projectId = ""; - - /** - * ListNodePoolsRequest zone. - * @member {string} zone - * @memberof google.container.v1.ListNodePoolsRequest - * @instance - */ - ListNodePoolsRequest.prototype.zone = ""; - - /** - * ListNodePoolsRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.ListNodePoolsRequest + * AutoprovisioningNodePoolDefaults oauthScopes. + * @member {Array.} oauthScopes + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @instance */ - ListNodePoolsRequest.prototype.clusterId = ""; + AutoprovisioningNodePoolDefaults.prototype.oauthScopes = $util.emptyArray; /** - * ListNodePoolsRequest parent. - * @member {string} parent - * @memberof google.container.v1.ListNodePoolsRequest + * AutoprovisioningNodePoolDefaults serviceAccount. + * @member {string} serviceAccount + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @instance */ - ListNodePoolsRequest.prototype.parent = ""; + AutoprovisioningNodePoolDefaults.prototype.serviceAccount = ""; /** - * Creates a new ListNodePoolsRequest instance using the specified properties. + * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties. * @function create - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest instance + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults=} [properties] Properties to set + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults instance */ - ListNodePoolsRequest.create = function create(properties) { - return new ListNodePoolsRequest(properties); + AutoprovisioningNodePoolDefaults.create = function create(properties) { + return new AutoprovisioningNodePoolDefaults(properties); }; /** - * Encodes the specified ListNodePoolsRequest message. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. + * Encodes the specified AutoprovisioningNodePoolDefaults message. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsRequest.encode = function encode(message, writer) { + AutoprovisioningNodePoolDefaults.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.parent != null && message.hasOwnProperty("parent")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); + if (message.oauthScopes != null && message.oauthScopes.length) + for (var i = 0; i < message.oauthScopes.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.oauthScopes[i]); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); return writer; }; /** - * Encodes the specified ListNodePoolsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. + * Encodes the specified AutoprovisioningNodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + AutoprovisioningNodePoolDefaults.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNodePoolsRequest message from the specified reader or buffer. + * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsRequest.decode = function decode(reader, length) { + AutoprovisioningNodePoolDefaults.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.ListNodePoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AutoprovisioningNodePoolDefaults(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + if (!(message.oauthScopes && message.oauthScopes.length)) + message.oauthScopes = []; + message.oauthScopes.push(reader.string()); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 5: - message.parent = reader.string(); + message.serviceAccount = reader.string(); break; default: reader.skipType(tag & 7); @@ -12998,136 +18830,130 @@ }; /** - * Decodes a ListNodePoolsRequest message from the specified reader or buffer, length delimited. + * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsRequest.decodeDelimited = function decodeDelimited(reader) { + AutoprovisioningNodePoolDefaults.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNodePoolsRequest message. + * Verifies an AutoprovisioningNodePoolDefaults message. * @function verify - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNodePoolsRequest.verify = function verify(message) { + AutoprovisioningNodePoolDefaults.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.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) { + if (!Array.isArray(message.oauthScopes)) + return "oauthScopes: array expected"; + for (var i = 0; i < message.oauthScopes.length; ++i) + if (!$util.isString(message.oauthScopes[i])) + return "oauthScopes: string[] expected"; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; return null; }; /** - * Creates a ListNodePoolsRequest 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. * @function fromObject - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults */ - ListNodePoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListNodePoolsRequest) + AutoprovisioningNodePoolDefaults.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AutoprovisioningNodePoolDefaults) return object; - var message = new $root.google.container.v1.ListNodePoolsRequest(); - 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.parent != null) - message.parent = String(object.parent); + var message = new $root.google.container.v1.AutoprovisioningNodePoolDefaults(); + if (object.oauthScopes) { + if (!Array.isArray(object.oauthScopes)) + throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.oauthScopes: array expected"); + message.oauthScopes = []; + for (var i = 0; i < object.oauthScopes.length; ++i) + message.oauthScopes[i] = String(object.oauthScopes[i]); + } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); return message; }; /** - * Creates a plain object from a ListNodePoolsRequest message. Also converts values to other types if specified. + * Creates a plain object from an AutoprovisioningNodePoolDefaults message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.ListNodePoolsRequest} message ListNodePoolsRequest + * @param {google.container.v1.AutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNodePoolsRequest.toObject = function toObject(message, options) { + AutoprovisioningNodePoolDefaults.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.parent = ""; + if (options.arrays || options.defaults) + object.oauthScopes = []; + if (options.defaults) + object.serviceAccount = ""; + if (message.oauthScopes && message.oauthScopes.length) { + object.oauthScopes = []; + for (var j = 0; j < message.oauthScopes.length; ++j) + object.oauthScopes[j] = message.oauthScopes[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.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; return object; }; /** - * Converts this ListNodePoolsRequest to JSON. + * Converts this AutoprovisioningNodePoolDefaults to JSON. * @function toJSON - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @instance * @returns {Object.} JSON object */ - ListNodePoolsRequest.prototype.toJSON = function toJSON() { + AutoprovisioningNodePoolDefaults.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListNodePoolsRequest; + return AutoprovisioningNodePoolDefaults; })(); - v1.GetNodePoolRequest = (function() { + v1.ResourceLimit = (function() { /** - * Properties of a GetNodePoolRequest. + * Properties of a ResourceLimit. * @memberof google.container.v1 - * @interface IGetNodePoolRequest - * @property {string|null} [projectId] GetNodePoolRequest projectId - * @property {string|null} [zone] GetNodePoolRequest zone - * @property {string|null} [clusterId] GetNodePoolRequest clusterId - * @property {string|null} [nodePoolId] GetNodePoolRequest nodePoolId - * @property {string|null} [name] GetNodePoolRequest name + * @interface IResourceLimit + * @property {string|null} [resourceType] ResourceLimit resourceType + * @property {number|Long|null} [minimum] ResourceLimit minimum + * @property {number|Long|null} [maximum] ResourceLimit maximum */ /** - * Constructs a new GetNodePoolRequest. + * Constructs a new ResourceLimit. * @memberof google.container.v1 - * @classdesc Represents a GetNodePoolRequest. - * @implements IGetNodePoolRequest + * @classdesc Represents a ResourceLimit. + * @implements IResourceLimit * @constructor - * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set + * @param {google.container.v1.IResourceLimit=} [properties] Properties to set */ - function GetNodePoolRequest(properties) { + function ResourceLimit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13135,127 +18961,101 @@ } /** - * GetNodePoolRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.GetNodePoolRequest - * @instance - */ - GetNodePoolRequest.prototype.projectId = ""; - - /** - * GetNodePoolRequest zone. - * @member {string} zone - * @memberof google.container.v1.GetNodePoolRequest - * @instance - */ - GetNodePoolRequest.prototype.zone = ""; - - /** - * GetNodePoolRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.GetNodePoolRequest + * ResourceLimit resourceType. + * @member {string} resourceType + * @memberof google.container.v1.ResourceLimit * @instance */ - GetNodePoolRequest.prototype.clusterId = ""; + ResourceLimit.prototype.resourceType = ""; /** - * GetNodePoolRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.GetNodePoolRequest + * ResourceLimit minimum. + * @member {number|Long} minimum + * @memberof google.container.v1.ResourceLimit * @instance */ - GetNodePoolRequest.prototype.nodePoolId = ""; + ResourceLimit.prototype.minimum = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * GetNodePoolRequest name. - * @member {string} name - * @memberof google.container.v1.GetNodePoolRequest + * ResourceLimit maximum. + * @member {number|Long} maximum + * @memberof google.container.v1.ResourceLimit * @instance */ - GetNodePoolRequest.prototype.name = ""; + ResourceLimit.prototype.maximum = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new GetNodePoolRequest instance using the specified properties. + * Creates a new ResourceLimit instance using the specified properties. * @function create - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest instance + * @param {google.container.v1.IResourceLimit=} [properties] Properties to set + * @returns {google.container.v1.ResourceLimit} ResourceLimit instance */ - GetNodePoolRequest.create = function create(properties) { - return new GetNodePoolRequest(properties); + ResourceLimit.create = function create(properties) { + return new ResourceLimit(properties); }; /** - * Encodes the specified GetNodePoolRequest message. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. + * Encodes the specified ResourceLimit message. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode + * @param {google.container.v1.IResourceLimit} message ResourceLimit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNodePoolRequest.encode = function encode(message, writer) { + ResourceLimit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceType); + if (message.minimum != null && message.hasOwnProperty("minimum")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minimum); + if (message.maximum != null && message.hasOwnProperty("maximum")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maximum); return writer; }; /** - * Encodes the specified GetNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. + * Encodes the specified ResourceLimit message, length delimited. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode + * @param {google.container.v1.IResourceLimit} message ResourceLimit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResourceLimit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetNodePoolRequest message from the specified reader or buffer. + * Decodes a ResourceLimit message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.ResourceLimit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @returns {google.container.v1.ResourceLimit} ResourceLimit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNodePoolRequest.decode = function decode(reader, length) { + ResourceLimit.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.GetNodePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceLimit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.resourceType = reader.string(); break; case 2: - message.zone = reader.string(); + message.minimum = reader.int64(); break; case 3: - message.clusterId = reader.string(); - break; - case 4: - message.nodePoolId = reader.string(); - break; - case 6: - message.name = reader.string(); + message.maximum = reader.int64(); break; default: reader.skipType(tag & 7); @@ -13266,150 +19066,155 @@ }; /** - * Decodes a GetNodePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a ResourceLimit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.ResourceLimit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @returns {google.container.v1.ResourceLimit} ResourceLimit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + ResourceLimit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetNodePoolRequest message. + * Verifies a ResourceLimit message. * @function verify - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.ResourceLimit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNodePoolRequest.verify = function verify(message) { + ResourceLimit.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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + if (!$util.isString(message.resourceType)) + return "resourceType: string expected"; + if (message.minimum != null && message.hasOwnProperty("minimum")) + if (!$util.isInteger(message.minimum) && !(message.minimum && $util.isInteger(message.minimum.low) && $util.isInteger(message.minimum.high))) + return "minimum: integer|Long expected"; + if (message.maximum != null && message.hasOwnProperty("maximum")) + if (!$util.isInteger(message.maximum) && !(message.maximum && $util.isInteger(message.maximum.low) && $util.isInteger(message.maximum.high))) + return "maximum: integer|Long expected"; return null; }; /** - * Creates a GetNodePoolRequest 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. * @function fromObject - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.ResourceLimit * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @returns {google.container.v1.ResourceLimit} ResourceLimit */ - GetNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetNodePoolRequest) + ResourceLimit.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceLimit) return object; - var message = new $root.google.container.v1.GetNodePoolRequest(); - 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.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.ResourceLimit(); + if (object.resourceType != null) + message.resourceType = String(object.resourceType); + if (object.minimum != null) + if ($util.Long) + (message.minimum = $util.Long.fromValue(object.minimum)).unsigned = false; + else if (typeof object.minimum === "string") + message.minimum = parseInt(object.minimum, 10); + else if (typeof object.minimum === "number") + message.minimum = object.minimum; + else if (typeof object.minimum === "object") + message.minimum = new $util.LongBits(object.minimum.low >>> 0, object.minimum.high >>> 0).toNumber(); + if (object.maximum != null) + if ($util.Long) + (message.maximum = $util.Long.fromValue(object.maximum)).unsigned = false; + else if (typeof object.maximum === "string") + message.maximum = parseInt(object.maximum, 10); + else if (typeof object.maximum === "number") + message.maximum = object.maximum; + else if (typeof object.maximum === "object") + message.maximum = new $util.LongBits(object.maximum.low >>> 0, object.maximum.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a GetNodePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a ResourceLimit message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.GetNodePoolRequest} message GetNodePoolRequest + * @param {google.container.v1.ResourceLimit} message ResourceLimit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNodePoolRequest.toObject = function toObject(message, options) { + ResourceLimit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePoolId = ""; - object.name = ""; + object.resourceType = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minimum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minimum = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maximum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maximum = options.longs === String ? "0" : 0; } - 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = message.resourceType; + if (message.minimum != null && message.hasOwnProperty("minimum")) + if (typeof message.minimum === "number") + object.minimum = options.longs === String ? String(message.minimum) : message.minimum; + else + object.minimum = options.longs === String ? $util.Long.prototype.toString.call(message.minimum) : options.longs === Number ? new $util.LongBits(message.minimum.low >>> 0, message.minimum.high >>> 0).toNumber() : message.minimum; + if (message.maximum != null && message.hasOwnProperty("maximum")) + if (typeof message.maximum === "number") + object.maximum = options.longs === String ? String(message.maximum) : message.maximum; + else + object.maximum = options.longs === String ? $util.Long.prototype.toString.call(message.maximum) : options.longs === Number ? new $util.LongBits(message.maximum.low >>> 0, message.maximum.high >>> 0).toNumber() : message.maximum; return object; }; /** - * Converts this GetNodePoolRequest to JSON. + * Converts this ResourceLimit to JSON. * @function toJSON - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.ResourceLimit * @instance * @returns {Object.} JSON object */ - GetNodePoolRequest.prototype.toJSON = function toJSON() { + ResourceLimit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetNodePoolRequest; + return ResourceLimit; })(); - v1.NodePool = (function() { + v1.NodePoolAutoscaling = (function() { /** - * Properties of a NodePool. + * Properties of a NodePoolAutoscaling. * @memberof google.container.v1 - * @interface INodePool - * @property {string|null} [name] NodePool name - * @property {google.container.v1.INodeConfig|null} [config] NodePool config - * @property {number|null} [initialNodeCount] NodePool initialNodeCount - * @property {string|null} [selfLink] NodePool selfLink - * @property {string|null} [version] NodePool version - * @property {Array.|null} [instanceGroupUrls] NodePool instanceGroupUrls - * @property {google.container.v1.NodePool.Status|null} [status] NodePool status - * @property {string|null} [statusMessage] NodePool statusMessage - * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] NodePool autoscaling - * @property {google.container.v1.INodeManagement|null} [management] NodePool management + * @interface INodePoolAutoscaling + * @property {boolean|null} [enabled] NodePoolAutoscaling enabled + * @property {number|null} [minNodeCount] NodePoolAutoscaling minNodeCount + * @property {number|null} [maxNodeCount] NodePoolAutoscaling maxNodeCount + * @property {boolean|null} [autoprovisioned] NodePoolAutoscaling autoprovisioned */ /** - * Constructs a new NodePool. + * Constructs a new NodePoolAutoscaling. * @memberof google.container.v1 - * @classdesc Represents a NodePool. - * @implements INodePool + * @classdesc Represents a NodePoolAutoscaling. + * @implements INodePoolAutoscaling * @constructor - * @param {google.container.v1.INodePool=} [properties] Properties to set + * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set */ - function NodePool(properties) { - this.instanceGroupUrls = []; + function NodePoolAutoscaling(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13417,195 +19222,114 @@ } /** - * NodePool name. - * @member {string} name - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.name = ""; - - /** - * NodePool config. - * @member {google.container.v1.INodeConfig|null|undefined} config - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.config = null; - - /** - * NodePool initialNodeCount. - * @member {number} initialNodeCount - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.initialNodeCount = 0; - - /** - * NodePool selfLink. - * @member {string} selfLink - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.selfLink = ""; - - /** - * NodePool version. - * @member {string} version - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.version = ""; - - /** - * NodePool instanceGroupUrls. - * @member {Array.} instanceGroupUrls - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.instanceGroupUrls = $util.emptyArray; - - /** - * NodePool status. - * @member {google.container.v1.NodePool.Status} status - * @memberof google.container.v1.NodePool + * NodePoolAutoscaling enabled. + * @member {boolean} enabled + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - NodePool.prototype.status = 0; + NodePoolAutoscaling.prototype.enabled = false; /** - * NodePool statusMessage. - * @member {string} statusMessage - * @memberof google.container.v1.NodePool + * NodePoolAutoscaling minNodeCount. + * @member {number} minNodeCount + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - NodePool.prototype.statusMessage = ""; + NodePoolAutoscaling.prototype.minNodeCount = 0; /** - * NodePool autoscaling. - * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling - * @memberof google.container.v1.NodePool + * NodePoolAutoscaling maxNodeCount. + * @member {number} maxNodeCount + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - NodePool.prototype.autoscaling = null; + NodePoolAutoscaling.prototype.maxNodeCount = 0; /** - * NodePool management. - * @member {google.container.v1.INodeManagement|null|undefined} management - * @memberof google.container.v1.NodePool + * NodePoolAutoscaling autoprovisioned. + * @member {boolean} autoprovisioned + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - NodePool.prototype.management = null; + NodePoolAutoscaling.prototype.autoprovisioned = false; /** - * Creates a new NodePool instance using the specified properties. + * Creates a new NodePoolAutoscaling instance using the specified properties. * @function create - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.INodePool=} [properties] Properties to set - * @returns {google.container.v1.NodePool} NodePool instance + * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling instance */ - NodePool.create = function create(properties) { - return new NodePool(properties); + NodePoolAutoscaling.create = function create(properties) { + return new NodePoolAutoscaling(properties); }; /** - * Encodes the specified NodePool message. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. + * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.INodePool} message NodePool message or plain object to encode + * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePool.encode = function encode(message, writer) { + NodePoolAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.config != null && message.hasOwnProperty("config")) - $root.google.container.v1.NodeConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) - $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.management != null && message.hasOwnProperty("management")) - $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.version != null && message.hasOwnProperty("version")) - writer.uint32(/* id 101, wireType 2 =*/810).string(message.version); - if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) - for (var i = 0; i < message.instanceGroupUrls.length; ++i) - writer.uint32(/* id 102, wireType 2 =*/818).string(message.instanceGroupUrls[i]); - if (message.status != null && message.hasOwnProperty("status")) - writer.uint32(/* id 103, wireType 0 =*/824).int32(message.status); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - writer.uint32(/* id 104, wireType 2 =*/834).string(message.statusMessage); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minNodeCount); + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); + if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.autoprovisioned); return writer; }; /** - * Encodes the specified NodePool message, length delimited. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. + * Encodes the specified NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.INodePool} message NodePool message or plain object to encode + * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePool.encodeDelimited = function encodeDelimited(message, writer) { + NodePoolAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodePool message from the specified reader or buffer. + * Decodes a NodePoolAutoscaling message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodePool} NodePool + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePool.decode = function decode(reader, length) { + NodePoolAutoscaling.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.NodePool(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePoolAutoscaling(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.enabled = reader.bool(); break; case 2: - message.config = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); + message.minNodeCount = reader.int32(); break; case 3: - message.initialNodeCount = reader.int32(); - break; - case 100: - message.selfLink = reader.string(); - break; - case 101: - message.version = reader.string(); - break; - case 102: - if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) - message.instanceGroupUrls = []; - message.instanceGroupUrls.push(reader.string()); - break; - case 103: - message.status = reader.int32(); - break; - case 104: - message.statusMessage = reader.string(); + message.maxNodeCount = reader.int32(); break; case 4: - message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); - break; - case 5: - message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + message.autoprovisioned = reader.bool(); break; default: reader.skipType(tag & 7); @@ -13616,272 +19340,138 @@ }; /** - * Decodes a NodePool message from the specified reader or buffer, length delimited. + * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodePool} NodePool + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePool.decodeDelimited = function decodeDelimited(reader) { + NodePoolAutoscaling.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodePool message. + * Verifies a NodePoolAutoscaling message. * @function verify - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodePool.verify = function verify(message) { + NodePoolAutoscaling.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.config != null && message.hasOwnProperty("config")) { - var error = $root.google.container.v1.NodeConfig.verify(message.config); - if (error) - return "config." + error; - } - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) - if (!$util.isInteger(message.initialNodeCount)) - return "initialNodeCount: integer expected"; - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - if (!$util.isString(message.selfLink)) - return "selfLink: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: 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.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.autoscaling != null && message.hasOwnProperty("autoscaling")) { - var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling); - if (error) - return "autoscaling." + error; - } - if (message.management != null && message.hasOwnProperty("management")) { - var error = $root.google.container.v1.NodeManagement.verify(message.management); - if (error) - return "management." + error; - } - return null; - }; - - /** - * Creates a NodePool message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.container.v1.NodePool - * @static - * @param {Object.} object Plain object - * @returns {google.container.v1.NodePool} NodePool - */ - NodePool.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodePool) - return object; - var message = new $root.google.container.v1.NodePool(); - if (object.name != null) - message.name = String(object.name); - if (object.config != null) { - if (typeof object.config !== "object") - throw TypeError(".google.container.v1.NodePool.config: object expected"); - message.config = $root.google.container.v1.NodeConfig.fromObject(object.config); - } - if (object.initialNodeCount != null) - message.initialNodeCount = object.initialNodeCount | 0; - if (object.selfLink != null) - message.selfLink = String(object.selfLink); - if (object.version != null) - message.version = String(object.version); - if (object.instanceGroupUrls) { - if (!Array.isArray(object.instanceGroupUrls)) - throw TypeError(".google.container.v1.NodePool.instanceGroupUrls: array expected"); - message.instanceGroupUrls = []; - for (var i = 0; i < object.instanceGroupUrls.length; ++i) - message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]); - } - 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 "RUNNING_WITH_ERROR": - case 3: - message.status = 3; - break; - case "RECONCILING": - case 4: - message.status = 4; - break; - case "STOPPING": - case 5: - message.status = 5; - break; - case "ERROR": - case 6: - message.status = 6; - break; - } - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.autoscaling != null) { - if (typeof object.autoscaling !== "object") - throw TypeError(".google.container.v1.NodePool.autoscaling: object expected"); - message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling); - } - if (object.management != null) { - if (typeof object.management !== "object") - throw TypeError(".google.container.v1.NodePool.management: object expected"); - message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); - } + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + if (!$util.isInteger(message.minNodeCount)) + return "minNodeCount: integer expected"; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + if (!$util.isInteger(message.maxNodeCount)) + return "maxNodeCount: integer expected"; + if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) + if (typeof message.autoprovisioned !== "boolean") + return "autoprovisioned: boolean expected"; + return null; + }; + + /** + * Creates a NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePoolAutoscaling + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + */ + NodePoolAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePoolAutoscaling) + return object; + var message = new $root.google.container.v1.NodePoolAutoscaling(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.minNodeCount != null) + message.minNodeCount = object.minNodeCount | 0; + if (object.maxNodeCount != null) + message.maxNodeCount = object.maxNodeCount | 0; + if (object.autoprovisioned != null) + message.autoprovisioned = Boolean(object.autoprovisioned); return message; }; /** - * Creates a plain object from a NodePool message. Also converts values to other types if specified. + * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.NodePool} message NodePool + * @param {google.container.v1.NodePoolAutoscaling} message NodePoolAutoscaling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodePool.toObject = function toObject(message, options) { + NodePoolAutoscaling.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.instanceGroupUrls = []; if (options.defaults) { - object.name = ""; - object.config = null; - object.initialNodeCount = 0; - object.autoscaling = null; - object.management = null; - object.selfLink = ""; - object.version = ""; - object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; - object.statusMessage = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.config != null && message.hasOwnProperty("config")) - object.config = $root.google.container.v1.NodeConfig.toObject(message.config, options); - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) - object.initialNodeCount = message.initialNodeCount; - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) - object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options); - if (message.management != null && message.hasOwnProperty("management")) - object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - object.selfLink = message.selfLink; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.instanceGroupUrls && message.instanceGroupUrls.length) { - object.instanceGroupUrls = []; - for (var j = 0; j < message.instanceGroupUrls.length; ++j) - object.instanceGroupUrls[j] = message.instanceGroupUrls[j]; + object.enabled = false; + object.minNodeCount = 0; + object.maxNodeCount = 0; + object.autoprovisioned = false; } - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.google.container.v1.NodePool.Status[message.status] : message.status; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - object.statusMessage = message.statusMessage; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + object.minNodeCount = message.minNodeCount; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + object.maxNodeCount = message.maxNodeCount; + if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) + object.autoprovisioned = message.autoprovisioned; return object; }; /** - * Converts this NodePool to JSON. + * Converts this NodePoolAutoscaling to JSON. * @function toJSON - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.NodePoolAutoscaling * @instance * @returns {Object.} JSON object */ - NodePool.prototype.toJSON = function toJSON() { + NodePoolAutoscaling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Status enum. - * @name google.container.v1.NodePool.Status - * @enum {string} - * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value - * @property {number} PROVISIONING=1 PROVISIONING value - * @property {number} RUNNING=2 RUNNING value - * @property {number} RUNNING_WITH_ERROR=3 RUNNING_WITH_ERROR value - * @property {number} RECONCILING=4 RECONCILING value - * @property {number} STOPPING=5 STOPPING value - * @property {number} ERROR=6 ERROR value - */ - NodePool.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] = "RUNNING_WITH_ERROR"] = 3; - values[valuesById[4] = "RECONCILING"] = 4; - values[valuesById[5] = "STOPPING"] = 5; - values[valuesById[6] = "ERROR"] = 6; - return values; - })(); - - return NodePool; + return NodePoolAutoscaling; })(); - v1.NodeManagement = (function() { + v1.SetLabelsRequest = (function() { /** - * Properties of a NodeManagement. + * Properties of a SetLabelsRequest. * @memberof google.container.v1 - * @interface INodeManagement - * @property {boolean|null} [autoUpgrade] NodeManagement autoUpgrade - * @property {boolean|null} [autoRepair] NodeManagement autoRepair - * @property {google.container.v1.IAutoUpgradeOptions|null} [upgradeOptions] NodeManagement upgradeOptions + * @interface ISetLabelsRequest + * @property {string|null} [projectId] SetLabelsRequest projectId + * @property {string|null} [zone] SetLabelsRequest zone + * @property {string|null} [clusterId] SetLabelsRequest clusterId + * @property {Object.|null} [resourceLabels] SetLabelsRequest resourceLabels + * @property {string|null} [labelFingerprint] SetLabelsRequest labelFingerprint + * @property {string|null} [name] SetLabelsRequest name */ /** - * Constructs a new NodeManagement. + * Constructs a new SetLabelsRequest. * @memberof google.container.v1 - * @classdesc Represents a NodeManagement. - * @implements INodeManagement + * @classdesc Represents a SetLabelsRequest. + * @implements ISetLabelsRequest * @constructor - * @param {google.container.v1.INodeManagement=} [properties] Properties to set + * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set */ - function NodeManagement(properties) { + function SetLabelsRequest(properties) { + this.resourceLabels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13889,101 +19479,146 @@ } /** - * NodeManagement autoUpgrade. - * @member {boolean} autoUpgrade - * @memberof google.container.v1.NodeManagement + * SetLabelsRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetLabelsRequest * @instance */ - NodeManagement.prototype.autoUpgrade = false; + SetLabelsRequest.prototype.projectId = ""; /** - * NodeManagement autoRepair. - * @member {boolean} autoRepair - * @memberof google.container.v1.NodeManagement + * SetLabelsRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetLabelsRequest * @instance */ - NodeManagement.prototype.autoRepair = false; + SetLabelsRequest.prototype.zone = ""; /** - * NodeManagement upgradeOptions. - * @member {google.container.v1.IAutoUpgradeOptions|null|undefined} upgradeOptions - * @memberof google.container.v1.NodeManagement + * SetLabelsRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetLabelsRequest * @instance */ - NodeManagement.prototype.upgradeOptions = null; + SetLabelsRequest.prototype.clusterId = ""; /** - * Creates a new NodeManagement instance using the specified properties. + * SetLabelsRequest resourceLabels. + * @member {Object.} resourceLabels + * @memberof google.container.v1.SetLabelsRequest + * @instance + */ + SetLabelsRequest.prototype.resourceLabels = $util.emptyObject; + + /** + * SetLabelsRequest labelFingerprint. + * @member {string} labelFingerprint + * @memberof google.container.v1.SetLabelsRequest + * @instance + */ + SetLabelsRequest.prototype.labelFingerprint = ""; + + /** + * SetLabelsRequest name. + * @member {string} name + * @memberof google.container.v1.SetLabelsRequest + * @instance + */ + SetLabelsRequest.prototype.name = ""; + + /** + * Creates a new SetLabelsRequest instance using the specified properties. * @function create - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.INodeManagement=} [properties] Properties to set - * @returns {google.container.v1.NodeManagement} NodeManagement instance + * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest instance */ - NodeManagement.create = function create(properties) { - return new NodeManagement(properties); + SetLabelsRequest.create = function create(properties) { + return new SetLabelsRequest(properties); }; /** - * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. + * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode + * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeManagement.encode = function encode(message, writer) { + SetLabelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.autoUpgrade); - if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autoRepair); - if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) - $root.google.container.v1.AutoUpgradeOptions.encode(message.upgradeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) + for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).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 && message.hasOwnProperty("labelFingerprint")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.labelFingerprint); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. + * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode + * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeManagement.encodeDelimited = function encodeDelimited(message, writer) { + SetLabelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodeManagement message from the specified reader or buffer. + * Decodes a SetLabelsRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetLabelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodeManagement} NodeManagement + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeManagement.decode = function decode(reader, length) { + SetLabelsRequest.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.NodeManagement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLabelsRequest(), key; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.autoUpgrade = reader.bool(); + message.projectId = reader.string(); break; case 2: - message.autoRepair = reader.bool(); + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + reader.skip().pos++; + if (message.resourceLabels === $util.emptyObject) + message.resourceLabels = {}; + key = reader.string(); + reader.pos++; + message.resourceLabels[key] = reader.string(); + break; + case 5: + message.labelFingerprint = reader.string(); break; - case 10: - message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.decode(reader, reader.uint32()); + case 7: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -13994,130 +19629,167 @@ }; /** - * Decodes a NodeManagement message from the specified reader or buffer, length delimited. + * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetLabelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodeManagement} NodeManagement + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeManagement.decodeDelimited = function decodeDelimited(reader) { + SetLabelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodeManagement message. + * Verifies a SetLabelsRequest message. * @function verify - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetLabelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeManagement.verify = function verify(message) { + SetLabelsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) - if (typeof message.autoUpgrade !== "boolean") - return "autoUpgrade: boolean expected"; - if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) - if (typeof message.autoRepair !== "boolean") - return "autoRepair: boolean expected"; - if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) { - var error = $root.google.container.v1.AutoUpgradeOptions.verify(message.upgradeOptions); - if (error) - return "upgradeOptions." + error; + 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.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.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a NodeManagement 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. * @function fromObject - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetLabelsRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodeManagement} NodeManagement + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest */ - NodeManagement.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodeManagement) + SetLabelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLabelsRequest) return object; - var message = new $root.google.container.v1.NodeManagement(); - if (object.autoUpgrade != null) - message.autoUpgrade = Boolean(object.autoUpgrade); - if (object.autoRepair != null) - message.autoRepair = Boolean(object.autoRepair); - if (object.upgradeOptions != null) { - if (typeof object.upgradeOptions !== "object") - throw TypeError(".google.container.v1.NodeManagement.upgradeOptions: object expected"); - message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.fromObject(object.upgradeOptions); + var message = new $root.google.container.v1.SetLabelsRequest(); + 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.resourceLabels) { + if (typeof object.resourceLabels !== "object") + throw TypeError(".google.container.v1.SetLabelsRequest.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.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a NodeManagement message. Also converts values to other types if specified. + * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.NodeManagement} message NodeManagement + * @param {google.container.v1.SetLabelsRequest} message SetLabelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeManagement.toObject = function toObject(message, options) { + SetLabelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.resourceLabels = {}; if (options.defaults) { - object.autoUpgrade = false; - object.autoRepair = false; - object.upgradeOptions = null; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.labelFingerprint = ""; + object.name = ""; } - if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) - object.autoUpgrade = message.autoUpgrade; - if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) - object.autoRepair = message.autoRepair; - if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) - object.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.toObject(message.upgradeOptions, options); + 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; + 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this NodeManagement to JSON. + * Converts this SetLabelsRequest to JSON. * @function toJSON - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetLabelsRequest * @instance * @returns {Object.} JSON object */ - NodeManagement.prototype.toJSON = function toJSON() { + SetLabelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NodeManagement; + return SetLabelsRequest; })(); - v1.AutoUpgradeOptions = (function() { + v1.SetLegacyAbacRequest = (function() { /** - * Properties of an AutoUpgradeOptions. + * Properties of a SetLegacyAbacRequest. * @memberof google.container.v1 - * @interface IAutoUpgradeOptions - * @property {string|null} [autoUpgradeStartTime] AutoUpgradeOptions autoUpgradeStartTime - * @property {string|null} [description] AutoUpgradeOptions description + * @interface ISetLegacyAbacRequest + * @property {string|null} [projectId] SetLegacyAbacRequest projectId + * @property {string|null} [zone] SetLegacyAbacRequest zone + * @property {string|null} [clusterId] SetLegacyAbacRequest clusterId + * @property {boolean|null} [enabled] SetLegacyAbacRequest enabled + * @property {string|null} [name] SetLegacyAbacRequest name */ /** - * Constructs a new AutoUpgradeOptions. + * Constructs a new SetLegacyAbacRequest. * @memberof google.container.v1 - * @classdesc Represents an AutoUpgradeOptions. - * @implements IAutoUpgradeOptions + * @classdesc Represents a SetLegacyAbacRequest. + * @implements ISetLegacyAbacRequest * @constructor - * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set + * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set */ - function AutoUpgradeOptions(properties) { + function SetLegacyAbacRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14125,88 +19797,127 @@ } /** - * AutoUpgradeOptions autoUpgradeStartTime. - * @member {string} autoUpgradeStartTime - * @memberof google.container.v1.AutoUpgradeOptions + * SetLegacyAbacRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - AutoUpgradeOptions.prototype.autoUpgradeStartTime = ""; + SetLegacyAbacRequest.prototype.projectId = ""; /** - * AutoUpgradeOptions description. - * @member {string} description - * @memberof google.container.v1.AutoUpgradeOptions + * SetLegacyAbacRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - AutoUpgradeOptions.prototype.description = ""; + SetLegacyAbacRequest.prototype.zone = ""; /** - * Creates a new AutoUpgradeOptions instance using the specified properties. + * SetLegacyAbacRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetLegacyAbacRequest + * @instance + */ + SetLegacyAbacRequest.prototype.clusterId = ""; + + /** + * SetLegacyAbacRequest enabled. + * @member {boolean} enabled + * @memberof google.container.v1.SetLegacyAbacRequest + * @instance + */ + SetLegacyAbacRequest.prototype.enabled = false; + + /** + * SetLegacyAbacRequest name. + * @member {string} name + * @memberof google.container.v1.SetLegacyAbacRequest + * @instance + */ + SetLegacyAbacRequest.prototype.name = ""; + + /** + * Creates a new SetLegacyAbacRequest instance using the specified properties. * @function create - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions instance + * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest instance */ - AutoUpgradeOptions.create = function create(properties) { - return new AutoUpgradeOptions(properties); + SetLegacyAbacRequest.create = function create(properties) { + return new SetLegacyAbacRequest(properties); }; /** - * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. + * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode + * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoUpgradeOptions.encode = function encode(message, writer) { + SetLegacyAbacRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoUpgradeStartTime); - if (message.description != null && message.hasOwnProperty("description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. + * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode + * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoUpgradeOptions.encodeDelimited = function encodeDelimited(message, writer) { + SetLegacyAbacRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutoUpgradeOptions message from the specified reader or buffer. + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoUpgradeOptions.decode = function decode(reader, length) { + SetLegacyAbacRequest.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.AutoUpgradeOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLegacyAbacRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.autoUpgradeStartTime = reader.string(); + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); break; - case 2: - message.description = reader.string(); + case 4: + message.enabled = reader.bool(); + break; + case 6: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -14217,116 +19928,144 @@ }; /** - * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited. + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoUpgradeOptions.decodeDelimited = function decodeDelimited(reader) { + SetLegacyAbacRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutoUpgradeOptions message. + * Verifies a SetLegacyAbacRequest message. * @function verify - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutoUpgradeOptions.verify = function verify(message) { + SetLegacyAbacRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) - if (!$util.isString(message.autoUpgradeStartTime)) - return "autoUpgradeStartTime: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: 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.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an AutoUpgradeOptions 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. * @function fromObject - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest */ - AutoUpgradeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.AutoUpgradeOptions) + SetLegacyAbacRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLegacyAbacRequest) return object; - var message = new $root.google.container.v1.AutoUpgradeOptions(); - if (object.autoUpgradeStartTime != null) - message.autoUpgradeStartTime = String(object.autoUpgradeStartTime); - if (object.description != null) - message.description = String(object.description); + var message = new $root.google.container.v1.SetLegacyAbacRequest(); + 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.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified. + * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.AutoUpgradeOptions} message AutoUpgradeOptions + * @param {google.container.v1.SetLegacyAbacRequest} message SetLegacyAbacRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutoUpgradeOptions.toObject = function toObject(message, options) { + SetLegacyAbacRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.autoUpgradeStartTime = ""; - object.description = ""; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.enabled = false; + object.name = ""; } - if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) - object.autoUpgradeStartTime = message.autoUpgradeStartTime; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + 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.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this AutoUpgradeOptions to JSON. + * Converts this SetLegacyAbacRequest to JSON. * @function toJSON - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetLegacyAbacRequest * @instance * @returns {Object.} JSON object */ - AutoUpgradeOptions.prototype.toJSON = function toJSON() { + SetLegacyAbacRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AutoUpgradeOptions; + return SetLegacyAbacRequest; })(); - v1.MaintenancePolicy = (function() { + v1.StartIPRotationRequest = (function() { /** - * Properties of a MaintenancePolicy. + * Properties of a StartIPRotationRequest. * @memberof google.container.v1 - * @interface IMaintenancePolicy - * @property {google.container.v1.IMaintenanceWindow|null} [window] MaintenancePolicy window + * @interface IStartIPRotationRequest + * @property {string|null} [projectId] StartIPRotationRequest projectId + * @property {string|null} [zone] StartIPRotationRequest zone + * @property {string|null} [clusterId] StartIPRotationRequest clusterId + * @property {string|null} [name] StartIPRotationRequest name + * @property {boolean|null} [rotateCredentials] StartIPRotationRequest rotateCredentials */ /** - * Constructs a new MaintenancePolicy. + * Constructs a new StartIPRotationRequest. * @memberof google.container.v1 - * @classdesc Represents a MaintenancePolicy. - * @implements IMaintenancePolicy + * @classdesc Represents a StartIPRotationRequest. + * @implements IStartIPRotationRequest * @constructor - * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set + * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set */ - function MaintenancePolicy(properties) { + function StartIPRotationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14334,75 +20073,127 @@ } /** - * MaintenancePolicy window. - * @member {google.container.v1.IMaintenanceWindow|null|undefined} window - * @memberof google.container.v1.MaintenancePolicy + * StartIPRotationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.StartIPRotationRequest * @instance */ - MaintenancePolicy.prototype.window = null; + StartIPRotationRequest.prototype.projectId = ""; /** - * Creates a new MaintenancePolicy instance using the specified properties. + * StartIPRotationRequest zone. + * @member {string} zone + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.zone = ""; + + /** + * StartIPRotationRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.clusterId = ""; + + /** + * StartIPRotationRequest name. + * @member {string} name + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.name = ""; + + /** + * StartIPRotationRequest rotateCredentials. + * @member {boolean} rotateCredentials + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.rotateCredentials = false; + + /** + * Creates a new StartIPRotationRequest instance using the specified properties. * @function create - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy instance + * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest instance */ - MaintenancePolicy.create = function create(properties) { - return new MaintenancePolicy(properties); + StartIPRotationRequest.create = function create(properties) { + return new StartIPRotationRequest(properties); }; /** - * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. + * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode + * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenancePolicy.encode = function encode(message, writer) { + StartIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && message.hasOwnProperty("window")) - $root.google.container.v1.MaintenanceWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateCredentials); return writer; }; /** - * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. + * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode + * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenancePolicy.encodeDelimited = function encodeDelimited(message, writer) { + StartIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaintenancePolicy message from the specified reader or buffer. + * Decodes a StartIPRotationRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenancePolicy.decode = function decode(reader, length) { + StartIPRotationRequest.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.MaintenancePolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.StartIPRotationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.window = $root.google.container.v1.MaintenanceWindow.decode(reader, reader.uint32()); + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 6: + message.name = reader.string(); + break; + case 7: + message.rotateCredentials = reader.bool(); break; default: reader.skipType(tag & 7); @@ -14413,112 +20204,143 @@ }; /** - * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited. + * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenancePolicy.decodeDelimited = function decodeDelimited(reader) { + StartIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaintenancePolicy message. + * Verifies a StartIPRotationRequest message. * @function verify - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaintenancePolicy.verify = function verify(message) { + StartIPRotationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.window != null && message.hasOwnProperty("window")) { - var error = $root.google.container.v1.MaintenanceWindow.verify(message.window); - if (error) - return "window." + error; - } + 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"; + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + if (typeof message.rotateCredentials !== "boolean") + return "rotateCredentials: boolean expected"; return null; }; /** - * Creates a MaintenancePolicy 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. * @function fromObject - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest */ - MaintenancePolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MaintenancePolicy) + StartIPRotationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.StartIPRotationRequest) return object; - var message = new $root.google.container.v1.MaintenancePolicy(); - if (object.window != null) { - if (typeof object.window !== "object") - throw TypeError(".google.container.v1.MaintenancePolicy.window: object expected"); - message.window = $root.google.container.v1.MaintenanceWindow.fromObject(object.window); - } + var message = new $root.google.container.v1.StartIPRotationRequest(); + 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); + if (object.rotateCredentials != null) + message.rotateCredentials = Boolean(object.rotateCredentials); return message; }; /** - * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified. + * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.MaintenancePolicy} message MaintenancePolicy + * @param {google.container.v1.StartIPRotationRequest} message StartIPRotationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaintenancePolicy.toObject = function toObject(message, options) { + StartIPRotationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.window = null; - if (message.window != null && message.hasOwnProperty("window")) - object.window = $root.google.container.v1.MaintenanceWindow.toObject(message.window, options); + if (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.name = ""; + object.rotateCredentials = false; + } + 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; + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + object.rotateCredentials = message.rotateCredentials; return object; }; /** - * Converts this MaintenancePolicy to JSON. + * Converts this StartIPRotationRequest to JSON. * @function toJSON - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.StartIPRotationRequest * @instance * @returns {Object.} JSON object */ - MaintenancePolicy.prototype.toJSON = function toJSON() { + StartIPRotationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaintenancePolicy; + return StartIPRotationRequest; })(); - v1.MaintenanceWindow = (function() { + v1.CompleteIPRotationRequest = (function() { /** - * Properties of a MaintenanceWindow. + * Properties of a CompleteIPRotationRequest. * @memberof google.container.v1 - * @interface IMaintenanceWindow - * @property {google.container.v1.IDailyMaintenanceWindow|null} [dailyMaintenanceWindow] MaintenanceWindow dailyMaintenanceWindow + * @interface ICompleteIPRotationRequest + * @property {string|null} [projectId] CompleteIPRotationRequest projectId + * @property {string|null} [zone] CompleteIPRotationRequest zone + * @property {string|null} [clusterId] CompleteIPRotationRequest clusterId + * @property {string|null} [name] CompleteIPRotationRequest name */ /** - * Constructs a new MaintenanceWindow. + * Constructs a new CompleteIPRotationRequest. * @memberof google.container.v1 - * @classdesc Represents a MaintenanceWindow. - * @implements IMaintenanceWindow + * @classdesc Represents a CompleteIPRotationRequest. + * @implements ICompleteIPRotationRequest * @constructor - * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set + * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set */ - function MaintenanceWindow(properties) { + function CompleteIPRotationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14526,89 +20348,114 @@ } /** - * MaintenanceWindow dailyMaintenanceWindow. - * @member {google.container.v1.IDailyMaintenanceWindow|null|undefined} dailyMaintenanceWindow - * @memberof google.container.v1.MaintenanceWindow + * CompleteIPRotationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.CompleteIPRotationRequest * @instance */ - MaintenanceWindow.prototype.dailyMaintenanceWindow = null; + CompleteIPRotationRequest.prototype.projectId = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * CompleteIPRotationRequest zone. + * @member {string} zone + * @memberof google.container.v1.CompleteIPRotationRequest + * @instance + */ + CompleteIPRotationRequest.prototype.zone = ""; /** - * MaintenanceWindow policy. - * @member {"dailyMaintenanceWindow"|undefined} policy - * @memberof google.container.v1.MaintenanceWindow + * CompleteIPRotationRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.CompleteIPRotationRequest * @instance */ - Object.defineProperty(MaintenanceWindow.prototype, "policy", { - get: $util.oneOfGetter($oneOfFields = ["dailyMaintenanceWindow"]), - set: $util.oneOfSetter($oneOfFields) - }); + CompleteIPRotationRequest.prototype.clusterId = ""; /** - * Creates a new MaintenanceWindow instance using the specified properties. + * CompleteIPRotationRequest name. + * @member {string} name + * @memberof google.container.v1.CompleteIPRotationRequest + * @instance + */ + CompleteIPRotationRequest.prototype.name = ""; + + /** + * Creates a new CompleteIPRotationRequest instance using the specified properties. * @function create - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow instance + * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest instance */ - MaintenanceWindow.create = function create(properties) { - return new MaintenanceWindow(properties); + CompleteIPRotationRequest.create = function create(properties) { + return new CompleteIPRotationRequest(properties); }; /** - * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. + * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenanceWindow.encode = function encode(message, writer) { + CompleteIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) - $root.google.container.v1.DailyMaintenanceWindow.encode(message.dailyMaintenanceWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.projectId != null && message.hasOwnProperty("projectId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); + if (message.zone != null && message.hasOwnProperty("zone")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); + if (message.name != null && message.hasOwnProperty("name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. + * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + CompleteIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer. + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.CompleteIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenanceWindow.decode = function decode(reader, length) { + CompleteIPRotationRequest.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.MaintenanceWindow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CompleteIPRotationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.projectId = reader.string(); + break; case 2: - message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.decode(reader, reader.uint32()); + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 7: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -14619,118 +20466,133 @@ }; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.CompleteIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + CompleteIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaintenanceWindow message. + * Verifies a CompleteIPRotationRequest message. * @function verify - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.CompleteIPRotationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaintenanceWindow.verify = function verify(message) { + CompleteIPRotationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { - properties.policy = 1; - { - var error = $root.google.container.v1.DailyMaintenanceWindow.verify(message.dailyMaintenanceWindow); - if (error) - return "dailyMaintenanceWindow." + error; - } - } + 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 MaintenanceWindow 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. * @function fromObject - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.CompleteIPRotationRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest */ - MaintenanceWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MaintenanceWindow) + CompleteIPRotationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CompleteIPRotationRequest) return object; - var message = new $root.google.container.v1.MaintenanceWindow(); - if (object.dailyMaintenanceWindow != null) { - if (typeof object.dailyMaintenanceWindow !== "object") - throw TypeError(".google.container.v1.MaintenanceWindow.dailyMaintenanceWindow: object expected"); - message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.fromObject(object.dailyMaintenanceWindow); - } + var message = new $root.google.container.v1.CompleteIPRotationRequest(); + 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 MaintenanceWindow message. Also converts values to other types if specified. + * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.MaintenanceWindow} message MaintenanceWindow + * @param {google.container.v1.CompleteIPRotationRequest} message CompleteIPRotationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaintenanceWindow.toObject = function toObject(message, options) { + CompleteIPRotationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { - object.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.toObject(message.dailyMaintenanceWindow, options); - if (options.oneofs) - object.policy = "dailyMaintenanceWindow"; + 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 MaintenanceWindow to JSON. + * Converts this CompleteIPRotationRequest to JSON. * @function toJSON - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.CompleteIPRotationRequest * @instance * @returns {Object.} JSON object */ - MaintenanceWindow.prototype.toJSON = function toJSON() { + CompleteIPRotationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaintenanceWindow; + return CompleteIPRotationRequest; })(); - v1.DailyMaintenanceWindow = (function() { + v1.AcceleratorConfig = (function() { /** - * Properties of a DailyMaintenanceWindow. + * Properties of an AcceleratorConfig. * @memberof google.container.v1 - * @interface IDailyMaintenanceWindow - * @property {string|null} [startTime] DailyMaintenanceWindow startTime - * @property {string|null} [duration] DailyMaintenanceWindow duration + * @interface IAcceleratorConfig + * @property {number|Long|null} [acceleratorCount] AcceleratorConfig acceleratorCount + * @property {string|null} [acceleratorType] AcceleratorConfig acceleratorType */ /** - * Constructs a new DailyMaintenanceWindow. + * Constructs a new AcceleratorConfig. * @memberof google.container.v1 - * @classdesc Represents a DailyMaintenanceWindow. - * @implements IDailyMaintenanceWindow + * @classdesc Represents an AcceleratorConfig. + * @implements IAcceleratorConfig * @constructor - * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set + * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set */ - function DailyMaintenanceWindow(properties) { + function AcceleratorConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14738,88 +20600,88 @@ } /** - * DailyMaintenanceWindow startTime. - * @member {string} startTime - * @memberof google.container.v1.DailyMaintenanceWindow + * AcceleratorConfig acceleratorCount. + * @member {number|Long} acceleratorCount + * @memberof google.container.v1.AcceleratorConfig * @instance */ - DailyMaintenanceWindow.prototype.startTime = ""; + AcceleratorConfig.prototype.acceleratorCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * DailyMaintenanceWindow duration. - * @member {string} duration - * @memberof google.container.v1.DailyMaintenanceWindow + * AcceleratorConfig acceleratorType. + * @member {string} acceleratorType + * @memberof google.container.v1.AcceleratorConfig * @instance */ - DailyMaintenanceWindow.prototype.duration = ""; + AcceleratorConfig.prototype.acceleratorType = ""; /** - * Creates a new DailyMaintenanceWindow instance using the specified properties. + * Creates a new AcceleratorConfig instance using the specified properties. * @function create - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow instance + * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig instance */ - DailyMaintenanceWindow.create = function create(properties) { - return new DailyMaintenanceWindow(properties); + AcceleratorConfig.create = function create(properties) { + return new AcceleratorConfig(properties); }; /** - * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. + * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode + * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DailyMaintenanceWindow.encode = function encode(message, writer) { + AcceleratorConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && message.hasOwnProperty("startTime")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.startTime); - if (message.duration != null && message.hasOwnProperty("duration")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.duration); + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); return writer; }; /** - * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. + * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode + * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DailyMaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + AcceleratorConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DailyMaintenanceWindow message from the specified reader or buffer. + * Decodes an AcceleratorConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.AcceleratorConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DailyMaintenanceWindow.decode = function decode(reader, length) { + AcceleratorConfig.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.DailyMaintenanceWindow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AcceleratorConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.startTime = reader.string(); + case 1: + message.acceleratorCount = reader.int64(); break; - case 3: - message.duration = reader.string(); + case 2: + message.acceleratorType = reader.string(); break; default: reader.skipType(tag & 7); @@ -14830,121 +20692,134 @@ }; /** - * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.AcceleratorConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DailyMaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + AcceleratorConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DailyMaintenanceWindow message. + * Verifies an AcceleratorConfig message. * @function verify - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.AcceleratorConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DailyMaintenanceWindow.verify = function verify(message) { + AcceleratorConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) - if (!$util.isString(message.startTime)) - return "startTime: string expected"; - if (message.duration != null && message.hasOwnProperty("duration")) - if (!$util.isString(message.duration)) - return "duration: string expected"; + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + if (!$util.isInteger(message.acceleratorCount) && !(message.acceleratorCount && $util.isInteger(message.acceleratorCount.low) && $util.isInteger(message.acceleratorCount.high))) + return "acceleratorCount: integer|Long expected"; + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + if (!$util.isString(message.acceleratorType)) + return "acceleratorType: string expected"; return null; }; /** - * Creates a DailyMaintenanceWindow 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. * @function fromObject - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.AcceleratorConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig */ - DailyMaintenanceWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.DailyMaintenanceWindow) + AcceleratorConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AcceleratorConfig) return object; - var message = new $root.google.container.v1.DailyMaintenanceWindow(); - if (object.startTime != null) - message.startTime = String(object.startTime); - if (object.duration != null) - message.duration = String(object.duration); + var message = new $root.google.container.v1.AcceleratorConfig(); + if (object.acceleratorCount != null) + if ($util.Long) + (message.acceleratorCount = $util.Long.fromValue(object.acceleratorCount)).unsigned = false; + else if (typeof object.acceleratorCount === "string") + message.acceleratorCount = parseInt(object.acceleratorCount, 10); + else if (typeof object.acceleratorCount === "number") + message.acceleratorCount = object.acceleratorCount; + else if (typeof object.acceleratorCount === "object") + message.acceleratorCount = new $util.LongBits(object.acceleratorCount.low >>> 0, object.acceleratorCount.high >>> 0).toNumber(); + if (object.acceleratorType != null) + message.acceleratorType = String(object.acceleratorType); return message; }; /** - * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified. + * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.DailyMaintenanceWindow} message DailyMaintenanceWindow + * @param {google.container.v1.AcceleratorConfig} message AcceleratorConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DailyMaintenanceWindow.toObject = function toObject(message, options) { + AcceleratorConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.startTime = ""; - object.duration = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.acceleratorCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.acceleratorCount = options.longs === String ? "0" : 0; + object.acceleratorType = ""; } - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = message.startTime; - if (message.duration != null && message.hasOwnProperty("duration")) - object.duration = message.duration; + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + if (typeof message.acceleratorCount === "number") + object.acceleratorCount = options.longs === String ? String(message.acceleratorCount) : message.acceleratorCount; + else + object.acceleratorCount = options.longs === String ? $util.Long.prototype.toString.call(message.acceleratorCount) : options.longs === Number ? new $util.LongBits(message.acceleratorCount.low >>> 0, message.acceleratorCount.high >>> 0).toNumber() : message.acceleratorCount; + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + object.acceleratorType = message.acceleratorType; return object; }; /** - * Converts this DailyMaintenanceWindow to JSON. + * Converts this AcceleratorConfig to JSON. * @function toJSON - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.AcceleratorConfig * @instance * @returns {Object.} JSON object */ - DailyMaintenanceWindow.prototype.toJSON = function toJSON() { + AcceleratorConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DailyMaintenanceWindow; + return AcceleratorConfig; })(); - v1.SetNodePoolManagementRequest = (function() { + v1.SetNetworkPolicyRequest = (function() { /** - * Properties of a SetNodePoolManagementRequest. + * Properties of a SetNetworkPolicyRequest. * @memberof google.container.v1 - * @interface ISetNodePoolManagementRequest - * @property {string|null} [projectId] SetNodePoolManagementRequest projectId - * @property {string|null} [zone] SetNodePoolManagementRequest zone - * @property {string|null} [clusterId] SetNodePoolManagementRequest clusterId - * @property {string|null} [nodePoolId] SetNodePoolManagementRequest nodePoolId - * @property {google.container.v1.INodeManagement|null} [management] SetNodePoolManagementRequest management - * @property {string|null} [name] SetNodePoolManagementRequest name + * @interface ISetNetworkPolicyRequest + * @property {string|null} [projectId] SetNetworkPolicyRequest projectId + * @property {string|null} [zone] SetNetworkPolicyRequest zone + * @property {string|null} [clusterId] SetNetworkPolicyRequest clusterId + * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] SetNetworkPolicyRequest networkPolicy + * @property {string|null} [name] SetNetworkPolicyRequest name */ /** - * Constructs a new SetNodePoolManagementRequest. + * Constructs a new SetNetworkPolicyRequest. * @memberof google.container.v1 - * @classdesc Represents a SetNodePoolManagementRequest. - * @implements ISetNodePoolManagementRequest + * @classdesc Represents a SetNetworkPolicyRequest. + * @implements ISetNetworkPolicyRequest * @constructor - * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set + * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set */ - function SetNodePoolManagementRequest(properties) { + function SetNetworkPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14952,75 +20827,67 @@ } /** - * SetNodePoolManagementRequest projectId. + * SetNetworkPolicyRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - SetNodePoolManagementRequest.prototype.projectId = ""; + SetNetworkPolicyRequest.prototype.projectId = ""; /** - * SetNodePoolManagementRequest zone. + * SetNetworkPolicyRequest zone. * @member {string} zone - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - SetNodePoolManagementRequest.prototype.zone = ""; + SetNetworkPolicyRequest.prototype.zone = ""; /** - * SetNodePoolManagementRequest clusterId. + * SetNetworkPolicyRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.SetNodePoolManagementRequest - * @instance - */ - SetNodePoolManagementRequest.prototype.clusterId = ""; - - /** - * SetNodePoolManagementRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - SetNodePoolManagementRequest.prototype.nodePoolId = ""; + SetNetworkPolicyRequest.prototype.clusterId = ""; /** - * SetNodePoolManagementRequest management. - * @member {google.container.v1.INodeManagement|null|undefined} management - * @memberof google.container.v1.SetNodePoolManagementRequest + * SetNetworkPolicyRequest networkPolicy. + * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - SetNodePoolManagementRequest.prototype.management = null; + SetNetworkPolicyRequest.prototype.networkPolicy = null; /** - * SetNodePoolManagementRequest name. + * SetNetworkPolicyRequest name. * @member {string} name - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - SetNodePoolManagementRequest.prototype.name = ""; + SetNetworkPolicyRequest.prototype.name = ""; /** - * Creates a new SetNodePoolManagementRequest instance using the specified properties. + * Creates a new SetNetworkPolicyRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest instance + * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest instance */ - SetNodePoolManagementRequest.create = function create(properties) { - return new SetNodePoolManagementRequest(properties); + SetNetworkPolicyRequest.create = function create(properties) { + return new SetNetworkPolicyRequest(properties); }; /** - * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. + * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode + * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolManagementRequest.encode = function encode(message, writer) { + SetNetworkPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -15029,43 +20896,41 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.management != null && message.hasOwnProperty("management")) - $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. + * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode + * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolManagementRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer. + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolManagementRequest.decode = function decode(reader, length) { + SetNetworkPolicyRequest.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.SetNodePoolManagementRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNetworkPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -15079,12 +20944,9 @@ message.clusterId = reader.string(); break; case 4: - message.nodePoolId = reader.string(); - break; - case 5: - message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + message.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); break; - case 7: + case 6: message.name = reader.string(); break; default: @@ -15096,30 +20958,30 @@ }; /** - * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited. + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolManagementRequest.decodeDelimited = function decodeDelimited(reader) { + SetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNodePoolManagementRequest message. + * Verifies a SetNetworkPolicyRequest message. * @function verify - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetNodePoolManagementRequest.verify = function verify(message) { + SetNetworkPolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -15131,13 +20993,10 @@ 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.management != null && message.hasOwnProperty("management")) { - var error = $root.google.container.v1.NodeManagement.verify(message.management); + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { + var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy); if (error) - return "management." + error; + return "networkPolicy." + error; } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) @@ -15146,29 +21005,27 @@ }; /** - * Creates a SetNodePoolManagementRequest 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. * @function fromObject - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest */ - SetNodePoolManagementRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNodePoolManagementRequest) + SetNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNetworkPolicyRequest) return object; - var message = new $root.google.container.v1.SetNodePoolManagementRequest(); + var message = new $root.google.container.v1.SetNetworkPolicyRequest(); 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.management != null) { - if (typeof object.management !== "object") - throw TypeError(".google.container.v1.SetNodePoolManagementRequest.management: object expected"); - message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); + if (object.networkPolicy != null) { + if (typeof object.networkPolicy !== "object") + throw TypeError(".google.container.v1.SetNetworkPolicyRequest.networkPolicy: object expected"); + message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy); } if (object.name != null) message.name = String(object.name); @@ -15176,15 +21033,15 @@ }; /** - * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.SetNodePoolManagementRequest} message SetNodePoolManagementRequest + * @param {google.container.v1.SetNetworkPolicyRequest} message SetNetworkPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNodePoolManagementRequest.toObject = function toObject(message, options) { + SetNetworkPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -15192,8 +21049,7 @@ object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.nodePoolId = ""; - object.management = null; + object.networkPolicy = null; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -15202,52 +21058,49 @@ 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.management != null && message.hasOwnProperty("management")) - object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this SetNodePoolManagementRequest to JSON. + * Converts this SetNetworkPolicyRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance * @returns {Object.} JSON object */ - SetNodePoolManagementRequest.prototype.toJSON = function toJSON() { + SetNetworkPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNodePoolManagementRequest; + return SetNetworkPolicyRequest; })(); - v1.SetNodePoolSizeRequest = (function() { + v1.SetMaintenancePolicyRequest = (function() { /** - * Properties of a SetNodePoolSizeRequest. + * Properties of a SetMaintenancePolicyRequest. * @memberof google.container.v1 - * @interface ISetNodePoolSizeRequest - * @property {string|null} [projectId] SetNodePoolSizeRequest projectId - * @property {string|null} [zone] SetNodePoolSizeRequest zone - * @property {string|null} [clusterId] SetNodePoolSizeRequest clusterId - * @property {string|null} [nodePoolId] SetNodePoolSizeRequest nodePoolId - * @property {number|null} [nodeCount] SetNodePoolSizeRequest nodeCount - * @property {string|null} [name] SetNodePoolSizeRequest name + * @interface ISetMaintenancePolicyRequest + * @property {string|null} [projectId] SetMaintenancePolicyRequest projectId + * @property {string|null} [zone] SetMaintenancePolicyRequest zone + * @property {string|null} [clusterId] SetMaintenancePolicyRequest clusterId + * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] SetMaintenancePolicyRequest maintenancePolicy + * @property {string|null} [name] SetMaintenancePolicyRequest name */ /** - * Constructs a new SetNodePoolSizeRequest. + * Constructs a new SetMaintenancePolicyRequest. * @memberof google.container.v1 - * @classdesc Represents a SetNodePoolSizeRequest. - * @implements ISetNodePoolSizeRequest + * @classdesc Represents a SetMaintenancePolicyRequest. + * @implements ISetMaintenancePolicyRequest * @constructor - * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set */ - function SetNodePoolSizeRequest(properties) { + function SetMaintenancePolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15255,75 +21108,67 @@ } /** - * SetNodePoolSizeRequest projectId. + * SetMaintenancePolicyRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetNodePoolSizeRequest.prototype.projectId = ""; + SetMaintenancePolicyRequest.prototype.projectId = ""; /** - * SetNodePoolSizeRequest zone. + * SetMaintenancePolicyRequest zone. * @member {string} zone - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetNodePoolSizeRequest.prototype.zone = ""; + SetMaintenancePolicyRequest.prototype.zone = ""; /** - * SetNodePoolSizeRequest clusterId. + * SetMaintenancePolicyRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.SetNodePoolSizeRequest - * @instance - */ - SetNodePoolSizeRequest.prototype.clusterId = ""; - - /** - * SetNodePoolSizeRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetNodePoolSizeRequest.prototype.nodePoolId = ""; + SetMaintenancePolicyRequest.prototype.clusterId = ""; /** - * SetNodePoolSizeRequest nodeCount. - * @member {number} nodeCount - * @memberof google.container.v1.SetNodePoolSizeRequest + * SetMaintenancePolicyRequest maintenancePolicy. + * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetNodePoolSizeRequest.prototype.nodeCount = 0; + SetMaintenancePolicyRequest.prototype.maintenancePolicy = null; /** - * SetNodePoolSizeRequest name. + * SetMaintenancePolicyRequest name. * @member {string} name - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetNodePoolSizeRequest.prototype.name = ""; + SetMaintenancePolicyRequest.prototype.name = ""; /** - * Creates a new SetNodePoolSizeRequest instance using the specified properties. + * Creates a new SetMaintenancePolicyRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest instance + * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest instance */ - SetNodePoolSizeRequest.create = function create(properties) { - return new SetNodePoolSizeRequest(properties); + SetMaintenancePolicyRequest.create = function create(properties) { + return new SetMaintenancePolicyRequest(properties); }; /** - * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. + * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode + * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolSizeRequest.encode = function encode(message, writer) { + SetMaintenancePolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -15332,43 +21177,41 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nodeCount); + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; /** - * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. + * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode + * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolSizeRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetMaintenancePolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer. + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolSizeRequest.decode = function decode(reader, length) { + SetMaintenancePolicyRequest.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.SetNodePoolSizeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetMaintenancePolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -15382,12 +21225,9 @@ message.clusterId = reader.string(); break; case 4: - message.nodePoolId = reader.string(); + message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); break; case 5: - message.nodeCount = reader.int32(); - break; - case 7: message.name = reader.string(); break; default: @@ -15399,30 +21239,30 @@ }; /** - * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited. + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolSizeRequest.decodeDelimited = function decodeDelimited(reader) { + SetMaintenancePolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNodePoolSizeRequest message. + * Verifies a SetMaintenancePolicyRequest message. * @function verify - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetNodePoolSizeRequest.verify = function verify(message) { + SetMaintenancePolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -15434,12 +21274,11 @@ 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.nodeCount != null && message.hasOwnProperty("nodeCount")) - if (!$util.isInteger(message.nodeCount)) - return "nodeCount: integer expected"; + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) { + var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy); + if (error) + return "maintenancePolicy." + error; + } if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -15447,42 +21286,43 @@ }; /** - * Creates a SetNodePoolSizeRequest 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. * @function fromObject - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest */ - SetNodePoolSizeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNodePoolSizeRequest) + SetMaintenancePolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetMaintenancePolicyRequest) return object; - var message = new $root.google.container.v1.SetNodePoolSizeRequest(); + var message = new $root.google.container.v1.SetMaintenancePolicyRequest(); 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.nodeCount != null) - message.nodeCount = object.nodeCount | 0; + if (object.maintenancePolicy != null) { + if (typeof object.maintenancePolicy !== "object") + throw TypeError(".google.container.v1.SetMaintenancePolicyRequest.maintenancePolicy: object expected"); + message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy); + } if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.SetNodePoolSizeRequest} message SetNodePoolSizeRequest + * @param {google.container.v1.SetMaintenancePolicyRequest} message SetMaintenancePolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNodePoolSizeRequest.toObject = function toObject(message, options) { + SetMaintenancePolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -15490,8 +21330,7 @@ object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.nodePoolId = ""; - object.nodeCount = 0; + object.maintenancePolicy = null; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -15500,51 +21339,46 @@ 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.nodeCount != null && message.hasOwnProperty("nodeCount")) - object.nodeCount = message.nodeCount; + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this SetNodePoolSizeRequest to JSON. + * Converts this SetMaintenancePolicyRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance * @returns {Object.} JSON object */ - SetNodePoolSizeRequest.prototype.toJSON = function toJSON() { + SetMaintenancePolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNodePoolSizeRequest; + return SetMaintenancePolicyRequest; })(); - v1.RollbackNodePoolUpgradeRequest = (function() { + v1.StatusCondition = (function() { /** - * Properties of a RollbackNodePoolUpgradeRequest. + * Properties of a StatusCondition. * @memberof google.container.v1 - * @interface IRollbackNodePoolUpgradeRequest - * @property {string|null} [projectId] RollbackNodePoolUpgradeRequest projectId - * @property {string|null} [zone] RollbackNodePoolUpgradeRequest zone - * @property {string|null} [clusterId] RollbackNodePoolUpgradeRequest clusterId - * @property {string|null} [nodePoolId] RollbackNodePoolUpgradeRequest nodePoolId - * @property {string|null} [name] RollbackNodePoolUpgradeRequest name + * @interface IStatusCondition + * @property {google.container.v1.StatusCondition.Code|null} [code] StatusCondition code + * @property {string|null} [message] StatusCondition message */ /** - * Constructs a new RollbackNodePoolUpgradeRequest. + * Constructs a new StatusCondition. * @memberof google.container.v1 - * @classdesc Represents a RollbackNodePoolUpgradeRequest. - * @implements IRollbackNodePoolUpgradeRequest + * @classdesc Represents a StatusCondition. + * @implements IStatusCondition * @constructor - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set + * @param {google.container.v1.IStatusCondition=} [properties] Properties to set */ - function RollbackNodePoolUpgradeRequest(properties) { + function StatusCondition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15552,127 +21386,88 @@ } /** - * RollbackNodePoolUpgradeRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest - * @instance - */ - RollbackNodePoolUpgradeRequest.prototype.projectId = ""; - - /** - * RollbackNodePoolUpgradeRequest zone. - * @member {string} zone - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest - * @instance - */ - RollbackNodePoolUpgradeRequest.prototype.zone = ""; - - /** - * RollbackNodePoolUpgradeRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest - * @instance - */ - RollbackNodePoolUpgradeRequest.prototype.clusterId = ""; - - /** - * RollbackNodePoolUpgradeRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * StatusCondition code. + * @member {google.container.v1.StatusCondition.Code} code + * @memberof google.container.v1.StatusCondition * @instance */ - RollbackNodePoolUpgradeRequest.prototype.nodePoolId = ""; + StatusCondition.prototype.code = 0; /** - * RollbackNodePoolUpgradeRequest name. - * @member {string} name - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * StatusCondition message. + * @member {string} message + * @memberof google.container.v1.StatusCondition * @instance */ - RollbackNodePoolUpgradeRequest.prototype.name = ""; + StatusCondition.prototype.message = ""; /** - * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. + * Creates a new StatusCondition instance using the specified properties. * @function create - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest instance + * @param {google.container.v1.IStatusCondition=} [properties] Properties to set + * @returns {google.container.v1.StatusCondition} StatusCondition instance */ - RollbackNodePoolUpgradeRequest.create = function create(properties) { - return new RollbackNodePoolUpgradeRequest(properties); + StatusCondition.create = function create(properties) { + return new StatusCondition(properties); }; /** - * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. + * Encodes the specified StatusCondition message. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. * @function encode - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode + * @param {google.container.v1.IStatusCondition} message StatusCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackNodePoolUpgradeRequest.encode = function encode(message, writer) { + StatusCondition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.code != null && message.hasOwnProperty("code")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); + if (message.message != null && message.hasOwnProperty("message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. + * Encodes the specified StatusCondition message, length delimited. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode + * @param {google.container.v1.IStatusCondition} message StatusCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackNodePoolUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { + StatusCondition.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer. + * Decodes a StatusCondition message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.StatusCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @returns {google.container.v1.StatusCondition} StatusCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackNodePoolUpgradeRequest.decode = function decode(reader, length) { + StatusCondition.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.RollbackNodePoolUpgradeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.StatusCondition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.code = reader.int32(); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 4: - message.nodePoolId = reader.string(); - break; - case 6: - message.name = reader.string(); + message.message = reader.string(); break; default: reader.skipType(tag & 7); @@ -15683,141 +21478,173 @@ }; /** - * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. + * Decodes a StatusCondition message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.StatusCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @returns {google.container.v1.StatusCondition} StatusCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackNodePoolUpgradeRequest.decodeDelimited = function decodeDelimited(reader) { + StatusCondition.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackNodePoolUpgradeRequest message. + * Verifies a StatusCondition message. * @function verify - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.StatusCondition * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackNodePoolUpgradeRequest.verify = function verify(message) { + StatusCondition.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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.code != null && message.hasOwnProperty("code")) + switch (message.code) { + default: + return "code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 7: + break; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return null; }; /** - * Creates a RollbackNodePoolUpgradeRequest 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. * @function fromObject - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.StatusCondition * @static * @param {Object.} object Plain object - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @returns {google.container.v1.StatusCondition} StatusCondition */ - RollbackNodePoolUpgradeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.RollbackNodePoolUpgradeRequest) + StatusCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.StatusCondition) return object; - var message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); - 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.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.StatusCondition(); + switch (object.code) { + case "UNKNOWN": + case 0: + message.code = 0; + break; + case "GCE_STOCKOUT": + case 1: + message.code = 1; + break; + case "GKE_SERVICE_ACCOUNT_DELETED": + case 2: + message.code = 2; + break; + case "GCE_QUOTA_EXCEEDED": + case 3: + message.code = 3; + break; + case "SET_BY_OPERATOR": + case 4: + message.code = 4; + break; + case "CLOUD_KMS_KEY_ERROR": + case 7: + message.code = 7; + break; + } + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified. + * Creates a plain object from a StatusCondition message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.RollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest + * @param {google.container.v1.StatusCondition} message StatusCondition * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackNodePoolUpgradeRequest.toObject = function toObject(message, options) { + StatusCondition.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePoolId = ""; - object.name = ""; + object.code = options.enums === String ? "UNKNOWN" : 0; + object.message = ""; } - 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.code != null && message.hasOwnProperty("code")) + object.code = options.enums === String ? $root.google.container.v1.StatusCondition.Code[message.code] : message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this RollbackNodePoolUpgradeRequest to JSON. + * Converts this StatusCondition to JSON. * @function toJSON - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.StatusCondition * @instance * @returns {Object.} JSON object */ - RollbackNodePoolUpgradeRequest.prototype.toJSON = function toJSON() { + StatusCondition.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RollbackNodePoolUpgradeRequest; + /** + * Code enum. + * @name google.container.v1.StatusCondition.Code + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} GCE_STOCKOUT=1 GCE_STOCKOUT value + * @property {number} GKE_SERVICE_ACCOUNT_DELETED=2 GKE_SERVICE_ACCOUNT_DELETED value + * @property {number} GCE_QUOTA_EXCEEDED=3 GCE_QUOTA_EXCEEDED value + * @property {number} SET_BY_OPERATOR=4 SET_BY_OPERATOR value + * @property {number} CLOUD_KMS_KEY_ERROR=7 CLOUD_KMS_KEY_ERROR value + */ + StatusCondition.Code = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "GCE_STOCKOUT"] = 1; + values[valuesById[2] = "GKE_SERVICE_ACCOUNT_DELETED"] = 2; + values[valuesById[3] = "GCE_QUOTA_EXCEEDED"] = 3; + values[valuesById[4] = "SET_BY_OPERATOR"] = 4; + values[valuesById[7] = "CLOUD_KMS_KEY_ERROR"] = 7; + return values; + })(); + + return StatusCondition; })(); - v1.ListNodePoolsResponse = (function() { + v1.NetworkConfig = (function() { /** - * Properties of a ListNodePoolsResponse. + * Properties of a NetworkConfig. * @memberof google.container.v1 - * @interface IListNodePoolsResponse - * @property {Array.|null} [nodePools] ListNodePoolsResponse nodePools + * @interface INetworkConfig + * @property {string|null} [network] NetworkConfig network + * @property {string|null} [subnetwork] NetworkConfig subnetwork + * @property {boolean|null} [enableIntraNodeVisibility] NetworkConfig enableIntraNodeVisibility */ /** - * Constructs a new ListNodePoolsResponse. + * Constructs a new NetworkConfig. * @memberof google.container.v1 - * @classdesc Represents a ListNodePoolsResponse. - * @implements IListNodePoolsResponse + * @classdesc Represents a NetworkConfig. + * @implements INetworkConfig * @constructor - * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set + * @param {google.container.v1.INetworkConfig=} [properties] Properties to set */ - function ListNodePoolsResponse(properties) { - this.nodePools = []; + function NetworkConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15825,78 +21652,101 @@ } /** - * ListNodePoolsResponse nodePools. - * @member {Array.} nodePools - * @memberof google.container.v1.ListNodePoolsResponse + * NetworkConfig network. + * @member {string} network + * @memberof google.container.v1.NetworkConfig * @instance */ - ListNodePoolsResponse.prototype.nodePools = $util.emptyArray; + NetworkConfig.prototype.network = ""; /** - * Creates a new ListNodePoolsResponse instance using the specified properties. + * NetworkConfig subnetwork. + * @member {string} subnetwork + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.subnetwork = ""; + + /** + * NetworkConfig enableIntraNodeVisibility. + * @member {boolean} enableIntraNodeVisibility + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.enableIntraNodeVisibility = false; + + /** + * Creates a new NetworkConfig instance using the specified properties. * @function create - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse instance + * @param {google.container.v1.INetworkConfig=} [properties] Properties to set + * @returns {google.container.v1.NetworkConfig} NetworkConfig instance */ - ListNodePoolsResponse.create = function create(properties) { - return new ListNodePoolsResponse(properties); + NetworkConfig.create = function create(properties) { + return new NetworkConfig(properties); }; /** - * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. + * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode + * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsResponse.encode = function encode(message, writer) { + NetworkConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - 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 1, wireType 2 =*/10).fork()).ldelim(); + if (message.network != null && message.hasOwnProperty("network")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); + if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableIntraNodeVisibility); return writer; }; /** - * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. + * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode + * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { + NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNodePoolsResponse message from the specified reader or buffer. + * Decodes a NetworkConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.NetworkConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @returns {google.container.v1.NetworkConfig} NetworkConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsResponse.decode = function decode(reader, length) { + NetworkConfig.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.ListNodePoolsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NetworkConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.nodePools && message.nodePools.length)) - message.nodePools = []; - message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); + message.network = reader.string(); + break; + case 2: + message.subnetwork = reader.string(); + break; + case 5: + message.enableIntraNodeVisibility = reader.bool(); break; default: reader.skipType(tag & 7); @@ -15907,126 +21757,124 @@ }; /** - * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited. + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.NetworkConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @returns {google.container.v1.NetworkConfig} NetworkConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsResponse.decodeDelimited = function decodeDelimited(reader) { + NetworkConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNodePoolsResponse message. + * Verifies a NetworkConfig message. * @function verify - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.NetworkConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNodePoolsResponse.verify = function verify(message) { + NetworkConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (!$util.isString(message.subnetwork)) + return "subnetwork: string expected"; + if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) + if (typeof message.enableIntraNodeVisibility !== "boolean") + return "enableIntraNodeVisibility: boolean expected"; return null; }; /** - * Creates a ListNodePoolsResponse 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. * @function fromObject - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.NetworkConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @returns {google.container.v1.NetworkConfig} NetworkConfig */ - ListNodePoolsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListNodePoolsResponse) + NetworkConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NetworkConfig) return object; - var message = new $root.google.container.v1.ListNodePoolsResponse(); - if (object.nodePools) { - if (!Array.isArray(object.nodePools)) - throw TypeError(".google.container.v1.ListNodePoolsResponse.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.ListNodePoolsResponse.nodePools: object expected"); - message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]); - } - } + var message = new $root.google.container.v1.NetworkConfig(); + if (object.network != null) + message.network = String(object.network); + if (object.subnetwork != null) + message.subnetwork = String(object.subnetwork); + if (object.enableIntraNodeVisibility != null) + message.enableIntraNodeVisibility = Boolean(object.enableIntraNodeVisibility); return message; }; /** - * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified. + * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.ListNodePoolsResponse} message ListNodePoolsResponse + * @param {google.container.v1.NetworkConfig} message NetworkConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNodePoolsResponse.toObject = function toObject(message, options) { + NetworkConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.nodePools = []; - 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 (options.defaults) { + object.network = ""; + object.subnetwork = ""; + object.enableIntraNodeVisibility = false; } + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + object.subnetwork = message.subnetwork; + if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) + object.enableIntraNodeVisibility = message.enableIntraNodeVisibility; return object; }; /** - * Converts this ListNodePoolsResponse to JSON. + * Converts this NetworkConfig to JSON. * @function toJSON - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.NetworkConfig * @instance * @returns {Object.} JSON object */ - ListNodePoolsResponse.prototype.toJSON = function toJSON() { + NetworkConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListNodePoolsResponse; + return NetworkConfig; })(); - v1.NodePoolAutoscaling = (function() { + v1.IntraNodeVisibilityConfig = (function() { /** - * Properties of a NodePoolAutoscaling. + * Properties of an IntraNodeVisibilityConfig. * @memberof google.container.v1 - * @interface INodePoolAutoscaling - * @property {boolean|null} [enabled] NodePoolAutoscaling enabled - * @property {number|null} [minNodeCount] NodePoolAutoscaling minNodeCount - * @property {number|null} [maxNodeCount] NodePoolAutoscaling maxNodeCount + * @interface IIntraNodeVisibilityConfig + * @property {boolean|null} [enabled] IntraNodeVisibilityConfig enabled */ /** - * Constructs a new NodePoolAutoscaling. + * Constructs a new IntraNodeVisibilityConfig. * @memberof google.container.v1 - * @classdesc Represents a NodePoolAutoscaling. - * @implements INodePoolAutoscaling + * @classdesc Represents an IntraNodeVisibilityConfig. + * @implements IIntraNodeVisibilityConfig * @constructor - * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set + * @param {google.container.v1.IIntraNodeVisibilityConfig=} [properties] Properties to set */ - function NodePoolAutoscaling(properties) { + function IntraNodeVisibilityConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16034,102 +21882,76 @@ } /** - * NodePoolAutoscaling enabled. + * IntraNodeVisibilityConfig enabled. * @member {boolean} enabled - * @memberof google.container.v1.NodePoolAutoscaling - * @instance - */ - NodePoolAutoscaling.prototype.enabled = false; - - /** - * NodePoolAutoscaling minNodeCount. - * @member {number} minNodeCount - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.IntraNodeVisibilityConfig * @instance */ - NodePoolAutoscaling.prototype.minNodeCount = 0; - - /** - * NodePoolAutoscaling maxNodeCount. - * @member {number} maxNodeCount - * @memberof google.container.v1.NodePoolAutoscaling - * @instance - */ - NodePoolAutoscaling.prototype.maxNodeCount = 0; + IntraNodeVisibilityConfig.prototype.enabled = false; /** - * Creates a new NodePoolAutoscaling instance using the specified properties. + * Creates a new IntraNodeVisibilityConfig instance using the specified properties. * @function create - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.IntraNodeVisibilityConfig * @static - * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling instance + * @param {google.container.v1.IIntraNodeVisibilityConfig=} [properties] Properties to set + * @returns {google.container.v1.IntraNodeVisibilityConfig} IntraNodeVisibilityConfig instance */ - NodePoolAutoscaling.create = function create(properties) { - return new NodePoolAutoscaling(properties); + IntraNodeVisibilityConfig.create = function create(properties) { + return new IntraNodeVisibilityConfig(properties); }; /** - * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. + * Encodes the specified IntraNodeVisibilityConfig message. Does not implicitly {@link google.container.v1.IntraNodeVisibilityConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.IntraNodeVisibilityConfig * @static - * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode + * @param {google.container.v1.IIntraNodeVisibilityConfig} message IntraNodeVisibilityConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePoolAutoscaling.encode = function encode(message, writer) { + IntraNodeVisibilityConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.enabled != null && message.hasOwnProperty("enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minNodeCount); - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); return writer; }; /** - * Encodes the specified NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. + * Encodes the specified IntraNodeVisibilityConfig message, length delimited. Does not implicitly {@link google.container.v1.IntraNodeVisibilityConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.IntraNodeVisibilityConfig * @static - * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode + * @param {google.container.v1.IIntraNodeVisibilityConfig} message IntraNodeVisibilityConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePoolAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + IntraNodeVisibilityConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodePoolAutoscaling message from the specified reader or buffer. + * Decodes an IntraNodeVisibilityConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.IntraNodeVisibilityConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @returns {google.container.v1.IntraNodeVisibilityConfig} IntraNodeVisibilityConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePoolAutoscaling.decode = function decode(reader, length) { + IntraNodeVisibilityConfig.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.NodePoolAutoscaling(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.IntraNodeVisibilityConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.enabled = reader.bool(); break; - case 2: - message.minNodeCount = reader.int32(); - break; - case 3: - message.maxNodeCount = reader.int32(); - break; default: reader.skipType(tag & 7); break; @@ -16139,130 +21961,107 @@ }; /** - * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. + * Decodes an IntraNodeVisibilityConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.IntraNodeVisibilityConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @returns {google.container.v1.IntraNodeVisibilityConfig} IntraNodeVisibilityConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePoolAutoscaling.decodeDelimited = function decodeDelimited(reader) { + IntraNodeVisibilityConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodePoolAutoscaling message. + * Verifies an IntraNodeVisibilityConfig message. * @function verify - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.IntraNodeVisibilityConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodePoolAutoscaling.verify = function verify(message) { + IntraNodeVisibilityConfig.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.minNodeCount != null && message.hasOwnProperty("minNodeCount")) - if (!$util.isInteger(message.minNodeCount)) - return "minNodeCount: integer expected"; - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) - if (!$util.isInteger(message.maxNodeCount)) - return "maxNodeCount: integer expected"; return null; }; /** - * Creates a NodePoolAutoscaling message from a plain object. Also converts values to their respective internal types. + * Creates an IntraNodeVisibilityConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.IntraNodeVisibilityConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @returns {google.container.v1.IntraNodeVisibilityConfig} IntraNodeVisibilityConfig */ - NodePoolAutoscaling.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodePoolAutoscaling) + IntraNodeVisibilityConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.IntraNodeVisibilityConfig) return object; - var message = new $root.google.container.v1.NodePoolAutoscaling(); + var message = new $root.google.container.v1.IntraNodeVisibilityConfig(); if (object.enabled != null) message.enabled = Boolean(object.enabled); - if (object.minNodeCount != null) - message.minNodeCount = object.minNodeCount | 0; - if (object.maxNodeCount != null) - message.maxNodeCount = object.maxNodeCount | 0; return message; }; /** - * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified. + * Creates a plain object from an IntraNodeVisibilityConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.IntraNodeVisibilityConfig * @static - * @param {google.container.v1.NodePoolAutoscaling} message NodePoolAutoscaling + * @param {google.container.v1.IntraNodeVisibilityConfig} message IntraNodeVisibilityConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodePoolAutoscaling.toObject = function toObject(message, options) { + IntraNodeVisibilityConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { + if (options.defaults) object.enabled = false; - object.minNodeCount = 0; - object.maxNodeCount = 0; - } if (message.enabled != null && message.hasOwnProperty("enabled")) object.enabled = message.enabled; - if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) - object.minNodeCount = message.minNodeCount; - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) - object.maxNodeCount = message.maxNodeCount; return object; }; /** - * Converts this NodePoolAutoscaling to JSON. + * Converts this IntraNodeVisibilityConfig to JSON. * @function toJSON - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.IntraNodeVisibilityConfig * @instance * @returns {Object.} JSON object */ - NodePoolAutoscaling.prototype.toJSON = function toJSON() { + IntraNodeVisibilityConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NodePoolAutoscaling; + return IntraNodeVisibilityConfig; })(); - v1.SetLabelsRequest = (function() { + v1.MaxPodsConstraint = (function() { /** - * Properties of a SetLabelsRequest. + * Properties of a MaxPodsConstraint. * @memberof google.container.v1 - * @interface ISetLabelsRequest - * @property {string|null} [projectId] SetLabelsRequest projectId - * @property {string|null} [zone] SetLabelsRequest zone - * @property {string|null} [clusterId] SetLabelsRequest clusterId - * @property {Object.|null} [resourceLabels] SetLabelsRequest resourceLabels - * @property {string|null} [labelFingerprint] SetLabelsRequest labelFingerprint - * @property {string|null} [name] SetLabelsRequest name + * @interface IMaxPodsConstraint + * @property {number|Long|null} [maxPodsPerNode] MaxPodsConstraint maxPodsPerNode */ /** - * Constructs a new SetLabelsRequest. + * Constructs a new MaxPodsConstraint. * @memberof google.container.v1 - * @classdesc Represents a SetLabelsRequest. - * @implements ISetLabelsRequest + * @classdesc Represents a MaxPodsConstraint. + * @implements IMaxPodsConstraint * @constructor - * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set + * @param {google.container.v1.IMaxPodsConstraint=} [properties] Properties to set */ - function SetLabelsRequest(properties) { - this.resourceLabels = {}; + function MaxPodsConstraint(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16270,146 +22069,75 @@ } /** - * SetLabelsRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetLabelsRequest - * @instance - */ - SetLabelsRequest.prototype.projectId = ""; - - /** - * SetLabelsRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetLabelsRequest - * @instance - */ - SetLabelsRequest.prototype.zone = ""; - - /** - * SetLabelsRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetLabelsRequest - * @instance - */ - SetLabelsRequest.prototype.clusterId = ""; - - /** - * SetLabelsRequest resourceLabels. - * @member {Object.} resourceLabels - * @memberof google.container.v1.SetLabelsRequest - * @instance - */ - SetLabelsRequest.prototype.resourceLabels = $util.emptyObject; - - /** - * SetLabelsRequest labelFingerprint. - * @member {string} labelFingerprint - * @memberof google.container.v1.SetLabelsRequest - * @instance - */ - SetLabelsRequest.prototype.labelFingerprint = ""; - - /** - * SetLabelsRequest name. - * @member {string} name - * @memberof google.container.v1.SetLabelsRequest + * MaxPodsConstraint maxPodsPerNode. + * @member {number|Long} maxPodsPerNode + * @memberof google.container.v1.MaxPodsConstraint * @instance */ - SetLabelsRequest.prototype.name = ""; + MaxPodsConstraint.prototype.maxPodsPerNode = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new SetLabelsRequest instance using the specified properties. + * Creates a new MaxPodsConstraint instance using the specified properties. * @function create - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.MaxPodsConstraint * @static - * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest instance + * @param {google.container.v1.IMaxPodsConstraint=} [properties] Properties to set + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint instance */ - SetLabelsRequest.create = function create(properties) { - return new SetLabelsRequest(properties); + MaxPodsConstraint.create = function create(properties) { + return new MaxPodsConstraint(properties); }; /** - * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. + * Encodes the specified MaxPodsConstraint message. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.MaxPodsConstraint * @static - * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode + * @param {google.container.v1.IMaxPodsConstraint} message MaxPodsConstraint message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLabelsRequest.encode = function encode(message, writer) { + MaxPodsConstraint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) - for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).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 && message.hasOwnProperty("labelFingerprint")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.labelFingerprint); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxPodsPerNode); return writer; }; /** - * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. + * Encodes the specified MaxPodsConstraint message, length delimited. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.MaxPodsConstraint * @static - * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode + * @param {google.container.v1.IMaxPodsConstraint} message MaxPodsConstraint message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLabelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + MaxPodsConstraint.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetLabelsRequest message from the specified reader or buffer. + * Decodes a MaxPodsConstraint message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.MaxPodsConstraint * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLabelsRequest.decode = function decode(reader, length) { + MaxPodsConstraint.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.SetLabelsRequest(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaxPodsConstraint(); 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: - reader.skip().pos++; - if (message.resourceLabels === $util.emptyObject) - message.resourceLabels = {}; - key = reader.string(); - reader.pos++; - message.resourceLabels[key] = reader.string(); - break; - case 5: - message.labelFingerprint = reader.string(); - break; - case 7: - message.name = reader.string(); + message.maxPodsPerNode = reader.int64(); break; default: reader.skipType(tag & 7); @@ -16420,295 +22148,211 @@ }; /** - * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. + * Decodes a MaxPodsConstraint message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.MaxPodsConstraint * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLabelsRequest.decodeDelimited = function decodeDelimited(reader) { + MaxPodsConstraint.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetLabelsRequest message. + * Verifies a MaxPodsConstraint message. * @function verify - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.MaxPodsConstraint * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetLabelsRequest.verify = function verify(message) { + MaxPodsConstraint.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.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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) + if (!$util.isInteger(message.maxPodsPerNode) && !(message.maxPodsPerNode && $util.isInteger(message.maxPodsPerNode.low) && $util.isInteger(message.maxPodsPerNode.high))) + return "maxPodsPerNode: integer|Long expected"; return null; }; /** - * Creates a SetLabelsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MaxPodsConstraint message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.MaxPodsConstraint * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint */ - SetLabelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetLabelsRequest) + MaxPodsConstraint.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaxPodsConstraint) return object; - var message = new $root.google.container.v1.SetLabelsRequest(); - 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.resourceLabels) { - if (typeof object.resourceLabels !== "object") - throw TypeError(".google.container.v1.SetLabelsRequest.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.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.MaxPodsConstraint(); + if (object.maxPodsPerNode != null) + if ($util.Long) + (message.maxPodsPerNode = $util.Long.fromValue(object.maxPodsPerNode)).unsigned = false; + else if (typeof object.maxPodsPerNode === "string") + message.maxPodsPerNode = parseInt(object.maxPodsPerNode, 10); + else if (typeof object.maxPodsPerNode === "number") + message.maxPodsPerNode = object.maxPodsPerNode; + else if (typeof object.maxPodsPerNode === "object") + message.maxPodsPerNode = new $util.LongBits(object.maxPodsPerNode.low >>> 0, object.maxPodsPerNode.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a MaxPodsConstraint message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.MaxPodsConstraint * @static - * @param {google.container.v1.SetLabelsRequest} message SetLabelsRequest + * @param {google.container.v1.MaxPodsConstraint} message MaxPodsConstraint * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetLabelsRequest.toObject = function toObject(message, options) { + MaxPodsConstraint.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.resourceLabels = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.labelFingerprint = ""; - 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; - 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxPodsPerNode = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxPodsPerNode = options.longs === String ? "0" : 0; + if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) + if (typeof message.maxPodsPerNode === "number") + object.maxPodsPerNode = options.longs === String ? String(message.maxPodsPerNode) : message.maxPodsPerNode; + else + object.maxPodsPerNode = options.longs === String ? $util.Long.prototype.toString.call(message.maxPodsPerNode) : options.longs === Number ? new $util.LongBits(message.maxPodsPerNode.low >>> 0, message.maxPodsPerNode.high >>> 0).toNumber() : message.maxPodsPerNode; return object; }; /** - * Converts this SetLabelsRequest to JSON. + * Converts this MaxPodsConstraint to JSON. * @function toJSON - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.MaxPodsConstraint * @instance * @returns {Object.} JSON object */ - SetLabelsRequest.prototype.toJSON = function toJSON() { + MaxPodsConstraint.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetLabelsRequest; + return MaxPodsConstraint; })(); - v1.SetLegacyAbacRequest = (function() { + v1.DatabaseEncryption = (function() { /** - * Properties of a SetLegacyAbacRequest. + * Properties of a DatabaseEncryption. * @memberof google.container.v1 - * @interface ISetLegacyAbacRequest - * @property {string|null} [projectId] SetLegacyAbacRequest projectId - * @property {string|null} [zone] SetLegacyAbacRequest zone - * @property {string|null} [clusterId] SetLegacyAbacRequest clusterId - * @property {boolean|null} [enabled] SetLegacyAbacRequest enabled - * @property {string|null} [name] SetLegacyAbacRequest name + * @interface IDatabaseEncryption + * @property {google.container.v1.DatabaseEncryption.State|null} [state] DatabaseEncryption state + * @property {string|null} [keyName] DatabaseEncryption keyName */ /** - * Constructs a new SetLegacyAbacRequest. + * Constructs a new DatabaseEncryption. * @memberof google.container.v1 - * @classdesc Represents a SetLegacyAbacRequest. - * @implements ISetLegacyAbacRequest + * @classdesc Represents a DatabaseEncryption. + * @implements IDatabaseEncryption * @constructor - * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set + * @param {google.container.v1.IDatabaseEncryption=} [properties] Properties to set */ - function SetLegacyAbacRequest(properties) { + function DatabaseEncryption(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]]; - } - - /** - * SetLegacyAbacRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetLegacyAbacRequest - * @instance - */ - SetLegacyAbacRequest.prototype.projectId = ""; - - /** - * SetLegacyAbacRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetLegacyAbacRequest - * @instance - */ - SetLegacyAbacRequest.prototype.zone = ""; - - /** - * SetLegacyAbacRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetLegacyAbacRequest - * @instance - */ - SetLegacyAbacRequest.prototype.clusterId = ""; + } /** - * SetLegacyAbacRequest enabled. - * @member {boolean} enabled - * @memberof google.container.v1.SetLegacyAbacRequest + * DatabaseEncryption state. + * @member {google.container.v1.DatabaseEncryption.State} state + * @memberof google.container.v1.DatabaseEncryption * @instance */ - SetLegacyAbacRequest.prototype.enabled = false; + DatabaseEncryption.prototype.state = 0; /** - * SetLegacyAbacRequest name. - * @member {string} name - * @memberof google.container.v1.SetLegacyAbacRequest + * DatabaseEncryption keyName. + * @member {string} keyName + * @memberof google.container.v1.DatabaseEncryption * @instance */ - SetLegacyAbacRequest.prototype.name = ""; + DatabaseEncryption.prototype.keyName = ""; /** - * Creates a new SetLegacyAbacRequest instance using the specified properties. + * Creates a new DatabaseEncryption instance using the specified properties. * @function create - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.DatabaseEncryption * @static - * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest instance + * @param {google.container.v1.IDatabaseEncryption=} [properties] Properties to set + * @returns {google.container.v1.DatabaseEncryption} DatabaseEncryption instance */ - SetLegacyAbacRequest.create = function create(properties) { - return new SetLegacyAbacRequest(properties); + DatabaseEncryption.create = function create(properties) { + return new DatabaseEncryption(properties); }; /** - * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. + * Encodes the specified DatabaseEncryption message. Does not implicitly {@link google.container.v1.DatabaseEncryption.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.DatabaseEncryption * @static - * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode + * @param {google.container.v1.IDatabaseEncryption} message DatabaseEncryption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLegacyAbacRequest.encode = function encode(message, writer) { + DatabaseEncryption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.enabled != null && message.hasOwnProperty("enabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.keyName != null && message.hasOwnProperty("keyName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyName); + if (message.state != null && message.hasOwnProperty("state")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); return writer; }; /** - * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. + * Encodes the specified DatabaseEncryption message, length delimited. Does not implicitly {@link google.container.v1.DatabaseEncryption.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.DatabaseEncryption * @static - * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode + * @param {google.container.v1.IDatabaseEncryption} message DatabaseEncryption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLegacyAbacRequest.encodeDelimited = function encodeDelimited(message, writer) { + DatabaseEncryption.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetLegacyAbacRequest message from the specified reader or buffer. + * Decodes a DatabaseEncryption message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.DatabaseEncryption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @returns {google.container.v1.DatabaseEncryption} DatabaseEncryption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLegacyAbacRequest.decode = function decode(reader, length) { + DatabaseEncryption.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.SetLegacyAbacRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DatabaseEncryption(); 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.enabled = reader.bool(); + message.state = reader.int32(); break; - case 6: - message.name = reader.string(); + case 1: + message.keyName = reader.string(); break; default: reader.skipType(tag & 7); @@ -16719,144 +22363,153 @@ }; /** - * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. + * Decodes a DatabaseEncryption message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.DatabaseEncryption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @returns {google.container.v1.DatabaseEncryption} DatabaseEncryption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLegacyAbacRequest.decodeDelimited = function decodeDelimited(reader) { + DatabaseEncryption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetLegacyAbacRequest message. + * Verifies a DatabaseEncryption message. * @function verify - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.DatabaseEncryption * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetLegacyAbacRequest.verify = function verify(message) { + DatabaseEncryption.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.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.keyName != null && message.hasOwnProperty("keyName")) + if (!$util.isString(message.keyName)) + return "keyName: string expected"; return null; }; /** - * Creates a SetLegacyAbacRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DatabaseEncryption message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.DatabaseEncryption * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @returns {google.container.v1.DatabaseEncryption} DatabaseEncryption */ - SetLegacyAbacRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetLegacyAbacRequest) + DatabaseEncryption.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DatabaseEncryption) return object; - var message = new $root.google.container.v1.SetLegacyAbacRequest(); - 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.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.DatabaseEncryption(); + switch (object.state) { + case "UNKNOWN": + case 0: + message.state = 0; + break; + case "ENCRYPTED": + case 1: + message.state = 1; + break; + case "DECRYPTED": + case 2: + message.state = 2; + break; + } + if (object.keyName != null) + message.keyName = String(object.keyName); return message; }; /** - * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified. + * Creates a plain object from a DatabaseEncryption message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.DatabaseEncryption * @static - * @param {google.container.v1.SetLegacyAbacRequest} message SetLegacyAbacRequest + * @param {google.container.v1.DatabaseEncryption} message DatabaseEncryption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetLegacyAbacRequest.toObject = function toObject(message, options) { + DatabaseEncryption.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.enabled = false; - object.name = ""; + object.keyName = ""; + object.state = options.enums === String ? "UNKNOWN" : 0; } - 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.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.keyName != null && message.hasOwnProperty("keyName")) + object.keyName = message.keyName; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.container.v1.DatabaseEncryption.State[message.state] : message.state; return object; }; /** - * Converts this SetLegacyAbacRequest to JSON. + * Converts this DatabaseEncryption to JSON. * @function toJSON - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.DatabaseEncryption * @instance * @returns {Object.} JSON object */ - SetLegacyAbacRequest.prototype.toJSON = function toJSON() { + DatabaseEncryption.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetLegacyAbacRequest; + /** + * State enum. + * @name google.container.v1.DatabaseEncryption.State + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} ENCRYPTED=1 ENCRYPTED value + * @property {number} DECRYPTED=2 DECRYPTED value + */ + DatabaseEncryption.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "ENCRYPTED"] = 1; + values[valuesById[2] = "DECRYPTED"] = 2; + return values; + })(); + + return DatabaseEncryption; })(); - v1.StartIPRotationRequest = (function() { + v1.ListUsableSubnetworksRequest = (function() { /** - * Properties of a StartIPRotationRequest. + * Properties of a ListUsableSubnetworksRequest. * @memberof google.container.v1 - * @interface IStartIPRotationRequest - * @property {string|null} [projectId] StartIPRotationRequest projectId - * @property {string|null} [zone] StartIPRotationRequest zone - * @property {string|null} [clusterId] StartIPRotationRequest clusterId - * @property {string|null} [name] StartIPRotationRequest name - * @property {boolean|null} [rotateCredentials] StartIPRotationRequest rotateCredentials + * @interface IListUsableSubnetworksRequest + * @property {string|null} [parent] ListUsableSubnetworksRequest parent + * @property {string|null} [filter] ListUsableSubnetworksRequest filter + * @property {number|null} [pageSize] ListUsableSubnetworksRequest pageSize + * @property {string|null} [pageToken] ListUsableSubnetworksRequest pageToken */ /** - * Constructs a new StartIPRotationRequest. + * Constructs a new ListUsableSubnetworksRequest. * @memberof google.container.v1 - * @classdesc Represents a StartIPRotationRequest. - * @implements IStartIPRotationRequest + * @classdesc Represents a ListUsableSubnetworksRequest. + * @implements IListUsableSubnetworksRequest * @constructor - * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set + * @param {google.container.v1.IListUsableSubnetworksRequest=} [properties] Properties to set */ - function StartIPRotationRequest(properties) { + function ListUsableSubnetworksRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16864,127 +22517,114 @@ } /** - * StartIPRotationRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.StartIPRotationRequest - * @instance - */ - StartIPRotationRequest.prototype.projectId = ""; - - /** - * StartIPRotationRequest zone. - * @member {string} zone - * @memberof google.container.v1.StartIPRotationRequest + * ListUsableSubnetworksRequest parent. + * @member {string} parent + * @memberof google.container.v1.ListUsableSubnetworksRequest * @instance */ - StartIPRotationRequest.prototype.zone = ""; + ListUsableSubnetworksRequest.prototype.parent = ""; /** - * StartIPRotationRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.StartIPRotationRequest + * ListUsableSubnetworksRequest filter. + * @member {string} filter + * @memberof google.container.v1.ListUsableSubnetworksRequest * @instance */ - StartIPRotationRequest.prototype.clusterId = ""; + ListUsableSubnetworksRequest.prototype.filter = ""; /** - * StartIPRotationRequest name. - * @member {string} name - * @memberof google.container.v1.StartIPRotationRequest + * ListUsableSubnetworksRequest pageSize. + * @member {number} pageSize + * @memberof google.container.v1.ListUsableSubnetworksRequest * @instance */ - StartIPRotationRequest.prototype.name = ""; + ListUsableSubnetworksRequest.prototype.pageSize = 0; /** - * StartIPRotationRequest rotateCredentials. - * @member {boolean} rotateCredentials - * @memberof google.container.v1.StartIPRotationRequest + * ListUsableSubnetworksRequest pageToken. + * @member {string} pageToken + * @memberof google.container.v1.ListUsableSubnetworksRequest * @instance */ - StartIPRotationRequest.prototype.rotateCredentials = false; + ListUsableSubnetworksRequest.prototype.pageToken = ""; /** - * Creates a new StartIPRotationRequest instance using the specified properties. + * Creates a new ListUsableSubnetworksRequest instance using the specified properties. * @function create - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksRequest * @static - * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest instance + * @param {google.container.v1.IListUsableSubnetworksRequest=} [properties] Properties to set + * @returns {google.container.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest instance */ - StartIPRotationRequest.create = function create(properties) { - return new StartIPRotationRequest(properties); + ListUsableSubnetworksRequest.create = function create(properties) { + return new ListUsableSubnetworksRequest(properties); }; /** - * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. + * Encodes the specified ListUsableSubnetworksRequest message. Does not implicitly {@link google.container.v1.ListUsableSubnetworksRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksRequest * @static - * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode + * @param {google.container.v1.IListUsableSubnetworksRequest} message ListUsableSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartIPRotationRequest.encode = function encode(message, writer) { + ListUsableSubnetworksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); - if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateCredentials); + if (message.parent != null && message.hasOwnProperty("parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && message.hasOwnProperty("filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); return writer; }; /** - * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. + * Encodes the specified ListUsableSubnetworksRequest message, length delimited. Does not implicitly {@link google.container.v1.ListUsableSubnetworksRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksRequest * @static - * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode + * @param {google.container.v1.IListUsableSubnetworksRequest} message ListUsableSubnetworksRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUsableSubnetworksRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartIPRotationRequest message from the specified reader or buffer. + * Decodes a ListUsableSubnetworksRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + * @returns {google.container.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartIPRotationRequest.decode = function decode(reader, length) { + ListUsableSubnetworksRequest.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.StartIPRotationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListUsableSubnetworksRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.parent = reader.string(); break; case 2: - message.zone = reader.string(); + message.filter = reader.string(); break; case 3: - message.clusterId = reader.string(); - break; - case 6: - message.name = reader.string(); + message.pageSize = reader.int32(); break; - case 7: - message.rotateCredentials = reader.bool(); + case 4: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -16995,143 +22635,134 @@ }; /** - * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUsableSubnetworksRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + * @returns {google.container.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { + ListUsableSubnetworksRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartIPRotationRequest message. + * Verifies a ListUsableSubnetworksRequest message. * @function verify - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartIPRotationRequest.verify = function verify(message) { + ListUsableSubnetworksRequest.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"; - if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) - if (typeof message.rotateCredentials !== "boolean") - return "rotateCredentials: boolean expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a StartIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUsableSubnetworksRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest - */ - StartIPRotationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.StartIPRotationRequest) - return object; - var message = new $root.google.container.v1.StartIPRotationRequest(); - 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); - if (object.rotateCredentials != null) - message.rotateCredentials = Boolean(object.rotateCredentials); + * @returns {google.container.v1.ListUsableSubnetworksRequest} ListUsableSubnetworksRequest + */ + ListUsableSubnetworksRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListUsableSubnetworksRequest) + return object; + var message = new $root.google.container.v1.ListUsableSubnetworksRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUsableSubnetworksRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksRequest * @static - * @param {google.container.v1.StartIPRotationRequest} message StartIPRotationRequest + * @param {google.container.v1.ListUsableSubnetworksRequest} message ListUsableSubnetworksRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartIPRotationRequest.toObject = function toObject(message, options) { + ListUsableSubnetworksRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.name = ""; - object.rotateCredentials = false; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; } - 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; - if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) - object.rotateCredentials = message.rotateCredentials; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this StartIPRotationRequest to JSON. + * Converts this ListUsableSubnetworksRequest to JSON. * @function toJSON - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksRequest * @instance * @returns {Object.} JSON object */ - StartIPRotationRequest.prototype.toJSON = function toJSON() { + ListUsableSubnetworksRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartIPRotationRequest; + return ListUsableSubnetworksRequest; })(); - v1.CompleteIPRotationRequest = (function() { + v1.ListUsableSubnetworksResponse = (function() { /** - * Properties of a CompleteIPRotationRequest. + * Properties of a ListUsableSubnetworksResponse. * @memberof google.container.v1 - * @interface ICompleteIPRotationRequest - * @property {string|null} [projectId] CompleteIPRotationRequest projectId - * @property {string|null} [zone] CompleteIPRotationRequest zone - * @property {string|null} [clusterId] CompleteIPRotationRequest clusterId - * @property {string|null} [name] CompleteIPRotationRequest name + * @interface IListUsableSubnetworksResponse + * @property {Array.|null} [subnetworks] ListUsableSubnetworksResponse subnetworks + * @property {string|null} [nextPageToken] ListUsableSubnetworksResponse nextPageToken */ /** - * Constructs a new CompleteIPRotationRequest. + * Constructs a new ListUsableSubnetworksResponse. * @memberof google.container.v1 - * @classdesc Represents a CompleteIPRotationRequest. - * @implements ICompleteIPRotationRequest + * @classdesc Represents a ListUsableSubnetworksResponse. + * @implements IListUsableSubnetworksResponse * @constructor - * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set + * @param {google.container.v1.IListUsableSubnetworksResponse=} [properties] Properties to set */ - function CompleteIPRotationRequest(properties) { + function ListUsableSubnetworksResponse(properties) { + this.subnetworks = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17139,114 +22770,91 @@ } /** - * CompleteIPRotationRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.CompleteIPRotationRequest - * @instance - */ - CompleteIPRotationRequest.prototype.projectId = ""; - - /** - * CompleteIPRotationRequest zone. - * @member {string} zone - * @memberof google.container.v1.CompleteIPRotationRequest - * @instance - */ - CompleteIPRotationRequest.prototype.zone = ""; - - /** - * CompleteIPRotationRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.CompleteIPRotationRequest + * ListUsableSubnetworksResponse subnetworks. + * @member {Array.} subnetworks + * @memberof google.container.v1.ListUsableSubnetworksResponse * @instance */ - CompleteIPRotationRequest.prototype.clusterId = ""; + ListUsableSubnetworksResponse.prototype.subnetworks = $util.emptyArray; /** - * CompleteIPRotationRequest name. - * @member {string} name - * @memberof google.container.v1.CompleteIPRotationRequest + * ListUsableSubnetworksResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.container.v1.ListUsableSubnetworksResponse * @instance */ - CompleteIPRotationRequest.prototype.name = ""; + ListUsableSubnetworksResponse.prototype.nextPageToken = ""; /** - * Creates a new CompleteIPRotationRequest instance using the specified properties. + * Creates a new ListUsableSubnetworksResponse instance using the specified properties. * @function create - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksResponse * @static - * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest instance + * @param {google.container.v1.IListUsableSubnetworksResponse=} [properties] Properties to set + * @returns {google.container.v1.ListUsableSubnetworksResponse} ListUsableSubnetworksResponse instance */ - CompleteIPRotationRequest.create = function create(properties) { - return new CompleteIPRotationRequest(properties); + ListUsableSubnetworksResponse.create = function create(properties) { + return new ListUsableSubnetworksResponse(properties); }; /** - * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. + * Encodes the specified ListUsableSubnetworksResponse message. Does not implicitly {@link google.container.v1.ListUsableSubnetworksResponse.verify|verify} messages. * @function encode - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksResponse * @static - * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode + * @param {google.container.v1.IListUsableSubnetworksResponse} message ListUsableSubnetworksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompleteIPRotationRequest.encode = function encode(message, writer) { + ListUsableSubnetworksResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + if (message.subnetworks != null && message.subnetworks.length) + for (var i = 0; i < message.subnetworks.length; ++i) + $root.google.container.v1.UsableSubnetwork.encode(message.subnetworks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. + * Encodes the specified ListUsableSubnetworksResponse message, length delimited. Does not implicitly {@link google.container.v1.ListUsableSubnetworksResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksResponse * @static - * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode + * @param {google.container.v1.IListUsableSubnetworksResponse} message ListUsableSubnetworksResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompleteIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListUsableSubnetworksResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompleteIPRotationRequest message from the specified reader or buffer. + * Decodes a ListUsableSubnetworksResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @returns {google.container.v1.ListUsableSubnetworksResponse} ListUsableSubnetworksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompleteIPRotationRequest.decode = function decode(reader, length) { + ListUsableSubnetworksResponse.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.CompleteIPRotationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListUsableSubnetworksResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + if (!(message.subnetworks && message.subnetworks.length)) + message.subnetworks = []; + message.subnetworks.push($root.google.container.v1.UsableSubnetwork.decode(reader, reader.uint32())); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 7: - message.name = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -17257,133 +22865,135 @@ }; /** - * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a ListUsableSubnetworksResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @returns {google.container.v1.ListUsableSubnetworksResponse} ListUsableSubnetworksResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompleteIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { + ListUsableSubnetworksResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CompleteIPRotationRequest message. + * Verifies a ListUsableSubnetworksResponse message. * @function verify - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CompleteIPRotationRequest.verify = function verify(message) { + ListUsableSubnetworksResponse.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"; + if (message.subnetworks != null && message.hasOwnProperty("subnetworks")) { + if (!Array.isArray(message.subnetworks)) + return "subnetworks: array expected"; + for (var i = 0; i < message.subnetworks.length; ++i) { + var error = $root.google.container.v1.UsableSubnetwork.verify(message.subnetworks[i]); + if (error) + return "subnetworks." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CompleteIPRotationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListUsableSubnetworksResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @returns {google.container.v1.ListUsableSubnetworksResponse} ListUsableSubnetworksResponse */ - CompleteIPRotationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CompleteIPRotationRequest) + ListUsableSubnetworksResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListUsableSubnetworksResponse) return object; - var message = new $root.google.container.v1.CompleteIPRotationRequest(); - 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); + var message = new $root.google.container.v1.ListUsableSubnetworksResponse(); + if (object.subnetworks) { + if (!Array.isArray(object.subnetworks)) + throw TypeError(".google.container.v1.ListUsableSubnetworksResponse.subnetworks: array expected"); + message.subnetworks = []; + for (var i = 0; i < object.subnetworks.length; ++i) { + if (typeof object.subnetworks[i] !== "object") + throw TypeError(".google.container.v1.ListUsableSubnetworksResponse.subnetworks: object expected"); + message.subnetworks[i] = $root.google.container.v1.UsableSubnetwork.fromObject(object.subnetworks[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListUsableSubnetworksResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksResponse * @static - * @param {google.container.v1.CompleteIPRotationRequest} message CompleteIPRotationRequest + * @param {google.container.v1.ListUsableSubnetworksResponse} message ListUsableSubnetworksResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompleteIPRotationRequest.toObject = function toObject(message, options) { + ListUsableSubnetworksResponse.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; + if (options.arrays || options.defaults) + object.subnetworks = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.subnetworks && message.subnetworks.length) { + object.subnetworks = []; + for (var j = 0; j < message.subnetworks.length; ++j) + object.subnetworks[j] = $root.google.container.v1.UsableSubnetwork.toObject(message.subnetworks[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CompleteIPRotationRequest to JSON. + * Converts this ListUsableSubnetworksResponse to JSON. * @function toJSON - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.ListUsableSubnetworksResponse * @instance * @returns {Object.} JSON object */ - CompleteIPRotationRequest.prototype.toJSON = function toJSON() { + ListUsableSubnetworksResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CompleteIPRotationRequest; + return ListUsableSubnetworksResponse; })(); - v1.AcceleratorConfig = (function() { + v1.UsableSubnetworkSecondaryRange = (function() { /** - * Properties of an AcceleratorConfig. + * Properties of a UsableSubnetworkSecondaryRange. * @memberof google.container.v1 - * @interface IAcceleratorConfig - * @property {number|Long|null} [acceleratorCount] AcceleratorConfig acceleratorCount - * @property {string|null} [acceleratorType] AcceleratorConfig acceleratorType + * @interface IUsableSubnetworkSecondaryRange + * @property {string|null} [rangeName] UsableSubnetworkSecondaryRange rangeName + * @property {string|null} [ipCidrRange] UsableSubnetworkSecondaryRange ipCidrRange + * @property {google.container.v1.UsableSubnetworkSecondaryRange.Status|null} [status] UsableSubnetworkSecondaryRange status */ /** - * Constructs a new AcceleratorConfig. + * Constructs a new UsableSubnetworkSecondaryRange. * @memberof google.container.v1 - * @classdesc Represents an AcceleratorConfig. - * @implements IAcceleratorConfig + * @classdesc Represents a UsableSubnetworkSecondaryRange. + * @implements IUsableSubnetworkSecondaryRange * @constructor - * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set + * @param {google.container.v1.IUsableSubnetworkSecondaryRange=} [properties] Properties to set */ - function AcceleratorConfig(properties) { + function UsableSubnetworkSecondaryRange(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17391,88 +23001,101 @@ } /** - * AcceleratorConfig acceleratorCount. - * @member {number|Long} acceleratorCount - * @memberof google.container.v1.AcceleratorConfig + * UsableSubnetworkSecondaryRange rangeName. + * @member {string} rangeName + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @instance */ - AcceleratorConfig.prototype.acceleratorCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UsableSubnetworkSecondaryRange.prototype.rangeName = ""; /** - * AcceleratorConfig acceleratorType. - * @member {string} acceleratorType - * @memberof google.container.v1.AcceleratorConfig + * UsableSubnetworkSecondaryRange ipCidrRange. + * @member {string} ipCidrRange + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @instance */ - AcceleratorConfig.prototype.acceleratorType = ""; + UsableSubnetworkSecondaryRange.prototype.ipCidrRange = ""; /** - * Creates a new AcceleratorConfig instance using the specified properties. + * UsableSubnetworkSecondaryRange status. + * @member {google.container.v1.UsableSubnetworkSecondaryRange.Status} status + * @memberof google.container.v1.UsableSubnetworkSecondaryRange + * @instance + */ + UsableSubnetworkSecondaryRange.prototype.status = 0; + + /** + * Creates a new UsableSubnetworkSecondaryRange instance using the specified properties. * @function create - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @static - * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig instance + * @param {google.container.v1.IUsableSubnetworkSecondaryRange=} [properties] Properties to set + * @returns {google.container.v1.UsableSubnetworkSecondaryRange} UsableSubnetworkSecondaryRange instance */ - AcceleratorConfig.create = function create(properties) { - return new AcceleratorConfig(properties); + UsableSubnetworkSecondaryRange.create = function create(properties) { + return new UsableSubnetworkSecondaryRange(properties); }; /** - * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. + * Encodes the specified UsableSubnetworkSecondaryRange message. Does not implicitly {@link google.container.v1.UsableSubnetworkSecondaryRange.verify|verify} messages. * @function encode - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @static - * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode + * @param {google.container.v1.IUsableSubnetworkSecondaryRange} message UsableSubnetworkSecondaryRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcceleratorConfig.encode = function encode(message, writer) { + UsableSubnetworkSecondaryRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); - if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); + if (message.rangeName != null && message.hasOwnProperty("rangeName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.rangeName); + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.ipCidrRange); + if (message.status != null && message.hasOwnProperty("status")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); return writer; }; /** - * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. + * Encodes the specified UsableSubnetworkSecondaryRange message, length delimited. Does not implicitly {@link google.container.v1.UsableSubnetworkSecondaryRange.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @static - * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode + * @param {google.container.v1.IUsableSubnetworkSecondaryRange} message UsableSubnetworkSecondaryRange message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcceleratorConfig.encodeDelimited = function encodeDelimited(message, writer) { + UsableSubnetworkSecondaryRange.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer. + * Decodes a UsableSubnetworkSecondaryRange message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @returns {google.container.v1.UsableSubnetworkSecondaryRange} UsableSubnetworkSecondaryRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcceleratorConfig.decode = function decode(reader, length) { + UsableSubnetworkSecondaryRange.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.AcceleratorConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.UsableSubnetworkSecondaryRange(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.acceleratorCount = reader.int64(); + message.rangeName = reader.string(); break; case 2: - message.acceleratorType = reader.string(); + message.ipCidrRange = reader.string(); + break; + case 3: + message.status = reader.int32(); break; default: reader.skipType(tag & 7); @@ -17483,134 +23106,177 @@ }; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. + * Decodes a UsableSubnetworkSecondaryRange message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @returns {google.container.v1.UsableSubnetworkSecondaryRange} UsableSubnetworkSecondaryRange * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcceleratorConfig.decodeDelimited = function decodeDelimited(reader) { + UsableSubnetworkSecondaryRange.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AcceleratorConfig message. + * Verifies a UsableSubnetworkSecondaryRange message. * @function verify - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AcceleratorConfig.verify = function verify(message) { + UsableSubnetworkSecondaryRange.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) - if (!$util.isInteger(message.acceleratorCount) && !(message.acceleratorCount && $util.isInteger(message.acceleratorCount.low) && $util.isInteger(message.acceleratorCount.high))) - return "acceleratorCount: integer|Long expected"; - if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) - if (!$util.isString(message.acceleratorType)) - return "acceleratorType: string expected"; + if (message.rangeName != null && message.hasOwnProperty("rangeName")) + if (!$util.isString(message.rangeName)) + return "rangeName: string expected"; + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + if (!$util.isString(message.ipCidrRange)) + return "ipCidrRange: 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; + } return null; }; /** - * Creates an AcceleratorConfig message from a plain object. Also converts values to their respective internal types. + * Creates a UsableSubnetworkSecondaryRange message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @static * @param {Object.} object Plain object - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @returns {google.container.v1.UsableSubnetworkSecondaryRange} UsableSubnetworkSecondaryRange */ - AcceleratorConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.AcceleratorConfig) - return object; - var message = new $root.google.container.v1.AcceleratorConfig(); - if (object.acceleratorCount != null) - if ($util.Long) - (message.acceleratorCount = $util.Long.fromValue(object.acceleratorCount)).unsigned = false; - else if (typeof object.acceleratorCount === "string") - message.acceleratorCount = parseInt(object.acceleratorCount, 10); - else if (typeof object.acceleratorCount === "number") - message.acceleratorCount = object.acceleratorCount; - else if (typeof object.acceleratorCount === "object") - message.acceleratorCount = new $util.LongBits(object.acceleratorCount.low >>> 0, object.acceleratorCount.high >>> 0).toNumber(); - if (object.acceleratorType != null) - message.acceleratorType = String(object.acceleratorType); + UsableSubnetworkSecondaryRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UsableSubnetworkSecondaryRange) + return object; + var message = new $root.google.container.v1.UsableSubnetworkSecondaryRange(); + if (object.rangeName != null) + message.rangeName = String(object.rangeName); + if (object.ipCidrRange != null) + message.ipCidrRange = String(object.ipCidrRange); + switch (object.status) { + case "UNKNOWN": + case 0: + message.status = 0; + break; + case "UNUSED": + case 1: + message.status = 1; + break; + case "IN_USE_SERVICE": + case 2: + message.status = 2; + break; + case "IN_USE_SHAREABLE_POD": + case 3: + message.status = 3; + break; + case "IN_USE_MANAGED_POD": + case 4: + message.status = 4; + break; + } return message; }; /** - * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified. + * Creates a plain object from a UsableSubnetworkSecondaryRange message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @static - * @param {google.container.v1.AcceleratorConfig} message AcceleratorConfig + * @param {google.container.v1.UsableSubnetworkSecondaryRange} message UsableSubnetworkSecondaryRange * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AcceleratorConfig.toObject = function toObject(message, options) { + UsableSubnetworkSecondaryRange.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.acceleratorCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.acceleratorCount = options.longs === String ? "0" : 0; - object.acceleratorType = ""; - } - if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) - if (typeof message.acceleratorCount === "number") - object.acceleratorCount = options.longs === String ? String(message.acceleratorCount) : message.acceleratorCount; - else - object.acceleratorCount = options.longs === String ? $util.Long.prototype.toString.call(message.acceleratorCount) : options.longs === Number ? new $util.LongBits(message.acceleratorCount.low >>> 0, message.acceleratorCount.high >>> 0).toNumber() : message.acceleratorCount; - if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) - object.acceleratorType = message.acceleratorType; + object.rangeName = ""; + object.ipCidrRange = ""; + object.status = options.enums === String ? "UNKNOWN" : 0; + } + if (message.rangeName != null && message.hasOwnProperty("rangeName")) + object.rangeName = message.rangeName; + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + object.ipCidrRange = message.ipCidrRange; + if (message.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.google.container.v1.UsableSubnetworkSecondaryRange.Status[message.status] : message.status; return object; }; /** - * Converts this AcceleratorConfig to JSON. + * Converts this UsableSubnetworkSecondaryRange to JSON. * @function toJSON - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.UsableSubnetworkSecondaryRange * @instance * @returns {Object.} JSON object */ - AcceleratorConfig.prototype.toJSON = function toJSON() { + UsableSubnetworkSecondaryRange.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AcceleratorConfig; + /** + * Status enum. + * @name google.container.v1.UsableSubnetworkSecondaryRange.Status + * @enum {string} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} UNUSED=1 UNUSED value + * @property {number} IN_USE_SERVICE=2 IN_USE_SERVICE value + * @property {number} IN_USE_SHAREABLE_POD=3 IN_USE_SHAREABLE_POD value + * @property {number} IN_USE_MANAGED_POD=4 IN_USE_MANAGED_POD value + */ + UsableSubnetworkSecondaryRange.Status = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "UNUSED"] = 1; + values[valuesById[2] = "IN_USE_SERVICE"] = 2; + values[valuesById[3] = "IN_USE_SHAREABLE_POD"] = 3; + values[valuesById[4] = "IN_USE_MANAGED_POD"] = 4; + return values; + })(); + + return UsableSubnetworkSecondaryRange; })(); - v1.SetNetworkPolicyRequest = (function() { + v1.UsableSubnetwork = (function() { /** - * Properties of a SetNetworkPolicyRequest. + * Properties of a UsableSubnetwork. * @memberof google.container.v1 - * @interface ISetNetworkPolicyRequest - * @property {string|null} [projectId] SetNetworkPolicyRequest projectId - * @property {string|null} [zone] SetNetworkPolicyRequest zone - * @property {string|null} [clusterId] SetNetworkPolicyRequest clusterId - * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] SetNetworkPolicyRequest networkPolicy - * @property {string|null} [name] SetNetworkPolicyRequest name + * @interface IUsableSubnetwork + * @property {string|null} [subnetwork] UsableSubnetwork subnetwork + * @property {string|null} [network] UsableSubnetwork network + * @property {string|null} [ipCidrRange] UsableSubnetwork ipCidrRange + * @property {Array.|null} [secondaryIpRanges] UsableSubnetwork secondaryIpRanges + * @property {string|null} [statusMessage] UsableSubnetwork statusMessage */ /** - * Constructs a new SetNetworkPolicyRequest. + * Constructs a new UsableSubnetwork. * @memberof google.container.v1 - * @classdesc Represents a SetNetworkPolicyRequest. - * @implements ISetNetworkPolicyRequest + * @classdesc Represents a UsableSubnetwork. + * @implements IUsableSubnetwork * @constructor - * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set + * @param {google.container.v1.IUsableSubnetwork=} [properties] Properties to set */ - function SetNetworkPolicyRequest(properties) { + function UsableSubnetwork(properties) { + this.secondaryIpRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17618,127 +23284,130 @@ } /** - * SetNetworkPolicyRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetNetworkPolicyRequest + * UsableSubnetwork subnetwork. + * @member {string} subnetwork + * @memberof google.container.v1.UsableSubnetwork * @instance */ - SetNetworkPolicyRequest.prototype.projectId = ""; + UsableSubnetwork.prototype.subnetwork = ""; /** - * SetNetworkPolicyRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetNetworkPolicyRequest + * UsableSubnetwork network. + * @member {string} network + * @memberof google.container.v1.UsableSubnetwork * @instance */ - SetNetworkPolicyRequest.prototype.zone = ""; + UsableSubnetwork.prototype.network = ""; /** - * SetNetworkPolicyRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetNetworkPolicyRequest + * UsableSubnetwork ipCidrRange. + * @member {string} ipCidrRange + * @memberof google.container.v1.UsableSubnetwork * @instance */ - SetNetworkPolicyRequest.prototype.clusterId = ""; + UsableSubnetwork.prototype.ipCidrRange = ""; /** - * SetNetworkPolicyRequest networkPolicy. - * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy - * @memberof google.container.v1.SetNetworkPolicyRequest + * UsableSubnetwork secondaryIpRanges. + * @member {Array.} secondaryIpRanges + * @memberof google.container.v1.UsableSubnetwork * @instance */ - SetNetworkPolicyRequest.prototype.networkPolicy = null; + UsableSubnetwork.prototype.secondaryIpRanges = $util.emptyArray; /** - * SetNetworkPolicyRequest name. - * @member {string} name - * @memberof google.container.v1.SetNetworkPolicyRequest + * UsableSubnetwork statusMessage. + * @member {string} statusMessage + * @memberof google.container.v1.UsableSubnetwork * @instance */ - SetNetworkPolicyRequest.prototype.name = ""; + UsableSubnetwork.prototype.statusMessage = ""; /** - * Creates a new SetNetworkPolicyRequest instance using the specified properties. + * Creates a new UsableSubnetwork instance using the specified properties. * @function create - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.UsableSubnetwork * @static - * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest instance + * @param {google.container.v1.IUsableSubnetwork=} [properties] Properties to set + * @returns {google.container.v1.UsableSubnetwork} UsableSubnetwork instance */ - SetNetworkPolicyRequest.create = function create(properties) { - return new SetNetworkPolicyRequest(properties); + UsableSubnetwork.create = function create(properties) { + return new UsableSubnetwork(properties); }; /** - * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified UsableSubnetwork message. Does not implicitly {@link google.container.v1.UsableSubnetwork.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.UsableSubnetwork * @static - * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode + * @param {google.container.v1.IUsableSubnetwork} message UsableSubnetwork message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNetworkPolicyRequest.encode = function encode(message, writer) { + UsableSubnetwork.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) - $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.subnetwork); + if (message.network != null && message.hasOwnProperty("network")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.ipCidrRange); + if (message.secondaryIpRanges != null && message.secondaryIpRanges.length) + for (var i = 0; i < message.secondaryIpRanges.length; ++i) + $root.google.container.v1.UsableSubnetworkSecondaryRange.encode(message.secondaryIpRanges[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); return writer; }; /** - * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified UsableSubnetwork message, length delimited. Does not implicitly {@link google.container.v1.UsableSubnetwork.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.UsableSubnetwork * @static - * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode + * @param {google.container.v1.IUsableSubnetwork} message UsableSubnetwork message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + UsableSubnetwork.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a UsableSubnetwork message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.UsableSubnetwork * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @returns {google.container.v1.UsableSubnetwork} UsableSubnetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNetworkPolicyRequest.decode = function decode(reader, length) { + UsableSubnetwork.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.SetNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.UsableSubnetwork(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.subnetwork = reader.string(); break; case 2: - message.zone = reader.string(); + message.network = reader.string(); break; case 3: - message.clusterId = reader.string(); + message.ipCidrRange = reader.string(); break; case 4: - message.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); + if (!(message.secondaryIpRanges && message.secondaryIpRanges.length)) + message.secondaryIpRanges = []; + message.secondaryIpRanges.push($root.google.container.v1.UsableSubnetworkSecondaryRange.decode(reader, reader.uint32())); break; - case 6: - message.name = reader.string(); + case 5: + message.statusMessage = reader.string(); break; default: reader.skipType(tag & 7); @@ -17749,149 +23418,160 @@ }; /** - * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a UsableSubnetwork message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.UsableSubnetwork * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @returns {google.container.v1.UsableSubnetwork} UsableSubnetwork * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + UsableSubnetwork.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNetworkPolicyRequest message. + * Verifies a UsableSubnetwork message. * @function verify - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.UsableSubnetwork * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetNetworkPolicyRequest.verify = function verify(message) { + UsableSubnetwork.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.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { - var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy); - if (error) - return "networkPolicy." + error; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (!$util.isString(message.subnetwork)) + return "subnetwork: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + if (!$util.isString(message.ipCidrRange)) + return "ipCidrRange: string expected"; + if (message.secondaryIpRanges != null && message.hasOwnProperty("secondaryIpRanges")) { + if (!Array.isArray(message.secondaryIpRanges)) + return "secondaryIpRanges: array expected"; + for (var i = 0; i < message.secondaryIpRanges.length; ++i) { + var error = $root.google.container.v1.UsableSubnetworkSecondaryRange.verify(message.secondaryIpRanges[i]); + if (error) + return "secondaryIpRanges." + error; + } } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (!$util.isString(message.statusMessage)) + return "statusMessage: string expected"; return null; }; /** - * Creates a SetNetworkPolicyRequest message from a plain object. Also converts values to their respective internal types. + * Creates a UsableSubnetwork message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.UsableSubnetwork * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @returns {google.container.v1.UsableSubnetwork} UsableSubnetwork */ - SetNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNetworkPolicyRequest) + UsableSubnetwork.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UsableSubnetwork) return object; - var message = new $root.google.container.v1.SetNetworkPolicyRequest(); - 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.networkPolicy != null) { - if (typeof object.networkPolicy !== "object") - throw TypeError(".google.container.v1.SetNetworkPolicyRequest.networkPolicy: object expected"); - message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy); + var message = new $root.google.container.v1.UsableSubnetwork(); + if (object.subnetwork != null) + message.subnetwork = String(object.subnetwork); + if (object.network != null) + message.network = String(object.network); + if (object.ipCidrRange != null) + message.ipCidrRange = String(object.ipCidrRange); + if (object.secondaryIpRanges) { + if (!Array.isArray(object.secondaryIpRanges)) + throw TypeError(".google.container.v1.UsableSubnetwork.secondaryIpRanges: array expected"); + message.secondaryIpRanges = []; + for (var i = 0; i < object.secondaryIpRanges.length; ++i) { + if (typeof object.secondaryIpRanges[i] !== "object") + throw TypeError(".google.container.v1.UsableSubnetwork.secondaryIpRanges: object expected"); + message.secondaryIpRanges[i] = $root.google.container.v1.UsableSubnetworkSecondaryRange.fromObject(object.secondaryIpRanges[i]); + } } - if (object.name != null) - message.name = String(object.name); + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); return message; }; /** - * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a UsableSubnetwork message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.UsableSubnetwork * @static - * @param {google.container.v1.SetNetworkPolicyRequest} message SetNetworkPolicyRequest + * @param {google.container.v1.UsableSubnetwork} message UsableSubnetwork * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNetworkPolicyRequest.toObject = function toObject(message, options) { + UsableSubnetwork.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.secondaryIpRanges = []; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.networkPolicy = null; - object.name = ""; + object.subnetwork = ""; + object.network = ""; + object.ipCidrRange = ""; + object.statusMessage = ""; } - 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.networkPolicy != null && message.hasOwnProperty("networkPolicy")) - object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + object.subnetwork = message.subnetwork; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + object.ipCidrRange = message.ipCidrRange; + if (message.secondaryIpRanges && message.secondaryIpRanges.length) { + object.secondaryIpRanges = []; + for (var j = 0; j < message.secondaryIpRanges.length; ++j) + object.secondaryIpRanges[j] = $root.google.container.v1.UsableSubnetworkSecondaryRange.toObject(message.secondaryIpRanges[j], options); + } + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; return object; }; /** - * Converts this SetNetworkPolicyRequest to JSON. + * Converts this UsableSubnetwork to JSON. * @function toJSON - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.UsableSubnetwork * @instance * @returns {Object.} JSON object */ - SetNetworkPolicyRequest.prototype.toJSON = function toJSON() { + UsableSubnetwork.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNetworkPolicyRequest; + return UsableSubnetwork; })(); - v1.SetMaintenancePolicyRequest = (function() { + v1.ResourceUsageExportConfig = (function() { /** - * Properties of a SetMaintenancePolicyRequest. + * Properties of a ResourceUsageExportConfig. * @memberof google.container.v1 - * @interface ISetMaintenancePolicyRequest - * @property {string|null} [projectId] SetMaintenancePolicyRequest projectId - * @property {string|null} [zone] SetMaintenancePolicyRequest zone - * @property {string|null} [clusterId] SetMaintenancePolicyRequest clusterId - * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] SetMaintenancePolicyRequest maintenancePolicy - * @property {string|null} [name] SetMaintenancePolicyRequest name + * @interface IResourceUsageExportConfig + * @property {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination|null} [bigqueryDestination] ResourceUsageExportConfig bigqueryDestination + * @property {boolean|null} [enableNetworkEgressMetering] ResourceUsageExportConfig enableNetworkEgressMetering + * @property {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig|null} [consumptionMeteringConfig] ResourceUsageExportConfig consumptionMeteringConfig */ /** - * Constructs a new SetMaintenancePolicyRequest. + * Constructs a new ResourceUsageExportConfig. * @memberof google.container.v1 - * @classdesc Represents a SetMaintenancePolicyRequest. - * @implements ISetMaintenancePolicyRequest + * @classdesc Represents a ResourceUsageExportConfig. + * @implements IResourceUsageExportConfig * @constructor - * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set + * @param {google.container.v1.IResourceUsageExportConfig=} [properties] Properties to set */ - function SetMaintenancePolicyRequest(properties) { + function ResourceUsageExportConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17899,277 +23579,613 @@ } /** - * SetMaintenancePolicyRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetMaintenancePolicyRequest - * @instance - */ - SetMaintenancePolicyRequest.prototype.projectId = ""; - - /** - * SetMaintenancePolicyRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetMaintenancePolicyRequest - * @instance - */ - SetMaintenancePolicyRequest.prototype.zone = ""; - - /** - * SetMaintenancePolicyRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetMaintenancePolicyRequest + * ResourceUsageExportConfig bigqueryDestination. + * @member {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.container.v1.ResourceUsageExportConfig * @instance */ - SetMaintenancePolicyRequest.prototype.clusterId = ""; + ResourceUsageExportConfig.prototype.bigqueryDestination = null; /** - * SetMaintenancePolicyRequest maintenancePolicy. - * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy - * @memberof google.container.v1.SetMaintenancePolicyRequest + * ResourceUsageExportConfig enableNetworkEgressMetering. + * @member {boolean} enableNetworkEgressMetering + * @memberof google.container.v1.ResourceUsageExportConfig * @instance */ - SetMaintenancePolicyRequest.prototype.maintenancePolicy = null; + ResourceUsageExportConfig.prototype.enableNetworkEgressMetering = false; /** - * SetMaintenancePolicyRequest name. - * @member {string} name - * @memberof google.container.v1.SetMaintenancePolicyRequest + * ResourceUsageExportConfig consumptionMeteringConfig. + * @member {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig|null|undefined} consumptionMeteringConfig + * @memberof google.container.v1.ResourceUsageExportConfig * @instance */ - SetMaintenancePolicyRequest.prototype.name = ""; + ResourceUsageExportConfig.prototype.consumptionMeteringConfig = null; /** - * Creates a new SetMaintenancePolicyRequest instance using the specified properties. + * Creates a new ResourceUsageExportConfig instance using the specified properties. * @function create - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.ResourceUsageExportConfig * @static - * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest instance + * @param {google.container.v1.IResourceUsageExportConfig=} [properties] Properties to set + * @returns {google.container.v1.ResourceUsageExportConfig} ResourceUsageExportConfig instance */ - SetMaintenancePolicyRequest.create = function create(properties) { - return new SetMaintenancePolicyRequest(properties); + ResourceUsageExportConfig.create = function create(properties) { + return new ResourceUsageExportConfig(properties); }; /** - * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. + * Encodes the specified ResourceUsageExportConfig message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.ResourceUsageExportConfig * @static - * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode + * @param {google.container.v1.IResourceUsageExportConfig} message ResourceUsageExportConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMaintenancePolicyRequest.encode = function encode(message, writer) { + ResourceUsageExportConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) - $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) + $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.enableNetworkEgressMetering != null && message.hasOwnProperty("enableNetworkEgressMetering")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableNetworkEgressMetering); + if (message.consumptionMeteringConfig != null && message.hasOwnProperty("consumptionMeteringConfig")) + $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.encode(message.consumptionMeteringConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. + * Encodes the specified ResourceUsageExportConfig message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.ResourceUsageExportConfig * @static - * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode + * @param {google.container.v1.IResourceUsageExportConfig} message ResourceUsageExportConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMaintenancePolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + ResourceUsageExportConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer. + * Decodes a ResourceUsageExportConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.ResourceUsageExportConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest + * @returns {google.container.v1.ResourceUsageExportConfig} ResourceUsageExportConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMaintenancePolicyRequest.decode = function decode(reader, length) { + ResourceUsageExportConfig.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.SetMaintenancePolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceUsageExportConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.bigqueryDestination = $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.decode(reader, reader.uint32()); break; case 2: - message.zone = reader.string(); + message.enableNetworkEgressMetering = reader.bool(); break; case 3: - message.clusterId = reader.string(); - break; - case 4: - message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); - break; - case 5: - message.name = reader.string(); + message.consumptionMeteringConfig = $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); break; } - } - return message; - }; + } + return message; + }; + + /** + * Decodes a ResourceUsageExportConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ResourceUsageExportConfig} ResourceUsageExportConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceUsageExportConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceUsageExportConfig message. + * @function verify + * @memberof google.container.v1.ResourceUsageExportConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceUsageExportConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + var error = $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; + } + if (message.enableNetworkEgressMetering != null && message.hasOwnProperty("enableNetworkEgressMetering")) + if (typeof message.enableNetworkEgressMetering !== "boolean") + return "enableNetworkEgressMetering: boolean expected"; + if (message.consumptionMeteringConfig != null && message.hasOwnProperty("consumptionMeteringConfig")) { + var error = $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify(message.consumptionMeteringConfig); + if (error) + return "consumptionMeteringConfig." + error; + } + return null; + }; + + /** + * Creates a ResourceUsageExportConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ResourceUsageExportConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ResourceUsageExportConfig} ResourceUsageExportConfig + */ + ResourceUsageExportConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceUsageExportConfig) + return object; + var message = new $root.google.container.v1.ResourceUsageExportConfig(); + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.container.v1.ResourceUsageExportConfig.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.fromObject(object.bigqueryDestination); + } + if (object.enableNetworkEgressMetering != null) + message.enableNetworkEgressMetering = Boolean(object.enableNetworkEgressMetering); + if (object.consumptionMeteringConfig != null) { + if (typeof object.consumptionMeteringConfig !== "object") + throw TypeError(".google.container.v1.ResourceUsageExportConfig.consumptionMeteringConfig: object expected"); + message.consumptionMeteringConfig = $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.fromObject(object.consumptionMeteringConfig); + } + return message; + }; + + /** + * Creates a plain object from a ResourceUsageExportConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ResourceUsageExportConfig + * @static + * @param {google.container.v1.ResourceUsageExportConfig} message ResourceUsageExportConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceUsageExportConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.bigqueryDestination = null; + object.enableNetworkEgressMetering = false; + object.consumptionMeteringConfig = null; + } + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) + object.bigqueryDestination = $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.toObject(message.bigqueryDestination, options); + if (message.enableNetworkEgressMetering != null && message.hasOwnProperty("enableNetworkEgressMetering")) + object.enableNetworkEgressMetering = message.enableNetworkEgressMetering; + if (message.consumptionMeteringConfig != null && message.hasOwnProperty("consumptionMeteringConfig")) + object.consumptionMeteringConfig = $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.toObject(message.consumptionMeteringConfig, options); + return object; + }; + + /** + * Converts this ResourceUsageExportConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ResourceUsageExportConfig + * @instance + * @returns {Object.} JSON object + */ + ResourceUsageExportConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ResourceUsageExportConfig.BigQueryDestination = (function() { + + /** + * Properties of a BigQueryDestination. + * @memberof google.container.v1.ResourceUsageExportConfig + * @interface IBigQueryDestination + * @property {string|null} [datasetId] BigQueryDestination datasetId + */ + + /** + * Constructs a new BigQueryDestination. + * @memberof google.container.v1.ResourceUsageExportConfig + * @classdesc Represents a BigQueryDestination. + * @implements IBigQueryDestination + * @constructor + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination=} [properties] Properties to set + */ + function BigQueryDestination(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]]; + } + + /** + * BigQueryDestination datasetId. + * @member {string} datasetId + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @instance + */ + BigQueryDestination.prototype.datasetId = ""; + + /** + * Creates a new BigQueryDestination instance using the specified properties. + * @function create + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination=} [properties] Properties to set + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination instance + */ + BigQueryDestination.create = function create(properties) { + return new BigQueryDestination(properties); + }; + + /** + * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination} message BigQueryDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQueryDestination.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); + return writer; + }; + + /** + * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination} message BigQueryDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQueryDestination.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BigQueryDestination message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQueryDestination.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.ResourceUsageExportConfig.BigQueryDestination(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.datasetId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQueryDestination.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BigQueryDestination message. + * @function verify + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BigQueryDestination.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + if (!$util.isString(message.datasetId)) + return "datasetId: string expected"; + return null; + }; + + /** + * Creates a BigQueryDestination message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + */ + BigQueryDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) + return object; + var message = new $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(); + if (object.datasetId != null) + message.datasetId = String(object.datasetId); + return message; + }; + + /** + * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} message BigQueryDestination + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BigQueryDestination.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.datasetId = ""; + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + object.datasetId = message.datasetId; + return object; + }; + + /** + * Converts this BigQueryDestination to JSON. + * @function toJSON + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @instance + * @returns {Object.} JSON object + */ + BigQueryDestination.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BigQueryDestination; + })(); + + ResourceUsageExportConfig.ConsumptionMeteringConfig = (function() { + + /** + * Properties of a ConsumptionMeteringConfig. + * @memberof google.container.v1.ResourceUsageExportConfig + * @interface IConsumptionMeteringConfig + * @property {boolean|null} [enabled] ConsumptionMeteringConfig enabled + */ + + /** + * Constructs a new ConsumptionMeteringConfig. + * @memberof google.container.v1.ResourceUsageExportConfig + * @classdesc Represents a ConsumptionMeteringConfig. + * @implements IConsumptionMeteringConfig + * @constructor + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig=} [properties] Properties to set + */ + function ConsumptionMeteringConfig(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]]; + } + + /** + * ConsumptionMeteringConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @instance + */ + ConsumptionMeteringConfig.prototype.enabled = false; + + /** + * Creates a new ConsumptionMeteringConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig=} [properties] Properties to set + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig instance + */ + ConsumptionMeteringConfig.create = function create(properties) { + return new ConsumptionMeteringConfig(properties); + }; + + /** + * Encodes the specified ConsumptionMeteringConfig message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig} message ConsumptionMeteringConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConsumptionMeteringConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + return writer; + }; + + /** + * Encodes the specified ConsumptionMeteringConfig message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig} message ConsumptionMeteringConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConsumptionMeteringConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConsumptionMeteringConfig.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.ResourceUsageExportConfig.ConsumptionMeteringConfig(); + 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; + }; - /** - * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.container.v1.SetMaintenancePolicyRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SetMaintenancePolicyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConsumptionMeteringConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a SetMaintenancePolicyRequest message. - * @function verify - * @memberof google.container.v1.SetMaintenancePolicyRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SetMaintenancePolicyRequest.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.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) { - var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy); - if (error) - return "maintenancePolicy." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + /** + * Verifies a ConsumptionMeteringConfig message. + * @function verify + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConsumptionMeteringConfig.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; + }; - /** - * Creates a SetMaintenancePolicyRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.container.v1.SetMaintenancePolicyRequest - * @static - * @param {Object.} object Plain object - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest - */ - SetMaintenancePolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetMaintenancePolicyRequest) + /** + * Creates a ConsumptionMeteringConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig + */ + ConsumptionMeteringConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + return object; + var message = new $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a ConsumptionMeteringConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} message ConsumptionMeteringConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConsumptionMeteringConfig.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; - var message = new $root.google.container.v1.SetMaintenancePolicyRequest(); - 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.maintenancePolicy != null) { - if (typeof object.maintenancePolicy !== "object") - throw TypeError(".google.container.v1.SetMaintenancePolicyRequest.maintenancePolicy: object expected"); - message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy); - } - if (object.name != null) - message.name = String(object.name); - return message; - }; + }; - /** - * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.container.v1.SetMaintenancePolicyRequest - * @static - * @param {google.container.v1.SetMaintenancePolicyRequest} message SetMaintenancePolicyRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SetMaintenancePolicyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.maintenancePolicy = 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.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) - object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + /** + * Converts this ConsumptionMeteringConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @instance + * @returns {Object.} JSON object + */ + ConsumptionMeteringConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this SetMaintenancePolicyRequest to JSON. - * @function toJSON - * @memberof google.container.v1.SetMaintenancePolicyRequest - * @instance - * @returns {Object.} JSON object - */ - SetMaintenancePolicyRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return ConsumptionMeteringConfig; + })(); - return SetMaintenancePolicyRequest; + return ResourceUsageExportConfig; })(); - v1.NetworkConfig = (function() { + v1.VerticalPodAutoscaling = (function() { /** - * Properties of a NetworkConfig. + * Properties of a VerticalPodAutoscaling. * @memberof google.container.v1 - * @interface INetworkConfig - * @property {string|null} [network] NetworkConfig network - * @property {string|null} [subnetwork] NetworkConfig subnetwork + * @interface IVerticalPodAutoscaling + * @property {boolean|null} [enabled] VerticalPodAutoscaling enabled */ /** - * Constructs a new NetworkConfig. + * Constructs a new VerticalPodAutoscaling. * @memberof google.container.v1 - * @classdesc Represents a NetworkConfig. - * @implements INetworkConfig + * @classdesc Represents a VerticalPodAutoscaling. + * @implements IVerticalPodAutoscaling * @constructor - * @param {google.container.v1.INetworkConfig=} [properties] Properties to set + * @param {google.container.v1.IVerticalPodAutoscaling=} [properties] Properties to set */ - function NetworkConfig(properties) { + function VerticalPodAutoscaling(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18177,88 +24193,75 @@ } /** - * NetworkConfig network. - * @member {string} network - * @memberof google.container.v1.NetworkConfig - * @instance - */ - NetworkConfig.prototype.network = ""; - - /** - * NetworkConfig subnetwork. - * @member {string} subnetwork - * @memberof google.container.v1.NetworkConfig + * VerticalPodAutoscaling enabled. + * @member {boolean} enabled + * @memberof google.container.v1.VerticalPodAutoscaling * @instance */ - NetworkConfig.prototype.subnetwork = ""; + VerticalPodAutoscaling.prototype.enabled = false; /** - * Creates a new NetworkConfig instance using the specified properties. + * Creates a new VerticalPodAutoscaling instance using the specified properties. * @function create - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.VerticalPodAutoscaling * @static - * @param {google.container.v1.INetworkConfig=} [properties] Properties to set - * @returns {google.container.v1.NetworkConfig} NetworkConfig instance + * @param {google.container.v1.IVerticalPodAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling instance */ - NetworkConfig.create = function create(properties) { - return new NetworkConfig(properties); + VerticalPodAutoscaling.create = function create(properties) { + return new VerticalPodAutoscaling(properties); }; /** - * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. + * Encodes the specified VerticalPodAutoscaling message. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. * @function encode - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.VerticalPodAutoscaling * @static - * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {google.container.v1.IVerticalPodAutoscaling} message VerticalPodAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkConfig.encode = function encode(message, writer) { + VerticalPodAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.network != null && message.hasOwnProperty("network")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); + if (message.enabled != null && message.hasOwnProperty("enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; /** - * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. + * Encodes the specified VerticalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.VerticalPodAutoscaling * @static - * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {google.container.v1.IVerticalPodAutoscaling} message VerticalPodAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { + VerticalPodAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkConfig message from the specified reader or buffer. + * Decodes a VerticalPodAutoscaling message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.VerticalPodAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkConfig.decode = function decode(reader, length) { + VerticalPodAutoscaling.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.NetworkConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.VerticalPodAutoscaling(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.network = reader.string(); - break; - case 2: - message.subnetwork = reader.string(); + case 1: + message.enabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -18269,96 +24272,87 @@ }; /** - * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * Decodes a VerticalPodAutoscaling message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.VerticalPodAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkConfig.decodeDelimited = function decodeDelimited(reader) { + VerticalPodAutoscaling.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NetworkConfig message. + * Verifies a VerticalPodAutoscaling message. * @function verify - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.VerticalPodAutoscaling * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NetworkConfig.verify = function verify(message) { + VerticalPodAutoscaling.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - if (!$util.isString(message.subnetwork)) - return "subnetwork: string expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; return null; }; /** - * Creates a NetworkConfig message from a plain object. Also converts values to their respective internal types. + * Creates a VerticalPodAutoscaling message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.VerticalPodAutoscaling * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling */ - NetworkConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NetworkConfig) + VerticalPodAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.VerticalPodAutoscaling) return object; - var message = new $root.google.container.v1.NetworkConfig(); - if (object.network != null) - message.network = String(object.network); - if (object.subnetwork != null) - message.subnetwork = String(object.subnetwork); + var message = new $root.google.container.v1.VerticalPodAutoscaling(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); return message; }; /** - * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. + * Creates a plain object from a VerticalPodAutoscaling message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.VerticalPodAutoscaling * @static - * @param {google.container.v1.NetworkConfig} message NetworkConfig + * @param {google.container.v1.VerticalPodAutoscaling} message VerticalPodAutoscaling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetworkConfig.toObject = function toObject(message, options) { + VerticalPodAutoscaling.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.network = ""; - object.subnetwork = ""; - } - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - object.subnetwork = message.subnetwork; + if (options.defaults) + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; return object; }; /** - * Converts this NetworkConfig to JSON. + * Converts this VerticalPodAutoscaling to JSON. * @function toJSON - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.VerticalPodAutoscaling * @instance * @returns {Object.} JSON object */ - NetworkConfig.prototype.toJSON = function toJSON() { + VerticalPodAutoscaling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NetworkConfig; + return VerticalPodAutoscaling; })(); return v1; @@ -19280,6 +25274,28 @@ return CustomHttpPattern; })(); + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {string} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + return values; + })(); + return api; })(); @@ -24419,6 +30435,7 @@ * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior */ /** @@ -24431,6 +30448,7 @@ */ function FieldOptions(properties) { this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24493,6 +30511,14 @@ */ FieldOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + /** * Creates a new FieldOptions instance using the specified properties. * @function create @@ -24532,6 +30558,12 @@ if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } return writer; }; @@ -24589,6 +30621,16 @@ message.uninterpretedOption = []; message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; + case 1052: + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); + break; default: reader.skipType(tag & 7); break; @@ -24663,6 +30705,22 @@ return "uninterpretedOption." + error; } } + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + } return null; }; @@ -24724,6 +30782,39 @@ message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { + default: + case "FIELD_BEHAVIOR_UNSPECIFIED": + case 0: + message[".google.api.fieldBehavior"][i] = 0; + break; + case "OPTIONAL": + case 1: + message[".google.api.fieldBehavior"][i] = 1; + break; + case "REQUIRED": + case 2: + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + } + } return message; }; @@ -24740,8 +30831,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; + } if (options.defaults) { object.ctype = options.enums === String ? "STRING" : 0; object.packed = false; @@ -24767,6 +30860,11 @@ for (var j = 0; j < message.uninterpretedOption.length; ++j) object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + } return object; }; @@ -25517,6 +31615,8 @@ * @interface IServiceOptions * @property {boolean|null} [deprecated] ServiceOptions deprecated * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes */ /** @@ -25551,6 +31651,22 @@ */ ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; + /** + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.defaultHost"] = ""; + + /** + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + /** * Creates a new ServiceOptions instance using the specified properties. * @function create @@ -25580,6 +31696,10 @@ if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); return writer; }; @@ -25622,6 +31742,12 @@ message.uninterpretedOption = []; message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; + case 1049: + message[".google.api.defaultHost"] = reader.string(); + break; + case 1050: + message[".google.api.oauthScopes"] = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -25669,6 +31795,12 @@ return "uninterpretedOption." + error; } } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; return null; }; @@ -25696,6 +31828,10 @@ message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); return message; }; @@ -25714,8 +31850,11 @@ var object = {}; if (options.arrays || options.defaults) object.uninterpretedOption = []; - if (options.defaults) + if (options.defaults) { object.deprecated = false; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; + } if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; if (message.uninterpretedOption && message.uninterpretedOption.length) { @@ -25723,6 +31862,10 @@ for (var j = 0; j < message.uninterpretedOption.length; ++j) object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; return object; }; @@ -25750,6 +31893,7 @@ * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature */ /** @@ -25762,6 +31906,7 @@ */ function MethodOptions(properties) { this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25800,6 +31945,14 @@ */ MethodOptions.prototype[".google.api.http"] = null; + /** + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + /** * Creates a new MethodOptions instance using the specified properties. * @function create @@ -25831,6 +31984,9 @@ if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; @@ -25881,6 +32037,11 @@ case 72295728: message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); break; + case 1051: + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; default: reader.skipType(tag & 7); break; @@ -25942,6 +32103,13 @@ if (error) return ".google.api.http." + error; } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; + } return null; }; @@ -25988,6 +32156,13 @@ throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); + } return message; }; @@ -26004,8 +32179,10 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.uninterpretedOption = []; + object[".google.api.methodSignature"] = []; + } if (options.defaults) { object.deprecated = false; object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; @@ -26020,6 +32197,11 @@ for (var j = 0; j < message.uninterpretedOption.length; ++j) object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + } if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); return object; @@ -27841,6 +34023,230 @@ return Empty; })(); + protobuf.Timestamp = (function() { + + /** + * Properties of a Timestamp. + * @memberof google.protobuf + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos + */ + + /** + * Constructs a new Timestamp. + * @memberof google.protobuf + * @classdesc Represents a Timestamp. + * @implements ITimestamp + * @constructor + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + */ + function Timestamp(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]]; + } + + /** + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. + * @function create + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance + */ + Timestamp.create = function create(properties) { + return new Timestamp(properties); + }; + + /** + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && message.hasOwnProperty("seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && message.hasOwnProperty("nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.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.protobuf.Timestamp(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Timestamp + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Timestamp} Timestamp + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Timestamp.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Timestamp message. + * @function verify + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Timestamp.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Timestamp + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Timestamp} Timestamp + */ + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) + return object; + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Timestamp + * @static + * @param {google.protobuf.Timestamp} message Timestamp + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Timestamp.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Timestamp to JSON. + * @function toJSON + * @memberof google.protobuf.Timestamp + * @instance + * @returns {Object.} JSON object + */ + Timestamp.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Timestamp; + })(); + return protobuf; })(); diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 22a7751adf9..ca14fb9701b 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -6,22 +6,27 @@ "nested": { "v1": { "options": { + "csharp_namespace": "Google.Cloud.Container.V1", "go_package": "google.golang.org/genproto/googleapis/container/v1;container", "java_multiple_files": true, "java_outer_classname": "ClusterServiceProto", "java_package": "com.google.container.v1", - "csharp_namespace": "Google.Cloud.Container.V1", "php_namespace": "Google\\Cloud\\Container\\V1" }, "nested": { "ClusterManager": { + "options": { + "(google.api.default_host)": "container.googleapis.com", + "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" + }, "methods": { "ListClusters": { "requestType": "ListClustersRequest", "responseType": "ListClustersResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/clusters", - "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters" + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters", + "(google.api.method_signature)": "project_id,zone" } }, "GetCluster": { @@ -29,7 +34,8 @@ "responseType": "Cluster", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/clusters/*}", - "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", + "(google.api.method_signature)": "project_id,zone,cluster_id" } }, "CreateCluster": { @@ -39,7 +45,8 @@ "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/clusters", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster" } }, "UpdateCluster": { @@ -49,7 +56,8 @@ "(google.api.http).put": "/v1/{name=projects/*/locations/*/clusters/*}", "(google.api.http).body": "*", "(google.api.http).additional_bindings.put": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,update" } }, "UpdateNodePool": { @@ -79,7 +87,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setLogging", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,logging_service" } }, "SetMonitoringService": { @@ -89,7 +98,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,monitoring_service" } }, "SetAddonsConfig": { @@ -99,7 +109,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setAddons", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,addons_config" } }, "SetLocations": { @@ -109,7 +120,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setLocations", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,locations" } }, "UpdateMaster": { @@ -119,7 +131,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:updateMaster", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,master_version" } }, "SetMasterAuth": { @@ -137,7 +150,8 @@ "responseType": "Operation", "options": { "(google.api.http).delete": "/v1/{name=projects/*/locations/*/clusters/*}", - "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", + "(google.api.method_signature)": "project_id,zone,cluster_id" } }, "ListOperations": { @@ -145,7 +159,8 @@ "responseType": "ListOperationsResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/operations", - "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/operations" + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/operations", + "(google.api.method_signature)": "project_id,zone" } }, "GetOperation": { @@ -153,7 +168,8 @@ "responseType": "Operation", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/operations/*}", - "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}", + "(google.api.method_signature)": "project_id,zone,operation_id" } }, "CancelOperation": { @@ -163,7 +179,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/operations/*}:cancel", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,operation_id" } }, "GetServerConfig": { @@ -171,7 +188,8 @@ "responseType": "ServerConfig", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*}/serverConfig", - "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/serverconfig" + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/serverconfig", + "(google.api.method_signature)": "project_id,zone" } }, "ListNodePools": { @@ -179,7 +197,8 @@ "responseType": "ListNodePoolsResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", - "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", + "(google.api.method_signature)": "project_id,zone,cluster_id" } }, "GetNodePool": { @@ -187,7 +206,8 @@ "responseType": "NodePool", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", - "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}", + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" } }, "CreateNodePool": { @@ -197,7 +217,8 @@ "(google.api.http).post": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool" } }, "DeleteNodePool": { @@ -205,7 +226,8 @@ "responseType": "Operation", "options": { "(google.api.http).delete": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", - "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}", + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" } }, "RollbackNodePoolUpgrade": { @@ -215,7 +237,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" } }, "SetNodePoolManagement": { @@ -245,7 +268,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,enabled" } }, "StartIPRotation": { @@ -255,7 +279,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id" } }, "CompleteIPRotation": { @@ -265,7 +290,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id" } }, "SetNodePoolSize": { @@ -285,7 +311,8 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,network_policy" } }, "SetMaintenancePolicy": { @@ -295,7 +322,15 @@ "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy", - "(google.api.http).additional_bindings.body": "*" + "(google.api.http).additional_bindings.body": "*", + "(google.api.method_signature)": "project_id,zone,cluster_id,maintenance_policy" + } + }, + "ListUsableSubnetworks": { + "requestType": "ListUsableSubnetworksRequest", + "responseType": "ListUsableSubnetworksResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*}/aggregated/usableSubnetworks" } } } @@ -358,6 +393,53 @@ "minCpuPlatform": { "type": "string", "id": 13 + }, + "taints": { + "rule": "repeated", + "type": "NodeTaint", + "id": 15 + }, + "shieldedInstanceConfig": { + "type": "ShieldedInstanceConfig", + "id": 20 + } + } + }, + "ShieldedInstanceConfig": { + "fields": { + "enableSecureBoot": { + "type": "bool", + "id": 1 + }, + "enableIntegrityMonitoring": { + "type": "bool", + "id": 2 + } + } + }, + "NodeTaint": { + "fields": { + "key": { + "type": "string", + "id": 1 + }, + "value": { + "type": "string", + "id": 2 + }, + "effect": { + "type": "Effect", + "id": 3 + } + }, + "nested": { + "Effect": { + "values": { + "EFFECT_UNSPECIFIED": 0, + "NO_SCHEDULE": 1, + "PREFER_NO_SCHEDULE": 2, + "NO_EXECUTE": 3 + } } } }, @@ -409,11 +491,18 @@ }, "kubernetesDashboard": { "type": "KubernetesDashboard", - "id": 3 + "id": 3, + "options": { + "deprecated": true + } }, "networkPolicyConfig": { "type": "NetworkPolicyConfig", "id": 4 + }, + "cloudRunConfig": { + "type": "CloudRunConfig", + "id": 7 } } }, @@ -473,6 +562,26 @@ } } }, + "AuthenticatorGroupsConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + }, + "securityGroup": { + "type": "string", + "id": 2 + } + } + }, + "CloudRunConfig": { + "fields": { + "disabled": { + "type": "bool", + "id": 1 + } + } + }, "MasterAuthorizedNetworksConfig": { "fields": { "enabled": { @@ -528,6 +637,14 @@ } } }, + "BinaryAuthorization": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "IPAllocationPolicy": { "fields": { "useIpAliases": { @@ -582,6 +699,10 @@ "servicesIpv4CidrBlock": { "type": "string", "id": 11 + }, + "tpuIpv4CidrBlock": { + "type": "string", + "id": 13 } } }, @@ -597,11 +718,17 @@ }, "initialNodeCount": { "type": "int32", - "id": 3 + "id": 3, + "options": { + "deprecated": true + } }, "nodeConfig": { "type": "NodeConfig", - "id": 4 + "id": 4, + "options": { + "deprecated": true + } }, "masterAuth": { "type": "MasterAuth", @@ -674,14 +801,42 @@ "type": "MaintenancePolicy", "id": 23 }, + "binaryAuthorization": { + "type": "BinaryAuthorization", + "id": 24 + }, + "autoscaling": { + "type": "ClusterAutoscaling", + "id": 26 + }, "networkConfig": { "type": "NetworkConfig", "id": 27 }, + "defaultMaxPodsConstraint": { + "type": "MaxPodsConstraint", + "id": 30 + }, + "resourceUsageExportConfig": { + "type": "ResourceUsageExportConfig", + "id": 33 + }, + "authenticatorGroupsConfig": { + "type": "AuthenticatorGroupsConfig", + "id": 34 + }, "privateClusterConfig": { "type": "PrivateClusterConfig", "id": 37 }, + "databaseEncryption": { + "type": "DatabaseEncryption", + "id": 38 + }, + "verticalPodAutoscaling": { + "type": "VerticalPodAutoscaling", + "id": 39 + }, "selfLink": { "type": "string", "id": 100 @@ -742,7 +897,10 @@ }, "currentNodeCount": { "type": "int32", - "id": 112 + "id": 112, + "options": { + "deprecated": true + } }, "expireTime": { "type": "string", @@ -751,6 +909,19 @@ "location": { "type": "string", "id": 114 + }, + "enableTpu": { + "type": "bool", + "id": 115 + }, + "tpuIpv4CidrBlock": { + "type": "string", + "id": 116 + }, + "conditions": { + "rule": "repeated", + "type": "StatusCondition", + "id": 118 } }, "nested": { @@ -789,6 +960,10 @@ "type": "string", "id": 8 }, + "desiredDatabaseEncryption": { + "type": "DatabaseEncryption", + "id": 46 + }, "desiredNodePoolAutoscaling": { "type": "NodePoolAutoscaling", "id": 9 @@ -802,6 +977,30 @@ "type": "MasterAuthorizedNetworksConfig", "id": 12 }, + "desiredClusterAutoscaling": { + "type": "ClusterAutoscaling", + "id": 15 + }, + "desiredBinaryAuthorization": { + "type": "BinaryAuthorization", + "id": 16 + }, + "desiredLoggingService": { + "type": "string", + "id": 19 + }, + "desiredResourceUsageExportConfig": { + "type": "ResourceUsageExportConfig", + "id": 21 + }, + "desiredVerticalPodAutoscaling": { + "type": "VerticalPodAutoscaling", + "id": 22 + }, + "desiredIntraNodeVisibilityConfig": { + "type": "IntraNodeVisibilityConfig", + "id": 26 + }, "desiredMasterVersion": { "type": "string", "id": 100 @@ -856,6 +1055,16 @@ "endTime": { "type": "string", "id": 11 + }, + "clusterConditions": { + "rule": "repeated", + "type": "StatusCondition", + "id": 13 + }, + "nodepoolConditions": { + "rule": "repeated", + "type": "StatusCondition", + "id": 14 } }, "nested": { @@ -897,19 +1106,24 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "cluster": { "type": "Cluster", - "id": 3 + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "parent": { "type": "string", @@ -923,21 +1137,24 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "name": { @@ -952,26 +1169,32 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "update": { "type": "ClusterUpdate", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -985,37 +1208,47 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "nodeVersion": { "type": "string", - "id": 5 + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "imageType": { "type": "string", - "id": 6 + "id": 6, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1029,33 +1262,40 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "autoscaling": { "type": "NodePoolAutoscaling", - "id": 5 + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1069,23 +1309,31 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "loggingService": { "type": "string", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1099,26 +1347,32 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "monitoringService": { "type": "string", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1132,26 +1386,32 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "addonsConfig": { "type": "AddonsConfig", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1165,27 +1425,33 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "locations": { "rule": "repeated", "type": "string", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1199,26 +1465,32 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "masterVersion": { "type": "string", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1232,30 +1504,39 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "action": { "type": "Action", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "update": { "type": "MasterAuth", - "id": 5 + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1279,21 +1560,24 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "name": { @@ -1308,14 +1592,16 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "parent": { @@ -1344,21 +1630,24 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "operationId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "name": { @@ -1373,14 +1662,16 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "parent": { @@ -1395,21 +1686,24 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "operationId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "name": { @@ -1438,14 +1732,16 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "name": { @@ -1487,26 +1783,32 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "nodePool": { "type": "NodePool", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "parent": { "type": "string", @@ -1520,28 +1822,32 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "name": { @@ -1556,21 +1862,24 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "parent": { @@ -1585,28 +1894,32 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "name": { @@ -1657,6 +1970,19 @@ "management": { "type": "NodeManagement", "id": 5 + }, + "maxPodsConstraint": { + "type": "MaxPodsConstraint", + "id": 6 + }, + "conditions": { + "rule": "repeated", + "type": "StatusCondition", + "id": 105 + }, + "podIpv4CidrSize": { + "type": "int32", + "id": 7 } }, "nested": { @@ -1706,6 +2032,10 @@ "window": { "type": "MaintenanceWindow", "id": 1 + }, + "resourceVersion": { + "type": "string", + "id": 3 } } }, @@ -1713,7 +2043,8 @@ "oneofs": { "policy": { "oneof": [ - "dailyMaintenanceWindow" + "dailyMaintenanceWindow", + "recurringWindow" ] } }, @@ -1721,6 +2052,39 @@ "dailyMaintenanceWindow": { "type": "DailyMaintenanceWindow", "id": 2 + }, + "recurringWindow": { + "type": "RecurringTimeWindow", + "id": 3 + }, + "maintenanceExclusions": { + "keyType": "string", + "type": "TimeWindow", + "id": 4 + } + } + }, + "TimeWindow": { + "fields": { + "startTime": { + "type": "google.protobuf.Timestamp", + "id": 1 + }, + "endTime": { + "type": "google.protobuf.Timestamp", + "id": 2 + } + } + }, + "RecurringTimeWindow": { + "fields": { + "window": { + "type": "TimeWindow", + "id": 1 + }, + "recurrence": { + "type": "string", + "id": 2 } } }, @@ -1742,33 +2106,40 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "management": { "type": "NodeManagement", - "id": 5 + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1782,33 +2153,40 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "nodeCount": { "type": "int32", - "id": 5 + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1822,28 +2200,32 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "name": { @@ -1861,6 +2243,57 @@ } } }, + "ClusterAutoscaling": { + "fields": { + "enableNodeAutoprovisioning": { + "type": "bool", + "id": 1 + }, + "resourceLimits": { + "rule": "repeated", + "type": "ResourceLimit", + "id": 2 + }, + "autoprovisioningNodePoolDefaults": { + "type": "AutoprovisioningNodePoolDefaults", + "id": 4 + }, + "autoprovisioningLocations": { + "rule": "repeated", + "type": "string", + "id": 5 + } + } + }, + "AutoprovisioningNodePoolDefaults": { + "fields": { + "oauthScopes": { + "rule": "repeated", + "type": "string", + "id": 1 + }, + "serviceAccount": { + "type": "string", + "id": 2 + } + } + }, + "ResourceLimit": { + "fields": { + "resourceType": { + "type": "string", + "id": 1 + }, + "minimum": { + "type": "int64", + "id": 2 + }, + "maximum": { + "type": "int64", + "id": 3 + } + } + }, "NodePoolAutoscaling": { "fields": { "enabled": { @@ -1874,6 +2307,10 @@ "maxNodeCount": { "type": "int32", "id": 3 + }, + "autoprovisioned": { + "type": "bool", + "id": 4 } } }, @@ -1883,31 +2320,40 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "resourceLabels": { "keyType": "string", "type": "string", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "labelFingerprint": { "type": "string", - "id": 5 + "id": 5, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1921,26 +2367,32 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "enabled": { "type": "bool", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -1954,21 +2406,24 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "name": { @@ -1987,21 +2442,24 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "name": { @@ -2028,26 +2486,32 @@ "type": "string", "id": 1, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true + "deprecated": true, + "(google.api.field_behavior)": "REQUIRED" } }, "networkPolicy": { "type": "NetworkPolicy", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -2059,19 +2523,31 @@ "fields": { "projectId": { "type": "string", - "id": 1 + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "zone": { "type": "string", - "id": 2 + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "clusterId": { "type": "string", - "id": 3 + "id": 3, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "maintenancePolicy": { "type": "MaintenancePolicy", - "id": 4 + "id": 4, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } }, "name": { "type": "string", @@ -2079,6 +2555,30 @@ } } }, + "StatusCondition": { + "fields": { + "code": { + "type": "Code", + "id": 1 + }, + "message": { + "type": "string", + "id": 2 + } + }, + "nested": { + "Code": { + "values": { + "UNKNOWN": 0, + "GCE_STOCKOUT": 1, + "GKE_SERVICE_ACCOUNT_DELETED": 2, + "GCE_QUOTA_EXCEEDED": 3, + "SET_BY_OPERATOR": 4, + "CLOUD_KMS_KEY_ERROR": 7 + } + } + } + }, "NetworkConfig": { "fields": { "network": { @@ -2088,6 +2588,174 @@ "subnetwork": { "type": "string", "id": 2 + }, + "enableIntraNodeVisibility": { + "type": "bool", + "id": 5 + } + } + }, + "IntraNodeVisibilityConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, + "MaxPodsConstraint": { + "fields": { + "maxPodsPerNode": { + "type": "int64", + "id": 1 + } + } + }, + "DatabaseEncryption": { + "fields": { + "state": { + "type": "State", + "id": 2 + }, + "keyName": { + "type": "string", + "id": 1 + } + }, + "nested": { + "State": { + "values": { + "UNKNOWN": 0, + "ENCRYPTED": 1, + "DECRYPTED": 2 + } + } + } + }, + "ListUsableSubnetworksRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1 + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + } + } + }, + "ListUsableSubnetworksResponse": { + "fields": { + "subnetworks": { + "rule": "repeated", + "type": "UsableSubnetwork", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, + "UsableSubnetworkSecondaryRange": { + "fields": { + "rangeName": { + "type": "string", + "id": 1 + }, + "ipCidrRange": { + "type": "string", + "id": 2 + }, + "status": { + "type": "Status", + "id": 3 + } + }, + "nested": { + "Status": { + "values": { + "UNKNOWN": 0, + "UNUSED": 1, + "IN_USE_SERVICE": 2, + "IN_USE_SHAREABLE_POD": 3, + "IN_USE_MANAGED_POD": 4 + } + } + } + }, + "UsableSubnetwork": { + "fields": { + "subnetwork": { + "type": "string", + "id": 1 + }, + "network": { + "type": "string", + "id": 2 + }, + "ipCidrRange": { + "type": "string", + "id": 3 + }, + "secondaryIpRanges": { + "rule": "repeated", + "type": "UsableSubnetworkSecondaryRange", + "id": 4 + }, + "statusMessage": { + "type": "string", + "id": 5 + } + } + }, + "ResourceUsageExportConfig": { + "fields": { + "bigqueryDestination": { + "type": "BigQueryDestination", + "id": 1 + }, + "enableNetworkEgressMetering": { + "type": "bool", + "id": 2 + }, + "consumptionMeteringConfig": { + "type": "ConsumptionMeteringConfig", + "id": 3 + } + }, + "nested": { + "BigQueryDestination": { + "fields": { + "datasetId": { + "type": "string", + "id": 1 + } + } + }, + "ConsumptionMeteringConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + } + } + }, + "VerticalPodAutoscaling": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 } } } @@ -2099,7 +2767,7 @@ "options": { "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", "java_multiple_files": true, - "java_outer_classname": "HttpProto", + "java_outer_classname": "FieldBehaviorProto", "java_package": "com.google.api", "objc_class_prefix": "GAPI", "cc_enable_arenas": true @@ -2191,6 +2859,38 @@ "id": 2 } } + }, + "methodSignature": { + "rule": "repeated", + "type": "string", + "id": 1051, + "extend": "google.protobuf.MethodOptions" + }, + "defaultHost": { + "type": "string", + "id": 1049, + "extend": "google.protobuf.ServiceOptions" + }, + "oauthScopes": { + "type": "string", + "id": 1050, + "extend": "google.protobuf.ServiceOptions" + }, + "fieldBehavior": { + "rule": "repeated", + "type": "google.api.FieldBehavior", + "id": 1052, + "extend": "google.protobuf.FieldOptions" + }, + "FieldBehavior": { + "values": { + "FIELD_BEHAVIOR_UNSPECIFIED": 0, + "OPTIONAL": 1, + "REQUIRED": 2, + "OUTPUT_ONLY": 3, + "INPUT_ONLY": 4, + "IMMUTABLE": 5 + } } } }, @@ -3087,6 +3787,18 @@ }, "Empty": { "fields": {} + }, + "Timestamp": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } } } } diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js index 1400959f3b9..9d0611da5a4 100644 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ b/packages/google-container/src/v1/cluster_manager_client.js @@ -121,6 +121,17 @@ class ClusterManagerClient { opts.fallback ? require('../../protos/protos.json') : nodejsProtoPath ); + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this._descriptors.page = { + listUsableSubnetworks: new gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'subnetworks' + ), + }; + // Put together the default options sent with requests. const defaults = gaxGrpc.constructSettings( 'google.container.v1.ClusterManager', @@ -176,6 +187,7 @@ class ClusterManagerClient { 'setNodePoolSize', 'setNetworkPolicy', 'setMaintenancePolicy', + 'listUsableSubnetworks', ]; for (const methodName of clusterManagerStubMethods) { const innerCallPromise = clusterManagerStub.then( @@ -189,7 +201,7 @@ class ClusterManagerClient { this._innerApiCalls[methodName] = gaxModule.createApiCall( innerCallPromise, defaults[methodName], - null + this._descriptors.page[methodName] ); } } @@ -244,11 +256,11 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. @@ -314,16 +326,16 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to retrieve. + * Required. Deprecated. The name of the cluster to retrieve. * This field has been deprecated and replaced by the name field. * @param {string} [request.name] * The name (project, location, cluster) of the cluster to retrieve. @@ -390,26 +402,26 @@ class ClusterManagerClient { * [default network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). * * One firewall is added for the cluster. After cluster creation, - * the cluster creates routes for each node to allow the containers + * the Kubelet creates routes for each node to allow the containers * on that node to communicate with all other instances in the * cluster. * * Finally, an entry is added to the project's global metadata indicating - * which CIDR range is being used by the cluster. + * which CIDR range the cluster is using. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {Object} request.cluster - * A [cluster + * Required. A [cluster * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) * * This object should have the same structure as [Cluster]{@link google.container.v1.Cluster} @@ -476,19 +488,19 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {Object} request.update - * A description of the update. + * Required. A description of the update. * * This object should have the same structure as [ClusterUpdate]{@link google.container.v1.ClusterUpdate} * @param {string} [request.name] @@ -551,27 +563,27 @@ class ClusterManagerClient { } /** - * Updates the version and/or image type for a specific node pool. + * Updates the version and/or image type for the specified node pool. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Deprecated. The name of the node pool to upgrade. + * Required. Deprecated. The name of the node pool to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.nodeVersion - * The Kubernetes version to change the nodes to (typically an + * Required. The Kubernetes version to change the nodes to (typically an * upgrade). * * Users may specify either explicit versions offered by Kubernetes Engine or @@ -583,7 +595,7 @@ class ClusterManagerClient { * - "1.X.Y-gke.N": picks an explicit Kubernetes version * - "-": picks the Kubernetes master version * @param {string} request.imageType - * The desired image type for the node pool. + * Required. The desired image type for the node pool. * @param {string} [request.name] * The name (project, location, cluster, node pool) of the node pool to * update. Specified in the format @@ -649,27 +661,27 @@ class ClusterManagerClient { } /** - * Sets the autoscaling settings for a specific node pool. + * Sets the autoscaling settings for the specified node pool. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Deprecated. The name of the node pool to upgrade. + * Required. Deprecated. The name of the node pool to upgrade. * This field has been deprecated and replaced by the name field. * @param {Object} request.autoscaling - * Autoscaling configuration for the node pool. + * Required. Autoscaling configuration for the node pool. * * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} * @param {string} [request.name] @@ -744,19 +756,19 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.loggingService - * The logging service the cluster should use to write metrics. + * Required. The logging service the cluster should use to write metrics. * Currently available options: * * * "logging.googleapis.com" - the Google Cloud Logging service @@ -826,21 +838,23 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.monitoringService - * The monitoring service the cluster should use to write metrics. + * 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 * @param {string} [request.name] @@ -908,19 +922,19 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {Object} request.addonsConfig - * The desired configurations for the various addons available to run in the + * Required. The desired configurations for the various addons available to run in the * cluster. * * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} @@ -989,20 +1003,20 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string[]} request.locations - * The desired list of Google Compute Engine - * [locations](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes + * 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. @@ -1073,19 +1087,19 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.masterVersion - * The Kubernetes version to change the master to. + * Required. The Kubernetes version to change the master to. * * Users may specify either explicit versions offered by Kubernetes Engine or * version aliases, which have the following behavior: @@ -1155,30 +1169,30 @@ class ClusterManagerClient { } /** - * Used to set master auth materials. Currently supports :- - * Changing the admin password for a specific cluster. - * This can be either via password generation or explicitly set the password. + * Sets master auth materials. Currently supports changing the admin password + * or a specific cluster, either via password generation or explicitly setting + * the password. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {number} request.action - * The exact form of action to be taken on the master auth. + * Required. The exact form of action to be taken on the master auth. * * The number should be among the values of [Action]{@link google.container.v1.Action} * @param {Object} request.update - * A description of the update. + * Required. A description of the update. * * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} * @param {string} [request.name] @@ -1249,23 +1263,23 @@ class ClusterManagerClient { * Firewalls and routes that were configured during cluster creation * are also deleted. * - * Other Google Compute Engine resources that might be in use by the cluster - * (e.g. load balancer resources) will not be deleted if they weren't present - * at the initial create time. + * Other Google Compute Engine resources that might be in use by the cluster, + * such as load balancer resources, are not deleted if they weren't present + * when the cluster was initially created. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to delete. + * Required. Deprecated. The name of the cluster to delete. * This field has been deprecated and replaced by the name field. * @param {string} [request.name] * The name (project, location, cluster) of the cluster to delete. @@ -1330,11 +1344,11 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} [request.parent] @@ -1399,16 +1413,16 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.operationId - * Deprecated. The server-assigned `name` of the operation. + * Required. Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. * @param {string} [request.name] * The name (project, location, operation id) of the operation to get. @@ -1473,15 +1487,15 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.operationId - * Deprecated. The server-assigned `name` of the operation. + * Required. Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. * @param {string} [request.name] * The name (project, location, operation id) of the operation to cancel. @@ -1533,21 +1547,21 @@ class ClusterManagerClient { } /** - * Returns configuration info about the Kubernetes Engine service. + * Returns configuration info about the Google Kubernetes Engine service. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} [request.name] - * The name (project and location) of the server config to get - * Specified in the format 'projects/* /locations/*'. + * The name (project and location) of the server config to get, + * specified in the format 'projects/* /locations/*'. * @param {Object} [options] * Optional parameters. You can override the default settings for this call, e.g, timeout, * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. @@ -1606,16 +1620,16 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. * @param {string} [request.parent] * The parent (project, location, cluster id) where the node pools will be @@ -1675,24 +1689,24 @@ class ClusterManagerClient { } /** - * Retrieves the node pool requested. + * Retrieves the requested node pool. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Deprecated. The name of the node pool. + * Required. Deprecated. The name of the node pool. * This field has been deprecated and replaced by the name field. * @param {string} [request.name] * The name (project, location, cluster, node pool id) of the node pool to @@ -1760,19 +1774,19 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. * @param {Object} request.nodePool - * The node pool to create. + * Required. The node pool to create. * * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} * @param {string} [request.parent] @@ -1841,19 +1855,19 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Deprecated. The name of the node pool to delete. + * Required. Deprecated. The name of the node pool to delete. * This field has been deprecated and replaced by the name field. * @param {string} [request.name] * The name (project, location, cluster, node pool id) of the node pool to @@ -1916,25 +1930,25 @@ class ClusterManagerClient { } /** - * Roll back the previously Aborted or Failed NodePool upgrade. - * This will be an no-op if the last upgrade successfully completed. + * Rolls back a previously Aborted or Failed NodePool upgrade. + * This makes no changes if the last upgrade successfully completed. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to rollback. + * Required. Deprecated. The name of the cluster to rollback. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Deprecated. The name of the node pool to rollback. + * Required. Deprecated. The name of the node pool to rollback. * This field has been deprecated and replaced by the name field. * @param {string} [request.name] * The name (project, location, cluster, node pool id) of the node poll to @@ -2006,22 +2020,22 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to update. + * Required. Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Deprecated. The name of the node pool to update. + * Required. Deprecated. The name of the node pool to update. * This field has been deprecated and replaced by the name field. * @param {Object} request.management - * NodeManagement configuration for the node pool. + * Required. NodeManagement configuration for the node pool. * * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} * @param {string} [request.name] @@ -2096,21 +2110,21 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {Object.} request.resourceLabels - * The labels to set for that cluster. + * Required. The labels to set for that cluster. * @param {string} request.labelFingerprint - * The fingerprint of the previous set of labels for this resource, + * Required. The fingerprint of the previous set of labels for this resource, * 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 @@ -2183,19 +2197,19 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to update. + * Required. Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. * @param {boolean} request.enabled - * Whether ABAC authorization will be enabled in the cluster. + * Required. Whether ABAC authorization will be enabled in the cluster. * @param {string} [request.name] * The name (project, location, cluster id) of the cluster to set legacy abac. * Specified in the format 'projects/* /locations/* /clusters/*'. @@ -2256,21 +2270,21 @@ class ClusterManagerClient { } /** - * Start master IP rotation. + * Starts master IP rotation. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {string} [request.name] * The name (project, location, cluster id) of the cluster to start IP @@ -2337,16 +2351,16 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {string} [request.name] * The name (project, location, cluster id) of the cluster to complete IP @@ -2411,22 +2425,22 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster to update. + * Required. Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Deprecated. The name of the node pool to update. + * Required. Deprecated. The name of the node pool to update. * This field has been deprecated and replaced by the name field. * @param {number} request.nodeCount - * The desired node count for the pool. + * Required. The desired node count for the pool. * @param {string} [request.name] * The name (project, location, cluster, node pool id) of the node pool to set * size. @@ -2490,24 +2504,24 @@ class ClusterManagerClient { } /** - * Enables/Disables Network Policy for a cluster. + * Enables or disables Network Policy for a cluster. * * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @param {string} request.clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {Object} request.networkPolicy - * Configuration options for the NetworkPolicy feature. + * Required. Configuration options for the NetworkPolicy feature. * * This object should have the same structure as [NetworkPolicy]{@link google.container.v1.NetworkPolicy} * @param {string} [request.name] @@ -2575,16 +2589,16 @@ class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * The Google Developers Console [project ID or project + * Required. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * @param {string} request.zone - * The name of the Google Compute Engine + * Required. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster * resides. * @param {string} request.clusterId - * The name of the cluster to update. + * Required. The name of the cluster to update. * @param {Object} request.maintenancePolicy - * The maintenance policy to be set for the cluster. An empty field + * Required. The maintenance policy to be set for the cluster. An empty field * clears the existing maintenance policy. * * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} @@ -2647,6 +2661,175 @@ class ClusterManagerClient { return this._innerApiCalls.setMaintenancePolicy(request, options, callback); } + + /** + * Lists subnetworks that are usable for creating clusters in a project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} [request.parent] + * The parent project where subnetworks are usable. + * Specified in the format 'projects/*'. + * @param {string} [request.filter] + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * @param {number} [request.pageSize] + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Array, ?Object, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is Array of [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork}. + * + * When autoPaginate: false is specified through options, it contains the result + * in a single response. If the response indicates the next page exists, the third + * parameter is set to be used for the next request object. The fourth parameter keeps + * the raw response object of an object representing [ListUsableSubnetworksResponse]{@link google.container.v1.ListUsableSubnetworksResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork}. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} in a single response. + * The second element is the next request object if the response + * indicates the next page exists, or null. The third element is + * an object representing [ListUsableSubnetworksResponse]{@link google.container.v1.ListUsableSubnetworksResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * const client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * // Iterate over all elements. + * client.listUsableSubnetworks({}) + * .then(responses => { + * const resources = responses[0]; + * for (const resource of resources) { + * // doThingsWith(resource) + * } + * }) + * .catch(err => { + * console.error(err); + * }); + * + * // Or obtain the paged response. + * + * const options = {autoPaginate: false}; + * const callback = responses => { + * // The actual resources in a response. + * const resources = responses[0]; + * // The next request if the response shows that there are more responses. + * const nextRequest = responses[1]; + * // The actual response object, if necessary. + * // const rawResponse = responses[2]; + * for (const resource of resources) { + * // doThingsWith(resource); + * } + * if (nextRequest) { + * // Fetch the next page. + * return client.listUsableSubnetworks(nextRequest, options).then(callback); + * } + * } + * client.listUsableSubnetworks({}, options) + * .then(callback) + * .catch(err => { + * console.error(err); + * }); + */ + listUsableSubnetworks(request, options, callback) { + if (options instanceof Function && callback === undefined) { + callback = options; + options = {}; + } + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent, + }); + + return this._innerApiCalls.listUsableSubnetworks( + request, + options, + callback + ); + } + + /** + * Equivalent to {@link listUsableSubnetworks}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listUsableSubnetworks} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} [request.parent] + * The parent project where subnetworks are usable. + * Specified in the format 'projects/*'. + * @param {string} [request.filter] + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * @param {number} [request.pageSize] + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @returns {Stream} + * An object stream which emits an object representing [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} on 'data' event. + * + * @example + * + * const container = require('@google-cloud/container'); + * + * const client = new container.v1.ClusterManagerClient({ + * // optional auth parameters. + * }); + * + * + * client.listUsableSubnetworksStream({}) + * .on('data', element => { + * // doThingsWith(element) + * }).on('error', err => { + * console.log(err); + * }); + */ + listUsableSubnetworksStream(request, options) { + options = options || {}; + + return this._descriptors.page.listUsableSubnetworks.createStream( + this._innerApiCalls.listUsableSubnetworks, + request, + options + ); + } } module.exports = ClusterManagerClient; diff --git a/packages/google-container/src/v1/cluster_manager_client_config.json b/packages/google-container/src/v1/cluster_manager_client_config.json index 2c653557a2f..d27ba1915db 100644 --- a/packages/google-container/src/v1/cluster_manager_client_config.json +++ b/packages/google-container/src/v1/cluster_manager_client_config.json @@ -21,12 +21,12 @@ }, "methods": { "ListClusters": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "GetCluster": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, @@ -36,139 +36,144 @@ "retry_params_name": "default" }, "UpdateCluster": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "UpdateNodePool": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNodePoolAutoscaling": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLoggingService": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetMonitoringService": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetAddonsConfig": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLocations": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "UpdateMaster": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetMasterAuth": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "DeleteCluster": { - "timeout_millis": 20000, - "retry_codes_name": "idempotent", + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "ListOperations": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "GetOperation": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "CancelOperation": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "GetServerConfig": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "ListNodePools": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "GetNodePool": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "CreateNodePool": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "DeleteNodePool": { - "timeout_millis": 20000, - "retry_codes_name": "idempotent", + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "RollbackNodePoolUpgrade": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNodePoolManagement": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLabels": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLegacyAbac": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "StartIPRotation": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "CompleteIPRotation": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNodePoolSize": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNetworkPolicy": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetMaintenancePolicy": { - "timeout_millis": 20000, + "timeout_millis": 60000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" + }, + "ListUsableSubnetworks": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" } } } diff --git a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js index 127e5df9542..6ab2fca1744 100644 --- a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js +++ b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js @@ -63,6 +63,7 @@ * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -70,6 +71,13 @@ * "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" * * 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 @@ -94,9 +102,9 @@ * @property {number} localSsdCount * The number of local SSD disks to be attached to the node. * - * The limit for this value is dependant upon the maximum number of + * The limit for this value is dependent upon the maximum number of * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd#local_ssd_limits + * https://cloud.google.com/compute/docs/disks/local-ssd * for more information. * * @property {string[]} tags @@ -131,6 +139,19 @@ * information, read [how to specify min CPU * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) * + * @property {Object[]} taints + * 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/ + * + * This object should have the same structure as [NodeTaint]{@link google.container.v1.NodeTaint} + * + * @property {Object} shieldedInstanceConfig + * Shielded Instance options. + * + * This object should have the same structure as [ShieldedInstanceConfig]{@link google.container.v1.ShieldedInstanceConfig} + * * @typedef NodeConfig * @memberof google.container.v1 * @see [google.container.v1.NodeConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -139,6 +160,87 @@ const NodeConfig = { // This is for documentation. Actual contents will be loaded by gRPC. }; +/** + * A set of Shielded Instance options. + * + * @property {boolean} enableSecureBoot + * Defines whether the instance has Secure Boot enabled. + * + * Secure Boot helps ensure that the system only runs authentic software by + * verifying the digital signature of all boot components, and halting the + * boot process if signature verification fails. + * + * @property {boolean} enableIntegrityMonitoring + * Defines whether the instance has integrity monitoring enabled. + * + * Enables monitoring and attestation of the boot integrity of the instance. + * The attestation is performed against the integrity policy baseline. This + * baseline is initially derived from the implicitly trusted boot image when + * the instance is created. + * + * @typedef ShieldedInstanceConfig + * @memberof google.container.v1 + * @see [google.container.v1.ShieldedInstanceConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const ShieldedInstanceConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * 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/ + * + * @property {string} key + * Key for taint. + * + * @property {string} value + * Value for taint. + * + * @property {number} effect + * Effect for taint. + * + * The number should be among the values of [Effect]{@link google.container.v1.Effect} + * + * @typedef NodeTaint + * @memberof google.container.v1 + * @see [google.container.v1.NodeTaint definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const NodeTaint = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * Possible values for Effect in taint. + * + * @enum {number} + * @memberof google.container.v1 + */ + Effect: { + + /** + * Not set + */ + EFFECT_UNSPECIFIED: 0, + + /** + * NoSchedule + */ + NO_SCHEDULE: 1, + + /** + * PreferNoSchedule + */ + PREFER_NO_SCHEDULE: 2, + + /** + * NoExecute + */ + NO_EXECUTE: 3 + } +}; + /** * The authentication information for accessing the master endpoint. * Authentication can be done using HTTP basic auth or using client @@ -146,8 +248,8 @@ const NodeConfig = { * * @property {string} username * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, you can disable basic authentication by - * providing an empty username. + * For clusters v1.6.0 and later, basic authentication can be disabled by + * leaving username unspecified (or setting it to the empty string). * * @property {string} password * The password to use for HTTP basic authentication to the master endpoint. @@ -215,6 +317,10 @@ const ClientCertificateConfig = { * * @property {Object} kubernetesDashboard * Configuration for the Kubernetes Dashboard. + * This addon is deprecated, and will be disabled in 1.15. It is recommended + * to use the Cloud Console to manage and monitor your Kubernetes clusters, + * workloads and applications. For more information, see: + * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards * * This object should have the same structure as [KubernetesDashboard]{@link google.container.v1.KubernetesDashboard} * @@ -225,6 +331,12 @@ const ClientCertificateConfig = { * * This object should have the same structure as [NetworkPolicyConfig]{@link google.container.v1.NetworkPolicyConfig} * + * @property {Object} cloudRunConfig + * Configuration for the Cloud Run addon, which allows the user to use a + * managed Knative service. + * + * This object should have the same structure as [CloudRunConfig]{@link google.container.v1.CloudRunConfig} + * * @typedef AddonsConfig * @memberof google.container.v1 * @see [google.container.v1.AddonsConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -329,6 +441,39 @@ const PrivateClusterConfig = { // This is for documentation. Actual contents will be loaded by gRPC. }; +/** + * Configuration for returning group information from authenticators. + * + * @property {boolean} enabled + * Whether this cluster should return group membership lookups + * during authentication using a group of security groups. + * + * @property {string} securityGroup + * The name of the security group-of-groups to be used. Only relevant + * if enabled = true. + * + * @typedef AuthenticatorGroupsConfig + * @memberof google.container.v1 + * @see [google.container.v1.AuthenticatorGroupsConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const AuthenticatorGroupsConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Configuration options for the Cloud Run feature. + * + * @property {boolean} disabled + * Whether Cloud Run addon is enabled for this cluster. + * + * @typedef CloudRunConfig + * @memberof google.container.v1 + * @see [google.container.v1.CloudRunConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const CloudRunConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + /** * Configuration options for the master authorized networks feature. Enabled * master authorized networks will disallow all external traffic to access @@ -339,7 +484,7 @@ const PrivateClusterConfig = { * Whether or not master authorized networks is enabled. * * @property {Object[]} cidrBlocks - * cidr_blocks define up to 10 external networks that could access + * cidr_blocks define up to 50 external networks that could access * Kubernetes master through HTTPS. * * This object should have the same structure as [CidrBlock]{@link google.container.v1.CidrBlock} @@ -426,6 +571,21 @@ const NetworkPolicy = { } }; +/** + * Configuration for Binary Authorization. + * + * @property {boolean} enabled + * Enable Binary Authorization for this cluster. If enabled, all container + * images will be validated by Binary Authorization. + * + * @typedef BinaryAuthorization + * @memberof google.container.v1 + * @see [google.container.v1.BinaryAuthorization definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const BinaryAuthorization = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + /** * Configuration for controlling how IPs are allocated in the cluster. * @@ -519,6 +679,23 @@ const NetworkPolicy = { * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range * to use. * + * @property {string} tpuIpv4CidrBlock + * The IP address range of the Cloud TPUs in this cluster. If unspecified, a + * range will be automatically chosen with the default size. + * + * This field is only applicable when `use_ip_aliases` is true. + * + * If unspecified, the range will use the default size. + * + * Set to /netmask (e.g. `/14`) to have a range chosen with a specific + * netmask. + * + * Set to a + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. + * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range + * to use. + * * @typedef IPAllocationPolicy * @memberof google.container.v1 * @see [google.container.v1.IPAllocationPolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -532,7 +709,8 @@ const IPAllocationPolicy = { * * @property {string} name * The name of this cluster. The name must be unique within this project - * and zone, and can be up to 40 characters with the following restrictions: + * and location (e.g. zone or region), and can be up to 40 characters with + * the following restrictions: * * * Lowercase letters, numbers, and hyphens only. * * Must start with a letter. @@ -551,22 +729,29 @@ const IPAllocationPolicy = { * "node_config") will be used to create a "NodePool" object with an * auto-generated name. Do not use this and a node_pool at the same time. * + * This field is deprecated, use node_pool.initial_node_count instead. + * * @property {Object} nodeConfig * Parameters used in creating the cluster's nodes. - * See `nodeConfig` for the description of its properties. * For requests, this field should only be used in lieu of a * "node_pool" object, since this configuration (along with the * "initial_node_count") will be used to create a "NodePool" object with an * auto-generated name. Do not use this and a node_pool at the same time. * For responses, this field will be populated with the node configuration of - * the first node pool. + * the first node pool. (For configuration of each node pool, see + * `node_pool.config`) * * If unspecified, the defaults are used. + * This field is deprecated, use node_pool.config instead. * * This object should have the same structure as [NodeConfig]{@link google.container.v1.NodeConfig} * * @property {Object} masterAuth * The authentication information for accessing the master endpoint. + * If unspecified, the defaults are used: + * For clusters before v1.12, if master_auth is unspecified, `username` will + * be set to "admin", a random password will be generated, and a client + * certificate will be issued. * * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} * @@ -574,6 +759,8 @@ const IPAllocationPolicy = { * 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. * * if left as an empty string,`logging.googleapis.com` will be used. @@ -617,7 +804,7 @@ const IPAllocationPolicy = { * * @property {string[]} locations * The list of Google Compute Engine - * [locations](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes + * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes * should be located. * * @property {boolean} enableKubernetesAlpha @@ -660,16 +847,54 @@ const IPAllocationPolicy = { * * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} * + * @property {Object} binaryAuthorization + * Configuration for Binary Authorization. + * + * This object should have the same structure as [BinaryAuthorization]{@link google.container.v1.BinaryAuthorization} + * + * @property {Object} autoscaling + * Cluster-level autoscaling configuration. + * + * This object should have the same structure as [ClusterAutoscaling]{@link google.container.v1.ClusterAutoscaling} + * * @property {Object} networkConfig * Configuration for cluster networking. * * This object should have the same structure as [NetworkConfig]{@link google.container.v1.NetworkConfig} * + * @property {Object} defaultMaxPodsConstraint + * The default constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool of this cluster. Only honored + * if cluster created with IP Alias support. + * + * This object should have the same structure as [MaxPodsConstraint]{@link google.container.v1.MaxPodsConstraint} + * + * @property {Object} resourceUsageExportConfig + * Configuration for exporting resource usages. Resource usage export is + * disabled when this config is unspecified. + * + * This object should have the same structure as [ResourceUsageExportConfig]{@link google.container.v1.ResourceUsageExportConfig} + * + * @property {Object} authenticatorGroupsConfig + * Configuration controlling RBAC group membership information. + * + * This object should have the same structure as [AuthenticatorGroupsConfig]{@link google.container.v1.AuthenticatorGroupsConfig} + * * @property {Object} privateClusterConfig * Configuration for private cluster. * * This object should have the same structure as [PrivateClusterConfig]{@link google.container.v1.PrivateClusterConfig} * + * @property {Object} databaseEncryption + * Configuration of etcd encryption. + * + * This object should have the same structure as [DatabaseEncryption]{@link google.container.v1.DatabaseEncryption} + * + * @property {Object} verticalPodAutoscaling + * Cluster-level Vertical Pod Autoscaling configuration. + * + * This object should have the same structure as [VerticalPodAutoscaling]{@link google.container.v1.VerticalPodAutoscaling} + * * @property {string} selfLink * [Output only] Server-defined URL for the resource. * @@ -707,7 +932,7 @@ const IPAllocationPolicy = { * * @property {string} currentNodeVersion * [Output only] Deprecated, use - * [NodePool.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools#resource-nodepool) + * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools#resource-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. @@ -728,7 +953,8 @@ const IPAllocationPolicy = { * @property {number} nodeIpv4CidrSize * [Output only] The size of the address space on each node for hosting * containers. This is provisioned from within the `container_ipv4_cidr` - * range. + * range. This field will only be set when cluster is in route-based network + * mode. * * @property {string} servicesIpv4Cidr * [Output only] The IP address range of the Kubernetes services in @@ -741,7 +967,8 @@ const IPAllocationPolicy = { * Deprecated. Use node_pools.instance_group_urls. * * @property {number} currentNodeCount - * [Output only] The number of nodes currently in the cluster. + * [Output only] The number of nodes currently in the cluster. Deprecated. + * Call Kubernetes API directly to retrieve node information. * * @property {string} expireTime * [Output only] The time the cluster will be automatically @@ -753,6 +980,19 @@ const IPAllocationPolicy = { * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which * the cluster resides. * + * @property {boolean} enableTpu + * Enable the ability to use Cloud TPUs in this cluster. + * + * @property {string} tpuIpv4CidrBlock + * [Output only] The IP address range of the Cloud TPUs in this cluster, in + * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + * notation (e.g. `1.2.3.4/29`). + * + * @property {Object[]} conditions + * Which conditions caused the current cluster state. + * + * This object should have the same structure as [StatusCondition]{@link google.container.v1.StatusCondition} + * * @typedef Cluster * @memberof google.container.v1 * @see [google.container.v1.Cluster definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -832,6 +1072,8 @@ const Cluster = { * 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 * @@ -850,6 +1092,11 @@ const Cluster = { * The desired image type for the node pool. * NOTE: Set the "desired_node_pool" field as well. * + * @property {Object} desiredDatabaseEncryption + * Configuration of etcd encryption. + * + * This object should have the same structure as [DatabaseEncryption]{@link google.container.v1.DatabaseEncryption} + * * @property {Object} desiredNodePoolAutoscaling * Autoscaler configuration for the node pool specified in * desired_node_pool_id. If there is only one pool in the @@ -860,7 +1107,7 @@ const Cluster = { * * @property {string[]} desiredLocations * The desired list of Google Compute Engine - * [locations](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes + * [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. @@ -872,6 +1119,40 @@ const Cluster = { * * This object should have the same structure as [MasterAuthorizedNetworksConfig]{@link google.container.v1.MasterAuthorizedNetworksConfig} * + * @property {Object} desiredClusterAutoscaling + * Cluster-level autoscaling configuration. + * + * This object should have the same structure as [ClusterAutoscaling]{@link google.container.v1.ClusterAutoscaling} + * + * @property {Object} desiredBinaryAuthorization + * The desired configuration options for the Binary Authorization feature. + * + * This object should have the same structure as [BinaryAuthorization]{@link google.container.v1.BinaryAuthorization} + * + * @property {string} desiredLoggingService + * 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 + * + * @property {Object} desiredResourceUsageExportConfig + * The desired configuration for exporting resource usage. + * + * This object should have the same structure as [ResourceUsageExportConfig]{@link google.container.v1.ResourceUsageExportConfig} + * + * @property {Object} desiredVerticalPodAutoscaling + * Cluster-level Vertical Pod Autoscaling configuration. + * + * This object should have the same structure as [VerticalPodAutoscaling]{@link google.container.v1.VerticalPodAutoscaling} + * + * @property {Object} desiredIntraNodeVisibilityConfig + * The desired config of Intra-node visibility. + * + * This object should have the same structure as [IntraNodeVisibilityConfig]{@link google.container.v1.IntraNodeVisibilityConfig} + * * @property {string} desiredMasterVersion * The Kubernetes version to change the master to. * @@ -941,6 +1222,16 @@ const ClusterUpdate = { * [Output only] The time the operation completed, in * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. * + * @property {Object[]} clusterConditions + * Which conditions caused the current cluster state. + * + * This object should have the same structure as [StatusCondition]{@link google.container.v1.StatusCondition} + * + * @property {Object[]} nodepoolConditions + * Which conditions caused the current node pool state. + * + * This object should have the same structure as [StatusCondition]{@link google.container.v1.StatusCondition} + * * @typedef Operation * @memberof google.container.v1 * @see [google.container.v1.Operation definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -1081,18 +1372,18 @@ const Operation = { * CreateClusterRequest creates a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the parent field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {Object} cluster - * A [cluster + * Required. A [cluster * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) * * This object should have the same structure as [Cluster]{@link google.container.v1.Cluster} @@ -1113,18 +1404,18 @@ const CreateClusterRequest = { * GetClusterRequest gets the settings of a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to retrieve. + * Required. Deprecated. The name of the cluster to retrieve. * This field has been deprecated and replaced by the name field. * * @property {string} name @@ -1143,22 +1434,22 @@ const GetClusterRequest = { * UpdateClusterRequest updates the settings of a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * * @property {Object} update - * A description of the update. + * Required. A description of the update. * * This object should have the same structure as [ClusterUpdate]{@link google.container.v1.ClusterUpdate} * @@ -1178,26 +1469,26 @@ const UpdateClusterRequest = { * UpdateNodePoolRequests update a node pool's image and/or version. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * Deprecated. The name of the node pool to upgrade. + * Required. Deprecated. The name of the node pool to upgrade. * This field has been deprecated and replaced by the name field. * * @property {string} nodeVersion - * The Kubernetes version to change the nodes to (typically an + * Required. The Kubernetes version to change the nodes to (typically an * upgrade). * * Users may specify either explicit versions offered by Kubernetes Engine or @@ -1210,7 +1501,7 @@ const UpdateClusterRequest = { * - "-": picks the Kubernetes master version * * @property {string} imageType - * The desired image type for the node pool. + * Required. The desired image type for the node pool. * * @property {string} name * The name (project, location, cluster, node pool) of the node pool to @@ -1229,26 +1520,26 @@ const UpdateNodePoolRequest = { * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * Deprecated. The name of the node pool to upgrade. + * Required. Deprecated. The name of the node pool to upgrade. * This field has been deprecated and replaced by the name field. * * @property {Object} autoscaling - * Autoscaling configuration for the node pool. + * Required. Autoscaling configuration for the node pool. * * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} * @@ -1269,22 +1560,22 @@ const SetNodePoolAutoscalingRequest = { * SetLoggingServiceRequest sets the logging service of a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * * @property {string} loggingService - * The logging service the cluster should use to write metrics. + * Required. The logging service the cluster should use to write metrics. * Currently available options: * * * "logging.googleapis.com" - the Google Cloud Logging service @@ -1306,24 +1597,26 @@ const SetLoggingServiceRequest = { * SetMonitoringServiceRequest sets the monitoring service of a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * * @property {string} monitoringService - * The monitoring service the cluster should use to write metrics. + * 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 * @@ -1343,22 +1636,22 @@ const SetMonitoringServiceRequest = { * SetAddonsConfigRequest sets the addons associated with the cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * * @property {Object} addonsConfig - * The desired configurations for the various addons available to run in the + * Required. The desired configurations for the various addons available to run in the * cluster. * * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} @@ -1379,23 +1672,23 @@ const SetAddonsConfigRequest = { * SetLocationsRequest sets the locations of the cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * * @property {string[]} locations - * The desired list of Google Compute Engine - * [locations](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes + * 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. @@ -1418,22 +1711,22 @@ const SetLocationsRequest = { * UpdateMasterRequest updates the master of the cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * * @property {string} masterVersion - * The Kubernetes version to change the master to. + * Required. The Kubernetes version to change the master to. * * Users may specify either explicit versions offered by Kubernetes Engine or * version aliases, which have the following behavior: @@ -1460,27 +1753,27 @@ const UpdateMasterRequest = { * SetMasterAuthRequest updates the admin password of a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to upgrade. + * Required. Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * * @property {number} action - * The exact form of action to be taken on the master auth. + * Required. The exact form of action to be taken on the master auth. * * The number should be among the values of [Action]{@link google.container.v1.Action} * * @property {Object} update - * A description of the update. + * Required. A description of the update. * * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} * @@ -1532,18 +1825,18 @@ const SetMasterAuthRequest = { * DeleteClusterRequest deletes a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to delete. + * Required. Deprecated. The name of the cluster to delete. * This field has been deprecated and replaced by the name field. * * @property {string} name @@ -1562,12 +1855,12 @@ const DeleteClusterRequest = { * ListClustersRequest lists clusters. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the parent field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. @@ -1610,18 +1903,18 @@ const ListClustersResponse = { * GetOperationRequest gets a single operation. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} operationId - * Deprecated. The server-assigned `name` of the operation. + * Required. Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. * * @property {string} name @@ -1640,12 +1933,12 @@ const GetOperationRequest = { * ListOperationsRequest lists operations. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the parent field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * @@ -1666,17 +1959,17 @@ const ListOperationsRequest = { * CancelOperationRequest cancels a single operation. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} operationId - * Deprecated. The server-assigned `name` of the operation. + * Required. Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. * * @property {string} name @@ -1715,18 +2008,18 @@ const ListOperationsResponse = { * Gets the current Kubernetes Engine service configuration. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} name - * The name (project and location) of the server config to get - * Specified in the format 'projects/* /locations/*'. + * The name (project and location) of the server config to get, + * specified in the format 'projects/* /locations/*'. * * @typedef GetServerConfigRequest * @memberof google.container.v1 @@ -1766,22 +2059,22 @@ const ServerConfig = { * CreateNodePoolRequest creates a node pool for a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the parent field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. * * @property {Object} nodePool - * The node pool to create. + * Required. The node pool to create. * * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} * @@ -1802,22 +2095,22 @@ const CreateNodePoolRequest = { * DeleteNodePoolRequest deletes a node pool for a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * Deprecated. The name of the node pool to delete. + * Required. Deprecated. The name of the node pool to delete. * This field has been deprecated and replaced by the name field. * * @property {string} name @@ -1837,18 +2130,18 @@ const DeleteNodePoolRequest = { * ListNodePoolsRequest lists the node pool(s) for a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the parent field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. * * @property {string} parent @@ -1867,22 +2160,22 @@ const ListNodePoolsRequest = { * GetNodePoolRequest retrieves a node pool for a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * Deprecated. The name of the node pool. + * Required. Deprecated. The name of the node pool. * This field has been deprecated and replaced by the name field. * * @property {string} name @@ -1951,6 +2244,20 @@ const GetNodePoolRequest = { * * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} * + * @property {Object} maxPodsConstraint + * The constraint on the maximum number of pods that can be run + * simultaneously on a node in the node pool. + * + * This object should have the same structure as [MaxPodsConstraint]{@link google.container.v1.MaxPodsConstraint} + * + * @property {Object[]} conditions + * Which conditions caused the current node pool state. + * + * This object should have the same structure as [StatusCondition]{@link google.container.v1.StatusCondition} + * + * @property {number} podIpv4CidrSize + * [Output only] The pod CIDR block size per node in this node pool. + * * @typedef NodePool * @memberof google.container.v1 * @see [google.container.v1.NodePool definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -2067,6 +2374,13 @@ const AutoUpgradeOptions = { * * This object should have the same structure as [MaintenanceWindow]{@link google.container.v1.MaintenanceWindow} * + * @property {string} resourceVersion + * 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 + * resource version and include it with requests to set the policy. + * * @typedef MaintenancePolicy * @memberof google.container.v1 * @see [google.container.v1.MaintenancePolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -2083,6 +2397,17 @@ const MaintenancePolicy = { * * This object should have the same structure as [DailyMaintenanceWindow]{@link google.container.v1.DailyMaintenanceWindow} * + * @property {Object} recurringWindow + * RecurringWindow specifies some number of recurring time periods for + * maintenance to occur. The time windows may be overlapping. If no + * maintenance windows are set, maintenance can occur at any time. + * + * This object should have the same structure as [RecurringTimeWindow]{@link google.container.v1.RecurringTimeWindow} + * + * @property {Object.} maintenanceExclusions + * Exceptions to maintenance window. Non-emergency maintenance should not + * occur in these windows. + * * @typedef MaintenanceWindow * @memberof google.container.v1 * @see [google.container.v1.MaintenanceWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -2091,13 +2416,80 @@ const MaintenanceWindow = { // This is for documentation. Actual contents will be loaded by gRPC. }; +/** + * Represents an arbitrary window of time. + * + * @property {Object} startTime + * The time that the window first starts. + * + * This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp} + * + * @property {Object} endTime + * The time that the window ends. The end time should take place after the + * start time. + * + * This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp} + * + * @typedef TimeWindow + * @memberof google.container.v1 + * @see [google.container.v1.TimeWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const TimeWindow = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Represents an arbitrary window of time that recurs. + * + * @property {Object} window + * The window of the first recurrence. + * + * This object should have the same structure as [TimeWindow]{@link google.container.v1.TimeWindow} + * + * @property {string} recurrence + * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how + * this window reccurs. They go on for the span of time between the start and + * end time. + * + * For example, to have something repeat every weekday, you'd use: + * FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + * To repeat some window daily (equivalent to the DailyMaintenanceWindow): + * FREQ=DAILY + * For the first weekend of every month: + * 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 + * + * 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 + * + * 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. + * + * @typedef RecurringTimeWindow + * @memberof google.container.v1 + * @see [google.container.v1.RecurringTimeWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const RecurringTimeWindow = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + /** * Time window specified for daily maintenance operations. * * @property {string} startTime * Time within the maintenance window to start the maintenance operations. * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "HH:MM”, where HH : [00-23] and MM : [00-59] GMT. + * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. * * @property {string} duration * [Output only] Duration of the time window, automatically chosen to be @@ -2118,26 +2510,26 @@ const DailyMaintenanceWindow = { * pool. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to update. + * Required. Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * Deprecated. The name of the node pool to update. + * Required. Deprecated. The name of the node pool to update. * This field has been deprecated and replaced by the name field. * * @property {Object} management - * NodeManagement configuration for the node pool. + * Required. NodeManagement configuration for the node pool. * * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} * @@ -2159,26 +2551,26 @@ const SetNodePoolManagementRequest = { * pool. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to update. + * Required. Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * Deprecated. The name of the node pool to update. + * Required. Deprecated. The name of the node pool to update. * This field has been deprecated and replaced by the name field. * * @property {number} nodeCount - * The desired node count for the pool. + * Required. The desired node count for the pool. * * @property {string} name * The name (project, location, cluster, node pool id) of the node pool to set @@ -2199,22 +2591,22 @@ const SetNodePoolSizeRequest = { * completed. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to rollback. + * Required. Deprecated. The name of the cluster to rollback. * This field has been deprecated and replaced by the name field. * * @property {string} nodePoolId - * Deprecated. The name of the node pool to rollback. + * Required. Deprecated. The name of the node pool to rollback. * This field has been deprecated and replaced by the name field. * * @property {string} name @@ -2246,6 +2638,80 @@ const ListNodePoolsResponse = { // This is for documentation. Actual contents will be loaded by gRPC. }; +/** + * ClusterAutoscaling contains global, per-cluster information + * required by Cluster Autoscaler to automatically adjust + * the size of the cluster and create/delete + * node pools based on the current needs. + * + * @property {boolean} enableNodeAutoprovisioning + * Enables automatic node pool creation and deletion. + * + * @property {Object[]} resourceLimits + * Contains global constraints regarding minimum and maximum + * amount of resources in the cluster. + * + * This object should have the same structure as [ResourceLimit]{@link google.container.v1.ResourceLimit} + * + * @property {Object} autoprovisioningNodePoolDefaults + * AutoprovisioningNodePoolDefaults contains defaults for a node pool + * created by NAP. + * + * This object should have the same structure as [AutoprovisioningNodePoolDefaults]{@link google.container.v1.AutoprovisioningNodePoolDefaults} + * + * @property {string[]} autoprovisioningLocations + * 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. + * + * @typedef ClusterAutoscaling + * @memberof google.container.v1 + * @see [google.container.v1.ClusterAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const ClusterAutoscaling = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * AutoprovisioningNodePoolDefaults contains defaults for a node pool created + * by NAP. + * + * @property {string[]} oauthScopes + * Scopes that are used by NAP when creating node pools. If oauth_scopes are + * specified, service_account should be empty. + * + * @property {string} serviceAccount + * The Google Cloud Platform Service Account to be used by the node VMs. If + * service_account is specified, scopes should be empty. + * + * @typedef AutoprovisioningNodePoolDefaults + * @memberof google.container.v1 + * @see [google.container.v1.AutoprovisioningNodePoolDefaults definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const AutoprovisioningNodePoolDefaults = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Contains information about amount of some resource in the cluster. + * For memory, value should be in GB. + * + * @property {string} resourceType + * Resource name "cpu", "memory" or gpu-specific string. + * + * @property {number} minimum + * Minimum amount of the resource in the cluster. + * + * @property {number} maximum + * Maximum amount of the resource in the cluster. + * + * @typedef ResourceLimit + * @memberof google.container.v1 + * @see [google.container.v1.ResourceLimit definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const ResourceLimit = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + /** * NodePoolAutoscaling contains information required by cluster autoscaler to * adjust the size of the node pool to the current cluster usage. @@ -2261,6 +2727,9 @@ const ListNodePoolsResponse = { * Maximum number of nodes in the NodePool. Must be >= min_node_count. There * has to enough quota to scale up the cluster. * + * @property {boolean} autoprovisioned + * Can this node pool be deleted automatically. + * * @typedef NodePoolAutoscaling * @memberof google.container.v1 * @see [google.container.v1.NodePoolAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} @@ -2275,25 +2744,25 @@ const NodePoolAutoscaling = { * resources used by that cluster * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * * @property {Object.} resourceLabels - * The labels to set for that cluster. + * Required. The labels to set for that cluster. * * @property {string} labelFingerprint - * The fingerprint of the previous set of labels for this resource, + * Required. The fingerprint of the previous set of labels for this resource, * 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 @@ -2317,22 +2786,22 @@ const SetLabelsRequest = { * a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster to update. + * Required. Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. * * @property {boolean} enabled - * Whether ABAC authorization will be enabled in the cluster. + * Required. Whether ABAC authorization will be enabled in the cluster. * * @property {string} name * The name (project, location, cluster id) of the cluster to set legacy abac. @@ -2351,18 +2820,18 @@ const SetLegacyAbacRequest = { * a node upgrade on each node pool to point to the new IP. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * * @property {string} name @@ -2384,18 +2853,18 @@ const StartIPRotationRequest = { * CompleteIPRotationRequest moves the cluster master back into single-IP mode. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * * @property {string} name @@ -2418,7 +2887,7 @@ const CompleteIPRotationRequest = { * * @property {string} acceleratorType * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus/#Introduction) + * [here](https://cloud.google.com/compute/docs/gpus) * * @typedef AcceleratorConfig * @memberof google.container.v1 @@ -2432,22 +2901,22 @@ const AcceleratorConfig = { * SetNetworkPolicyRequest enables/disables network policy for a cluster. * * @property {string} projectId - * Deprecated. The Google Developers Console [project ID or project + * Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * * @property {string} zone - * Deprecated. The name of the Google Compute Engine + * Required. 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. * * @property {string} clusterId - * Deprecated. The name of the cluster. + * Required. Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * * @property {Object} networkPolicy - * Configuration options for the NetworkPolicy feature. + * Required. Configuration options for the NetworkPolicy feature. * * This object should have the same structure as [NetworkPolicy]{@link google.container.v1.NetworkPolicy} * @@ -2467,19 +2936,19 @@ const SetNetworkPolicyRequest = { * SetMaintenancePolicyRequest sets the maintenance policy for a cluster. * * @property {string} projectId - * The Google Developers Console [project ID or project + * Required. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * * @property {string} zone - * The name of the Google Compute Engine + * Required. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster * resides. * * @property {string} clusterId - * The name of the cluster to update. + * Required. The name of the cluster to update. * * @property {Object} maintenancePolicy - * The maintenance policy to be set for the cluster. An empty field + * Required. The maintenance policy to be set for the cluster. An empty field * clears the existing maintenance policy. * * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} @@ -2497,6 +2966,68 @@ const SetMaintenancePolicyRequest = { // This is for documentation. Actual contents will be loaded by gRPC. }; +/** + * StatusCondition describes why a cluster or a node pool has a certain status + * (e.g., ERROR or DEGRADED). + * + * @property {number} code + * Machine-friendly representation of the condition + * + * The number should be among the values of [Code]{@link google.container.v1.Code} + * + * @property {string} message + * Human-friendly representation of the condition + * + * @typedef StatusCondition + * @memberof google.container.v1 + * @see [google.container.v1.StatusCondition definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const StatusCondition = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * Code for each condition + * + * @enum {number} + * @memberof google.container.v1 + */ + Code: { + + /** + * UNKNOWN indicates a generic condition. + */ + UNKNOWN: 0, + + /** + * GCE_STOCKOUT indicates a Google Compute Engine stockout. + */ + GCE_STOCKOUT: 1, + + /** + * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot + * service account. + */ + GKE_SERVICE_ACCOUNT_DELETED: 2, + + /** + * Google Compute Engine quota was exceeded. + */ + GCE_QUOTA_EXCEEDED: 3, + + /** + * Cluster state was manually changed by an SRE due to a system logic error. + */ + SET_BY_OPERATOR: 4, + + /** + * Unable to perform an encrypt operation against the CloudKMS key used for + * etcd level encryption. + * More codes TBA + */ + CLOUD_KMS_KEY_ERROR: 7 + } +}; + /** * NetworkConfig reports the relative names of network & subnetwork. * @@ -2511,10 +3042,309 @@ const SetMaintenancePolicyRequest = { * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the cluster is connected. * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet * + * @property {boolean} enableIntraNodeVisibility + * Whether Intra-node visibility is enabled for this cluster. + * This makes same node pod to pod traffic visible for VPC network. + * * @typedef NetworkConfig * @memberof google.container.v1 * @see [google.container.v1.NetworkConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} */ const NetworkConfig = { // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * IntraNodeVisibilityConfig contains the desired config of the intra-node + * visibility on this cluster. + * + * @property {boolean} enabled + * Enables intra node visibility for this cluster. + * + * @typedef IntraNodeVisibilityConfig + * @memberof google.container.v1 + * @see [google.container.v1.IntraNodeVisibilityConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const IntraNodeVisibilityConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Constraints applied to pods. + * + * @property {number} maxPodsPerNode + * Constraint enforced on the max num of pods per node. + * + * @typedef MaxPodsConstraint + * @memberof google.container.v1 + * @see [google.container.v1.MaxPodsConstraint definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const MaxPodsConstraint = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Configuration of etcd encryption. + * + * @property {number} state + * Denotes the state of etcd encryption. + * + * The number should be among the values of [State]{@link google.container.v1.State} + * + * @property {string} keyName + * Name of CloudKMS key to use for the encryption of secrets in etcd. + * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key + * + * @typedef DatabaseEncryption + * @memberof google.container.v1 + * @see [google.container.v1.DatabaseEncryption definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const DatabaseEncryption = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * State of etcd encryption. + * + * @enum {number} + * @memberof google.container.v1 + */ + State: { + + /** + * Should never be set + */ + UNKNOWN: 0, + + /** + * Secrets in etcd are encrypted. + */ + ENCRYPTED: 1, + + /** + * Secrets in etcd are stored in plain text (at etcd level) - this is + * unrelated to GCE level full disk encryption. + */ + DECRYPTED: 2 + } +}; + +/** + * ListUsableSubnetworksRequest requests the list of usable subnetworks + * available to a user for creating clusters. + * + * @property {string} parent + * The parent project where subnetworks are usable. + * Specified in the format 'projects/*'. + * + * @property {string} filter + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * + * @property {number} pageSize + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * + * @property {string} pageToken + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * + * @typedef ListUsableSubnetworksRequest + * @memberof google.container.v1 + * @see [google.container.v1.ListUsableSubnetworksRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const ListUsableSubnetworksRequest = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * ListUsableSubnetworksResponse is the response of + * ListUsableSubnetworksRequest. + * + * @property {Object[]} subnetworks + * A list of usable subnetworks in the specified network project. + * + * This object should have the same structure as [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} + * + * @property {string} nextPageToken + * This token allows you to get the next page of results for list requests. + * If the number of results is larger than `page_size`, use the + * `next_page_token` as a value for the query parameter `page_token` in the + * next request. The value will become empty when there are no more pages. + * + * @typedef ListUsableSubnetworksResponse + * @memberof google.container.v1 + * @see [google.container.v1.ListUsableSubnetworksResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const ListUsableSubnetworksResponse = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Secondary IP range of a usable subnetwork. + * + * @property {string} rangeName + * The name associated with this subnetwork secondary range, used when adding + * an alias IP range to a VM instance. + * + * @property {string} ipCidrRange + * The range of IP addresses belonging to this subnetwork secondary range. + * + * @property {number} status + * This field is to determine the status of the secondary range programmably. + * + * The number should be among the values of [Status]{@link google.container.v1.Status} + * + * @typedef UsableSubnetworkSecondaryRange + * @memberof google.container.v1 + * @see [google.container.v1.UsableSubnetworkSecondaryRange definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const UsableSubnetworkSecondaryRange = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * Status shows the current usage of a secondary IP range. + * + * @enum {number} + * @memberof google.container.v1 + */ + Status: { + + /** + * UNKNOWN is the zero value of the Status enum. It's not a valid status. + */ + UNKNOWN: 0, + + /** + * UNUSED denotes that this range is unclaimed by any cluster. + */ + UNUSED: 1, + + /** + * IN_USE_SERVICE denotes that this range is claimed by a cluster for + * services. It cannot be used for other clusters. + */ + IN_USE_SERVICE: 2, + + /** + * IN_USE_SHAREABLE_POD denotes this range was created by the network admin + * and is currently claimed by a cluster for pods. It can only be used by + * other clusters as a pod range. + */ + IN_USE_SHAREABLE_POD: 3, + + /** + * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed + * for pods. It cannot be used for other clusters. + */ + IN_USE_MANAGED_POD: 4 + } +}; + +/** + * UsableSubnetwork resource returns the subnetwork name, its associated network + * and the primary CIDR range. + * + * @property {string} subnetwork + * Subnetwork Name. + * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + * + * @property {string} network + * Network Name. + * Example: projects/my-project/global/networks/my-network + * + * @property {string} ipCidrRange + * The range of internal addresses that are owned by this subnetwork. + * + * @property {Object[]} secondaryIpRanges + * Secondary IP ranges. + * + * This object should have the same structure as [UsableSubnetworkSecondaryRange]{@link google.container.v1.UsableSubnetworkSecondaryRange} + * + * @property {string} statusMessage + * A human readable status message representing the reasons for cases where + * the caller cannot use the secondary ranges under the subnet. For example if + * the secondary_ip_ranges is empty due to a permission issue, an insufficient + * permission message will be given by status_message. + * + * @typedef UsableSubnetwork + * @memberof google.container.v1 + * @see [google.container.v1.UsableSubnetwork definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const UsableSubnetwork = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; + +/** + * Configuration for exporting cluster resource usages. + * + * @property {Object} bigqueryDestination + * Configuration to use BigQuery as usage export destination. + * + * This object should have the same structure as [BigQueryDestination]{@link google.container.v1.BigQueryDestination} + * + * @property {boolean} enableNetworkEgressMetering + * Whether to enable network egress metering for this cluster. If enabled, a + * daemonset will be created in the cluster to meter network egress traffic. + * + * @property {Object} consumptionMeteringConfig + * Configuration to enable resource consumption metering. + * + * This object should have the same structure as [ConsumptionMeteringConfig]{@link google.container.v1.ConsumptionMeteringConfig} + * + * @typedef ResourceUsageExportConfig + * @memberof google.container.v1 + * @see [google.container.v1.ResourceUsageExportConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const ResourceUsageExportConfig = { + // This is for documentation. Actual contents will be loaded by gRPC. + + /** + * Parameters for using BigQuery as the destination of resource usage export. + * + * @property {string} datasetId + * The ID of a BigQuery Dataset. + * + * @typedef BigQueryDestination + * @memberof google.container.v1 + * @see [google.container.v1.ResourceUsageExportConfig.BigQueryDestination definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ + BigQueryDestination: { + // This is for documentation. Actual contents will be loaded by gRPC. + }, + + /** + * Parameters for controlling consumption metering. + * + * @property {boolean} enabled + * Whether to enable consumption metering for this cluster. If enabled, a + * second BigQuery table will be created to hold resource consumption + * records. + * + * @typedef ConsumptionMeteringConfig + * @memberof google.container.v1 + * @see [google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ + ConsumptionMeteringConfig: { + // This is for documentation. Actual contents will be loaded by gRPC. + } +}; + +/** + * VerticalPodAutoscaling contains global, per-cluster information + * required by Vertical Pod Autoscaler to automatically adjust + * the resources of pods controlled by it. + * + * @property {boolean} enabled + * Enables vertical pod autoscaling. + * + * @typedef VerticalPodAutoscaling + * @memberof google.container.v1 + * @see [google.container.v1.VerticalPodAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} + */ +const VerticalPodAutoscaling = { + // This is for documentation. Actual contents will be loaded by gRPC. }; \ No newline at end of file diff --git a/packages/google-container/src/v1/doc/google/protobuf/doc_timestamp.js b/packages/google-container/src/v1/doc/google/protobuf/doc_timestamp.js new file mode 100644 index 00000000000..3bc1e986897 --- /dev/null +++ b/packages/google-container/src/v1/doc/google/protobuf/doc_timestamp.js @@ -0,0 +1,119 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +// Note: this file is purely for documentation. Any contents are not expected +// to be loaded as the JS file. + +/** + * A Timestamp represents a point in time independent of any time zone or local + * calendar, encoded as a count of seconds and fractions of seconds at + * nanosecond resolution. The count is relative to an epoch at UTC midnight on + * January 1, 1970, in the proleptic Gregorian calendar which extends the + * Gregorian calendar backwards to year one. + * + * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap + * second table is needed for interpretation, using a [24-hour linear + * smear](https://developers.google.com/time/smear). + * + * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By + * restricting to that range, we ensure that we can convert to and from [RFC + * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. + * + * # Examples + * + * Example 1: Compute Timestamp from POSIX `time()`. + * + * Timestamp timestamp; + * timestamp.set_seconds(time(NULL)); + * timestamp.set_nanos(0); + * + * Example 2: Compute Timestamp from POSIX `gettimeofday()`. + * + * struct timeval tv; + * gettimeofday(&tv, NULL); + * + * Timestamp timestamp; + * timestamp.set_seconds(tv.tv_sec); + * timestamp.set_nanos(tv.tv_usec * 1000); + * + * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. + * + * FILETIME ft; + * GetSystemTimeAsFileTime(&ft); + * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; + * + * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z + * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. + * Timestamp timestamp; + * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); + * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); + * + * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. + * + * long millis = System.currentTimeMillis(); + * + * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) + * .setNanos((int) ((millis % 1000) * 1000000)).build(); + * + * + * Example 5: Compute Timestamp from current time in Python. + * + * timestamp = Timestamp() + * timestamp.GetCurrentTime() + * + * # JSON Mapping + * + * In JSON format, the Timestamp type is encoded as a string in the + * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the + * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" + * where {year} is always expressed using four digits while {month}, {day}, + * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional + * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), + * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone + * is required. A proto3 JSON serializer should always use UTC (as indicated by + * "Z") when printing the Timestamp type and a proto3 JSON parser should be + * able to accept both UTC and other timezones (as indicated by an offset). + * + * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past + * 01:30 UTC on January 15, 2017. + * + * In JavaScript, one can convert a Date object to this format using the + * standard + * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) + * method. In Python, a standard `datetime.datetime` object can be converted + * to this format using + * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with + * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use + * the Joda Time's [`ISODateTimeFormat.dateTime()`](https://cloud.google.com + * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D + * ) to obtain a formatter capable of generating timestamps in this format. + * + * @property {number} seconds + * Represents seconds of UTC time since Unix epoch + * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to + * 9999-12-31T23:59:59Z inclusive. + * + * @property {number} nanos + * Non-negative fractions of a second at nanosecond resolution. Negative + * second values with fractions must still have non-negative nanos values + * that count forward in time. Must be from 0 to 999,999,999 + * inclusive. + * + * @typedef Timestamp + * @memberof google.protobuf + * @see [google.protobuf.Timestamp definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto} + */ +const Timestamp = { + // This is for documentation. Actual contents will be loaded by gRPC. +}; \ No newline at end of file diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 4a7c2a0e9bd..ad69ca1fc15 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-05T12:09:53.811391Z", + "updateTime": "2019-11-12T12:11:06.613181Z", "sources": [ { "generator": { "name": "artman", - "version": "0.41.0", - "dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9" + "version": "0.41.1", + "dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8c6569ced063c08a48272de2e887860d0c40d388", - "internalRef": "278552094" + "sha": "f69562be0608904932bdcfbc5ad8b9a22d9dceb8", + "internalRef": "279774957" } }, { diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js index c662020305a..f26d8ae491d 100644 --- a/packages/google-container/test/gapic-v1.js +++ b/packages/google-container/test/gapic-v1.js @@ -153,6 +153,8 @@ describe('ClusterManagerClient', () => { const currentNodeCount = 178977560; const expireTime = 'expireTime-96179731'; const location = 'location1901043637'; + const enableTpu = false; + const tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; const expectedResponse = { name: name, description: description, @@ -177,6 +179,8 @@ describe('ClusterManagerClient', () => { currentNodeCount: currentNodeCount, expireTime: expireTime, location: location, + enableTpu: enableTpu, + tpuIpv4CidrBlock: tpuIpv4CidrBlock, }; // Mock Grpc layer @@ -1558,12 +1562,14 @@ describe('ClusterManagerClient', () => { const selfLink = 'selfLink-1691268851'; const version = 'version351608024'; const statusMessage = 'statusMessage-239442758'; + const podIpv4CidrSize = 1098768716; const expectedResponse = { name: name, initialNodeCount: initialNodeCount, selfLink: selfLink, version: version, statusMessage: statusMessage, + podIpv4CidrSize: podIpv4CidrSize, }; // Mock Grpc layer @@ -2584,6 +2590,67 @@ describe('ClusterManagerClient', () => { }); }); }); + + describe('listUsableSubnetworks', () => { + it('invokes listUsableSubnetworks without error', done => { + const client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + const request = {}; + + // Mock response + const nextPageToken = ''; + const subnetworksElement = {}; + const subnetworks = [subnetworksElement]; + const expectedResponse = { + nextPageToken: nextPageToken, + subnetworks: subnetworks, + }; + + // Mock Grpc layer + client._innerApiCalls.listUsableSubnetworks = ( + actualRequest, + options, + callback + ) => { + assert.deepStrictEqual(actualRequest, request); + callback(null, expectedResponse.subnetworks); + }; + + client.listUsableSubnetworks(request, (err, response) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse.subnetworks); + done(); + }); + }); + + it('invokes listUsableSubnetworks with error', done => { + const client = new containerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + + // Mock request + const request = {}; + + // Mock Grpc layer + client._innerApiCalls.listUsableSubnetworks = mockSimpleGrpcMethod( + request, + null, + error + ); + + client.listUsableSubnetworks(request, (err, response) => { + assert(err instanceof Error); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); }); function mockSimpleGrpcMethod(expectedRequest, response, error) { From 61ac3a670fa0d10f794649da3864bc3e96b10e4a Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 13 Nov 2019 15:25:35 -0800 Subject: [PATCH 159/371] feat(docs): bump release level to beta (#249) --- packages/google-container/.repo-metadata.json | 4 ++-- packages/google-container/README.md | 9 +++++---- packages/google-container/synth.metadata | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json index 38315e6b620..5e4496f0774 100644 --- a/packages/google-container/.repo-metadata.json +++ b/packages/google-container/.repo-metadata.json @@ -4,10 +4,10 @@ "product_documentation": "https://cloud.google.com/kubernetes-engine", "client_documentation": "https://googleapis.dev/nodejs/container/latest", "issue_tracker": "https://issuetracker.google.com/savedsearches/559746", - "release_level": "alpha", + "release_level": "beta", "language": "nodejs", "repo": "googleapis/nodejs-cloud-container", "distribution_name": "@google-cloud/container", "api_id": "container.googleapis.com", "requires_billing": true -} \ No newline at end of file +} diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 57b6775a0cd..425d54eb586 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -4,7 +4,7 @@ # [Kubernetes Engine Cluster Manager API: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) -[![release level](https://img.shields.io/badge/release%20level-alpha-orange.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/container.svg)](https://www.npmjs.org/package/@google-cloud/container) [![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-cloud-container/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-cloud-container) @@ -109,10 +109,11 @@ This library follows [Semantic Versioning](http://semver.org/). +This library is considered to be in **beta**. This means it is expected to be +mostly stable while we work toward a general availability release; however, +complete stability is not guaranteed. We will address issues and requests +against beta libraries with a high priority. -This library is considered to be in **alpha**. This means it is still a -work-in-progress and under active development. Any release is subject to -backwards-incompatible changes at any time. diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index ad69ca1fc15..9e35b761fa1 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-11-12T12:11:06.613181Z", + "updateTime": "2019-11-13T21:44:57.223410Z", "sources": [ { "generator": { @@ -12,8 +12,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "f69562be0608904932bdcfbc5ad8b9a22d9dceb8", - "internalRef": "279774957" + "sha": "dec8fd8ea5dc464496606189ba4b8949188639c8", + "internalRef": "280225437" } }, { From 951a3ad789fd7cb77ef6241696e8f831d79307b2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2019 17:17:59 -0800 Subject: [PATCH 160/371] chore: release 1.4.0 (#248) --- packages/google-container/CHANGELOG.md | 13 +++++++++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 0d6b9e86dca..936a4c59ade 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,19 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [1.4.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.3.1...v1.4.0) (2019-11-14) + + +### Features + +* support listUsableSubnetworks rpc and new node config ([#246](https://www.github.com/googleapis/nodejs-cloud-container/issues/246)) ([08f2e19](https://www.github.com/googleapis/nodejs-cloud-container/commit/08f2e19c9bc3eff01adf90b59405c73d0a4f190a)) +* **docs:** bump release level to beta ([#249](https://www.github.com/googleapis/nodejs-cloud-container/issues/249)) ([3651e6a](https://www.github.com/googleapis/nodejs-cloud-container/commit/3651e6a2cd7bf28da94a6d3d5d57861a15d8e332)) + + +### Bug Fixes + +* **docs:** snippets are now replaced in jsdoc comments ([#245](https://www.github.com/googleapis/nodejs-cloud-container/issues/245)) ([31fcb61](https://www.github.com/googleapis/nodejs-cloud-container/commit/31fcb616761b9f23f380be6fbe20f7a0d290a5a1)) + ### [1.3.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.3.0...v1.3.1) (2019-10-22) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 75f00ebe160..52bc95a54ff 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.3.1", + "version": "1.4.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index f27011922c7..08c0d8aa9cc 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.3.1" + "@google-cloud/container": "^1.4.0" }, "devDependencies": { "chai": "^4.2.0", From 67fefcac55fb2600bf1ae2afc71e28973428c6d4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 22 Nov 2019 13:04:34 -0800 Subject: [PATCH 161/371] chore: add license headers --- packages/google-container/protos/protos.d.ts | 15 +++++++++++++++ packages/google-container/protos/protos.js | 14 ++++++++++++++ packages/google-container/synth.metadata | 10 +++++----- 3 files changed, 34 insertions(+), 5 deletions(-) diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 25197370512..0c10d3163fe 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -1,3 +1,18 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +import * as Long from "long"; import * as $protobuf from "protobufjs"; /** Namespace google. */ export namespace google { diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 6906a585962..4daf1a4c765 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1,3 +1,17 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ (function(global, factory) { /* global define, require, module */ diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 9e35b761fa1..1b50b2af7ac 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-11-13T21:44:57.223410Z", + "updateTime": "2019-11-19T12:11:15.960709Z", "sources": [ { "generator": { "name": "artman", - "version": "0.41.1", - "dockerImage": "googleapis/artman@sha256:545c758c76c3f779037aa259023ec3d1ef2d57d2c8cd00a222cb187d63ceac5e" + "version": "0.42.1", + "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "dec8fd8ea5dc464496606189ba4b8949188639c8", - "internalRef": "280225437" + "sha": "d8dd7fe8d5304f7bd1c52207703d7f27d5328c5a", + "internalRef": "281088257" } }, { From b73a10cf4a112164ecae116472d4a401ef616010 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 25 Nov 2019 08:54:39 -0800 Subject: [PATCH 162/371] chore: update license headers --- .../google-container/samples/quickstart.js | 27 +++++++++---------- .../google-container/system-test/container.js | 27 +++++++++---------- 2 files changed, 26 insertions(+), 28 deletions(-) diff --git a/packages/google-container/samples/quickstart.js b/packages/google-container/samples/quickstart.js index 4fb11a1f970..2ce32840aa7 100644 --- a/packages/google-container/samples/quickstart.js +++ b/packages/google-container/samples/quickstart.js @@ -1,17 +1,16 @@ -/** - * Copyright 2017, Google, Inc. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * 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. - */ +// Copyright 2017 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. 'use strict'; diff --git a/packages/google-container/system-test/container.js b/packages/google-container/system-test/container.js index 2ccff07db26..87417353192 100644 --- a/packages/google-container/system-test/container.js +++ b/packages/google-container/system-test/container.js @@ -1,17 +1,16 @@ -/** - * Copyright 2018, Google, LLC. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * 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. - */ +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. 'use strict'; From 92dc84087c9438051da74d7f408c9b5fd1a83931 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 23 Dec 2019 12:18:00 -0500 Subject: [PATCH 163/371] docs: update jsdoc license/samples-README (#256) --- packages/google-container/.jsdoc.js | 29 ++++++++++----------- packages/google-container/samples/README.md | 10 +++++-- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index c5451c153d2..72809e5a1b9 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -1,18 +1,17 @@ -/*! - * Copyright 2018 Google LLC. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * 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. - */ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. +// 'use strict'; diff --git a/packages/google-container/samples/README.md b/packages/google-container/samples/README.md index e43a0be58e6..c330b53c7df 100644 --- a/packages/google-container/samples/README.md +++ b/packages/google-container/samples/README.md @@ -22,6 +22,12 @@ building and managing container based applications, powered by the open source K Before running the samples, make sure you've followed the steps outlined in [Using the client library](https://github.com/googleapis/nodejs-cloud-container#using-the-client-library). +`cd samples` + +`npm install` + +`cd ..` + ## Samples @@ -35,7 +41,7 @@ View the [source code](https://github.com/googleapis/nodejs-cloud-container/blob __Usage:__ -`node quickstart.js` +`node samples/quickstart.js` @@ -44,4 +50,4 @@ __Usage:__ [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png [shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/README.md -[product-docs]: https://cloud.google.com/kubernetes-engine \ No newline at end of file +[product-docs]: https://cloud.google.com/kubernetes-engine From 40528ce574b27e3bde30105a9b7b7913b0517e89 Mon Sep 17 00:00:00 2001 From: Xiaozhen Liu Date: Mon, 23 Dec 2019 14:21:25 -0800 Subject: [PATCH 164/371] feat: move to typescript code micro-generator (#260) * move to typescript * run synthtool * fix broken docs links * run synthtool before docs test * skip broken test * fix broken links in ts --- packages/google-container/.jsdoc.js | 2 +- packages/google-container/package.json | 38 +- packages/google-container/src/index.js | 82 - packages/google-container/src/index.ts | 24 + .../src/v1/cluster_manager_client.js | 2835 -------------- .../src/v1/cluster_manager_client.ts | 3136 +++++++++++++++ .../src/v1/cluster_manager_client_config.json | 75 +- .../container/v1/doc_cluster_service.js | 3350 ----------------- .../src/{browser.js => v1/index.ts} | 12 +- packages/google-container/synth.metadata | 284 +- packages/google-container/synth.py | 39 +- .../system-test/.eslintrc.yml | 4 +- .../sample/src/index.js} | 18 +- .../fixtures/sample/src/index.ts} | 12 +- .../google-container/system-test/install.ts | 50 + .../test/gapic-cluster_manager-v1.ts | 1525 ++++++++ packages/google-container/test/gapic-v1.js | 2667 ------------- packages/google-container/tsconfig.json | 19 + packages/google-container/tslint.json | 3 + packages/google-container/webpack.config.js | 38 +- 20 files changed, 5177 insertions(+), 9036 deletions(-) delete mode 100644 packages/google-container/src/index.js create mode 100644 packages/google-container/src/index.ts delete mode 100644 packages/google-container/src/v1/cluster_manager_client.js create mode 100644 packages/google-container/src/v1/cluster_manager_client.ts delete mode 100644 packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js rename packages/google-container/src/{browser.js => v1/index.ts} (69%) rename packages/google-container/system-test/{container.js => fixtures/sample/src/index.js} (50%) rename packages/google-container/{src/v1/index.js => system-test/fixtures/sample/src/index.ts} (62%) create mode 100644 packages/google-container/system-test/install.ts create mode 100644 packages/google-container/test/gapic-cluster_manager-v1.ts delete mode 100644 packages/google-container/test/gapic-v1.js create mode 100644 packages/google-container/tsconfig.json create mode 100644 packages/google-container/tslint.json diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index 72809e5a1b9..1a4d43f7274 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -31,7 +31,7 @@ module.exports = { source: { excludePattern: '(^|\\/|\\\\)[._]', include: [ - 'src' + 'build/src' ], includePattern: '\\.js$' }, diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 52bc95a54ff..23fcf9e2e03 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -8,10 +8,10 @@ "node": ">=8.10.0" }, "repository": "googleapis/nodejs-cloud-container", - "main": "src/index.js", + "main": "build/src/index.js", "files": [ - "protos", - "src" + "build/protos", + "build/src" ], "keywords": [ "google apis client", @@ -27,32 +27,44 @@ "Google Container Engine API" ], "scripts": { - "test": "nyc mocha", - "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", - "lint": "eslint '**/*.js'", + "test": "c8 mocha build/test", + "samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../", + "system-test": "mocha build/system-test", + "lint": "gts fix && eslint --fix samples/*.js samples/**/*.js", + "fix": "gts fix", "docs": "jsdoc -c .jsdoc.js", - "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000", - "fix": "eslint --fix '**/*.js'", "docs-test": "linkinator docs", - "predocs-test": "npm run docs" + "clean": "gts clean", + "compile": "tsc -p . && cp -r protos build/", + "compile-protos": "compileProtos src", + "predocs-test": "npm run docs", + "prepare": "npm run compile" }, "dependencies": { - "google-gax": "^1.7.5" + "google-gax": "^1.9.0" }, "devDependencies": { - "codecov": "^3.5.0", + "@types/mocha": "^5.2.5", + "@types/node": "^12.0.0", + "c8": "^6.0.0", "eslint": "^6.0.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^10.0.0", "eslint-plugin-prettier": "^3.1.0", + "gts": "^1.0.0", "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", "linkinator": "^1.5.0", "mocha": "^6.1.4", - "nyc": "^14.1.1", + "null-loader": "^3.0.0", + "pack-n-play": "^1.0.0-2", "power-assert": "^1.6.1", - "prettier": "^1.17.1" + "prettier": "^1.17.1", + "ts-loader": "^6.2.1", + "typescript": "^3.7.0", + "webpack": "^4.41.2", + "webpack-cli": "^3.3.10" } } diff --git a/packages/google-container/src/index.js b/packages/google-container/src/index.js deleted file mode 100644 index 040e142a5e9..00000000000 --- a/packages/google-container/src/index.js +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright 2017, Google LLC All rights reserved. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// 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. - -/** - * @namespace google - */ -/** - * @namespace google.cloud - */ -/** - * @namespace google.container - */ -/** - * @namespace google.container.v1 - */ -/** - * @namespace google.protobuf - */ - -'use strict'; - -// Import the clients for each version supported by this package. -const gapic = Object.freeze({ - v1: require('./v1'), -}); - -/** - * The `@google-cloud/container` package has the following named exports: - * - * - `ClusterManagerClient` - Reference to - * {@link v1.ClusterManagerClient} - * - `v1` - This is used for selecting or pinning a - * particular backend service version. It exports: - * - `ClusterManagerClient` - Reference to - * {@link v1.ClusterManagerClient} - * - * @module {object} @google-cloud/container - * @alias nodejs-container - * - * @example Install the client library with npm: - * npm install --save @google-cloud/container - * - * @example Import the client library: - * const container = require('@google-cloud/container'); - * - * @example Create a client that uses Application Default Credentials (ADC): - * const client = new container.ClusterManagerClient(); - * - * @example Create a client with explicit credentials: - * const client = new container.ClusterManagerClient({ - * projectId: 'your-project-id', - * keyFilename: '/path/to/keyfile.json', - * }); - */ - -/** - * @type {object} - * @property {constructor} ClusterManagerClient - * Reference to {@link v1.ClusterManagerClient} - */ -module.exports = gapic.v1; - -/** - * @type {object} - * @property {constructor} ClusterManagerClient - * Reference to {@link v1.ClusterManagerClient} - */ -module.exports.v1 = gapic.v1; - -// Alias `module.exports` as `module.exports.default`, for future-proofing. -module.exports.default = Object.assign({}, module.exports); diff --git a/packages/google-container/src/index.ts b/packages/google-container/src/index.ts new file mode 100644 index 00000000000..01301d47443 --- /dev/null +++ b/packages/google-container/src/index.ts @@ -0,0 +1,24 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as v1 from './v1'; +const ClusterManagerClient = v1.ClusterManagerClient; +export {v1, ClusterManagerClient}; +// For compatibility with JavaScript libraries we need to provide this default export: +// tslint:disable-next-line no-default-export +export default {v1, ClusterManagerClient}; diff --git a/packages/google-container/src/v1/cluster_manager_client.js b/packages/google-container/src/v1/cluster_manager_client.js deleted file mode 100644 index 9d0611da5a4..00000000000 --- a/packages/google-container/src/v1/cluster_manager_client.js +++ /dev/null @@ -1,2835 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// 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. - -'use strict'; - -const gapicConfig = require('./cluster_manager_client_config.json'); -const gax = require('google-gax'); -const path = require('path'); - -const VERSION = require('../../package.json').version; - -/** - * Google Kubernetes Engine Cluster Manager v1 - * - * @class - * @memberof v1 - */ -class ClusterManagerClient { - /** - * Construct an instance of ClusterManagerClient. - * - * @param {object} [options] - The configuration object. See the subsequent - * parameters for more details. - * @param {object} [options.credentials] - Credentials object. - * @param {string} [options.credentials.client_email] - * @param {string} [options.credentials.private_key] - * @param {string} [options.email] - Account email address. Required when - * using a .pem or .p12 keyFilename. - * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or - * .p12 key downloaded from the Google Developers Console. If you provide - * a path to a JSON file, the projectId option below is not necessary. - * NOTE: .pem and .p12 require you to specify options.email as well. - * @param {number} [options.port] - The port on which to connect to - * the remote host. - * @param {string} [options.projectId] - The project ID from the Google - * Developer's Console, e.g. 'grape-spaceship-123'. We will also check - * the environment variable GCLOUD_PROJECT for your project ID. If your - * app is running in an environment which supports - * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, - * your project ID will be detected automatically. - * @param {function} [options.promise] - Custom promise module to use instead - * of native Promises. - * @param {string} [options.apiEndpoint] - The domain name of the - * API remote host. - */ - constructor(opts) { - opts = opts || {}; - this._descriptors = {}; - - if (global.isBrowser) { - // If we're in browser, we use gRPC fallback. - opts.fallback = true; - } - - // If we are in browser, we are already using fallback because of the - // "browser" field in package.json. - // But if we were explicitly requested to use fallback, let's do it now. - const gaxModule = !global.isBrowser && opts.fallback ? gax.fallback : gax; - - const servicePath = - opts.servicePath || opts.apiEndpoint || this.constructor.servicePath; - - // Ensure that options include the service address and port. - opts = Object.assign( - { - clientConfig: {}, - port: this.constructor.port, - servicePath, - }, - opts - ); - - // Create a `gaxGrpc` object, with any grpc-specific options - // sent to the client. - opts.scopes = this.constructor.scopes; - const gaxGrpc = new gaxModule.GrpcClient(opts); - - // Save the auth object to the client, for use by other methods. - this.auth = gaxGrpc.auth; - - // Determine the client header string. - const clientHeader = []; - - if (typeof process !== 'undefined' && 'versions' in process) { - clientHeader.push(`gl-node/${process.versions.node}`); - } - clientHeader.push(`gax/${gaxModule.version}`); - if (opts.fallback) { - clientHeader.push(`gl-web/${gaxModule.version}`); - } else { - clientHeader.push(`grpc/${gaxGrpc.grpcVersion}`); - } - clientHeader.push(`gapic/${VERSION}`); - if (opts.libName && opts.libVersion) { - clientHeader.push(`${opts.libName}/${opts.libVersion}`); - } - - // Load the applicable protos. - // For Node.js, pass the path to JSON proto file. - // For browsers, pass the JSON content. - - const nodejsProtoPath = path.join( - __dirname, - '..', - '..', - 'protos', - 'protos.json' - ); - const protos = gaxGrpc.loadProto( - opts.fallback ? require('../../protos/protos.json') : nodejsProtoPath - ); - - // Some of the methods on this service return "paged" results, - // (e.g. 50 results at a time, with tokens to get subsequent - // pages). Denote the keys used for pagination and results. - this._descriptors.page = { - listUsableSubnetworks: new gaxModule.PageDescriptor( - 'pageToken', - 'nextPageToken', - 'subnetworks' - ), - }; - - // Put together the default options sent with requests. - const defaults = gaxGrpc.constructSettings( - 'google.container.v1.ClusterManager', - gapicConfig, - opts.clientConfig, - {'x-goog-api-client': clientHeader.join(' ')} - ); - - // Set up a dictionary of "inner API calls"; the core implementation - // of calling the API is handled in `google-gax`, with this code - // merely providing the destination and request information. - this._innerApiCalls = {}; - - // Put together the "service stub" for - // google.container.v1.ClusterManager. - const clusterManagerStub = gaxGrpc.createStub( - opts.fallback - ? protos.lookupService('google.container.v1.ClusterManager') - : protos.google.container.v1.ClusterManager, - opts - ); - - // Iterate over each of the methods that the service provides - // and create an API call method for each. - const clusterManagerStubMethods = [ - 'listClusters', - 'getCluster', - 'createCluster', - 'updateCluster', - 'updateNodePool', - 'setNodePoolAutoscaling', - 'setLoggingService', - 'setMonitoringService', - 'setAddonsConfig', - 'setLocations', - 'updateMaster', - 'setMasterAuth', - 'deleteCluster', - 'listOperations', - 'getOperation', - 'cancelOperation', - 'getServerConfig', - 'listNodePools', - 'getNodePool', - 'createNodePool', - 'deleteNodePool', - 'rollbackNodePoolUpgrade', - 'setNodePoolManagement', - 'setLabels', - 'setLegacyAbac', - 'startIPRotation', - 'completeIPRotation', - 'setNodePoolSize', - 'setNetworkPolicy', - 'setMaintenancePolicy', - 'listUsableSubnetworks', - ]; - for (const methodName of clusterManagerStubMethods) { - const innerCallPromise = clusterManagerStub.then( - stub => (...args) => { - return stub[methodName].apply(stub, args); - }, - err => () => { - throw err; - } - ); - this._innerApiCalls[methodName] = gaxModule.createApiCall( - innerCallPromise, - defaults[methodName], - this._descriptors.page[methodName] - ); - } - } - - /** - * The DNS address for this API service. - */ - static get servicePath() { - return 'container.googleapis.com'; - } - - /** - * The DNS address for this API service - same as servicePath(), - * exists for compatibility reasons. - */ - static get apiEndpoint() { - return 'container.googleapis.com'; - } - - /** - * The port for this API service. - */ - static get port() { - return 443; - } - - /** - * The scopes needed to make gRPC calls for every method defined - * in this service. - */ - static get scopes() { - return ['https://www.googleapis.com/auth/cloud-platform']; - } - - /** - * Return the project ID used by this class. - * @param {function(Error, string)} callback - the callback to - * be called with the current project Id. - */ - getProjectId(callback) { - return this.auth.getProjectId(callback); - } - - // ------------------- - // -- Service calls -- - // ------------------- - - /** - * Lists all clusters owned by a project in either the specified zone or all - * zones. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the parent field. - * @param {string} request.zone - * Required. 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. - * @param {string} [request.parent] - * The parent (project and location) where the clusters will be listed. - * Specified in the format 'projects/* /locations/*'. - * Location "-" matches all zones and all regions. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [ListClustersResponse]{@link google.container.v1.ListClustersResponse}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ListClustersResponse]{@link google.container.v1.ListClustersResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * }; - * client.listClusters(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - listClusters(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent, - }); - - return this._innerApiCalls.listClusters(request, options, callback); - } - - /** - * Gets the details of a specific cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * @param {string} [request.name] - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Cluster]{@link google.container.v1.Cluster}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Cluster]{@link google.container.v1.Cluster}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * }; - * client.getCluster(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - getCluster(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.getCluster(request, options, callback); - } - - /** - * Creates a cluster, consisting of the specified number and type of Google - * 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). - * - * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers - * on that node to communicate with all other instances in the - * cluster. - * - * Finally, an entry is added to the project's global metadata indicating - * which CIDR range the cluster is using. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the parent field. - * @param {string} request.zone - * Required. 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. - * @param {Object} request.cluster - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) - * - * This object should have the same structure as [Cluster]{@link google.container.v1.Cluster} - * @param {string} [request.parent] - * The parent (project and location) where the cluster will be created. - * Specified in the format 'projects/* /locations/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const cluster = {}; - * const request = { - * projectId: projectId, - * zone: zone, - * cluster: cluster, - * }; - * client.createCluster(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - createCluster(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent, - }); - - return this._innerApiCalls.createCluster(request, options, callback); - } - - /** - * Updates the settings of a specific cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {Object} request.update - * Required. A description of the update. - * - * This object should have the same structure as [ClusterUpdate]{@link google.container.v1.ClusterUpdate} - * @param {string} [request.name] - * The name (project, location, cluster) of the cluster to update. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const update = {}; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * update: update, - * }; - * client.updateCluster(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - updateCluster(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.updateCluster(request, options, callback); - } - - /** - * Updates the version and/or image type for the specified node pool. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {string} request.nodeVersion - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * @param {string} request.imageType - * Required. The desired image type for the node pool. - * @param {string} [request.name] - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const nodePoolId = ''; - * const nodeVersion = ''; - * const imageType = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * nodePoolId: nodePoolId, - * nodeVersion: nodeVersion, - * imageType: imageType, - * }; - * client.updateNodePool(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - updateNodePool(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.updateNodePool(request, options, callback); - } - - /** - * Sets the autoscaling settings for the specified node pool. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {Object} request.autoscaling - * Required. Autoscaling configuration for the node pool. - * - * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} - * @param {string} [request.name] - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const nodePoolId = ''; - * const autoscaling = {}; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * nodePoolId: nodePoolId, - * autoscaling: autoscaling, - * }; - * client.setNodePoolAutoscaling(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setNodePoolAutoscaling(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setNodePoolAutoscaling( - request, - options, - callback - ); - } - - /** - * Sets the logging service for a specific cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {string} request.loggingService - * Required. The logging service the cluster should use to write metrics. - * Currently available options: - * - * * "logging.googleapis.com" - the Google Cloud Logging service - * * "none" - no metrics will be exported from the cluster - * @param {string} [request.name] - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const loggingService = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * loggingService: loggingService, - * }; - * client.setLoggingService(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setLoggingService(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setLoggingService(request, options, callback); - } - - /** - * Sets the monitoring service for a specific cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {string} request.monitoringService - * 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 - * @param {string} [request.name] - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const monitoringService = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * monitoringService: monitoringService, - * }; - * client.setMonitoringService(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setMonitoringService(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setMonitoringService(request, options, callback); - } - - /** - * Sets the addons for a specific cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {Object} request.addonsConfig - * Required. The desired configurations for the various addons available to run in the - * cluster. - * - * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} - * @param {string} [request.name] - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const addonsConfig = {}; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * addonsConfig: addonsConfig, - * }; - * client.setAddonsConfig(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setAddonsConfig(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setAddonsConfig(request, options, callback); - } - - /** - * Sets the locations for a specific cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {string[]} request.locations - * 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. - * - * This list must always include the cluster's primary zone. - * @param {string} [request.name] - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const locations = []; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * locations: locations, - * }; - * client.setLocations(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setLocations(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setLocations(request, options, callback); - } - - /** - * Updates the master for a specific cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {string} request.masterVersion - * Required. The Kubernetes version to change the master to. - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * @param {string} [request.name] - * The name (project, location, cluster) of the cluster to update. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const masterVersion = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * masterVersion: masterVersion, - * }; - * client.updateMaster(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - updateMaster(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.updateMaster(request, options, callback); - } - - /** - * Sets master auth materials. Currently supports changing the admin password - * or a specific cluster, either via password generation or explicitly setting - * the password. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param {number} request.action - * Required. The exact form of action to be taken on the master auth. - * - * The number should be among the values of [Action]{@link google.container.v1.Action} - * @param {Object} request.update - * Required. A description of the update. - * - * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} - * @param {string} [request.name] - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const action = 'UNKNOWN'; - * const update = {}; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * action: action, - * update: update, - * }; - * client.setMasterAuth(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setMasterAuth(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setMasterAuth(request, options, callback); - } - - /** - * Deletes the cluster, including the Kubernetes endpoint and all worker - * nodes. - * - * Firewalls and routes that were configured during cluster creation - * are also deleted. - * - * Other Google Compute Engine resources that might be in use by the cluster, - * such as load balancer resources, are not deleted if they weren't present - * when the cluster was initially created. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * @param {string} [request.name] - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * }; - * client.deleteCluster(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - deleteCluster(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.deleteCluster(request, options, callback); - } - - /** - * Lists all operations in a project in a specific zone or all zones. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the parent field. - * @param {string} request.zone - * Required. 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. - * @param {string} [request.parent] - * The parent (project and location) where the operations will be listed. - * Specified in the format 'projects/* /locations/*'. - * Location "-" matches all zones and all regions. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [ListOperationsResponse]{@link google.container.v1.ListOperationsResponse}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ListOperationsResponse]{@link google.container.v1.ListOperationsResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * }; - * client.listOperations(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - listOperations(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent, - }); - - return this._innerApiCalls.listOperations(request, options, callback); - } - - /** - * Gets the specified operation. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.operationId - * Required. Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @param {string} [request.name] - * The name (project, location, operation id) of the operation to get. - * Specified in the format 'projects/* /locations/* /operations/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const operationId = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * operationId: operationId, - * }; - * client.getOperation(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - getOperation(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.getOperation(request, options, callback); - } - - /** - * Cancels the specified operation. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.operationId - * Required. Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @param {string} [request.name] - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format 'projects/* /locations/* /operations/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error)} [callback] - * The function which will be called with the result of the API call. - * @returns {Promise} - The promise which resolves when API call finishes. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const operationId = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * operationId: operationId, - * }; - * client.cancelOperation(request).catch(err => { - * console.error(err); - * }); - */ - cancelOperation(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.cancelOperation(request, options, callback); - } - - /** - * Returns configuration info about the Google Kubernetes Engine service. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} [request.name] - * The name (project and location) of the server config to get, - * specified in the format 'projects/* /locations/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [ServerConfig]{@link google.container.v1.ServerConfig}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ServerConfig]{@link google.container.v1.ServerConfig}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * }; - * client.getServerConfig(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - getServerConfig(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.getServerConfig(request, options, callback); - } - - /** - * Lists the node pools for a cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the parent field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @param {string} [request.parent] - * The parent (project, location, cluster id) where the node pools will be - * listed. Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [ListNodePoolsResponse]{@link google.container.v1.ListNodePoolsResponse}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ListNodePoolsResponse]{@link google.container.v1.ListNodePoolsResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * }; - * client.listNodePools(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - listNodePools(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent, - }); - - return this._innerApiCalls.listNodePools(request, options, callback); - } - - /** - * Retrieves the requested node pool. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * @param {string} [request.name] - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [NodePool]{@link google.container.v1.NodePool}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [NodePool]{@link google.container.v1.NodePool}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const nodePoolId = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * nodePoolId: nodePoolId, - * }; - * client.getNodePool(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - getNodePool(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.getNodePool(request, options, callback); - } - - /** - * Creates a node pool for a cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the parent field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @param {Object} request.nodePool - * Required. The node pool to create. - * - * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} - * @param {string} [request.parent] - * The parent (project, location, cluster id) where the node pool will be - * created. Specified in the format - * 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const nodePool = {}; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * nodePool: nodePool, - * }; - * client.createNodePool(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - createNodePool(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent, - }); - - return this._innerApiCalls.createNodePool(request, options, callback); - } - - /** - * Deletes a node pool from a cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * @param {string} [request.name] - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const nodePoolId = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * nodePoolId: nodePoolId, - * }; - * client.deleteNodePool(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - deleteNodePool(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.deleteNodePool(request, options, callback); - } - - /** - * Rolls back a previously Aborted or Failed NodePool upgrade. - * This makes no changes if the last upgrade successfully completed. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * @param {string} [request.name] - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const nodePoolId = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * nodePoolId: nodePoolId, - * }; - * client.rollbackNodePoolUpgrade(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - rollbackNodePoolUpgrade(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.rollbackNodePoolUpgrade( - request, - options, - callback - ); - } - - /** - * Sets the NodeManagement options for a node pool. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @param {Object} request.management - * Required. NodeManagement configuration for the node pool. - * - * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} - * @param {string} [request.name] - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const nodePoolId = ''; - * const management = {}; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * nodePoolId: nodePoolId, - * management: management, - * }; - * client.setNodePoolManagement(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setNodePoolManagement(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setNodePoolManagement( - request, - options, - callback - ); - } - - /** - * Sets labels on a cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param {Object.} request.resourceLabels - * Required. The labels to set for that cluster. - * @param {string} request.labelFingerprint - * Required. The fingerprint of the previous set of labels for this resource, - * 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 - * resource to get the latest fingerprint. - * @param {string} [request.name] - * The name (project, location, cluster id) of the cluster to set labels. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const resourceLabels = {}; - * const labelFingerprint = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * resourceLabels: resourceLabels, - * labelFingerprint: labelFingerprint, - * }; - * client.setLabels(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setLabels(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setLabels(request, options, callback); - } - - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @param {boolean} request.enabled - * Required. Whether ABAC authorization will be enabled in the cluster. - * @param {string} [request.name] - * The name (project, location, cluster id) of the cluster to set legacy abac. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const enabled = false; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * enabled: enabled, - * }; - * client.setLegacyAbac(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setLegacyAbac(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setLegacyAbac(request, options, callback); - } - - /** - * Starts master IP rotation. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param {string} [request.name] - * The name (project, location, cluster id) of the cluster to start IP - * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {boolean} [request.rotateCredentials] - * Whether to rotate credentials during IP rotation. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * }; - * client.startIPRotation(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - startIPRotation(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.startIPRotation(request, options, callback); - } - - /** - * Completes master IP rotation. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param {string} [request.name] - * The name (project, location, cluster id) of the cluster to complete IP - * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * }; - * client.completeIPRotation(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - completeIPRotation(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.completeIPRotation(request, options, callback); - } - - /** - * Sets the size for a specific node pool. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @param {number} request.nodeCount - * Required. The desired node count for the pool. - * @param {string} [request.name] - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const nodePoolId = ''; - * const nodeCount = 0; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * nodePoolId: nodePoolId, - * nodeCount: nodeCount, - * }; - * client.setNodePoolSize(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setNodePoolSize(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setNodePoolSize(request, options, callback); - } - - /** - * Enables or disables Network Policy for a cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * Required. 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. - * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param {Object} request.networkPolicy - * Required. Configuration options for the NetworkPolicy feature. - * - * This object should have the same structure as [NetworkPolicy]{@link google.container.v1.NetworkPolicy} - * @param {string} [request.name] - * The name (project, location, cluster id) of the cluster to set networking - * policy. Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const networkPolicy = {}; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * networkPolicy: networkPolicy, - * }; - * client.setNetworkPolicy(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setNetworkPolicy(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setNetworkPolicy(request, options, callback); - } - - /** - * Sets the maintenance policy for a cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param {string} request.zone - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * @param {string} request.clusterId - * Required. The name of the cluster to update. - * @param {Object} request.maintenancePolicy - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} - * @param {string} [request.name] - * The name (project, location, cluster id) of the cluster to set maintenance - * policy. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is an object representing [Operation]{@link google.container.v1.Operation}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * const projectId = ''; - * const zone = ''; - * const clusterId = ''; - * const maintenancePolicy = {}; - * const request = { - * projectId: projectId, - * zone: zone, - * clusterId: clusterId, - * maintenancePolicy: maintenancePolicy, - * }; - * client.setMaintenancePolicy(request) - * .then(responses => { - * const response = responses[0]; - * // doThingsWith(response) - * }) - * .catch(err => { - * console.error(err); - * }); - */ - setMaintenancePolicy(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name, - }); - - return this._innerApiCalls.setMaintenancePolicy(request, options, callback); - } - - /** - * Lists subnetworks that are usable for creating clusters in a project. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} [request.parent] - * The parent project where subnetworks are usable. - * Specified in the format 'projects/*'. - * @param {string} [request.filter] - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * @param {number} [request.pageSize] - * The maximum number of resources contained in the underlying API - * response. If page streaming is performed per-resource, this - * parameter does not affect the return value. If page streaming is - * performed per-page, this determines the maximum number of - * resources in a page. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @param {function(?Error, ?Array, ?Object, ?Object)} [callback] - * The function which will be called with the result of the API call. - * - * The second parameter to the callback is Array of [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork}. - * - * When autoPaginate: false is specified through options, it contains the result - * in a single response. If the response indicates the next page exists, the third - * parameter is set to be used for the next request object. The fourth parameter keeps - * the raw response object of an object representing [ListUsableSubnetworksResponse]{@link google.container.v1.ListUsableSubnetworksResponse}. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork}. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} in a single response. - * The second element is the next request object if the response - * indicates the next page exists, or null. The third element is - * an object representing [ListUsableSubnetworksResponse]{@link google.container.v1.ListUsableSubnetworksResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * // Iterate over all elements. - * client.listUsableSubnetworks({}) - * .then(responses => { - * const resources = responses[0]; - * for (const resource of resources) { - * // doThingsWith(resource) - * } - * }) - * .catch(err => { - * console.error(err); - * }); - * - * // Or obtain the paged response. - * - * const options = {autoPaginate: false}; - * const callback = responses => { - * // The actual resources in a response. - * const resources = responses[0]; - * // The next request if the response shows that there are more responses. - * const nextRequest = responses[1]; - * // The actual response object, if necessary. - * // const rawResponse = responses[2]; - * for (const resource of resources) { - * // doThingsWith(resource); - * } - * if (nextRequest) { - * // Fetch the next page. - * return client.listUsableSubnetworks(nextRequest, options).then(callback); - * } - * } - * client.listUsableSubnetworks({}, options) - * .then(callback) - * .catch(err => { - * console.error(err); - * }); - */ - listUsableSubnetworks(request, options, callback) { - if (options instanceof Function && callback === undefined) { - callback = options; - options = {}; - } - request = request || {}; - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent, - }); - - return this._innerApiCalls.listUsableSubnetworks( - request, - options, - callback - ); - } - - /** - * Equivalent to {@link listUsableSubnetworks}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listUsableSubnetworks} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * - * @param {Object} request - * The request object that will be sent. - * @param {string} [request.parent] - * The parent project where subnetworks are usable. - * Specified in the format 'projects/*'. - * @param {string} [request.filter] - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * @param {number} [request.pageSize] - * The maximum number of resources contained in the underlying API - * response. If page streaming is performed per-resource, this - * parameter does not affect the return value. If page streaming is - * performed per-page, this determines the maximum number of - * resources in a page. - * @param {Object} [options] - * Optional parameters. You can override the default settings for this call, e.g, timeout, - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. - * @returns {Stream} - * An object stream which emits an object representing [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} on 'data' event. - * - * @example - * - * const container = require('@google-cloud/container'); - * - * const client = new container.v1.ClusterManagerClient({ - * // optional auth parameters. - * }); - * - * - * client.listUsableSubnetworksStream({}) - * .on('data', element => { - * // doThingsWith(element) - * }).on('error', err => { - * console.log(err); - * }); - */ - listUsableSubnetworksStream(request, options) { - options = options || {}; - - return this._descriptors.page.listUsableSubnetworks.createStream( - this._innerApiCalls.listUsableSubnetworks, - request, - options - ); - } -} - -module.exports = ClusterManagerClient; diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts new file mode 100644 index 00000000000..4eb48d4a7ef --- /dev/null +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -0,0 +1,3136 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as gax from 'google-gax'; +import { + APICallback, + Callback, + CallOptions, + Descriptors, + ClientOptions, + PaginationCallback, + PaginationResponse, +} from 'google-gax'; +import * as path from 'path'; + +import {Transform} from 'stream'; +import * as protosTypes from '../../protos/protos'; +import * as gapicConfig from './cluster_manager_client_config.json'; + +const version = require('../../../package.json').version; + +/** + * Google Kubernetes Engine Cluster Manager v1 + * @class + * @memberof v1 + */ +export class ClusterManagerClient { + private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}}; + private _innerApiCalls: {[name: string]: Function}; + private _terminated = false; + auth: gax.GoogleAuth; + clusterManagerStub: Promise<{[name: string]: Function}>; + + /** + * Construct an instance of ClusterManagerClient. + * + * @param {object} [options] - The configuration object. See the subsequent + * parameters for more details. + * @param {object} [options.credentials] - Credentials object. + * @param {string} [options.credentials.client_email] + * @param {string} [options.credentials.private_key] + * @param {string} [options.email] - Account email address. Required when + * using a .pem or .p12 keyFilename. + * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or + * .p12 key downloaded from the Google Developers Console. If you provide + * a path to a JSON file, the projectId option below is not necessary. + * NOTE: .pem and .p12 require you to specify options.email as well. + * @param {number} [options.port] - The port on which to connect to + * the remote host. + * @param {string} [options.projectId] - The project ID from the Google + * Developer's Console, e.g. 'grape-spaceship-123'. We will also check + * the environment variable GCLOUD_PROJECT for your project ID. If your + * app is running in an environment which supports + * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, + * your project ID will be detected automatically. + * @param {function} [options.promise] - Custom promise module to use instead + * of native Promises. + * @param {string} [options.apiEndpoint] - The domain name of the + * API remote host. + */ + + constructor(opts?: ClientOptions) { + // Ensure that options include the service address and port. + const staticMembers = this.constructor as typeof ClusterManagerClient; + const servicePath = + opts && opts.servicePath + ? opts.servicePath + : opts && opts.apiEndpoint + ? opts.apiEndpoint + : staticMembers.servicePath; + const port = opts && opts.port ? opts.port : staticMembers.port; + + if (!opts) { + opts = {servicePath, port}; + } + opts.servicePath = opts.servicePath || servicePath; + opts.port = opts.port || port; + opts.clientConfig = opts.clientConfig || {}; + + const isBrowser = typeof window !== 'undefined'; + if (isBrowser) { + opts.fallback = true; + } + // If we are in browser, we are already using fallback because of the + // "browser" field in package.json. + // But if we were explicitly requested to use fallback, let's do it now. + const gaxModule = !isBrowser && opts.fallback ? gax.fallback : gax; + + // Create a `gaxGrpc` object, with any grpc-specific options + // sent to the client. + opts.scopes = (this.constructor as typeof ClusterManagerClient).scopes; + const gaxGrpc = new gaxModule.GrpcClient(opts); + + // Save the auth object to the client, for use by other methods. + this.auth = gaxGrpc.auth as gax.GoogleAuth; + + // Determine the client header string. + const clientHeader = [`gax/${gaxModule.version}`, `gapic/${version}`]; + if (typeof process !== 'undefined' && 'versions' in process) { + clientHeader.push(`gl-node/${process.versions.node}`); + } else { + clientHeader.push(`gl-web/${gaxModule.version}`); + } + if (!opts.fallback) { + clientHeader.push(`grpc/${gaxGrpc.grpcVersion}`); + } + if (opts.libName && opts.libVersion) { + clientHeader.push(`${opts.libName}/${opts.libVersion}`); + } + // Load the applicable protos. + // For Node.js, pass the path to JSON proto file. + // For browsers, pass the JSON content. + + const nodejsProtoPath = path.join( + __dirname, + '..', + '..', + 'protos', + 'protos.json' + ); + const protos = gaxGrpc.loadProto( + opts.fallback ? require('../../protos/protos.json') : nodejsProtoPath + ); + + // Some of the methods on this service return "paged" results, + // (e.g. 50 results at a time, with tokens to get subsequent + // pages). Denote the keys used for pagination and results. + this._descriptors.page = { + listUsableSubnetworks: new gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'subnetworks' + ), + }; + + // Put together the default options sent with requests. + const defaults = gaxGrpc.constructSettings( + 'google.container.v1.ClusterManager', + gapicConfig as gax.ClientConfig, + opts.clientConfig || {}, + {'x-goog-api-client': clientHeader.join(' ')} + ); + + // Set up a dictionary of "inner API calls"; the core implementation + // of calling the API is handled in `google-gax`, with this code + // merely providing the destination and request information. + this._innerApiCalls = {}; + + // Put together the "service stub" for + // google.container.v1.ClusterManager. + this.clusterManagerStub = gaxGrpc.createStub( + opts.fallback + ? (protos as protobuf.Root).lookupService( + 'google.container.v1.ClusterManager' + ) + : // tslint:disable-next-line no-any + (protos as any).google.container.v1.ClusterManager, + opts + ) as Promise<{[method: string]: Function}>; + + // Iterate over each of the methods that the service provides + // and create an API call method for each. + const clusterManagerStubMethods = [ + 'listClusters', + 'getCluster', + 'createCluster', + 'updateCluster', + 'updateNodePool', + 'setNodePoolAutoscaling', + 'setLoggingService', + 'setMonitoringService', + 'setAddonsConfig', + 'setLocations', + 'updateMaster', + 'setMasterAuth', + 'deleteCluster', + 'listOperations', + 'getOperation', + 'cancelOperation', + 'getServerConfig', + 'listNodePools', + 'getNodePool', + 'createNodePool', + 'deleteNodePool', + 'rollbackNodePoolUpgrade', + 'setNodePoolManagement', + 'setLabels', + 'setLegacyAbac', + 'startIPRotation', + 'completeIPRotation', + 'setNodePoolSize', + 'setNetworkPolicy', + 'setMaintenancePolicy', + 'listUsableSubnetworks', + ]; + + for (const methodName of clusterManagerStubMethods) { + const innerCallPromise = this.clusterManagerStub.then( + stub => (...args: Array<{}>) => { + return stub[methodName].apply(stub, args); + }, + (err: Error | null | undefined) => () => { + throw err; + } + ); + + const apiCall = gaxModule.createApiCall( + innerCallPromise, + defaults[methodName], + this._descriptors.page[methodName] || + this._descriptors.stream[methodName] || + this._descriptors.longrunning[methodName] + ); + + this._innerApiCalls[methodName] = ( + argument: {}, + callOptions?: CallOptions, + callback?: APICallback + ) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + return apiCall(argument, callOptions, callback); + }; + } + } + + /** + * The DNS address for this API service. + */ + static get servicePath() { + return 'container.googleapis.com'; + } + + /** + * The DNS address for this API service - same as servicePath(), + * exists for compatibility reasons. + */ + static get apiEndpoint() { + return 'container.googleapis.com'; + } + + /** + * The port for this API service. + */ + static get port() { + return 443; + } + + /** + * The scopes needed to make gRPC calls for every method defined + * in this service. + */ + static get scopes() { + return ['https://www.googleapis.com/auth/cloud-platform']; + } + + getProjectId(): Promise; + getProjectId(callback: Callback): void; + /** + * Return the project ID used by this class. + * @param {function(Error, string)} callback - the callback to + * be called with the current project Id. + */ + getProjectId( + callback?: Callback + ): Promise | void { + if (callback) { + this.auth.getProjectId(callback); + return; + } + return this.auth.getProjectId(); + } + + // ------------------- + // -- Service calls -- + // ------------------- + listClusters( + request: protosTypes.google.container.v1.IListClustersRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IListClustersResponse, + protosTypes.google.container.v1.IListClustersRequest | undefined, + {} | undefined + ] + >; + listClusters( + request: protosTypes.google.container.v1.IListClustersRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IListClustersResponse, + protosTypes.google.container.v1.IListClustersRequest | undefined, + {} | undefined + > + ): void; + /** + * Lists all clusters owned by a project in either the specified zone or all + * zones. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides, or "-" for all zones. + * This field has been deprecated and replaced by the parent field. + * @param {string} request.parent + * The parent (project and location) where the clusters will be listed. + * Specified in the format 'projects/* /locations/*'. + * Location "-" matches all zones and all regions. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ListClustersResponse]{@link google.container.v1.ListClustersResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listClusters( + request: protosTypes.google.container.v1.IListClustersRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IListClustersResponse, + protosTypes.google.container.v1.IListClustersRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IListClustersResponse, + protosTypes.google.container.v1.IListClustersRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IListClustersResponse, + protosTypes.google.container.v1.IListClustersRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + return this._innerApiCalls.listClusters(request, options, callback); + } + getCluster( + request: protosTypes.google.container.v1.IGetClusterRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.ICluster, + protosTypes.google.container.v1.IGetClusterRequest | undefined, + {} | undefined + ] + >; + getCluster( + request: protosTypes.google.container.v1.IGetClusterRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.ICluster, + protosTypes.google.container.v1.IGetClusterRequest | undefined, + {} | undefined + > + ): void; + /** + * Gets the details of a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + * @param {string} request.name + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Cluster]{@link google.container.v1.Cluster}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getCluster( + request: protosTypes.google.container.v1.IGetClusterRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.ICluster, + protosTypes.google.container.v1.IGetClusterRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.ICluster, + protosTypes.google.container.v1.IGetClusterRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.ICluster, + protosTypes.google.container.v1.IGetClusterRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.getCluster(request, options, callback); + } + createCluster( + request: protosTypes.google.container.v1.ICreateClusterRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICreateClusterRequest | undefined, + {} | undefined + ] + >; + createCluster( + request: protosTypes.google.container.v1.ICreateClusterRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICreateClusterRequest | undefined, + {} | undefined + > + ): void; + /** + * Creates a cluster, consisting of the specified number and type of Google + * Compute Engine instances. + * + * By default, the cluster is created in the project's + * [default network](https://cloud.google.com/vpc/docs/firewalls#networks). + * + * One firewall is added for the cluster. After cluster creation, + * the Kubelet creates routes for each node to allow the containers + * on that node to communicate with all other instances in the + * cluster. + * + * Finally, an entry is added to the project's global metadata indicating + * which CIDR range the cluster is using. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the parent field. + * @param {google.container.v1.Cluster} request.cluster + * Required. A [cluster + * resource](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters) + * @param {string} request.parent + * The parent (project and location) where the cluster will be created. + * Specified in the format 'projects/* /locations/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + createCluster( + request: protosTypes.google.container.v1.ICreateClusterRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICreateClusterRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICreateClusterRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICreateClusterRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + return this._innerApiCalls.createCluster(request, options, callback); + } + updateCluster( + request: protosTypes.google.container.v1.IUpdateClusterRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateClusterRequest | undefined, + {} | undefined + ] + >; + updateCluster( + request: protosTypes.google.container.v1.IUpdateClusterRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateClusterRequest | undefined, + {} | undefined + > + ): void; + /** + * Updates the settings of a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {google.container.v1.ClusterUpdate} request.update + * Required. A description of the update. + * @param {string} request.name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateCluster( + request: protosTypes.google.container.v1.IUpdateClusterRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateClusterRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateClusterRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateClusterRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.updateCluster(request, options, callback); + } + updateNodePool( + request: protosTypes.google.container.v1.IUpdateNodePoolRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateNodePoolRequest | undefined, + {} | undefined + ] + >; + updateNodePool( + request: protosTypes.google.container.v1.IUpdateNodePoolRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateNodePoolRequest | undefined, + {} | undefined + > + ): void; + /** + * Updates the version and/or image type for the specified node pool. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {string} request.nodePoolId + * Required. Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {string} request.nodeVersion + * Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + * @param {string} request.imageType + * Required. The desired image type for the node pool. + * @param {string} request.name + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateNodePool( + request: protosTypes.google.container.v1.IUpdateNodePoolRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateNodePoolRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateNodePoolRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateNodePoolRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.updateNodePool(request, options, callback); + } + setNodePoolAutoscaling( + request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + ( + | protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest + | undefined + ), + {} | undefined + ] + >; + setNodePoolAutoscaling( + request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + | protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest + | undefined, + {} | undefined + > + ): void; + /** + * Sets the autoscaling settings for the specified node pool. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {string} request.nodePoolId + * Required. Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {google.container.v1.NodePoolAutoscaling} request.autoscaling + * Required. Autoscaling configuration for the node pool. + * @param {string} request.name + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setNodePoolAutoscaling( + request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + | protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest + | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + | protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest + | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + ( + | protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setNodePoolAutoscaling( + request, + options, + callback + ); + } + setLoggingService( + request: protosTypes.google.container.v1.ISetLoggingServiceRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLoggingServiceRequest | undefined, + {} | undefined + ] + >; + setLoggingService( + request: protosTypes.google.container.v1.ISetLoggingServiceRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLoggingServiceRequest | undefined, + {} | undefined + > + ): void; + /** + * Sets the logging service for a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {string} request.loggingService + * Required. The logging service the cluster should use to write metrics. + * Currently available options: + * + * * "logging.googleapis.com" - the Google Cloud Logging service + * * "none" - no metrics will be exported from the cluster + * @param {string} request.name + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setLoggingService( + request: protosTypes.google.container.v1.ISetLoggingServiceRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLoggingServiceRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLoggingServiceRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLoggingServiceRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setLoggingService(request, options, callback); + } + setMonitoringService( + request: protosTypes.google.container.v1.ISetMonitoringServiceRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMonitoringServiceRequest | undefined, + {} | undefined + ] + >; + setMonitoringService( + request: protosTypes.google.container.v1.ISetMonitoringServiceRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMonitoringServiceRequest | undefined, + {} | undefined + > + ): void; + /** + * Sets the monitoring service for a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {string} request.monitoringService + * 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 + * @param {string} request.name + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setMonitoringService( + request: protosTypes.google.container.v1.ISetMonitoringServiceRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + | protosTypes.google.container.v1.ISetMonitoringServiceRequest + | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMonitoringServiceRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMonitoringServiceRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setMonitoringService(request, options, callback); + } + setAddonsConfig( + request: protosTypes.google.container.v1.ISetAddonsConfigRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetAddonsConfigRequest | undefined, + {} | undefined + ] + >; + setAddonsConfig( + request: protosTypes.google.container.v1.ISetAddonsConfigRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetAddonsConfigRequest | undefined, + {} | undefined + > + ): void; + /** + * Sets the addons for a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {google.container.v1.AddonsConfig} request.addonsConfig + * Required. The desired configurations for the various addons available to run in the + * cluster. + * @param {string} request.name + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setAddonsConfig( + request: protosTypes.google.container.v1.ISetAddonsConfigRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetAddonsConfigRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetAddonsConfigRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetAddonsConfigRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setAddonsConfig(request, options, callback); + } + setLocations( + request: protosTypes.google.container.v1.ISetLocationsRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLocationsRequest | undefined, + {} | undefined + ] + >; + setLocations( + request: protosTypes.google.container.v1.ISetLocationsRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLocationsRequest | undefined, + {} | undefined + > + ): void; + /** + * Sets the locations for a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {string[]} request.locations + * Required. The desired list of Google Compute Engine + * [zones](https://cloud.google.com/compute/docs/regions-zones/) 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. + * @param {string} request.name + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setLocations( + request: protosTypes.google.container.v1.ISetLocationsRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLocationsRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLocationsRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLocationsRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setLocations(request, options, callback); + } + updateMaster( + request: protosTypes.google.container.v1.IUpdateMasterRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateMasterRequest | undefined, + {} | undefined + ] + >; + updateMaster( + request: protosTypes.google.container.v1.IUpdateMasterRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateMasterRequest | undefined, + {} | undefined + > + ): void; + /** + * Updates the master for a specific cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {string} request.masterVersion + * Required. The Kubernetes version to change the master to. + * + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + * @param {string} request.name + * The name (project, location, cluster) of the cluster to update. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + updateMaster( + request: protosTypes.google.container.v1.IUpdateMasterRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateMasterRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateMasterRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IUpdateMasterRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.updateMaster(request, options, callback); + } + setMasterAuth( + request: protosTypes.google.container.v1.ISetMasterAuthRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMasterAuthRequest | undefined, + {} | undefined + ] + >; + setMasterAuth( + request: protosTypes.google.container.v1.ISetMasterAuthRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMasterAuthRequest | undefined, + {} | undefined + > + ): void; + /** + * Sets master auth materials. Currently supports changing the admin password + * or a specific cluster, either via password generation or explicitly setting + * the password. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + * @param {google.container.v1.SetMasterAuthRequest.Action} request.action + * Required. The exact form of action to be taken on the master auth. + * @param {google.container.v1.MasterAuth} request.update + * Required. A description of the update. + * @param {string} request.name + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setMasterAuth( + request: protosTypes.google.container.v1.ISetMasterAuthRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMasterAuthRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMasterAuthRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMasterAuthRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setMasterAuth(request, options, callback); + } + deleteCluster( + request: protosTypes.google.container.v1.IDeleteClusterRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IDeleteClusterRequest | undefined, + {} | undefined + ] + >; + deleteCluster( + request: protosTypes.google.container.v1.IDeleteClusterRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IDeleteClusterRequest | undefined, + {} | undefined + > + ): void; + /** + * Deletes the cluster, including the Kubernetes endpoint and all worker + * nodes. + * + * Firewalls and routes that were configured during cluster creation + * are also deleted. + * + * Other Google Compute Engine resources that might be in use by the cluster, + * such as load balancer resources, are not deleted if they weren't present + * when the cluster was initially created. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + * @param {string} request.name + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + deleteCluster( + request: protosTypes.google.container.v1.IDeleteClusterRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IDeleteClusterRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IDeleteClusterRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IDeleteClusterRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.deleteCluster(request, options, callback); + } + listOperations( + request: protosTypes.google.container.v1.IListOperationsRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IListOperationsResponse, + protosTypes.google.container.v1.IListOperationsRequest | undefined, + {} | undefined + ] + >; + listOperations( + request: protosTypes.google.container.v1.IListOperationsRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IListOperationsResponse, + protosTypes.google.container.v1.IListOperationsRequest | undefined, + {} | undefined + > + ): void; + /** + * Lists all operations in a project in a specific zone or all zones. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) to return operations for, or `-` for + * all zones. This field has been deprecated and replaced by the parent field. + * @param {string} request.parent + * The parent (project and location) where the operations will be listed. + * Specified in the format 'projects/* /locations/*'. + * Location "-" matches all zones and all regions. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ListOperationsResponse]{@link google.container.v1.ListOperationsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listOperations( + request: protosTypes.google.container.v1.IListOperationsRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IListOperationsResponse, + protosTypes.google.container.v1.IListOperationsRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IListOperationsResponse, + protosTypes.google.container.v1.IListOperationsRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IListOperationsResponse, + protosTypes.google.container.v1.IListOperationsRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + return this._innerApiCalls.listOperations(request, options, callback); + } + getOperation( + request: protosTypes.google.container.v1.IGetOperationRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IGetOperationRequest | undefined, + {} | undefined + ] + >; + getOperation( + request: protosTypes.google.container.v1.IGetOperationRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IGetOperationRequest | undefined, + {} | undefined + > + ): void; + /** + * Gets the specified operation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.operationId + * Required. Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @param {string} request.name + * The name (project, location, operation id) of the operation to get. + * Specified in the format 'projects/* /locations/* /operations/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getOperation( + request: protosTypes.google.container.v1.IGetOperationRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IGetOperationRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IGetOperationRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IGetOperationRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.getOperation(request, options, callback); + } + cancelOperation( + request: protosTypes.google.container.v1.ICancelOperationRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.protobuf.IEmpty, + protosTypes.google.container.v1.ICancelOperationRequest | undefined, + {} | undefined + ] + >; + cancelOperation( + request: protosTypes.google.container.v1.ICancelOperationRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.protobuf.IEmpty, + protosTypes.google.container.v1.ICancelOperationRequest | undefined, + {} | undefined + > + ): void; + /** + * Cancels the specified operation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the operation resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.operationId + * Required. Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + * @param {string} request.name + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format 'projects/* /locations/* /operations/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + cancelOperation( + request: protosTypes.google.container.v1.ICancelOperationRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.protobuf.IEmpty, + protosTypes.google.container.v1.ICancelOperationRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.protobuf.IEmpty, + protosTypes.google.container.v1.ICancelOperationRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.protobuf.IEmpty, + protosTypes.google.container.v1.ICancelOperationRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.cancelOperation(request, options, callback); + } + getServerConfig( + request: protosTypes.google.container.v1.IGetServerConfigRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IServerConfig, + protosTypes.google.container.v1.IGetServerConfigRequest | undefined, + {} | undefined + ] + >; + getServerConfig( + request: protosTypes.google.container.v1.IGetServerConfigRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IServerConfig, + protosTypes.google.container.v1.IGetServerConfigRequest | undefined, + {} | undefined + > + ): void; + /** + * Returns configuration info about the Google Kubernetes Engine service. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) to return operations for. + * This field has been deprecated and replaced by the name field. + * @param {string} request.name + * The name (project and location) of the server config to get, + * specified in the format 'projects/* /locations/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ServerConfig]{@link google.container.v1.ServerConfig}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getServerConfig( + request: protosTypes.google.container.v1.IGetServerConfigRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IServerConfig, + protosTypes.google.container.v1.IGetServerConfigRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IServerConfig, + protosTypes.google.container.v1.IGetServerConfigRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IServerConfig, + protosTypes.google.container.v1.IGetServerConfigRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.getServerConfig(request, options, callback); + } + listNodePools( + request: protosTypes.google.container.v1.IListNodePoolsRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IListNodePoolsResponse, + protosTypes.google.container.v1.IListNodePoolsRequest | undefined, + {} | undefined + ] + >; + listNodePools( + request: protosTypes.google.container.v1.IListNodePoolsRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IListNodePoolsResponse, + protosTypes.google.container.v1.IListNodePoolsRequest | undefined, + {} | undefined + > + ): void; + /** + * Lists the node pools for a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the parent field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @param {string} request.parent + * The parent (project, location, cluster id) where the node pools will be + * listed. Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ListNodePoolsResponse]{@link google.container.v1.ListNodePoolsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listNodePools( + request: protosTypes.google.container.v1.IListNodePoolsRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IListNodePoolsResponse, + protosTypes.google.container.v1.IListNodePoolsRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IListNodePoolsResponse, + protosTypes.google.container.v1.IListNodePoolsRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IListNodePoolsResponse, + protosTypes.google.container.v1.IListNodePoolsRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + return this._innerApiCalls.listNodePools(request, options, callback); + } + getNodePool( + request: protosTypes.google.container.v1.IGetNodePoolRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.INodePool, + protosTypes.google.container.v1.IGetNodePoolRequest | undefined, + {} | undefined + ] + >; + getNodePool( + request: protosTypes.google.container.v1.IGetNodePoolRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.INodePool, + protosTypes.google.container.v1.IGetNodePoolRequest | undefined, + {} | undefined + > + ): void; + /** + * Retrieves the requested node pool. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param {string} request.nodePoolId + * Required. Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + * @param {string} request.name + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [NodePool]{@link google.container.v1.NodePool}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getNodePool( + request: protosTypes.google.container.v1.IGetNodePoolRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.INodePool, + protosTypes.google.container.v1.IGetNodePoolRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.INodePool, + protosTypes.google.container.v1.IGetNodePoolRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.INodePool, + protosTypes.google.container.v1.IGetNodePoolRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.getNodePool(request, options, callback); + } + createNodePool( + request: protosTypes.google.container.v1.ICreateNodePoolRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICreateNodePoolRequest | undefined, + {} | undefined + ] + >; + createNodePool( + request: protosTypes.google.container.v1.ICreateNodePoolRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICreateNodePoolRequest | undefined, + {} | undefined + > + ): void; + /** + * Creates a node pool for a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the parent field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + * @param {google.container.v1.NodePool} request.nodePool + * Required. The node pool to create. + * @param {string} request.parent + * The parent (project, location, cluster id) where the node pool will be + * created. Specified in the format + * 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + createNodePool( + request: protosTypes.google.container.v1.ICreateNodePoolRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICreateNodePoolRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICreateNodePoolRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICreateNodePoolRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + return this._innerApiCalls.createNodePool(request, options, callback); + } + deleteNodePool( + request: protosTypes.google.container.v1.IDeleteNodePoolRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IDeleteNodePoolRequest | undefined, + {} | undefined + ] + >; + deleteNodePool( + request: protosTypes.google.container.v1.IDeleteNodePoolRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IDeleteNodePoolRequest | undefined, + {} | undefined + > + ): void; + /** + * Deletes a node pool from a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param {string} request.nodePoolId + * Required. Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + * @param {string} request.name + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + deleteNodePool( + request: protosTypes.google.container.v1.IDeleteNodePoolRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IDeleteNodePoolRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IDeleteNodePoolRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IDeleteNodePoolRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.deleteNodePool(request, options, callback); + } + rollbackNodePoolUpgrade( + request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + ( + | protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest + | undefined + ), + {} | undefined + ] + >; + rollbackNodePoolUpgrade( + request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + | protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest + | undefined, + {} | undefined + > + ): void; + /** + * Rolls back a previously Aborted or Failed NodePool upgrade. + * This makes no changes if the last upgrade successfully completed. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + * @param {string} request.nodePoolId + * Required. Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + * @param {string} request.name + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + rollbackNodePoolUpgrade( + request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + | protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest + | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + | protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest + | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + ( + | protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.rollbackNodePoolUpgrade( + request, + options, + callback + ); + } + setNodePoolManagement( + request: protosTypes.google.container.v1.ISetNodePoolManagementRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNodePoolManagementRequest | undefined, + {} | undefined + ] + >; + setNodePoolManagement( + request: protosTypes.google.container.v1.ISetNodePoolManagementRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNodePoolManagementRequest | undefined, + {} | undefined + > + ): void; + /** + * Sets the NodeManagement options for a node pool. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @param {string} request.nodePoolId + * Required. Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * @param {google.container.v1.NodeManagement} request.management + * Required. NodeManagement configuration for the node pool. + * @param {string} request.name + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * 'projects/* /locations/* /clusters/* /nodePools/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setNodePoolManagement( + request: protosTypes.google.container.v1.ISetNodePoolManagementRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + | protosTypes.google.container.v1.ISetNodePoolManagementRequest + | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNodePoolManagementRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNodePoolManagementRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setNodePoolManagement( + request, + options, + callback + ); + } + setLabels( + request: protosTypes.google.container.v1.ISetLabelsRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLabelsRequest | undefined, + {} | undefined + ] + >; + setLabels( + request: protosTypes.google.container.v1.ISetLabelsRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLabelsRequest | undefined, + {} | undefined + > + ): void; + /** + * Sets labels on a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param {number[]} request.resourceLabels + * Required. The labels to set for that cluster. + * @param {string} request.labelFingerprint + * Required. The fingerprint of the previous set of labels for this resource, + * 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 + * resource to get the latest fingerprint. + * @param {string} request.name + * The name (project, location, cluster id) of the cluster to set labels. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setLabels( + request: protosTypes.google.container.v1.ISetLabelsRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLabelsRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLabelsRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLabelsRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setLabels(request, options, callback); + } + setLegacyAbac( + request: protosTypes.google.container.v1.ISetLegacyAbacRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLegacyAbacRequest | undefined, + {} | undefined + ] + >; + setLegacyAbac( + request: protosTypes.google.container.v1.ISetLegacyAbacRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLegacyAbacRequest | undefined, + {} | undefined + > + ): void; + /** + * Enables or disables the ABAC authorization mechanism on a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @param {boolean} request.enabled + * Required. Whether ABAC authorization will be enabled in the cluster. + * @param {string} request.name + * The name (project, location, cluster id) of the cluster to set legacy abac. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setLegacyAbac( + request: protosTypes.google.container.v1.ISetLegacyAbacRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLegacyAbacRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLegacyAbacRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetLegacyAbacRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setLegacyAbac(request, options, callback); + } + startIPRotation( + request: protosTypes.google.container.v1.IStartIPRotationRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IStartIPRotationRequest | undefined, + {} | undefined + ] + >; + startIPRotation( + request: protosTypes.google.container.v1.IStartIPRotationRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IStartIPRotationRequest | undefined, + {} | undefined + > + ): void; + /** + * Starts master IP rotation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param {string} request.name + * The name (project, location, cluster id) of the cluster to start IP + * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {boolean} request.rotateCredentials + * Whether to rotate credentials during IP rotation. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + startIPRotation( + request: protosTypes.google.container.v1.IStartIPRotationRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IStartIPRotationRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IStartIPRotationRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.IStartIPRotationRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.startIPRotation(request, options, callback); + } + completeIPRotation( + request: protosTypes.google.container.v1.ICompleteIPRotationRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICompleteIPRotationRequest | undefined, + {} | undefined + ] + >; + completeIPRotation( + request: protosTypes.google.container.v1.ICompleteIPRotationRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICompleteIPRotationRequest | undefined, + {} | undefined + > + ): void; + /** + * Completes master IP rotation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param {string} request.name + * The name (project, location, cluster id) of the cluster to complete IP + * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + completeIPRotation( + request: protosTypes.google.container.v1.ICompleteIPRotationRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + | protosTypes.google.container.v1.ICompleteIPRotationRequest + | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICompleteIPRotationRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ICompleteIPRotationRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.completeIPRotation(request, options, callback); + } + setNodePoolSize( + request: protosTypes.google.container.v1.ISetNodePoolSizeRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNodePoolSizeRequest | undefined, + {} | undefined + ] + >; + setNodePoolSize( + request: protosTypes.google.container.v1.ISetNodePoolSizeRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNodePoolSizeRequest | undefined, + {} | undefined + > + ): void; + /** + * Sets the size for a specific node pool. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + * @param {string} request.nodePoolId + * Required. Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + * @param {number} request.nodeCount + * Required. The desired node count for the pool. + * @param {string} request.name + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setNodePoolSize( + request: protosTypes.google.container.v1.ISetNodePoolSizeRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNodePoolSizeRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNodePoolSizeRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNodePoolSizeRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setNodePoolSize(request, options, callback); + } + setNetworkPolicy( + request: protosTypes.google.container.v1.ISetNetworkPolicyRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNetworkPolicyRequest | undefined, + {} | undefined + ] + >; + setNetworkPolicy( + request: protosTypes.google.container.v1.ISetNetworkPolicyRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNetworkPolicyRequest | undefined, + {} | undefined + > + ): void; + /** + * Enables or disables Network Policy for a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * Required. Deprecated. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * This field has been deprecated and replaced by the name field. + * @param {string} request.clusterId + * Required. Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + * @param {google.container.v1.NetworkPolicy} request.networkPolicy + * Required. Configuration options for the NetworkPolicy feature. + * @param {string} request.name + * The name (project, location, cluster id) of the cluster to set networking + * policy. Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setNetworkPolicy( + request: protosTypes.google.container.v1.ISetNetworkPolicyRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNetworkPolicyRequest | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNetworkPolicyRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetNetworkPolicyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setNetworkPolicy(request, options, callback); + } + setMaintenancePolicy( + request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMaintenancePolicyRequest | undefined, + {} | undefined + ] + >; + setMaintenancePolicy( + request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMaintenancePolicyRequest | undefined, + {} | undefined + > + ): void; + /** + * Sets the maintenance policy for a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * resides. + * @param {string} request.clusterId + * Required. The name of the cluster to update. + * @param {google.container.v1.MaintenancePolicy} request.maintenancePolicy + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * @param {string} request.name + * The name (project, location, cluster id) of the cluster to set maintenance + * policy. + * Specified in the format 'projects/* /locations/* /clusters/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setMaintenancePolicy( + request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IOperation, + | protosTypes.google.container.v1.ISetMaintenancePolicyRequest + | undefined, + {} | undefined + >, + callback?: Callback< + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMaintenancePolicyRequest | undefined, + {} | undefined + > + ): Promise< + [ + protosTypes.google.container.v1.IOperation, + protosTypes.google.container.v1.ISetMaintenancePolicyRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + name: request.name || '', + }); + return this._innerApiCalls.setMaintenancePolicy(request, options, callback); + } + + listUsableSubnetworks( + request: protosTypes.google.container.v1.IListUsableSubnetworksRequest, + options?: gax.CallOptions + ): Promise< + [ + protosTypes.google.container.v1.IUsableSubnetwork[], + protosTypes.google.container.v1.IListUsableSubnetworksRequest | null, + protosTypes.google.container.v1.IListUsableSubnetworksResponse + ] + >; + listUsableSubnetworks( + request: protosTypes.google.container.v1.IListUsableSubnetworksRequest, + options: gax.CallOptions, + callback: Callback< + protosTypes.google.container.v1.IUsableSubnetwork[], + protosTypes.google.container.v1.IListUsableSubnetworksRequest | null, + protosTypes.google.container.v1.IListUsableSubnetworksResponse + > + ): void; + /** + * Lists subnetworks that are usable for creating clusters in a project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * The parent project where subnetworks are usable. + * Specified in the format 'projects/*'. + * @param {string} request.filter + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * @param {number} request.pageSize + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string} request.pageToken + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork}. + * The client library support auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * + * When autoPaginate: false is specified through options, the array has three elements. + * The first element is Array of [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} that corresponds to + * the one page received from the API server. + * If the second element is not null it contains the request object of type [ListUsableSubnetworksRequest]{@link google.container.v1.ListUsableSubnetworksRequest} + * that can be used to obtain the next page of the results. + * If it is null, the next page does not exist. + * The third element contains the raw response received from the API server. Its type is + * [ListUsableSubnetworksResponse]{@link google.container.v1.ListUsableSubnetworksResponse}. + * + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + listUsableSubnetworks( + request: protosTypes.google.container.v1.IListUsableSubnetworksRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protosTypes.google.container.v1.IUsableSubnetwork[], + protosTypes.google.container.v1.IListUsableSubnetworksRequest | null, + protosTypes.google.container.v1.IListUsableSubnetworksResponse + >, + callback?: Callback< + protosTypes.google.container.v1.IUsableSubnetwork[], + protosTypes.google.container.v1.IListUsableSubnetworksRequest | null, + protosTypes.google.container.v1.IListUsableSubnetworksResponse + > + ): Promise< + [ + protosTypes.google.container.v1.IUsableSubnetwork[], + protosTypes.google.container.v1.IListUsableSubnetworksRequest | null, + protosTypes.google.container.v1.IListUsableSubnetworksResponse + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + return this._innerApiCalls.listUsableSubnetworks( + request, + options, + callback + ); + } + + /** + * Equivalent to {@link listUsableSubnetworks}, but returns a NodeJS Stream object. + * + * This fetches the paged responses for {@link listUsableSubnetworks} continuously + * and invokes the callback registered for 'data' event for each element in the + * responses. + * + * The returned object has 'end' method when no more elements are required. + * + * autoPaginate option will be ignored. + * + * @see {@link https://nodejs.org/api/stream.html} + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * The parent project where subnetworks are usable. + * Specified in the format 'projects/*'. + * @param {string} request.filter + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * @param {number} request.pageSize + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string} request.pageToken + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} on 'data' event. + */ + listUsableSubnetworksStream( + request?: protosTypes.google.container.v1.IListUsableSubnetworksRequest, + options?: gax.CallOptions | {} + ): Transform { + request = request || {}; + const callSettings = new gax.CallSettings(options); + return this._descriptors.page.listUsableSubnetworks.createStream( + this._innerApiCalls.listUsableSubnetworks as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Terminate the GRPC channel and close the client. + * + * The client will no longer be usable and all future behavior is undefined. + */ + close(): Promise { + if (!this._terminated) { + return this.clusterManagerStub.then(stub => { + this._terminated = true; + stub.close(); + }); + } + return Promise.resolve(); + } +} diff --git a/packages/google-container/src/v1/cluster_manager_client_config.json b/packages/google-container/src/v1/cluster_manager_client_config.json index d27ba1915db..369ce70d283 100644 --- a/packages/google-container/src/v1/cluster_manager_client_config.json +++ b/packages/google-container/src/v1/cluster_manager_client_config.json @@ -2,31 +2,31 @@ "interfaces": { "google.container.v1.ClusterManager": { "retry_codes": { + "non_idempotent": [], "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" - ], - "non_idempotent": [] + ] }, "retry_params": { "default": { "initial_retry_delay_millis": 100, "retry_delay_multiplier": 1.3, "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, + "initial_rpc_timeout_millis": 60000, + "rpc_timeout_multiplier": 1, + "max_rpc_timeout_millis": 60000, "total_timeout_millis": 600000 } }, "methods": { "ListClusters": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "GetCluster": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, @@ -36,143 +36,142 @@ "retry_params_name": "default" }, "UpdateCluster": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "UpdateNodePool": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNodePoolAutoscaling": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLoggingService": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetMonitoringService": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetAddonsConfig": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLocations": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "UpdateMaster": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetMasterAuth": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "DeleteCluster": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "timeout_millis": 20000, + "retry_codes_name": "idempotent", "retry_params_name": "default" }, "ListOperations": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "GetOperation": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "CancelOperation": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "GetServerConfig": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "ListNodePools": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "GetNodePool": { - "timeout_millis": 60000, + "timeout_millis": 20000, "retry_codes_name": "idempotent", "retry_params_name": "default" }, "CreateNodePool": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "DeleteNodePool": { - "timeout_millis": 60000, - "retry_codes_name": "non_idempotent", + "timeout_millis": 20000, + "retry_codes_name": "idempotent", "retry_params_name": "default" }, "RollbackNodePoolUpgrade": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNodePoolManagement": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLabels": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetLegacyAbac": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "StartIPRotation": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "CompleteIPRotation": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNodePoolSize": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetNetworkPolicy": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "SetMaintenancePolicy": { - "timeout_millis": 60000, + "timeout_millis": 45000, "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, "ListUsableSubnetworks": { - "timeout_millis": 60000, - "retry_codes_name": "idempotent", + "retry_codes_name": "non_idempotent", "retry_params_name": "default" } } diff --git a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js b/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js deleted file mode 100644 index 6ab2fca1744..00000000000 --- a/packages/google-container/src/v1/doc/google/container/v1/doc_cluster_service.js +++ /dev/null @@ -1,3350 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// 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. - -// Note: this file is purely for documentation. Any contents are not expected -// to be loaded as the JS file. - -/** - * Parameters that describe the nodes in a cluster. - * - * @property {string} machineType - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) (e.g. - * `n1-standard-1`). - * - * If unspecified, the default machine type is - * `n1-standard-1`. - * - * @property {number} diskSizeGb - * 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. - * - * @property {string[]} oauthScopes - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * - * The following scopes are recommended, but not required, and by default are - * not included: - * - * * `https://www.googleapis.com/auth/compute` is required for mounting - * 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/)). - * - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * - * @property {string} serviceAccount - * 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. - * - * @property {Object.} metadata - * 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 - * 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" - * - * 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 - * that each value's size must be less than or equal to 32 KB. - * - * The total size of all keys and values must be less than 512 KB. - * - * @property {string} imageType - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. - * - * @property {Object.} labels - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * - * @property {number} localSsdCount - * The number of local SSD disks to be attached to the node. - * - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * - * @property {string[]} tags - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * - * @property {boolean} preemptible - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * - * @property {Object[]} accelerators - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * This object should have the same structure as [AcceleratorConfig]{@link google.container.v1.AcceleratorConfig} - * - * @property {string} diskType - * Type of the disk attached to each node (e.g. 'pd-standard' or 'pd-ssd') - * - * If unspecified, the default disk type is 'pd-standard' - * - * @property {string} minCpuPlatform - * 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 - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * - * @property {Object[]} taints - * 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/ - * - * This object should have the same structure as [NodeTaint]{@link google.container.v1.NodeTaint} - * - * @property {Object} shieldedInstanceConfig - * Shielded Instance options. - * - * This object should have the same structure as [ShieldedInstanceConfig]{@link google.container.v1.ShieldedInstanceConfig} - * - * @typedef NodeConfig - * @memberof google.container.v1 - * @see [google.container.v1.NodeConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const NodeConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * A set of Shielded Instance options. - * - * @property {boolean} enableSecureBoot - * Defines whether the instance has Secure Boot enabled. - * - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * - * @property {boolean} enableIntegrityMonitoring - * Defines whether the instance has integrity monitoring enabled. - * - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * - * @typedef ShieldedInstanceConfig - * @memberof google.container.v1 - * @see [google.container.v1.ShieldedInstanceConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ShieldedInstanceConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * 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/ - * - * @property {string} key - * Key for taint. - * - * @property {string} value - * Value for taint. - * - * @property {number} effect - * Effect for taint. - * - * The number should be among the values of [Effect]{@link google.container.v1.Effect} - * - * @typedef NodeTaint - * @memberof google.container.v1 - * @see [google.container.v1.NodeTaint definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const NodeTaint = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * Possible values for Effect in taint. - * - * @enum {number} - * @memberof google.container.v1 - */ - Effect: { - - /** - * Not set - */ - EFFECT_UNSPECIFIED: 0, - - /** - * NoSchedule - */ - NO_SCHEDULE: 1, - - /** - * PreferNoSchedule - */ - PREFER_NO_SCHEDULE: 2, - - /** - * NoExecute - */ - NO_EXECUTE: 3 - } -}; - -/** - * The authentication information for accessing the master endpoint. - * Authentication can be done using HTTP basic auth or using client - * certificates. - * - * @property {string} username - * 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). - * - * @property {string} password - * 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. - * - * @property {Object} clientCertificateConfig - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * - * This object should have the same structure as [ClientCertificateConfig]{@link google.container.v1.ClientCertificateConfig} - * - * @property {string} clusterCaCertificate - * [Output only] Base64-encoded public certificate that is the root of - * trust for the cluster. - * - * @property {string} clientCertificate - * [Output only] Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. - * - * @property {string} clientKey - * [Output only] Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * - * @typedef MasterAuth - * @memberof google.container.v1 - * @see [google.container.v1.MasterAuth definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const MasterAuth = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration for client certificates on the cluster. - * - * @property {boolean} issueClientCertificate - * Issue a client certificate. - * - * @typedef ClientCertificateConfig - * @memberof google.container.v1 - * @see [google.container.v1.ClientCertificateConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ClientCertificateConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration for the addons that can be automatically spun up in the - * cluster, enabling additional functionality. - * - * @property {Object} httpLoadBalancing - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * - * This object should have the same structure as [HttpLoadBalancing]{@link google.container.v1.HttpLoadBalancing} - * - * @property {Object} horizontalPodAutoscaling - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * This object should have the same structure as [HorizontalPodAutoscaling]{@link google.container.v1.HorizontalPodAutoscaling} - * - * @property {Object} kubernetesDashboard - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * - * This object should have the same structure as [KubernetesDashboard]{@link google.container.v1.KubernetesDashboard} - * - * @property {Object} networkPolicyConfig - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * This object should have the same structure as [NetworkPolicyConfig]{@link google.container.v1.NetworkPolicyConfig} - * - * @property {Object} cloudRunConfig - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * - * This object should have the same structure as [CloudRunConfig]{@link google.container.v1.CloudRunConfig} - * - * @typedef AddonsConfig - * @memberof google.container.v1 - * @see [google.container.v1.AddonsConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const AddonsConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration options for the HTTP (L7) load balancing controller addon, - * which makes it easy to set up HTTP load balancers for services in a cluster. - * - * @property {boolean} disabled - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * - * @typedef HttpLoadBalancing - * @memberof google.container.v1 - * @see [google.container.v1.HttpLoadBalancing definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const HttpLoadBalancing = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration options for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * @property {boolean} disabled - * 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. - * - * @typedef HorizontalPodAutoscaling - * @memberof google.container.v1 - * @see [google.container.v1.HorizontalPodAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const HorizontalPodAutoscaling = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration for the Kubernetes Dashboard. - * - * @property {boolean} disabled - * Whether the Kubernetes Dashboard is enabled for this cluster. - * - * @typedef KubernetesDashboard - * @memberof google.container.v1 - * @see [google.container.v1.KubernetesDashboard definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const KubernetesDashboard = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * @property {boolean} disabled - * Whether NetworkPolicy is enabled for this cluster. - * - * @typedef NetworkPolicyConfig - * @memberof google.container.v1 - * @see [google.container.v1.NetworkPolicyConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const NetworkPolicyConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration options for private clusters. - * - * @property {boolean} enablePrivateNodes - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * - * @property {boolean} enablePrivateEndpoint - * Whether the master's internal IP address is used as the cluster endpoint. - * - * @property {string} masterIpv4CidrBlock - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * - * @property {string} privateEndpoint - * Output only. The internal IP address of this cluster's master endpoint. - * - * @property {string} publicEndpoint - * Output only. The external IP address of this cluster's master endpoint. - * - * @typedef PrivateClusterConfig - * @memberof google.container.v1 - * @see [google.container.v1.PrivateClusterConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const PrivateClusterConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration for returning group information from authenticators. - * - * @property {boolean} enabled - * Whether this cluster should return group membership lookups - * during authentication using a group of security groups. - * - * @property {string} securityGroup - * The name of the security group-of-groups to be used. Only relevant - * if enabled = true. - * - * @typedef AuthenticatorGroupsConfig - * @memberof google.container.v1 - * @see [google.container.v1.AuthenticatorGroupsConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const AuthenticatorGroupsConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration options for the Cloud Run feature. - * - * @property {boolean} disabled - * Whether Cloud Run addon is enabled for this cluster. - * - * @typedef CloudRunConfig - * @memberof google.container.v1 - * @see [google.container.v1.CloudRunConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const CloudRunConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration options for the master authorized networks feature. Enabled - * master authorized networks will disallow all external traffic to access - * Kubernetes master through HTTPS except traffic from the given CIDR blocks, - * Google Compute Engine Public IPs and Google Prod IPs. - * - * @property {boolean} enabled - * Whether or not master authorized networks is enabled. - * - * @property {Object[]} cidrBlocks - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * - * This object should have the same structure as [CidrBlock]{@link google.container.v1.CidrBlock} - * - * @typedef MasterAuthorizedNetworksConfig - * @memberof google.container.v1 - * @see [google.container.v1.MasterAuthorizedNetworksConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const MasterAuthorizedNetworksConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * CidrBlock contains an optional name and one CIDR block. - * - * @property {string} displayName - * display_name is an optional field for users to identify CIDR blocks. - * - * @property {string} cidrBlock - * cidr_block must be specified in CIDR notation. - * - * @typedef CidrBlock - * @memberof google.container.v1 - * @see [google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ - CidrBlock: { - // This is for documentation. Actual contents will be loaded by gRPC. - } -}; - -/** - * Configuration for the legacy Attribute Based Access Control authorization - * mode. - * - * @property {boolean} enabled - * Whether the ABAC authorizer is enabled for this cluster. When enabled, - * identities in the system, including service accounts, nodes, and - * controllers, will have statically granted permissions beyond those - * provided by the RBAC configuration or IAM. - * - * @typedef LegacyAbac - * @memberof google.container.v1 - * @see [google.container.v1.LegacyAbac definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const LegacyAbac = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration options for the NetworkPolicy feature. - * https://kubernetes.io/docs/concepts/services-networking/networkpolicies/ - * - * @property {number} provider - * The selected network policy provider. - * - * The number should be among the values of [Provider]{@link google.container.v1.Provider} - * - * @property {boolean} enabled - * Whether network policy is enabled on the cluster. - * - * @typedef NetworkPolicy - * @memberof google.container.v1 - * @see [google.container.v1.NetworkPolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const NetworkPolicy = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * Allowed Network Policy providers. - * - * @enum {number} - * @memberof google.container.v1 - */ - Provider: { - - /** - * Not set - */ - PROVIDER_UNSPECIFIED: 0, - - /** - * Tigera (Calico Felix). - */ - CALICO: 1 - } -}; - -/** - * Configuration for Binary Authorization. - * - * @property {boolean} enabled - * Enable Binary Authorization for this cluster. If enabled, all container - * images will be validated by Binary Authorization. - * - * @typedef BinaryAuthorization - * @memberof google.container.v1 - * @see [google.container.v1.BinaryAuthorization definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const BinaryAuthorization = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration for controlling how IPs are allocated in the cluster. - * - * @property {boolean} useIpAliases - * Whether alias IPs will be used for pod IPs in the cluster. - * - * @property {boolean} createSubnetwork - * Whether a new subnetwork will be created automatically for the cluster. - * - * This field is only applicable when `use_ip_aliases` is true. - * - * @property {string} subnetworkName - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * - * @property {string} clusterIpv4Cidr - * This field is deprecated, use cluster_ipv4_cidr_block. - * - * @property {string} nodeIpv4Cidr - * This field is deprecated, use node_ipv4_cidr_block. - * - * @property {string} servicesIpv4Cidr - * This field is deprecated, use services_ipv4_cidr_block. - * - * @property {string} clusterSecondaryRangeName - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * @property {string} servicesSecondaryRangeName - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * @property {string} clusterIpv4CidrBlock - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * - * This field is only applicable when `use_ip_aliases` is true. - * - * Set to blank to have a range chosen with the default size. - * - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * @property {string} nodeIpv4CidrBlock - * The IP address range of the instance IPs in this cluster. - * - * This is applicable only if `create_subnetwork` is true. - * - * Set to blank to have a range chosen with the default size. - * - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * @property {string} servicesIpv4CidrBlock - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * - * This field is only applicable when `use_ip_aliases` is true. - * - * Set to blank to have a range chosen with the default size. - * - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * @property {string} tpuIpv4CidrBlock - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * - * This field is only applicable when `use_ip_aliases` is true. - * - * If unspecified, the range will use the default size. - * - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * @typedef IPAllocationPolicy - * @memberof google.container.v1 - * @see [google.container.v1.IPAllocationPolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const IPAllocationPolicy = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * A Google Kubernetes Engine cluster. - * - * @property {string} name - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * @property {string} description - * An optional description of this cluster. - * - * @property {number} initialNodeCount - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/docs/resource-quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * - * This field is deprecated, use node_pool.initial_node_count instead. - * - * @property {Object} nodeConfig - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * - * This object should have the same structure as [NodeConfig]{@link google.container.v1.NodeConfig} - * - * @property {Object} masterAuth - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * - * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} - * - * @property {string} loggingService - * 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. - * * if left as an empty string,`logging.googleapis.com` will be used. - * - * @property {string} monitoringService - * 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. - * - * @property {string} network - * 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. - * - * @property {string} clusterIpv4Cidr - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * - * @property {Object} addonsConfig - * Configurations for the various addons available to run in the cluster. - * - * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} - * - * @property {string} subnetwork - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the - * cluster is connected. - * - * @property {Object[]} nodePools - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * - * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} - * - * @property {string[]} locations - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes - * should be located. - * - * @property {boolean} enableKubernetesAlpha - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * - * @property {Object.} resourceLabels - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * - * @property {string} labelFingerprint - * The fingerprint of the set of labels for this cluster. - * - * @property {Object} legacyAbac - * Configuration for the legacy ABAC authorization mode. - * - * This object should have the same structure as [LegacyAbac]{@link google.container.v1.LegacyAbac} - * - * @property {Object} networkPolicy - * Configuration options for the NetworkPolicy feature. - * - * This object should have the same structure as [NetworkPolicy]{@link google.container.v1.NetworkPolicy} - * - * @property {Object} ipAllocationPolicy - * Configuration for cluster IP allocation. - * - * This object should have the same structure as [IPAllocationPolicy]{@link google.container.v1.IPAllocationPolicy} - * - * @property {Object} masterAuthorizedNetworksConfig - * The configuration options for master authorized networks feature. - * - * This object should have the same structure as [MasterAuthorizedNetworksConfig]{@link google.container.v1.MasterAuthorizedNetworksConfig} - * - * @property {Object} maintenancePolicy - * Configure the maintenance policy for this cluster. - * - * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} - * - * @property {Object} binaryAuthorization - * Configuration for Binary Authorization. - * - * This object should have the same structure as [BinaryAuthorization]{@link google.container.v1.BinaryAuthorization} - * - * @property {Object} autoscaling - * Cluster-level autoscaling configuration. - * - * This object should have the same structure as [ClusterAutoscaling]{@link google.container.v1.ClusterAutoscaling} - * - * @property {Object} networkConfig - * Configuration for cluster networking. - * - * This object should have the same structure as [NetworkConfig]{@link google.container.v1.NetworkConfig} - * - * @property {Object} defaultMaxPodsConstraint - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * - * This object should have the same structure as [MaxPodsConstraint]{@link google.container.v1.MaxPodsConstraint} - * - * @property {Object} resourceUsageExportConfig - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * - * This object should have the same structure as [ResourceUsageExportConfig]{@link google.container.v1.ResourceUsageExportConfig} - * - * @property {Object} authenticatorGroupsConfig - * Configuration controlling RBAC group membership information. - * - * This object should have the same structure as [AuthenticatorGroupsConfig]{@link google.container.v1.AuthenticatorGroupsConfig} - * - * @property {Object} privateClusterConfig - * Configuration for private cluster. - * - * This object should have the same structure as [PrivateClusterConfig]{@link google.container.v1.PrivateClusterConfig} - * - * @property {Object} databaseEncryption - * Configuration of etcd encryption. - * - * This object should have the same structure as [DatabaseEncryption]{@link google.container.v1.DatabaseEncryption} - * - * @property {Object} verticalPodAutoscaling - * Cluster-level Vertical Pod Autoscaling configuration. - * - * This object should have the same structure as [VerticalPodAutoscaling]{@link google.container.v1.VerticalPodAutoscaling} - * - * @property {string} selfLink - * [Output only] Server-defined URL for the resource. - * - * @property {string} zone - * [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. - * - * @property {string} endpoint - * [Output only] The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * - * See the `masterAuth` property of this resource for username and - * password information. - * - * @property {string} initialClusterVersion - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * - * @property {string} currentMasterVersion - * [Output only] The current software version of the master endpoint. - * - * @property {string} currentNodeVersion - * [Output only] Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools#resource-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. - * - * @property {string} createTime - * [Output only] The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * @property {number} status - * [Output only] The current status of this cluster. - * - * The number should be among the values of [Status]{@link google.container.v1.Status} - * - * @property {string} statusMessage - * [Output only] Additional information about the current status of this - * cluster, if available. - * - * @property {number} nodeIpv4CidrSize - * [Output only] The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * - * @property {string} servicesIpv4Cidr - * [Output only] The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * - * @property {string[]} instanceGroupUrls - * Deprecated. Use node_pools.instance_group_urls. - * - * @property {number} currentNodeCount - * [Output only] The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * - * @property {string} expireTime - * [Output only] The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * @property {string} location - * [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. - * - * @property {boolean} enableTpu - * Enable the ability to use Cloud TPUs in this cluster. - * - * @property {string} tpuIpv4CidrBlock - * [Output only] The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * - * @property {Object[]} conditions - * Which conditions caused the current cluster state. - * - * This object should have the same structure as [StatusCondition]{@link google.container.v1.StatusCondition} - * - * @typedef Cluster - * @memberof google.container.v1 - * @see [google.container.v1.Cluster definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const Cluster = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * The current status of the cluster. - * - * @enum {number} - * @memberof google.container.v1 - */ - Status: { - - /** - * Not set. - */ - STATUS_UNSPECIFIED: 0, - - /** - * The PROVISIONING state indicates the cluster is being created. - */ - PROVISIONING: 1, - - /** - * The RUNNING state indicates the cluster has been created and is fully - * usable. - */ - RUNNING: 2, - - /** - * The RECONCILING state indicates that some work is actively being done on - * the cluster, such as upgrading the master or node software. Details can - * be found in the `statusMessage` field. - */ - RECONCILING: 3, - - /** - * 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. - */ - ERROR: 5, - - /** - * The DEGRADED state indicates the cluster requires user action to restore - * full functionality. Details can be found in the `statusMessage` field. - */ - DEGRADED: 6 - } -}; - -/** - * ClusterUpdate describes an update to the cluster. Exactly one update can - * be applied to a cluster with each request, so at most one field can be - * provided. - * - * @property {string} desiredNodeVersion - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * @property {string} desiredMonitoringService - * 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 - * - * @property {Object} desiredAddonsConfig - * Configurations for the various addons available to run in the cluster. - * - * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} - * - * @property {string} desiredNodePoolId - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * - * @property {string} desiredImageType - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * - * @property {Object} desiredDatabaseEncryption - * Configuration of etcd encryption. - * - * This object should have the same structure as [DatabaseEncryption]{@link google.container.v1.DatabaseEncryption} - * - * @property {Object} desiredNodePoolAutoscaling - * 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 - * the change applies to that single node pool. - * - * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} - * - * @property {string[]} desiredLocations - * 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. - * - * This list must always include the cluster's primary zone. - * - * @property {Object} desiredMasterAuthorizedNetworksConfig - * The desired configuration options for master authorized networks feature. - * - * This object should have the same structure as [MasterAuthorizedNetworksConfig]{@link google.container.v1.MasterAuthorizedNetworksConfig} - * - * @property {Object} desiredClusterAutoscaling - * Cluster-level autoscaling configuration. - * - * This object should have the same structure as [ClusterAutoscaling]{@link google.container.v1.ClusterAutoscaling} - * - * @property {Object} desiredBinaryAuthorization - * The desired configuration options for the Binary Authorization feature. - * - * This object should have the same structure as [BinaryAuthorization]{@link google.container.v1.BinaryAuthorization} - * - * @property {string} desiredLoggingService - * 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 - * - * @property {Object} desiredResourceUsageExportConfig - * The desired configuration for exporting resource usage. - * - * This object should have the same structure as [ResourceUsageExportConfig]{@link google.container.v1.ResourceUsageExportConfig} - * - * @property {Object} desiredVerticalPodAutoscaling - * Cluster-level Vertical Pod Autoscaling configuration. - * - * This object should have the same structure as [VerticalPodAutoscaling]{@link google.container.v1.VerticalPodAutoscaling} - * - * @property {Object} desiredIntraNodeVisibilityConfig - * The desired config of Intra-node visibility. - * - * This object should have the same structure as [IntraNodeVisibilityConfig]{@link google.container.v1.IntraNodeVisibilityConfig} - * - * @property {string} desiredMasterVersion - * The Kubernetes version to change the master to. - * - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * @typedef ClusterUpdate - * @memberof google.container.v1 - * @see [google.container.v1.ClusterUpdate definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ClusterUpdate = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * This operation resource represents operations that may have happened or are - * happening on the cluster. All fields are output only. - * - * @property {string} name - * The server-assigned ID for the operation. - * - * @property {string} zone - * 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. - * - * @property {number} operationType - * The operation type. - * - * The number should be among the values of [Type]{@link google.container.v1.Type} - * - * @property {number} status - * The current status of the operation. - * - * The number should be among the values of [Status]{@link google.container.v1.Status} - * - * @property {string} detail - * Detailed operation progress, if available. - * - * @property {string} statusMessage - * If an error has occurred, a textual description of the error. - * - * @property {string} selfLink - * Server-defined URL for the resource. - * - * @property {string} targetLink - * Server-defined URL for the target of the operation. - * - * @property {string} location - * [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. - * - * @property {string} startTime - * [Output only] The time the operation started, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * @property {string} endTime - * [Output only] The time the operation completed, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * @property {Object[]} clusterConditions - * Which conditions caused the current cluster state. - * - * This object should have the same structure as [StatusCondition]{@link google.container.v1.StatusCondition} - * - * @property {Object[]} nodepoolConditions - * Which conditions caused the current node pool state. - * - * This object should have the same structure as [StatusCondition]{@link google.container.v1.StatusCondition} - * - * @typedef Operation - * @memberof google.container.v1 - * @see [google.container.v1.Operation definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const Operation = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * Current status of the operation. - * - * @enum {number} - * @memberof google.container.v1 - */ - Status: { - - /** - * Not set. - */ - STATUS_UNSPECIFIED: 0, - - /** - * The operation has been created. - */ - PENDING: 1, - - /** - * The operation is currently running. - */ - RUNNING: 2, - - /** - * The operation is done, either cancelled or completed. - */ - DONE: 3, - - /** - * The operation is aborting. - */ - ABORTING: 4 - }, - - /** - * Operation type. - * - * @enum {number} - * @memberof google.container.v1 - */ - Type: { - - /** - * Not set. - */ - TYPE_UNSPECIFIED: 0, - - /** - * Cluster create. - */ - CREATE_CLUSTER: 1, - - /** - * Cluster delete. - */ - DELETE_CLUSTER: 2, - - /** - * A master upgrade. - */ - UPGRADE_MASTER: 3, - - /** - * A node upgrade. - */ - UPGRADE_NODES: 4, - - /** - * Cluster repair. - */ - REPAIR_CLUSTER: 5, - - /** - * Cluster update. - */ - UPDATE_CLUSTER: 6, - - /** - * Node pool create. - */ - CREATE_NODE_POOL: 7, - - /** - * Node pool delete. - */ - DELETE_NODE_POOL: 8, - - /** - * Set node pool management. - */ - SET_NODE_POOL_MANAGEMENT: 9, - - /** - * Automatic node pool repair. - */ - AUTO_REPAIR_NODES: 10, - - /** - * Automatic node upgrade. - */ - AUTO_UPGRADE_NODES: 11, - - /** - * Set labels. - */ - SET_LABELS: 12, - - /** - * Set/generate master auth materials - */ - SET_MASTER_AUTH: 13, - - /** - * Set node pool size. - */ - SET_NODE_POOL_SIZE: 14, - - /** - * Updates network policy for a cluster. - */ - SET_NETWORK_POLICY: 15, - - /** - * Set the maintenance policy. - */ - SET_MAINTENANCE_POLICY: 16 - } -}; - -/** - * CreateClusterRequest creates a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the parent field. - * - * @property {string} zone - * Required. 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. - * - * @property {Object} cluster - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) - * - * This object should have the same structure as [Cluster]{@link google.container.v1.Cluster} - * - * @property {string} parent - * The parent (project and location) where the cluster will be created. - * Specified in the format 'projects/* /locations/*'. - * - * @typedef CreateClusterRequest - * @memberof google.container.v1 - * @see [google.container.v1.CreateClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const CreateClusterRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * GetClusterRequest gets the settings of a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * @property {string} name - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef GetClusterRequest - * @memberof google.container.v1 - * @see [google.container.v1.GetClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const GetClusterRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * UpdateClusterRequest updates the settings of a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {Object} update - * Required. A description of the update. - * - * This object should have the same structure as [ClusterUpdate]{@link google.container.v1.ClusterUpdate} - * - * @property {string} name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef UpdateClusterRequest - * @memberof google.container.v1 - * @see [google.container.v1.UpdateClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const UpdateClusterRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * UpdateNodePoolRequests update a node pool's image and/or version. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {string} nodePoolId - * Required. Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {string} nodeVersion - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * @property {string} imageType - * Required. The desired image type for the node pool. - * - * @property {string} name - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. - * - * @typedef UpdateNodePoolRequest - * @memberof google.container.v1 - * @see [google.container.v1.UpdateNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const UpdateNodePoolRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {string} nodePoolId - * Required. Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {Object} autoscaling - * Required. Autoscaling configuration for the node pool. - * - * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} - * - * @property {string} name - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. - * - * @typedef SetNodePoolAutoscalingRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetNodePoolAutoscalingRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetNodePoolAutoscalingRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetLoggingServiceRequest sets the logging service of a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {string} loggingService - * Required. The logging service the cluster should use to write metrics. - * Currently available options: - * - * * "logging.googleapis.com" - the Google Cloud Logging service - * * "none" - no metrics will be exported from the cluster - * - * @property {string} name - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef SetLoggingServiceRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetLoggingServiceRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetLoggingServiceRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetMonitoringServiceRequest sets the monitoring service of a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {string} monitoringService - * 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 - * - * @property {string} name - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef SetMonitoringServiceRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetMonitoringServiceRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetMonitoringServiceRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetAddonsConfigRequest sets the addons associated with the cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {Object} addonsConfig - * Required. The desired configurations for the various addons available to run in the - * cluster. - * - * This object should have the same structure as [AddonsConfig]{@link google.container.v1.AddonsConfig} - * - * @property {string} name - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef SetAddonsConfigRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetAddonsConfigRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetAddonsConfigRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetLocationsRequest sets the locations of the cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {string[]} locations - * 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. - * - * This list must always include the cluster's primary zone. - * - * @property {string} name - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef SetLocationsRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetLocationsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetLocationsRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * UpdateMasterRequest updates the master of the cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {string} masterVersion - * Required. The Kubernetes version to change the master to. - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * @property {string} name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef UpdateMasterRequest - * @memberof google.container.v1 - * @see [google.container.v1.UpdateMasterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const UpdateMasterRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetMasterAuthRequest updates the admin password of a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * @property {number} action - * Required. The exact form of action to be taken on the master auth. - * - * The number should be among the values of [Action]{@link google.container.v1.Action} - * - * @property {Object} update - * Required. A description of the update. - * - * This object should have the same structure as [MasterAuth]{@link google.container.v1.MasterAuth} - * - * @property {string} name - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef SetMasterAuthRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetMasterAuthRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetMasterAuthRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * Operation type: what type update to perform. - * - * @enum {number} - * @memberof google.container.v1 - */ - Action: { - - /** - * Operation is unknown and will error out. - */ - UNKNOWN: 0, - - /** - * Set the password to a user generated value. - */ - SET_PASSWORD: 1, - - /** - * Generate a new password and set it to that. - */ - GENERATE_PASSWORD: 2, - - /** - * Set the username. If an empty username is provided, basic authentication - * is disabled for the cluster. If a non-empty username is provided, basic - * authentication is enabled, with either a provided password or a generated - * one. - */ - SET_USERNAME: 3 - } -}; - -/** - * DeleteClusterRequest deletes a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * @property {string} name - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef DeleteClusterRequest - * @memberof google.container.v1 - * @see [google.container.v1.DeleteClusterRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const DeleteClusterRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * ListClustersRequest lists clusters. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the parent field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} parent - * The parent (project and location) where the clusters will be listed. - * Specified in the format 'projects/* /locations/*'. - * Location "-" matches all zones and all regions. - * - * @typedef ListClustersRequest - * @memberof google.container.v1 - * @see [google.container.v1.ListClustersRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ListClustersRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * ListClustersResponse is the result of ListClustersRequest. - * - * @property {Object[]} clusters - * A list of clusters in the project in the specified zone, or - * across all ones. - * - * This object should have the same structure as [Cluster]{@link google.container.v1.Cluster} - * - * @property {string[]} missingZones - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * - * @typedef ListClustersResponse - * @memberof google.container.v1 - * @see [google.container.v1.ListClustersResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ListClustersResponse = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * GetOperationRequest gets a single operation. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} operationId - * Required. Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * @property {string} name - * The name (project, location, operation id) of the operation to get. - * Specified in the format 'projects/* /locations/* /operations/*'. - * - * @typedef GetOperationRequest - * @memberof google.container.v1 - * @see [google.container.v1.GetOperationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const GetOperationRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * ListOperationsRequest lists operations. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the parent field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} parent - * The parent (project and location) where the operations will be listed. - * Specified in the format 'projects/* /locations/*'. - * Location "-" matches all zones and all regions. - * - * @typedef ListOperationsRequest - * @memberof google.container.v1 - * @see [google.container.v1.ListOperationsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ListOperationsRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * CancelOperationRequest cancels a single operation. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} operationId - * Required. Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * @property {string} name - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format 'projects/* /locations/* /operations/*'. - * - * @typedef CancelOperationRequest - * @memberof google.container.v1 - * @see [google.container.v1.CancelOperationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const CancelOperationRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * ListOperationsResponse is the result of ListOperationsRequest. - * - * @property {Object[]} operations - * A list of operations in the project in the specified zone. - * - * This object should have the same structure as [Operation]{@link google.container.v1.Operation} - * - * @property {string[]} missingZones - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * - * @typedef ListOperationsResponse - * @memberof google.container.v1 - * @see [google.container.v1.ListOperationsResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ListOperationsResponse = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Gets the current Kubernetes Engine service configuration. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} name - * The name (project and location) of the server config to get, - * specified in the format 'projects/* /locations/*'. - * - * @typedef GetServerConfigRequest - * @memberof google.container.v1 - * @see [google.container.v1.GetServerConfigRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const GetServerConfigRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Kubernetes Engine service configuration. - * - * @property {string} defaultClusterVersion - * Version of Kubernetes the service deploys by default. - * - * @property {string[]} validNodeVersions - * List of valid node upgrade target versions. - * - * @property {string} defaultImageType - * Default image type. - * - * @property {string[]} validImageTypes - * List of valid image types. - * - * @property {string[]} validMasterVersions - * List of valid master versions. - * - * @typedef ServerConfig - * @memberof google.container.v1 - * @see [google.container.v1.ServerConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ServerConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * CreateNodePoolRequest creates a node pool for a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the parent field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * @property {Object} nodePool - * Required. The node pool to create. - * - * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} - * - * @property {string} parent - * The parent (project, location, cluster id) where the node pool will be - * created. Specified in the format - * 'projects/* /locations/* /clusters/*'. - * - * @typedef CreateNodePoolRequest - * @memberof google.container.v1 - * @see [google.container.v1.CreateNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const CreateNodePoolRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * DeleteNodePoolRequest deletes a node pool for a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * @property {string} nodePoolId - * Required. Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * @property {string} name - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. - * - * @typedef DeleteNodePoolRequest - * @memberof google.container.v1 - * @see [google.container.v1.DeleteNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const DeleteNodePoolRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * ListNodePoolsRequest lists the node pool(s) for a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the parent field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * @property {string} parent - * The parent (project, location, cluster id) where the node pools will be - * listed. Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef ListNodePoolsRequest - * @memberof google.container.v1 - * @see [google.container.v1.ListNodePoolsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ListNodePoolsRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * GetNodePoolRequest retrieves a node pool for a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * @property {string} nodePoolId - * Required. Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * @property {string} name - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. - * - * @typedef GetNodePoolRequest - * @memberof google.container.v1 - * @see [google.container.v1.GetNodePoolRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const GetNodePoolRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * NodePool contains the name and configuration for a cluster's node pool. - * Node pools are a set of nodes (i.e. VM's), with a common configuration and - * specification, under the control of the cluster master. They may have a set - * of Kubernetes labels applied to them, which may be used to reference them - * during pod scheduling. They may also be resized up or down, to accommodate - * the workload. - * - * @property {string} name - * The name of the node pool. - * - * @property {Object} config - * The node configuration of the pool. - * - * This object should have the same structure as [NodeConfig]{@link google.container.v1.NodeConfig} - * - * @property {number} initialNodeCount - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/docs/resource-quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * - * @property {string} selfLink - * [Output only] Server-defined URL for the resource. - * - * @property {string} version - * The version of the Kubernetes of this node. - * - * @property {string[]} instanceGroupUrls - * [Output only] The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * - * @property {number} status - * [Output only] The status of the nodes in this pool instance. - * - * The number should be among the values of [Status]{@link google.container.v1.Status} - * - * @property {string} statusMessage - * [Output only] Additional information about the current status of this - * node pool instance, if available. - * - * @property {Object} autoscaling - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * - * This object should have the same structure as [NodePoolAutoscaling]{@link google.container.v1.NodePoolAutoscaling} - * - * @property {Object} management - * NodeManagement configuration for this NodePool. - * - * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} - * - * @property {Object} maxPodsConstraint - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * This object should have the same structure as [MaxPodsConstraint]{@link google.container.v1.MaxPodsConstraint} - * - * @property {Object[]} conditions - * Which conditions caused the current node pool state. - * - * This object should have the same structure as [StatusCondition]{@link google.container.v1.StatusCondition} - * - * @property {number} podIpv4CidrSize - * [Output only] The pod CIDR block size per node in this node pool. - * - * @typedef NodePool - * @memberof google.container.v1 - * @see [google.container.v1.NodePool definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const NodePool = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * The current status of the node pool instance. - * - * @enum {number} - * @memberof google.container.v1 - */ - Status: { - - /** - * Not set. - */ - STATUS_UNSPECIFIED: 0, - - /** - * The PROVISIONING state indicates the node pool is being created. - */ - PROVISIONING: 1, - - /** - * The RUNNING state indicates the node pool has been created - * and is fully usable. - */ - RUNNING: 2, - - /** - * The RUNNING_WITH_ERROR state indicates the node pool has been created - * and is partially usable. Some error state has occurred and some - * functionality may be impaired. Customer may need to reissue a request - * or trigger a new update. - */ - RUNNING_WITH_ERROR: 3, - - /** - * The RECONCILING state indicates that some work is actively being done on - * the node pool, such as upgrading node software. Details can - * be found in the `statusMessage` field. - */ - RECONCILING: 4, - - /** - * The STOPPING state indicates the node pool is being deleted. - */ - STOPPING: 5, - - /** - * The ERROR state indicates the node pool may be unusable. Details - * can be found in the `statusMessage` field. - */ - ERROR: 6 - } -}; - -/** - * NodeManagement defines the set of node management services turned on for the - * node pool. - * - * @property {boolean} autoUpgrade - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * - * @property {boolean} autoRepair - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * - * @property {Object} upgradeOptions - * Specifies the Auto Upgrade knobs for the node pool. - * - * This object should have the same structure as [AutoUpgradeOptions]{@link google.container.v1.AutoUpgradeOptions} - * - * @typedef NodeManagement - * @memberof google.container.v1 - * @see [google.container.v1.NodeManagement definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const NodeManagement = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * AutoUpgradeOptions defines the set of options for the user to control how - * the Auto Upgrades will proceed. - * - * @property {string} autoUpgradeStartTime - * [Output only] This field is set when upgrades are about to commence - * with the approximate start time for the upgrades, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * @property {string} description - * [Output only] This field is set when upgrades are about to commence - * with the description of the upgrade. - * - * @typedef AutoUpgradeOptions - * @memberof google.container.v1 - * @see [google.container.v1.AutoUpgradeOptions definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const AutoUpgradeOptions = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * MaintenancePolicy defines the maintenance policy to be used for the cluster. - * - * @property {Object} window - * Specifies the maintenance window in which maintenance may be performed. - * - * This object should have the same structure as [MaintenanceWindow]{@link google.container.v1.MaintenanceWindow} - * - * @property {string} resourceVersion - * 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 - * resource version and include it with requests to set the policy. - * - * @typedef MaintenancePolicy - * @memberof google.container.v1 - * @see [google.container.v1.MaintenancePolicy definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const MaintenancePolicy = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * MaintenanceWindow defines the maintenance window to be used for the cluster. - * - * @property {Object} dailyMaintenanceWindow - * DailyMaintenanceWindow specifies a daily maintenance operation window. - * - * This object should have the same structure as [DailyMaintenanceWindow]{@link google.container.v1.DailyMaintenanceWindow} - * - * @property {Object} recurringWindow - * RecurringWindow specifies some number of recurring time periods for - * maintenance to occur. The time windows may be overlapping. If no - * maintenance windows are set, maintenance can occur at any time. - * - * This object should have the same structure as [RecurringTimeWindow]{@link google.container.v1.RecurringTimeWindow} - * - * @property {Object.} maintenanceExclusions - * Exceptions to maintenance window. Non-emergency maintenance should not - * occur in these windows. - * - * @typedef MaintenanceWindow - * @memberof google.container.v1 - * @see [google.container.v1.MaintenanceWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const MaintenanceWindow = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Represents an arbitrary window of time. - * - * @property {Object} startTime - * The time that the window first starts. - * - * This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp} - * - * @property {Object} endTime - * The time that the window ends. The end time should take place after the - * start time. - * - * This object should have the same structure as [Timestamp]{@link google.protobuf.Timestamp} - * - * @typedef TimeWindow - * @memberof google.container.v1 - * @see [google.container.v1.TimeWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const TimeWindow = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Represents an arbitrary window of time that recurs. - * - * @property {Object} window - * The window of the first recurrence. - * - * This object should have the same structure as [TimeWindow]{@link google.container.v1.TimeWindow} - * - * @property {string} recurrence - * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how - * this window reccurs. They go on for the span of time between the start and - * end time. - * - * For example, to have something repeat every weekday, you'd use: - * FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * FREQ=DAILY - * For the first weekend of every month: - * 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 - * - * 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 - * - * 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. - * - * @typedef RecurringTimeWindow - * @memberof google.container.v1 - * @see [google.container.v1.RecurringTimeWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const RecurringTimeWindow = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Time window specified for daily maintenance operations. - * - * @property {string} startTime - * Time within the maintenance window to start the maintenance operations. - * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. - * - * @property {string} duration - * [Output only] Duration of the time window, automatically chosen to be - * smallest possible in the given scenario. - * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "PTnHnMnS". - * - * @typedef DailyMaintenanceWindow - * @memberof google.container.v1 - * @see [google.container.v1.DailyMaintenanceWindow definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const DailyMaintenanceWindow = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetNodePoolManagementRequest sets the node management properties of a node - * pool. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * @property {string} nodePoolId - * Required. Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * @property {Object} management - * Required. NodeManagement configuration for the node pool. - * - * This object should have the same structure as [NodeManagement]{@link google.container.v1.NodeManagement} - * - * @property {string} name - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. - * - * @typedef SetNodePoolManagementRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetNodePoolManagementRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetNodePoolManagementRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetNodePoolSizeRequest sets the size a node - * pool. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * @property {string} nodePoolId - * Required. Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * @property {number} nodeCount - * Required. The desired node count for the pool. - * - * @property {string} name - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. - * - * @typedef SetNodePoolSizeRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetNodePoolSizeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetNodePoolSizeRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed - * NodePool upgrade. This will be an no-op if the last upgrade successfully - * completed. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * - * @property {string} nodePoolId - * Required. Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * @property {string} name - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. - * - * @typedef RollbackNodePoolUpgradeRequest - * @memberof google.container.v1 - * @see [google.container.v1.RollbackNodePoolUpgradeRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const RollbackNodePoolUpgradeRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * ListNodePoolsResponse is the result of ListNodePoolsRequest. - * - * @property {Object[]} nodePools - * A list of node pools for a cluster. - * - * This object should have the same structure as [NodePool]{@link google.container.v1.NodePool} - * - * @typedef ListNodePoolsResponse - * @memberof google.container.v1 - * @see [google.container.v1.ListNodePoolsResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ListNodePoolsResponse = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * ClusterAutoscaling contains global, per-cluster information - * required by Cluster Autoscaler to automatically adjust - * the size of the cluster and create/delete - * node pools based on the current needs. - * - * @property {boolean} enableNodeAutoprovisioning - * Enables automatic node pool creation and deletion. - * - * @property {Object[]} resourceLimits - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * - * This object should have the same structure as [ResourceLimit]{@link google.container.v1.ResourceLimit} - * - * @property {Object} autoprovisioningNodePoolDefaults - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * - * This object should have the same structure as [AutoprovisioningNodePoolDefaults]{@link google.container.v1.AutoprovisioningNodePoolDefaults} - * - * @property {string[]} autoprovisioningLocations - * 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. - * - * @typedef ClusterAutoscaling - * @memberof google.container.v1 - * @see [google.container.v1.ClusterAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ClusterAutoscaling = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * AutoprovisioningNodePoolDefaults contains defaults for a node pool created - * by NAP. - * - * @property {string[]} oauthScopes - * Scopes that are used by NAP when creating node pools. If oauth_scopes are - * specified, service_account should be empty. - * - * @property {string} serviceAccount - * The Google Cloud Platform Service Account to be used by the node VMs. If - * service_account is specified, scopes should be empty. - * - * @typedef AutoprovisioningNodePoolDefaults - * @memberof google.container.v1 - * @see [google.container.v1.AutoprovisioningNodePoolDefaults definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const AutoprovisioningNodePoolDefaults = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Contains information about amount of some resource in the cluster. - * For memory, value should be in GB. - * - * @property {string} resourceType - * Resource name "cpu", "memory" or gpu-specific string. - * - * @property {number} minimum - * Minimum amount of the resource in the cluster. - * - * @property {number} maximum - * Maximum amount of the resource in the cluster. - * - * @typedef ResourceLimit - * @memberof google.container.v1 - * @see [google.container.v1.ResourceLimit definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ResourceLimit = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * NodePoolAutoscaling contains information required by cluster autoscaler to - * adjust the size of the node pool to the current cluster usage. - * - * @property {boolean} enabled - * Is autoscaling enabled for this node pool. - * - * @property {number} minNodeCount - * Minimum number of nodes in the NodePool. Must be >= 1 and <= - * max_node_count. - * - * @property {number} maxNodeCount - * Maximum number of nodes in the NodePool. Must be >= min_node_count. There - * has to enough quota to scale up the cluster. - * - * @property {boolean} autoprovisioned - * Can this node pool be deleted automatically. - * - * @typedef NodePoolAutoscaling - * @memberof google.container.v1 - * @see [google.container.v1.NodePoolAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const NodePoolAutoscaling = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetLabelsRequest sets the Google Cloud Platform labels on a Google Container - * Engine cluster, which will in turn set them for Google Compute Engine - * resources used by that cluster - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * @property {Object.} resourceLabels - * Required. The labels to set for that cluster. - * - * @property {string} labelFingerprint - * Required. The fingerprint of the previous set of labels for this resource, - * 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 - * resource to get the latest fingerprint. - * - * @property {string} name - * The name (project, location, cluster id) of the cluster to set labels. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef SetLabelsRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetLabelsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetLabelsRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for - * a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * @property {boolean} enabled - * Required. Whether ABAC authorization will be enabled in the cluster. - * - * @property {string} name - * The name (project, location, cluster id) of the cluster to set legacy abac. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef SetLegacyAbacRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetLegacyAbacRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetLegacyAbacRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * StartIPRotationRequest creates a new IP for the cluster and then performs - * a node upgrade on each node pool to point to the new IP. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * @property {string} name - * The name (project, location, cluster id) of the cluster to start IP - * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @property {boolean} rotateCredentials - * Whether to rotate credentials during IP rotation. - * - * @typedef StartIPRotationRequest - * @memberof google.container.v1 - * @see [google.container.v1.StartIPRotationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const StartIPRotationRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * CompleteIPRotationRequest moves the cluster master back into single-IP mode. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * @property {string} name - * The name (project, location, cluster id) of the cluster to complete IP - * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef CompleteIPRotationRequest - * @memberof google.container.v1 - * @see [google.container.v1.CompleteIPRotationRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const CompleteIPRotationRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * AcceleratorConfig represents a Hardware Accelerator request. - * - * @property {number} acceleratorCount - * The number of the accelerator cards exposed to an instance. - * - * @property {string} acceleratorType - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * - * @typedef AcceleratorConfig - * @memberof google.container.v1 - * @see [google.container.v1.AcceleratorConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const AcceleratorConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetNetworkPolicyRequest enables/disables network policy for a cluster. - * - * @property {string} projectId - * Required. Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - * - * @property {string} zone - * Required. 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. - * - * @property {string} clusterId - * Required. Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * @property {Object} networkPolicy - * Required. Configuration options for the NetworkPolicy feature. - * - * This object should have the same structure as [NetworkPolicy]{@link google.container.v1.NetworkPolicy} - * - * @property {string} name - * The name (project, location, cluster id) of the cluster to set networking - * policy. Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef SetNetworkPolicyRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetNetworkPolicyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetNetworkPolicyRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * SetMaintenancePolicyRequest sets the maintenance policy for a cluster. - * - * @property {string} projectId - * Required. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * - * @property {string} zone - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster - * resides. - * - * @property {string} clusterId - * Required. The name of the cluster to update. - * - * @property {Object} maintenancePolicy - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * This object should have the same structure as [MaintenancePolicy]{@link google.container.v1.MaintenancePolicy} - * - * @property {string} name - * The name (project, location, cluster id) of the cluster to set maintenance - * policy. - * Specified in the format 'projects/* /locations/* /clusters/*'. - * - * @typedef SetMaintenancePolicyRequest - * @memberof google.container.v1 - * @see [google.container.v1.SetMaintenancePolicyRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const SetMaintenancePolicyRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * StatusCondition describes why a cluster or a node pool has a certain status - * (e.g., ERROR or DEGRADED). - * - * @property {number} code - * Machine-friendly representation of the condition - * - * The number should be among the values of [Code]{@link google.container.v1.Code} - * - * @property {string} message - * Human-friendly representation of the condition - * - * @typedef StatusCondition - * @memberof google.container.v1 - * @see [google.container.v1.StatusCondition definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const StatusCondition = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * Code for each condition - * - * @enum {number} - * @memberof google.container.v1 - */ - Code: { - - /** - * UNKNOWN indicates a generic condition. - */ - UNKNOWN: 0, - - /** - * GCE_STOCKOUT indicates a Google Compute Engine stockout. - */ - GCE_STOCKOUT: 1, - - /** - * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot - * service account. - */ - GKE_SERVICE_ACCOUNT_DELETED: 2, - - /** - * Google Compute Engine quota was exceeded. - */ - GCE_QUOTA_EXCEEDED: 3, - - /** - * Cluster state was manually changed by an SRE due to a system logic error. - */ - SET_BY_OPERATOR: 4, - - /** - * Unable to perform an encrypt operation against the CloudKMS key used for - * etcd level encryption. - * More codes TBA - */ - CLOUD_KMS_KEY_ERROR: 7 - } -}; - -/** - * NetworkConfig reports the relative names of network & subnetwork. - * - * @property {string} network - * Output only. The relative name of the Google Compute Engine - * network(/compute/docs/networks-and-firewalls#networks) to which - * the cluster is connected. - * Example: projects/my-project/global/networks/my-network - * - * @property {string} subnetwork - * 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 - * - * @property {boolean} enableIntraNodeVisibility - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * - * @typedef NetworkConfig - * @memberof google.container.v1 - * @see [google.container.v1.NetworkConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const NetworkConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * IntraNodeVisibilityConfig contains the desired config of the intra-node - * visibility on this cluster. - * - * @property {boolean} enabled - * Enables intra node visibility for this cluster. - * - * @typedef IntraNodeVisibilityConfig - * @memberof google.container.v1 - * @see [google.container.v1.IntraNodeVisibilityConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const IntraNodeVisibilityConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Constraints applied to pods. - * - * @property {number} maxPodsPerNode - * Constraint enforced on the max num of pods per node. - * - * @typedef MaxPodsConstraint - * @memberof google.container.v1 - * @see [google.container.v1.MaxPodsConstraint definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const MaxPodsConstraint = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration of etcd encryption. - * - * @property {number} state - * Denotes the state of etcd encryption. - * - * The number should be among the values of [State]{@link google.container.v1.State} - * - * @property {string} keyName - * Name of CloudKMS key to use for the encryption of secrets in etcd. - * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - * - * @typedef DatabaseEncryption - * @memberof google.container.v1 - * @see [google.container.v1.DatabaseEncryption definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const DatabaseEncryption = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * State of etcd encryption. - * - * @enum {number} - * @memberof google.container.v1 - */ - State: { - - /** - * Should never be set - */ - UNKNOWN: 0, - - /** - * Secrets in etcd are encrypted. - */ - ENCRYPTED: 1, - - /** - * Secrets in etcd are stored in plain text (at etcd level) - this is - * unrelated to GCE level full disk encryption. - */ - DECRYPTED: 2 - } -}; - -/** - * ListUsableSubnetworksRequest requests the list of usable subnetworks - * available to a user for creating clusters. - * - * @property {string} parent - * The parent project where subnetworks are usable. - * Specified in the format 'projects/*'. - * - * @property {string} filter - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * - * @property {number} pageSize - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * - * @property {string} pageToken - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * - * @typedef ListUsableSubnetworksRequest - * @memberof google.container.v1 - * @see [google.container.v1.ListUsableSubnetworksRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ListUsableSubnetworksRequest = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * ListUsableSubnetworksResponse is the response of - * ListUsableSubnetworksRequest. - * - * @property {Object[]} subnetworks - * A list of usable subnetworks in the specified network project. - * - * This object should have the same structure as [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} - * - * @property {string} nextPageToken - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * - * @typedef ListUsableSubnetworksResponse - * @memberof google.container.v1 - * @see [google.container.v1.ListUsableSubnetworksResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ListUsableSubnetworksResponse = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Secondary IP range of a usable subnetwork. - * - * @property {string} rangeName - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * - * @property {string} ipCidrRange - * The range of IP addresses belonging to this subnetwork secondary range. - * - * @property {number} status - * This field is to determine the status of the secondary range programmably. - * - * The number should be among the values of [Status]{@link google.container.v1.Status} - * - * @typedef UsableSubnetworkSecondaryRange - * @memberof google.container.v1 - * @see [google.container.v1.UsableSubnetworkSecondaryRange definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const UsableSubnetworkSecondaryRange = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * Status shows the current usage of a secondary IP range. - * - * @enum {number} - * @memberof google.container.v1 - */ - Status: { - - /** - * UNKNOWN is the zero value of the Status enum. It's not a valid status. - */ - UNKNOWN: 0, - - /** - * UNUSED denotes that this range is unclaimed by any cluster. - */ - UNUSED: 1, - - /** - * IN_USE_SERVICE denotes that this range is claimed by a cluster for - * services. It cannot be used for other clusters. - */ - IN_USE_SERVICE: 2, - - /** - * IN_USE_SHAREABLE_POD denotes this range was created by the network admin - * and is currently claimed by a cluster for pods. It can only be used by - * other clusters as a pod range. - */ - IN_USE_SHAREABLE_POD: 3, - - /** - * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed - * for pods. It cannot be used for other clusters. - */ - IN_USE_MANAGED_POD: 4 - } -}; - -/** - * UsableSubnetwork resource returns the subnetwork name, its associated network - * and the primary CIDR range. - * - * @property {string} subnetwork - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * @property {string} network - * Network Name. - * Example: projects/my-project/global/networks/my-network - * - * @property {string} ipCidrRange - * The range of internal addresses that are owned by this subnetwork. - * - * @property {Object[]} secondaryIpRanges - * Secondary IP ranges. - * - * This object should have the same structure as [UsableSubnetworkSecondaryRange]{@link google.container.v1.UsableSubnetworkSecondaryRange} - * - * @property {string} statusMessage - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * - * @typedef UsableSubnetwork - * @memberof google.container.v1 - * @see [google.container.v1.UsableSubnetwork definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const UsableSubnetwork = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; - -/** - * Configuration for exporting cluster resource usages. - * - * @property {Object} bigqueryDestination - * Configuration to use BigQuery as usage export destination. - * - * This object should have the same structure as [BigQueryDestination]{@link google.container.v1.BigQueryDestination} - * - * @property {boolean} enableNetworkEgressMetering - * Whether to enable network egress metering for this cluster. If enabled, a - * daemonset will be created in the cluster to meter network egress traffic. - * - * @property {Object} consumptionMeteringConfig - * Configuration to enable resource consumption metering. - * - * This object should have the same structure as [ConsumptionMeteringConfig]{@link google.container.v1.ConsumptionMeteringConfig} - * - * @typedef ResourceUsageExportConfig - * @memberof google.container.v1 - * @see [google.container.v1.ResourceUsageExportConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const ResourceUsageExportConfig = { - // This is for documentation. Actual contents will be loaded by gRPC. - - /** - * Parameters for using BigQuery as the destination of resource usage export. - * - * @property {string} datasetId - * The ID of a BigQuery Dataset. - * - * @typedef BigQueryDestination - * @memberof google.container.v1 - * @see [google.container.v1.ResourceUsageExportConfig.BigQueryDestination definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ - BigQueryDestination: { - // This is for documentation. Actual contents will be loaded by gRPC. - }, - - /** - * Parameters for controlling consumption metering. - * - * @property {boolean} enabled - * Whether to enable consumption metering for this cluster. If enabled, a - * second BigQuery table will be created to hold resource consumption - * records. - * - * @typedef ConsumptionMeteringConfig - * @memberof google.container.v1 - * @see [google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ - ConsumptionMeteringConfig: { - // This is for documentation. Actual contents will be loaded by gRPC. - } -}; - -/** - * VerticalPodAutoscaling contains global, per-cluster information - * required by Vertical Pod Autoscaler to automatically adjust - * the resources of pods controlled by it. - * - * @property {boolean} enabled - * Enables vertical pod autoscaling. - * - * @typedef VerticalPodAutoscaling - * @memberof google.container.v1 - * @see [google.container.v1.VerticalPodAutoscaling definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/container/v1/cluster_service.proto} - */ -const VerticalPodAutoscaling = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; \ No newline at end of file diff --git a/packages/google-container/src/browser.js b/packages/google-container/src/v1/index.ts similarity index 69% rename from packages/google-container/src/browser.js rename to packages/google-container/src/v1/index.ts index ddbcd7ecb9a..84fc771ca28 100644 --- a/packages/google-container/src/browser.js +++ b/packages/google-container/src/v1/index.ts @@ -11,11 +11,9 @@ // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** -'use strict'; - -// Set a flag that we are running in a browser bundle. -global.isBrowser = true; - -// Re-export all exports from ./index.js. -module.exports = require('./index'); +export {ClusterManagerClient} from './cluster_manager_client'; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 1b50b2af7ac..c3ed8e800d0 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,12 @@ { - "updateTime": "2019-11-19T12:11:15.960709Z", + "updateTime": "2019-12-23T21:58:54.696361Z", "sources": [ - { - "generator": { - "name": "artman", - "version": "0.42.1", - "dockerImage": "googleapis/artman@sha256:c773192618c608a7a0415dd95282f841f8e6bcdef7dd760a988c93b77a64bd57" - } - }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d8dd7fe8d5304f7bd1c52207703d7f27d5328c5a", - "internalRef": "281088257" + "sha": "1a380ea21dea9b6ac6ad28c60ad96d9d73574e19", + "internalRef": "286616241" } }, { @@ -30,10 +23,275 @@ "source": "googleapis", "apiName": "container", "apiVersion": "v1", - "language": "nodejs", - "generator": "gapic", - "config": "google/container/artman_container_v1.yaml" + "language": "typescript", + "generator": "gapic-generator-typescript" } } + ], + "newFiles": [ + { + "path": "CODE_OF_CONDUCT.md" + }, + { + "path": ".eslintrc.yml" + }, + { + "path": "LICENSE" + }, + { + "path": "codecov.yaml" + }, + { + "path": "renovate.json" + }, + { + "path": "webpack.config.js" + }, + { + "path": ".jsdoc.js" + }, + { + "path": ".prettierignore" + }, + { + "path": "README.md" + }, + { + "path": "tslint.json" + }, + { + "path": "CONTRIBUTING.md" + }, + { + "path": ".prettierrc" + }, + { + "path": "tsconfig.json" + }, + { + "path": ".eslintignore" + }, + { + "path": ".nycrc" + }, + { + "path": "linkinator.config.json" + }, + { + "path": "protos/google/container/v1/cluster_service.proto" + }, + { + "path": "test/gapic-cluster_manager-v1.ts" + }, + { + "path": "system-test/.eslintrc.yml" + }, + { + "path": "system-test/install.ts" + }, + { + "path": "system-test/fixtures/sample/src/index.js" + }, + { + "path": "system-test/fixtures/sample/src/index.ts" + }, + { + "path": "__pycache__/synth.cpython-36.pyc" + }, + { + "path": "samples/README.md" + }, + { + "path": ".github/PULL_REQUEST_TEMPLATE.md" + }, + { + "path": ".github/release-please.yml" + }, + { + "path": ".github/ISSUE_TEMPLATE/feature_request.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/bug_report.md" + }, + { + "path": ".github/ISSUE_TEMPLATE/support_request.md" + }, + { + "path": "build/protos/protos.d.ts" + }, + { + "path": "build/protos/protos.json" + }, + { + "path": "build/protos/protos.js" + }, + { + "path": "build/protos/google/container/v1/cluster_service.proto" + }, + { + "path": "build/test/gapic-cluster_manager-v1.d.ts" + }, + { + "path": "build/test/gapic-cluster_manager-v1.js.map" + }, + { + "path": "build/test/gapic-cluster_manager-v1.js" + }, + { + "path": "build/system-test/install.js.map" + }, + { + "path": "build/system-test/install.js" + }, + { + "path": "build/system-test/install.d.ts" + }, + { + "path": "build/src/index.js" + }, + { + "path": "build/src/index.js.map" + }, + { + "path": "build/src/index.d.ts" + }, + { + "path": "build/src/v1/cluster_manager_client_config.d.ts" + }, + { + "path": "build/src/v1/cluster_manager_client_config.json" + }, + { + "path": "build/src/v1/index.js" + }, + { + "path": "build/src/v1/index.js.map" + }, + { + "path": "build/src/v1/cluster_manager_client.js" + }, + { + "path": "build/src/v1/index.d.ts" + }, + { + "path": "build/src/v1/cluster_manager_client.js.map" + }, + { + "path": "build/src/v1/cluster_manager_client.d.ts" + }, + { + "path": ".kokoro/test.bat" + }, + { + "path": ".kokoro/system-test.sh" + }, + { + "path": ".kokoro/trampoline.sh" + }, + { + "path": ".kokoro/samples-test.sh" + }, + { + "path": ".kokoro/publish.sh" + }, + { + "path": ".kokoro/lint.sh" + }, + { + "path": ".kokoro/common.cfg" + }, + { + "path": ".kokoro/test.sh" + }, + { + "path": ".kokoro/docs.sh" + }, + { + "path": ".kokoro/release/docs.cfg" + }, + { + "path": ".kokoro/release/publish.cfg" + }, + { + "path": ".kokoro/release/docs.sh" + }, + { + "path": ".kokoro/presubmit/node10/system-test.cfg" + }, + { + "path": ".kokoro/presubmit/node10/samples-test.cfg" + }, + { + "path": ".kokoro/presubmit/node10/test.cfg" + }, + { + "path": ".kokoro/presubmit/node10/docs.cfg" + }, + { + "path": ".kokoro/presubmit/node10/common.cfg" + }, + { + "path": ".kokoro/presubmit/node10/lint.cfg" + }, + { + "path": ".kokoro/presubmit/node8/test.cfg" + }, + { + "path": ".kokoro/presubmit/node8/common.cfg" + }, + { + "path": ".kokoro/presubmit/node12/test.cfg" + }, + { + "path": ".kokoro/presubmit/node12/common.cfg" + }, + { + "path": ".kokoro/presubmit/windows/test.cfg" + }, + { + "path": ".kokoro/presubmit/windows/common.cfg" + }, + { + "path": ".kokoro/continuous/node10/system-test.cfg" + }, + { + "path": ".kokoro/continuous/node10/samples-test.cfg" + }, + { + "path": ".kokoro/continuous/node10/test.cfg" + }, + { + "path": ".kokoro/continuous/node10/docs.cfg" + }, + { + "path": ".kokoro/continuous/node10/common.cfg" + }, + { + "path": ".kokoro/continuous/node10/lint.cfg" + }, + { + "path": ".kokoro/continuous/node8/test.cfg" + }, + { + "path": ".kokoro/continuous/node8/common.cfg" + }, + { + "path": ".kokoro/continuous/node12/test.cfg" + }, + { + "path": ".kokoro/continuous/node12/common.cfg" + }, + { + "path": "src/v1/cluster_manager_client.ts" + }, + { + "path": "src/v1/cluster_manager_client_config.json" + }, + { + "path": "src/v1/cluster_manager_proto_list.json" + }, + { + "path": "src/v1/index.ts" + } ] } \ No newline at end of file diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index e9a9db36b2a..60d180388a9 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -6,30 +6,49 @@ logging.basicConfig(level=logging.DEBUG) # Run the gapic generator -gapic = gcp.GAPICGenerator() +gapic = gcp.GAPICMicrogenerator() version = 'v1' -library = gapic.node_library( - 'container', version, - config_path="/google/container/" - "artman_container_v1.yaml") +library = gapic.typescript_library( + 'container', + generator_args={ + "grpc-service-config": f"google/container/{version}/container_grpc_service_config.json", + "package-name": f"@google-cloud/container" + }, + proto_path=f'/google/container/{version}', + version=version) s.copy( library, - excludes=['package.json', 'README.md', 'src/index.js'], + excludes=['package.json', 'README.md', 'src/index.ts'], ) # Copy templated files common_templates = gcp.CommonTemplates() -templates = common_templates.node_library() +templates = common_templates.node_library(source_location='build/src') s.copy(templates) -s.replace("src/v1/doc/google/container/v1/doc_cluster_service.js", - "resource quota<\/a>", - r"[resource quota](https://cloud.google.com/compute/docs/resource-quotas)") +# fix broken doc links s.replace("src/v1/doc/google/container/v1/doc_cluster_service.js", "https:\/\/cloud\.google\.com\/kubernetes-engine\/docs\/reference\/rest\/v1\/projects\.zones\.clusters\.nodePool", "https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools#resource-nodepool") +s.replace('src/v1/*.ts', + '/compute/docs/zones#available', + 'https://cloud.google.com/compute/docs/regions-zones/') + +s.replace('src/v1/*.ts', + '/compute/docs/zones', + 'https://cloud.google.com/compute/docs/regions-zones/') + +s.replace('src/v1/*.ts', + '/compute/docs/networks-and-firewalls', + 'https://cloud.google.com/vpc/docs/firewalls') + +s.replace('src/v1/*.ts', + "/container-engine/reference/rest/v1/projects.zones.clusters", + "https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters") + # Node.js specific cleanup subprocess.run(['npm', 'install']) subprocess.run(['npm', 'run', 'fix']) +subprocess.run(['npm', 'compileProtos', 'src']) diff --git a/packages/google-container/system-test/.eslintrc.yml b/packages/google-container/system-test/.eslintrc.yml index 2e6882e46d2..dc5d9b0171b 100644 --- a/packages/google-container/system-test/.eslintrc.yml +++ b/packages/google-container/system-test/.eslintrc.yml @@ -1,6 +1,4 @@ --- env: mocha: true -rules: - node/no-unpublished-require: off - no-console: off + diff --git a/packages/google-container/system-test/container.js b/packages/google-container/system-test/fixtures/sample/src/index.js similarity index 50% rename from packages/google-container/system-test/container.js rename to packages/google-container/system-test/fixtures/sample/src/index.js index 87417353192..4c7e7193d6c 100644 --- a/packages/google-container/system-test/container.js +++ b/packages/google-container/system-test/fixtures/sample/src/index.js @@ -1,17 +1,27 @@ -// Copyright 2018 Google LLC +// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + +/* eslint-disable node/no-missing-require, no-unused-vars */ +const container = require('@google-cloud/container'); -'use strict'; +function main() { + const clusterManagerClient = new container.ClusterManagerClient(); +} -console.warn('No system tests available!'); +main(); diff --git a/packages/google-container/src/v1/index.js b/packages/google-container/system-test/fixtures/sample/src/index.ts similarity index 62% rename from packages/google-container/src/v1/index.js rename to packages/google-container/system-test/fixtures/sample/src/index.ts index 31e3c6ee7ac..0f1e6e5d0e2 100644 --- a/packages/google-container/src/v1/index.js +++ b/packages/google-container/system-test/fixtures/sample/src/index.ts @@ -11,9 +11,15 @@ // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** -'use strict'; +import {ClusterManagerClient} from '@google-cloud/container'; -const ClusterManagerClient = require('./cluster_manager_client'); +function main() { + const clusterManagerClient = new ClusterManagerClient(); +} -module.exports.ClusterManagerClient = ClusterManagerClient; +main(); diff --git a/packages/google-container/system-test/install.ts b/packages/google-container/system-test/install.ts new file mode 100644 index 00000000000..2736aee84f7 --- /dev/null +++ b/packages/google-container/system-test/install.ts @@ -0,0 +1,50 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import {packNTest} from 'pack-n-play'; +import {readFileSync} from 'fs'; + +describe('typescript consumer tests', () => { + it('should have correct type signature for typescript users', async function() { + this.timeout(300000); + const options = { + packageDir: process.cwd(), // path to your module. + sample: { + description: 'typescript based user can use the type definitions', + ts: readFileSync( + './system-test/fixtures/sample/src/index.ts' + ).toString(), + }, + }; + await packNTest(options); // will throw upon error. + }); + + it('should have correct type signature for javascript users', async function() { + this.timeout(300000); + const options = { + packageDir: process.cwd(), // path to your module. + sample: { + description: 'typescript based user can use the type definitions', + ts: readFileSync( + './system-test/fixtures/sample/src/index.js' + ).toString(), + }, + }; + await packNTest(options); // will throw upon error. + }); +}); diff --git a/packages/google-container/test/gapic-cluster_manager-v1.ts b/packages/google-container/test/gapic-cluster_manager-v1.ts new file mode 100644 index 00000000000..6321159cb02 --- /dev/null +++ b/packages/google-container/test/gapic-cluster_manager-v1.ts @@ -0,0 +1,1525 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protosTypes from '../protos/protos'; +import * as assert from 'assert'; +const clustermanagerModule = require('../src'); + +const FAKE_STATUS_CODE = 1; +class FakeError { + name: string; + message: string; + code: number; + constructor(n: number) { + this.name = 'fakeName'; + this.message = 'fake message'; + this.code = n; + } +} +const error = new FakeError(FAKE_STATUS_CODE); +export interface Callback { + (err: FakeError | null, response?: {} | null): void; +} + +export class Operation { + constructor() {} + promise() {} +} +function mockSimpleGrpcMethod( + expectedRequest: {}, + response: {} | null, + error: FakeError | null +) { + return (actualRequest: {}, options: {}, callback: Callback) => { + assert.deepStrictEqual(actualRequest, expectedRequest); + if (error) { + callback(error); + } else if (response) { + callback(null, response); + } else { + callback(null); + } + }; +} +describe('v1.ClusterManagerClient', () => { + it('has servicePath', () => { + const servicePath = + clustermanagerModule.v1.ClusterManagerClient.servicePath; + assert(servicePath); + }); + it('has apiEndpoint', () => { + const apiEndpoint = + clustermanagerModule.v1.ClusterManagerClient.apiEndpoint; + assert(apiEndpoint); + }); + it('has port', () => { + const port = clustermanagerModule.v1.ClusterManagerClient.port; + assert(port); + assert(typeof port === 'number'); + }); + it('should create a client with no option', () => { + const client = new clustermanagerModule.v1.ClusterManagerClient(); + assert(client); + }); + it('should create a client with gRPC fallback', () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + fallback: true, + }); + assert(client); + }); + describe('listClusters', () => { + it('invokes listClusters without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IListClustersRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.listClusters = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.listClusters(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes listClusters with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IListClustersRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.listClusters = mockSimpleGrpcMethod( + request, + null, + error + ); + client.listClusters(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('getCluster', () => { + it('invokes getCluster without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IGetClusterRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.getCluster = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.getCluster(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes getCluster with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IGetClusterRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.getCluster = mockSimpleGrpcMethod( + request, + null, + error + ); + client.getCluster(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('createCluster', () => { + it('invokes createCluster without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ICreateClusterRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.createCluster = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.createCluster(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes createCluster with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ICreateClusterRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.createCluster = mockSimpleGrpcMethod( + request, + null, + error + ); + client.createCluster(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('updateCluster', () => { + it('invokes updateCluster without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IUpdateClusterRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.updateCluster = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.updateCluster(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes updateCluster with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IUpdateClusterRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.updateCluster = mockSimpleGrpcMethod( + request, + null, + error + ); + client.updateCluster(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('updateNodePool', () => { + it('invokes updateNodePool without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IUpdateNodePoolRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.updateNodePool = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.updateNodePool(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes updateNodePool with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IUpdateNodePoolRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.updateNodePool = mockSimpleGrpcMethod( + request, + null, + error + ); + client.updateNodePool(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setNodePoolAutoscaling', () => { + it('invokes setNodePoolAutoscaling without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setNodePoolAutoscaling = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setNodePoolAutoscaling(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setNodePoolAutoscaling with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setNodePoolAutoscaling = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setNodePoolAutoscaling(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setLoggingService', () => { + it('invokes setLoggingService without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetLoggingServiceRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setLoggingService = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setLoggingService(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setLoggingService with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetLoggingServiceRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setLoggingService = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setLoggingService(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setMonitoringService', () => { + it('invokes setMonitoringService without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetMonitoringServiceRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setMonitoringService = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setMonitoringService(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setMonitoringService with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetMonitoringServiceRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setMonitoringService = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setMonitoringService(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setAddonsConfig', () => { + it('invokes setAddonsConfig without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetAddonsConfigRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setAddonsConfig = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setAddonsConfig(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setAddonsConfig with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetAddonsConfigRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setAddonsConfig = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setAddonsConfig(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setLocations', () => { + it('invokes setLocations without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetLocationsRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setLocations = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setLocations(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setLocations with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetLocationsRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setLocations = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setLocations(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('updateMaster', () => { + it('invokes updateMaster without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IUpdateMasterRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.updateMaster = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.updateMaster(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes updateMaster with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IUpdateMasterRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.updateMaster = mockSimpleGrpcMethod( + request, + null, + error + ); + client.updateMaster(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setMasterAuth', () => { + it('invokes setMasterAuth without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetMasterAuthRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setMasterAuth = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setMasterAuth(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setMasterAuth with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetMasterAuthRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setMasterAuth = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setMasterAuth(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('deleteCluster', () => { + it('invokes deleteCluster without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IDeleteClusterRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.deleteCluster = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.deleteCluster(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes deleteCluster with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IDeleteClusterRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.deleteCluster = mockSimpleGrpcMethod( + request, + null, + error + ); + client.deleteCluster(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('listOperations', () => { + it('invokes listOperations without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IListOperationsRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.listOperations = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.listOperations(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes listOperations with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IListOperationsRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.listOperations = mockSimpleGrpcMethod( + request, + null, + error + ); + client.listOperations(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IGetOperationRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.getOperation = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.getOperation(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes getOperation with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IGetOperationRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.getOperation = mockSimpleGrpcMethod( + request, + null, + error + ); + client.getOperation(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ICancelOperationRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.cancelOperation = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.cancelOperation(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes cancelOperation with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ICancelOperationRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.cancelOperation = mockSimpleGrpcMethod( + request, + null, + error + ); + client.cancelOperation(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('getServerConfig', () => { + it('invokes getServerConfig without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IGetServerConfigRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.getServerConfig = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.getServerConfig(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes getServerConfig with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IGetServerConfigRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.getServerConfig = mockSimpleGrpcMethod( + request, + null, + error + ); + client.getServerConfig(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('listNodePools', () => { + it('invokes listNodePools without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IListNodePoolsRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.listNodePools = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.listNodePools(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes listNodePools with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IListNodePoolsRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.listNodePools = mockSimpleGrpcMethod( + request, + null, + error + ); + client.listNodePools(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('getNodePool', () => { + it('invokes getNodePool without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IGetNodePoolRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.getNodePool = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.getNodePool(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes getNodePool with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IGetNodePoolRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.getNodePool = mockSimpleGrpcMethod( + request, + null, + error + ); + client.getNodePool(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('createNodePool', () => { + it('invokes createNodePool without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ICreateNodePoolRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.createNodePool = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.createNodePool(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes createNodePool with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ICreateNodePoolRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.createNodePool = mockSimpleGrpcMethod( + request, + null, + error + ); + client.createNodePool(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('deleteNodePool', () => { + it('invokes deleteNodePool without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IDeleteNodePoolRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.deleteNodePool = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.deleteNodePool(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes deleteNodePool with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IDeleteNodePoolRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.deleteNodePool = mockSimpleGrpcMethod( + request, + null, + error + ); + client.deleteNodePool(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('rollbackNodePoolUpgrade', () => { + it('invokes rollbackNodePoolUpgrade without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.rollbackNodePoolUpgrade = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.rollbackNodePoolUpgrade(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes rollbackNodePoolUpgrade with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.rollbackNodePoolUpgrade = mockSimpleGrpcMethod( + request, + null, + error + ); + client.rollbackNodePoolUpgrade( + request, + (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + } + ); + }); + }); + describe('setNodePoolManagement', () => { + it('invokes setNodePoolManagement without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetNodePoolManagementRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setNodePoolManagement = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setNodePoolManagement(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setNodePoolManagement with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetNodePoolManagementRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setNodePoolManagement = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setNodePoolManagement(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setLabels', () => { + it('invokes setLabels without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetLabelsRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setLabels = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setLabels(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setLabels with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetLabelsRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setLabels = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setLabels(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setLegacyAbac', () => { + it('invokes setLegacyAbac without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetLegacyAbacRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setLegacyAbac = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setLegacyAbac(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setLegacyAbac with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetLegacyAbacRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setLegacyAbac = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setLegacyAbac(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('startIPRotation', () => { + it('invokes startIPRotation without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IStartIPRotationRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.startIPRotation = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.startIPRotation(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes startIPRotation with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IStartIPRotationRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.startIPRotation = mockSimpleGrpcMethod( + request, + null, + error + ); + client.startIPRotation(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('completeIPRotation', () => { + it('invokes completeIPRotation without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ICompleteIPRotationRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.completeIPRotation = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.completeIPRotation(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes completeIPRotation with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ICompleteIPRotationRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.completeIPRotation = mockSimpleGrpcMethod( + request, + null, + error + ); + client.completeIPRotation(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setNodePoolSize', () => { + it('invokes setNodePoolSize without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetNodePoolSizeRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setNodePoolSize = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setNodePoolSize(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setNodePoolSize with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetNodePoolSizeRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setNodePoolSize = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setNodePoolSize(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setNetworkPolicy', () => { + it('invokes setNetworkPolicy without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetNetworkPolicyRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setNetworkPolicy = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setNetworkPolicy(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setNetworkPolicy with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetNetworkPolicyRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setNetworkPolicy = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setNetworkPolicy(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('setMaintenancePolicy', () => { + it('invokes setMaintenancePolicy without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setMaintenancePolicy = mockSimpleGrpcMethod( + request, + expectedResponse, + null + ); + client.setMaintenancePolicy(request, (err: {}, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + + it('invokes setMaintenancePolicy with error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock gRPC layer + client._innerApiCalls.setMaintenancePolicy = mockSimpleGrpcMethod( + request, + null, + error + ); + client.setMaintenancePolicy(request, (err: FakeError, response: {}) => { + assert(err instanceof FakeError); + assert.strictEqual(err.code, FAKE_STATUS_CODE); + assert(typeof response === 'undefined'); + done(); + }); + }); + }); + describe('listUsableSubnetworks', () => { + it('invokes listUsableSubnetworks without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IListUsableSubnetworksRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock Grpc layer + client._innerApiCalls.listUsableSubnetworks = ( + actualRequest: {}, + options: {}, + callback: Callback + ) => { + assert.deepStrictEqual(actualRequest, request); + callback(null, expectedResponse); + }; + client.listUsableSubnetworks(request, (err: FakeError, response: {}) => { + assert.ifError(err); + assert.deepStrictEqual(response, expectedResponse); + done(); + }); + }); + }); + describe('listUsableSubnetworksStream', () => { + it('invokes listUsableSubnetworksStream without error', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + // Mock request + const request: protosTypes.google.container.v1.IListUsableSubnetworksRequest = {}; + // Mock response + const expectedResponse = {}; + // Mock Grpc layer + client._innerApiCalls.listUsableSubnetworks = ( + actualRequest: {}, + options: {}, + callback: Callback + ) => { + assert.deepStrictEqual(actualRequest, request); + callback(null, expectedResponse); + }; + const stream = client + .listUsableSubnetworksStream(request, {}) + .on('data', (response: {}) => { + assert.deepStrictEqual(response, expectedResponse); + done(); + }) + .on('error', (err: FakeError) => { + done(err); + }); + stream.write(request); + }); + }); +}); diff --git a/packages/google-container/test/gapic-v1.js b/packages/google-container/test/gapic-v1.js deleted file mode 100644 index f26d8ae491d..00000000000 --- a/packages/google-container/test/gapic-v1.js +++ /dev/null @@ -1,2667 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// 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. - -'use strict'; - -const assert = require('assert'); - -const containerModule = require('../src'); - -const FAKE_STATUS_CODE = 1; -const error = new Error(); -error.code = FAKE_STATUS_CODE; - -describe('ClusterManagerClient', () => { - it('has servicePath', () => { - const servicePath = containerModule.v1.ClusterManagerClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = containerModule.v1.ClusterManagerClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = containerModule.v1.ClusterManagerClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no options', () => { - const client = new containerModule.v1.ClusterManagerClient(); - assert(client); - }); - - it('should create a client with gRPC fallback', () => { - const client = new containerModule.v1.ClusterManagerClient({ - fallback: true, - }); - assert(client); - }); - - describe('listClusters', () => { - it('invokes listClusters without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const request = { - projectId: projectId, - zone: zone, - }; - - // Mock response - const expectedResponse = {}; - - // Mock Grpc layer - client._innerApiCalls.listClusters = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.listClusters(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes listClusters with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const request = { - projectId: projectId, - zone: zone, - }; - - // Mock Grpc layer - client._innerApiCalls.listClusters = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.listClusters(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('getCluster', () => { - it('invokes getCluster without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - }; - - // Mock response - const name = 'name3373707'; - const description = 'description-1724546052'; - const initialNodeCount = 1682564205; - const loggingService = 'loggingService-1700501035'; - const monitoringService = 'monitoringService1469270462'; - const network = 'network1843485230'; - const clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; - const subnetwork = 'subnetwork-1302785042'; - const enableKubernetesAlpha = false; - const labelFingerprint = 'labelFingerprint714995737'; - const selfLink = 'selfLink-1691268851'; - const zone2 = 'zone2-696322977'; - const endpoint = 'endpoint1741102485'; - const initialClusterVersion = 'initialClusterVersion-276373352'; - const currentMasterVersion = 'currentMasterVersion-920953983'; - const currentNodeVersion = 'currentNodeVersion-407476063'; - const createTime = 'createTime-493574096'; - const statusMessage = 'statusMessage-239442758'; - const nodeIpv4CidrSize = 1181176815; - const servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; - const currentNodeCount = 178977560; - const expireTime = 'expireTime-96179731'; - const location = 'location1901043637'; - const enableTpu = false; - const tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; - const expectedResponse = { - name: name, - description: description, - initialNodeCount: initialNodeCount, - loggingService: loggingService, - monitoringService: monitoringService, - network: network, - clusterIpv4Cidr: clusterIpv4Cidr, - subnetwork: subnetwork, - enableKubernetesAlpha: enableKubernetesAlpha, - labelFingerprint: labelFingerprint, - selfLink: selfLink, - zone: zone2, - endpoint: endpoint, - initialClusterVersion: initialClusterVersion, - currentMasterVersion: currentMasterVersion, - currentNodeVersion: currentNodeVersion, - createTime: createTime, - statusMessage: statusMessage, - nodeIpv4CidrSize: nodeIpv4CidrSize, - servicesIpv4Cidr: servicesIpv4Cidr, - currentNodeCount: currentNodeCount, - expireTime: expireTime, - location: location, - enableTpu: enableTpu, - tpuIpv4CidrBlock: tpuIpv4CidrBlock, - }; - - // Mock Grpc layer - client._innerApiCalls.getCluster = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.getCluster(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes getCluster with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - }; - - // Mock Grpc layer - client._innerApiCalls.getCluster = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.getCluster(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('createCluster', () => { - it('invokes createCluster without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const cluster = {}; - const request = { - projectId: projectId, - zone: zone, - cluster: cluster, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.createCluster = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.createCluster(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes createCluster with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const cluster = {}; - const request = { - projectId: projectId, - zone: zone, - cluster: cluster, - }; - - // Mock Grpc layer - client._innerApiCalls.createCluster = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.createCluster(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('updateCluster', () => { - it('invokes updateCluster without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const update = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - update: update, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.updateCluster = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.updateCluster(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes updateCluster with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const update = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - update: update, - }; - - // Mock Grpc layer - client._innerApiCalls.updateCluster = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.updateCluster(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('updateNodePool', () => { - it('invokes updateNodePool without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const nodeVersion = 'nodeVersion1790136219'; - const imageType = 'imageType-1442758754'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - nodeVersion: nodeVersion, - imageType: imageType, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.updateNodePool = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.updateNodePool(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes updateNodePool with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const nodeVersion = 'nodeVersion1790136219'; - const imageType = 'imageType-1442758754'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - nodeVersion: nodeVersion, - imageType: imageType, - }; - - // Mock Grpc layer - client._innerApiCalls.updateNodePool = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.updateNodePool(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setNodePoolAutoscaling', () => { - it('invokes setNodePoolAutoscaling without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const autoscaling = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - autoscaling: autoscaling, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setNodePoolAutoscaling = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setNodePoolAutoscaling(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setNodePoolAutoscaling with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const autoscaling = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - autoscaling: autoscaling, - }; - - // Mock Grpc layer - client._innerApiCalls.setNodePoolAutoscaling = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setNodePoolAutoscaling(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setLoggingService', () => { - it('invokes setLoggingService without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const loggingService = 'loggingService-1700501035'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - loggingService: loggingService, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setLoggingService = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setLoggingService(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setLoggingService with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const loggingService = 'loggingService-1700501035'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - loggingService: loggingService, - }; - - // Mock Grpc layer - client._innerApiCalls.setLoggingService = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setLoggingService(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setMonitoringService', () => { - it('invokes setMonitoringService without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const monitoringService = 'monitoringService1469270462'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - monitoringService: monitoringService, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setMonitoringService = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setMonitoringService(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setMonitoringService with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const monitoringService = 'monitoringService1469270462'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - monitoringService: monitoringService, - }; - - // Mock Grpc layer - client._innerApiCalls.setMonitoringService = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setMonitoringService(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setAddonsConfig', () => { - it('invokes setAddonsConfig without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const addonsConfig = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - addonsConfig: addonsConfig, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setAddonsConfig = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setAddonsConfig(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setAddonsConfig with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const addonsConfig = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - addonsConfig: addonsConfig, - }; - - // Mock Grpc layer - client._innerApiCalls.setAddonsConfig = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setAddonsConfig(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setLocations', () => { - it('invokes setLocations without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const locations = []; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - locations: locations, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setLocations = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setLocations(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setLocations with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const locations = []; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - locations: locations, - }; - - // Mock Grpc layer - client._innerApiCalls.setLocations = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setLocations(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('updateMaster', () => { - it('invokes updateMaster without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const masterVersion = 'masterVersion-2139460613'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - masterVersion: masterVersion, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.updateMaster = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.updateMaster(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes updateMaster with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const masterVersion = 'masterVersion-2139460613'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - masterVersion: masterVersion, - }; - - // Mock Grpc layer - client._innerApiCalls.updateMaster = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.updateMaster(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setMasterAuth', () => { - it('invokes setMasterAuth without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const action = 'UNKNOWN'; - const update = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - action: action, - update: update, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setMasterAuth = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setMasterAuth(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setMasterAuth with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const action = 'UNKNOWN'; - const update = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - action: action, - update: update, - }; - - // Mock Grpc layer - client._innerApiCalls.setMasterAuth = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setMasterAuth(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('deleteCluster', () => { - it('invokes deleteCluster without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.deleteCluster = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.deleteCluster(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes deleteCluster with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - }; - - // Mock Grpc layer - client._innerApiCalls.deleteCluster = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.deleteCluster(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('listOperations', () => { - it('invokes listOperations without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const request = { - projectId: projectId, - zone: zone, - }; - - // Mock response - const expectedResponse = {}; - - // Mock Grpc layer - client._innerApiCalls.listOperations = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.listOperations(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes listOperations with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const request = { - projectId: projectId, - zone: zone, - }; - - // Mock Grpc layer - client._innerApiCalls.listOperations = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.listOperations(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('getOperation', () => { - it('invokes getOperation without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const operationId = 'operationId-274116877'; - const request = { - projectId: projectId, - zone: zone, - operationId: operationId, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.getOperation = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.getOperation(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes getOperation with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const operationId = 'operationId-274116877'; - const request = { - projectId: projectId, - zone: zone, - operationId: operationId, - }; - - // Mock Grpc layer - client._innerApiCalls.getOperation = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.getOperation(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('cancelOperation', () => { - it('invokes cancelOperation without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const operationId = 'operationId-274116877'; - const request = { - projectId: projectId, - zone: zone, - operationId: operationId, - }; - - // Mock Grpc layer - client._innerApiCalls.cancelOperation = mockSimpleGrpcMethod(request); - - client.cancelOperation(request, err => { - assert.ifError(err); - done(); - }); - }); - - it('invokes cancelOperation with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const operationId = 'operationId-274116877'; - const request = { - projectId: projectId, - zone: zone, - operationId: operationId, - }; - - // Mock Grpc layer - client._innerApiCalls.cancelOperation = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.cancelOperation(request, err => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - done(); - }); - }); - }); - - describe('getServerConfig', () => { - it('invokes getServerConfig without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const request = { - projectId: projectId, - zone: zone, - }; - - // Mock response - const defaultClusterVersion = 'defaultClusterVersion111003029'; - const defaultImageType = 'defaultImageType-918225828'; - const expectedResponse = { - defaultClusterVersion: defaultClusterVersion, - defaultImageType: defaultImageType, - }; - - // Mock Grpc layer - client._innerApiCalls.getServerConfig = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.getServerConfig(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes getServerConfig with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const request = { - projectId: projectId, - zone: zone, - }; - - // Mock Grpc layer - client._innerApiCalls.getServerConfig = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.getServerConfig(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('listNodePools', () => { - it('invokes listNodePools without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - }; - - // Mock response - const expectedResponse = {}; - - // Mock Grpc layer - client._innerApiCalls.listNodePools = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.listNodePools(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes listNodePools with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - }; - - // Mock Grpc layer - client._innerApiCalls.listNodePools = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.listNodePools(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('getNodePool', () => { - it('invokes getNodePool without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - }; - - // Mock response - const name = 'name3373707'; - const initialNodeCount = 1682564205; - const selfLink = 'selfLink-1691268851'; - const version = 'version351608024'; - const statusMessage = 'statusMessage-239442758'; - const podIpv4CidrSize = 1098768716; - const expectedResponse = { - name: name, - initialNodeCount: initialNodeCount, - selfLink: selfLink, - version: version, - statusMessage: statusMessage, - podIpv4CidrSize: podIpv4CidrSize, - }; - - // Mock Grpc layer - client._innerApiCalls.getNodePool = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.getNodePool(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes getNodePool with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - }; - - // Mock Grpc layer - client._innerApiCalls.getNodePool = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.getNodePool(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('createNodePool', () => { - it('invokes createNodePool without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePool = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePool: nodePool, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.createNodePool = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.createNodePool(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes createNodePool with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePool = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePool: nodePool, - }; - - // Mock Grpc layer - client._innerApiCalls.createNodePool = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.createNodePool(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('deleteNodePool', () => { - it('invokes deleteNodePool without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.deleteNodePool = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.deleteNodePool(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes deleteNodePool with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - }; - - // Mock Grpc layer - client._innerApiCalls.deleteNodePool = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.deleteNodePool(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('rollbackNodePoolUpgrade', () => { - it('invokes rollbackNodePoolUpgrade without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.rollbackNodePoolUpgrade = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.rollbackNodePoolUpgrade(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes rollbackNodePoolUpgrade with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - }; - - // Mock Grpc layer - client._innerApiCalls.rollbackNodePoolUpgrade = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.rollbackNodePoolUpgrade(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setNodePoolManagement', () => { - it('invokes setNodePoolManagement without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const management = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - management: management, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setNodePoolManagement = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setNodePoolManagement(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setNodePoolManagement with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const management = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - management: management, - }; - - // Mock Grpc layer - client._innerApiCalls.setNodePoolManagement = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setNodePoolManagement(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setLabels', () => { - it('invokes setLabels without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const resourceLabels = {}; - const labelFingerprint = 'labelFingerprint714995737'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - resourceLabels: resourceLabels, - labelFingerprint: labelFingerprint, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setLabels = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setLabels(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setLabels with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const resourceLabels = {}; - const labelFingerprint = 'labelFingerprint714995737'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - resourceLabels: resourceLabels, - labelFingerprint: labelFingerprint, - }; - - // Mock Grpc layer - client._innerApiCalls.setLabels = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setLabels(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setLegacyAbac', () => { - it('invokes setLegacyAbac without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const enabled = false; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - enabled: enabled, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setLegacyAbac = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setLegacyAbac(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setLegacyAbac with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const enabled = false; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - enabled: enabled, - }; - - // Mock Grpc layer - client._innerApiCalls.setLegacyAbac = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setLegacyAbac(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('startIPRotation', () => { - it('invokes startIPRotation without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.startIPRotation = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.startIPRotation(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes startIPRotation with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - }; - - // Mock Grpc layer - client._innerApiCalls.startIPRotation = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.startIPRotation(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('completeIPRotation', () => { - it('invokes completeIPRotation without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.completeIPRotation = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.completeIPRotation(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes completeIPRotation with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - }; - - // Mock Grpc layer - client._innerApiCalls.completeIPRotation = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.completeIPRotation(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setNodePoolSize', () => { - it('invokes setNodePoolSize without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const nodeCount = 1539922066; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - nodeCount: nodeCount, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setNodePoolSize = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setNodePoolSize(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setNodePoolSize with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const nodePoolId = 'nodePoolId1043384033'; - const nodeCount = 1539922066; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - nodePoolId: nodePoolId, - nodeCount: nodeCount, - }; - - // Mock Grpc layer - client._innerApiCalls.setNodePoolSize = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setNodePoolSize(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setNetworkPolicy', () => { - it('invokes setNetworkPolicy without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const networkPolicy = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - networkPolicy: networkPolicy, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setNetworkPolicy = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setNetworkPolicy(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setNetworkPolicy with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const networkPolicy = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - networkPolicy: networkPolicy, - }; - - // Mock Grpc layer - client._innerApiCalls.setNetworkPolicy = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setNetworkPolicy(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('setMaintenancePolicy', () => { - it('invokes setMaintenancePolicy without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const maintenancePolicy = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - maintenancePolicy: maintenancePolicy, - }; - - // Mock response - const name = 'name3373707'; - const zone2 = 'zone2-696322977'; - const detail = 'detail-1335224239'; - const statusMessage = 'statusMessage-239442758'; - const selfLink = 'selfLink-1691268851'; - const targetLink = 'targetLink-2084812312'; - const location = 'location1901043637'; - const startTime = 'startTime-1573145462'; - const endTime = 'endTime1725551537'; - const expectedResponse = { - name: name, - zone: zone2, - detail: detail, - statusMessage: statusMessage, - selfLink: selfLink, - targetLink: targetLink, - location: location, - startTime: startTime, - endTime: endTime, - }; - - // Mock Grpc layer - client._innerApiCalls.setMaintenancePolicy = mockSimpleGrpcMethod( - request, - expectedResponse - ); - - client.setMaintenancePolicy(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setMaintenancePolicy with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const projectId = 'projectId-1969970175'; - const zone = 'zone3744684'; - const clusterId = 'clusterId240280960'; - const maintenancePolicy = {}; - const request = { - projectId: projectId, - zone: zone, - clusterId: clusterId, - maintenancePolicy: maintenancePolicy, - }; - - // Mock Grpc layer - client._innerApiCalls.setMaintenancePolicy = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.setMaintenancePolicy(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - - describe('listUsableSubnetworks', () => { - it('invokes listUsableSubnetworks without error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const request = {}; - - // Mock response - const nextPageToken = ''; - const subnetworksElement = {}; - const subnetworks = [subnetworksElement]; - const expectedResponse = { - nextPageToken: nextPageToken, - subnetworks: subnetworks, - }; - - // Mock Grpc layer - client._innerApiCalls.listUsableSubnetworks = ( - actualRequest, - options, - callback - ) => { - assert.deepStrictEqual(actualRequest, request); - callback(null, expectedResponse.subnetworks); - }; - - client.listUsableSubnetworks(request, (err, response) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse.subnetworks); - done(); - }); - }); - - it('invokes listUsableSubnetworks with error', done => { - const client = new containerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - - // Mock request - const request = {}; - - // Mock Grpc layer - client._innerApiCalls.listUsableSubnetworks = mockSimpleGrpcMethod( - request, - null, - error - ); - - client.listUsableSubnetworks(request, (err, response) => { - assert(err instanceof Error); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); -}); - -function mockSimpleGrpcMethod(expectedRequest, response, error) { - return function(actualRequest, options, callback) { - assert.deepStrictEqual(actualRequest, expectedRequest); - if (error) { - callback(error); - } else if (response) { - callback(null, response); - } else { - callback(null); - } - }; -} diff --git a/packages/google-container/tsconfig.json b/packages/google-container/tsconfig.json new file mode 100644 index 00000000000..613d35597b5 --- /dev/null +++ b/packages/google-container/tsconfig.json @@ -0,0 +1,19 @@ +{ + "extends": "./node_modules/gts/tsconfig-google.json", + "compilerOptions": { + "rootDir": ".", + "outDir": "build", + "resolveJsonModule": true, + "lib": [ + "es2016", + "dom" + ] + }, + "include": [ + "src/*.ts", + "src/**/*.ts", + "test/*.ts", + "test/**/*.ts", + "system-test/*.ts" + ] +} diff --git a/packages/google-container/tslint.json b/packages/google-container/tslint.json new file mode 100644 index 00000000000..617dc975bae --- /dev/null +++ b/packages/google-container/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "gts/tslint.json" +} diff --git a/packages/google-container/webpack.config.js b/packages/google-container/webpack.config.js index 8c12a9f7896..4a9a19d9a43 100644 --- a/packages/google-container/webpack.config.js +++ b/packages/google-container/webpack.config.js @@ -12,11 +12,13 @@ // See the License for the specific language governing permissions and // limitations under the License. +const path = require('path'); + module.exports = { - entry: './src/browser.js', + entry: './src/index.ts', output: { - library: 'container', - filename: './container.js', + library: 'ClusterManager', + filename: './cluster-manager.js', }, node: { child_process: 'empty', @@ -24,21 +26,37 @@ module.exports = { crypto: 'empty', }, resolve: { - extensions: ['.js', '.json'], + alias: { + '../../../package.json': path.resolve(__dirname, 'package.json'), + }, + extensions: ['.js', '.json', '.ts'], }, module: { rules: [ { - test: /node_modules[\\/]retry-request[\\/]/, - use: 'null-loader', + test: /\.tsx?$/, + use: 'ts-loader', + exclude: /node_modules/ + }, + { + test: /node_modules[\\/]@grpc[\\/]grpc-js/, + use: 'null-loader' + }, + { + test: /node_modules[\\/]grpc/, + use: 'null-loader' + }, + { + test: /node_modules[\\/]retry-request/, + use: 'null-loader' }, { - test: /node_modules[\\/]https-proxy-agent[\\/]/, - use: 'null-loader', + test: /node_modules[\\/]https?-proxy-agent/, + use: 'null-loader' }, { - test: /node_modules[\\/]gtoken[\\/]/, - use: 'null-loader', + test: /node_modules[\\/]gtoken/, + use: 'null-loader' }, ], }, From 83c50f43d42aeb6ce5bf87b61e3d7df5669fde2a Mon Sep 17 00:00:00 2001 From: Xiaozhen Liu Date: Mon, 23 Dec 2019 14:56:56 -0800 Subject: [PATCH 165/371] chore: fix documentation links --- .../src/v1/cluster_manager_client.ts | 62 +++++++++---------- packages/google-container/synth.metadata | 2 +- packages/google-container/synth.py | 4 -- 3 files changed, 32 insertions(+), 36 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 4eb48d4a7ef..3ce76c9b65b 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -321,7 +321,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides, or "-" for all zones. * This field has been deprecated and replaced by the parent field. * @param {string} request.parent @@ -403,7 +403,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -499,7 +499,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the parent field. * @param {google.container.v1.Cluster} request.cluster @@ -583,7 +583,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -669,7 +669,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -775,7 +775,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -874,7 +874,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -964,7 +964,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -1057,7 +1057,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -1144,7 +1144,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -1152,7 +1152,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string[]} request.locations * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster's nodes + * [zones](https://cloud.google.com/compute/docs/regions-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. @@ -1236,7 +1236,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -1333,7 +1333,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -1429,7 +1429,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -1513,7 +1513,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) to return operations for, or `-` for + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) to return operations for, or `-` for * all zones. This field has been deprecated and replaced by the parent field. * @param {string} request.parent * The parent (project and location) where the operations will be listed. @@ -1594,7 +1594,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.operationId @@ -1678,7 +1678,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the operation resides. + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the operation resides. * This field has been deprecated and replaced by the name field. * @param {string} request.operationId * Required. Deprecated. The server-assigned `name` of the operation. @@ -1761,7 +1761,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) to return operations for. + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) to return operations for. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project and location) of the server config to get, @@ -1841,7 +1841,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the parent field. * @param {string} request.clusterId @@ -1925,7 +1925,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -2013,7 +2013,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the parent field. * @param {string} request.clusterId @@ -2100,7 +2100,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -2193,7 +2193,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -2290,7 +2290,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -2385,7 +2385,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -2478,7 +2478,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -2564,7 +2564,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -2650,7 +2650,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -2735,7 +2735,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -2825,7 +2825,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Required. Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId @@ -2910,7 +2910,7 @@ export class ClusterManagerClient { * number](https://support.google.com/cloud/answer/6158840). * @param {string} request.zone * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/) in which the cluster + * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * @param {string} request.clusterId * Required. The name of the cluster to update. diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index c3ed8e800d0..33814b9b62b 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2019-12-23T21:58:54.696361Z", + "updateTime": "2019-12-23T22:35:08.161980Z", "sources": [ { "git": { diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index 60d180388a9..c692bb2f2a0 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -32,10 +32,6 @@ "https:\/\/cloud\.google\.com\/kubernetes-engine\/docs\/reference\/rest\/v1\/projects\.zones\.clusters\.nodePool", "https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools#resource-nodepool") -s.replace('src/v1/*.ts', - '/compute/docs/zones#available', - 'https://cloud.google.com/compute/docs/regions-zones/') - s.replace('src/v1/*.ts', '/compute/docs/zones', 'https://cloud.google.com/compute/docs/regions-zones/') From de93aa61b3d324aa2e4c750c69d5228000f2cb66 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 27 Dec 2019 19:27:50 +0200 Subject: [PATCH 166/371] chore(deps): update dependency eslint-plugin-node to v11 (#265) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 23fcf9e2e03..a98d9f553d6 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -49,7 +49,7 @@ "c8": "^6.0.0", "eslint": "^6.0.0", "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^10.0.0", + "eslint-plugin-node": "^11.0.0", "eslint-plugin-prettier": "^3.1.0", "gts": "^1.0.0", "intelli-espower-loader": "^1.0.1", From 5f5c35f92f5bd7dbb3ca435e61e446587e78bfff Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 28 Dec 2019 21:17:52 +0200 Subject: [PATCH 167/371] chore(deps): update dependency c8 to v7 (#264) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index a98d9f553d6..9d561627cc1 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -46,7 +46,7 @@ "devDependencies": { "@types/mocha": "^5.2.5", "@types/node": "^12.0.0", - "c8": "^6.0.0", + "c8": "^7.0.0", "eslint": "^6.0.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", From f47c4733bf0c5fb87edecd38d963dff93e76667c Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 30 Dec 2019 11:35:56 -0800 Subject: [PATCH 168/371] refactor: use explicit mocha imports --- packages/google-container/smoke-test/.eslintrc.yml | 2 -- packages/google-container/system-test/.eslintrc.yml | 4 ---- packages/google-container/test/.eslintrc.yml | 2 -- packages/google-container/test/gapic-cluster_manager-v1.ts | 1 + 4 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 packages/google-container/system-test/.eslintrc.yml diff --git a/packages/google-container/smoke-test/.eslintrc.yml b/packages/google-container/smoke-test/.eslintrc.yml index 2e6882e46d2..5adab99ca15 100644 --- a/packages/google-container/smoke-test/.eslintrc.yml +++ b/packages/google-container/smoke-test/.eslintrc.yml @@ -1,6 +1,4 @@ --- -env: - mocha: true rules: node/no-unpublished-require: off no-console: off diff --git a/packages/google-container/system-test/.eslintrc.yml b/packages/google-container/system-test/.eslintrc.yml deleted file mode 100644 index dc5d9b0171b..00000000000 --- a/packages/google-container/system-test/.eslintrc.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -env: - mocha: true - diff --git a/packages/google-container/test/.eslintrc.yml b/packages/google-container/test/.eslintrc.yml index 73f7bbc946f..cd088a97818 100644 --- a/packages/google-container/test/.eslintrc.yml +++ b/packages/google-container/test/.eslintrc.yml @@ -1,5 +1,3 @@ --- -env: - mocha: true rules: node/no-unpublished-require: off diff --git a/packages/google-container/test/gapic-cluster_manager-v1.ts b/packages/google-container/test/gapic-cluster_manager-v1.ts index 6321159cb02..8d58d58bdb5 100644 --- a/packages/google-container/test/gapic-cluster_manager-v1.ts +++ b/packages/google-container/test/gapic-cluster_manager-v1.ts @@ -18,6 +18,7 @@ import * as protosTypes from '../protos/protos'; import * as assert from 'assert'; +import {describe, it} from 'mocha'; const clustermanagerModule = require('../src'); const FAKE_STATUS_CODE = 1; From a427d93093a929b18c3a59e1c6147c545092d1f9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 3 Jan 2020 18:38:57 -0800 Subject: [PATCH 169/371] fix: better client close(), update .nycrc --- packages/google-container/.nycrc | 1 + .../src/v1/cluster_manager_client.ts | 6 +- packages/google-container/synth.metadata | 3692 ++++++++++++++++- .../google-container/system-test/install.ts | 1 + 4 files changed, 3618 insertions(+), 82 deletions(-) diff --git a/packages/google-container/.nycrc b/packages/google-container/.nycrc index 367688844eb..b18d5472b62 100644 --- a/packages/google-container/.nycrc +++ b/packages/google-container/.nycrc @@ -12,6 +12,7 @@ "**/scripts", "**/protos", "**/test", + "**/*.d.ts", ".jsdoc.js", "**/.jsdoc.js", "karma.conf.js", diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 3ce76c9b65b..26a8eaf79ad 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -212,6 +212,9 @@ export class ClusterManagerClient { for (const methodName of clusterManagerStubMethods) { const innerCallPromise = this.clusterManagerStub.then( stub => (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } return stub[methodName].apply(stub, args); }, (err: Error | null | undefined) => () => { @@ -232,9 +235,6 @@ export class ClusterManagerClient { callOptions?: CallOptions, callback?: APICallback ) => { - if (this._terminated) { - return Promise.reject('The client has already been closed.'); - } return apiCall(argument, callOptions, callback); }; } diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 33814b9b62b..cc2ff64a1a3 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,12 +1,12 @@ { - "updateTime": "2019-12-23T22:35:08.161980Z", + "updateTime": "2020-01-03T12:09:36.403198Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1a380ea21dea9b6ac6ad28c60ad96d9d73574e19", - "internalRef": "286616241" + "sha": "4d45a6399e9444fbddaeb1c86aabfde210723714", + "internalRef": "287908369" } }, { @@ -30,106 +30,217 @@ ], "newFiles": [ { - "path": "CODE_OF_CONDUCT.md" + "path": ".readme-partials.yaml" }, { - "path": ".eslintrc.yml" + "path": "synth.metadata" }, { - "path": "LICENSE" + "path": ".repo-metadata.json" }, { - "path": "codecov.yaml" + "path": "CONTRIBUTING.md" }, { - "path": "renovate.json" + "path": "linkinator.config.json" }, { - "path": "webpack.config.js" + "path": ".prettierignore" + }, + { + "path": "tsconfig.json" }, { "path": ".jsdoc.js" }, { - "path": ".prettierignore" + "path": ".gitignore" + }, + { + "path": "synth.py" + }, + { + "path": "CODE_OF_CONDUCT.md" }, { "path": "README.md" }, + { + "path": "package-lock.json" + }, + { + "path": ".prettierrc" + }, + { + "path": "codecov.yaml" + }, + { + "path": ".nycrc" + }, + { + "path": "package.json" + }, + { + "path": "webpack.config.js" + }, + { + "path": ".eslintrc.yml" + }, { "path": "tslint.json" }, { - "path": "CONTRIBUTING.md" + "path": "renovate.json" }, { - "path": ".prettierrc" + "path": "LICENSE" }, { - "path": "tsconfig.json" + "path": "CHANGELOG.md" }, { "path": ".eslintignore" }, { - "path": ".nycrc" + "path": ".github/PULL_REQUEST_TEMPLATE.md" }, { - "path": "linkinator.config.json" + "path": ".github/release-please.yml" }, { - "path": "protos/google/container/v1/cluster_service.proto" + "path": ".github/ISSUE_TEMPLATE/support_request.md" }, { - "path": "test/gapic-cluster_manager-v1.ts" + "path": ".github/ISSUE_TEMPLATE/bug_report.md" }, { - "path": "system-test/.eslintrc.yml" + "path": ".github/ISSUE_TEMPLATE/feature_request.md" }, { - "path": "system-test/install.ts" + "path": ".kokoro/samples-test.sh" }, { - "path": "system-test/fixtures/sample/src/index.js" + "path": ".kokoro/system-test.sh" }, { - "path": "system-test/fixtures/sample/src/index.ts" + "path": ".kokoro/docs.sh" }, { - "path": "__pycache__/synth.cpython-36.pyc" + "path": ".kokoro/lint.sh" }, { - "path": "samples/README.md" + "path": ".kokoro/.gitattributes" }, { - "path": ".github/PULL_REQUEST_TEMPLATE.md" + "path": ".kokoro/publish.sh" }, { - "path": ".github/release-please.yml" + "path": ".kokoro/trampoline.sh" }, { - "path": ".github/ISSUE_TEMPLATE/feature_request.md" + "path": ".kokoro/common.cfg" }, { - "path": ".github/ISSUE_TEMPLATE/bug_report.md" + "path": ".kokoro/test.bat" }, { - "path": ".github/ISSUE_TEMPLATE/support_request.md" + "path": ".kokoro/test.sh" }, { - "path": "build/protos/protos.d.ts" + "path": ".kokoro/release/docs.sh" }, { - "path": "build/protos/protos.json" + "path": ".kokoro/release/docs.cfg" }, { - "path": "build/protos/protos.js" + "path": ".kokoro/release/common.cfg" }, { - "path": "build/protos/google/container/v1/cluster_service.proto" + "path": ".kokoro/release/publish.cfg" }, { - "path": "build/test/gapic-cluster_manager-v1.d.ts" + "path": ".kokoro/presubmit/node12/test.cfg" + }, + { + "path": ".kokoro/presubmit/node12/common.cfg" + }, + { + "path": ".kokoro/presubmit/node8/test.cfg" + }, + { + "path": ".kokoro/presubmit/node8/common.cfg" + }, + { + "path": ".kokoro/presubmit/windows/test.cfg" + }, + { + "path": ".kokoro/presubmit/windows/common.cfg" + }, + { + "path": ".kokoro/presubmit/node10/lint.cfg" + }, + { + "path": ".kokoro/presubmit/node10/system-test.cfg" + }, + { + "path": ".kokoro/presubmit/node10/test.cfg" + }, + { + "path": ".kokoro/presubmit/node10/docs.cfg" + }, + { + "path": ".kokoro/presubmit/node10/common.cfg" + }, + { + "path": ".kokoro/presubmit/node10/samples-test.cfg" + }, + { + "path": ".kokoro/continuous/node12/test.cfg" + }, + { + "path": ".kokoro/continuous/node12/common.cfg" + }, + { + "path": ".kokoro/continuous/node8/test.cfg" + }, + { + "path": ".kokoro/continuous/node8/common.cfg" + }, + { + "path": ".kokoro/continuous/node10/lint.cfg" + }, + { + "path": ".kokoro/continuous/node10/system-test.cfg" + }, + { + "path": ".kokoro/continuous/node10/test.cfg" + }, + { + "path": ".kokoro/continuous/node10/docs.cfg" + }, + { + "path": ".kokoro/continuous/node10/common.cfg" + }, + { + "path": ".kokoro/continuous/node10/samples-test.cfg" + }, + { + "path": "test/gapic-cluster_manager-v1.ts" + }, + { + "path": "test/mocha.opts" + }, + { + "path": "test/.eslintrc.yml" + }, + { + "path": "system-test/install.ts" + }, + { + "path": "system-test/fixtures/sample/src/index.ts" + }, + { + "path": "system-test/fixtures/sample/src/index.js" }, { "path": "build/test/gapic-cluster_manager-v1.js.map" @@ -138,13 +249,28 @@ "path": "build/test/gapic-cluster_manager-v1.js" }, { - "path": "build/system-test/install.js.map" + "path": "build/test/gapic-cluster_manager-v1.d.ts" + }, + { + "path": "build/system-test/install.d.ts" }, { "path": "build/system-test/install.js" }, { - "path": "build/system-test/install.d.ts" + "path": "build/system-test/install.js.map" + }, + { + "path": "build/protos/protos.d.ts" + }, + { + "path": "build/protos/protos.js" + }, + { + "path": "build/protos/protos.json" + }, + { + "path": "build/protos/google/container/v1/cluster_service.proto" }, { "path": "build/src/index.js" @@ -155,6 +281,18 @@ { "path": "build/src/index.d.ts" }, + { + "path": "build/src/v1/cluster_manager_client.js" + }, + { + "path": "build/src/v1/index.js" + }, + { + "path": "build/src/v1/index.js.map" + }, + { + "path": "build/src/v1/cluster_manager_client.js.map" + }, { "path": "build/src/v1/cluster_manager_client_config.d.ts" }, @@ -162,136 +300,3532 @@ "path": "build/src/v1/cluster_manager_client_config.json" }, { - "path": "build/src/v1/index.js" + "path": "build/src/v1/cluster_manager_client.d.ts" }, { - "path": "build/src/v1/index.js.map" + "path": "build/src/v1/index.d.ts" }, { - "path": "build/src/v1/cluster_manager_client.js" + "path": "protos/protos.d.ts" }, { - "path": "build/src/v1/index.d.ts" + "path": "protos/protos.js" }, { - "path": "build/src/v1/cluster_manager_client.js.map" + "path": "protos/protos.json" }, { - "path": "build/src/v1/cluster_manager_client.d.ts" + "path": "protos/google/container/v1/cluster_service.proto" }, { - "path": ".kokoro/test.bat" + "path": ".git/shallow" }, { - "path": ".kokoro/system-test.sh" + "path": ".git/HEAD" }, { - "path": ".kokoro/trampoline.sh" + "path": ".git/config" }, { - "path": ".kokoro/samples-test.sh" + "path": ".git/packed-refs" }, { - "path": ".kokoro/publish.sh" + "path": ".git/index" }, { - "path": ".kokoro/lint.sh" + "path": ".git/objects/pack/pack-2050f0d99dbaac123a7545c47203c94ca22d90a2.pack" }, { - "path": ".kokoro/common.cfg" + "path": ".git/objects/pack/pack-2050f0d99dbaac123a7545c47203c94ca22d90a2.idx" }, { - "path": ".kokoro/test.sh" + "path": ".git/logs/HEAD" }, { - "path": ".kokoro/docs.sh" + "path": ".git/logs/refs/heads/master" }, { - "path": ".kokoro/release/docs.cfg" + "path": ".git/logs/refs/heads/autosynth" }, { - "path": ".kokoro/release/publish.cfg" + "path": ".git/logs/refs/remotes/origin/HEAD" }, { - "path": ".kokoro/release/docs.sh" + "path": ".git/refs/heads/master" }, { - "path": ".kokoro/presubmit/node10/system-test.cfg" + "path": ".git/refs/heads/autosynth" }, { - "path": ".kokoro/presubmit/node10/samples-test.cfg" + "path": ".git/refs/remotes/origin/HEAD" }, { - "path": ".kokoro/presubmit/node10/test.cfg" + "path": "src/index.ts" }, { - "path": ".kokoro/presubmit/node10/docs.cfg" + "path": "src/v1/cluster_manager_client.ts" }, { - "path": ".kokoro/presubmit/node10/common.cfg" + "path": "src/v1/index.ts" }, { - "path": ".kokoro/presubmit/node10/lint.cfg" + "path": "src/v1/cluster_manager_proto_list.json" }, { - "path": ".kokoro/presubmit/node8/test.cfg" + "path": "src/v1/cluster_manager_client_config.json" }, { - "path": ".kokoro/presubmit/node8/common.cfg" + "path": "src/v1/doc/google/protobuf/doc_timestamp.js" }, { - "path": ".kokoro/presubmit/node12/test.cfg" + "path": "src/v1/doc/google/protobuf/doc_empty.js" }, { - "path": ".kokoro/presubmit/node12/common.cfg" + "path": "node_modules/builtin-status-codes/package.json" }, { - "path": ".kokoro/presubmit/windows/test.cfg" + "path": "node_modules/progress/package.json" }, { - "path": ".kokoro/presubmit/windows/common.cfg" + "path": "node_modules/is-ci/package.json" }, { - "path": ".kokoro/continuous/node10/system-test.cfg" + "path": "node_modules/isobject/package.json" }, { - "path": ".kokoro/continuous/node10/samples-test.cfg" + "path": "node_modules/mamacro/package.json" }, { - "path": ".kokoro/continuous/node10/test.cfg" + "path": "node_modules/define-property/package.json" }, { - "path": ".kokoro/continuous/node10/docs.cfg" + "path": "node_modules/define-property/node_modules/is-data-descriptor/package.json" }, { - "path": ".kokoro/continuous/node10/common.cfg" + "path": "node_modules/define-property/node_modules/is-accessor-descriptor/package.json" }, { - "path": ".kokoro/continuous/node10/lint.cfg" + "path": "node_modules/define-property/node_modules/is-descriptor/package.json" }, { - "path": ".kokoro/continuous/node8/test.cfg" + "path": "node_modules/lru-cache/package.json" }, { - "path": ".kokoro/continuous/node8/common.cfg" + "path": "node_modules/destroy/package.json" }, { - "path": ".kokoro/continuous/node12/test.cfg" + "path": "node_modules/snapdragon-util/package.json" }, { - "path": ".kokoro/continuous/node12/common.cfg" + "path": "node_modules/snapdragon-util/node_modules/is-buffer/package.json" }, { - "path": "src/v1/cluster_manager_client.ts" + "path": "node_modules/snapdragon-util/node_modules/kind-of/package.json" }, { - "path": "src/v1/cluster_manager_client_config.json" + "path": "node_modules/power-assert-context-formatter/package.json" }, { - "path": "src/v1/cluster_manager_proto_list.json" + "path": "node_modules/fast-json-stable-stringify/package.json" }, { - "path": "src/v1/index.ts" + "path": "node_modules/nice-try/package.json" + }, + { + "path": "node_modules/which-module/package.json" + }, + { + "path": "node_modules/asn1.js/package.json" + }, + { + "path": "node_modules/array-find/package.json" + }, + { + "path": "node_modules/catharsis/package.json" + }, + { + "path": "node_modules/is-promise/package.json" + }, + { + "path": "node_modules/v8-compile-cache/package.json" + }, + { + "path": "node_modules/create-hmac/package.json" + }, + { + "path": "node_modules/tapable/package.json" + }, + { + "path": "node_modules/.bin/sha.js" + }, + { + "path": "node_modules/doctrine/package.json" + }, + { + "path": "node_modules/callsites/package.json" + }, + { + "path": "node_modules/diff/package.json" + }, + { + "path": "node_modules/hosted-git-info/package.json" + }, + { + "path": "node_modules/color-name/package.json" + }, + { + "path": "node_modules/path-dirname/package.json" + }, + { + "path": "node_modules/defer-to-connect/package.json" + }, + { + "path": "node_modules/snapdragon/index.js" + }, + { + "path": "node_modules/snapdragon/README.md" + }, + { + "path": "node_modules/snapdragon/package.json" + }, + { + "path": "node_modules/snapdragon/LICENSE" + }, + { + "path": "node_modules/snapdragon/lib/position.js" + }, + { + "path": "node_modules/snapdragon/lib/compiler.js" + }, + { + "path": "node_modules/snapdragon/lib/source-maps.js" + }, + { + "path": "node_modules/snapdragon/lib/utils.js" + }, + { + "path": "node_modules/snapdragon/lib/parser.js" + }, + { + "path": "node_modules/snapdragon/node_modules/define-property/package.json" + }, + { + "path": "node_modules/snapdragon/node_modules/debug/package.json" + }, + { + "path": "node_modules/snapdragon/node_modules/ms/package.json" + }, + { + "path": "node_modules/snapdragon/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/snapdragon/node_modules/source-map/package.json" + }, + { + "path": "node_modules/unpipe/package.json" + }, + { + "path": "node_modules/parse-asn1/package.json" + }, + { + "path": "node_modules/emoji-regex/package.json" + }, + { + "path": "node_modules/http-errors/package.json" + }, + { + "path": "node_modules/eventemitter3/package.json" + }, + { + "path": "node_modules/esutils/package.json" + }, + { + "path": "node_modules/npm-run-path/package.json" + }, + { + "path": "node_modules/npm-run-path/node_modules/path-key/package.json" + }, + { + "path": "node_modules/he/package.json" + }, + { + "path": "node_modules/pack-n-play/package.json" + }, + { + "path": "node_modules/pack-n-play/node_modules/tmp/package.json" + }, + { + "path": "node_modules/pack-n-play/node_modules/tmp/node_modules/rimraf/package.json" + }, + { + "path": "node_modules/on-finished/package.json" + }, + { + "path": "node_modules/crypto-browserify/package.json" + }, + { + "path": "node_modules/linkinator/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/update-notifier/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/dot-prop/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/redent/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/semver-diff/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/map-obj/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/meow/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/term-size/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/crypto-random-string/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/indent-string/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/camelcase-keys/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/is-obj/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/read-pkg-up/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/is-path-inside/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/boxen/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/chalk/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/arrify/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/widest-line/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/global-dirs/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/parse-json/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/xdg-basedir/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/is-npm/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/read-pkg/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/read-pkg/node_modules/type-fest/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/is-installed-globally/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/trim-newlines/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/semver/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/unique-string/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/strip-indent/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/quick-lru/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/minimist-options/package.json" + }, + { + "path": "node_modules/linkinator/node_modules/configstore/package.json" + }, + { + "path": "node_modules/update-notifier/package.json" + }, + { + "path": "node_modules/p-cancelable/package.json" + }, + { + "path": "node_modules/markdown-it/package.json" + }, + { + "path": "node_modules/setimmediate/package.json" + }, + { + "path": "node_modules/dot-prop/package.json" + }, + { + "path": "node_modules/require-main-filename/package.json" + }, + { + "path": "node_modules/fast-diff/package.json" + }, + { + "path": "node_modules/lodash.camelcase/package.json" + }, + { + "path": "node_modules/redent/package.json" + }, + { + "path": "node_modules/resolve/package.json" + }, + { + "path": "node_modules/globals/package.json" + }, + { + "path": "node_modules/p-is-promise/package.json" + }, + { + "path": "node_modules/range-parser/package.json" + }, + { + "path": "node_modules/string.prototype.trimright/package.json" + }, + { + "path": "node_modules/chrome-trace-event/package.json" + }, + { + "path": "node_modules/constants-browserify/package.json" + }, + { + "path": "node_modules/inflight/package.json" + }, + { + "path": "node_modules/debug/package.json" + }, + { + "path": "node_modules/htmlparser2/package.json" + }, + { + "path": "node_modules/htmlparser2/node_modules/readable-stream/package.json" + }, + { + "path": "node_modules/semver-diff/package.json" + }, + { + "path": "node_modules/semver-diff/node_modules/semver/package.json" + }, + { + "path": "node_modules/tsutils/package.json" + }, + { + "path": "node_modules/multi-stage-sourcemap/package.json" + }, + { + "path": "node_modules/multi-stage-sourcemap/node_modules/source-map/package.json" + }, + { + "path": "node_modules/ms/package.json" + }, + { + "path": "node_modules/linkify-it/package.json" + }, + { + "path": "node_modules/through/package.json" + }, + { + "path": "node_modules/power-assert-renderer-file/package.json" + }, + { + "path": "node_modules/homedir-polyfill/package.json" + }, + { + "path": "node_modules/string-width/package.json" + }, + { + "path": "node_modules/html-escaper/package.json" + }, + { + "path": "node_modules/type/package.json" + }, + { + "path": "node_modules/move-concurrently/package.json" + }, + { + "path": "node_modules/move-concurrently/node_modules/rimraf/package.json" + }, + { + "path": "node_modules/type-fest/package.json" + }, + { + "path": "node_modules/intelli-espower-loader/package.json" + }, + { + "path": "node_modules/parseurl/package.json" + }, + { + "path": "node_modules/buffer-from/package.json" + }, + { + "path": "node_modules/google-p12-pem/package.json" + }, + { + "path": "node_modules/get-caller-file/package.json" + }, + { + "path": "node_modules/klaw/package.json" + }, + { + "path": "node_modules/public-encrypt/package.json" + }, + { + "path": "node_modules/map-obj/package.json" + }, + { + "path": "node_modules/node-fetch/package.json" + }, + { + "path": "node_modules/jsonexport/package.json" + }, + { + "path": "node_modules/isexe/package.json" + }, + { + "path": "node_modules/object.pick/package.json" + }, + { + "path": "node_modules/escallmatch/package.json" + }, + { + "path": "node_modules/escallmatch/node_modules/esprima/package.json" + }, + { + "path": "node_modules/espower/package.json" + }, + { + "path": "node_modules/espower/node_modules/source-map/package.json" + }, + { + "path": "node_modules/run-async/package.json" + }, + { + "path": "node_modules/@webassemblyjs/ast/package.json" + }, + { + "path": "node_modules/@webassemblyjs/wast-printer/package.json" + }, + { + "path": "node_modules/@webassemblyjs/helper-code-frame/package.json" + }, + { + "path": "node_modules/@webassemblyjs/wasm-opt/package.json" + }, + { + "path": "node_modules/@webassemblyjs/helper-wasm-bytecode/package.json" + }, + { + "path": "node_modules/@webassemblyjs/helper-wasm-section/package.json" + }, + { + "path": "node_modules/@webassemblyjs/wasm-parser/package.json" + }, + { + "path": "node_modules/@webassemblyjs/helper-api-error/package.json" + }, + { + "path": "node_modules/@webassemblyjs/helper-buffer/package.json" + }, + { + "path": "node_modules/@webassemblyjs/utf8/package.json" + }, + { + "path": "node_modules/@webassemblyjs/wast-parser/package.json" + }, + { + "path": "node_modules/@webassemblyjs/wasm-gen/package.json" + }, + { + "path": "node_modules/@webassemblyjs/leb128/package.json" + }, + { + "path": "node_modules/@webassemblyjs/helper-fsm/package.json" + }, + { + "path": "node_modules/@webassemblyjs/wasm-edit/package.json" + }, + { + "path": "node_modules/@webassemblyjs/ieee754/package.json" + }, + { + "path": "node_modules/@webassemblyjs/helper-module-context/package.json" + }, + { + "path": "node_modules/@webassemblyjs/floating-point-hex-parser/package.json" + }, + { + "path": "node_modules/validate-npm-package-license/package.json" + }, + { + "path": "node_modules/file-entry-cache/package.json" + }, + { + "path": "node_modules/meow/package.json" + }, + { + "path": "node_modules/meow/node_modules/camelcase/package.json" + }, + { + "path": "node_modules/meow/node_modules/yargs-parser/package.json" + }, + { + "path": "node_modules/cacache/package.json" + }, + { + "path": "node_modules/cacache/node_modules/rimraf/package.json" + }, + { + "path": "node_modules/concat-map/package.json" + }, + { + "path": "node_modules/infer-owner/package.json" + }, + { + "path": "node_modules/term-size/package.json" + }, + { + "path": "node_modules/xmlcreate/package.json" + }, + { + "path": "node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/yallist/package.json" + }, + { + "path": "node_modules/class-utils/package.json" + }, + { + "path": "node_modules/class-utils/node_modules/define-property/package.json" + }, + { + "path": "node_modules/json-bigint/package.json" + }, + { + "path": "node_modules/hmac-drbg/package.json" + }, + { + "path": "node_modules/resolve-from/package.json" + }, + { + "path": "node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/cliui/package.json" + }, + { + "path": "node_modules/cipher-base/package.json" + }, + { + "path": "node_modules/toidentifier/package.json" + }, + { + "path": "node_modules/balanced-match/package.json" + }, + { + "path": "node_modules/marked/package.json" + }, + { + "path": "node_modules/wrappy/package.json" + }, + { + "path": "node_modules/jsdoc-region-tag/package.json" + }, + { + "path": "node_modules/json-stable-stringify-without-jsonify/package.json" + }, + { + "path": "node_modules/glob-parent/package.json" + }, + { + "path": "node_modules/collection-visit/package.json" + }, + { + "path": "node_modules/xtend/package.json" + }, + { + "path": "node_modules/loader-utils/package.json" + }, + { + "path": "node_modules/assign-symbols/package.json" + }, + { + "path": "node_modules/assert/package.json" + }, + { + "path": "node_modules/assert/node_modules/util/package.json" + }, + { + "path": "node_modules/assert/node_modules/inherits/package.json" + }, + { + "path": "node_modules/is-arguments/package.json" + }, + { + "path": "node_modules/bn.js/package.json" + }, + { + "path": "node_modules/set-blocking/package.json" + }, + { + "path": "node_modules/fill-range/package.json" + }, + { + "path": "node_modules/from2/package.json" + }, + { + "path": "node_modules/object-visit/package.json" + }, + { + "path": "node_modules/istanbul-lib-report/package.json" + }, + { + "path": "node_modules/load-json-file/package.json" + }, + { + "path": "node_modules/mississippi/package.json" + }, + { + "path": "node_modules/mississippi/node_modules/through2/package.json" + }, + { + "path": "node_modules/has-value/package.json" + }, + { + "path": "node_modules/readdirp/package.json" + }, + { + "path": "node_modules/readdirp/node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/readdirp/node_modules/fill-range/package.json" + }, + { + "path": "node_modules/readdirp/node_modules/fill-range/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/readdirp/node_modules/is-number/package.json" + }, + { + "path": "node_modules/readdirp/node_modules/is-number/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/readdirp/node_modules/micromatch/index.js" + }, + { + "path": "node_modules/readdirp/node_modules/micromatch/README.md" + }, + { + "path": "node_modules/readdirp/node_modules/micromatch/package.json" + }, + { + "path": "node_modules/readdirp/node_modules/micromatch/LICENSE" + }, + { + "path": "node_modules/readdirp/node_modules/micromatch/CHANGELOG.md" + }, + { + "path": "node_modules/readdirp/node_modules/micromatch/lib/parsers.js" + }, + { + "path": "node_modules/readdirp/node_modules/micromatch/lib/.DS_Store" + }, + { + "path": "node_modules/readdirp/node_modules/micromatch/lib/compilers.js" + }, + { + "path": "node_modules/readdirp/node_modules/micromatch/lib/utils.js" + }, + { + "path": "node_modules/readdirp/node_modules/micromatch/lib/cache.js" + }, + { + "path": "node_modules/readdirp/node_modules/braces/package.json" + }, + { + "path": "node_modules/readdirp/node_modules/braces/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/readdirp/node_modules/to-regex-range/package.json" + }, + { + "path": "node_modules/is-number/package.json" + }, + { + "path": "node_modules/ansi-align/package.json" + }, + { + "path": "node_modules/ansi-align/node_modules/emoji-regex/package.json" + }, + { + "path": "node_modules/ansi-align/node_modules/string-width/package.json" + }, + { + "path": "node_modules/ansi-align/node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/ansi-align/node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json" + }, + { + "path": "node_modules/atob/package.json" + }, + { + "path": "node_modules/duplexer3/package.json" + }, + { + "path": "node_modules/esprima/package.json" + }, + { + "path": "node_modules/is-stream-ended/package.json" + }, + { + "path": "node_modules/minimatch/package.json" + }, + { + "path": "node_modules/crypto-random-string/package.json" + }, + { + "path": "node_modules/growl/package.json" + }, + { + "path": "node_modules/string.prototype.trimleft/package.json" + }, + { + "path": "node_modules/istanbul-lib-coverage/package.json" + }, + { + "path": "node_modules/global-prefix/package.json" + }, + { + "path": "node_modules/global-prefix/node_modules/which/package.json" + }, + { + "path": "node_modules/normalize-package-data/package.json" + }, + { + "path": "node_modules/normalize-package-data/node_modules/semver/package.json" + }, + { + "path": "node_modules/fast-text-encoding/package.json" + }, + { + "path": "node_modules/tar/package.json" + }, + { + "path": "node_modules/tar/node_modules/yallist/package.json" + }, + { + "path": "node_modules/cyclist/package.json" + }, + { + "path": "node_modules/server-destroy/package.json" + }, + { + "path": "node_modules/remove-trailing-separator/package.json" + }, + { + "path": "node_modules/prelude-ls/package.json" + }, + { + "path": "node_modules/d/package.json" + }, + { + "path": "node_modules/protobufjs/package.json" + }, + { + "path": "node_modules/protobufjs/node_modules/@types/node/package.json" + }, + { + "path": "node_modules/domhandler/package.json" + }, + { + "path": "node_modules/pkg-dir/package.json" + }, + { + "path": "node_modules/pkg-dir/node_modules/p-locate/package.json" + }, + { + "path": "node_modules/pkg-dir/node_modules/locate-path/package.json" + }, + { + "path": "node_modules/pkg-dir/node_modules/find-up/package.json" + }, + { + "path": "node_modules/pkg-dir/node_modules/path-exists/package.json" + }, + { + "path": "node_modules/ansi-escapes/package.json" + }, + { + "path": "node_modules/power-assert-renderer-base/package.json" + }, + { + "path": "node_modules/boolbase/package.json" + }, + { + "path": "node_modules/aproba/package.json" + }, + { + "path": "node_modules/fragment-cache/package.json" + }, + { + "path": "node_modules/indent-string/package.json" + }, + { + "path": "node_modules/lodash/package.json" + }, + { + "path": "node_modules/taffydb/package.json" + }, + { + "path": "node_modules/extend/package.json" + }, + { + "path": "node_modules/is-yarn-global/package.json" + }, + { + "path": "node_modules/dom-serializer/package.json" + }, + { + "path": "node_modules/end-of-stream/package.json" + }, + { + "path": "node_modules/log-symbols/package.json" + }, + { + "path": "node_modules/is-callable/package.json" + }, + { + "path": "node_modules/es5-ext/package.json" + }, + { + "path": "node_modules/https-browserify/package.json" + }, + { + "path": "node_modules/stringifier/package.json" + }, + { + "path": "node_modules/source-list-map/package.json" + }, + { + "path": "node_modules/vm-browserify/package.json" + }, + { + "path": "node_modules/es6-weak-map/package.json" + }, + { + "path": "node_modules/camelcase-keys/package.json" + }, + { + "path": "node_modules/camelcase-keys/node_modules/camelcase/package.json" + }, + { + "path": "node_modules/browserify-zlib/package.json" + }, + { + "path": "node_modules/pascalcase/package.json" + }, + { + "path": "node_modules/decompress-response/package.json" + }, + { + "path": "node_modules/set-value/package.json" + }, + { + "path": "node_modules/set-value/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/js-yaml/package.json" + }, + { + "path": "node_modules/cli-boxes/package.json" + }, + { + "path": "node_modules/is-obj/package.json" + }, + { + "path": "node_modules/is-typedarray/package.json" + }, + { + "path": "node_modules/is-binary-path/package.json" + }, + { + "path": "node_modules/registry-auth-token/package.json" + }, + { + "path": "node_modules/safe-regex/package.json" + }, + { + "path": "node_modules/decode-uri-component/package.json" + }, + { + "path": "node_modules/read-pkg-up/package.json" + }, + { + "path": "node_modules/read-pkg-up/node_modules/p-locate/package.json" + }, + { + "path": "node_modules/read-pkg-up/node_modules/locate-path/package.json" + }, + { + "path": "node_modules/read-pkg-up/node_modules/p-try/package.json" + }, + { + "path": "node_modules/read-pkg-up/node_modules/p-limit/package.json" + }, + { + "path": "node_modules/read-pkg-up/node_modules/find-up/package.json" + }, + { + "path": "node_modules/read-pkg-up/node_modules/path-exists/package.json" + }, + { + "path": "node_modules/buffer-equal-constant-time/package.json" + }, + { + "path": "node_modules/@bcoe/v8-coverage/package.json" + }, + { + "path": "node_modules/eslint-scope/package.json" + }, + { + "path": "node_modules/stream-shift/package.json" + }, + { + "path": "node_modules/union-value/package.json" + }, + { + "path": "node_modules/invert-kv/package.json" + }, + { + "path": "node_modules/snapdragon-node/package.json" + }, + { + "path": "node_modules/snapdragon-node/node_modules/define-property/package.json" + }, + { + "path": "node_modules/snapdragon-node/node_modules/is-data-descriptor/package.json" + }, + { + "path": "node_modules/snapdragon-node/node_modules/is-accessor-descriptor/package.json" + }, + { + "path": "node_modules/snapdragon-node/node_modules/is-descriptor/package.json" + }, + { + "path": "node_modules/is-extglob/package.json" + }, + { + "path": "node_modules/typedarray-to-buffer/index.js" + }, + { + "path": "node_modules/typedarray-to-buffer/README.md" + }, + { + "path": "node_modules/typedarray-to-buffer/.airtap.yml" + }, + { + "path": "node_modules/typedarray-to-buffer/.travis.yml" + }, + { + "path": "node_modules/typedarray-to-buffer/package.json" + }, + { + "path": "node_modules/typedarray-to-buffer/LICENSE" + }, + { + "path": "node_modules/typedarray-to-buffer/test/basic.js" + }, + { + "path": "node_modules/restore-cursor/package.json" + }, + { + "path": "node_modules/pbkdf2/package.json" + }, + { + "path": "node_modules/events/package.json" + }, + { + "path": "node_modules/map-cache/package.json" + }, + { + "path": "node_modules/mimic-response/package.json" + }, + { + "path": "node_modules/normalize-url/package.json" + }, + { + "path": "node_modules/kind-of/package.json" + }, + { + "path": "node_modules/fresh/package.json" + }, + { + "path": "node_modules/interpret/package.json" + }, + { + "path": "node_modules/imurmurhash/package.json" + }, + { + "path": "node_modules/indexof/package.json" + }, + { + "path": "node_modules/arr-flatten/package.json" + }, + { + "path": "node_modules/ajv/package.json" + }, + { + "path": "node_modules/is-path-inside/package.json" + }, + { + "path": "node_modules/timers-browserify/package.json" + }, + { + "path": "node_modules/import-lazy/package.json" + }, + { + "path": "node_modules/json-schema-traverse/package.json" + }, + { + "path": "node_modules/ncp/package.json" + }, + { + "path": "node_modules/rxjs/package.json" + }, + { + "path": "node_modules/p-locate/package.json" + }, + { + "path": "node_modules/figures/package.json" + }, + { + "path": "node_modules/os-browserify/package.json" + }, + { + "path": "node_modules/underscore/package.json" + }, + { + "path": "node_modules/finalhandler/package.json" + }, + { + "path": "node_modules/finalhandler/node_modules/debug/package.json" + }, + { + "path": "node_modules/finalhandler/node_modules/ms/package.json" + }, + { + "path": "node_modules/ignore/package.json" + }, + { + "path": "node_modules/path-is-absolute/package.json" + }, + { + "path": "node_modules/arr-diff/package.json" + }, + { + "path": "node_modules/graceful-fs/package.json" + }, + { + "path": "node_modules/is-extendable/package.json" + }, + { + "path": "node_modules/currently-unhandled/package.json" + }, + { + "path": "node_modules/minizlib/package.json" + }, + { + "path": "node_modules/minizlib/node_modules/yallist/package.json" + }, + { + "path": "node_modules/source-map-resolve/package.json" + }, + { + "path": "node_modules/google-gax/package.json" + }, + { + "path": "node_modules/browserify-aes/package.json" + }, + { + "path": "node_modules/commondir/package.json" + }, + { + "path": "node_modules/onetime/package.json" + }, + { + "path": "node_modules/lcid/package.json" + }, + { + "path": "node_modules/path-key/package.json" + }, + { + "path": "node_modules/core-util-is/package.json" + }, + { + "path": "node_modules/array-filter/package.json" + }, + { + "path": "node_modules/prepend-http/package.json" + }, + { + "path": "node_modules/console-browserify/package.json" + }, + { + "path": "node_modules/write/package.json" + }, + { + "path": "node_modules/duplexify/package.json" + }, + { + "path": "node_modules/camelcase/package.json" + }, + { + "path": "node_modules/tty-browserify/package.json" + }, + { + "path": "node_modules/error-ex/package.json" + }, + { + "path": "node_modules/empower-assert/package.json" + }, + { + "path": "node_modules/micromatch/package.json" + }, + { + "path": "node_modules/boxen/package.json" + }, + { + "path": "node_modules/boxen/node_modules/emoji-regex/package.json" + }, + { + "path": "node_modules/boxen/node_modules/string-width/package.json" + }, + { + "path": "node_modules/boxen/node_modules/type-fest/package.json" + }, + { + "path": "node_modules/boxen/node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/boxen/node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/boxen/node_modules/is-fullwidth-code-point/package.json" + }, + { + "path": "node_modules/repeat-element/package.json" + }, + { + "path": "node_modules/querystring/package.json" + }, + { + "path": "node_modules/node-environment-flags/package.json" + }, + { + "path": "node_modules/node-environment-flags/node_modules/semver/package.json" + }, + { + "path": "node_modules/c8/package.json" + }, + { + "path": "node_modules/gcp-metadata/package.json" + }, + { + "path": "node_modules/json-buffer/package.json" + }, + { + "path": "node_modules/stream-each/package.json" + }, + { + "path": "node_modules/mkdirp/package.json" + }, + { + "path": "node_modules/bluebird/package.json" + }, + { + "path": "node_modules/null-loader/package.json" + }, + { + "path": "node_modules/big.js/package.json" + }, + { + "path": "node_modules/shebang-command/package.json" + }, + { + "path": "node_modules/serve-static/package.json" + }, + { + "path": "node_modules/object-copy/package.json" + }, + { + "path": "node_modules/object-copy/node_modules/define-property/package.json" + }, + { + "path": "node_modules/object-copy/node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/object-copy/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/path-parse/package.json" + }, + { + "path": "node_modules/mime/package.json" + }, + { + "path": "node_modules/terser/package.json" + }, + { + "path": "node_modules/terser/node_modules/source-map-support/package.json" + }, + { + "path": "node_modules/terser/node_modules/source-map/package.json" + }, + { + "path": "node_modules/emojis-list/package.json" + }, + { + "path": "node_modules/yargs-unparser/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/color-name/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/emoji-regex/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/string-width/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/cliui/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/p-locate/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/locate-path/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/ansi-styles/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/is-fullwidth-code-point/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/find-up/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/wrap-ansi/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/path-exists/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/yargs/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/color-convert/package.json" + }, + { + "path": "node_modules/yargs-unparser/node_modules/yargs-parser/package.json" + }, + { + "path": "node_modules/minimalistic-crypto-utils/package.json" + }, + { + "path": "node_modules/lines-and-columns/package.json" + }, + { + "path": "node_modules/minimalistic-assert/package.json" + }, + { + "path": "node_modules/is-url/package.json" + }, + { + "path": "node_modules/is-data-descriptor/package.json" + }, + { + "path": "node_modules/is-data-descriptor/node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/is-data-descriptor/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/chalk/package.json" + }, + { + "path": "node_modules/chalk/node_modules/color-name/package.json" + }, + { + "path": "node_modules/chalk/node_modules/has-flag/package.json" + }, + { + "path": "node_modules/chalk/node_modules/ansi-styles/package.json" + }, + { + "path": "node_modules/chalk/node_modules/supports-color/package.json" + }, + { + "path": "node_modules/chalk/node_modules/color-convert/package.json" + }, + { + "path": "node_modules/locate-path/package.json" + }, + { + "path": "node_modules/spdx-expression-parse/package.json" + }, + { + "path": "node_modules/power-assert-util-string-width/package.json" + }, + { + "path": "node_modules/esquery/package.json" + }, + { + "path": "node_modules/to-readable-stream/package.json" + }, + { + "path": "node_modules/jsdoc-fresh/package.json" + }, + { + "path": "node_modules/jsdoc-fresh/node_modules/taffydb/package.json" + }, + { + "path": "node_modules/espower-location-detector/package.json" + }, + { + "path": "node_modules/espower-location-detector/node_modules/source-map/package.json" + }, + { + "path": "node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/is-arrayish/package.json" + }, + { + "path": "node_modules/prettier-linter-helpers/package.json" + }, + { + "path": "node_modules/chardet/package.json" + }, + { + "path": "node_modules/amdefine/package.json" + }, + { + "path": "node_modules/http-cache-semantics/package.json" + }, + { + "path": "node_modules/concat-stream/package.json" + }, + { + "path": "node_modules/has-flag/package.json" + }, + { + "path": "node_modules/cheerio/package.json" + }, + { + "path": "node_modules/domelementtype/package.json" + }, + { + "path": "node_modules/npm-normalize-package-bin/package.json" + }, + { + "path": "node_modules/diffie-hellman/package.json" + }, + { + "path": "node_modules/@szmarczak/http-timer/package.json" + }, + { + "path": "node_modules/tmp/package.json" + }, + { + "path": "node_modules/entities/package.json" + }, + { + "path": "node_modules/execa/package.json" + }, + { + "path": "node_modules/execa/node_modules/lru-cache/package.json" + }, + { + "path": "node_modules/execa/node_modules/yallist/package.json" + }, + { + "path": "node_modules/execa/node_modules/shebang-command/package.json" + }, + { + "path": "node_modules/execa/node_modules/is-stream/package.json" + }, + { + "path": "node_modules/execa/node_modules/which/package.json" + }, + { + "path": "node_modules/execa/node_modules/shebang-regex/package.json" + }, + { + "path": "node_modules/execa/node_modules/cross-spawn/package.json" + }, + { + "path": "node_modules/is-accessor-descriptor/package.json" + }, + { + "path": "node_modules/is-accessor-descriptor/node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/is-accessor-descriptor/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/strip-bom/package.json" + }, + { + "path": "node_modules/argparse/package.json" + }, + { + "path": "node_modules/has/package.json" + }, + { + "path": "node_modules/ee-first/package.json" + }, + { + "path": "node_modules/serialize-javascript/package.json" + }, + { + "path": "node_modules/sha.js/sha512.js" + }, + { + "path": "node_modules/sha.js/bin.js" + }, + { + "path": "node_modules/sha.js/index.js" + }, + { + "path": "node_modules/sha.js/README.md" + }, + { + "path": "node_modules/sha.js/sha.js" + }, + { + "path": "node_modules/sha.js/sha256.js" + }, + { + "path": "node_modules/sha.js/hash.js" + }, + { + "path": "node_modules/sha.js/.travis.yml" + }, + { + "path": "node_modules/sha.js/package.json" + }, + { + "path": "node_modules/sha.js/sha384.js" + }, + { + "path": "node_modules/sha.js/sha1.js" + }, + { + "path": "node_modules/sha.js/LICENSE" + }, + { + "path": "node_modules/sha.js/sha224.js" + }, + { + "path": "node_modules/sha.js/test/test.js" + }, + { + "path": "node_modules/sha.js/test/hash.js" + }, + { + "path": "node_modules/sha.js/test/vectors.js" + }, + { + "path": "node_modules/object-inspect/package.json" + }, + { + "path": "node_modules/deep-equal/package.json" + }, + { + "path": "node_modules/create-hash/package.json" + }, + { + "path": "node_modules/table/package.json" + }, + { + "path": "node_modules/table/node_modules/emoji-regex/package.json" + }, + { + "path": "node_modules/table/node_modules/string-width/package.json" + }, + { + "path": "node_modules/table/node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/table/node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/table/node_modules/is-fullwidth-code-point/package.json" + }, + { + "path": "node_modules/spdx-correct/package.json" + }, + { + "path": "node_modules/get-stream/package.json" + }, + { + "path": "node_modules/expand-tilde/package.json" + }, + { + "path": "node_modules/chownr/package.json" + }, + { + "path": "node_modules/power-assert/package.json" + }, + { + "path": "node_modules/expand-brackets/package.json" + }, + { + "path": "node_modules/expand-brackets/node_modules/define-property/package.json" + }, + { + "path": "node_modules/expand-brackets/node_modules/debug/package.json" + }, + { + "path": "node_modules/expand-brackets/node_modules/ms/package.json" + }, + { + "path": "node_modules/expand-brackets/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/statuses/package.json" + }, + { + "path": "node_modules/browserify-rsa/package.json" + }, + { + "path": "node_modules/@istanbuljs/schema/package.json" + }, + { + "path": "node_modules/es6-set/package.json" + }, + { + "path": "node_modules/es6-set/node_modules/es6-symbol/package.json" + }, + { + "path": "node_modules/parse-passwd/package.json" + }, + { + "path": "node_modules/istanbul-reports/package.json" + }, + { + "path": "node_modules/browserify-sign/package.json" + }, + { + "path": "node_modules/enhanced-resolve/package.json" + }, + { + "path": "node_modules/@grpc/grpc-js/package.json" + }, + { + "path": "node_modules/@grpc/grpc-js/node_modules/semver/package.json" + }, + { + "path": "node_modules/@grpc/proto-loader/package.json" + }, + { + "path": "node_modules/lowercase-keys/package.json" + }, + { + "path": "node_modules/etag/package.json" + }, + { + "path": "node_modules/y18n/package.json" + }, + { + "path": "node_modules/diff-match-patch/package.json" + }, + { + "path": "node_modules/es6-iterator/package.json" + }, + { + "path": "node_modules/eslint-plugin-node/package.json" + }, + { + "path": "node_modules/eslint-plugin-node/node_modules/ignore/package.json" + }, + { + "path": "node_modules/eslint-plugin-node/node_modules/semver/package.json" + }, + { + "path": "node_modules/eslint-plugin-node/node_modules/eslint-utils/package.json" + }, + { + "path": "node_modules/natural-compare/package.json" + }, + { + "path": "node_modules/event-target-shim/package.json" + }, + { + "path": "node_modules/url/package.json" + }, + { + "path": "node_modules/url/node_modules/punycode/package.json" + }, + { + "path": "node_modules/pako/package.json" + }, + { + "path": "node_modules/arrify/package.json" + }, + { + "path": "node_modules/widest-line/package.json" + }, + { + "path": "node_modules/widest-line/node_modules/string-width/package.json" + }, + { + "path": "node_modules/widest-line/node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/widest-line/node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/widest-line/node_modules/is-fullwidth-code-point/package.json" + }, + { + "path": "node_modules/ignore-walk/package.json" + }, + { + "path": "node_modules/errno/package.json" + }, + { + "path": "node_modules/util-deprecate/package.json" + }, + { + "path": "node_modules/function-bind/package.json" + }, + { + "path": "node_modules/object-is/package.json" + }, + { + "path": "node_modules/@types/color-name/package.json" + }, + { + "path": "node_modules/@types/node/package.json" + }, + { + "path": "node_modules/@types/istanbul-lib-coverage/package.json" + }, + { + "path": "node_modules/@types/normalize-package-data/package.json" + }, + { + "path": "node_modules/@types/is-windows/package.json" + }, + { + "path": "node_modules/@types/mocha/package.json" + }, + { + "path": "node_modules/@types/minimist/package.json" + }, + { + "path": "node_modules/@types/fs-extra/package.json" + }, + { + "path": "node_modules/@types/fs-extra/node_modules/@types/node/package.json" + }, + { + "path": "node_modules/@types/long/package.json" + }, + { + "path": "node_modules/is-windows/package.json" + }, + { + "path": "node_modules/levn/package.json" + }, + { + "path": "node_modules/pseudomap/package.json" + }, + { + "path": "node_modules/global-dirs/package.json" + }, + { + "path": "node_modules/picomatch/package.json" + }, + { + "path": "node_modules/power-assert-renderer-diagram/package.json" + }, + { + "path": "node_modules/webpack-cli/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/v8-compile-cache/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/color-name/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/emoji-regex/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/string-width/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/cliui/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/p-locate/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/path-key/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/shebang-command/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/locate-path/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/has-flag/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/enhanced-resolve/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/ansi-styles/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/which/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/shebang-regex/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/semver/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/supports-color/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/is-fullwidth-code-point/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/find-up/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/cross-spawn/index.js" + }, + { + "path": "node_modules/webpack-cli/node_modules/cross-spawn/README.md" + }, + { + "path": "node_modules/webpack-cli/node_modules/cross-spawn/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/cross-spawn/LICENSE" + }, + { + "path": "node_modules/webpack-cli/node_modules/cross-spawn/CHANGELOG.md" + }, + { + "path": "node_modules/webpack-cli/node_modules/cross-spawn/lib/parse.js" + }, + { + "path": "node_modules/webpack-cli/node_modules/cross-spawn/lib/enoent.js" + }, + { + "path": "node_modules/webpack-cli/node_modules/cross-spawn/lib/util/escape.js" + }, + { + "path": "node_modules/webpack-cli/node_modules/cross-spawn/lib/util/resolveCommand.js" + }, + { + "path": "node_modules/webpack-cli/node_modules/cross-spawn/lib/util/readShebang.js" + }, + { + "path": "node_modules/webpack-cli/node_modules/wrap-ansi/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/path-exists/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/yargs/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/color-convert/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/yargs-parser/package.json" + }, + { + "path": "node_modules/webpack-cli/node_modules/memory-fs/package.json" + }, + { + "path": "node_modules/is-stream/package.json" + }, + { + "path": "node_modules/component-emitter/package.json" + }, + { + "path": "node_modules/es6-symbol/package.json" + }, + { + "path": "node_modules/parse-json/package.json" + }, + { + "path": "node_modules/xdg-basedir/package.json" + }, + { + "path": "node_modules/spdx-license-ids/package.json" + }, + { + "path": "node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/extend-shallow/node_modules/is-extendable/package.json" + }, + { + "path": "node_modules/browserify-cipher/package.json" + }, + { + "path": "node_modules/ssri/package.json" + }, + { + "path": "node_modules/google-auth-library/package.json" + }, + { + "path": "node_modules/webpack/package.json" + }, + { + "path": "node_modules/webpack/node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/webpack/node_modules/fill-range/package.json" + }, + { + "path": "node_modules/webpack/node_modules/fill-range/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/webpack/node_modules/is-number/package.json" + }, + { + "path": "node_modules/webpack/node_modules/is-number/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/webpack/node_modules/eslint-scope/package.json" + }, + { + "path": "node_modules/webpack/node_modules/micromatch/index.js" + }, + { + "path": "node_modules/webpack/node_modules/micromatch/README.md" + }, + { + "path": "node_modules/webpack/node_modules/micromatch/package.json" + }, + { + "path": "node_modules/webpack/node_modules/micromatch/LICENSE" + }, + { + "path": "node_modules/webpack/node_modules/micromatch/CHANGELOG.md" + }, + { + "path": "node_modules/webpack/node_modules/micromatch/lib/parsers.js" + }, + { + "path": "node_modules/webpack/node_modules/micromatch/lib/.DS_Store" + }, + { + "path": "node_modules/webpack/node_modules/micromatch/lib/compilers.js" + }, + { + "path": "node_modules/webpack/node_modules/micromatch/lib/utils.js" + }, + { + "path": "node_modules/webpack/node_modules/micromatch/lib/cache.js" + }, + { + "path": "node_modules/webpack/node_modules/acorn/package.json" + }, + { + "path": "node_modules/webpack/node_modules/braces/package.json" + }, + { + "path": "node_modules/webpack/node_modules/braces/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/webpack/node_modules/to-regex-range/package.json" + }, + { + "path": "node_modules/webpack/node_modules/memory-fs/package.json" + }, + { + "path": "node_modules/split-string/package.json" + }, + { + "path": "node_modules/brace-expansion/package.json" + }, + { + "path": "node_modules/posix-character-classes/package.json" + }, + { + "path": "node_modules/builtin-modules/package.json" + }, + { + "path": "node_modules/static-extend/package.json" + }, + { + "path": "node_modules/static-extend/node_modules/define-property/package.json" + }, + { + "path": "node_modules/process/package.json" + }, + { + "path": "node_modules/tslint/package.json" + }, + { + "path": "node_modules/tslint/node_modules/semver/package.json" + }, + { + "path": "node_modules/type-name/package.json" + }, + { + "path": "node_modules/define-properties/package.json" + }, + { + "path": "node_modules/universal-deep-strict-equal/package.json" + }, + { + "path": "node_modules/jws/package.json" + }, + { + "path": "node_modules/minipass/package.json" + }, + { + "path": "node_modules/minipass/node_modules/yallist/package.json" + }, + { + "path": "node_modules/nth-check/package.json" + }, + { + "path": "node_modules/@xtuc/ieee754/package.json" + }, + { + "path": "node_modules/@xtuc/long/package.json" + }, + { + "path": "node_modules/p-defer/package.json" + }, + { + "path": "node_modules/empower/package.json" + }, + { + "path": "node_modules/nanomatch/package.json" + }, + { + "path": "node_modules/send/package.json" + }, + { + "path": "node_modules/send/node_modules/debug/package.json" + }, + { + "path": "node_modules/send/node_modules/debug/node_modules/ms/package.json" + }, + { + "path": "node_modules/send/node_modules/ms/package.json" + }, + { + "path": "node_modules/send/node_modules/mime/package.json" + }, + { + "path": "node_modules/require-directory/package.json" + }, + { + "path": "node_modules/object.assign/package.json" + }, + { + "path": "node_modules/is-npm/package.json" + }, + { + "path": "node_modules/fs-minipass/package.json" + }, + { + "path": "node_modules/browserify-des/package.json" + }, + { + "path": "node_modules/min-indent/package.json" + }, + { + "path": "node_modules/functional-red-black-tree/package.json" + }, + { + "path": "node_modules/read-pkg/package.json" + }, + { + "path": "node_modules/fs-write-stream-atomic/package.json" + }, + { + "path": "node_modules/registry-url/package.json" + }, + { + "path": "node_modules/is-regex/package.json" + }, + { + "path": "node_modules/es-abstract/package.json" + }, + { + "path": "node_modules/querystring-es3/package.json" + }, + { + "path": "node_modules/parent-module/package.json" + }, + { + "path": "node_modules/create-ecdh/package.json" + }, + { + "path": "node_modules/map-age-cleaner/package.json" + }, + { + "path": "node_modules/hash.js/package.json" + }, + { + "path": "node_modules/signal-exit/package.json" + }, + { + "path": "node_modules/import-fresh/package.json" + }, + { + "path": "node_modules/hash-base/package.json" + }, + { + "path": "node_modules/keyv/package.json" + }, + { + "path": "node_modules/ret/package.json" + }, + { + "path": "node_modules/md5.js/package.json" + }, + { + "path": "node_modules/estraverse/package.json" + }, + { + "path": "node_modules/fast-deep-equal/package.json" + }, + { + "path": "node_modules/mute-stream/package.json" + }, + { + "path": "node_modules/power-assert-context-traversal/package.json" + }, + { + "path": "node_modules/rimraf/package.json" + }, + { + "path": "node_modules/is-installed-globally/package.json" + }, + { + "path": "node_modules/get-stdin/package.json" + }, + { + "path": "node_modules/make-dir/package.json" + }, + { + "path": "node_modules/make-dir/node_modules/semver/package.json" + }, + { + "path": "node_modules/es6-promise/package.json" + }, + { + "path": "node_modules/os-tmpdir/package.json" + }, + { + "path": "node_modules/run-queue/package.json" + }, + { + "path": "node_modules/anymatch/package.json" + }, + { + "path": "node_modules/anymatch/node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/anymatch/node_modules/fill-range/package.json" + }, + { + "path": "node_modules/anymatch/node_modules/fill-range/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/anymatch/node_modules/is-number/package.json" + }, + { + "path": "node_modules/anymatch/node_modules/is-number/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/anymatch/node_modules/micromatch/index.js" + }, + { + "path": "node_modules/anymatch/node_modules/micromatch/README.md" + }, + { + "path": "node_modules/anymatch/node_modules/micromatch/package.json" + }, + { + "path": "node_modules/anymatch/node_modules/micromatch/LICENSE" + }, + { + "path": "node_modules/anymatch/node_modules/micromatch/CHANGELOG.md" + }, + { + "path": "node_modules/anymatch/node_modules/micromatch/lib/parsers.js" + }, + { + "path": "node_modules/anymatch/node_modules/micromatch/lib/.DS_Store" + }, + { + "path": "node_modules/anymatch/node_modules/micromatch/lib/compilers.js" + }, + { + "path": "node_modules/anymatch/node_modules/micromatch/lib/utils.js" + }, + { + "path": "node_modules/anymatch/node_modules/micromatch/lib/cache.js" + }, + { + "path": "node_modules/anymatch/node_modules/braces/package.json" + }, + { + "path": "node_modules/anymatch/node_modules/braces/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/anymatch/node_modules/to-regex-range/package.json" + }, + { + "path": "node_modules/anymatch/node_modules/normalize-path/package.json" + }, + { + "path": "node_modules/retry-request/package.json" + }, + { + "path": "node_modules/retry-request/node_modules/debug/package.json" + }, + { + "path": "node_modules/cli-cursor/package.json" + }, + { + "path": "node_modules/ext/package.json" + }, + { + "path": "node_modules/ext/node_modules/type/package.json" + }, + { + "path": "node_modules/is-symbol/package.json" + }, + { + "path": "node_modules/css-what/package.json" + }, + { + "path": "node_modules/punycode/package.json" + }, + { + "path": "node_modules/os-locale/package.json" + }, + { + "path": "node_modules/os-locale/node_modules/path-key/package.json" + }, + { + "path": "node_modules/os-locale/node_modules/shebang-command/package.json" + }, + { + "path": "node_modules/os-locale/node_modules/execa/package.json" + }, + { + "path": "node_modules/os-locale/node_modules/get-stream/package.json" + }, + { + "path": "node_modules/os-locale/node_modules/is-stream/package.json" + }, + { + "path": "node_modules/os-locale/node_modules/which/package.json" + }, + { + "path": "node_modules/os-locale/node_modules/shebang-regex/package.json" + }, + { + "path": "node_modules/os-locale/node_modules/semver/package.json" + }, + { + "path": "node_modules/os-locale/node_modules/cross-spawn/index.js" + }, + { + "path": "node_modules/os-locale/node_modules/cross-spawn/README.md" + }, + { + "path": "node_modules/os-locale/node_modules/cross-spawn/package.json" + }, + { + "path": "node_modules/os-locale/node_modules/cross-spawn/LICENSE" + }, + { + "path": "node_modules/os-locale/node_modules/cross-spawn/CHANGELOG.md" + }, + { + "path": "node_modules/os-locale/node_modules/cross-spawn/lib/parse.js" + }, + { + "path": "node_modules/os-locale/node_modules/cross-spawn/lib/enoent.js" + }, + { + "path": "node_modules/os-locale/node_modules/cross-spawn/lib/util/escape.js" + }, + { + "path": "node_modules/os-locale/node_modules/cross-spawn/lib/util/resolveCommand.js" + }, + { + "path": "node_modules/os-locale/node_modules/cross-spawn/lib/util/readShebang.js" + }, + { + "path": "node_modules/setprototypeof/package.json" + }, + { + "path": "node_modules/mixin-deep/package.json" + }, + { + "path": "node_modules/mixin-deep/node_modules/is-extendable/package.json" + }, + { + "path": "node_modules/word-wrap/package.json" + }, + { + "path": "node_modules/foreground-child/package.json" + }, + { + "path": "node_modules/has-values/package.json" + }, + { + "path": "node_modules/has-values/node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/has-values/node_modules/is-number/package.json" + }, + { + "path": "node_modules/has-values/node_modules/is-number/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/has-values/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/pumpify/package.json" + }, + { + "path": "node_modules/pumpify/node_modules/pump/package.json" + }, + { + "path": "node_modules/es6-map/package.json" + }, + { + "path": "node_modules/detect-file/package.json" + }, + { + "path": "node_modules/source-map-url/package.json" + }, + { + "path": "node_modules/call-signature/package.json" + }, + { + "path": "node_modules/package-json/package.json" + }, + { + "path": "node_modules/package-json/node_modules/semver/package.json" + }, + { + "path": "node_modules/css-select/package.json" + }, + { + "path": "node_modules/path-is-inside/package.json" + }, + { + "path": "node_modules/eslint-plugin-prettier/package.json" + }, + { + "path": "node_modules/p-finally/package.json" + }, + { + "path": "node_modules/inquirer/package.json" + }, + { + "path": "node_modules/inquirer/node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/inquirer/node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/acorn-jsx/package.json" + }, + { + "path": "node_modules/binary-extensions/package.json" + }, + { + "path": "node_modules/glob/package.json" + }, + { + "path": "node_modules/mocha/package.json" + }, + { + "path": "node_modules/mocha/node_modules/diff/package.json" + }, + { + "path": "node_modules/mocha/node_modules/color-name/package.json" + }, + { + "path": "node_modules/mocha/node_modules/emoji-regex/package.json" + }, + { + "path": "node_modules/mocha/node_modules/ms/package.json" + }, + { + "path": "node_modules/mocha/node_modules/string-width/package.json" + }, + { + "path": "node_modules/mocha/node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/mocha/node_modules/cliui/package.json" + }, + { + "path": "node_modules/mocha/node_modules/p-locate/package.json" + }, + { + "path": "node_modules/mocha/node_modules/locate-path/package.json" + }, + { + "path": "node_modules/mocha/node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/mocha/node_modules/has-flag/package.json" + }, + { + "path": "node_modules/mocha/node_modules/glob/package.json" + }, + { + "path": "node_modules/mocha/node_modules/ansi-styles/package.json" + }, + { + "path": "node_modules/mocha/node_modules/which/package.json" + }, + { + "path": "node_modules/mocha/node_modules/supports-color/package.json" + }, + { + "path": "node_modules/mocha/node_modules/is-fullwidth-code-point/package.json" + }, + { + "path": "node_modules/mocha/node_modules/find-up/package.json" + }, + { + "path": "node_modules/mocha/node_modules/wrap-ansi/package.json" + }, + { + "path": "node_modules/mocha/node_modules/path-exists/package.json" + }, + { + "path": "node_modules/mocha/node_modules/yargs/package.json" + }, + { + "path": "node_modules/mocha/node_modules/color-convert/package.json" + }, + { + "path": "node_modules/mocha/node_modules/strip-json-comments/package.json" + }, + { + "path": "node_modules/mocha/node_modules/yargs-parser/package.json" + }, + { + "path": "node_modules/loud-rejection/package.json" + }, + { + "path": "node_modules/event-emitter/package.json" + }, + { + "path": "node_modules/@protobufjs/codegen/package.json" + }, + { + "path": "node_modules/@protobufjs/base64/package.json" + }, + { + "path": "node_modules/@protobufjs/utf8/package.json" + }, + { + "path": "node_modules/@protobufjs/pool/package.json" + }, + { + "path": "node_modules/@protobufjs/float/package.json" + }, + { + "path": "node_modules/@protobufjs/fetch/package.json" + }, + { + "path": "node_modules/@protobufjs/path/package.json" + }, + { + "path": "node_modules/@protobufjs/aspromise/package.json" + }, + { + "path": "node_modules/@protobufjs/inquire/package.json" + }, + { + "path": "node_modules/@protobufjs/eventemitter/package.json" + }, + { + "path": "node_modules/prr/package.json" + }, + { + "path": "node_modules/node-forge/package.json" + }, + { + "path": "node_modules/lodash.has/package.json" + }, + { + "path": "node_modules/global-modules/package.json" + }, + { + "path": "node_modules/global-modules/node_modules/global-prefix/package.json" + }, + { + "path": "node_modules/global-modules/node_modules/which/package.json" + }, + { + "path": "node_modules/des.js/package.json" + }, + { + "path": "node_modules/source-map-support/package.json" + }, + { + "path": "node_modules/source-map-support/node_modules/source-map/package.json" + }, + { + "path": "node_modules/schema-utils/package.json" + }, + { + "path": "node_modules/object-assign/package.json" + }, + { + "path": "node_modules/has-symbols/package.json" + }, + { + "path": "node_modules/find-cache-dir/package.json" + }, + { + "path": "node_modules/find-cache-dir/node_modules/make-dir/package.json" + }, + { + "path": "node_modules/find-cache-dir/node_modules/pify/package.json" + }, + { + "path": "node_modules/find-cache-dir/node_modules/semver/package.json" + }, + { + "path": "node_modules/unique-slug/package.json" + }, + { + "path": "node_modules/espurify/package.json" + }, + { + "path": "node_modules/lodash.at/package.json" + }, + { + "path": "node_modules/ansi-styles/package.json" + }, + { + "path": "node_modules/merge-estraverse-visitors/package.json" + }, + { + "path": "node_modules/for-in/package.json" + }, + { + "path": "node_modules/to-object-path/package.json" + }, + { + "path": "node_modules/to-object-path/node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/to-object-path/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/ansi-colors/package.json" + }, + { + "path": "node_modules/brorand/package.json" + }, + { + "path": "node_modules/findup-sync/package.json" + }, + { + "path": "node_modules/findup-sync/node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/findup-sync/node_modules/fill-range/package.json" + }, + { + "path": "node_modules/findup-sync/node_modules/fill-range/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/findup-sync/node_modules/is-number/package.json" + }, + { + "path": "node_modules/findup-sync/node_modules/is-number/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/findup-sync/node_modules/micromatch/index.js" + }, + { + "path": "node_modules/findup-sync/node_modules/micromatch/README.md" + }, + { + "path": "node_modules/findup-sync/node_modules/micromatch/package.json" + }, + { + "path": "node_modules/findup-sync/node_modules/micromatch/LICENSE" + }, + { + "path": "node_modules/findup-sync/node_modules/micromatch/CHANGELOG.md" + }, + { + "path": "node_modules/findup-sync/node_modules/micromatch/lib/parsers.js" + }, + { + "path": "node_modules/findup-sync/node_modules/micromatch/lib/.DS_Store" + }, + { + "path": "node_modules/findup-sync/node_modules/micromatch/lib/compilers.js" + }, + { + "path": "node_modules/findup-sync/node_modules/micromatch/lib/utils.js" + }, + { + "path": "node_modules/findup-sync/node_modules/micromatch/lib/cache.js" + }, + { + "path": "node_modules/findup-sync/node_modules/braces/package.json" + }, + { + "path": "node_modules/findup-sync/node_modules/braces/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/findup-sync/node_modules/to-regex-range/package.json" + }, + { + "path": "node_modules/p-try/package.json" + }, + { + "path": "node_modules/escope/package.json" + }, + { + "path": "node_modules/evp_bytestokey/package.json" + }, + { + "path": "node_modules/json-parse-better-errors/package.json" + }, + { + "path": "node_modules/worker-farm/package.json" + }, + { + "path": "node_modules/ieee754/package.json" + }, + { + "path": "node_modules/chokidar/package.json" + }, + { + "path": "node_modules/chokidar/node_modules/is-buffer/package.json" + }, + { + "path": "node_modules/chokidar/node_modules/glob-parent/package.json" + }, + { + "path": "node_modules/chokidar/node_modules/glob-parent/node_modules/is-glob/package.json" + }, + { + "path": "node_modules/chokidar/node_modules/fill-range/package.json" + }, + { + "path": "node_modules/chokidar/node_modules/is-number/package.json" + }, + { + "path": "node_modules/chokidar/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/chokidar/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/chokidar/node_modules/braces/package.json" + }, + { + "path": "node_modules/chokidar/node_modules/to-regex-range/package.json" + }, + { + "path": "node_modules/readable-stream/package.json" + }, + { + "path": "node_modules/abort-controller/package.json" + }, + { + "path": "node_modules/which/package.json" + }, + { + "path": "node_modules/astral-regex/package.json" + }, + { + "path": "node_modules/escodegen/package.json" + }, + { + "path": "node_modules/escodegen/node_modules/esprima/package.json" + }, + { + "path": "node_modules/escodegen/node_modules/source-map/package.json" + }, + { + "path": "node_modules/minimist/package.json" + }, + { + "path": "node_modules/elliptic/package.json" + }, + { + "path": "node_modules/clone-response/package.json" + }, + { + "path": "node_modules/ecdsa-sig-formatter/package.json" + }, + { + "path": "node_modules/requizzle/package.json" + }, + { + "path": "node_modules/base64-js/package.json" + }, + { + "path": "node_modules/async-each/package.json" + }, + { + "path": "node_modules/pify/package.json" + }, + { + "path": "node_modules/object-keys/package.json" + }, + { + "path": "node_modules/trim-newlines/package.json" + }, + { + "path": "node_modules/deep-is/package.json" + }, + { + "path": "node_modules/fast-levenshtein/package.json" + }, + { + "path": "node_modules/urix/package.json" + }, + { + "path": "node_modules/typescript/package.json" + }, + { + "path": "node_modules/shebang-regex/package.json" + }, + { + "path": "node_modules/regex-not/package.json" + }, + { + "path": "node_modules/eslint-plugin-es/package.json" + }, + { + "path": "node_modules/eslint-plugin-es/node_modules/eslint-utils/package.json" + }, + { + "path": "node_modules/eslint-plugin-es/node_modules/regexpp/package.json" + }, + { + "path": "node_modules/util/package.json" + }, + { + "path": "node_modules/util/node_modules/inherits/package.json" + }, + { + "path": "node_modules/mem/package.json" + }, + { + "path": "node_modules/semver/package.json" + }, + { + "path": "node_modules/unique-string/package.json" + }, + { + "path": "node_modules/unique-filename/package.json" + }, + { + "path": "node_modules/decamelize/package.json" + }, + { + "path": "node_modules/node-libs-browser/package.json" + }, + { + "path": "node_modules/node-libs-browser/node_modules/punycode/package.json" + }, + { + "path": "node_modules/ajv-keywords/package.json" + }, + { + "path": "node_modules/is-descriptor/package.json" + }, + { + "path": "node_modules/is-descriptor/node_modules/kind-of/package.json" + }, + { + "path": "node_modules/arr-union/package.json" + }, + { + "path": "node_modules/acorn/package.json" + }, + { + "path": "node_modules/wide-align/package.json" + }, + { + "path": "node_modules/wide-align/node_modules/string-width/package.json" + }, + { + "path": "node_modules/wide-align/node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/wide-align/node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/wide-align/node_modules/is-fullwidth-code-point/package.json" + }, + { + "path": "node_modules/got/package.json" + }, + { + "path": "node_modules/got/node_modules/get-stream/package.json" + }, + { + "path": "node_modules/sprintf-js/package.json" + }, + { + "path": "node_modules/ts-loader/package.json" + }, + { + "path": "node_modules/ts-loader/node_modules/semver/package.json" + }, + { + "path": "node_modules/isarray/package.json" + }, + { + "path": "node_modules/string_decoder/package.json" + }, + { + "path": "node_modules/strip-eof/package.json" + }, + { + "path": "node_modules/p-limit/package.json" + }, + { + "path": "node_modules/url-parse-lax/package.json" + }, + { + "path": "node_modules/gts/package.json" + }, + { + "path": "node_modules/gts/node_modules/chalk/package.json" + }, + { + "path": "node_modules/commander/package.json" + }, + { + "path": "node_modules/mimic-fn/package.json" + }, + { + "path": "node_modules/https-proxy-agent/package.json" + }, + { + "path": "node_modules/ini/package.json" + }, + { + "path": "node_modules/js2xmlparser/package.json" + }, + { + "path": "node_modules/spdx-exceptions/package.json" + }, + { + "path": "node_modules/external-editor/package.json" + }, + { + "path": "node_modules/power-assert-formatter/package.json" + }, + { + "path": "node_modules/domain-browser/package.json" + }, + { + "path": "node_modules/eslint-utils/package.json" + }, + { + "path": "node_modules/buffer-xor/package.json" + }, + { + "path": "node_modules/text-table/package.json" + }, + { + "path": "node_modules/domutils/package.json" + }, + { + "path": "node_modules/supports-color/package.json" + }, + { + "path": "node_modules/strip-indent/package.json" + }, + { + "path": "node_modules/buffer/package.json" + }, + { + "path": "node_modules/fs.realpath/package.json" + }, + { + "path": "node_modules/parse5/package.json" + }, + { + "path": "node_modules/decamelize-keys/package.json" + }, + { + "path": "node_modules/decamelize-keys/node_modules/map-obj/package.json" + }, + { + "path": "node_modules/empower-core/package.json" + }, + { + "path": "node_modules/is-plain-object/package.json" + }, + { + "path": "node_modules/terser-webpack-plugin/package.json" + }, + { + "path": "node_modules/terser-webpack-plugin/node_modules/source-map/package.json" + }, + { + "path": "node_modules/acorn-es7-plugin/package.json" + }, + { + "path": "node_modules/iferr/package.json" + }, + { + "path": "node_modules/figgy-pudding/package.json" + }, + { + "path": "node_modules/webpack-sources/package.json" + }, + { + "path": "node_modules/webpack-sources/node_modules/source-map/package.json" + }, + { + "path": "node_modules/p-timeout/package.json" + }, + { + "path": "node_modules/upath/package.json" + }, + { + "path": "node_modules/neo-async/package.json" + }, + { + "path": "node_modules/espree/package.json" + }, + { + "path": "node_modules/is-fullwidth-code-point/package.json" + }, + { + "path": "node_modules/responselike/package.json" + }, + { + "path": "node_modules/next-tick/package.json" + }, + { + "path": "node_modules/esrecurse/package.json" + }, + { + "path": "node_modules/stream-http/package.json" + }, + { + "path": "node_modules/promise-inflight/package.json" + }, + { + "path": "node_modules/bignumber.js/package.json" + }, + { + "path": "node_modules/source-map/package.json" + }, + { + "path": "node_modules/find-up/package.json" + }, + { + "path": "node_modules/traverse/package.json" + }, + { + "path": "node_modules/es-to-primitive/package.json" + }, + { + "path": "node_modules/rc/package.json" + }, + { + "path": "node_modules/rc/node_modules/minimist/package.json" + }, + { + "path": "node_modules/rc/node_modules/strip-json-comments/package.json" + }, + { + "path": "node_modules/safe-buffer/package.json" + }, + { + "path": "node_modules/uc.micro/package.json" + }, + { + "path": "node_modules/flat-cache/package.json" + }, + { + "path": "node_modules/flat-cache/node_modules/rimraf/package.json" + }, + { + "path": "node_modules/once/package.json" + }, + { + "path": "node_modules/gtoken/package.json" + }, + { + "path": "node_modules/convert-source-map/package.json" + }, + { + "path": "node_modules/is-date-object/package.json" + }, + { + "path": "node_modules/tslint-config-prettier/package.json" + }, + { + "path": "node_modules/import-local/package.json" + }, + { + "path": "node_modules/escape-string-regexp/package.json" + }, + { + "path": "node_modules/flush-write-stream/package.json" + }, + { + "path": "node_modules/braces/package.json" + }, + { + "path": "node_modules/iconv-lite/package.json" + }, + { + "path": "node_modules/json5/package.json" + }, + { + "path": "node_modules/json5/node_modules/minimist/package.json" + }, + { + "path": "node_modules/get-value/package.json" + }, + { + "path": "node_modules/is-glob/package.json" + }, + { + "path": "node_modules/furi/package.json" + }, + { + "path": "node_modules/tslib/package.json" + }, + { + "path": "node_modules/map-visit/package.json" + }, + { + "path": "node_modules/ripemd160/package.json" + }, + { + "path": "node_modules/watchpack/package.json" + }, + { + "path": "node_modules/stream-browserify/package.json" + }, + { + "path": "node_modules/markdown-it-anchor/package.json" + }, + { + "path": "node_modules/browser-stdout/package.json" + }, + { + "path": "node_modules/array-unique/package.json" + }, + { + "path": "node_modules/ajv-errors/package.json" + }, + { + "path": "node_modules/path-type/package.json" + }, + { + "path": "node_modules/to-regex-range/package.json" + }, + { + "path": "node_modules/randomfill/package.json" + }, + { + "path": "node_modules/npm-packlist/package.json" + }, + { + "path": "node_modules/copy-concurrently/package.json" + }, + { + "path": "node_modules/copy-concurrently/node_modules/rimraf/package.json" + }, + { + "path": "node_modules/loader-runner/package.json" + }, + { + "path": "node_modules/pump/package.json" + }, + { + "path": "node_modules/process-nextick-args/package.json" + }, + { + "path": "node_modules/deep-extend/package.json" + }, + { + "path": "node_modules/resolve-url/package.json" + }, + { + "path": "node_modules/power-assert-context-reducer-ast/package.json" + }, + { + "path": "node_modules/power-assert-context-reducer-ast/node_modules/acorn/package.json" + }, + { + "path": "node_modules/type-check/package.json" + }, + { + "path": "node_modules/jwa/package.json" + }, + { + "path": "node_modules/walkdir/package.json" + }, + { + "path": "node_modules/hard-rejection/package.json" + }, + { + "path": "node_modules/base/package.json" + }, + { + "path": "node_modules/base/node_modules/define-property/package.json" + }, + { + "path": "node_modules/base/node_modules/is-data-descriptor/package.json" + }, + { + "path": "node_modules/base/node_modules/is-accessor-descriptor/package.json" + }, + { + "path": "node_modules/base/node_modules/is-descriptor/package.json" + }, + { + "path": "node_modules/randombytes/package.json" + }, + { + "path": "node_modules/espower-source/package.json" + }, + { + "path": "node_modules/espower-source/node_modules/acorn/package.json" + }, + { + "path": "node_modules/cross-spawn/package.json" + }, + { + "path": "node_modules/@sindresorhus/is/package.json" + }, + { + "path": "node_modules/resolve-dir/package.json" + }, + { + "path": "node_modules/resolve-dir/node_modules/global-modules/package.json" + }, + { + "path": "node_modules/wrap-ansi/package.json" + }, + { + "path": "node_modules/quick-lru/package.json" + }, + { + "path": "node_modules/path-exists/package.json" + }, + { + "path": "node_modules/jsdoc/package.json" + }, + { + "path": "node_modules/jsdoc/node_modules/escape-string-regexp/package.json" + }, + { + "path": "node_modules/cacheable-request/package.json" + }, + { + "path": "node_modules/cacheable-request/node_modules/get-stream/package.json" + }, + { + "path": "node_modules/cacheable-request/node_modules/lowercase-keys/package.json" + }, + { + "path": "node_modules/escape-html/package.json" + }, + { + "path": "node_modules/power-assert-renderer-assertion/package.json" + }, + { + "path": "node_modules/minimist-options/package.json" + }, + { + "path": "node_modules/minimist-options/node_modules/arrify/package.json" + }, + { + "path": "node_modules/latest-version/package.json" + }, + { + "path": "node_modules/optionator/package.json" + }, + { + "path": "node_modules/parallel-transform/package.json" + }, + { + "path": "node_modules/slice-ansi/package.json" + }, + { + "path": "node_modules/slice-ansi/node_modules/color-name/package.json" + }, + { + "path": "node_modules/slice-ansi/node_modules/ansi-styles/package.json" + }, + { + "path": "node_modules/slice-ansi/node_modules/is-fullwidth-code-point/package.json" + }, + { + "path": "node_modules/slice-ansi/node_modules/color-convert/package.json" + }, + { + "path": "node_modules/power-assert-renderer-comparison/package.json" + }, + { + "path": "node_modules/flatted/package.json" + }, + { + "path": "node_modules/unset-value/package.json" + }, + { + "path": "node_modules/unset-value/node_modules/has-value/package.json" + }, + { + "path": "node_modules/unset-value/node_modules/has-value/node_modules/isobject/package.json" + }, + { + "path": "node_modules/unset-value/node_modules/has-values/package.json" + }, + { + "path": "node_modules/inherits/package.json" + }, + { + "path": "node_modules/depd/package.json" + }, + { + "path": "node_modules/es6-promisify/package.json" + }, + { + "path": "node_modules/long/package.json" + }, + { + "path": "node_modules/regexpp/package.json" + }, + { + "path": "node_modules/cli-width/package.json" + }, + { + "path": "node_modules/call-matcher/package.json" + }, + { + "path": "node_modules/resolve-cwd/package.json" + }, + { + "path": "node_modules/resolve-cwd/node_modules/resolve-from/package.json" + }, + { + "path": "node_modules/eslint/package.json" + }, + { + "path": "node_modules/eslint/node_modules/debug/package.json" + }, + { + "path": "node_modules/eslint/node_modules/ansi-regex/package.json" + }, + { + "path": "node_modules/eslint/node_modules/path-key/package.json" + }, + { + "path": "node_modules/eslint/node_modules/shebang-command/package.json" + }, + { + "path": "node_modules/eslint/node_modules/strip-ansi/package.json" + }, + { + "path": "node_modules/eslint/node_modules/which/package.json" + }, + { + "path": "node_modules/eslint/node_modules/shebang-regex/package.json" + }, + { + "path": "node_modules/eslint/node_modules/semver/package.json" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/index.js" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/README.md" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/package.json" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/LICENSE" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/CHANGELOG.md" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/lib/parse.js" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/lib/enoent.js" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/lib/util/escape.js" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/lib/util/resolveCommand.js" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/lib/util/readShebang.js" + }, + { + "path": "node_modules/eslint/node_modules/cross-spawn/node_modules/semver/package.json" + }, + { + "path": "node_modules/npm-bundled/package.json" + }, + { + "path": "node_modules/is-wsl/package.json" + }, + { + "path": "node_modules/mdurl/package.json" + }, + { + "path": "node_modules/typedarray/package.json" + }, + { + "path": "node_modules/v8-to-istanbul/package.json" + }, + { + "path": "node_modules/espower-loader/package.json" + }, + { + "path": "node_modules/object.getownpropertydescriptors/package.json" + }, + { + "path": "node_modules/cache-base/package.json" + }, + { + "path": "node_modules/array-find-index/package.json" + }, + { + "path": "node_modules/yargs/package.json" + }, + { + "path": "node_modules/ci-info/package.json" + }, + { + "path": "node_modules/miller-rabin/package.json" + }, + { + "path": "node_modules/color-convert/package.json" + }, + { + "path": "node_modules/use/package.json" + }, + { + "path": "node_modules/write-file-atomic/package.json" + }, + { + "path": "node_modules/to-arraybuffer/package.json" + }, + { + "path": "node_modules/extglob/package.json" + }, + { + "path": "node_modules/extglob/node_modules/define-property/package.json" + }, + { + "path": "node_modules/extglob/node_modules/is-data-descriptor/package.json" + }, + { + "path": "node_modules/extglob/node_modules/is-accessor-descriptor/package.json" + }, + { + "path": "node_modules/extglob/node_modules/extend-shallow/package.json" + }, + { + "path": "node_modules/extglob/node_modules/is-descriptor/package.json" + }, + { + "path": "node_modules/eslint-visitor-keys/package.json" + }, + { + "path": "node_modules/to-regex/package.json" + }, + { + "path": "node_modules/path-browserify/package.json" + }, + { + "path": "node_modules/agent-base/package.json" + }, + { + "path": "node_modules/repeat-string/package.json" + }, + { + "path": "node_modules/flat/package.json" + }, + { + "path": "node_modules/through2/package.json" + }, + { + "path": "node_modules/gaxios/package.json" + }, + { + "path": "node_modules/p-queue/package.json" + }, + { + "path": "node_modules/encodeurl/package.json" + }, + { + "path": "node_modules/normalize-path/package.json" + }, + { + "path": "node_modules/js-tokens/package.json" + }, + { + "path": "node_modules/strip-json-comments/package.json" + }, + { + "path": "node_modules/eslint-config-prettier/package.json" + }, + { + "path": "node_modules/uri-js/package.json" + }, + { + "path": "node_modules/test-exclude/package.json" + }, + { + "path": "node_modules/safer-buffer/package.json" + }, + { + "path": "node_modules/prettier/package.json" + }, + { + "path": "node_modules/regexp.prototype.flags/package.json" + }, + { + "path": "node_modules/yargs-parser/package.json" + }, + { + "path": "node_modules/copy-descriptor/package.json" + }, + { + "path": "node_modules/@babel/code-frame/package.json" + }, + { + "path": "node_modules/@babel/highlight/package.json" + }, + { + "path": "node_modules/@babel/parser/package.json" + }, + { + "path": "node_modules/configstore/package.json" + }, + { + "path": "node_modules/configstore/node_modules/make-dir/package.json" + }, + { + "path": "node_modules/configstore/node_modules/write-file-atomic/package.json" + }, + { + "path": "node_modules/is-plain-obj/package.json" + }, + { + "path": "node_modules/eastasianwidth/package.json" + }, + { + "path": "node_modules/memory-fs/package.json" + }, + { + "path": "node_modules/has-yarn/package.json" + }, + { + "path": "node_modules/core-js/package.json" + }, + { + "path": "samples/README.md" + }, + { + "path": "samples/package.json" + }, + { + "path": "samples/quickstart.js" + }, + { + "path": "samples/.eslintrc.yml" + }, + { + "path": "samples/system-test/sample.test.js" + }, + { + "path": "__pycache__/synth.cpython-36.pyc" + }, + { + "path": "smoke-test/.eslintrc.yml" + }, + { + "path": "smoke-test/cluster_manager_smoke_test.js" } ] } \ No newline at end of file diff --git a/packages/google-container/system-test/install.ts b/packages/google-container/system-test/install.ts index 2736aee84f7..c9aa74ec221 100644 --- a/packages/google-container/system-test/install.ts +++ b/packages/google-container/system-test/install.ts @@ -18,6 +18,7 @@ import {packNTest} from 'pack-n-play'; import {readFileSync} from 'fs'; +import {describe, it} from 'mocha'; describe('typescript consumer tests', () => { it('should have correct type signature for typescript users', async function() { From 6e5db98f1e9080512c6a1fe84766bf4e932e828a Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 6 Jan 2020 18:50:03 +0200 Subject: [PATCH 170/371] chore(deps): update dependency mocha to v7 (#269) --- packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 9d561627cc1..3e53810b732 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -57,7 +57,7 @@ "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", "linkinator": "^1.5.0", - "mocha": "^6.1.4", + "mocha": "^7.0.0", "null-loader": "^3.0.0", "pack-n-play": "^1.0.0-2", "power-assert": "^1.6.1", diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 08c0d8aa9cc..29748bd8ec8 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -18,6 +18,6 @@ }, "devDependencies": { "chai": "^4.2.0", - "mocha": "^6.0.0" + "mocha": "^7.0.0" } } From aeac7fe505497feba04679d10e63f375eba5507e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Jan 2020 10:46:54 -0800 Subject: [PATCH 171/371] chore: release 1.5.0 * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json [ci skip] --- packages/google-container/CHANGELOG.md | 13 +++++++++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 936a4c59ade..fd69e9d0757 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,19 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [1.5.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.4.0...v1.5.0) (2020-01-06) + + +### Features + +* move to typescript code micro-generator ([#260](https://www.github.com/googleapis/nodejs-cloud-container/issues/260)) ([e2b189a](https://www.github.com/googleapis/nodejs-cloud-container/commit/e2b189a57ce1df87f9ad2123f48f665469812ad9)) + + +### Bug Fixes + +* **deps:** pin TypeScript below 3.7.0 ([bcc3eaa](https://www.github.com/googleapis/nodejs-cloud-container/commit/bcc3eaa20adc266db2a641834cc5f8561e03b825)) +* better client close(), update .nycrc ([41c6125](https://www.github.com/googleapis/nodejs-cloud-container/commit/41c6125b56c61ebed870fdb0daa01c29dd71c832)) + ## [1.4.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.3.1...v1.4.0) (2019-11-14) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 3e53810b732..cb0ef811b91 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.4.0", + "version": "1.5.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 29748bd8ec8..7a297b50699 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.4.0" + "@google-cloud/container": "^1.5.0" }, "devDependencies": { "chai": "^4.2.0", From fe7bb5b3e335c7599df88c3894429bb43db7722a Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 23 Jan 2020 16:11:52 -0800 Subject: [PATCH 172/371] feat: bump release level to GA (#272) --- packages/google-container/.repo-metadata.json | 2 +- packages/google-container/README.md | 11 +- packages/google-container/protos/protos.d.ts | 2 +- packages/google-container/protos/protos.js | 2 +- packages/google-container/synth.metadata | 3714 +---------------- packages/google-container/synth.py | 2 +- 6 files changed, 70 insertions(+), 3663 deletions(-) diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json index 5e4496f0774..33fce79d98a 100644 --- a/packages/google-container/.repo-metadata.json +++ b/packages/google-container/.repo-metadata.json @@ -4,7 +4,7 @@ "product_documentation": "https://cloud.google.com/kubernetes-engine", "client_documentation": "https://googleapis.dev/nodejs/container/latest", "issue_tracker": "https://issuetracker.google.com/savedsearches/559746", - "release_level": "beta", + "release_level": "ga", "language": "nodejs", "repo": "googleapis/nodejs-cloud-container", "distribution_name": "@google-cloud/container", diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 425d54eb586..218ca76af12 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -4,7 +4,7 @@ # [Kubernetes Engine Cluster Manager API: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) -[![release level](https://img.shields.io/badge/release%20level-beta-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/container.svg)](https://www.npmjs.org/package/@google-cloud/container) [![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-cloud-container/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-cloud-container) @@ -108,11 +108,12 @@ also contains samples. This library follows [Semantic Versioning](http://semver.org/). +This library is considered to be **General Availability (GA)**. This means it +is stable; the code surface will not change in backwards-incompatible ways +unless absolutely necessary (e.g. because of critical security issues) or with +an extensive deprecation period. Issues and requests against **GA** libraries +are addressed with the highest priority. -This library is considered to be in **beta**. This means it is expected to be -mostly stable while we work toward a general availability release; however, -complete stability is not guaranteed. We will address issues and requests -against beta libraries with a high priority. diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 0c10d3163fe..184078648c1 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -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. diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 4daf1a4c765..debda015df0 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -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. diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index cc2ff64a1a3..29e77c42b24 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,12 +1,12 @@ { - "updateTime": "2020-01-03T12:09:36.403198Z", + "updateTime": "2020-01-23T23:34:45.692182Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "4d45a6399e9444fbddaeb1c86aabfde210723714", - "internalRef": "287908369" + "sha": "e26cab8afd19d396b929039dac5d874cf0b5336c", + "internalRef": "291240093" } }, { @@ -29,86 +29,11 @@ } ], "newFiles": [ - { - "path": ".readme-partials.yaml" - }, - { - "path": "synth.metadata" - }, - { - "path": ".repo-metadata.json" - }, - { - "path": "CONTRIBUTING.md" - }, - { - "path": "linkinator.config.json" - }, - { - "path": ".prettierignore" - }, - { - "path": "tsconfig.json" - }, - { - "path": ".jsdoc.js" - }, - { - "path": ".gitignore" - }, - { - "path": "synth.py" - }, - { - "path": "CODE_OF_CONDUCT.md" - }, - { - "path": "README.md" - }, - { - "path": "package-lock.json" - }, - { - "path": ".prettierrc" - }, - { - "path": "codecov.yaml" - }, - { - "path": ".nycrc" - }, - { - "path": "package.json" - }, - { - "path": "webpack.config.js" - }, - { - "path": ".eslintrc.yml" - }, - { - "path": "tslint.json" - }, - { - "path": "renovate.json" - }, - { - "path": "LICENSE" - }, - { - "path": "CHANGELOG.md" - }, { "path": ".eslintignore" }, { - "path": ".github/PULL_REQUEST_TEMPLATE.md" - }, - { - "path": ".github/release-please.yml" - }, - { - "path": ".github/ISSUE_TEMPLATE/support_request.md" + "path": ".eslintrc.yml" }, { "path": ".github/ISSUE_TEMPLATE/bug_report.md" @@ -117,193 +42,148 @@ "path": ".github/ISSUE_TEMPLATE/feature_request.md" }, { - "path": ".kokoro/samples-test.sh" - }, - { - "path": ".kokoro/system-test.sh" - }, - { - "path": ".kokoro/docs.sh" - }, - { - "path": ".kokoro/lint.sh" + "path": ".github/ISSUE_TEMPLATE/support_request.md" }, { - "path": ".kokoro/.gitattributes" + "path": ".github/PULL_REQUEST_TEMPLATE.md" }, { - "path": ".kokoro/publish.sh" + "path": ".github/release-please.yml" }, { - "path": ".kokoro/trampoline.sh" + "path": ".jsdoc.js" }, { "path": ".kokoro/common.cfg" }, { - "path": ".kokoro/test.bat" - }, - { - "path": ".kokoro/test.sh" - }, - { - "path": ".kokoro/release/docs.sh" - }, - { - "path": ".kokoro/release/docs.cfg" - }, - { - "path": ".kokoro/release/common.cfg" - }, - { - "path": ".kokoro/release/publish.cfg" - }, - { - "path": ".kokoro/presubmit/node12/test.cfg" - }, - { - "path": ".kokoro/presubmit/node12/common.cfg" - }, - { - "path": ".kokoro/presubmit/node8/test.cfg" - }, - { - "path": ".kokoro/presubmit/node8/common.cfg" - }, - { - "path": ".kokoro/presubmit/windows/test.cfg" - }, - { - "path": ".kokoro/presubmit/windows/common.cfg" + "path": ".kokoro/continuous/node10/common.cfg" }, { - "path": ".kokoro/presubmit/node10/lint.cfg" + "path": ".kokoro/continuous/node10/docs.cfg" }, { - "path": ".kokoro/presubmit/node10/system-test.cfg" + "path": ".kokoro/continuous/node10/lint.cfg" }, { - "path": ".kokoro/presubmit/node10/test.cfg" + "path": ".kokoro/continuous/node10/samples-test.cfg" }, { - "path": ".kokoro/presubmit/node10/docs.cfg" + "path": ".kokoro/continuous/node10/system-test.cfg" }, { - "path": ".kokoro/presubmit/node10/common.cfg" + "path": ".kokoro/continuous/node10/test.cfg" }, { - "path": ".kokoro/presubmit/node10/samples-test.cfg" + "path": ".kokoro/continuous/node12/common.cfg" }, { "path": ".kokoro/continuous/node12/test.cfg" }, { - "path": ".kokoro/continuous/node12/common.cfg" + "path": ".kokoro/continuous/node8/common.cfg" }, { "path": ".kokoro/continuous/node8/test.cfg" }, { - "path": ".kokoro/continuous/node8/common.cfg" - }, - { - "path": ".kokoro/continuous/node10/lint.cfg" + "path": ".kokoro/docs.sh" }, { - "path": ".kokoro/continuous/node10/system-test.cfg" + "path": ".kokoro/lint.sh" }, { - "path": ".kokoro/continuous/node10/test.cfg" + "path": ".kokoro/presubmit/node10/common.cfg" }, { - "path": ".kokoro/continuous/node10/docs.cfg" + "path": ".kokoro/presubmit/node10/docs.cfg" }, { - "path": ".kokoro/continuous/node10/common.cfg" + "path": ".kokoro/presubmit/node10/lint.cfg" }, { - "path": ".kokoro/continuous/node10/samples-test.cfg" + "path": ".kokoro/presubmit/node10/samples-test.cfg" }, { - "path": "test/gapic-cluster_manager-v1.ts" + "path": ".kokoro/presubmit/node10/system-test.cfg" }, { - "path": "test/mocha.opts" + "path": ".kokoro/presubmit/node10/test.cfg" }, { - "path": "test/.eslintrc.yml" + "path": ".kokoro/presubmit/node12/common.cfg" }, { - "path": "system-test/install.ts" + "path": ".kokoro/presubmit/node12/test.cfg" }, { - "path": "system-test/fixtures/sample/src/index.ts" + "path": ".kokoro/presubmit/node8/common.cfg" }, { - "path": "system-test/fixtures/sample/src/index.js" + "path": ".kokoro/presubmit/node8/test.cfg" }, { - "path": "build/test/gapic-cluster_manager-v1.js.map" + "path": ".kokoro/presubmit/windows/common.cfg" }, { - "path": "build/test/gapic-cluster_manager-v1.js" + "path": ".kokoro/presubmit/windows/test.cfg" }, { - "path": "build/test/gapic-cluster_manager-v1.d.ts" + "path": ".kokoro/publish.sh" }, { - "path": "build/system-test/install.d.ts" + "path": ".kokoro/release/docs.cfg" }, { - "path": "build/system-test/install.js" + "path": ".kokoro/release/docs.sh" }, { - "path": "build/system-test/install.js.map" + "path": ".kokoro/release/publish.cfg" }, { - "path": "build/protos/protos.d.ts" + "path": ".kokoro/samples-test.sh" }, { - "path": "build/protos/protos.js" + "path": ".kokoro/system-test.sh" }, { - "path": "build/protos/protos.json" + "path": ".kokoro/test.bat" }, { - "path": "build/protos/google/container/v1/cluster_service.proto" + "path": ".kokoro/test.sh" }, { - "path": "build/src/index.js" + "path": ".kokoro/trampoline.sh" }, { - "path": "build/src/index.js.map" + "path": ".nycrc" }, { - "path": "build/src/index.d.ts" + "path": ".prettierignore" }, { - "path": "build/src/v1/cluster_manager_client.js" + "path": ".prettierrc" }, { - "path": "build/src/v1/index.js" + "path": "CODE_OF_CONDUCT.md" }, { - "path": "build/src/v1/index.js.map" + "path": "CONTRIBUTING.md" }, { - "path": "build/src/v1/cluster_manager_client.js.map" + "path": "LICENSE" }, { - "path": "build/src/v1/cluster_manager_client_config.d.ts" + "path": "README.md" }, { - "path": "build/src/v1/cluster_manager_client_config.json" + "path": "codecov.yaml" }, { - "path": "build/src/v1/cluster_manager_client.d.ts" + "path": "linkinator.config.json" }, { - "path": "build/src/v1/index.d.ts" + "path": "protos/google/container/v1/cluster_service.proto" }, { "path": "protos/protos.d.ts" @@ -315,3517 +195,43 @@ "path": "protos/protos.json" }, { - "path": "protos/google/container/v1/cluster_service.proto" - }, - { - "path": ".git/shallow" - }, - { - "path": ".git/HEAD" - }, - { - "path": ".git/config" - }, - { - "path": ".git/packed-refs" - }, - { - "path": ".git/index" - }, - { - "path": ".git/objects/pack/pack-2050f0d99dbaac123a7545c47203c94ca22d90a2.pack" - }, - { - "path": ".git/objects/pack/pack-2050f0d99dbaac123a7545c47203c94ca22d90a2.idx" - }, - { - "path": ".git/logs/HEAD" - }, - { - "path": ".git/logs/refs/heads/master" - }, - { - "path": ".git/logs/refs/heads/autosynth" - }, - { - "path": ".git/logs/refs/remotes/origin/HEAD" - }, - { - "path": ".git/refs/heads/master" - }, - { - "path": ".git/refs/heads/autosynth" - }, - { - "path": ".git/refs/remotes/origin/HEAD" + "path": "renovate.json" }, { - "path": "src/index.ts" + "path": "samples/README.md" }, { "path": "src/v1/cluster_manager_client.ts" }, - { - "path": "src/v1/index.ts" - }, - { - "path": "src/v1/cluster_manager_proto_list.json" - }, { "path": "src/v1/cluster_manager_client_config.json" }, { - "path": "src/v1/doc/google/protobuf/doc_timestamp.js" - }, - { - "path": "src/v1/doc/google/protobuf/doc_empty.js" - }, - { - "path": "node_modules/builtin-status-codes/package.json" - }, - { - "path": "node_modules/progress/package.json" - }, - { - "path": "node_modules/is-ci/package.json" - }, - { - "path": "node_modules/isobject/package.json" - }, - { - "path": "node_modules/mamacro/package.json" - }, - { - "path": "node_modules/define-property/package.json" - }, - { - "path": "node_modules/define-property/node_modules/is-data-descriptor/package.json" - }, - { - "path": "node_modules/define-property/node_modules/is-accessor-descriptor/package.json" - }, - { - "path": "node_modules/define-property/node_modules/is-descriptor/package.json" - }, - { - "path": "node_modules/lru-cache/package.json" - }, - { - "path": "node_modules/destroy/package.json" - }, - { - "path": "node_modules/snapdragon-util/package.json" - }, - { - "path": "node_modules/snapdragon-util/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/snapdragon-util/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/power-assert-context-formatter/package.json" + "path": "src/v1/cluster_manager_proto_list.json" }, { - "path": "node_modules/fast-json-stable-stringify/package.json" + "path": "src/v1/index.ts" }, { - "path": "node_modules/nice-try/package.json" + "path": "system-test/fixtures/sample/src/index.js" }, { - "path": "node_modules/which-module/package.json" + "path": "system-test/fixtures/sample/src/index.ts" }, { - "path": "node_modules/asn1.js/package.json" + "path": "system-test/install.ts" }, { - "path": "node_modules/array-find/package.json" + "path": "test/gapic-cluster_manager-v1.ts" }, { - "path": "node_modules/catharsis/package.json" + "path": "tsconfig.json" }, { - "path": "node_modules/is-promise/package.json" + "path": "tslint.json" }, { - "path": "node_modules/v8-compile-cache/package.json" - }, - { - "path": "node_modules/create-hmac/package.json" - }, - { - "path": "node_modules/tapable/package.json" - }, - { - "path": "node_modules/.bin/sha.js" - }, - { - "path": "node_modules/doctrine/package.json" - }, - { - "path": "node_modules/callsites/package.json" - }, - { - "path": "node_modules/diff/package.json" - }, - { - "path": "node_modules/hosted-git-info/package.json" - }, - { - "path": "node_modules/color-name/package.json" - }, - { - "path": "node_modules/path-dirname/package.json" - }, - { - "path": "node_modules/defer-to-connect/package.json" - }, - { - "path": "node_modules/snapdragon/index.js" - }, - { - "path": "node_modules/snapdragon/README.md" - }, - { - "path": "node_modules/snapdragon/package.json" - }, - { - "path": "node_modules/snapdragon/LICENSE" - }, - { - "path": "node_modules/snapdragon/lib/position.js" - }, - { - "path": "node_modules/snapdragon/lib/compiler.js" - }, - { - "path": "node_modules/snapdragon/lib/source-maps.js" - }, - { - "path": "node_modules/snapdragon/lib/utils.js" - }, - { - "path": "node_modules/snapdragon/lib/parser.js" - }, - { - "path": "node_modules/snapdragon/node_modules/define-property/package.json" - }, - { - "path": "node_modules/snapdragon/node_modules/debug/package.json" - }, - { - "path": "node_modules/snapdragon/node_modules/ms/package.json" - }, - { - "path": "node_modules/snapdragon/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/snapdragon/node_modules/source-map/package.json" - }, - { - "path": "node_modules/unpipe/package.json" - }, - { - "path": "node_modules/parse-asn1/package.json" - }, - { - "path": "node_modules/emoji-regex/package.json" - }, - { - "path": "node_modules/http-errors/package.json" - }, - { - "path": "node_modules/eventemitter3/package.json" - }, - { - "path": "node_modules/esutils/package.json" - }, - { - "path": "node_modules/npm-run-path/package.json" - }, - { - "path": "node_modules/npm-run-path/node_modules/path-key/package.json" - }, - { - "path": "node_modules/he/package.json" - }, - { - "path": "node_modules/pack-n-play/package.json" - }, - { - "path": "node_modules/pack-n-play/node_modules/tmp/package.json" - }, - { - "path": "node_modules/pack-n-play/node_modules/tmp/node_modules/rimraf/package.json" - }, - { - "path": "node_modules/on-finished/package.json" - }, - { - "path": "node_modules/crypto-browserify/package.json" - }, - { - "path": "node_modules/linkinator/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/update-notifier/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/dot-prop/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/redent/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/semver-diff/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/map-obj/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/meow/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/term-size/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/crypto-random-string/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/indent-string/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/camelcase-keys/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/is-obj/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/read-pkg-up/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/is-path-inside/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/boxen/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/chalk/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/arrify/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/widest-line/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/global-dirs/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/parse-json/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/xdg-basedir/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/is-npm/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/read-pkg/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/read-pkg/node_modules/type-fest/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/is-installed-globally/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/trim-newlines/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/semver/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/unique-string/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/strip-indent/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/quick-lru/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/minimist-options/package.json" - }, - { - "path": "node_modules/linkinator/node_modules/configstore/package.json" - }, - { - "path": "node_modules/update-notifier/package.json" - }, - { - "path": "node_modules/p-cancelable/package.json" - }, - { - "path": "node_modules/markdown-it/package.json" - }, - { - "path": "node_modules/setimmediate/package.json" - }, - { - "path": "node_modules/dot-prop/package.json" - }, - { - "path": "node_modules/require-main-filename/package.json" - }, - { - "path": "node_modules/fast-diff/package.json" - }, - { - "path": "node_modules/lodash.camelcase/package.json" - }, - { - "path": "node_modules/redent/package.json" - }, - { - "path": "node_modules/resolve/package.json" - }, - { - "path": "node_modules/globals/package.json" - }, - { - "path": "node_modules/p-is-promise/package.json" - }, - { - "path": "node_modules/range-parser/package.json" - }, - { - "path": "node_modules/string.prototype.trimright/package.json" - }, - { - "path": "node_modules/chrome-trace-event/package.json" - }, - { - "path": "node_modules/constants-browserify/package.json" - }, - { - "path": "node_modules/inflight/package.json" - }, - { - "path": "node_modules/debug/package.json" - }, - { - "path": "node_modules/htmlparser2/package.json" - }, - { - "path": "node_modules/htmlparser2/node_modules/readable-stream/package.json" - }, - { - "path": "node_modules/semver-diff/package.json" - }, - { - "path": "node_modules/semver-diff/node_modules/semver/package.json" - }, - { - "path": "node_modules/tsutils/package.json" - }, - { - "path": "node_modules/multi-stage-sourcemap/package.json" - }, - { - "path": "node_modules/multi-stage-sourcemap/node_modules/source-map/package.json" - }, - { - "path": "node_modules/ms/package.json" - }, - { - "path": "node_modules/linkify-it/package.json" - }, - { - "path": "node_modules/through/package.json" - }, - { - "path": "node_modules/power-assert-renderer-file/package.json" - }, - { - "path": "node_modules/homedir-polyfill/package.json" - }, - { - "path": "node_modules/string-width/package.json" - }, - { - "path": "node_modules/html-escaper/package.json" - }, - { - "path": "node_modules/type/package.json" - }, - { - "path": "node_modules/move-concurrently/package.json" - }, - { - "path": "node_modules/move-concurrently/node_modules/rimraf/package.json" - }, - { - "path": "node_modules/type-fest/package.json" - }, - { - "path": "node_modules/intelli-espower-loader/package.json" - }, - { - "path": "node_modules/parseurl/package.json" - }, - { - "path": "node_modules/buffer-from/package.json" - }, - { - "path": "node_modules/google-p12-pem/package.json" - }, - { - "path": "node_modules/get-caller-file/package.json" - }, - { - "path": "node_modules/klaw/package.json" - }, - { - "path": "node_modules/public-encrypt/package.json" - }, - { - "path": "node_modules/map-obj/package.json" - }, - { - "path": "node_modules/node-fetch/package.json" - }, - { - "path": "node_modules/jsonexport/package.json" - }, - { - "path": "node_modules/isexe/package.json" - }, - { - "path": "node_modules/object.pick/package.json" - }, - { - "path": "node_modules/escallmatch/package.json" - }, - { - "path": "node_modules/escallmatch/node_modules/esprima/package.json" - }, - { - "path": "node_modules/espower/package.json" - }, - { - "path": "node_modules/espower/node_modules/source-map/package.json" - }, - { - "path": "node_modules/run-async/package.json" - }, - { - "path": "node_modules/@webassemblyjs/ast/package.json" - }, - { - "path": "node_modules/@webassemblyjs/wast-printer/package.json" - }, - { - "path": "node_modules/@webassemblyjs/helper-code-frame/package.json" - }, - { - "path": "node_modules/@webassemblyjs/wasm-opt/package.json" - }, - { - "path": "node_modules/@webassemblyjs/helper-wasm-bytecode/package.json" - }, - { - "path": "node_modules/@webassemblyjs/helper-wasm-section/package.json" - }, - { - "path": "node_modules/@webassemblyjs/wasm-parser/package.json" - }, - { - "path": "node_modules/@webassemblyjs/helper-api-error/package.json" - }, - { - "path": "node_modules/@webassemblyjs/helper-buffer/package.json" - }, - { - "path": "node_modules/@webassemblyjs/utf8/package.json" - }, - { - "path": "node_modules/@webassemblyjs/wast-parser/package.json" - }, - { - "path": "node_modules/@webassemblyjs/wasm-gen/package.json" - }, - { - "path": "node_modules/@webassemblyjs/leb128/package.json" - }, - { - "path": "node_modules/@webassemblyjs/helper-fsm/package.json" - }, - { - "path": "node_modules/@webassemblyjs/wasm-edit/package.json" - }, - { - "path": "node_modules/@webassemblyjs/ieee754/package.json" - }, - { - "path": "node_modules/@webassemblyjs/helper-module-context/package.json" - }, - { - "path": "node_modules/@webassemblyjs/floating-point-hex-parser/package.json" - }, - { - "path": "node_modules/validate-npm-package-license/package.json" - }, - { - "path": "node_modules/file-entry-cache/package.json" - }, - { - "path": "node_modules/meow/package.json" - }, - { - "path": "node_modules/meow/node_modules/camelcase/package.json" - }, - { - "path": "node_modules/meow/node_modules/yargs-parser/package.json" - }, - { - "path": "node_modules/cacache/package.json" - }, - { - "path": "node_modules/cacache/node_modules/rimraf/package.json" - }, - { - "path": "node_modules/concat-map/package.json" - }, - { - "path": "node_modules/infer-owner/package.json" - }, - { - "path": "node_modules/term-size/package.json" - }, - { - "path": "node_modules/xmlcreate/package.json" - }, - { - "path": "node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/yallist/package.json" - }, - { - "path": "node_modules/class-utils/package.json" - }, - { - "path": "node_modules/class-utils/node_modules/define-property/package.json" - }, - { - "path": "node_modules/json-bigint/package.json" - }, - { - "path": "node_modules/hmac-drbg/package.json" - }, - { - "path": "node_modules/resolve-from/package.json" - }, - { - "path": "node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/cliui/package.json" - }, - { - "path": "node_modules/cipher-base/package.json" - }, - { - "path": "node_modules/toidentifier/package.json" - }, - { - "path": "node_modules/balanced-match/package.json" - }, - { - "path": "node_modules/marked/package.json" - }, - { - "path": "node_modules/wrappy/package.json" - }, - { - "path": "node_modules/jsdoc-region-tag/package.json" - }, - { - "path": "node_modules/json-stable-stringify-without-jsonify/package.json" - }, - { - "path": "node_modules/glob-parent/package.json" - }, - { - "path": "node_modules/collection-visit/package.json" - }, - { - "path": "node_modules/xtend/package.json" - }, - { - "path": "node_modules/loader-utils/package.json" - }, - { - "path": "node_modules/assign-symbols/package.json" - }, - { - "path": "node_modules/assert/package.json" - }, - { - "path": "node_modules/assert/node_modules/util/package.json" - }, - { - "path": "node_modules/assert/node_modules/inherits/package.json" - }, - { - "path": "node_modules/is-arguments/package.json" - }, - { - "path": "node_modules/bn.js/package.json" - }, - { - "path": "node_modules/set-blocking/package.json" - }, - { - "path": "node_modules/fill-range/package.json" - }, - { - "path": "node_modules/from2/package.json" - }, - { - "path": "node_modules/object-visit/package.json" - }, - { - "path": "node_modules/istanbul-lib-report/package.json" - }, - { - "path": "node_modules/load-json-file/package.json" - }, - { - "path": "node_modules/mississippi/package.json" - }, - { - "path": "node_modules/mississippi/node_modules/through2/package.json" - }, - { - "path": "node_modules/has-value/package.json" - }, - { - "path": "node_modules/readdirp/package.json" - }, - { - "path": "node_modules/readdirp/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/readdirp/node_modules/fill-range/package.json" - }, - { - "path": "node_modules/readdirp/node_modules/fill-range/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/readdirp/node_modules/is-number/package.json" - }, - { - "path": "node_modules/readdirp/node_modules/is-number/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/readdirp/node_modules/micromatch/index.js" - }, - { - "path": "node_modules/readdirp/node_modules/micromatch/README.md" - }, - { - "path": "node_modules/readdirp/node_modules/micromatch/package.json" - }, - { - "path": "node_modules/readdirp/node_modules/micromatch/LICENSE" - }, - { - "path": "node_modules/readdirp/node_modules/micromatch/CHANGELOG.md" - }, - { - "path": "node_modules/readdirp/node_modules/micromatch/lib/parsers.js" - }, - { - "path": "node_modules/readdirp/node_modules/micromatch/lib/.DS_Store" - }, - { - "path": "node_modules/readdirp/node_modules/micromatch/lib/compilers.js" - }, - { - "path": "node_modules/readdirp/node_modules/micromatch/lib/utils.js" - }, - { - "path": "node_modules/readdirp/node_modules/micromatch/lib/cache.js" - }, - { - "path": "node_modules/readdirp/node_modules/braces/package.json" - }, - { - "path": "node_modules/readdirp/node_modules/braces/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/readdirp/node_modules/to-regex-range/package.json" - }, - { - "path": "node_modules/is-number/package.json" - }, - { - "path": "node_modules/ansi-align/package.json" - }, - { - "path": "node_modules/ansi-align/node_modules/emoji-regex/package.json" - }, - { - "path": "node_modules/ansi-align/node_modules/string-width/package.json" - }, - { - "path": "node_modules/ansi-align/node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/ansi-align/node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json" - }, - { - "path": "node_modules/atob/package.json" - }, - { - "path": "node_modules/duplexer3/package.json" - }, - { - "path": "node_modules/esprima/package.json" - }, - { - "path": "node_modules/is-stream-ended/package.json" - }, - { - "path": "node_modules/minimatch/package.json" - }, - { - "path": "node_modules/crypto-random-string/package.json" - }, - { - "path": "node_modules/growl/package.json" - }, - { - "path": "node_modules/string.prototype.trimleft/package.json" - }, - { - "path": "node_modules/istanbul-lib-coverage/package.json" - }, - { - "path": "node_modules/global-prefix/package.json" - }, - { - "path": "node_modules/global-prefix/node_modules/which/package.json" - }, - { - "path": "node_modules/normalize-package-data/package.json" - }, - { - "path": "node_modules/normalize-package-data/node_modules/semver/package.json" - }, - { - "path": "node_modules/fast-text-encoding/package.json" - }, - { - "path": "node_modules/tar/package.json" - }, - { - "path": "node_modules/tar/node_modules/yallist/package.json" - }, - { - "path": "node_modules/cyclist/package.json" - }, - { - "path": "node_modules/server-destroy/package.json" - }, - { - "path": "node_modules/remove-trailing-separator/package.json" - }, - { - "path": "node_modules/prelude-ls/package.json" - }, - { - "path": "node_modules/d/package.json" - }, - { - "path": "node_modules/protobufjs/package.json" - }, - { - "path": "node_modules/protobufjs/node_modules/@types/node/package.json" - }, - { - "path": "node_modules/domhandler/package.json" - }, - { - "path": "node_modules/pkg-dir/package.json" - }, - { - "path": "node_modules/pkg-dir/node_modules/p-locate/package.json" - }, - { - "path": "node_modules/pkg-dir/node_modules/locate-path/package.json" - }, - { - "path": "node_modules/pkg-dir/node_modules/find-up/package.json" - }, - { - "path": "node_modules/pkg-dir/node_modules/path-exists/package.json" - }, - { - "path": "node_modules/ansi-escapes/package.json" - }, - { - "path": "node_modules/power-assert-renderer-base/package.json" - }, - { - "path": "node_modules/boolbase/package.json" - }, - { - "path": "node_modules/aproba/package.json" - }, - { - "path": "node_modules/fragment-cache/package.json" - }, - { - "path": "node_modules/indent-string/package.json" - }, - { - "path": "node_modules/lodash/package.json" - }, - { - "path": "node_modules/taffydb/package.json" - }, - { - "path": "node_modules/extend/package.json" - }, - { - "path": "node_modules/is-yarn-global/package.json" - }, - { - "path": "node_modules/dom-serializer/package.json" - }, - { - "path": "node_modules/end-of-stream/package.json" - }, - { - "path": "node_modules/log-symbols/package.json" - }, - { - "path": "node_modules/is-callable/package.json" - }, - { - "path": "node_modules/es5-ext/package.json" - }, - { - "path": "node_modules/https-browserify/package.json" - }, - { - "path": "node_modules/stringifier/package.json" - }, - { - "path": "node_modules/source-list-map/package.json" - }, - { - "path": "node_modules/vm-browserify/package.json" - }, - { - "path": "node_modules/es6-weak-map/package.json" - }, - { - "path": "node_modules/camelcase-keys/package.json" - }, - { - "path": "node_modules/camelcase-keys/node_modules/camelcase/package.json" - }, - { - "path": "node_modules/browserify-zlib/package.json" - }, - { - "path": "node_modules/pascalcase/package.json" - }, - { - "path": "node_modules/decompress-response/package.json" - }, - { - "path": "node_modules/set-value/package.json" - }, - { - "path": "node_modules/set-value/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/js-yaml/package.json" - }, - { - "path": "node_modules/cli-boxes/package.json" - }, - { - "path": "node_modules/is-obj/package.json" - }, - { - "path": "node_modules/is-typedarray/package.json" - }, - { - "path": "node_modules/is-binary-path/package.json" - }, - { - "path": "node_modules/registry-auth-token/package.json" - }, - { - "path": "node_modules/safe-regex/package.json" - }, - { - "path": "node_modules/decode-uri-component/package.json" - }, - { - "path": "node_modules/read-pkg-up/package.json" - }, - { - "path": "node_modules/read-pkg-up/node_modules/p-locate/package.json" - }, - { - "path": "node_modules/read-pkg-up/node_modules/locate-path/package.json" - }, - { - "path": "node_modules/read-pkg-up/node_modules/p-try/package.json" - }, - { - "path": "node_modules/read-pkg-up/node_modules/p-limit/package.json" - }, - { - "path": "node_modules/read-pkg-up/node_modules/find-up/package.json" - }, - { - "path": "node_modules/read-pkg-up/node_modules/path-exists/package.json" - }, - { - "path": "node_modules/buffer-equal-constant-time/package.json" - }, - { - "path": "node_modules/@bcoe/v8-coverage/package.json" - }, - { - "path": "node_modules/eslint-scope/package.json" - }, - { - "path": "node_modules/stream-shift/package.json" - }, - { - "path": "node_modules/union-value/package.json" - }, - { - "path": "node_modules/invert-kv/package.json" - }, - { - "path": "node_modules/snapdragon-node/package.json" - }, - { - "path": "node_modules/snapdragon-node/node_modules/define-property/package.json" - }, - { - "path": "node_modules/snapdragon-node/node_modules/is-data-descriptor/package.json" - }, - { - "path": "node_modules/snapdragon-node/node_modules/is-accessor-descriptor/package.json" - }, - { - "path": "node_modules/snapdragon-node/node_modules/is-descriptor/package.json" - }, - { - "path": "node_modules/is-extglob/package.json" - }, - { - "path": "node_modules/typedarray-to-buffer/index.js" - }, - { - "path": "node_modules/typedarray-to-buffer/README.md" - }, - { - "path": "node_modules/typedarray-to-buffer/.airtap.yml" - }, - { - "path": "node_modules/typedarray-to-buffer/.travis.yml" - }, - { - "path": "node_modules/typedarray-to-buffer/package.json" - }, - { - "path": "node_modules/typedarray-to-buffer/LICENSE" - }, - { - "path": "node_modules/typedarray-to-buffer/test/basic.js" - }, - { - "path": "node_modules/restore-cursor/package.json" - }, - { - "path": "node_modules/pbkdf2/package.json" - }, - { - "path": "node_modules/events/package.json" - }, - { - "path": "node_modules/map-cache/package.json" - }, - { - "path": "node_modules/mimic-response/package.json" - }, - { - "path": "node_modules/normalize-url/package.json" - }, - { - "path": "node_modules/kind-of/package.json" - }, - { - "path": "node_modules/fresh/package.json" - }, - { - "path": "node_modules/interpret/package.json" - }, - { - "path": "node_modules/imurmurhash/package.json" - }, - { - "path": "node_modules/indexof/package.json" - }, - { - "path": "node_modules/arr-flatten/package.json" - }, - { - "path": "node_modules/ajv/package.json" - }, - { - "path": "node_modules/is-path-inside/package.json" - }, - { - "path": "node_modules/timers-browserify/package.json" - }, - { - "path": "node_modules/import-lazy/package.json" - }, - { - "path": "node_modules/json-schema-traverse/package.json" - }, - { - "path": "node_modules/ncp/package.json" - }, - { - "path": "node_modules/rxjs/package.json" - }, - { - "path": "node_modules/p-locate/package.json" - }, - { - "path": "node_modules/figures/package.json" - }, - { - "path": "node_modules/os-browserify/package.json" - }, - { - "path": "node_modules/underscore/package.json" - }, - { - "path": "node_modules/finalhandler/package.json" - }, - { - "path": "node_modules/finalhandler/node_modules/debug/package.json" - }, - { - "path": "node_modules/finalhandler/node_modules/ms/package.json" - }, - { - "path": "node_modules/ignore/package.json" - }, - { - "path": "node_modules/path-is-absolute/package.json" - }, - { - "path": "node_modules/arr-diff/package.json" - }, - { - "path": "node_modules/graceful-fs/package.json" - }, - { - "path": "node_modules/is-extendable/package.json" - }, - { - "path": "node_modules/currently-unhandled/package.json" - }, - { - "path": "node_modules/minizlib/package.json" - }, - { - "path": "node_modules/minizlib/node_modules/yallist/package.json" - }, - { - "path": "node_modules/source-map-resolve/package.json" - }, - { - "path": "node_modules/google-gax/package.json" - }, - { - "path": "node_modules/browserify-aes/package.json" - }, - { - "path": "node_modules/commondir/package.json" - }, - { - "path": "node_modules/onetime/package.json" - }, - { - "path": "node_modules/lcid/package.json" - }, - { - "path": "node_modules/path-key/package.json" - }, - { - "path": "node_modules/core-util-is/package.json" - }, - { - "path": "node_modules/array-filter/package.json" - }, - { - "path": "node_modules/prepend-http/package.json" - }, - { - "path": "node_modules/console-browserify/package.json" - }, - { - "path": "node_modules/write/package.json" - }, - { - "path": "node_modules/duplexify/package.json" - }, - { - "path": "node_modules/camelcase/package.json" - }, - { - "path": "node_modules/tty-browserify/package.json" - }, - { - "path": "node_modules/error-ex/package.json" - }, - { - "path": "node_modules/empower-assert/package.json" - }, - { - "path": "node_modules/micromatch/package.json" - }, - { - "path": "node_modules/boxen/package.json" - }, - { - "path": "node_modules/boxen/node_modules/emoji-regex/package.json" - }, - { - "path": "node_modules/boxen/node_modules/string-width/package.json" - }, - { - "path": "node_modules/boxen/node_modules/type-fest/package.json" - }, - { - "path": "node_modules/boxen/node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/boxen/node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/boxen/node_modules/is-fullwidth-code-point/package.json" - }, - { - "path": "node_modules/repeat-element/package.json" - }, - { - "path": "node_modules/querystring/package.json" - }, - { - "path": "node_modules/node-environment-flags/package.json" - }, - { - "path": "node_modules/node-environment-flags/node_modules/semver/package.json" - }, - { - "path": "node_modules/c8/package.json" - }, - { - "path": "node_modules/gcp-metadata/package.json" - }, - { - "path": "node_modules/json-buffer/package.json" - }, - { - "path": "node_modules/stream-each/package.json" - }, - { - "path": "node_modules/mkdirp/package.json" - }, - { - "path": "node_modules/bluebird/package.json" - }, - { - "path": "node_modules/null-loader/package.json" - }, - { - "path": "node_modules/big.js/package.json" - }, - { - "path": "node_modules/shebang-command/package.json" - }, - { - "path": "node_modules/serve-static/package.json" - }, - { - "path": "node_modules/object-copy/package.json" - }, - { - "path": "node_modules/object-copy/node_modules/define-property/package.json" - }, - { - "path": "node_modules/object-copy/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/object-copy/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/path-parse/package.json" - }, - { - "path": "node_modules/mime/package.json" - }, - { - "path": "node_modules/terser/package.json" - }, - { - "path": "node_modules/terser/node_modules/source-map-support/package.json" - }, - { - "path": "node_modules/terser/node_modules/source-map/package.json" - }, - { - "path": "node_modules/emojis-list/package.json" - }, - { - "path": "node_modules/yargs-unparser/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/color-name/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/emoji-regex/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/string-width/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/cliui/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/p-locate/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/locate-path/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/ansi-styles/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/is-fullwidth-code-point/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/find-up/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/wrap-ansi/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/path-exists/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/yargs/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/color-convert/package.json" - }, - { - "path": "node_modules/yargs-unparser/node_modules/yargs-parser/package.json" - }, - { - "path": "node_modules/minimalistic-crypto-utils/package.json" - }, - { - "path": "node_modules/lines-and-columns/package.json" - }, - { - "path": "node_modules/minimalistic-assert/package.json" - }, - { - "path": "node_modules/is-url/package.json" - }, - { - "path": "node_modules/is-data-descriptor/package.json" - }, - { - "path": "node_modules/is-data-descriptor/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/is-data-descriptor/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/chalk/package.json" - }, - { - "path": "node_modules/chalk/node_modules/color-name/package.json" - }, - { - "path": "node_modules/chalk/node_modules/has-flag/package.json" - }, - { - "path": "node_modules/chalk/node_modules/ansi-styles/package.json" - }, - { - "path": "node_modules/chalk/node_modules/supports-color/package.json" - }, - { - "path": "node_modules/chalk/node_modules/color-convert/package.json" - }, - { - "path": "node_modules/locate-path/package.json" - }, - { - "path": "node_modules/spdx-expression-parse/package.json" - }, - { - "path": "node_modules/power-assert-util-string-width/package.json" - }, - { - "path": "node_modules/esquery/package.json" - }, - { - "path": "node_modules/to-readable-stream/package.json" - }, - { - "path": "node_modules/jsdoc-fresh/package.json" - }, - { - "path": "node_modules/jsdoc-fresh/node_modules/taffydb/package.json" - }, - { - "path": "node_modules/espower-location-detector/package.json" - }, - { - "path": "node_modules/espower-location-detector/node_modules/source-map/package.json" - }, - { - "path": "node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/is-arrayish/package.json" - }, - { - "path": "node_modules/prettier-linter-helpers/package.json" - }, - { - "path": "node_modules/chardet/package.json" - }, - { - "path": "node_modules/amdefine/package.json" - }, - { - "path": "node_modules/http-cache-semantics/package.json" - }, - { - "path": "node_modules/concat-stream/package.json" - }, - { - "path": "node_modules/has-flag/package.json" - }, - { - "path": "node_modules/cheerio/package.json" - }, - { - "path": "node_modules/domelementtype/package.json" - }, - { - "path": "node_modules/npm-normalize-package-bin/package.json" - }, - { - "path": "node_modules/diffie-hellman/package.json" - }, - { - "path": "node_modules/@szmarczak/http-timer/package.json" - }, - { - "path": "node_modules/tmp/package.json" - }, - { - "path": "node_modules/entities/package.json" - }, - { - "path": "node_modules/execa/package.json" - }, - { - "path": "node_modules/execa/node_modules/lru-cache/package.json" - }, - { - "path": "node_modules/execa/node_modules/yallist/package.json" - }, - { - "path": "node_modules/execa/node_modules/shebang-command/package.json" - }, - { - "path": "node_modules/execa/node_modules/is-stream/package.json" - }, - { - "path": "node_modules/execa/node_modules/which/package.json" - }, - { - "path": "node_modules/execa/node_modules/shebang-regex/package.json" - }, - { - "path": "node_modules/execa/node_modules/cross-spawn/package.json" - }, - { - "path": "node_modules/is-accessor-descriptor/package.json" - }, - { - "path": "node_modules/is-accessor-descriptor/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/is-accessor-descriptor/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/strip-bom/package.json" - }, - { - "path": "node_modules/argparse/package.json" - }, - { - "path": "node_modules/has/package.json" - }, - { - "path": "node_modules/ee-first/package.json" - }, - { - "path": "node_modules/serialize-javascript/package.json" - }, - { - "path": "node_modules/sha.js/sha512.js" - }, - { - "path": "node_modules/sha.js/bin.js" - }, - { - "path": "node_modules/sha.js/index.js" - }, - { - "path": "node_modules/sha.js/README.md" - }, - { - "path": "node_modules/sha.js/sha.js" - }, - { - "path": "node_modules/sha.js/sha256.js" - }, - { - "path": "node_modules/sha.js/hash.js" - }, - { - "path": "node_modules/sha.js/.travis.yml" - }, - { - "path": "node_modules/sha.js/package.json" - }, - { - "path": "node_modules/sha.js/sha384.js" - }, - { - "path": "node_modules/sha.js/sha1.js" - }, - { - "path": "node_modules/sha.js/LICENSE" - }, - { - "path": "node_modules/sha.js/sha224.js" - }, - { - "path": "node_modules/sha.js/test/test.js" - }, - { - "path": "node_modules/sha.js/test/hash.js" - }, - { - "path": "node_modules/sha.js/test/vectors.js" - }, - { - "path": "node_modules/object-inspect/package.json" - }, - { - "path": "node_modules/deep-equal/package.json" - }, - { - "path": "node_modules/create-hash/package.json" - }, - { - "path": "node_modules/table/package.json" - }, - { - "path": "node_modules/table/node_modules/emoji-regex/package.json" - }, - { - "path": "node_modules/table/node_modules/string-width/package.json" - }, - { - "path": "node_modules/table/node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/table/node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/table/node_modules/is-fullwidth-code-point/package.json" - }, - { - "path": "node_modules/spdx-correct/package.json" - }, - { - "path": "node_modules/get-stream/package.json" - }, - { - "path": "node_modules/expand-tilde/package.json" - }, - { - "path": "node_modules/chownr/package.json" - }, - { - "path": "node_modules/power-assert/package.json" - }, - { - "path": "node_modules/expand-brackets/package.json" - }, - { - "path": "node_modules/expand-brackets/node_modules/define-property/package.json" - }, - { - "path": "node_modules/expand-brackets/node_modules/debug/package.json" - }, - { - "path": "node_modules/expand-brackets/node_modules/ms/package.json" - }, - { - "path": "node_modules/expand-brackets/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/statuses/package.json" - }, - { - "path": "node_modules/browserify-rsa/package.json" - }, - { - "path": "node_modules/@istanbuljs/schema/package.json" - }, - { - "path": "node_modules/es6-set/package.json" - }, - { - "path": "node_modules/es6-set/node_modules/es6-symbol/package.json" - }, - { - "path": "node_modules/parse-passwd/package.json" - }, - { - "path": "node_modules/istanbul-reports/package.json" - }, - { - "path": "node_modules/browserify-sign/package.json" - }, - { - "path": "node_modules/enhanced-resolve/package.json" - }, - { - "path": "node_modules/@grpc/grpc-js/package.json" - }, - { - "path": "node_modules/@grpc/grpc-js/node_modules/semver/package.json" - }, - { - "path": "node_modules/@grpc/proto-loader/package.json" - }, - { - "path": "node_modules/lowercase-keys/package.json" - }, - { - "path": "node_modules/etag/package.json" - }, - { - "path": "node_modules/y18n/package.json" - }, - { - "path": "node_modules/diff-match-patch/package.json" - }, - { - "path": "node_modules/es6-iterator/package.json" - }, - { - "path": "node_modules/eslint-plugin-node/package.json" - }, - { - "path": "node_modules/eslint-plugin-node/node_modules/ignore/package.json" - }, - { - "path": "node_modules/eslint-plugin-node/node_modules/semver/package.json" - }, - { - "path": "node_modules/eslint-plugin-node/node_modules/eslint-utils/package.json" - }, - { - "path": "node_modules/natural-compare/package.json" - }, - { - "path": "node_modules/event-target-shim/package.json" - }, - { - "path": "node_modules/url/package.json" - }, - { - "path": "node_modules/url/node_modules/punycode/package.json" - }, - { - "path": "node_modules/pako/package.json" - }, - { - "path": "node_modules/arrify/package.json" - }, - { - "path": "node_modules/widest-line/package.json" - }, - { - "path": "node_modules/widest-line/node_modules/string-width/package.json" - }, - { - "path": "node_modules/widest-line/node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/widest-line/node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/widest-line/node_modules/is-fullwidth-code-point/package.json" - }, - { - "path": "node_modules/ignore-walk/package.json" - }, - { - "path": "node_modules/errno/package.json" - }, - { - "path": "node_modules/util-deprecate/package.json" - }, - { - "path": "node_modules/function-bind/package.json" - }, - { - "path": "node_modules/object-is/package.json" - }, - { - "path": "node_modules/@types/color-name/package.json" - }, - { - "path": "node_modules/@types/node/package.json" - }, - { - "path": "node_modules/@types/istanbul-lib-coverage/package.json" - }, - { - "path": "node_modules/@types/normalize-package-data/package.json" - }, - { - "path": "node_modules/@types/is-windows/package.json" - }, - { - "path": "node_modules/@types/mocha/package.json" - }, - { - "path": "node_modules/@types/minimist/package.json" - }, - { - "path": "node_modules/@types/fs-extra/package.json" - }, - { - "path": "node_modules/@types/fs-extra/node_modules/@types/node/package.json" - }, - { - "path": "node_modules/@types/long/package.json" - }, - { - "path": "node_modules/is-windows/package.json" - }, - { - "path": "node_modules/levn/package.json" - }, - { - "path": "node_modules/pseudomap/package.json" - }, - { - "path": "node_modules/global-dirs/package.json" - }, - { - "path": "node_modules/picomatch/package.json" - }, - { - "path": "node_modules/power-assert-renderer-diagram/package.json" - }, - { - "path": "node_modules/webpack-cli/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/v8-compile-cache/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/color-name/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/emoji-regex/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/string-width/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/cliui/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/p-locate/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/path-key/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/shebang-command/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/locate-path/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/has-flag/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/enhanced-resolve/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/ansi-styles/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/which/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/shebang-regex/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/semver/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/supports-color/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/is-fullwidth-code-point/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/find-up/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/cross-spawn/index.js" - }, - { - "path": "node_modules/webpack-cli/node_modules/cross-spawn/README.md" - }, - { - "path": "node_modules/webpack-cli/node_modules/cross-spawn/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/cross-spawn/LICENSE" - }, - { - "path": "node_modules/webpack-cli/node_modules/cross-spawn/CHANGELOG.md" - }, - { - "path": "node_modules/webpack-cli/node_modules/cross-spawn/lib/parse.js" - }, - { - "path": "node_modules/webpack-cli/node_modules/cross-spawn/lib/enoent.js" - }, - { - "path": "node_modules/webpack-cli/node_modules/cross-spawn/lib/util/escape.js" - }, - { - "path": "node_modules/webpack-cli/node_modules/cross-spawn/lib/util/resolveCommand.js" - }, - { - "path": "node_modules/webpack-cli/node_modules/cross-spawn/lib/util/readShebang.js" - }, - { - "path": "node_modules/webpack-cli/node_modules/wrap-ansi/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/path-exists/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/yargs/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/color-convert/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/yargs-parser/package.json" - }, - { - "path": "node_modules/webpack-cli/node_modules/memory-fs/package.json" - }, - { - "path": "node_modules/is-stream/package.json" - }, - { - "path": "node_modules/component-emitter/package.json" - }, - { - "path": "node_modules/es6-symbol/package.json" - }, - { - "path": "node_modules/parse-json/package.json" - }, - { - "path": "node_modules/xdg-basedir/package.json" - }, - { - "path": "node_modules/spdx-license-ids/package.json" - }, - { - "path": "node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/extend-shallow/node_modules/is-extendable/package.json" - }, - { - "path": "node_modules/browserify-cipher/package.json" - }, - { - "path": "node_modules/ssri/package.json" - }, - { - "path": "node_modules/google-auth-library/package.json" - }, - { - "path": "node_modules/webpack/package.json" - }, - { - "path": "node_modules/webpack/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/webpack/node_modules/fill-range/package.json" - }, - { - "path": "node_modules/webpack/node_modules/fill-range/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/webpack/node_modules/is-number/package.json" - }, - { - "path": "node_modules/webpack/node_modules/is-number/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/webpack/node_modules/eslint-scope/package.json" - }, - { - "path": "node_modules/webpack/node_modules/micromatch/index.js" - }, - { - "path": "node_modules/webpack/node_modules/micromatch/README.md" - }, - { - "path": "node_modules/webpack/node_modules/micromatch/package.json" - }, - { - "path": "node_modules/webpack/node_modules/micromatch/LICENSE" - }, - { - "path": "node_modules/webpack/node_modules/micromatch/CHANGELOG.md" - }, - { - "path": "node_modules/webpack/node_modules/micromatch/lib/parsers.js" - }, - { - "path": "node_modules/webpack/node_modules/micromatch/lib/.DS_Store" - }, - { - "path": "node_modules/webpack/node_modules/micromatch/lib/compilers.js" - }, - { - "path": "node_modules/webpack/node_modules/micromatch/lib/utils.js" - }, - { - "path": "node_modules/webpack/node_modules/micromatch/lib/cache.js" - }, - { - "path": "node_modules/webpack/node_modules/acorn/package.json" - }, - { - "path": "node_modules/webpack/node_modules/braces/package.json" - }, - { - "path": "node_modules/webpack/node_modules/braces/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/webpack/node_modules/to-regex-range/package.json" - }, - { - "path": "node_modules/webpack/node_modules/memory-fs/package.json" - }, - { - "path": "node_modules/split-string/package.json" - }, - { - "path": "node_modules/brace-expansion/package.json" - }, - { - "path": "node_modules/posix-character-classes/package.json" - }, - { - "path": "node_modules/builtin-modules/package.json" - }, - { - "path": "node_modules/static-extend/package.json" - }, - { - "path": "node_modules/static-extend/node_modules/define-property/package.json" - }, - { - "path": "node_modules/process/package.json" - }, - { - "path": "node_modules/tslint/package.json" - }, - { - "path": "node_modules/tslint/node_modules/semver/package.json" - }, - { - "path": "node_modules/type-name/package.json" - }, - { - "path": "node_modules/define-properties/package.json" - }, - { - "path": "node_modules/universal-deep-strict-equal/package.json" - }, - { - "path": "node_modules/jws/package.json" - }, - { - "path": "node_modules/minipass/package.json" - }, - { - "path": "node_modules/minipass/node_modules/yallist/package.json" - }, - { - "path": "node_modules/nth-check/package.json" - }, - { - "path": "node_modules/@xtuc/ieee754/package.json" - }, - { - "path": "node_modules/@xtuc/long/package.json" - }, - { - "path": "node_modules/p-defer/package.json" - }, - { - "path": "node_modules/empower/package.json" - }, - { - "path": "node_modules/nanomatch/package.json" - }, - { - "path": "node_modules/send/package.json" - }, - { - "path": "node_modules/send/node_modules/debug/package.json" - }, - { - "path": "node_modules/send/node_modules/debug/node_modules/ms/package.json" - }, - { - "path": "node_modules/send/node_modules/ms/package.json" - }, - { - "path": "node_modules/send/node_modules/mime/package.json" - }, - { - "path": "node_modules/require-directory/package.json" - }, - { - "path": "node_modules/object.assign/package.json" - }, - { - "path": "node_modules/is-npm/package.json" - }, - { - "path": "node_modules/fs-minipass/package.json" - }, - { - "path": "node_modules/browserify-des/package.json" - }, - { - "path": "node_modules/min-indent/package.json" - }, - { - "path": "node_modules/functional-red-black-tree/package.json" - }, - { - "path": "node_modules/read-pkg/package.json" - }, - { - "path": "node_modules/fs-write-stream-atomic/package.json" - }, - { - "path": "node_modules/registry-url/package.json" - }, - { - "path": "node_modules/is-regex/package.json" - }, - { - "path": "node_modules/es-abstract/package.json" - }, - { - "path": "node_modules/querystring-es3/package.json" - }, - { - "path": "node_modules/parent-module/package.json" - }, - { - "path": "node_modules/create-ecdh/package.json" - }, - { - "path": "node_modules/map-age-cleaner/package.json" - }, - { - "path": "node_modules/hash.js/package.json" - }, - { - "path": "node_modules/signal-exit/package.json" - }, - { - "path": "node_modules/import-fresh/package.json" - }, - { - "path": "node_modules/hash-base/package.json" - }, - { - "path": "node_modules/keyv/package.json" - }, - { - "path": "node_modules/ret/package.json" - }, - { - "path": "node_modules/md5.js/package.json" - }, - { - "path": "node_modules/estraverse/package.json" - }, - { - "path": "node_modules/fast-deep-equal/package.json" - }, - { - "path": "node_modules/mute-stream/package.json" - }, - { - "path": "node_modules/power-assert-context-traversal/package.json" - }, - { - "path": "node_modules/rimraf/package.json" - }, - { - "path": "node_modules/is-installed-globally/package.json" - }, - { - "path": "node_modules/get-stdin/package.json" - }, - { - "path": "node_modules/make-dir/package.json" - }, - { - "path": "node_modules/make-dir/node_modules/semver/package.json" - }, - { - "path": "node_modules/es6-promise/package.json" - }, - { - "path": "node_modules/os-tmpdir/package.json" - }, - { - "path": "node_modules/run-queue/package.json" - }, - { - "path": "node_modules/anymatch/package.json" - }, - { - "path": "node_modules/anymatch/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/anymatch/node_modules/fill-range/package.json" - }, - { - "path": "node_modules/anymatch/node_modules/fill-range/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/anymatch/node_modules/is-number/package.json" - }, - { - "path": "node_modules/anymatch/node_modules/is-number/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/anymatch/node_modules/micromatch/index.js" - }, - { - "path": "node_modules/anymatch/node_modules/micromatch/README.md" - }, - { - "path": "node_modules/anymatch/node_modules/micromatch/package.json" - }, - { - "path": "node_modules/anymatch/node_modules/micromatch/LICENSE" - }, - { - "path": "node_modules/anymatch/node_modules/micromatch/CHANGELOG.md" - }, - { - "path": "node_modules/anymatch/node_modules/micromatch/lib/parsers.js" - }, - { - "path": "node_modules/anymatch/node_modules/micromatch/lib/.DS_Store" - }, - { - "path": "node_modules/anymatch/node_modules/micromatch/lib/compilers.js" - }, - { - "path": "node_modules/anymatch/node_modules/micromatch/lib/utils.js" - }, - { - "path": "node_modules/anymatch/node_modules/micromatch/lib/cache.js" - }, - { - "path": "node_modules/anymatch/node_modules/braces/package.json" - }, - { - "path": "node_modules/anymatch/node_modules/braces/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/anymatch/node_modules/to-regex-range/package.json" - }, - { - "path": "node_modules/anymatch/node_modules/normalize-path/package.json" - }, - { - "path": "node_modules/retry-request/package.json" - }, - { - "path": "node_modules/retry-request/node_modules/debug/package.json" - }, - { - "path": "node_modules/cli-cursor/package.json" - }, - { - "path": "node_modules/ext/package.json" - }, - { - "path": "node_modules/ext/node_modules/type/package.json" - }, - { - "path": "node_modules/is-symbol/package.json" - }, - { - "path": "node_modules/css-what/package.json" - }, - { - "path": "node_modules/punycode/package.json" - }, - { - "path": "node_modules/os-locale/package.json" - }, - { - "path": "node_modules/os-locale/node_modules/path-key/package.json" - }, - { - "path": "node_modules/os-locale/node_modules/shebang-command/package.json" - }, - { - "path": "node_modules/os-locale/node_modules/execa/package.json" - }, - { - "path": "node_modules/os-locale/node_modules/get-stream/package.json" - }, - { - "path": "node_modules/os-locale/node_modules/is-stream/package.json" - }, - { - "path": "node_modules/os-locale/node_modules/which/package.json" - }, - { - "path": "node_modules/os-locale/node_modules/shebang-regex/package.json" - }, - { - "path": "node_modules/os-locale/node_modules/semver/package.json" - }, - { - "path": "node_modules/os-locale/node_modules/cross-spawn/index.js" - }, - { - "path": "node_modules/os-locale/node_modules/cross-spawn/README.md" - }, - { - "path": "node_modules/os-locale/node_modules/cross-spawn/package.json" - }, - { - "path": "node_modules/os-locale/node_modules/cross-spawn/LICENSE" - }, - { - "path": "node_modules/os-locale/node_modules/cross-spawn/CHANGELOG.md" - }, - { - "path": "node_modules/os-locale/node_modules/cross-spawn/lib/parse.js" - }, - { - "path": "node_modules/os-locale/node_modules/cross-spawn/lib/enoent.js" - }, - { - "path": "node_modules/os-locale/node_modules/cross-spawn/lib/util/escape.js" - }, - { - "path": "node_modules/os-locale/node_modules/cross-spawn/lib/util/resolveCommand.js" - }, - { - "path": "node_modules/os-locale/node_modules/cross-spawn/lib/util/readShebang.js" - }, - { - "path": "node_modules/setprototypeof/package.json" - }, - { - "path": "node_modules/mixin-deep/package.json" - }, - { - "path": "node_modules/mixin-deep/node_modules/is-extendable/package.json" - }, - { - "path": "node_modules/word-wrap/package.json" - }, - { - "path": "node_modules/foreground-child/package.json" - }, - { - "path": "node_modules/has-values/package.json" - }, - { - "path": "node_modules/has-values/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/has-values/node_modules/is-number/package.json" - }, - { - "path": "node_modules/has-values/node_modules/is-number/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/has-values/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/pumpify/package.json" - }, - { - "path": "node_modules/pumpify/node_modules/pump/package.json" - }, - { - "path": "node_modules/es6-map/package.json" - }, - { - "path": "node_modules/detect-file/package.json" - }, - { - "path": "node_modules/source-map-url/package.json" - }, - { - "path": "node_modules/call-signature/package.json" - }, - { - "path": "node_modules/package-json/package.json" - }, - { - "path": "node_modules/package-json/node_modules/semver/package.json" - }, - { - "path": "node_modules/css-select/package.json" - }, - { - "path": "node_modules/path-is-inside/package.json" - }, - { - "path": "node_modules/eslint-plugin-prettier/package.json" - }, - { - "path": "node_modules/p-finally/package.json" - }, - { - "path": "node_modules/inquirer/package.json" - }, - { - "path": "node_modules/inquirer/node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/inquirer/node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/acorn-jsx/package.json" - }, - { - "path": "node_modules/binary-extensions/package.json" - }, - { - "path": "node_modules/glob/package.json" - }, - { - "path": "node_modules/mocha/package.json" - }, - { - "path": "node_modules/mocha/node_modules/diff/package.json" - }, - { - "path": "node_modules/mocha/node_modules/color-name/package.json" - }, - { - "path": "node_modules/mocha/node_modules/emoji-regex/package.json" - }, - { - "path": "node_modules/mocha/node_modules/ms/package.json" - }, - { - "path": "node_modules/mocha/node_modules/string-width/package.json" - }, - { - "path": "node_modules/mocha/node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/mocha/node_modules/cliui/package.json" - }, - { - "path": "node_modules/mocha/node_modules/p-locate/package.json" - }, - { - "path": "node_modules/mocha/node_modules/locate-path/package.json" - }, - { - "path": "node_modules/mocha/node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/mocha/node_modules/has-flag/package.json" - }, - { - "path": "node_modules/mocha/node_modules/glob/package.json" - }, - { - "path": "node_modules/mocha/node_modules/ansi-styles/package.json" - }, - { - "path": "node_modules/mocha/node_modules/which/package.json" - }, - { - "path": "node_modules/mocha/node_modules/supports-color/package.json" - }, - { - "path": "node_modules/mocha/node_modules/is-fullwidth-code-point/package.json" - }, - { - "path": "node_modules/mocha/node_modules/find-up/package.json" - }, - { - "path": "node_modules/mocha/node_modules/wrap-ansi/package.json" - }, - { - "path": "node_modules/mocha/node_modules/path-exists/package.json" - }, - { - "path": "node_modules/mocha/node_modules/yargs/package.json" - }, - { - "path": "node_modules/mocha/node_modules/color-convert/package.json" - }, - { - "path": "node_modules/mocha/node_modules/strip-json-comments/package.json" - }, - { - "path": "node_modules/mocha/node_modules/yargs-parser/package.json" - }, - { - "path": "node_modules/loud-rejection/package.json" - }, - { - "path": "node_modules/event-emitter/package.json" - }, - { - "path": "node_modules/@protobufjs/codegen/package.json" - }, - { - "path": "node_modules/@protobufjs/base64/package.json" - }, - { - "path": "node_modules/@protobufjs/utf8/package.json" - }, - { - "path": "node_modules/@protobufjs/pool/package.json" - }, - { - "path": "node_modules/@protobufjs/float/package.json" - }, - { - "path": "node_modules/@protobufjs/fetch/package.json" - }, - { - "path": "node_modules/@protobufjs/path/package.json" - }, - { - "path": "node_modules/@protobufjs/aspromise/package.json" - }, - { - "path": "node_modules/@protobufjs/inquire/package.json" - }, - { - "path": "node_modules/@protobufjs/eventemitter/package.json" - }, - { - "path": "node_modules/prr/package.json" - }, - { - "path": "node_modules/node-forge/package.json" - }, - { - "path": "node_modules/lodash.has/package.json" - }, - { - "path": "node_modules/global-modules/package.json" - }, - { - "path": "node_modules/global-modules/node_modules/global-prefix/package.json" - }, - { - "path": "node_modules/global-modules/node_modules/which/package.json" - }, - { - "path": "node_modules/des.js/package.json" - }, - { - "path": "node_modules/source-map-support/package.json" - }, - { - "path": "node_modules/source-map-support/node_modules/source-map/package.json" - }, - { - "path": "node_modules/schema-utils/package.json" - }, - { - "path": "node_modules/object-assign/package.json" - }, - { - "path": "node_modules/has-symbols/package.json" - }, - { - "path": "node_modules/find-cache-dir/package.json" - }, - { - "path": "node_modules/find-cache-dir/node_modules/make-dir/package.json" - }, - { - "path": "node_modules/find-cache-dir/node_modules/pify/package.json" - }, - { - "path": "node_modules/find-cache-dir/node_modules/semver/package.json" - }, - { - "path": "node_modules/unique-slug/package.json" - }, - { - "path": "node_modules/espurify/package.json" - }, - { - "path": "node_modules/lodash.at/package.json" - }, - { - "path": "node_modules/ansi-styles/package.json" - }, - { - "path": "node_modules/merge-estraverse-visitors/package.json" - }, - { - "path": "node_modules/for-in/package.json" - }, - { - "path": "node_modules/to-object-path/package.json" - }, - { - "path": "node_modules/to-object-path/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/to-object-path/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/ansi-colors/package.json" - }, - { - "path": "node_modules/brorand/package.json" - }, - { - "path": "node_modules/findup-sync/package.json" - }, - { - "path": "node_modules/findup-sync/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/findup-sync/node_modules/fill-range/package.json" - }, - { - "path": "node_modules/findup-sync/node_modules/fill-range/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/findup-sync/node_modules/is-number/package.json" - }, - { - "path": "node_modules/findup-sync/node_modules/is-number/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/findup-sync/node_modules/micromatch/index.js" - }, - { - "path": "node_modules/findup-sync/node_modules/micromatch/README.md" - }, - { - "path": "node_modules/findup-sync/node_modules/micromatch/package.json" - }, - { - "path": "node_modules/findup-sync/node_modules/micromatch/LICENSE" - }, - { - "path": "node_modules/findup-sync/node_modules/micromatch/CHANGELOG.md" - }, - { - "path": "node_modules/findup-sync/node_modules/micromatch/lib/parsers.js" - }, - { - "path": "node_modules/findup-sync/node_modules/micromatch/lib/.DS_Store" - }, - { - "path": "node_modules/findup-sync/node_modules/micromatch/lib/compilers.js" - }, - { - "path": "node_modules/findup-sync/node_modules/micromatch/lib/utils.js" - }, - { - "path": "node_modules/findup-sync/node_modules/micromatch/lib/cache.js" - }, - { - "path": "node_modules/findup-sync/node_modules/braces/package.json" - }, - { - "path": "node_modules/findup-sync/node_modules/braces/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/findup-sync/node_modules/to-regex-range/package.json" - }, - { - "path": "node_modules/p-try/package.json" - }, - { - "path": "node_modules/escope/package.json" - }, - { - "path": "node_modules/evp_bytestokey/package.json" - }, - { - "path": "node_modules/json-parse-better-errors/package.json" - }, - { - "path": "node_modules/worker-farm/package.json" - }, - { - "path": "node_modules/ieee754/package.json" - }, - { - "path": "node_modules/chokidar/package.json" - }, - { - "path": "node_modules/chokidar/node_modules/is-buffer/package.json" - }, - { - "path": "node_modules/chokidar/node_modules/glob-parent/package.json" - }, - { - "path": "node_modules/chokidar/node_modules/glob-parent/node_modules/is-glob/package.json" - }, - { - "path": "node_modules/chokidar/node_modules/fill-range/package.json" - }, - { - "path": "node_modules/chokidar/node_modules/is-number/package.json" - }, - { - "path": "node_modules/chokidar/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/chokidar/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/chokidar/node_modules/braces/package.json" - }, - { - "path": "node_modules/chokidar/node_modules/to-regex-range/package.json" - }, - { - "path": "node_modules/readable-stream/package.json" - }, - { - "path": "node_modules/abort-controller/package.json" - }, - { - "path": "node_modules/which/package.json" - }, - { - "path": "node_modules/astral-regex/package.json" - }, - { - "path": "node_modules/escodegen/package.json" - }, - { - "path": "node_modules/escodegen/node_modules/esprima/package.json" - }, - { - "path": "node_modules/escodegen/node_modules/source-map/package.json" - }, - { - "path": "node_modules/minimist/package.json" - }, - { - "path": "node_modules/elliptic/package.json" - }, - { - "path": "node_modules/clone-response/package.json" - }, - { - "path": "node_modules/ecdsa-sig-formatter/package.json" - }, - { - "path": "node_modules/requizzle/package.json" - }, - { - "path": "node_modules/base64-js/package.json" - }, - { - "path": "node_modules/async-each/package.json" - }, - { - "path": "node_modules/pify/package.json" - }, - { - "path": "node_modules/object-keys/package.json" - }, - { - "path": "node_modules/trim-newlines/package.json" - }, - { - "path": "node_modules/deep-is/package.json" - }, - { - "path": "node_modules/fast-levenshtein/package.json" - }, - { - "path": "node_modules/urix/package.json" - }, - { - "path": "node_modules/typescript/package.json" - }, - { - "path": "node_modules/shebang-regex/package.json" - }, - { - "path": "node_modules/regex-not/package.json" - }, - { - "path": "node_modules/eslint-plugin-es/package.json" - }, - { - "path": "node_modules/eslint-plugin-es/node_modules/eslint-utils/package.json" - }, - { - "path": "node_modules/eslint-plugin-es/node_modules/regexpp/package.json" - }, - { - "path": "node_modules/util/package.json" - }, - { - "path": "node_modules/util/node_modules/inherits/package.json" - }, - { - "path": "node_modules/mem/package.json" - }, - { - "path": "node_modules/semver/package.json" - }, - { - "path": "node_modules/unique-string/package.json" - }, - { - "path": "node_modules/unique-filename/package.json" - }, - { - "path": "node_modules/decamelize/package.json" - }, - { - "path": "node_modules/node-libs-browser/package.json" - }, - { - "path": "node_modules/node-libs-browser/node_modules/punycode/package.json" - }, - { - "path": "node_modules/ajv-keywords/package.json" - }, - { - "path": "node_modules/is-descriptor/package.json" - }, - { - "path": "node_modules/is-descriptor/node_modules/kind-of/package.json" - }, - { - "path": "node_modules/arr-union/package.json" - }, - { - "path": "node_modules/acorn/package.json" - }, - { - "path": "node_modules/wide-align/package.json" - }, - { - "path": "node_modules/wide-align/node_modules/string-width/package.json" - }, - { - "path": "node_modules/wide-align/node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/wide-align/node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/wide-align/node_modules/is-fullwidth-code-point/package.json" - }, - { - "path": "node_modules/got/package.json" - }, - { - "path": "node_modules/got/node_modules/get-stream/package.json" - }, - { - "path": "node_modules/sprintf-js/package.json" - }, - { - "path": "node_modules/ts-loader/package.json" - }, - { - "path": "node_modules/ts-loader/node_modules/semver/package.json" - }, - { - "path": "node_modules/isarray/package.json" - }, - { - "path": "node_modules/string_decoder/package.json" - }, - { - "path": "node_modules/strip-eof/package.json" - }, - { - "path": "node_modules/p-limit/package.json" - }, - { - "path": "node_modules/url-parse-lax/package.json" - }, - { - "path": "node_modules/gts/package.json" - }, - { - "path": "node_modules/gts/node_modules/chalk/package.json" - }, - { - "path": "node_modules/commander/package.json" - }, - { - "path": "node_modules/mimic-fn/package.json" - }, - { - "path": "node_modules/https-proxy-agent/package.json" - }, - { - "path": "node_modules/ini/package.json" - }, - { - "path": "node_modules/js2xmlparser/package.json" - }, - { - "path": "node_modules/spdx-exceptions/package.json" - }, - { - "path": "node_modules/external-editor/package.json" - }, - { - "path": "node_modules/power-assert-formatter/package.json" - }, - { - "path": "node_modules/domain-browser/package.json" - }, - { - "path": "node_modules/eslint-utils/package.json" - }, - { - "path": "node_modules/buffer-xor/package.json" - }, - { - "path": "node_modules/text-table/package.json" - }, - { - "path": "node_modules/domutils/package.json" - }, - { - "path": "node_modules/supports-color/package.json" - }, - { - "path": "node_modules/strip-indent/package.json" - }, - { - "path": "node_modules/buffer/package.json" - }, - { - "path": "node_modules/fs.realpath/package.json" - }, - { - "path": "node_modules/parse5/package.json" - }, - { - "path": "node_modules/decamelize-keys/package.json" - }, - { - "path": "node_modules/decamelize-keys/node_modules/map-obj/package.json" - }, - { - "path": "node_modules/empower-core/package.json" - }, - { - "path": "node_modules/is-plain-object/package.json" - }, - { - "path": "node_modules/terser-webpack-plugin/package.json" - }, - { - "path": "node_modules/terser-webpack-plugin/node_modules/source-map/package.json" - }, - { - "path": "node_modules/acorn-es7-plugin/package.json" - }, - { - "path": "node_modules/iferr/package.json" - }, - { - "path": "node_modules/figgy-pudding/package.json" - }, - { - "path": "node_modules/webpack-sources/package.json" - }, - { - "path": "node_modules/webpack-sources/node_modules/source-map/package.json" - }, - { - "path": "node_modules/p-timeout/package.json" - }, - { - "path": "node_modules/upath/package.json" - }, - { - "path": "node_modules/neo-async/package.json" - }, - { - "path": "node_modules/espree/package.json" - }, - { - "path": "node_modules/is-fullwidth-code-point/package.json" - }, - { - "path": "node_modules/responselike/package.json" - }, - { - "path": "node_modules/next-tick/package.json" - }, - { - "path": "node_modules/esrecurse/package.json" - }, - { - "path": "node_modules/stream-http/package.json" - }, - { - "path": "node_modules/promise-inflight/package.json" - }, - { - "path": "node_modules/bignumber.js/package.json" - }, - { - "path": "node_modules/source-map/package.json" - }, - { - "path": "node_modules/find-up/package.json" - }, - { - "path": "node_modules/traverse/package.json" - }, - { - "path": "node_modules/es-to-primitive/package.json" - }, - { - "path": "node_modules/rc/package.json" - }, - { - "path": "node_modules/rc/node_modules/minimist/package.json" - }, - { - "path": "node_modules/rc/node_modules/strip-json-comments/package.json" - }, - { - "path": "node_modules/safe-buffer/package.json" - }, - { - "path": "node_modules/uc.micro/package.json" - }, - { - "path": "node_modules/flat-cache/package.json" - }, - { - "path": "node_modules/flat-cache/node_modules/rimraf/package.json" - }, - { - "path": "node_modules/once/package.json" - }, - { - "path": "node_modules/gtoken/package.json" - }, - { - "path": "node_modules/convert-source-map/package.json" - }, - { - "path": "node_modules/is-date-object/package.json" - }, - { - "path": "node_modules/tslint-config-prettier/package.json" - }, - { - "path": "node_modules/import-local/package.json" - }, - { - "path": "node_modules/escape-string-regexp/package.json" - }, - { - "path": "node_modules/flush-write-stream/package.json" - }, - { - "path": "node_modules/braces/package.json" - }, - { - "path": "node_modules/iconv-lite/package.json" - }, - { - "path": "node_modules/json5/package.json" - }, - { - "path": "node_modules/json5/node_modules/minimist/package.json" - }, - { - "path": "node_modules/get-value/package.json" - }, - { - "path": "node_modules/is-glob/package.json" - }, - { - "path": "node_modules/furi/package.json" - }, - { - "path": "node_modules/tslib/package.json" - }, - { - "path": "node_modules/map-visit/package.json" - }, - { - "path": "node_modules/ripemd160/package.json" - }, - { - "path": "node_modules/watchpack/package.json" - }, - { - "path": "node_modules/stream-browserify/package.json" - }, - { - "path": "node_modules/markdown-it-anchor/package.json" - }, - { - "path": "node_modules/browser-stdout/package.json" - }, - { - "path": "node_modules/array-unique/package.json" - }, - { - "path": "node_modules/ajv-errors/package.json" - }, - { - "path": "node_modules/path-type/package.json" - }, - { - "path": "node_modules/to-regex-range/package.json" - }, - { - "path": "node_modules/randomfill/package.json" - }, - { - "path": "node_modules/npm-packlist/package.json" - }, - { - "path": "node_modules/copy-concurrently/package.json" - }, - { - "path": "node_modules/copy-concurrently/node_modules/rimraf/package.json" - }, - { - "path": "node_modules/loader-runner/package.json" - }, - { - "path": "node_modules/pump/package.json" - }, - { - "path": "node_modules/process-nextick-args/package.json" - }, - { - "path": "node_modules/deep-extend/package.json" - }, - { - "path": "node_modules/resolve-url/package.json" - }, - { - "path": "node_modules/power-assert-context-reducer-ast/package.json" - }, - { - "path": "node_modules/power-assert-context-reducer-ast/node_modules/acorn/package.json" - }, - { - "path": "node_modules/type-check/package.json" - }, - { - "path": "node_modules/jwa/package.json" - }, - { - "path": "node_modules/walkdir/package.json" - }, - { - "path": "node_modules/hard-rejection/package.json" - }, - { - "path": "node_modules/base/package.json" - }, - { - "path": "node_modules/base/node_modules/define-property/package.json" - }, - { - "path": "node_modules/base/node_modules/is-data-descriptor/package.json" - }, - { - "path": "node_modules/base/node_modules/is-accessor-descriptor/package.json" - }, - { - "path": "node_modules/base/node_modules/is-descriptor/package.json" - }, - { - "path": "node_modules/randombytes/package.json" - }, - { - "path": "node_modules/espower-source/package.json" - }, - { - "path": "node_modules/espower-source/node_modules/acorn/package.json" - }, - { - "path": "node_modules/cross-spawn/package.json" - }, - { - "path": "node_modules/@sindresorhus/is/package.json" - }, - { - "path": "node_modules/resolve-dir/package.json" - }, - { - "path": "node_modules/resolve-dir/node_modules/global-modules/package.json" - }, - { - "path": "node_modules/wrap-ansi/package.json" - }, - { - "path": "node_modules/quick-lru/package.json" - }, - { - "path": "node_modules/path-exists/package.json" - }, - { - "path": "node_modules/jsdoc/package.json" - }, - { - "path": "node_modules/jsdoc/node_modules/escape-string-regexp/package.json" - }, - { - "path": "node_modules/cacheable-request/package.json" - }, - { - "path": "node_modules/cacheable-request/node_modules/get-stream/package.json" - }, - { - "path": "node_modules/cacheable-request/node_modules/lowercase-keys/package.json" - }, - { - "path": "node_modules/escape-html/package.json" - }, - { - "path": "node_modules/power-assert-renderer-assertion/package.json" - }, - { - "path": "node_modules/minimist-options/package.json" - }, - { - "path": "node_modules/minimist-options/node_modules/arrify/package.json" - }, - { - "path": "node_modules/latest-version/package.json" - }, - { - "path": "node_modules/optionator/package.json" - }, - { - "path": "node_modules/parallel-transform/package.json" - }, - { - "path": "node_modules/slice-ansi/package.json" - }, - { - "path": "node_modules/slice-ansi/node_modules/color-name/package.json" - }, - { - "path": "node_modules/slice-ansi/node_modules/ansi-styles/package.json" - }, - { - "path": "node_modules/slice-ansi/node_modules/is-fullwidth-code-point/package.json" - }, - { - "path": "node_modules/slice-ansi/node_modules/color-convert/package.json" - }, - { - "path": "node_modules/power-assert-renderer-comparison/package.json" - }, - { - "path": "node_modules/flatted/package.json" - }, - { - "path": "node_modules/unset-value/package.json" - }, - { - "path": "node_modules/unset-value/node_modules/has-value/package.json" - }, - { - "path": "node_modules/unset-value/node_modules/has-value/node_modules/isobject/package.json" - }, - { - "path": "node_modules/unset-value/node_modules/has-values/package.json" - }, - { - "path": "node_modules/inherits/package.json" - }, - { - "path": "node_modules/depd/package.json" - }, - { - "path": "node_modules/es6-promisify/package.json" - }, - { - "path": "node_modules/long/package.json" - }, - { - "path": "node_modules/regexpp/package.json" - }, - { - "path": "node_modules/cli-width/package.json" - }, - { - "path": "node_modules/call-matcher/package.json" - }, - { - "path": "node_modules/resolve-cwd/package.json" - }, - { - "path": "node_modules/resolve-cwd/node_modules/resolve-from/package.json" - }, - { - "path": "node_modules/eslint/package.json" - }, - { - "path": "node_modules/eslint/node_modules/debug/package.json" - }, - { - "path": "node_modules/eslint/node_modules/ansi-regex/package.json" - }, - { - "path": "node_modules/eslint/node_modules/path-key/package.json" - }, - { - "path": "node_modules/eslint/node_modules/shebang-command/package.json" - }, - { - "path": "node_modules/eslint/node_modules/strip-ansi/package.json" - }, - { - "path": "node_modules/eslint/node_modules/which/package.json" - }, - { - "path": "node_modules/eslint/node_modules/shebang-regex/package.json" - }, - { - "path": "node_modules/eslint/node_modules/semver/package.json" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/index.js" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/README.md" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/package.json" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/LICENSE" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/CHANGELOG.md" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/lib/parse.js" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/lib/enoent.js" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/lib/util/escape.js" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/lib/util/resolveCommand.js" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/lib/util/readShebang.js" - }, - { - "path": "node_modules/eslint/node_modules/cross-spawn/node_modules/semver/package.json" - }, - { - "path": "node_modules/npm-bundled/package.json" - }, - { - "path": "node_modules/is-wsl/package.json" - }, - { - "path": "node_modules/mdurl/package.json" - }, - { - "path": "node_modules/typedarray/package.json" - }, - { - "path": "node_modules/v8-to-istanbul/package.json" - }, - { - "path": "node_modules/espower-loader/package.json" - }, - { - "path": "node_modules/object.getownpropertydescriptors/package.json" - }, - { - "path": "node_modules/cache-base/package.json" - }, - { - "path": "node_modules/array-find-index/package.json" - }, - { - "path": "node_modules/yargs/package.json" - }, - { - "path": "node_modules/ci-info/package.json" - }, - { - "path": "node_modules/miller-rabin/package.json" - }, - { - "path": "node_modules/color-convert/package.json" - }, - { - "path": "node_modules/use/package.json" - }, - { - "path": "node_modules/write-file-atomic/package.json" - }, - { - "path": "node_modules/to-arraybuffer/package.json" - }, - { - "path": "node_modules/extglob/package.json" - }, - { - "path": "node_modules/extglob/node_modules/define-property/package.json" - }, - { - "path": "node_modules/extglob/node_modules/is-data-descriptor/package.json" - }, - { - "path": "node_modules/extglob/node_modules/is-accessor-descriptor/package.json" - }, - { - "path": "node_modules/extglob/node_modules/extend-shallow/package.json" - }, - { - "path": "node_modules/extglob/node_modules/is-descriptor/package.json" - }, - { - "path": "node_modules/eslint-visitor-keys/package.json" - }, - { - "path": "node_modules/to-regex/package.json" - }, - { - "path": "node_modules/path-browserify/package.json" - }, - { - "path": "node_modules/agent-base/package.json" - }, - { - "path": "node_modules/repeat-string/package.json" - }, - { - "path": "node_modules/flat/package.json" - }, - { - "path": "node_modules/through2/package.json" - }, - { - "path": "node_modules/gaxios/package.json" - }, - { - "path": "node_modules/p-queue/package.json" - }, - { - "path": "node_modules/encodeurl/package.json" - }, - { - "path": "node_modules/normalize-path/package.json" - }, - { - "path": "node_modules/js-tokens/package.json" - }, - { - "path": "node_modules/strip-json-comments/package.json" - }, - { - "path": "node_modules/eslint-config-prettier/package.json" - }, - { - "path": "node_modules/uri-js/package.json" - }, - { - "path": "node_modules/test-exclude/package.json" - }, - { - "path": "node_modules/safer-buffer/package.json" - }, - { - "path": "node_modules/prettier/package.json" - }, - { - "path": "node_modules/regexp.prototype.flags/package.json" - }, - { - "path": "node_modules/yargs-parser/package.json" - }, - { - "path": "node_modules/copy-descriptor/package.json" - }, - { - "path": "node_modules/@babel/code-frame/package.json" - }, - { - "path": "node_modules/@babel/highlight/package.json" - }, - { - "path": "node_modules/@babel/parser/package.json" - }, - { - "path": "node_modules/configstore/package.json" - }, - { - "path": "node_modules/configstore/node_modules/make-dir/package.json" - }, - { - "path": "node_modules/configstore/node_modules/write-file-atomic/package.json" - }, - { - "path": "node_modules/is-plain-obj/package.json" - }, - { - "path": "node_modules/eastasianwidth/package.json" - }, - { - "path": "node_modules/memory-fs/package.json" - }, - { - "path": "node_modules/has-yarn/package.json" - }, - { - "path": "node_modules/core-js/package.json" - }, - { - "path": "samples/README.md" - }, - { - "path": "samples/package.json" - }, - { - "path": "samples/quickstart.js" - }, - { - "path": "samples/.eslintrc.yml" - }, - { - "path": "samples/system-test/sample.test.js" - }, - { - "path": "__pycache__/synth.cpython-36.pyc" - }, - { - "path": "smoke-test/.eslintrc.yml" - }, - { - "path": "smoke-test/cluster_manager_smoke_test.js" + "path": "webpack.config.js" } ] } \ No newline at end of file diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index c692bb2f2a0..39349e78150 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -46,5 +46,5 @@ # Node.js specific cleanup subprocess.run(['npm', 'install']) +subprocess.run(['npm', 'run', 'compile-protos']) subprocess.run(['npm', 'run', 'fix']) -subprocess.run(['npm', 'compileProtos', 'src']) From 0c46d524042fc5468547e3002e98741d8c4be3a8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 27 Jan 2020 21:22:35 -0800 Subject: [PATCH 173/371] chore: release 1.6.0 (#274) * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json [ci skip] --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index fd69e9d0757..2a7349d1314 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [1.6.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.5.0...v1.6.0) (2020-01-24) + + +### Features + +* bump release level to GA ([#272](https://www.github.com/googleapis/nodejs-cloud-container/issues/272)) ([0d2d210](https://www.github.com/googleapis/nodejs-cloud-container/commit/0d2d21028e6323fd836e6a7ac166c65d39b7534a)) + ## [1.5.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.4.0...v1.5.0) (2020-01-06) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index cb0ef811b91..c7af234ed48 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.5.0", + "version": "1.6.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 7a297b50699..d8f8ea47b3f 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.5.0" + "@google-cloud/container": "^1.6.0" }, "devDependencies": { "chai": "^4.2.0", From f209a37b978e7086bf3865a4610186e181d302c2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 28 Jan 2020 12:08:22 -0800 Subject: [PATCH 174/371] fix: enum, bytes, and Long types now accept strings --- packages/google-container/protos/protos.d.ts | 96 ++++++++++---------- packages/google-container/synth.metadata | 67 +++++++++++++- 2 files changed, 112 insertions(+), 51 deletions(-) diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 184078648c1..9c9ddbf70d7 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -978,7 +978,7 @@ export namespace google { value?: (string|null); /** NodeTaint effect */ - effect?: (google.container.v1.NodeTaint.Effect|null); + effect?: (google.container.v1.NodeTaint.Effect|keyof typeof google.container.v1.NodeTaint.Effect|null); } /** Represents a NodeTaint. */ @@ -997,7 +997,7 @@ export namespace google { public value: string; /** NodeTaint effect. */ - public effect: google.container.v1.NodeTaint.Effect; + public effect: (google.container.v1.NodeTaint.Effect|keyof typeof google.container.v1.NodeTaint.Effect); /** * Creates a new NodeTaint instance using the specified properties. @@ -2354,7 +2354,7 @@ export namespace google { interface INetworkPolicy { /** NetworkPolicy provider */ - provider?: (google.container.v1.NetworkPolicy.Provider|null); + provider?: (google.container.v1.NetworkPolicy.Provider|keyof typeof google.container.v1.NetworkPolicy.Provider|null); /** NetworkPolicy enabled */ enabled?: (boolean|null); @@ -2370,7 +2370,7 @@ export namespace google { constructor(properties?: google.container.v1.INetworkPolicy); /** NetworkPolicy provider. */ - public provider: google.container.v1.NetworkPolicy.Provider; + public provider: (google.container.v1.NetworkPolicy.Provider|keyof typeof google.container.v1.NetworkPolicy.Provider); /** NetworkPolicy enabled. */ public enabled: boolean; @@ -2816,7 +2816,7 @@ export namespace google { createTime?: (string|null); /** Cluster status */ - status?: (google.container.v1.Cluster.Status|null); + status?: (google.container.v1.Cluster.Status|keyof typeof google.container.v1.Cluster.Status|null); /** Cluster statusMessage */ statusMessage?: (string|null); @@ -2970,7 +2970,7 @@ export namespace google { public createTime: string; /** Cluster status. */ - public status: google.container.v1.Cluster.Status; + public status: (google.container.v1.Cluster.Status|keyof typeof google.container.v1.Cluster.Status); /** Cluster statusMessage. */ public statusMessage: string; @@ -3277,10 +3277,10 @@ export namespace google { zone?: (string|null); /** Operation operationType */ - operationType?: (google.container.v1.Operation.Type|null); + operationType?: (google.container.v1.Operation.Type|keyof typeof google.container.v1.Operation.Type|null); /** Operation status */ - status?: (google.container.v1.Operation.Status|null); + status?: (google.container.v1.Operation.Status|keyof typeof google.container.v1.Operation.Status|null); /** Operation detail */ detail?: (string|null); @@ -3326,10 +3326,10 @@ export namespace google { public zone: string; /** Operation operationType. */ - public operationType: google.container.v1.Operation.Type; + public operationType: (google.container.v1.Operation.Type|keyof typeof google.container.v1.Operation.Type); /** Operation status. */ - public status: google.container.v1.Operation.Status; + public status: (google.container.v1.Operation.Status|keyof typeof google.container.v1.Operation.Status); /** Operation detail. */ public detail: string; @@ -4621,7 +4621,7 @@ export namespace google { clusterId?: (string|null); /** SetMasterAuthRequest action */ - action?: (google.container.v1.SetMasterAuthRequest.Action|null); + action?: (google.container.v1.SetMasterAuthRequest.Action|keyof typeof google.container.v1.SetMasterAuthRequest.Action|null); /** SetMasterAuthRequest update */ update?: (google.container.v1.IMasterAuth|null); @@ -4649,7 +4649,7 @@ export namespace google { public clusterId: string; /** SetMasterAuthRequest action. */ - public action: google.container.v1.SetMasterAuthRequest.Action; + public action: (google.container.v1.SetMasterAuthRequest.Action|keyof typeof google.container.v1.SetMasterAuthRequest.Action); /** SetMasterAuthRequest update. */ public update?: (google.container.v1.IMasterAuth|null); @@ -6147,7 +6147,7 @@ export namespace google { instanceGroupUrls?: (string[]|null); /** NodePool status */ - status?: (google.container.v1.NodePool.Status|null); + status?: (google.container.v1.NodePool.Status|keyof typeof google.container.v1.NodePool.Status|null); /** NodePool statusMessage */ statusMessage?: (string|null); @@ -6196,7 +6196,7 @@ export namespace google { public instanceGroupUrls: string[]; /** NodePool status. */ - public status: google.container.v1.NodePool.Status; + public status: (google.container.v1.NodePool.Status|keyof typeof google.container.v1.NodePool.Status); /** NodePool statusMessage. */ public statusMessage: string; @@ -7643,10 +7643,10 @@ export namespace google { resourceType?: (string|null); /** ResourceLimit minimum */ - minimum?: (number|Long|null); + minimum?: (number|Long|string|null); /** ResourceLimit maximum */ - maximum?: (number|Long|null); + maximum?: (number|Long|string|null); } /** Represents a ResourceLimit. */ @@ -7662,10 +7662,10 @@ export namespace google { public resourceType: string; /** ResourceLimit minimum. */ - public minimum: (number|Long); + public minimum: (number|Long|string); /** ResourceLimit maximum. */ - public maximum: (number|Long); + public maximum: (number|Long|string); /** * Creates a new ResourceLimit instance using the specified properties. @@ -8306,7 +8306,7 @@ export namespace google { interface IAcceleratorConfig { /** AcceleratorConfig acceleratorCount */ - acceleratorCount?: (number|Long|null); + acceleratorCount?: (number|Long|string|null); /** AcceleratorConfig acceleratorType */ acceleratorType?: (string|null); @@ -8322,7 +8322,7 @@ export namespace google { constructor(properties?: google.container.v1.IAcceleratorConfig); /** AcceleratorConfig acceleratorCount. */ - public acceleratorCount: (number|Long); + public acceleratorCount: (number|Long|string); /** AcceleratorConfig acceleratorType. */ public acceleratorType: string; @@ -8630,7 +8630,7 @@ export namespace google { interface IStatusCondition { /** StatusCondition code */ - code?: (google.container.v1.StatusCondition.Code|null); + code?: (google.container.v1.StatusCondition.Code|keyof typeof google.container.v1.StatusCondition.Code|null); /** StatusCondition message */ message?: (string|null); @@ -8646,7 +8646,7 @@ export namespace google { constructor(properties?: google.container.v1.IStatusCondition); /** StatusCondition code. */ - public code: google.container.v1.StatusCondition.Code; + public code: (google.container.v1.StatusCondition.Code|keyof typeof google.container.v1.StatusCondition.Code); /** StatusCondition message. */ public message: string; @@ -8931,7 +8931,7 @@ export namespace google { interface IMaxPodsConstraint { /** MaxPodsConstraint maxPodsPerNode */ - maxPodsPerNode?: (number|Long|null); + maxPodsPerNode?: (number|Long|string|null); } /** Represents a MaxPodsConstraint. */ @@ -8944,7 +8944,7 @@ export namespace google { constructor(properties?: google.container.v1.IMaxPodsConstraint); /** MaxPodsConstraint maxPodsPerNode. */ - public maxPodsPerNode: (number|Long); + public maxPodsPerNode: (number|Long|string); /** * Creates a new MaxPodsConstraint instance using the specified properties. @@ -9021,7 +9021,7 @@ export namespace google { interface IDatabaseEncryption { /** DatabaseEncryption state */ - state?: (google.container.v1.DatabaseEncryption.State|null); + state?: (google.container.v1.DatabaseEncryption.State|keyof typeof google.container.v1.DatabaseEncryption.State|null); /** DatabaseEncryption keyName */ keyName?: (string|null); @@ -9037,7 +9037,7 @@ export namespace google { constructor(properties?: google.container.v1.IDatabaseEncryption); /** DatabaseEncryption state. */ - public state: google.container.v1.DatabaseEncryption.State; + public state: (google.container.v1.DatabaseEncryption.State|keyof typeof google.container.v1.DatabaseEncryption.State); /** DatabaseEncryption keyName. */ public keyName: string; @@ -9337,7 +9337,7 @@ export namespace google { ipCidrRange?: (string|null); /** UsableSubnetworkSecondaryRange status */ - status?: (google.container.v1.UsableSubnetworkSecondaryRange.Status|null); + status?: (google.container.v1.UsableSubnetworkSecondaryRange.Status|keyof typeof google.container.v1.UsableSubnetworkSecondaryRange.Status|null); } /** Represents a UsableSubnetworkSecondaryRange. */ @@ -9356,7 +9356,7 @@ export namespace google { public ipCidrRange: string; /** UsableSubnetworkSecondaryRange status. */ - public status: google.container.v1.UsableSubnetworkSecondaryRange.Status; + public status: (google.container.v1.UsableSubnetworkSecondaryRange.Status|keyof typeof google.container.v1.UsableSubnetworkSecondaryRange.Status); /** * Creates a new UsableSubnetworkSecondaryRange instance using the specified properties. @@ -10979,10 +10979,10 @@ export namespace google { number?: (number|null); /** FieldDescriptorProto label */ - label?: (google.protobuf.FieldDescriptorProto.Label|null); + label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); /** FieldDescriptorProto type */ - type?: (google.protobuf.FieldDescriptorProto.Type|null); + type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); /** FieldDescriptorProto typeName */ typeName?: (string|null); @@ -11019,10 +11019,10 @@ export namespace google { public number: number; /** FieldDescriptorProto label. */ - public label: google.protobuf.FieldDescriptorProto.Label; + public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); /** FieldDescriptorProto type. */ - public type: google.protobuf.FieldDescriptorProto.Type; + public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); /** FieldDescriptorProto typeName. */ public typeName: string; @@ -11797,7 +11797,7 @@ export namespace google { javaStringCheckUtf8?: (boolean|null); /** FileOptions optimizeFor */ - optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); /** FileOptions goPackage */ goPackage?: (string|null); @@ -11870,7 +11870,7 @@ export namespace google { public javaStringCheckUtf8: boolean; /** FileOptions optimizeFor. */ - public optimizeFor: google.protobuf.FileOptions.OptimizeMode; + public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); /** FileOptions goPackage. */ public goPackage: string; @@ -12116,13 +12116,13 @@ export namespace google { interface IFieldOptions { /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|null); + ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); /** FieldOptions packed */ packed?: (boolean|null); /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|null); + jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); /** FieldOptions lazy */ lazy?: (boolean|null); @@ -12150,13 +12150,13 @@ export namespace google { constructor(properties?: google.protobuf.IFieldOptions); /** FieldOptions ctype. */ - public ctype: google.protobuf.FieldOptions.CType; + public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); /** FieldOptions packed. */ public packed: boolean; /** FieldOptions jstype. */ - public jstype: google.protobuf.FieldOptions.JSType; + public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); /** FieldOptions lazy. */ public lazy: boolean; @@ -12655,7 +12655,7 @@ export namespace google { deprecated?: (boolean|null); /** MethodOptions idempotencyLevel */ - idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null); + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); /** MethodOptions uninterpretedOption */ uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); @@ -12680,7 +12680,7 @@ export namespace google { public deprecated: boolean; /** MethodOptions idempotencyLevel. */ - public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel; + public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); /** MethodOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; @@ -12776,16 +12776,16 @@ export namespace google { identifierValue?: (string|null); /** UninterpretedOption positiveIntValue */ - positiveIntValue?: (number|Long|null); + positiveIntValue?: (number|Long|string|null); /** UninterpretedOption negativeIntValue */ - negativeIntValue?: (number|Long|null); + negativeIntValue?: (number|Long|string|null); /** UninterpretedOption doubleValue */ doubleValue?: (number|null); /** UninterpretedOption stringValue */ - stringValue?: (Uint8Array|null); + stringValue?: (Uint8Array|string|null); /** UninterpretedOption aggregateValue */ aggregateValue?: (string|null); @@ -12807,16 +12807,16 @@ export namespace google { public identifierValue: string; /** UninterpretedOption positiveIntValue. */ - public positiveIntValue: (number|Long); + public positiveIntValue: (number|Long|string); /** UninterpretedOption negativeIntValue. */ - public negativeIntValue: (number|Long); + public negativeIntValue: (number|Long|string); /** UninterpretedOption doubleValue. */ public doubleValue: number; /** UninterpretedOption stringValue. */ - public stringValue: Uint8Array; + public stringValue: (Uint8Array|string); /** UninterpretedOption aggregateValue. */ public aggregateValue: string; @@ -13487,7 +13487,7 @@ export namespace google { interface ITimestamp { /** Timestamp seconds */ - seconds?: (number|Long|null); + seconds?: (number|Long|string|null); /** Timestamp nanos */ nanos?: (number|null); @@ -13503,7 +13503,7 @@ export namespace google { constructor(properties?: google.protobuf.ITimestamp); /** Timestamp seconds. */ - public seconds: (number|Long); + public seconds: (number|Long|string); /** Timestamp nanos. */ public nanos: number; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 29e77c42b24..83fa32c5538 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,12 +1,13 @@ { - "updateTime": "2020-01-23T23:34:45.692182Z", + "updateTime": "2020-01-28T12:13:56.262359Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e26cab8afd19d396b929039dac5d874cf0b5336c", - "internalRef": "291240093" + "sha": "8e981acfd9b97ea2f312f11bbaa7b6c16e412dea", + "internalRef": "291821782", + "log": "8e981acfd9b97ea2f312f11bbaa7b6c16e412dea\nBeta launch for PersonDetection and FaceDetection features.\n\nPiperOrigin-RevId: 291821782\n\n994e067fae3b21e195f7da932b08fff806d70b5d\nasset: add annotations to v1p2beta1\n\nPiperOrigin-RevId: 291815259\n\n244e1d2c89346ca2e0701b39e65552330d68545a\nAdd Playable Locations service\n\nPiperOrigin-RevId: 291806349\n\n909f8f67963daf45dd88d020877fb9029b76788d\nasset: add annotations to v1beta2\n\nPiperOrigin-RevId: 291805301\n\n3c39a1d6e23c1ef63c7fba4019c25e76c40dfe19\nKMS: add file-level message for CryptoKeyPath, it is defined in gapic yaml but not\nin proto files.\n\nPiperOrigin-RevId: 291420695\n\nc6f3f350b8387f8d1b85ed4506f30187ebaaddc3\ncontaineranalysis: update v1beta1 and bazel build with annotations\n\nPiperOrigin-RevId: 291401900\n\n92887d74b44e4e636252b7b8477d0d2570cd82db\nfix: fix the location of grpc config file.\n\nPiperOrigin-RevId: 291396015\n\n" } }, { @@ -50,9 +51,15 @@ { "path": ".github/release-please.yml" }, + { + "path": ".gitignore" + }, { "path": ".jsdoc.js" }, + { + "path": ".kokoro/.gitattributes" + }, { "path": ".kokoro/common.cfg" }, @@ -131,6 +138,9 @@ { "path": ".kokoro/publish.sh" }, + { + "path": ".kokoro/release/common.cfg" + }, { "path": ".kokoro/release/docs.cfg" }, @@ -164,6 +174,15 @@ { "path": ".prettierrc" }, + { + "path": ".readme-partials.yaml" + }, + { + "path": ".repo-metadata.json" + }, + { + "path": "CHANGELOG.md" + }, { "path": "CODE_OF_CONDUCT.md" }, @@ -182,6 +201,9 @@ { "path": "linkinator.config.json" }, + { + "path": "package.json" + }, { "path": "protos/google/container/v1/cluster_service.proto" }, @@ -197,9 +219,30 @@ { "path": "renovate.json" }, + { + "path": "samples/.eslintrc.yml" + }, { "path": "samples/README.md" }, + { + "path": "samples/package.json" + }, + { + "path": "samples/quickstart.js" + }, + { + "path": "samples/system-test/sample.test.js" + }, + { + "path": "smoke-test/.eslintrc.yml" + }, + { + "path": "smoke-test/cluster_manager_smoke_test.js" + }, + { + "path": "src/index.ts" + }, { "path": "src/v1/cluster_manager_client.ts" }, @@ -209,9 +252,21 @@ { "path": "src/v1/cluster_manager_proto_list.json" }, + { + "path": "src/v1/doc/google/protobuf/doc_empty.js" + }, + { + "path": "src/v1/doc/google/protobuf/doc_timestamp.js" + }, { "path": "src/v1/index.ts" }, + { + "path": "synth.metadata" + }, + { + "path": "synth.py" + }, { "path": "system-test/fixtures/sample/src/index.js" }, @@ -221,9 +276,15 @@ { "path": "system-test/install.ts" }, + { + "path": "test/.eslintrc.yml" + }, { "path": "test/gapic-cluster_manager-v1.ts" }, + { + "path": "test/mocha.opts" + }, { "path": "tsconfig.json" }, From b60da0ceb9bf6fecfe57a79bad51384e3fdbd217 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2020 15:41:34 -0800 Subject: [PATCH 175/371] chore: release 1.6.1 (#278) --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 2a7349d1314..501082243eb 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [1.6.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.6.0...v1.6.1) (2020-01-28) + + +### Bug Fixes + +* enum, bytes, and Long types now accept strings ([595810b](https://www.github.com/googleapis/nodejs-cloud-container/commit/595810b240be49dddf14a05d616b99b398a09efe)) + ## [1.6.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.5.0...v1.6.0) (2020-01-24) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index c7af234ed48..864b5e57212 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.6.0", + "version": "1.6.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index d8f8ea47b3f..f0a5adb5747 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.6.0" + "@google-cloud/container": "^1.6.1" }, "devDependencies": { "chai": "^4.2.0", From 1fae793fd8216ead865e10a43aaab9d1fe9fb7ca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 30 Jan 2020 16:34:15 +0100 Subject: [PATCH 176/371] chore(deps): update dependency @types/mocha to v7 --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 864b5e57212..62abe80cdf7 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -44,7 +44,7 @@ "google-gax": "^1.9.0" }, "devDependencies": { - "@types/mocha": "^5.2.5", + "@types/mocha": "^7.0.0", "@types/node": "^12.0.0", "c8": "^7.0.0", "eslint": "^6.0.0", From 03183d4f5ccf81fd3b5cb86e9fb6e017e8dbbad0 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 31 Jan 2020 17:22:42 -0800 Subject: [PATCH 177/371] chore: skip img.shields.io in docs test --- packages/google-container/linkinator.config.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/google-container/linkinator.config.json b/packages/google-container/linkinator.config.json index d780d6bfff5..b555215ca02 100644 --- a/packages/google-container/linkinator.config.json +++ b/packages/google-container/linkinator.config.json @@ -2,6 +2,7 @@ "recurse": true, "skip": [ "https://codecov.io/gh/googleapis/", - "www.googleapis.com" + "www.googleapis.com", + "img.shields.io" ] } From 732cae1b4535c8109c215ff32ddac3148d745cbb Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Fri, 31 Jan 2020 18:58:19 -0800 Subject: [PATCH 178/371] test: modernize mocha config (#280) --- packages/google-container/.mocharc.json | 5 +++++ packages/google-container/package.json | 2 -- packages/google-container/test/mocha.opts | 3 --- 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 packages/google-container/.mocharc.json delete mode 100644 packages/google-container/test/mocha.opts diff --git a/packages/google-container/.mocharc.json b/packages/google-container/.mocharc.json new file mode 100644 index 00000000000..670c5e2c24b --- /dev/null +++ b/packages/google-container/.mocharc.json @@ -0,0 +1,5 @@ +{ + "enable-source-maps": true, + "throw-deprecation": true, + "timeout": 10000 +} diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 62abe80cdf7..877be5fb46c 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -52,7 +52,6 @@ "eslint-plugin-node": "^11.0.0", "eslint-plugin-prettier": "^3.1.0", "gts": "^1.0.0", - "intelli-espower-loader": "^1.0.1", "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", @@ -60,7 +59,6 @@ "mocha": "^7.0.0", "null-loader": "^3.0.0", "pack-n-play": "^1.0.0-2", - "power-assert": "^1.6.1", "prettier": "^1.17.1", "ts-loader": "^6.2.1", "typescript": "^3.7.0", diff --git a/packages/google-container/test/mocha.opts b/packages/google-container/test/mocha.opts deleted file mode 100644 index 8751e7bae37..00000000000 --- a/packages/google-container/test/mocha.opts +++ /dev/null @@ -1,3 +0,0 @@ ---require intelli-espower-loader ---timeout 10000 ---throw-deprecation From e0267c54d5b1e59d9a12e38a328df9e9619e6178 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 7 Feb 2020 10:27:11 -0800 Subject: [PATCH 179/371] fix: pass x-goog-request-params header for streaming calls --- packages/google-container/.gitignore | 3 +- .../src/v1/cluster_manager_client.ts | 10 +- packages/google-container/synth.metadata | 276 +----------------- .../test/gapic-cluster_manager-v1.ts | 66 ++++- 4 files changed, 80 insertions(+), 275 deletions(-) diff --git a/packages/google-container/.gitignore b/packages/google-container/.gitignore index af6629b80e6..5d32b23782f 100644 --- a/packages/google-container/.gitignore +++ b/packages/google-container/.gitignore @@ -1,6 +1,7 @@ **/*.log **/node_modules .coverage +coverage .nyc_output docs/ out/ @@ -9,5 +10,5 @@ system-test/secrets.js system-test/*key.json *.lock .DS_Store -__pycache__ package-lock.json +__pycache__ diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 26a8eaf79ad..7ac201830d3 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -3108,9 +3108,17 @@ export class ClusterManagerClient { */ listUsableSubnetworksStream( request?: protosTypes.google.container.v1.IListUsableSubnetworksRequest, - options?: gax.CallOptions | {} + options?: gax.CallOptions ): Transform { request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); return this._descriptors.page.listUsableSubnetworks.createStream( this._innerApiCalls.listUsableSubnetworks as gax.GaxCall, diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 83fa32c5538..a2a7f6371fb 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,20 +1,20 @@ { - "updateTime": "2020-01-28T12:13:56.262359Z", + "updateTime": "2020-02-07T12:14:17.845530Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "8e981acfd9b97ea2f312f11bbaa7b6c16e412dea", - "internalRef": "291821782", - "log": "8e981acfd9b97ea2f312f11bbaa7b6c16e412dea\nBeta launch for PersonDetection and FaceDetection features.\n\nPiperOrigin-RevId: 291821782\n\n994e067fae3b21e195f7da932b08fff806d70b5d\nasset: add annotations to v1p2beta1\n\nPiperOrigin-RevId: 291815259\n\n244e1d2c89346ca2e0701b39e65552330d68545a\nAdd Playable Locations service\n\nPiperOrigin-RevId: 291806349\n\n909f8f67963daf45dd88d020877fb9029b76788d\nasset: add annotations to v1beta2\n\nPiperOrigin-RevId: 291805301\n\n3c39a1d6e23c1ef63c7fba4019c25e76c40dfe19\nKMS: add file-level message for CryptoKeyPath, it is defined in gapic yaml but not\nin proto files.\n\nPiperOrigin-RevId: 291420695\n\nc6f3f350b8387f8d1b85ed4506f30187ebaaddc3\ncontaineranalysis: update v1beta1 and bazel build with annotations\n\nPiperOrigin-RevId: 291401900\n\n92887d74b44e4e636252b7b8477d0d2570cd82db\nfix: fix the location of grpc config file.\n\nPiperOrigin-RevId: 291396015\n\n" + "sha": "e46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585", + "internalRef": "293710856", + "log": "e46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585\nGenerate the Bazel build file for recommendengine public api\n\nPiperOrigin-RevId: 293710856\n\n68477017c4173c98addac0373950c6aa9d7b375f\nMake `language_code` optional for UpdateIntentRequest and BatchUpdateIntentsRequest.\n\nThe comments and proto annotations describe this parameter as optional.\n\nPiperOrigin-RevId: 293703548\n\n16f823f578bca4e845a19b88bb9bc5870ea71ab2\nAdd BUILD.bazel files for managedidentities API\n\nPiperOrigin-RevId: 293698246\n\n2f53fd8178c9a9de4ad10fae8dd17a7ba36133f2\nAdd v1p1beta1 config file\n\nPiperOrigin-RevId: 293696729\n\n052b274138fce2be80f97b6dcb83ab343c7c8812\nAdd source field for user event and add field behavior annotations\n\nPiperOrigin-RevId: 293693115\n\n1e89732b2d69151b1b3418fff3d4cc0434f0dded\ndatacatalog: v1beta1 add three new RPCs to gapic v1beta1 config\n\nPiperOrigin-RevId: 293692823\n\n9c8bd09bbdc7c4160a44f1fbab279b73cd7a2337\nchange the name of AccessApproval service to AccessApprovalAdmin\n\nPiperOrigin-RevId: 293690934\n\n2e23b8fbc45f5d9e200572ca662fe1271bcd6760\nAdd ListEntryGroups method, add http bindings to support entry group tagging, and update some comments.\n\nPiperOrigin-RevId: 293666452\n\n0275e38a4ca03a13d3f47a9613aac8c8b0d3f1f2\nAdd proto_package field to managedidentities API. It is needed for APIs that still depend on artman generation.\n\nPiperOrigin-RevId: 293643323\n\n4cdfe8278cb6f308106580d70648001c9146e759\nRegenerating public protos for Data Catalog to add new Custom Type Entry feature.\n\nPiperOrigin-RevId: 293614782\n\n45d2a569ab526a1fad3720f95eefb1c7330eaada\nEnable client generation for v1 ManagedIdentities API.\n\nPiperOrigin-RevId: 293515675\n\n2c17086b77e6f3bcf04a1f65758dfb0c3da1568f\nAdd the Actions on Google common types (//google/actions/type/*).\n\nPiperOrigin-RevId: 293478245\n\n781aadb932e64a12fb6ead7cd842698d99588433\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293443396\n\ne2602608c9138c2fca24162720e67f9307c30b95\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293442964\n\nc8aef82028d06b7992278fa9294c18570dc86c3d\nAdd cc_proto_library and cc_grpc_library targets for Bigtable protos.\n\nAlso fix indentation of cc_grpc_library targets in Spanner and IAM protos.\n\nPiperOrigin-RevId: 293440538\n\ne2faab04f4cb7f9755072330866689b1943a16e9\ncloudtasks: v2 replace non-standard retry params in gapic config v2\n\nPiperOrigin-RevId: 293424055\n\ndfb4097ea628a8470292c6590a4313aee0c675bd\nerrorreporting: v1beta1 add legacy artman config for php\n\nPiperOrigin-RevId: 293423790\n\nb18aed55b45bfe5b62476292c72759e6c3e573c6\nasset: v1p1beta1 updated comment for `page_size` limit.\n\nPiperOrigin-RevId: 293421386\n\nc9ef36b7956d9859a2fc86ad35fcaa16958ab44f\nbazel: Refactor CI build scripts\n\nPiperOrigin-RevId: 293387911\n\na8ed9d921fdddc61d8467bfd7c1668f0ad90435c\nfix: set Ruby module name for OrgPolicy\n\nPiperOrigin-RevId: 293257997\n\n6c7d28509bd8315de8af0889688ee20099594269\nredis: v1beta1 add UpgradeInstance and connect_mode field to Instance\n\nPiperOrigin-RevId: 293242878\n\nae0abed4fcb4c21f5cb67a82349a049524c4ef68\nredis: v1 add connect_mode field to Instance\n\nPiperOrigin-RevId: 293241914\n\n3f7a0d29b28ee9365771da2b66edf7fa2b4e9c56\nAdds service config definition for bigqueryreservation v1beta1\n\nPiperOrigin-RevId: 293234418\n\n0c88168d5ed6fe353a8cf8cbdc6bf084f6bb66a5\naddition of BUILD & configuration for accessapproval v1\n\nPiperOrigin-RevId: 293219198\n\n39bedc2e30f4778ce81193f6ba1fec56107bcfc4\naccessapproval: v1 publish protos\n\nPiperOrigin-RevId: 293167048\n\n69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n29d40b78e3dc1579b0b209463fbcb76e5767f72a\nExpose managedidentities/v1beta1/ API for client library usage.\n\nPiperOrigin-RevId: 292979741\n\na22129a1fb6e18056d576dfb7717aef74b63734a\nExpose managedidentities/v1/ API for client library usage.\n\nPiperOrigin-RevId: 292968186\n\nb5cbe4a4ba64ab19e6627573ff52057a1657773d\nSecurityCenter v1p1beta1: move file-level option on top to workaround protobuf.js bug.\n\nPiperOrigin-RevId: 292647187\n\nb224b317bf20c6a4fbc5030b4a969c3147f27ad3\nAdds API definitions for bigqueryreservation v1beta1.\n\nPiperOrigin-RevId: 292634722\n\nc1468702f9b17e20dd59007c0804a089b83197d2\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 292626173\n\nffdfa4f55ab2f0afc11d0eb68f125ccbd5e404bd\nvision: v1p3beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605599\n\n78f61482cd028fc1d9892aa5d89d768666a954cd\nvision: v1p1beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605125\n\n60bb5a294a604fd1778c7ec87b265d13a7106171\nvision: v1p2beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604980\n\n3bcf7aa79d45eb9ec29ab9036e9359ea325a7fc3\nvision: v1p4beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604656\n\n2717b8a1c762b26911b45ecc2e4ee01d98401b28\nFix dataproc artman client library generation.\n\nPiperOrigin-RevId: 292555664\n\n7ac66d9be8a7d7de4f13566d8663978c9ee9dcd7\nAdd Dataproc Autoscaling API to V1.\n\nPiperOrigin-RevId: 292450564\n\n5d932b2c1be3a6ef487d094e3cf5c0673d0241dd\n- Improve documentation\n- Add a client_id field to StreamingPullRequest\n\nPiperOrigin-RevId: 292434036\n\neaff9fa8edec3e914995ce832b087039c5417ea7\nmonitoring: v3 publish annotations and client retry config\n\nPiperOrigin-RevId: 292425288\n\n70958bab8c5353870d31a23fb2c40305b050d3fe\nBigQuery Storage Read API v1 clients.\n\nPiperOrigin-RevId: 292407644\n\n7a15e7fe78ff4b6d5c9606a3264559e5bde341d1\nUpdate backend proto for Google Cloud Endpoints\n\nPiperOrigin-RevId: 292391607\n\n3ca2c014e24eb5111c8e7248b1e1eb833977c83d\nbazel: Add --flaky_test_attempts=3 argument to prevent CI failures caused by flaky tests\n\nPiperOrigin-RevId: 292382559\n\n9933347c1f677e81e19a844c2ef95bfceaf694fe\nbazel:Integrate latest protoc-java-resource-names-plugin changes (fix for PyYAML dependency in bazel rules)\n\nPiperOrigin-RevId: 292376626\n\nb835ab9d2f62c88561392aa26074c0b849fb0bd3\nasset: v1p2beta1 add client config annotations\n\n* remove unintentionally exposed RPCs\n* remove messages relevant to removed RPCs\n\nPiperOrigin-RevId: 292369593\n\nc1246a29e22b0f98e800a536b5b0da2d933a55f2\nUpdating v1 protos with the latest inline documentation (in comments) and config options. Also adding a per-service .yaml file.\n\nPiperOrigin-RevId: 292310790\n\nb491d07cadaae7cde5608321f913e5ca1459b32d\nRevert accidental local_repository change\n\nPiperOrigin-RevId: 292245373\n\naf3400a8cb6110025198b59a0f7d018ae3cda700\nUpdate gapic-generator dependency (prebuilt PHP binary support).\n\nPiperOrigin-RevId: 292243997\n\n341fd5690fae36f36cf626ef048fbcf4bbe7cee6\ngrafeas: v1 add resource_definition for the grafeas.io/Project and change references for Project.\n\nPiperOrigin-RevId: 292221998\n\n42e915ec2ece1cd37a590fbcd10aa2c0fb0e5b06\nUpdate the gapic-generator, protoc-java-resource-name-plugin and protoc-docs-plugin to the latest commit.\n\nPiperOrigin-RevId: 292182368\n\nf035f47250675d31492a09f4a7586cfa395520a7\nFix grafeas build and update build.sh script to include gerafeas.\n\nPiperOrigin-RevId: 292168753\n\n26ccb214b7bc4a716032a6266bcb0a9ca55d6dbb\nasset: v1p1beta1 add client config annotations and retry config\n\nPiperOrigin-RevId: 292154210\n\n974ee5c0b5d03e81a50dafcedf41e0efebb5b749\nasset: v1beta1 add client config annotations\n\nPiperOrigin-RevId: 292152573\n\ncf3b61102ed5f36b827bc82ec39be09525f018c8\n Fix to protos for v1p1beta1 release of Cloud Security Command Center\n\nPiperOrigin-RevId: 292034635\n\n4e1cfaa7c0fede9e65d64213ca3da1b1255816c0\nUpdate the public proto to support UTF-8 encoded id for CatalogService API, increase the ListCatalogItems deadline to 300s and some minor documentation change\n\nPiperOrigin-RevId: 292030970\n\n9c483584f8fd5a1b862ae07973f4cc7bb3e46648\nasset: add annotations to v1p1beta1\n\nPiperOrigin-RevId: 292009868\n\ne19209fac29731d0baf6d9ac23da1164f7bdca24\nAdd the google.rpc.context.AttributeContext message to the open source\ndirectories.\n\nPiperOrigin-RevId: 291999930\n\nae5662960573f279502bf98a108a35ba1175e782\noslogin API: move file level option on top of the file to avoid protobuf.js bug.\n\nPiperOrigin-RevId: 291990506\n\neba3897fff7c49ed85d3c47fc96fe96e47f6f684\nAdd cc_proto_library and cc_grpc_library targets for Spanner and IAM protos.\n\nPiperOrigin-RevId: 291988651\n\n" } }, { "template": { "name": "node_library", "origin": "synthtool.gcp", - "version": "2019.10.17" + "version": "2020.2.4" } } ], @@ -28,271 +28,5 @@ "generator": "gapic-generator-typescript" } } - ], - "newFiles": [ - { - "path": ".eslintignore" - }, - { - "path": ".eslintrc.yml" - }, - { - "path": ".github/ISSUE_TEMPLATE/bug_report.md" - }, - { - "path": ".github/ISSUE_TEMPLATE/feature_request.md" - }, - { - "path": ".github/ISSUE_TEMPLATE/support_request.md" - }, - { - "path": ".github/PULL_REQUEST_TEMPLATE.md" - }, - { - "path": ".github/release-please.yml" - }, - { - "path": ".gitignore" - }, - { - "path": ".jsdoc.js" - }, - { - "path": ".kokoro/.gitattributes" - }, - { - "path": ".kokoro/common.cfg" - }, - { - "path": ".kokoro/continuous/node10/common.cfg" - }, - { - "path": ".kokoro/continuous/node10/docs.cfg" - }, - { - "path": ".kokoro/continuous/node10/lint.cfg" - }, - { - "path": ".kokoro/continuous/node10/samples-test.cfg" - }, - { - "path": ".kokoro/continuous/node10/system-test.cfg" - }, - { - "path": ".kokoro/continuous/node10/test.cfg" - }, - { - "path": ".kokoro/continuous/node12/common.cfg" - }, - { - "path": ".kokoro/continuous/node12/test.cfg" - }, - { - "path": ".kokoro/continuous/node8/common.cfg" - }, - { - "path": ".kokoro/continuous/node8/test.cfg" - }, - { - "path": ".kokoro/docs.sh" - }, - { - "path": ".kokoro/lint.sh" - }, - { - "path": ".kokoro/presubmit/node10/common.cfg" - }, - { - "path": ".kokoro/presubmit/node10/docs.cfg" - }, - { - "path": ".kokoro/presubmit/node10/lint.cfg" - }, - { - "path": ".kokoro/presubmit/node10/samples-test.cfg" - }, - { - "path": ".kokoro/presubmit/node10/system-test.cfg" - }, - { - "path": ".kokoro/presubmit/node10/test.cfg" - }, - { - "path": ".kokoro/presubmit/node12/common.cfg" - }, - { - "path": ".kokoro/presubmit/node12/test.cfg" - }, - { - "path": ".kokoro/presubmit/node8/common.cfg" - }, - { - "path": ".kokoro/presubmit/node8/test.cfg" - }, - { - "path": ".kokoro/presubmit/windows/common.cfg" - }, - { - "path": ".kokoro/presubmit/windows/test.cfg" - }, - { - "path": ".kokoro/publish.sh" - }, - { - "path": ".kokoro/release/common.cfg" - }, - { - "path": ".kokoro/release/docs.cfg" - }, - { - "path": ".kokoro/release/docs.sh" - }, - { - "path": ".kokoro/release/publish.cfg" - }, - { - "path": ".kokoro/samples-test.sh" - }, - { - "path": ".kokoro/system-test.sh" - }, - { - "path": ".kokoro/test.bat" - }, - { - "path": ".kokoro/test.sh" - }, - { - "path": ".kokoro/trampoline.sh" - }, - { - "path": ".nycrc" - }, - { - "path": ".prettierignore" - }, - { - "path": ".prettierrc" - }, - { - "path": ".readme-partials.yaml" - }, - { - "path": ".repo-metadata.json" - }, - { - "path": "CHANGELOG.md" - }, - { - "path": "CODE_OF_CONDUCT.md" - }, - { - "path": "CONTRIBUTING.md" - }, - { - "path": "LICENSE" - }, - { - "path": "README.md" - }, - { - "path": "codecov.yaml" - }, - { - "path": "linkinator.config.json" - }, - { - "path": "package.json" - }, - { - "path": "protos/google/container/v1/cluster_service.proto" - }, - { - "path": "protos/protos.d.ts" - }, - { - "path": "protos/protos.js" - }, - { - "path": "protos/protos.json" - }, - { - "path": "renovate.json" - }, - { - "path": "samples/.eslintrc.yml" - }, - { - "path": "samples/README.md" - }, - { - "path": "samples/package.json" - }, - { - "path": "samples/quickstart.js" - }, - { - "path": "samples/system-test/sample.test.js" - }, - { - "path": "smoke-test/.eslintrc.yml" - }, - { - "path": "smoke-test/cluster_manager_smoke_test.js" - }, - { - "path": "src/index.ts" - }, - { - "path": "src/v1/cluster_manager_client.ts" - }, - { - "path": "src/v1/cluster_manager_client_config.json" - }, - { - "path": "src/v1/cluster_manager_proto_list.json" - }, - { - "path": "src/v1/doc/google/protobuf/doc_empty.js" - }, - { - "path": "src/v1/doc/google/protobuf/doc_timestamp.js" - }, - { - "path": "src/v1/index.ts" - }, - { - "path": "synth.metadata" - }, - { - "path": "synth.py" - }, - { - "path": "system-test/fixtures/sample/src/index.js" - }, - { - "path": "system-test/fixtures/sample/src/index.ts" - }, - { - "path": "system-test/install.ts" - }, - { - "path": "test/.eslintrc.yml" - }, - { - "path": "test/gapic-cluster_manager-v1.ts" - }, - { - "path": "test/mocha.opts" - }, - { - "path": "tsconfig.json" - }, - { - "path": "tslint.json" - }, - { - "path": "webpack.config.js" - } ] } \ No newline at end of file diff --git a/packages/google-container/test/gapic-cluster_manager-v1.ts b/packages/google-container/test/gapic-cluster_manager-v1.ts index 8d58d58bdb5..86f17dde5ac 100644 --- a/packages/google-container/test/gapic-cluster_manager-v1.ts +++ b/packages/google-container/test/gapic-cluster_manager-v1.ts @@ -91,6 +91,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IListClustersRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -113,6 +114,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IListClustersRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -137,6 +139,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IGetClusterRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -159,6 +162,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IGetClusterRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -183,6 +187,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ICreateClusterRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -205,6 +210,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ICreateClusterRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -229,6 +235,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IUpdateClusterRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -251,6 +258,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IUpdateClusterRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -275,6 +283,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IUpdateNodePoolRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -297,6 +306,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IUpdateNodePoolRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -321,6 +331,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -343,6 +354,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -367,6 +379,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetLoggingServiceRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -389,6 +402,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetLoggingServiceRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -413,6 +427,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetMonitoringServiceRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -435,6 +450,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetMonitoringServiceRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -459,6 +475,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetAddonsConfigRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -481,6 +498,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetAddonsConfigRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -505,6 +523,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetLocationsRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -527,6 +546,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetLocationsRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -551,6 +571,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IUpdateMasterRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -573,6 +594,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IUpdateMasterRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -597,6 +619,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetMasterAuthRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -619,6 +642,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetMasterAuthRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -643,6 +667,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IDeleteClusterRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -665,6 +690,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IDeleteClusterRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -689,6 +715,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IListOperationsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -711,6 +738,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IListOperationsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -735,6 +763,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IGetOperationRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -757,6 +786,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IGetOperationRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -781,6 +811,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ICancelOperationRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -803,6 +834,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ICancelOperationRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -827,6 +859,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IGetServerConfigRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -849,6 +882,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IGetServerConfigRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -873,6 +907,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IListNodePoolsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -895,6 +930,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IListNodePoolsRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -919,6 +955,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IGetNodePoolRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -941,6 +978,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IGetNodePoolRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -965,6 +1003,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ICreateNodePoolRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -987,6 +1026,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ICreateNodePoolRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1011,6 +1051,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IDeleteNodePoolRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1033,6 +1074,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IDeleteNodePoolRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1057,6 +1099,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1079,6 +1122,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1106,6 +1150,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolManagementRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1128,6 +1173,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolManagementRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1152,6 +1198,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetLabelsRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1174,6 +1221,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetLabelsRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1198,6 +1246,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetLegacyAbacRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1220,6 +1269,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetLegacyAbacRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1244,6 +1294,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IStartIPRotationRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1266,6 +1317,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IStartIPRotationRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1290,6 +1342,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ICompleteIPRotationRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1312,6 +1365,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ICompleteIPRotationRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1336,6 +1390,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolSizeRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1358,6 +1413,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolSizeRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1382,6 +1438,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetNetworkPolicyRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1404,6 +1461,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetNetworkPolicyRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1428,6 +1486,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1450,6 +1509,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest = {}; + request.name = ''; // Mock response const expectedResponse = {}; // Mock gRPC layer @@ -1474,6 +1534,7 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IListUsableSubnetworksRequest = {}; + request.parent = ''; // Mock response const expectedResponse = {}; // Mock Grpc layer @@ -1500,8 +1561,9 @@ describe('v1.ClusterManagerClient', () => { }); // Mock request const request: protosTypes.google.container.v1.IListUsableSubnetworksRequest = {}; + request.parent = ''; // Mock response - const expectedResponse = {}; + const expectedResponse = {response: 'data'}; // Mock Grpc layer client._innerApiCalls.listUsableSubnetworks = ( actualRequest: {}, @@ -1520,7 +1582,7 @@ describe('v1.ClusterManagerClient', () => { .on('error', (err: FakeError) => { done(err); }); - stream.write(request); + stream.write(expectedResponse); }); }); }); From 2849cb3b4b25ca254f2f88c8238518aa1dbce505 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 10 Feb 2020 18:04:55 +0100 Subject: [PATCH 180/371] chore(deps): update dependency linkinator to v2 --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 877be5fb46c..174afb4fe7b 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -55,7 +55,7 @@ "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", - "linkinator": "^1.5.0", + "linkinator": "^2.0.0", "mocha": "^7.0.0", "null-loader": "^3.0.0", "pack-n-play": "^1.0.0-2", From 4b1c3ce5d3aa0b55363efc6040c504830a1d7640 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 10 Feb 2020 12:11:28 -0800 Subject: [PATCH 181/371] chore: release 1.6.2 (#287) --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 501082243eb..ec87973b6a8 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [1.6.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.6.1...v1.6.2) (2020-02-10) + + +### Bug Fixes + +* pass x-goog-request-params header for streaming calls ([ab62cfd](https://www.github.com/googleapis/nodejs-cloud-container/commit/ab62cfddac9ab594318d906b7ee6272131ddaae2)) + ### [1.6.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.6.0...v1.6.1) (2020-01-28) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 174afb4fe7b..3f9bf9eb9ad 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.6.1", + "version": "1.6.2", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index f0a5adb5747..173b4266177 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.6.1" + "@google-cloud/container": "^1.6.2" }, "devDependencies": { "chai": "^4.2.0", From 4312227032442e43d765e2e8c24abd21054dea4b Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Thu, 13 Feb 2020 07:26:09 -0800 Subject: [PATCH 182/371] build: add GitHub actions config for unit tests * build: add GitHub actions config for unit tests * chore: link root directory before linting * chore: also need to npm i --- packages/google-container/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 3f9bf9eb9ad..4540d6104dc 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -38,7 +38,8 @@ "compile": "tsc -p . && cp -r protos build/", "compile-protos": "compileProtos src", "predocs-test": "npm run docs", - "prepare": "npm run compile" + "prepare": "npm run compile", + "prelint": "cd samples; npm link ../; npm i" }, "dependencies": { "google-gax": "^1.9.0" From a2edd69fa280e46922cb6a7f2898eaafe44dd909 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 19 Feb 2020 23:01:00 -0800 Subject: [PATCH 183/371] build: add GAPIC annotations to the GKE API This PR was generated using Autosynth. :rainbow: Commits in this repo since last synth: a76c44c3f25671d0fb4b86692a0d9b507a28c144 build: add GitHub actions config for unit tests c9932354ed1378a03057d3f8e97496d50e9b5049 chore: release 1.6.2 (#287) 32b4853c5f141d6de3ce6c8915e2a9002e444bd0 chore(deps): update dependency linkinator to v2
Log from Synthtool ``` synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. On branch autosynth nothing to commit, working tree clean HEAD detached at FETCH_HEAD nothing to commit, working tree clean synthtool > Ensuring dependencies. synthtool > Cloning googleapis. synthtool > Pulling Docker image: gapic-generator-typescript:latest latest: Pulling from gapic-images/gapic-generator-typescript Digest: sha256:74f07b5c1da15cfb972ab316908480388735d70601cb0132146d7ddef036020b Status: Image is up to date for gcr.io/gapic-images/gapic-generator-typescript:latest synthtool > Generating code for: google/container/v1. synthtool > Generated code into /tmpfs/tmp/tmpqjqb21_9. .eslintignore .eslintrc.yml .github/ISSUE_TEMPLATE/bug_report.md .github/ISSUE_TEMPLATE/feature_request.md .github/ISSUE_TEMPLATE/support_request.md .github/PULL_REQUEST_TEMPLATE.md .github/release-please.yml .github/workflows/ci.yaml .jsdoc.js .kokoro/common.cfg .kokoro/continuous/node10/common.cfg .kokoro/continuous/node10/docs.cfg .kokoro/continuous/node10/lint.cfg .kokoro/continuous/node10/samples-test.cfg .kokoro/continuous/node10/system-test.cfg .kokoro/continuous/node10/test.cfg .kokoro/continuous/node12/common.cfg .kokoro/continuous/node12/test.cfg .kokoro/continuous/node8/common.cfg .kokoro/continuous/node8/test.cfg .kokoro/docs.sh .kokoro/lint.sh .kokoro/presubmit/node10/common.cfg .kokoro/presubmit/node10/docs.cfg .kokoro/presubmit/node10/lint.cfg .kokoro/presubmit/node10/samples-test.cfg .kokoro/presubmit/node10/system-test.cfg .kokoro/presubmit/node10/test.cfg .kokoro/presubmit/node12/common.cfg .kokoro/presubmit/node12/test.cfg .kokoro/presubmit/node8/common.cfg .kokoro/presubmit/node8/test.cfg .kokoro/presubmit/windows/common.cfg .kokoro/presubmit/windows/test.cfg .kokoro/publish.sh .kokoro/release/docs.cfg .kokoro/release/docs.sh .kokoro/release/publish.cfg .kokoro/samples-test.sh .kokoro/system-test.sh .kokoro/test.bat .kokoro/test.sh .kokoro/trampoline.sh .nycrc .prettierignore .prettierrc CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md codecov.yaml renovate.json samples/README.md synthtool > No replacements made in src/v1/doc/google/container/v1/doc_cluster_service.js for pattern https:\/\/cloud\.google\.com\/kubernetes-engine\/docs\/reference\/rest\/v1\/projects\.zones\.clusters\.nodePool, maybe replacement is not longer needed? synthtool > Replaced '/compute/docs/zones' in src/v1/cluster_manager_client.ts. synthtool > Replaced '/compute/docs/networks-and-firewalls' in src/v1/cluster_manager_client.ts. synthtool > Replaced '/container-engine/reference/rest/v1/projects.zones.clusters' in src/v1/cluster_manager_client.ts. npm WARN npm npm does not support Node.js v12.15.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11. npm WARN npm You can find the latest version at https://nodejs.org/ > protobufjs@6.8.8 postinstall /tmpfs/src/git/autosynth/working_repo/node_modules/protobufjs > node scripts/postinstall > @google-cloud/container@1.6.2 prepare /tmpfs/src/git/autosynth/working_repo > npm run compile npm WARN npm npm does not support Node.js v12.15.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11. npm WARN npm You can find the latest version at https://nodejs.org/ > @google-cloud/container@1.6.2 compile /tmpfs/src/git/autosynth/working_repo > tsc -p . && cp -r protos build/ npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/watchpack/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) added 961 packages from 937 contributors and audited 6744 packages in 22.803s found 0 vulnerabilities npm WARN npm npm does not support Node.js v12.15.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11. npm WARN npm You can find the latest version at https://nodejs.org/ > @google-cloud/container@1.6.2 compile-protos /tmpfs/src/git/autosynth/working_repo > compileProtos src installing semver@^5.5.0 installing minimist@^1.2.0 installing uglify-js@^3.3.25 installing espree@^3.5.4 installing escodegen@^1.9.1 npm WARN npm npm does not support Node.js v12.15.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can't make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11. npm WARN npm You can find the latest version at https://nodejs.org/ > @google-cloud/container@1.6.2 fix /tmpfs/src/git/autosynth/working_repo > gts fix synthtool > Wrote metadata to synth.metadata. ```
--- .../google/container/v1/cluster_service.proto | 649 ++++++------------ packages/google-container/protos/protos.json | 313 +++------ .../src/v1/cluster_manager_client.ts | 180 ++--- packages/google-container/synth.metadata | 22 +- 4 files changed, 422 insertions(+), 742 deletions(-) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 86475baad30..6330645ae05 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -45,6 +45,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone"; + option (google.api.method_signature) = "parent"; } // Gets the details of a specific cluster. @@ -56,6 +57,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id"; + option (google.api.method_signature) = "name"; } // Creates a cluster, consisting of the specified number and type of Google @@ -81,6 +83,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster"; + option (google.api.method_signature) = "parent,cluster"; } // Updates the settings of a specific cluster. @@ -94,6 +97,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,update"; + option (google.api.method_signature) = "name,update"; } // Updates the version and/or image type for the specified node pool. @@ -131,6 +135,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,logging_service"; + option (google.api.method_signature) = "name,logging_service"; } // Sets the monitoring service for a specific cluster. @@ -144,6 +149,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,monitoring_service"; + option (google.api.method_signature) = "name,monitoring_service"; } // Sets the addons for a specific cluster. @@ -157,6 +163,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,addons_config"; + option (google.api.method_signature) = "name,addons_config"; } // Sets the locations for a specific cluster. @@ -170,6 +177,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,locations"; + option (google.api.method_signature) = "name,locations"; } // Updates the master for a specific cluster. @@ -183,6 +191,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,master_version"; + option (google.api.method_signature) = "name,master_version"; } // Sets master auth materials. Currently supports changing the admin password @@ -216,6 +225,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id"; + option (google.api.method_signature) = "name"; } // Lists all operations in a project in a specific zone or all zones. @@ -251,6 +261,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,operation_id"; + option (google.api.method_signature) = "name"; } // Returns configuration info about the Google Kubernetes Engine service. @@ -262,6 +273,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone"; + option (google.api.method_signature) = "name"; } // Lists the node pools for a cluster. @@ -273,6 +285,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id"; + option (google.api.method_signature) = "parent"; } // Retrieves the requested node pool. @@ -284,6 +297,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; + option (google.api.method_signature) = "name"; } // Creates a node pool for a cluster. @@ -297,6 +311,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool"; + option (google.api.method_signature) = "parent,node_pool"; } // Deletes a node pool from a cluster. @@ -308,6 +323,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; + option (google.api.method_signature) = "name"; } // Rolls back a previously Aborted or Failed NodePool upgrade. @@ -322,6 +338,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; + option (google.api.method_signature) = "name"; } // Sets the NodeManagement options for a node pool. @@ -359,6 +376,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,enabled"; + option (google.api.method_signature) = "name,enabled"; } // Starts master IP rotation. @@ -372,6 +390,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id"; + option (google.api.method_signature) = "name"; } // Completes master IP rotation. @@ -385,6 +404,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id"; + option (google.api.method_signature) = "name"; } // Sets the size for a specific node pool. @@ -410,6 +430,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,network_policy"; + option (google.api.method_signature) = "name,network_policy"; } // Sets the maintenance policy for a cluster. @@ -423,6 +444,7 @@ service ClusterManager { } }; option (google.api.method_signature) = "project_id,zone,cluster_id,maintenance_policy"; + option (google.api.method_signature) = "name,maintenance_policy"; } // Lists subnetworks that are usable for creating clusters in a project. @@ -1422,22 +1444,16 @@ message Operation { // CreateClusterRequest creates a cluster. message CreateClusterRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; // Required. A [cluster // resource](/container-engine/reference/rest/v1/projects.zones.clusters) @@ -1450,29 +1466,20 @@ message CreateClusterRequest { // GetClusterRequest gets the settings of a cluster. message GetClusterRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to retrieve. + // Deprecated. The name of the cluster to retrieve. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // The name (project, location, cluster) of the cluster to retrieve. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1481,29 +1488,20 @@ message GetClusterRequest { // UpdateClusterRequest updates the settings of a cluster. message UpdateClusterRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to upgrade. + // 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, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. A description of the update. ClusterUpdate update = 4 [(google.api.field_behavior) = REQUIRED]; @@ -1515,36 +1513,24 @@ message UpdateClusterRequest { // UpdateNodePoolRequests update a node pool's image and/or version. message UpdateNodePoolRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to upgrade. + // 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, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; - // Required. Deprecated. The name of the node pool to upgrade. + // Deprecated. The name of the node pool to upgrade. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string node_pool_id = 4 [deprecated = true]; // Required. The Kubernetes version to change the nodes to (typically an // upgrade). @@ -1570,36 +1556,24 @@ message UpdateNodePoolRequest { // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. message SetNodePoolAutoscalingRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to upgrade. + // 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, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; - // Required. Deprecated. The name of the node pool to upgrade. + // Deprecated. The name of the node pool to upgrade. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string node_pool_id = 4 [deprecated = true]; // Required. Autoscaling configuration for the node pool. NodePoolAutoscaling autoscaling = 5 [(google.api.field_behavior) = REQUIRED]; @@ -1612,26 +1586,20 @@ message SetNodePoolAutoscalingRequest { // SetLoggingServiceRequest sets the logging service of a cluster. message SetLoggingServiceRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [(google.api.field_behavior) = REQUIRED]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to upgrade. + // 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, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. The logging service the cluster should use to write metrics. // Currently available options: @@ -1647,29 +1615,20 @@ message SetLoggingServiceRequest { // SetMonitoringServiceRequest sets the monitoring service of a cluster. message SetMonitoringServiceRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to upgrade. + // 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, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. The monitoring service the cluster should use to write metrics. // Currently available options: @@ -1687,29 +1646,20 @@ message SetMonitoringServiceRequest { // SetAddonsConfigRequest sets the addons associated with the cluster. message SetAddonsConfigRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to upgrade. + // 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, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. The desired configurations for the various addons available to run in the // cluster. @@ -1722,29 +1672,20 @@ message SetAddonsConfigRequest { // SetLocationsRequest sets the locations of the cluster. message SetLocationsRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to upgrade. + // 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, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. The desired list of Google Compute Engine // [zones](/compute/docs/zones#available) in which the cluster's nodes @@ -1762,29 +1703,20 @@ message SetLocationsRequest { // UpdateMasterRequest updates the master of the cluster. message UpdateMasterRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to upgrade. + // 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, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. The Kubernetes version to change the master to. // @@ -1823,29 +1755,20 @@ message SetMasterAuthRequest { SET_USERNAME = 3; } - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to upgrade. + // 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, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. The exact form of action to be taken on the master auth. Action action = 4 [(google.api.field_behavior) = REQUIRED]; @@ -1860,29 +1783,20 @@ message SetMasterAuthRequest { // DeleteClusterRequest deletes a cluster. message DeleteClusterRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to delete. + // Deprecated. The name of the cluster to delete. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // The name (project, location, cluster) of the cluster to delete. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1891,22 +1805,16 @@ message DeleteClusterRequest { // ListClustersRequest lists clusters. message ListClustersRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; // The parent (project and location) where the clusters will be listed. // Specified in the format 'projects/*/locations/*'. @@ -1927,29 +1835,20 @@ message ListClustersResponse { // GetOperationRequest gets a single operation. message GetOperationRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The server-assigned `name` of the operation. + // Deprecated. The server-assigned `name` of the operation. // This field has been deprecated and replaced by the name field. - string operation_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string operation_id = 3 [deprecated = true]; // The name (project, location, operation id) of the operation to get. // Specified in the format 'projects/*/locations/*/operations/*'. @@ -1958,21 +1857,15 @@ message GetOperationRequest { // ListOperationsRequest lists operations. message ListOperationsRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; // The parent (project and location) where the operations will be listed. // Specified in the format 'projects/*/locations/*'. @@ -1982,28 +1875,19 @@ message ListOperationsRequest { // CancelOperationRequest cancels a single operation. message CancelOperationRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The server-assigned `name` of the operation. + // Deprecated. The server-assigned `name` of the operation. // This field has been deprecated and replaced by the name field. - string operation_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string operation_id = 3 [deprecated = true]; // The name (project, location, operation id) of the operation to cancel. // Specified in the format 'projects/*/locations/*/operations/*'. @@ -2022,21 +1906,15 @@ message ListOperationsResponse { // Gets the current Kubernetes Engine service configuration. message GetServerConfigRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) to return operations for. // This field has been deprecated and replaced by the name field. - string zone = 2 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; // The name (project and location) of the server config to get, // specified in the format 'projects/*/locations/*'. @@ -2063,29 +1941,20 @@ message ServerConfig { // CreateNodePoolRequest creates a node pool for a cluster. message CreateNodePoolRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster. + // Deprecated. The name of the cluster. // This field has been deprecated and replaced by the parent field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. The node pool to create. NodePool node_pool = 4 [(google.api.field_behavior) = REQUIRED]; @@ -2098,36 +1967,24 @@ message CreateNodePoolRequest { // DeleteNodePoolRequest deletes a node pool for a cluster. message DeleteNodePoolRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster. + // Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; - // Required. Deprecated. The name of the node pool to delete. + // Deprecated. The name of the node pool to delete. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string node_pool_id = 4 [deprecated = true]; // The name (project, location, cluster, node pool id) of the node pool to // delete. Specified in the format @@ -2137,29 +1994,20 @@ message DeleteNodePoolRequest { // ListNodePoolsRequest lists the node pool(s) for a cluster. message ListNodePoolsRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster. + // Deprecated. The name of the cluster. // This field has been deprecated and replaced by the parent field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // The parent (project, location, cluster id) where the node pools will be // listed. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2168,36 +2016,24 @@ message ListNodePoolsRequest { // GetNodePoolRequest retrieves a node pool for a cluster. message GetNodePoolRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster. + // Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; - // Required. Deprecated. The name of the node pool. + // Deprecated. The name of the node pool. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string node_pool_id = 4 [deprecated = true]; // The name (project, location, cluster, node pool id) of the node pool to // get. Specified in the format @@ -2414,36 +2250,24 @@ message DailyMaintenanceWindow { // SetNodePoolManagementRequest sets the node management properties of a node // pool. message SetNodePoolManagementRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to update. + // Deprecated. The name of the cluster to update. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; - // Required. Deprecated. The name of the node pool to update. + // Deprecated. The name of the node pool to update. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string node_pool_id = 4 [deprecated = true]; // Required. NodeManagement configuration for the node pool. NodeManagement management = 5 [(google.api.field_behavior) = REQUIRED]; @@ -2457,36 +2281,24 @@ message SetNodePoolManagementRequest { // SetNodePoolSizeRequest sets the size a node // pool. message SetNodePoolSizeRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to update. + // Deprecated. The name of the cluster to update. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; - // Required. Deprecated. The name of the node pool to update. + // Deprecated. The name of the node pool to update. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string node_pool_id = 4 [deprecated = true]; // Required. The desired node count for the pool. int32 node_count = 5 [(google.api.field_behavior) = REQUIRED]; @@ -2501,36 +2313,24 @@ message SetNodePoolSizeRequest { // NodePool upgrade. This will be an no-op if the last upgrade successfully // completed. message RollbackNodePoolUpgradeRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to rollback. + // Deprecated. The name of the cluster to rollback. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; - // Required. Deprecated. The name of the node pool to rollback. + // Deprecated. The name of the node pool to rollback. // This field has been deprecated and replaced by the name field. - string node_pool_id = 4 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string node_pool_id = 4 [deprecated = true]; // The name (project, location, cluster, node pool id) of the node poll to // rollback upgrade. @@ -2612,29 +2412,20 @@ message NodePoolAutoscaling { // Engine cluster, which will in turn set them for Google Compute Engine // resources used by that cluster message SetLabelsRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster. + // Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. The labels to set for that cluster. map resource_labels = 4 [(google.api.field_behavior) = REQUIRED]; @@ -2655,29 +2446,20 @@ message SetLabelsRequest { // SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for // a cluster. message SetLegacyAbacRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster to update. + // Deprecated. The name of the cluster to update. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. Whether ABAC authorization will be enabled in the cluster. bool enabled = 4 [(google.api.field_behavior) = REQUIRED]; @@ -2690,29 +2472,20 @@ message SetLegacyAbacRequest { // StartIPRotationRequest creates a new IP for the cluster and then performs // a node upgrade on each node pool to point to the new IP. message StartIPRotationRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster. + // Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // The name (project, location, cluster id) of the cluster to start IP // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2724,29 +2497,20 @@ message StartIPRotationRequest { // CompleteIPRotationRequest moves the cluster master back into single-IP mode. message CompleteIPRotationRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster. + // Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // The name (project, location, cluster id) of the cluster to complete IP // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2765,29 +2529,20 @@ message AcceleratorConfig { // SetNetworkPolicyRequest enables/disables network policy for a cluster. message SetNetworkPolicyRequest { - // Required. Deprecated. The Google Developers Console [project ID or project + // Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string project_id = 1 [deprecated = true]; - // Required. Deprecated. The name of the Google Compute Engine + // Deprecated. The name of the Google Compute Engine // [zone](/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, - (google.api.field_behavior) = REQUIRED - ]; + string zone = 2 [deprecated = true]; - // Required. Deprecated. The name of the cluster. + // Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; + string cluster_id = 3 [deprecated = true]; // Required. Configuration options for the NetworkPolicy feature. NetworkPolicy network_policy = 4 [(google.api.field_behavior) = REQUIRED]; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index ca14fb9701b..a1ea8f72a34 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -26,7 +26,7 @@ "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/clusters", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters", - "(google.api.method_signature)": "project_id,zone" + "(google.api.method_signature)": "parent" } }, "GetCluster": { @@ -35,7 +35,7 @@ "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/clusters/*}", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", - "(google.api.method_signature)": "project_id,zone,cluster_id" + "(google.api.method_signature)": "name" } }, "CreateCluster": { @@ -46,7 +46,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster" + "(google.api.method_signature)": "parent,cluster" } }, "UpdateCluster": { @@ -57,7 +57,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.put": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,update" + "(google.api.method_signature)": "name,update" } }, "UpdateNodePool": { @@ -88,7 +88,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,logging_service" + "(google.api.method_signature)": "name,logging_service" } }, "SetMonitoringService": { @@ -99,7 +99,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,monitoring_service" + "(google.api.method_signature)": "name,monitoring_service" } }, "SetAddonsConfig": { @@ -110,7 +110,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,addons_config" + "(google.api.method_signature)": "name,addons_config" } }, "SetLocations": { @@ -121,7 +121,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,locations" + "(google.api.method_signature)": "name,locations" } }, "UpdateMaster": { @@ -132,7 +132,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,master_version" + "(google.api.method_signature)": "name,master_version" } }, "SetMasterAuth": { @@ -151,7 +151,7 @@ "options": { "(google.api.http).delete": "/v1/{name=projects/*/locations/*/clusters/*}", "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", - "(google.api.method_signature)": "project_id,zone,cluster_id" + "(google.api.method_signature)": "name" } }, "ListOperations": { @@ -180,7 +180,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,operation_id" + "(google.api.method_signature)": "name" } }, "GetServerConfig": { @@ -189,7 +189,7 @@ "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*}/serverConfig", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/serverconfig", - "(google.api.method_signature)": "project_id,zone" + "(google.api.method_signature)": "name" } }, "ListNodePools": { @@ -198,7 +198,7 @@ "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", - "(google.api.method_signature)": "project_id,zone,cluster_id" + "(google.api.method_signature)": "parent" } }, "GetNodePool": { @@ -207,7 +207,7 @@ "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}", - "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" + "(google.api.method_signature)": "name" } }, "CreateNodePool": { @@ -218,7 +218,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool" + "(google.api.method_signature)": "parent,node_pool" } }, "DeleteNodePool": { @@ -227,7 +227,7 @@ "options": { "(google.api.http).delete": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}", - "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" + "(google.api.method_signature)": "name" } }, "RollbackNodePoolUpgrade": { @@ -238,7 +238,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" + "(google.api.method_signature)": "name" } }, "SetNodePoolManagement": { @@ -269,7 +269,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,enabled" + "(google.api.method_signature)": "name,enabled" } }, "StartIPRotation": { @@ -280,7 +280,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id" + "(google.api.method_signature)": "name" } }, "CompleteIPRotation": { @@ -291,7 +291,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id" + "(google.api.method_signature)": "name" } }, "SetNodePoolSize": { @@ -312,7 +312,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,network_policy" + "(google.api.method_signature)": "name,network_policy" } }, "SetMaintenancePolicy": { @@ -323,7 +323,7 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy", "(google.api.http).additional_bindings.body": "*", - "(google.api.method_signature)": "project_id,zone,cluster_id,maintenance_policy" + "(google.api.method_signature)": "name,maintenance_policy" } }, "ListUsableSubnetworks": { @@ -1106,16 +1106,14 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "cluster": { @@ -1137,24 +1135,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "name": { @@ -1169,24 +1164,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "update": { @@ -1208,32 +1200,28 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "nodeVersion": { @@ -1262,32 +1250,28 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "autoscaling": { @@ -1309,23 +1293,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "loggingService": { @@ -1347,24 +1329,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "monitoringService": { @@ -1386,24 +1365,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "addonsConfig": { @@ -1425,24 +1401,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "locations": { @@ -1465,24 +1438,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "masterVersion": { @@ -1504,24 +1474,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "action": { @@ -1560,24 +1527,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "name": { @@ -1592,16 +1556,14 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "parent": { @@ -1630,24 +1592,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "operationId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "name": { @@ -1662,16 +1621,14 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "parent": { @@ -1686,24 +1643,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "operationId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "name": { @@ -1732,16 +1686,14 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "name": { @@ -1783,24 +1735,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "nodePool": { @@ -1822,32 +1771,28 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "name": { @@ -1862,24 +1807,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "parent": { @@ -1894,32 +1836,28 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "name": { @@ -2106,32 +2044,28 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "management": { @@ -2153,32 +2087,28 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "nodeCount": { @@ -2200,32 +2130,28 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "nodePoolId": { "type": "string", "id": 4, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "name": { @@ -2320,24 +2246,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "resourceLabels": { @@ -2367,24 +2290,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "enabled": { @@ -2406,24 +2326,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "name": { @@ -2442,24 +2359,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "name": { @@ -2486,24 +2400,21 @@ "type": "string", "id": 1, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "zone": { "type": "string", "id": 2, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "clusterId": { "type": "string", "id": 3, "options": { - "deprecated": true, - "(google.api.field_behavior)": "REQUIRED" + "deprecated": true } }, "networkPolicy": { diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 7ac201830d3..640e862c49f 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -316,11 +316,11 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides, or "-" for all zones. * This field has been deprecated and replaced by the parent field. @@ -398,16 +398,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to retrieve. + * Deprecated. The name of the cluster to retrieve. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster) of the cluster to retrieve. @@ -494,11 +494,11 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the parent field. @@ -578,16 +578,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {google.container.v1.ClusterUpdate} request.update * Required. A description of the update. @@ -664,19 +664,19 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to upgrade. + * Deprecated. The name of the node pool to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.nodeVersion * Required. The Kubernetes version to change the nodes to (typically an @@ -770,19 +770,19 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to upgrade. + * Deprecated. The name of the node pool to upgrade. * This field has been deprecated and replaced by the name field. * @param {google.container.v1.NodePoolAutoscaling} request.autoscaling * Required. Autoscaling configuration for the node pool. @@ -869,16 +869,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.loggingService * Required. The logging service the cluster should use to write metrics. @@ -959,16 +959,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.monitoringService * Required. The monitoring service the cluster should use to write metrics. @@ -1052,16 +1052,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {google.container.v1.AddonsConfig} request.addonsConfig * Required. The desired configurations for the various addons available to run in the @@ -1139,16 +1139,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string[]} request.locations * Required. The desired list of Google Compute Engine @@ -1231,16 +1231,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.masterVersion * Required. The Kubernetes version to change the master to. @@ -1328,16 +1328,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to upgrade. + * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {google.container.v1.SetMasterAuthRequest.Action} request.action * Required. The exact form of action to be taken on the master auth. @@ -1424,16 +1424,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to delete. + * Deprecated. The name of the cluster to delete. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster) of the cluster to delete. @@ -1508,11 +1508,11 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) to return operations for, or `-` for * all zones. This field has been deprecated and replaced by the parent field. * @param {string} request.parent @@ -1589,16 +1589,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.operationId - * Required. Deprecated. The server-assigned `name` of the operation. + * Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, operation id) of the operation to get. @@ -1673,15 +1673,15 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the operation resides. * This field has been deprecated and replaced by the name field. * @param {string} request.operationId - * Required. Deprecated. The server-assigned `name` of the operation. + * Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, operation id) of the operation to cancel. @@ -1756,11 +1756,11 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) to return operations for. * This field has been deprecated and replaced by the name field. * @param {string} request.name @@ -1836,16 +1836,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the parent field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. + * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. * @param {string} request.parent * The parent (project, location, cluster id) where the node pools will be @@ -1920,19 +1920,19 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. + * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool. + * Deprecated. The name of the node pool. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster, node pool id) of the node pool to @@ -2008,16 +2008,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the parent field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. + * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. * @param {google.container.v1.NodePool} request.nodePool * Required. The node pool to create. @@ -2095,19 +2095,19 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. + * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to delete. + * Deprecated. The name of the node pool to delete. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster, node pool id) of the node pool to @@ -2188,19 +2188,19 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to rollback. + * Deprecated. The name of the cluster to rollback. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to rollback. + * Deprecated. The name of the node pool to rollback. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster, node pool id) of the node poll to @@ -2285,19 +2285,19 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to update. + * Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to update. + * Deprecated. The name of the node pool to update. * This field has been deprecated and replaced by the name field. * @param {google.container.v1.NodeManagement} request.management * Required. NodeManagement configuration for the node pool. @@ -2380,16 +2380,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. + * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {number[]} request.resourceLabels * Required. The labels to set for that cluster. @@ -2473,16 +2473,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to update. + * Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. * @param {boolean} request.enabled * Required. Whether ABAC authorization will be enabled in the cluster. @@ -2559,16 +2559,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. + * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster id) of the cluster to start IP @@ -2645,16 +2645,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. + * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster id) of the cluster to complete IP @@ -2730,19 +2730,19 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster to update. + * Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. * @param {string} request.nodePoolId - * Required. Deprecated. The name of the node pool to update. + * Deprecated. The name of the node pool to update. * This field has been deprecated and replaced by the name field. * @param {number} request.nodeCount * Required. The desired node count for the pool. @@ -2820,16 +2820,16 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.projectId - * Required. Deprecated. The Google Developers Console [project ID or project + * Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). * This field has been deprecated and replaced by the name field. * @param {string} request.zone - * Required. Deprecated. The name of the Google Compute Engine + * Deprecated. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster * resides. * This field has been deprecated and replaced by the name field. * @param {string} request.clusterId - * Required. Deprecated. The name of the cluster. + * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {google.container.v1.NetworkPolicy} request.networkPolicy * Required. Configuration options for the NetworkPolicy feature. diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index a2a7f6371fb..1fcbf5c4c3e 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,13 +1,27 @@ { - "updateTime": "2020-02-07T12:14:17.845530Z", + "updateTime": "2020-02-14T12:15:02.204704Z", "sources": [ + { + "git": { + "name": ".", + "remote": "https://github.com/googleapis/nodejs-cloud-container.git", + "sha": "a76c44c3f25671d0fb4b86692a0d9b507a28c144" + } + }, + { + "git": { + "name": "synthtool", + "remote": "rpc://devrel/cloud/libraries/tools/autosynth", + "sha": "dd7cd93888cbeb1d4c56a1ca814491c7813160e8" + } + }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "e46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585", - "internalRef": "293710856", - "log": "e46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585\nGenerate the Bazel build file for recommendengine public api\n\nPiperOrigin-RevId: 293710856\n\n68477017c4173c98addac0373950c6aa9d7b375f\nMake `language_code` optional for UpdateIntentRequest and BatchUpdateIntentsRequest.\n\nThe comments and proto annotations describe this parameter as optional.\n\nPiperOrigin-RevId: 293703548\n\n16f823f578bca4e845a19b88bb9bc5870ea71ab2\nAdd BUILD.bazel files for managedidentities API\n\nPiperOrigin-RevId: 293698246\n\n2f53fd8178c9a9de4ad10fae8dd17a7ba36133f2\nAdd v1p1beta1 config file\n\nPiperOrigin-RevId: 293696729\n\n052b274138fce2be80f97b6dcb83ab343c7c8812\nAdd source field for user event and add field behavior annotations\n\nPiperOrigin-RevId: 293693115\n\n1e89732b2d69151b1b3418fff3d4cc0434f0dded\ndatacatalog: v1beta1 add three new RPCs to gapic v1beta1 config\n\nPiperOrigin-RevId: 293692823\n\n9c8bd09bbdc7c4160a44f1fbab279b73cd7a2337\nchange the name of AccessApproval service to AccessApprovalAdmin\n\nPiperOrigin-RevId: 293690934\n\n2e23b8fbc45f5d9e200572ca662fe1271bcd6760\nAdd ListEntryGroups method, add http bindings to support entry group tagging, and update some comments.\n\nPiperOrigin-RevId: 293666452\n\n0275e38a4ca03a13d3f47a9613aac8c8b0d3f1f2\nAdd proto_package field to managedidentities API. It is needed for APIs that still depend on artman generation.\n\nPiperOrigin-RevId: 293643323\n\n4cdfe8278cb6f308106580d70648001c9146e759\nRegenerating public protos for Data Catalog to add new Custom Type Entry feature.\n\nPiperOrigin-RevId: 293614782\n\n45d2a569ab526a1fad3720f95eefb1c7330eaada\nEnable client generation for v1 ManagedIdentities API.\n\nPiperOrigin-RevId: 293515675\n\n2c17086b77e6f3bcf04a1f65758dfb0c3da1568f\nAdd the Actions on Google common types (//google/actions/type/*).\n\nPiperOrigin-RevId: 293478245\n\n781aadb932e64a12fb6ead7cd842698d99588433\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293443396\n\ne2602608c9138c2fca24162720e67f9307c30b95\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293442964\n\nc8aef82028d06b7992278fa9294c18570dc86c3d\nAdd cc_proto_library and cc_grpc_library targets for Bigtable protos.\n\nAlso fix indentation of cc_grpc_library targets in Spanner and IAM protos.\n\nPiperOrigin-RevId: 293440538\n\ne2faab04f4cb7f9755072330866689b1943a16e9\ncloudtasks: v2 replace non-standard retry params in gapic config v2\n\nPiperOrigin-RevId: 293424055\n\ndfb4097ea628a8470292c6590a4313aee0c675bd\nerrorreporting: v1beta1 add legacy artman config for php\n\nPiperOrigin-RevId: 293423790\n\nb18aed55b45bfe5b62476292c72759e6c3e573c6\nasset: v1p1beta1 updated comment for `page_size` limit.\n\nPiperOrigin-RevId: 293421386\n\nc9ef36b7956d9859a2fc86ad35fcaa16958ab44f\nbazel: Refactor CI build scripts\n\nPiperOrigin-RevId: 293387911\n\na8ed9d921fdddc61d8467bfd7c1668f0ad90435c\nfix: set Ruby module name for OrgPolicy\n\nPiperOrigin-RevId: 293257997\n\n6c7d28509bd8315de8af0889688ee20099594269\nredis: v1beta1 add UpgradeInstance and connect_mode field to Instance\n\nPiperOrigin-RevId: 293242878\n\nae0abed4fcb4c21f5cb67a82349a049524c4ef68\nredis: v1 add connect_mode field to Instance\n\nPiperOrigin-RevId: 293241914\n\n3f7a0d29b28ee9365771da2b66edf7fa2b4e9c56\nAdds service config definition for bigqueryreservation v1beta1\n\nPiperOrigin-RevId: 293234418\n\n0c88168d5ed6fe353a8cf8cbdc6bf084f6bb66a5\naddition of BUILD & configuration for accessapproval v1\n\nPiperOrigin-RevId: 293219198\n\n39bedc2e30f4778ce81193f6ba1fec56107bcfc4\naccessapproval: v1 publish protos\n\nPiperOrigin-RevId: 293167048\n\n69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n29d40b78e3dc1579b0b209463fbcb76e5767f72a\nExpose managedidentities/v1beta1/ API for client library usage.\n\nPiperOrigin-RevId: 292979741\n\na22129a1fb6e18056d576dfb7717aef74b63734a\nExpose managedidentities/v1/ API for client library usage.\n\nPiperOrigin-RevId: 292968186\n\nb5cbe4a4ba64ab19e6627573ff52057a1657773d\nSecurityCenter v1p1beta1: move file-level option on top to workaround protobuf.js bug.\n\nPiperOrigin-RevId: 292647187\n\nb224b317bf20c6a4fbc5030b4a969c3147f27ad3\nAdds API definitions for bigqueryreservation v1beta1.\n\nPiperOrigin-RevId: 292634722\n\nc1468702f9b17e20dd59007c0804a089b83197d2\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 292626173\n\nffdfa4f55ab2f0afc11d0eb68f125ccbd5e404bd\nvision: v1p3beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605599\n\n78f61482cd028fc1d9892aa5d89d768666a954cd\nvision: v1p1beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605125\n\n60bb5a294a604fd1778c7ec87b265d13a7106171\nvision: v1p2beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604980\n\n3bcf7aa79d45eb9ec29ab9036e9359ea325a7fc3\nvision: v1p4beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604656\n\n2717b8a1c762b26911b45ecc2e4ee01d98401b28\nFix dataproc artman client library generation.\n\nPiperOrigin-RevId: 292555664\n\n7ac66d9be8a7d7de4f13566d8663978c9ee9dcd7\nAdd Dataproc Autoscaling API to V1.\n\nPiperOrigin-RevId: 292450564\n\n5d932b2c1be3a6ef487d094e3cf5c0673d0241dd\n- Improve documentation\n- Add a client_id field to StreamingPullRequest\n\nPiperOrigin-RevId: 292434036\n\neaff9fa8edec3e914995ce832b087039c5417ea7\nmonitoring: v3 publish annotations and client retry config\n\nPiperOrigin-RevId: 292425288\n\n70958bab8c5353870d31a23fb2c40305b050d3fe\nBigQuery Storage Read API v1 clients.\n\nPiperOrigin-RevId: 292407644\n\n7a15e7fe78ff4b6d5c9606a3264559e5bde341d1\nUpdate backend proto for Google Cloud Endpoints\n\nPiperOrigin-RevId: 292391607\n\n3ca2c014e24eb5111c8e7248b1e1eb833977c83d\nbazel: Add --flaky_test_attempts=3 argument to prevent CI failures caused by flaky tests\n\nPiperOrigin-RevId: 292382559\n\n9933347c1f677e81e19a844c2ef95bfceaf694fe\nbazel:Integrate latest protoc-java-resource-names-plugin changes (fix for PyYAML dependency in bazel rules)\n\nPiperOrigin-RevId: 292376626\n\nb835ab9d2f62c88561392aa26074c0b849fb0bd3\nasset: v1p2beta1 add client config annotations\n\n* remove unintentionally exposed RPCs\n* remove messages relevant to removed RPCs\n\nPiperOrigin-RevId: 292369593\n\nc1246a29e22b0f98e800a536b5b0da2d933a55f2\nUpdating v1 protos with the latest inline documentation (in comments) and config options. Also adding a per-service .yaml file.\n\nPiperOrigin-RevId: 292310790\n\nb491d07cadaae7cde5608321f913e5ca1459b32d\nRevert accidental local_repository change\n\nPiperOrigin-RevId: 292245373\n\naf3400a8cb6110025198b59a0f7d018ae3cda700\nUpdate gapic-generator dependency (prebuilt PHP binary support).\n\nPiperOrigin-RevId: 292243997\n\n341fd5690fae36f36cf626ef048fbcf4bbe7cee6\ngrafeas: v1 add resource_definition for the grafeas.io/Project and change references for Project.\n\nPiperOrigin-RevId: 292221998\n\n42e915ec2ece1cd37a590fbcd10aa2c0fb0e5b06\nUpdate the gapic-generator, protoc-java-resource-name-plugin and protoc-docs-plugin to the latest commit.\n\nPiperOrigin-RevId: 292182368\n\nf035f47250675d31492a09f4a7586cfa395520a7\nFix grafeas build and update build.sh script to include gerafeas.\n\nPiperOrigin-RevId: 292168753\n\n26ccb214b7bc4a716032a6266bcb0a9ca55d6dbb\nasset: v1p1beta1 add client config annotations and retry config\n\nPiperOrigin-RevId: 292154210\n\n974ee5c0b5d03e81a50dafcedf41e0efebb5b749\nasset: v1beta1 add client config annotations\n\nPiperOrigin-RevId: 292152573\n\ncf3b61102ed5f36b827bc82ec39be09525f018c8\n Fix to protos for v1p1beta1 release of Cloud Security Command Center\n\nPiperOrigin-RevId: 292034635\n\n4e1cfaa7c0fede9e65d64213ca3da1b1255816c0\nUpdate the public proto to support UTF-8 encoded id for CatalogService API, increase the ListCatalogItems deadline to 300s and some minor documentation change\n\nPiperOrigin-RevId: 292030970\n\n9c483584f8fd5a1b862ae07973f4cc7bb3e46648\nasset: add annotations to v1p1beta1\n\nPiperOrigin-RevId: 292009868\n\ne19209fac29731d0baf6d9ac23da1164f7bdca24\nAdd the google.rpc.context.AttributeContext message to the open source\ndirectories.\n\nPiperOrigin-RevId: 291999930\n\nae5662960573f279502bf98a108a35ba1175e782\noslogin API: move file level option on top of the file to avoid protobuf.js bug.\n\nPiperOrigin-RevId: 291990506\n\neba3897fff7c49ed85d3c47fc96fe96e47f6f684\nAdd cc_proto_library and cc_grpc_library targets for Spanner and IAM protos.\n\nPiperOrigin-RevId: 291988651\n\n" + "sha": "5169f46d9f792e2934d9fa25c36d0515b4fd0024", + "internalRef": "295026522", + "log": "5169f46d9f792e2934d9fa25c36d0515b4fd0024\nAdded cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295026522\n\n56b55aa8818cd0a532a7d779f6ef337ba809ccbd\nFix: Resource annotations for CreateTimeSeriesRequest and ListTimeSeriesRequest should refer to valid resources. TimeSeries is not a named resource.\n\nPiperOrigin-RevId: 294931650\n\n0646bc775203077226c2c34d3e4d50cc4ec53660\nRemove unnecessary languages from bigquery-related artman configuration files.\n\nPiperOrigin-RevId: 294809380\n\n8b78aa04382e3d4147112ad6d344666771bb1909\nUpdate backend.proto for schemes and protocol\n\nPiperOrigin-RevId: 294788800\n\n80b8f8b3de2359831295e24e5238641a38d8488f\nAdds artman config files for bigquerystorage endpoints v1beta2, v1alpha2, v1\n\nPiperOrigin-RevId: 294763931\n\n2c17ac33b226194041155bb5340c3f34733f1b3a\nAdd parameter to sample generated for UpdateInstance. Related to https://github.com/googleapis/python-redis/issues/4\n\nPiperOrigin-RevId: 294734008\n\nd5e8a8953f2acdfe96fb15e85eb2f33739623957\nMove bigquery datatransfer to gapic v2.\n\nPiperOrigin-RevId: 294703703\n\nefd36705972cfcd7d00ab4c6dfa1135bafacd4ae\nfix: Add two annotations that we missed.\n\nPiperOrigin-RevId: 294664231\n\n8a36b928873ff9c05b43859b9d4ea14cd205df57\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1beta2).\n\nPiperOrigin-RevId: 294459768\n\nc7a3caa2c40c49f034a3c11079dd90eb24987047\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1).\n\nPiperOrigin-RevId: 294456889\n\n5006247aa157e59118833658084345ee59af7c09\nFix: Make deprecated fields optional\nFix: Deprecate SetLoggingServiceRequest.zone in line with the comments\nFeature: Add resource name method signatures where appropriate\n\nPiperOrigin-RevId: 294383128\n\neabba40dac05c5cbe0fca3a35761b17e372036c4\nFix: C# and PHP package/namespace capitalization for BigQuery Storage v1.\n\nPiperOrigin-RevId: 294382444\n\nf8d9a858a7a55eba8009a23aa3f5cc5fe5e88dde\nfix: artman configuration file for bigtable-admin\n\nPiperOrigin-RevId: 294322616\n\n0f29555d1cfcf96add5c0b16b089235afbe9b1a9\nAPI definition for (not-yet-launched) GCS gRPC.\n\nPiperOrigin-RevId: 294321472\n\nfcc86bee0e84dc11e9abbff8d7c3529c0626f390\nfix: Bigtable Admin v2\n\nChange LRO metadata from PartialUpdateInstanceMetadata\nto UpdateInstanceMetadata. (Otherwise, it will not build.)\n\nPiperOrigin-RevId: 294264582\n\n6d9361eae2ebb3f42d8c7ce5baf4bab966fee7c0\nrefactor: Add annotations to Bigtable Admin v2.\n\nPiperOrigin-RevId: 294243406\n\nad7616f3fc8e123451c8b3a7987bc91cea9e6913\nFix: Resource type in CreateLogMetricRequest should use logging.googleapis.com.\nFix: ListLogEntries should have a method signature for convenience of calling it.\n\nPiperOrigin-RevId: 294222165\n\n63796fcbb08712676069e20a3e455c9f7aa21026\nFix: Remove extraneous resource definition for cloudkms.googleapis.com/CryptoKey.\n\nPiperOrigin-RevId: 294176658\n\ne7d8a694f4559201e6913f6610069cb08b39274e\nDepend on the latest gapic-generator and resource names plugin.\n\nThis fixes the very old an very annoying bug: https://github.com/googleapis/gapic-generator/pull/3087\n\nPiperOrigin-RevId: 293903652\n\n806b2854a966d55374ee26bb0cef4e30eda17b58\nfix: correct capitalization of Ruby namespaces in SecurityCenter V1p1beta1\n\nPiperOrigin-RevId: 293903613\n\n1b83c92462b14d67a7644e2980f723112472e03a\nPublish annotations and grpc service config for Logging API.\n\nPiperOrigin-RevId: 293893514\n\n" } }, { From 7cf326df43f262000c86779e411bd4a29271633d Mon Sep 17 00:00:00 2001 From: Xiaozhen Liu Date: Wed, 26 Feb 2020 15:06:07 -0800 Subject: [PATCH 184/371] feat: export protos in src/index.ts --- packages/google-container/src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/google-container/src/index.ts b/packages/google-container/src/index.ts index 01301d47443..bea92d8699b 100644 --- a/packages/google-container/src/index.ts +++ b/packages/google-container/src/index.ts @@ -22,3 +22,5 @@ export {v1, ClusterManagerClient}; // For compatibility with JavaScript libraries we need to provide this default export: // tslint:disable-next-line no-default-export export default {v1, ClusterManagerClient}; +import * as protos from '../protos/protos'; +export {protos}; From 5d0470c6fe159fc71b6d6c62b29cc075d1f63514 Mon Sep 17 00:00:00 2001 From: Summer Ji Date: Thu, 27 Feb 2020 11:52:50 -0800 Subject: [PATCH 185/371] chore: update jsdoc.js (#299) --- packages/google-container/.jsdoc.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index 1a4d43f7274..407933b15f7 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -36,11 +36,14 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2018 Google, LLC.', + copyright: 'Copyright 2019 Google, LLC.', includeDate: false, sourceFiles: false, systemName: '@google-cloud/container', - theme: 'lumen' + theme: 'lumen', + default: { + "outputSourceFiles": false + } }, markdown: { idInHeadings: true From 97c0fbf29002d29398ddbd1645e0d76cf9e28972 Mon Sep 17 00:00:00 2001 From: Summer Ji Date: Fri, 28 Feb 2020 16:36:15 -0800 Subject: [PATCH 186/371] chore: update jsdoc with macro license (#302) --- packages/google-container/.jsdoc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index 407933b15f7..a1ca9ef8058 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -12,6 +12,9 @@ // See the License for the specific language governing permissions and // limitations under the License. // +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** 'use strict'; From 843c13cde9bde3a0e5578f19d1481551ee10b991 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 29 Feb 2020 10:28:44 -0800 Subject: [PATCH 187/371] chore: update .jsdoc.js --- packages/google-container/.jsdoc.js | 5 +++-- packages/google-container/synth.metadata | 22 ++++------------------ 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index a1ca9ef8058..1efa19c9f3d 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -34,7 +34,8 @@ module.exports = { source: { excludePattern: '(^|\\/|\\\\)[._]', include: [ - 'build/src' + 'build/src', + 'protos' ], includePattern: '\\.js$' }, @@ -45,7 +46,7 @@ module.exports = { systemName: '@google-cloud/container', theme: 'lumen', default: { - "outputSourceFiles": false + outputSourceFiles: false } }, markdown: { diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 1fcbf5c4c3e..3c0c95d66b8 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,27 +1,13 @@ { - "updateTime": "2020-02-14T12:15:02.204704Z", + "updateTime": "2020-02-29T12:18:01.970231Z", "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "a76c44c3f25671d0fb4b86692a0d9b507a28c144" - } - }, - { - "git": { - "name": "synthtool", - "remote": "rpc://devrel/cloud/libraries/tools/autosynth", - "sha": "dd7cd93888cbeb1d4c56a1ca814491c7813160e8" - } - }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5169f46d9f792e2934d9fa25c36d0515b4fd0024", - "internalRef": "295026522", - "log": "5169f46d9f792e2934d9fa25c36d0515b4fd0024\nAdded cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295026522\n\n56b55aa8818cd0a532a7d779f6ef337ba809ccbd\nFix: Resource annotations for CreateTimeSeriesRequest and ListTimeSeriesRequest should refer to valid resources. TimeSeries is not a named resource.\n\nPiperOrigin-RevId: 294931650\n\n0646bc775203077226c2c34d3e4d50cc4ec53660\nRemove unnecessary languages from bigquery-related artman configuration files.\n\nPiperOrigin-RevId: 294809380\n\n8b78aa04382e3d4147112ad6d344666771bb1909\nUpdate backend.proto for schemes and protocol\n\nPiperOrigin-RevId: 294788800\n\n80b8f8b3de2359831295e24e5238641a38d8488f\nAdds artman config files for bigquerystorage endpoints v1beta2, v1alpha2, v1\n\nPiperOrigin-RevId: 294763931\n\n2c17ac33b226194041155bb5340c3f34733f1b3a\nAdd parameter to sample generated for UpdateInstance. Related to https://github.com/googleapis/python-redis/issues/4\n\nPiperOrigin-RevId: 294734008\n\nd5e8a8953f2acdfe96fb15e85eb2f33739623957\nMove bigquery datatransfer to gapic v2.\n\nPiperOrigin-RevId: 294703703\n\nefd36705972cfcd7d00ab4c6dfa1135bafacd4ae\nfix: Add two annotations that we missed.\n\nPiperOrigin-RevId: 294664231\n\n8a36b928873ff9c05b43859b9d4ea14cd205df57\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1beta2).\n\nPiperOrigin-RevId: 294459768\n\nc7a3caa2c40c49f034a3c11079dd90eb24987047\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1).\n\nPiperOrigin-RevId: 294456889\n\n5006247aa157e59118833658084345ee59af7c09\nFix: Make deprecated fields optional\nFix: Deprecate SetLoggingServiceRequest.zone in line with the comments\nFeature: Add resource name method signatures where appropriate\n\nPiperOrigin-RevId: 294383128\n\neabba40dac05c5cbe0fca3a35761b17e372036c4\nFix: C# and PHP package/namespace capitalization for BigQuery Storage v1.\n\nPiperOrigin-RevId: 294382444\n\nf8d9a858a7a55eba8009a23aa3f5cc5fe5e88dde\nfix: artman configuration file for bigtable-admin\n\nPiperOrigin-RevId: 294322616\n\n0f29555d1cfcf96add5c0b16b089235afbe9b1a9\nAPI definition for (not-yet-launched) GCS gRPC.\n\nPiperOrigin-RevId: 294321472\n\nfcc86bee0e84dc11e9abbff8d7c3529c0626f390\nfix: Bigtable Admin v2\n\nChange LRO metadata from PartialUpdateInstanceMetadata\nto UpdateInstanceMetadata. (Otherwise, it will not build.)\n\nPiperOrigin-RevId: 294264582\n\n6d9361eae2ebb3f42d8c7ce5baf4bab966fee7c0\nrefactor: Add annotations to Bigtable Admin v2.\n\nPiperOrigin-RevId: 294243406\n\nad7616f3fc8e123451c8b3a7987bc91cea9e6913\nFix: Resource type in CreateLogMetricRequest should use logging.googleapis.com.\nFix: ListLogEntries should have a method signature for convenience of calling it.\n\nPiperOrigin-RevId: 294222165\n\n63796fcbb08712676069e20a3e455c9f7aa21026\nFix: Remove extraneous resource definition for cloudkms.googleapis.com/CryptoKey.\n\nPiperOrigin-RevId: 294176658\n\ne7d8a694f4559201e6913f6610069cb08b39274e\nDepend on the latest gapic-generator and resource names plugin.\n\nThis fixes the very old an very annoying bug: https://github.com/googleapis/gapic-generator/pull/3087\n\nPiperOrigin-RevId: 293903652\n\n806b2854a966d55374ee26bb0cef4e30eda17b58\nfix: correct capitalization of Ruby namespaces in SecurityCenter V1p1beta1\n\nPiperOrigin-RevId: 293903613\n\n1b83c92462b14d67a7644e2980f723112472e03a\nPublish annotations and grpc service config for Logging API.\n\nPiperOrigin-RevId: 293893514\n\n" + "sha": "83c6f84035ee0f80eaa44d8b688a010461cc4080", + "internalRef": "297918498", + "log": "83c6f84035ee0f80eaa44d8b688a010461cc4080\nUpdate google/api/auth.proto to make AuthProvider to have JwtLocation\n\nPiperOrigin-RevId: 297918498\n\ne9e90a787703ec5d388902e2cb796aaed3a385b4\nDialogflow weekly v2/v2beta1 library update:\n - adding get validation result\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297671458\n\n1a2b05cc3541a5f7714529c665aecc3ea042c646\nAdding .yaml and .json config files.\n\nPiperOrigin-RevId: 297570622\n\ndfe1cf7be44dee31d78f78e485d8c95430981d6e\nPublish `QueryOptions` proto.\n\nIntroduced a `query_options` input in `ExecuteSqlRequest`.\n\nPiperOrigin-RevId: 297497710\n\ndafc905f71e5d46f500b41ed715aad585be062c3\npubsub: revert pull init_rpc_timeout & max_rpc_timeout back to 25 seconds and reset multiplier to 1.0\n\nPiperOrigin-RevId: 297486523\n\nf077632ba7fee588922d9e8717ee272039be126d\nfirestore: add update_transform\n\nPiperOrigin-RevId: 297405063\n\n0aba1900ffef672ec5f0da677cf590ee5686e13b\ncluster: use square brace for cross-reference\n\nPiperOrigin-RevId: 297204568\n\n5dac2da18f6325cbaed54603c43f0667ecd50247\nRestore retry params in gapic config because securitycenter has non-standard default retry params.\nRestore a few retry codes for some idempotent methods.\n\nPiperOrigin-RevId: 297196720\n\n1eb61455530252bba8b2c8d4bc9832960e5a56f6\npubsub: v1 replace IAM HTTP rules\n\nPiperOrigin-RevId: 297188590\n\n80b2d25f8d43d9d47024ff06ead7f7166548a7ba\nDialogflow weekly v2/v2beta1 library update:\n - updates to mega agent api\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297187629\n\n0b1876b35e98f560f9c9ca9797955f020238a092\nUse an older version of protoc-docs-plugin that is compatible with the specified gapic-generator and protobuf versions.\n\nprotoc-docs-plugin >=0.4.0 (see commit https://github.com/googleapis/protoc-docs-plugin/commit/979f03ede6678c487337f3d7e88bae58df5207af) is incompatible with protobuf 3.9.1.\n\nPiperOrigin-RevId: 296986742\n\n1e47e676cddbbd8d93f19ba0665af15b5532417e\nFix: Restore a method signature for UpdateCluster\n\nPiperOrigin-RevId: 296901854\n\n7f910bcc4fc4704947ccfd3ceed015d16b9e00c2\nUpdate Dataproc v1beta2 client.\n\nPiperOrigin-RevId: 296451205\n\nde287524405a3dce124d301634731584fc0432d7\nFix: Reinstate method signatures that had been missed off some RPCs\nFix: Correct resource types for two fields\n\nPiperOrigin-RevId: 296435091\n\ne5bc9566ae057fb4c92f8b7e047f1c8958235b53\nDeprecate the endpoint_uris field, as it is unused.\n\nPiperOrigin-RevId: 296357191\n\n8c12e2b4dca94e12bff9f538bdac29524ff7ef7a\nUpdate Dataproc v1 client.\n\nPiperOrigin-RevId: 296336662\n\n17567c4a1ef0a9b50faa87024d66f8acbb561089\nRemoving erroneous comment, a la https://github.com/googleapis/java-speech/pull/103\n\nPiperOrigin-RevId: 296332968\n\n3eaaaf8626ce5b0c0bc7eee05e143beffa373b01\nAdd BUILD.bazel for v1 secretmanager.googleapis.com\n\nPiperOrigin-RevId: 296274723\n\ne76149c3d992337f85eeb45643106aacae7ede82\nMove securitycenter v1 to use generate from annotations.\n\nPiperOrigin-RevId: 296266862\n\n203740c78ac69ee07c3bf6be7408048751f618f8\nAdd StackdriverLoggingConfig field to Cloud Tasks v2 API.\n\nPiperOrigin-RevId: 296256388\n\ne4117d5e9ed8bbca28da4a60a94947ca51cb2083\nCreate a Bazel BUILD file for the google.actions.type export.\n\nPiperOrigin-RevId: 296212567\n\na9639a0a9854fd6e1be08bba1ac3897f4f16cb2f\nAdd secretmanager.googleapis.com v1 protos\n\nPiperOrigin-RevId: 295983266\n\nce4f4c21d9dd2bfab18873a80449b9d9851efde8\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295861722\n\ncb61d6c2d070b589980c779b68ffca617f789116\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295855449\n\nab2685d8d3a0e191dc8aef83df36773c07cb3d06\nfix: Dataproc v1 - AutoscalingPolicy annotation\n\nThis adds the second resource name pattern to the\nAutoscalingPolicy resource.\n\nCommitter: @lukesneeringer\nPiperOrigin-RevId: 295738415\n\n8a1020bf6828f6e3c84c3014f2c51cb62b739140\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295286165\n\n5cfa105206e77670369e4b2225597386aba32985\nAdd service control related proto build rule.\n\nPiperOrigin-RevId: 295262088\n\nee4dddf805072004ab19ac94df2ce669046eec26\nmonitoring v3: Add prefix \"https://cloud.google.com/\" into the link for global access\ncl 295167522, get ride of synth.py hacks\n\nPiperOrigin-RevId: 295238095\n\nd9835e922ea79eed8497db270d2f9f85099a519c\nUpdate some minor docs changes about user event proto\n\nPiperOrigin-RevId: 295185610\n\n5f311e416e69c170243de722023b22f3df89ec1c\nfix: use correct PHP package name in gapic configuration\n\nPiperOrigin-RevId: 295161330\n\n6cdd74dcdb071694da6a6b5a206e3a320b62dd11\npubsub: v1 add client config annotations and retry config\n\nPiperOrigin-RevId: 295158776\n\n" } }, { From a6f832ffa78552bf8eacb382bcb1fda0ac4732f8 Mon Sep 17 00:00:00 2001 From: "gcf-merge-on-green[bot]" <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> Date: Fri, 6 Mar 2020 00:12:07 +0000 Subject: [PATCH 188/371] feat: deferred client initialization (#304) This PR includes changes from https://github.com/googleapis/gapic-generator-typescript/pull/317 that will move the asynchronous initialization and authentication from the client constructor to an `initialize()` method. This method will be automatically called when the first RPC call is performed. The client library usage has not changed, there is no need to update any code. If you want to make sure the client is authenticated _before_ the first RPC call, you can do ```js await client.initialize(); ``` manually before calling any client method. --- .../src/v1/cluster_manager_client.ts | 99 ++++++++++--- packages/google-container/synth.metadata | 8 +- .../test/gapic-cluster_manager-v1.ts | 140 ++++++++++++++++++ 3 files changed, 223 insertions(+), 24 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 640e862c49f..3f13c203262 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -43,8 +43,13 @@ export class ClusterManagerClient { private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}}; private _innerApiCalls: {[name: string]: Function}; private _terminated = false; + private _opts: ClientOptions; + private _gaxModule: typeof gax | typeof gax.fallback; + private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; + private _protos: {}; + private _defaults: {[method: string]: gax.CallSettings}; auth: gax.GoogleAuth; - clusterManagerStub: Promise<{[name: string]: Function}>; + clusterManagerStub?: Promise<{[name: string]: Function}>; /** * Construct an instance of ClusterManagerClient. @@ -68,8 +73,6 @@ export class ClusterManagerClient { * app is running in an environment which supports * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials}, * your project ID will be detected automatically. - * @param {function} [options.promise] - Custom promise module to use instead - * of native Promises. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. */ @@ -99,25 +102,28 @@ export class ClusterManagerClient { // If we are in browser, we are already using fallback because of the // "browser" field in package.json. // But if we were explicitly requested to use fallback, let's do it now. - const gaxModule = !isBrowser && opts.fallback ? gax.fallback : gax; + this._gaxModule = !isBrowser && opts.fallback ? gax.fallback : gax; // Create a `gaxGrpc` object, with any grpc-specific options // sent to the client. opts.scopes = (this.constructor as typeof ClusterManagerClient).scopes; - const gaxGrpc = new gaxModule.GrpcClient(opts); + this._gaxGrpc = new this._gaxModule.GrpcClient(opts); + + // Save options to use in initialize() method. + this._opts = opts; // Save the auth object to the client, for use by other methods. - this.auth = gaxGrpc.auth as gax.GoogleAuth; + this.auth = this._gaxGrpc.auth as gax.GoogleAuth; // Determine the client header string. - const clientHeader = [`gax/${gaxModule.version}`, `gapic/${version}`]; + const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; if (typeof process !== 'undefined' && 'versions' in process) { clientHeader.push(`gl-node/${process.versions.node}`); } else { - clientHeader.push(`gl-web/${gaxModule.version}`); + clientHeader.push(`gl-web/${this._gaxModule.version}`); } if (!opts.fallback) { - clientHeader.push(`grpc/${gaxGrpc.grpcVersion}`); + clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); } if (opts.libName && opts.libVersion) { clientHeader.push(`${opts.libName}/${opts.libVersion}`); @@ -133,7 +139,7 @@ export class ClusterManagerClient { 'protos', 'protos.json' ); - const protos = gaxGrpc.loadProto( + this._protos = this._gaxGrpc.loadProto( opts.fallback ? require('../../protos/protos.json') : nodejsProtoPath ); @@ -141,7 +147,7 @@ export class ClusterManagerClient { // (e.g. 50 results at a time, with tokens to get subsequent // pages). Denote the keys used for pagination and results. this._descriptors.page = { - listUsableSubnetworks: new gaxModule.PageDescriptor( + listUsableSubnetworks: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', 'subnetworks' @@ -149,7 +155,7 @@ export class ClusterManagerClient { }; // Put together the default options sent with requests. - const defaults = gaxGrpc.constructSettings( + this._defaults = this._gaxGrpc.constructSettings( 'google.container.v1.ClusterManager', gapicConfig as gax.ClientConfig, opts.clientConfig || {}, @@ -160,17 +166,35 @@ export class ClusterManagerClient { // of calling the API is handled in `google-gax`, with this code // merely providing the destination and request information. this._innerApiCalls = {}; + } + + /** + * Initialize the client. + * Performs asynchronous operations (such as authentication) and prepares the client. + * This function will be called automatically when any class method is called for the + * first time, but if you need to initialize it before calling an actual method, + * feel free to call initialize() directly. + * + * You can await on this method if you want to make sure the client is initialized. + * + * @returns {Promise} A promise that resolves to an authenticated service stub. + */ + initialize() { + // If the client stub promise is already initialized, return immediately. + if (this.clusterManagerStub) { + return this.clusterManagerStub; + } // Put together the "service stub" for // google.container.v1.ClusterManager. - this.clusterManagerStub = gaxGrpc.createStub( - opts.fallback - ? (protos as protobuf.Root).lookupService( + this.clusterManagerStub = this._gaxGrpc.createStub( + this._opts.fallback + ? (this._protos as protobuf.Root).lookupService( 'google.container.v1.ClusterManager' ) : // tslint:disable-next-line no-any - (protos as any).google.container.v1.ClusterManager, - opts + (this._protos as any).google.container.v1.ClusterManager, + this._opts ) as Promise<{[method: string]: Function}>; // Iterate over each of the methods that the service provides @@ -222,9 +246,9 @@ export class ClusterManagerClient { } ); - const apiCall = gaxModule.createApiCall( + const apiCall = this._gaxModule.createApiCall( innerCallPromise, - defaults[methodName], + this._defaults[methodName], this._descriptors.page[methodName] || this._descriptors.stream[methodName] || this._descriptors.longrunning[methodName] @@ -238,6 +262,8 @@ export class ClusterManagerClient { return apiCall(argument, callOptions, callback); }; } + + return this.clusterManagerStub; } /** @@ -371,6 +397,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ parent: request.parent || '', }); + this.initialize(); return this._innerApiCalls.listClusters(request, options, callback); } getCluster( @@ -455,6 +482,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.getCluster(request, options, callback); } createCluster( @@ -551,6 +579,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ parent: request.parent || '', }); + this.initialize(); return this._innerApiCalls.createCluster(request, options, callback); } updateCluster( @@ -637,6 +666,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.updateCluster(request, options, callback); } updateNodePool( @@ -739,6 +769,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.updateNodePool(request, options, callback); } setNodePoolAutoscaling( @@ -838,6 +869,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setNodePoolAutoscaling( request, options, @@ -932,6 +964,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setLoggingService(request, options, callback); } setMonitoringService( @@ -1025,6 +1058,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setMonitoringService(request, options, callback); } setAddonsConfig( @@ -1112,6 +1146,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setAddonsConfig(request, options, callback); } setLocations( @@ -1204,6 +1239,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setLocations(request, options, callback); } updateMaster( @@ -1299,6 +1335,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.updateMaster(request, options, callback); } setMasterAuth( @@ -1389,6 +1426,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setMasterAuth(request, options, callback); } deleteCluster( @@ -1481,6 +1519,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.deleteCluster(request, options, callback); } listOperations( @@ -1562,6 +1601,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ parent: request.parent || '', }); + this.initialize(); return this._innerApiCalls.listOperations(request, options, callback); } getOperation( @@ -1646,6 +1686,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.getOperation(request, options, callback); } cancelOperation( @@ -1729,6 +1770,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.cancelOperation(request, options, callback); } getServerConfig( @@ -1809,6 +1851,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.getServerConfig(request, options, callback); } listNodePools( @@ -1893,6 +1936,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ parent: request.parent || '', }); + this.initialize(); return this._innerApiCalls.listNodePools(request, options, callback); } getNodePool( @@ -1981,6 +2025,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.getNodePool(request, options, callback); } createNodePool( @@ -2068,6 +2113,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ parent: request.parent || '', }); + this.initialize(); return this._innerApiCalls.createNodePool(request, options, callback); } deleteNodePool( @@ -2156,6 +2202,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.deleteNodePool(request, options, callback); } rollbackNodePoolUpgrade( @@ -2254,6 +2301,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.rollbackNodePoolUpgrade( request, options, @@ -2349,6 +2397,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setNodePoolManagement( request, options, @@ -2446,6 +2495,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setLabels(request, options, callback); } setLegacyAbac( @@ -2532,6 +2582,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setLegacyAbac(request, options, callback); } startIPRotation( @@ -2618,6 +2669,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.startIPRotation(request, options, callback); } completeIPRotation( @@ -2703,6 +2755,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.completeIPRotation(request, options, callback); } setNodePoolSize( @@ -2793,6 +2846,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setNodePoolSize(request, options, callback); } setNetworkPolicy( @@ -2879,6 +2933,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setNetworkPolicy(request, options, callback); } setMaintenancePolicy( @@ -2965,6 +3020,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ name: request.name || '', }); + this.initialize(); return this._innerApiCalls.setMaintenancePolicy(request, options, callback); } @@ -3063,6 +3119,7 @@ export class ClusterManagerClient { ] = gax.routingHeader.fromParams({ parent: request.parent || '', }); + this.initialize(); return this._innerApiCalls.listUsableSubnetworks( request, options, @@ -3120,6 +3177,7 @@ export class ClusterManagerClient { parent: request.parent || '', }); const callSettings = new gax.CallSettings(options); + this.initialize(); return this._descriptors.page.listUsableSubnetworks.createStream( this._innerApiCalls.listUsableSubnetworks as gax.GaxCall, request, @@ -3133,8 +3191,9 @@ export class ClusterManagerClient { * The client will no longer be usable and all future behavior is undefined. */ close(): Promise { + this.initialize(); if (!this._terminated) { - return this.clusterManagerStub.then(stub => { + return this.clusterManagerStub!.then(stub => { this._terminated = true; stub.close(); }); diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 3c0c95d66b8..2b370b1a872 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,13 +1,13 @@ { - "updateTime": "2020-02-29T12:18:01.970231Z", + "updateTime": "2020-03-05T23:03:14.339441Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "83c6f84035ee0f80eaa44d8b688a010461cc4080", - "internalRef": "297918498", - "log": "83c6f84035ee0f80eaa44d8b688a010461cc4080\nUpdate google/api/auth.proto to make AuthProvider to have JwtLocation\n\nPiperOrigin-RevId: 297918498\n\ne9e90a787703ec5d388902e2cb796aaed3a385b4\nDialogflow weekly v2/v2beta1 library update:\n - adding get validation result\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297671458\n\n1a2b05cc3541a5f7714529c665aecc3ea042c646\nAdding .yaml and .json config files.\n\nPiperOrigin-RevId: 297570622\n\ndfe1cf7be44dee31d78f78e485d8c95430981d6e\nPublish `QueryOptions` proto.\n\nIntroduced a `query_options` input in `ExecuteSqlRequest`.\n\nPiperOrigin-RevId: 297497710\n\ndafc905f71e5d46f500b41ed715aad585be062c3\npubsub: revert pull init_rpc_timeout & max_rpc_timeout back to 25 seconds and reset multiplier to 1.0\n\nPiperOrigin-RevId: 297486523\n\nf077632ba7fee588922d9e8717ee272039be126d\nfirestore: add update_transform\n\nPiperOrigin-RevId: 297405063\n\n0aba1900ffef672ec5f0da677cf590ee5686e13b\ncluster: use square brace for cross-reference\n\nPiperOrigin-RevId: 297204568\n\n5dac2da18f6325cbaed54603c43f0667ecd50247\nRestore retry params in gapic config because securitycenter has non-standard default retry params.\nRestore a few retry codes for some idempotent methods.\n\nPiperOrigin-RevId: 297196720\n\n1eb61455530252bba8b2c8d4bc9832960e5a56f6\npubsub: v1 replace IAM HTTP rules\n\nPiperOrigin-RevId: 297188590\n\n80b2d25f8d43d9d47024ff06ead7f7166548a7ba\nDialogflow weekly v2/v2beta1 library update:\n - updates to mega agent api\n - adding field mask override control for output audio config\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 297187629\n\n0b1876b35e98f560f9c9ca9797955f020238a092\nUse an older version of protoc-docs-plugin that is compatible with the specified gapic-generator and protobuf versions.\n\nprotoc-docs-plugin >=0.4.0 (see commit https://github.com/googleapis/protoc-docs-plugin/commit/979f03ede6678c487337f3d7e88bae58df5207af) is incompatible with protobuf 3.9.1.\n\nPiperOrigin-RevId: 296986742\n\n1e47e676cddbbd8d93f19ba0665af15b5532417e\nFix: Restore a method signature for UpdateCluster\n\nPiperOrigin-RevId: 296901854\n\n7f910bcc4fc4704947ccfd3ceed015d16b9e00c2\nUpdate Dataproc v1beta2 client.\n\nPiperOrigin-RevId: 296451205\n\nde287524405a3dce124d301634731584fc0432d7\nFix: Reinstate method signatures that had been missed off some RPCs\nFix: Correct resource types for two fields\n\nPiperOrigin-RevId: 296435091\n\ne5bc9566ae057fb4c92f8b7e047f1c8958235b53\nDeprecate the endpoint_uris field, as it is unused.\n\nPiperOrigin-RevId: 296357191\n\n8c12e2b4dca94e12bff9f538bdac29524ff7ef7a\nUpdate Dataproc v1 client.\n\nPiperOrigin-RevId: 296336662\n\n17567c4a1ef0a9b50faa87024d66f8acbb561089\nRemoving erroneous comment, a la https://github.com/googleapis/java-speech/pull/103\n\nPiperOrigin-RevId: 296332968\n\n3eaaaf8626ce5b0c0bc7eee05e143beffa373b01\nAdd BUILD.bazel for v1 secretmanager.googleapis.com\n\nPiperOrigin-RevId: 296274723\n\ne76149c3d992337f85eeb45643106aacae7ede82\nMove securitycenter v1 to use generate from annotations.\n\nPiperOrigin-RevId: 296266862\n\n203740c78ac69ee07c3bf6be7408048751f618f8\nAdd StackdriverLoggingConfig field to Cloud Tasks v2 API.\n\nPiperOrigin-RevId: 296256388\n\ne4117d5e9ed8bbca28da4a60a94947ca51cb2083\nCreate a Bazel BUILD file for the google.actions.type export.\n\nPiperOrigin-RevId: 296212567\n\na9639a0a9854fd6e1be08bba1ac3897f4f16cb2f\nAdd secretmanager.googleapis.com v1 protos\n\nPiperOrigin-RevId: 295983266\n\nce4f4c21d9dd2bfab18873a80449b9d9851efde8\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295861722\n\ncb61d6c2d070b589980c779b68ffca617f789116\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295855449\n\nab2685d8d3a0e191dc8aef83df36773c07cb3d06\nfix: Dataproc v1 - AutoscalingPolicy annotation\n\nThis adds the second resource name pattern to the\nAutoscalingPolicy resource.\n\nCommitter: @lukesneeringer\nPiperOrigin-RevId: 295738415\n\n8a1020bf6828f6e3c84c3014f2c51cb62b739140\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295286165\n\n5cfa105206e77670369e4b2225597386aba32985\nAdd service control related proto build rule.\n\nPiperOrigin-RevId: 295262088\n\nee4dddf805072004ab19ac94df2ce669046eec26\nmonitoring v3: Add prefix \"https://cloud.google.com/\" into the link for global access\ncl 295167522, get ride of synth.py hacks\n\nPiperOrigin-RevId: 295238095\n\nd9835e922ea79eed8497db270d2f9f85099a519c\nUpdate some minor docs changes about user event proto\n\nPiperOrigin-RevId: 295185610\n\n5f311e416e69c170243de722023b22f3df89ec1c\nfix: use correct PHP package name in gapic configuration\n\nPiperOrigin-RevId: 295161330\n\n6cdd74dcdb071694da6a6b5a206e3a320b62dd11\npubsub: v1 add client config annotations and retry config\n\nPiperOrigin-RevId: 295158776\n\n" + "sha": "f0b581b5bdf803e45201ecdb3688b60e381628a8", + "internalRef": "299181282", + "log": "f0b581b5bdf803e45201ecdb3688b60e381628a8\nfix: recommendationengine/v1beta1 update some comments\n\nPiperOrigin-RevId: 299181282\n\n10e9a0a833dc85ff8f05b2c67ebe5ac785fe04ff\nbuild: add generated BUILD file for Routes Preferred API\n\nPiperOrigin-RevId: 299164808\n\n86738c956a8238d7c77f729be78b0ed887a6c913\npublish v1p1beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299152383\n\n73d9f2ad4591de45c2e1f352bc99d70cbd2a6d95\npublish v1: update with absolute address in comments\n\nPiperOrigin-RevId: 299147194\n\nd2158f24cb77b0b0ccfe68af784c6a628705e3c6\npublish v1beta2: update with absolute address in comments\n\nPiperOrigin-RevId: 299147086\n\n7fca61292c11b4cd5b352cee1a50bf88819dd63b\npublish v1p2beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146903\n\n583b7321624736e2c490e328f4b1957335779295\npublish v1p3beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146674\n\n638253bf86d1ce1c314108a089b7351440c2f0bf\nfix: add java_multiple_files option for automl text_sentiment.proto\n\nPiperOrigin-RevId: 298971070\n\n373d655703bf914fb8b0b1cc4071d772bac0e0d1\nUpdate Recs AI Beta public bazel file\n\nPiperOrigin-RevId: 298961623\n\ndcc5d00fc8a8d8b56f16194d7c682027b2c66a3b\nfix: add java_multiple_files option for automl classification.proto\n\nPiperOrigin-RevId: 298953301\n\na3f791827266f3496a6a5201d58adc4bb265c2a3\nchore: automl/v1 publish annotations and retry config\n\nPiperOrigin-RevId: 298942178\n\n01c681586d8d6dbd60155289b587aee678530bd9\nMark return_immediately in PullRequest deprecated.\n\nPiperOrigin-RevId: 298893281\n\nc9f5e9c4bfed54bbd09227e990e7bded5f90f31c\nRemove out of date documentation for predicate support on the Storage API\n\nPiperOrigin-RevId: 298883309\n\nfd5b3b8238d783b04692a113ffe07c0363f5de0f\ngenerate webrisk v1 proto\n\nPiperOrigin-RevId: 298847934\n\n541b1ded4abadcc38e8178680b0677f65594ea6f\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 298686266\n\nc0d171acecb4f5b0bfd2c4ca34fc54716574e300\n Updated to include the Notification v1 API.\n\nPiperOrigin-RevId: 298652775\n\n2346a9186c0bff2c9cc439f2459d558068637e05\nAdd Service Directory v1beta1 protos and configs\n\nPiperOrigin-RevId: 298625638\n\na78ed801b82a5c6d9c5368e24b1412212e541bb7\nPublishing v3 protos and configs.\n\nPiperOrigin-RevId: 298607357\n\n4a180bfff8a21645b3a935c2756e8d6ab18a74e0\nautoml/v1beta1 publish proto updates\n\nPiperOrigin-RevId: 298484782\n\n6de6e938b7df1cd62396563a067334abeedb9676\nchore: use the latest gapic-generator and protoc-java-resource-name-plugin in Bazel workspace.\n\nPiperOrigin-RevId: 298474513\n\n244ab2b83a82076a1fa7be63b7e0671af73f5c02\nAdds service config definition for bigqueryreservation v1\n\nPiperOrigin-RevId: 298455048\n\n" } }, { diff --git a/packages/google-container/test/gapic-cluster_manager-v1.ts b/packages/google-container/test/gapic-cluster_manager-v1.ts index 86f17dde5ac..c7bbea88be5 100644 --- a/packages/google-container/test/gapic-cluster_manager-v1.ts +++ b/packages/google-container/test/gapic-cluster_manager-v1.ts @@ -83,12 +83,30 @@ describe('v1.ClusterManagerClient', () => { }); assert(client); }); + it('has initialize method and supports deferred initialization', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.clusterManagerStub, undefined); + await client.initialize(); + assert(client.clusterManagerStub); + }); + it('has close method', () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.close(); + }); describe('listClusters', () => { it('invokes listClusters without error', done => { const client = new clustermanagerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IListClustersRequest = {}; request.parent = ''; @@ -112,6 +130,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IListClustersRequest = {}; request.parent = ''; @@ -137,6 +157,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IGetClusterRequest = {}; request.name = ''; @@ -160,6 +182,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IGetClusterRequest = {}; request.name = ''; @@ -185,6 +209,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ICreateClusterRequest = {}; request.parent = ''; @@ -208,6 +234,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ICreateClusterRequest = {}; request.parent = ''; @@ -233,6 +261,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IUpdateClusterRequest = {}; request.name = ''; @@ -256,6 +286,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IUpdateClusterRequest = {}; request.name = ''; @@ -281,6 +313,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IUpdateNodePoolRequest = {}; request.name = ''; @@ -304,6 +338,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IUpdateNodePoolRequest = {}; request.name = ''; @@ -329,6 +365,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest = {}; request.name = ''; @@ -352,6 +390,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest = {}; request.name = ''; @@ -377,6 +417,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetLoggingServiceRequest = {}; request.name = ''; @@ -400,6 +442,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetLoggingServiceRequest = {}; request.name = ''; @@ -425,6 +469,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetMonitoringServiceRequest = {}; request.name = ''; @@ -448,6 +494,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetMonitoringServiceRequest = {}; request.name = ''; @@ -473,6 +521,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetAddonsConfigRequest = {}; request.name = ''; @@ -496,6 +546,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetAddonsConfigRequest = {}; request.name = ''; @@ -521,6 +573,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetLocationsRequest = {}; request.name = ''; @@ -544,6 +598,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetLocationsRequest = {}; request.name = ''; @@ -569,6 +625,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IUpdateMasterRequest = {}; request.name = ''; @@ -592,6 +650,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IUpdateMasterRequest = {}; request.name = ''; @@ -617,6 +677,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetMasterAuthRequest = {}; request.name = ''; @@ -640,6 +702,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetMasterAuthRequest = {}; request.name = ''; @@ -665,6 +729,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IDeleteClusterRequest = {}; request.name = ''; @@ -688,6 +754,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IDeleteClusterRequest = {}; request.name = ''; @@ -713,6 +781,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IListOperationsRequest = {}; request.parent = ''; @@ -736,6 +806,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IListOperationsRequest = {}; request.parent = ''; @@ -761,6 +833,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IGetOperationRequest = {}; request.name = ''; @@ -784,6 +858,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IGetOperationRequest = {}; request.name = ''; @@ -809,6 +885,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ICancelOperationRequest = {}; request.name = ''; @@ -832,6 +910,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ICancelOperationRequest = {}; request.name = ''; @@ -857,6 +937,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IGetServerConfigRequest = {}; request.name = ''; @@ -880,6 +962,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IGetServerConfigRequest = {}; request.name = ''; @@ -905,6 +989,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IListNodePoolsRequest = {}; request.parent = ''; @@ -928,6 +1014,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IListNodePoolsRequest = {}; request.parent = ''; @@ -953,6 +1041,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IGetNodePoolRequest = {}; request.name = ''; @@ -976,6 +1066,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IGetNodePoolRequest = {}; request.name = ''; @@ -1001,6 +1093,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ICreateNodePoolRequest = {}; request.parent = ''; @@ -1024,6 +1118,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ICreateNodePoolRequest = {}; request.parent = ''; @@ -1049,6 +1145,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IDeleteNodePoolRequest = {}; request.name = ''; @@ -1072,6 +1170,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IDeleteNodePoolRequest = {}; request.name = ''; @@ -1097,6 +1197,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest = {}; request.name = ''; @@ -1120,6 +1222,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest = {}; request.name = ''; @@ -1148,6 +1252,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolManagementRequest = {}; request.name = ''; @@ -1171,6 +1277,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolManagementRequest = {}; request.name = ''; @@ -1196,6 +1304,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetLabelsRequest = {}; request.name = ''; @@ -1219,6 +1329,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetLabelsRequest = {}; request.name = ''; @@ -1244,6 +1356,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetLegacyAbacRequest = {}; request.name = ''; @@ -1267,6 +1381,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetLegacyAbacRequest = {}; request.name = ''; @@ -1292,6 +1408,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IStartIPRotationRequest = {}; request.name = ''; @@ -1315,6 +1433,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IStartIPRotationRequest = {}; request.name = ''; @@ -1340,6 +1460,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ICompleteIPRotationRequest = {}; request.name = ''; @@ -1363,6 +1485,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ICompleteIPRotationRequest = {}; request.name = ''; @@ -1388,6 +1512,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolSizeRequest = {}; request.name = ''; @@ -1411,6 +1537,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetNodePoolSizeRequest = {}; request.name = ''; @@ -1436,6 +1564,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetNetworkPolicyRequest = {}; request.name = ''; @@ -1459,6 +1589,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetNetworkPolicyRequest = {}; request.name = ''; @@ -1484,6 +1616,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest = {}; request.name = ''; @@ -1507,6 +1641,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest = {}; request.name = ''; @@ -1532,6 +1668,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IListUsableSubnetworksRequest = {}; request.parent = ''; @@ -1559,6 +1697,8 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + // Initialize client before mocking + client.initialize(); // Mock request const request: protosTypes.google.container.v1.IListUsableSubnetworksRequest = {}; request.parent = ''; From 431af5372bd7774e40518d8eb4f25fcf86cfb430 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 5 Mar 2020 17:24:36 -0800 Subject: [PATCH 189/371] build: update linkinator config (#305) --- packages/google-container/linkinator.config.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/google-container/linkinator.config.json b/packages/google-container/linkinator.config.json index b555215ca02..29a223b6db6 100644 --- a/packages/google-container/linkinator.config.json +++ b/packages/google-container/linkinator.config.json @@ -4,5 +4,7 @@ "https://codecov.io/gh/googleapis/", "www.googleapis.com", "img.shields.io" - ] + ], + "silent": true, + "concurrency": 10 } From 18d92bbe8b660961980b987cf48f08f08018b4d2 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Fri, 6 Mar 2020 14:56:49 -0800 Subject: [PATCH 190/371] build(tests): fix coveralls and enable build cop (#306) --- packages/google-container/.mocharc.js | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/google-container/.mocharc.js diff --git a/packages/google-container/.mocharc.js b/packages/google-container/.mocharc.js new file mode 100644 index 00000000000..ff7b34fa5d1 --- /dev/null +++ b/packages/google-container/.mocharc.js @@ -0,0 +1,28 @@ +// 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. +const config = { + "enable-source-maps": true, + "throw-deprecation": true, + "timeout": 10000 +} +if (process.env.MOCHA_THROW_DEPRECATION === 'false') { + delete config['throw-deprecation']; +} +if (process.env.MOCHA_REPORTER) { + config.reporter = process.env.MOCHA_REPORTER; +} +if (process.env.MOCHA_REPORTER_OUTPUT) { + config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`; +} +module.exports = config From 54fc0d00c8846059ecc8204ea2c448c1f214b2f8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 12 Mar 2020 00:02:06 +0000 Subject: [PATCH 191/371] chore: release 1.7.0 (#296) :robot: I have created a release \*beep\* \*boop\* --- ## [1.7.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.6.2...v1.7.0) (2020-03-06) ### Features * deferred client initialization ([#304](https://www.github.com/googleapis/nodejs-cloud-container/issues/304)) ([b1b7080](https://www.github.com/googleapis/nodejs-cloud-container/commit/b1b70806289aea73a6e83d3d33983d05856f21f3)) * export protos in src/index.ts ([acaaeff](https://www.github.com/googleapis/nodejs-cloud-container/commit/acaaeff08ad5505accc15bb496bcd3a29086a5ac)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- packages/google-container/CHANGELOG.md | 8 ++++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index ec87973b6a8..f8757fb344d 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,14 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [1.7.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.6.2...v1.7.0) (2020-03-06) + + +### Features + +* deferred client initialization ([#304](https://www.github.com/googleapis/nodejs-cloud-container/issues/304)) ([b1b7080](https://www.github.com/googleapis/nodejs-cloud-container/commit/b1b70806289aea73a6e83d3d33983d05856f21f3)) +* export protos in src/index.ts ([acaaeff](https://www.github.com/googleapis/nodejs-cloud-container/commit/acaaeff08ad5505accc15bb496bcd3a29086a5ac)) + ### [1.6.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.6.1...v1.6.2) (2020-02-10) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 4540d6104dc..77feb0dc550 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.6.2", + "version": "1.7.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 173b4266177..ff61cc70fb8 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.6.2" + "@google-cloud/container": "^1.7.0" }, "devDependencies": { "chai": "^4.2.0", From c03eff67d0e4a49ba288762447249eeb25c9cf1d Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Wed, 18 Mar 2020 12:56:41 -0700 Subject: [PATCH 192/371] docs: mention templates in contributing section of README (#308) --- packages/google-container/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 218ca76af12..14a903f65d5 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -126,6 +126,12 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-cloud-container/blob/master/CONTRIBUTING.md). +Please note that this `README.md`, the `samples/README.md`, +and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) +are generated from a central template. To edit one of these files, make an edit +to its template in this +[directory](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/node_library). + ## License Apache Version 2.0 From 95cdf19a2b29036a6e9e3f9fe4a639403e652fcc Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Thu, 19 Mar 2020 08:52:33 -0700 Subject: [PATCH 193/371] chore: remove snippet leading whitespace (#310) --- packages/google-container/README.md | 36 ++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 14a903f65d5..6f7214a66be 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -58,24 +58,24 @@ npm install @google-cloud/container ### Using the client library ```javascript - const container = require('@google-cloud/container'); - - // Create the Cluster Manager Client - const client = new container.v1.ClusterManagerClient(); - - async function quickstart() { - const zone = 'us-central1-a'; - const projectId = await client.getProjectId(); - const request = { - projectId: projectId, - zone: zone, - }; - - const [response] = await client.listClusters(request); - console.log('Clusters:'); - console.log(response); - } - quickstart(); +const container = require('@google-cloud/container'); + +// Create the Cluster Manager Client +const client = new container.v1.ClusterManagerClient(); + +async function quickstart() { + const zone = 'us-central1-a'; + const projectId = await client.getProjectId(); + const request = { + projectId: projectId, + zone: zone, + }; + + const [response] = await client.listClusters(request); + console.log('Clusters:'); + console.log(response); +} +quickstart(); ``` From f6be67ed0a91be44984dc3c78c7432e7941ef19d Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 23 Mar 2020 18:32:07 -0700 Subject: [PATCH 194/371] docs: document version support goals (#315) --- packages/google-container/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 6f7214a66be..cc44eb3dacd 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -103,6 +103,27 @@ has instructions for running the samples. The [Kubernetes Engine Cluster Manager API Node.js Client API Reference][client-docs] documentation also contains samples. +## Supported Node.js Versions + +Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). +Libraries are compatible with all current _active_ and _maintenance_ versions of +Node.js. + +Client libraries targetting some end-of-life versions of Node.js are available, and +can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). +The dist-tags follow the naming convention `legacy-(version)`. + +_Legacy Node.js versions are supported as a best effort:_ + +* Legacy versions will not be tested in continuous integration. +* Some security patches may not be able to be backported. +* Dependencies will not be kept up-to-date, and features will not be backported. + +#### Legacy tags available + +* `legacy-8`: install client libraries from this dist-tag for versions + compatible with Node.js 8. + ## Versioning This library follows [Semantic Versioning](http://semver.org/). From 89fa0762636f0170ecad30e7ca3c40a655798e22 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 25 Mar 2020 01:51:28 -0700 Subject: [PATCH 195/371] chore: regenerate the code Co-authored-by: Alexander Fenster --- packages/google-container/.jsdoc.js | 2 +- .../src/v1/cluster_manager_client.ts | 12 +++++++++--- packages/google-container/src/v1/index.ts | 2 +- packages/google-container/synth.metadata | 16 ++++++++-------- .../system-test/fixtures/sample/src/index.js | 2 +- .../system-test/fixtures/sample/src/index.ts | 2 +- packages/google-container/system-test/install.ts | 2 +- .../test/gapic-cluster_manager-v1.ts | 2 +- packages/google-container/webpack.config.js | 2 +- 9 files changed, 24 insertions(+), 18 deletions(-) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index 1efa19c9f3d..fcdbbd238cb 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -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. diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 3f13c203262..594f9ae857e 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -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. @@ -40,7 +40,12 @@ const version = require('../../../package.json').version; * @memberof v1 */ export class ClusterManagerClient { - private _descriptors: Descriptors = {page: {}, stream: {}, longrunning: {}}; + private _descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; private _innerApiCalls: {[name: string]: Function}; private _terminated = false; private _opts: ClientOptions; @@ -239,7 +244,8 @@ export class ClusterManagerClient { if (this._terminated) { return Promise.reject('The client has already been closed.'); } - return stub[methodName].apply(stub, args); + const func = stub[methodName]; + return func.apply(stub, args); }, (err: Error | null | undefined) => () => { throw err; diff --git a/packages/google-container/src/v1/index.ts b/packages/google-container/src/v1/index.ts index 84fc771ca28..0c797b4724d 100644 --- a/packages/google-container/src/v1/index.ts +++ b/packages/google-container/src/v1/index.ts @@ -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. diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 2b370b1a872..112a0ae6a3f 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,20 +1,20 @@ { - "updateTime": "2020-03-05T23:03:14.339441Z", + "updateTime": "2020-03-22T11:18:32.073897Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "f0b581b5bdf803e45201ecdb3688b60e381628a8", - "internalRef": "299181282", - "log": "f0b581b5bdf803e45201ecdb3688b60e381628a8\nfix: recommendationengine/v1beta1 update some comments\n\nPiperOrigin-RevId: 299181282\n\n10e9a0a833dc85ff8f05b2c67ebe5ac785fe04ff\nbuild: add generated BUILD file for Routes Preferred API\n\nPiperOrigin-RevId: 299164808\n\n86738c956a8238d7c77f729be78b0ed887a6c913\npublish v1p1beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299152383\n\n73d9f2ad4591de45c2e1f352bc99d70cbd2a6d95\npublish v1: update with absolute address in comments\n\nPiperOrigin-RevId: 299147194\n\nd2158f24cb77b0b0ccfe68af784c6a628705e3c6\npublish v1beta2: update with absolute address in comments\n\nPiperOrigin-RevId: 299147086\n\n7fca61292c11b4cd5b352cee1a50bf88819dd63b\npublish v1p2beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146903\n\n583b7321624736e2c490e328f4b1957335779295\npublish v1p3beta1: update with absolute address in comments\n\nPiperOrigin-RevId: 299146674\n\n638253bf86d1ce1c314108a089b7351440c2f0bf\nfix: add java_multiple_files option for automl text_sentiment.proto\n\nPiperOrigin-RevId: 298971070\n\n373d655703bf914fb8b0b1cc4071d772bac0e0d1\nUpdate Recs AI Beta public bazel file\n\nPiperOrigin-RevId: 298961623\n\ndcc5d00fc8a8d8b56f16194d7c682027b2c66a3b\nfix: add java_multiple_files option for automl classification.proto\n\nPiperOrigin-RevId: 298953301\n\na3f791827266f3496a6a5201d58adc4bb265c2a3\nchore: automl/v1 publish annotations and retry config\n\nPiperOrigin-RevId: 298942178\n\n01c681586d8d6dbd60155289b587aee678530bd9\nMark return_immediately in PullRequest deprecated.\n\nPiperOrigin-RevId: 298893281\n\nc9f5e9c4bfed54bbd09227e990e7bded5f90f31c\nRemove out of date documentation for predicate support on the Storage API\n\nPiperOrigin-RevId: 298883309\n\nfd5b3b8238d783b04692a113ffe07c0363f5de0f\ngenerate webrisk v1 proto\n\nPiperOrigin-RevId: 298847934\n\n541b1ded4abadcc38e8178680b0677f65594ea6f\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 298686266\n\nc0d171acecb4f5b0bfd2c4ca34fc54716574e300\n Updated to include the Notification v1 API.\n\nPiperOrigin-RevId: 298652775\n\n2346a9186c0bff2c9cc439f2459d558068637e05\nAdd Service Directory v1beta1 protos and configs\n\nPiperOrigin-RevId: 298625638\n\na78ed801b82a5c6d9c5368e24b1412212e541bb7\nPublishing v3 protos and configs.\n\nPiperOrigin-RevId: 298607357\n\n4a180bfff8a21645b3a935c2756e8d6ab18a74e0\nautoml/v1beta1 publish proto updates\n\nPiperOrigin-RevId: 298484782\n\n6de6e938b7df1cd62396563a067334abeedb9676\nchore: use the latest gapic-generator and protoc-java-resource-name-plugin in Bazel workspace.\n\nPiperOrigin-RevId: 298474513\n\n244ab2b83a82076a1fa7be63b7e0671af73f5c02\nAdds service config definition for bigqueryreservation v1\n\nPiperOrigin-RevId: 298455048\n\n" + "sha": "0be7105dc52590fa9a24e784052298ae37ce53aa", + "internalRef": "302154871", + "log": "0be7105dc52590fa9a24e784052298ae37ce53aa\nAdd BUILD.bazel file to asset/v1p1beta1\n\nPiperOrigin-RevId: 302154871\n\n6c248fd13e8543f8d22cbf118d978301a9fbe2a8\nAdd missing resource annotations and additional_bindings to dialogflow v2 API.\n\nPiperOrigin-RevId: 302063117\n\n9a3a7f33be9eeacf7b3e98435816b7022d206bd7\nChange the service name from \"chromeos-moblab.googleapis.com\" to \"chromeosmoblab.googleapis.com\"\n\nPiperOrigin-RevId: 302060989\n\n98a339237577e3de26cb4921f75fb5c57cc7a19f\nfeat: devtools/build/v1 publish client library config annotations\n\n* add details field to some of the BuildEvents\n* add final_invocation_id and build_tool_exit_code fields to BuildStatus\n\nPiperOrigin-RevId: 302044087\n\ncfabc98c6bbbb22d1aeaf7612179c0be193b3a13\nfeat: home/graph/v1 publish client library config annotations & comment updates\n\nThis change includes adding the client library configuration annotations, updated proto comments, and some client library configuration files.\n\nPiperOrigin-RevId: 302042647\n\nc8c8c0bd15d082db9546253dbaad1087c7a9782c\nchore: use latest gapic-generator in bazel WORKSPACE.\nincluding the following commits from gapic-generator:\n- feat: take source protos in all sub-packages (#3144)\n\nPiperOrigin-RevId: 301843591\n\ne4daf5202ea31cb2cb6916fdbfa9d6bd771aeb4c\nAdd bazel file for v1 client lib generation\n\nPiperOrigin-RevId: 301802926\n\n275fbcce2c900278d487c33293a3c7e1fbcd3a34\nfeat: pubsub/v1 add an experimental filter field to Subscription\n\nPiperOrigin-RevId: 301661567\n\nf2b18cec51d27c999ad30011dba17f3965677e9c\nFix: UpdateBackupRequest.backup is a resource, not a resource reference - remove annotation.\n\nPiperOrigin-RevId: 301636171\n\n800384063ac93a0cac3a510d41726fa4b2cd4a83\nCloud Billing Budget API v1beta1\nModified api documentation to include warnings about the new filter field.\n\nPiperOrigin-RevId: 301634389\n\n0cc6c146b660db21f04056c3d58a4b752ee445e3\nCloud Billing Budget API v1alpha1\nModified api documentation to include warnings about the new filter field.\n\nPiperOrigin-RevId: 301630018\n\nff2ea00f69065585c3ac0993c8b582af3b6fc215\nFix: Add resource definition for a parent of InspectTemplate which was otherwise missing.\n\nPiperOrigin-RevId: 301623052\n\n55fa441c9daf03173910760191646399338f2b7c\nAdd proto definition for AccessLevel, AccessPolicy, and ServicePerimeter.\n\nPiperOrigin-RevId: 301620844\n\ne7b10591c5408a67cf14ffafa267556f3290e262\nCloud Bigtable Managed Backup service and message proto files.\n\nPiperOrigin-RevId: 301585144\n\nd8e226f702f8ddf92915128c9f4693b63fb8685d\nfeat: Add time-to-live in a queue for builds\n\nPiperOrigin-RevId: 301579876\n\n430375af011f8c7a5174884f0d0e539c6ffa7675\ndocs: add missing closing backtick\n\nPiperOrigin-RevId: 301538851\n\n0e9f1f60ded9ad1c2e725e37719112f5b487ab65\nbazel: Use latest release of gax_java\n\nPiperOrigin-RevId: 301480457\n\n5058c1c96d0ece7f5301a154cf5a07b2ad03a571\nUpdate GAPIC v2 with batching parameters for Logging API\n\nPiperOrigin-RevId: 301443847\n\n64ab9744073de81fec1b3a6a931befc8a90edf90\nFix: Introduce location-based organization/folder/billing-account resources\nChore: Update copyright years\n\nPiperOrigin-RevId: 301373760\n\n23d5f09e670ebb0c1b36214acf78704e2ecfc2ac\nUpdate field_behavior annotations in V1 and V2.\n\nPiperOrigin-RevId: 301337970\n\nb2cf37e7fd62383a811aa4d54d013ecae638851d\nData Catalog V1 API\n\nPiperOrigin-RevId: 301282503\n\n1976b9981e2900c8172b7d34b4220bdb18c5db42\nCloud DLP api update. Adds missing fields to Finding and adds support for hybrid jobs.\n\nPiperOrigin-RevId: 301205325\n\nae78682c05e864d71223ce22532219813b0245ac\nfix: several sample code blocks in comments are now properly indented for markdown\n\nPiperOrigin-RevId: 301185150\n\ndcd171d04bda5b67db13049320f97eca3ace3731\nPublish Media Translation API V1Beta1\n\nPiperOrigin-RevId: 301180096\n\nff1713453b0fbc5a7544a1ef6828c26ad21a370e\nAdd protos and BUILD rules for v1 API.\n\nPiperOrigin-RevId: 301179394\n\n8386761d09819b665b6a6e1e6d6ff884bc8ff781\nfeat: chromeos/modlab publish protos and config for Chrome OS Moblab API.\n\nPiperOrigin-RevId: 300843960\n\nb2e2bc62fab90e6829e62d3d189906d9b79899e4\nUpdates to GCS gRPC API spec:\n\n1. Changed GetIamPolicy and TestBucketIamPermissions to use wrapper messages around google.iam.v1 IAM requests messages, and added CommonRequestParams. This lets us support RequesterPays buckets.\n2. Added a metadata field to GetObjectMediaResponse, to support resuming an object media read safely (by extracting the generation of the object being read, and using it in the resumed read request).\n\nPiperOrigin-RevId: 300817706\n\n7fd916ce12335cc9e784bb9452a8602d00b2516c\nAdd deprecated_collections field for backward-compatiblity in PHP and monolith-generated Python and Ruby clients.\n\nGenerate TopicName class in Java which covers the functionality of both ProjectTopicName and DeletedTopicName. Introduce breaking changes to be fixed by synth.py.\n\nDelete default retry parameters.\n\nRetry codes defs can be deleted once # https://github.com/googleapis/gapic-generator/issues/3137 is fixed.\n\nPiperOrigin-RevId: 300813135\n\n047d3a8ac7f75383855df0166144f891d7af08d9\nfix!: google/rpc refactor ErrorInfo.type to ErrorInfo.reason and comment updates.\n\nPiperOrigin-RevId: 300773211\n\nfae4bb6d5aac52aabe5f0bb4396466c2304ea6f6\nAdding RetryPolicy to pubsub.proto\n\nPiperOrigin-RevId: 300769420\n\n7d569be2928dbd72b4e261bf9e468f23afd2b950\nAdding additional protocol buffer annotations to v3.\n\nPiperOrigin-RevId: 300718800\n\n13942d1a85a337515040a03c5108993087dc0e4f\nAdd logging protos for Recommender v1.\n\nPiperOrigin-RevId: 300689896\n\na1a573c3eecfe2c404892bfa61a32dd0c9fb22b6\nfix: change go package to use cloud.google.com/go/maps\n\nPiperOrigin-RevId: 300661825\n\nc6fbac11afa0c7ab2972d9df181493875c566f77\nfeat: publish documentai/v1beta2 protos\n\nPiperOrigin-RevId: 300656808\n\n5202a9e0d9903f49e900f20fe5c7f4e42dd6588f\nProtos for v1beta1 release of Cloud Security Center Settings API\n\nPiperOrigin-RevId: 300580858\n\n83518e18655d9d4ac044acbda063cc6ecdb63ef8\nAdds gapic.yaml file and BUILD.bazel file.\n\nPiperOrigin-RevId: 300554200\n\n836c196dc8ef8354bbfb5f30696bd3477e8db5e2\nRegenerate recommender v1beta1 gRPC ServiceConfig file for Insights methods.\n\nPiperOrigin-RevId: 300549302\n\n34a5450c591b6be3d6566f25ac31caa5211b2f3f\nIncreases the default timeout from 20s to 30s for MetricService\n\nPiperOrigin-RevId: 300474272\n\n5d8bffe87cd01ba390c32f1714230e5a95d5991d\nfeat: use the latest gapic-generator in WORKSPACE for bazel build.\n\nPiperOrigin-RevId: 300461878\n\nd631c651e3bcfac5d371e8560c27648f7b3e2364\nUpdated the GAPIC configs to include parameters for Backups APIs.\n\nPiperOrigin-RevId: 300443402\n\n678afc7055c1adea9b7b54519f3bdb228013f918\nAdding Game Servers v1beta API.\n\nPiperOrigin-RevId: 300433218\n\n80d2bd2c652a5e213302041b0620aff423132589\nEnable proto annotation and gapic v2 for talent API.\n\nPiperOrigin-RevId: 300393997\n\n85e454be7a353f7fe1bf2b0affb753305785b872\ndocs(google/maps/roads): remove mention of nonexported api\n\nPiperOrigin-RevId: 300367734\n\nbf839ae632e0f263a729569e44be4b38b1c85f9c\nAdding protocol buffer annotations and updated config info for v1 and v2.\n\nPiperOrigin-RevId: 300276913\n\n309b899ca18a4c604bce63882a161d44854da549\nPublish `Backup` APIs and protos.\n\nPiperOrigin-RevId: 300246038\n\neced64c3f122421350b4aca68a28e89121d20db8\nadd PHP client libraries\n\nPiperOrigin-RevId: 300193634\n\n7727af0e39df1ae9ad715895c8576d7b65cf6c6d\nfeat: use the latest gapic-generator and protoc-java-resource-name-plugin in googleapis/WORKSPACE.\n\nPiperOrigin-RevId: 300188410\n\n2a25aa351dd5b5fe14895266aff5824d90ce757b\nBreaking change: remove the ProjectOrTenant resource and its references.\n\nPiperOrigin-RevId: 300182152\n\na499dbb28546379415f51803505cfb6123477e71\nUpdate web risk v1 gapic config and BUILD file.\n\nPiperOrigin-RevId: 300152177\n\n52701da10fec2a5f9796e8d12518c0fe574488fe\nFix: apply appropriate namespace/package options for C#, PHP and Ruby.\n\nPiperOrigin-RevId: 300123508\n\n365c029b8cdb63f7751b92ab490f1976e616105c\nAdd CC targets to the kms protos.\n\nThese are needed by go/tink.\n\nPiperOrigin-RevId: 300038469\n\n4ba9aa8a4a1413b88dca5a8fa931824ee9c284e6\nExpose logo recognition API proto for GA.\n\nPiperOrigin-RevId: 299971671\n\n1c9fc2c9e03dadf15f16b1c4f570955bdcebe00e\nAdding ruby_package option to accessapproval.proto for the Ruby client libraries generation.\n\nPiperOrigin-RevId: 299955924\n\n1cc6f0a7bfb147e6f2ede911d9b01e7a9923b719\nbuild(google/maps/routes): generate api clients\n\nPiperOrigin-RevId: 299955905\n\n29a47c965aac79e3fe8e3314482ca0b5967680f0\nIncrease timeout to 1hr for method `dropRange` in bigtable/admin/v2, which is\nsynced with the timeout setting in gapic_yaml.\n\nPiperOrigin-RevId: 299917154\n\n8f631c4c70a60a9c7da3749511ee4ad432b62898\nbuild(google/maps/roads/v1op): move go to monorepo pattern\n\nPiperOrigin-RevId: 299885195\n\nd66816518844ebbf63504c9e8dfc7133921dd2cd\nbuild(google/maps/roads/v1op): Add bazel build files to generate clients.\n\nPiperOrigin-RevId: 299851148\n\naf7dff701fabe029672168649c62356cf1bb43d0\nAdd LogPlayerReports and LogImpressions to Playable Locations service\n\nPiperOrigin-RevId: 299724050\n\nb6927fca808f38df32a642c560082f5bf6538ced\nUpdate BigQuery Connection API v1beta1 proto: added credential to CloudSqlProperties.\n\nPiperOrigin-RevId: 299503150\n\n91e1fb5ef9829c0c7a64bfa5bde330e6ed594378\nchore: update protobuf (protoc) version to 3.11.2\n\nPiperOrigin-RevId: 299404145\n\n30e36b4bee6749c4799f4fc1a51cc8f058ba167d\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 299399890\n\nffbb493674099f265693872ae250711b2238090c\nfeat: cloudbuild/v1 add new fields and annotate OUTPUT_OUT fields.\n\nPiperOrigin-RevId: 299397780\n\nbc973a15818e00c19e121959832676e9b7607456\nbazel: Fix broken common dependency\n\nPiperOrigin-RevId: 299397431\n\n71094a343e3b962e744aa49eb9338219537474e4\nchore: bigtable/admin/v2 publish retry config\n\nPiperOrigin-RevId: 299391875\n\n8f488efd7bda33885cb674ddd023b3678c40bd82\nfeat: Migrate logging to GAPIC v2; release new features.\n\nIMPORTANT: This is a breaking change for client libraries\nin all languages.\n\nCommitter: @lukesneeringer, @jskeet\nPiperOrigin-RevId: 299370279\n\n007605bf9ad3a1fd775014ebefbf7f1e6b31ee71\nUpdate API for bigqueryreservation v1beta1.\n- Adds flex capacity commitment plan to CapacityCommitment.\n- Adds methods for getting and updating BiReservations.\n- Adds methods for updating/splitting/merging CapacityCommitments.\n\nPiperOrigin-RevId: 299368059\n\n" } }, { - "template": { - "name": "node_library", - "origin": "synthtool.gcp", - "version": "2020.2.4" + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "7e98e1609c91082f4eeb63b530c6468aefd18cfd" } } ], diff --git a/packages/google-container/system-test/fixtures/sample/src/index.js b/packages/google-container/system-test/fixtures/sample/src/index.js index 4c7e7193d6c..c65d15844fe 100644 --- a/packages/google-container/system-test/fixtures/sample/src/index.js +++ b/packages/google-container/system-test/fixtures/sample/src/index.js @@ -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. diff --git a/packages/google-container/system-test/fixtures/sample/src/index.ts b/packages/google-container/system-test/fixtures/sample/src/index.ts index 0f1e6e5d0e2..12d6ce7d8dc 100644 --- a/packages/google-container/system-test/fixtures/sample/src/index.ts +++ b/packages/google-container/system-test/fixtures/sample/src/index.ts @@ -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. diff --git a/packages/google-container/system-test/install.ts b/packages/google-container/system-test/install.ts index c9aa74ec221..c4d80e9c0c8 100644 --- a/packages/google-container/system-test/install.ts +++ b/packages/google-container/system-test/install.ts @@ -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. diff --git a/packages/google-container/test/gapic-cluster_manager-v1.ts b/packages/google-container/test/gapic-cluster_manager-v1.ts index c7bbea88be5..0569a45001f 100644 --- a/packages/google-container/test/gapic-cluster_manager-v1.ts +++ b/packages/google-container/test/gapic-cluster_manager-v1.ts @@ -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. diff --git a/packages/google-container/webpack.config.js b/packages/google-container/webpack.config.js index 4a9a19d9a43..e8df8bfbb15 100644 --- a/packages/google-container/webpack.config.js +++ b/packages/google-container/webpack.config.js @@ -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. From 2016e816465dbb8f15611e88e5e135dca40a5946 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 31 Mar 2020 14:24:25 -0700 Subject: [PATCH 196/371] feat!: drop node8 support, support for async iterators (#318) BREAKING CHANGE: The library now supports Node.js v10+. The last version to support Node.js v8 is tagged legacy-8 on NPM. New feature: methods with pagination now support async iteration. --- packages/google-container/.eslintrc.json | 3 + packages/google-container/.eslintrc.yml | 15 - packages/google-container/.prettierrc | 8 - packages/google-container/.prettierrc.js | 17 + packages/google-container/package.json | 10 +- .../smoke-test/cluster_manager_smoke_test.js | 2 + .../src/v1/cluster_manager_client.ts | 1483 ++++--- packages/google-container/synth.metadata | 20 +- .../system-test/fixtures/sample/src/index.js | 1 - .../test/gapic-cluster_manager-v1.ts | 1728 -------- .../test/gapic_cluster_manager_v1.ts | 3949 +++++++++++++++++ packages/google-container/webpack.config.js | 12 +- 12 files changed, 4885 insertions(+), 2363 deletions(-) create mode 100644 packages/google-container/.eslintrc.json delete mode 100644 packages/google-container/.eslintrc.yml delete mode 100644 packages/google-container/.prettierrc create mode 100644 packages/google-container/.prettierrc.js delete mode 100644 packages/google-container/test/gapic-cluster_manager-v1.ts create mode 100644 packages/google-container/test/gapic_cluster_manager_v1.ts diff --git a/packages/google-container/.eslintrc.json b/packages/google-container/.eslintrc.json new file mode 100644 index 00000000000..78215349546 --- /dev/null +++ b/packages/google-container/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "./node_modules/gts" +} diff --git a/packages/google-container/.eslintrc.yml b/packages/google-container/.eslintrc.yml deleted file mode 100644 index 73eeec27612..00000000000 --- a/packages/google-container/.eslintrc.yml +++ /dev/null @@ -1,15 +0,0 @@ ---- -extends: - - 'eslint:recommended' - - 'plugin:node/recommended' - - prettier -plugins: - - node - - prettier -rules: - prettier/prettier: error - block-scoped-var: error - eqeqeq: error - no-warning-comments: warn - no-var: error - prefer-const: error diff --git a/packages/google-container/.prettierrc b/packages/google-container/.prettierrc deleted file mode 100644 index df6eac07446..00000000000 --- a/packages/google-container/.prettierrc +++ /dev/null @@ -1,8 +0,0 @@ ---- -bracketSpacing: false -printWidth: 80 -semi: true -singleQuote: true -tabWidth: 2 -trailingComma: es5 -useTabs: false diff --git a/packages/google-container/.prettierrc.js b/packages/google-container/.prettierrc.js new file mode 100644 index 00000000000..08cba3775be --- /dev/null +++ b/packages/google-container/.prettierrc.js @@ -0,0 +1,17 @@ +// 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +module.exports = { + ...require('gts/.prettierrc.json') +} diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 77feb0dc550..74a02587384 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "author": "Google Inc", "engines": { - "node": ">=8.10.0" + "node": ">=10" }, "repository": "googleapis/nodejs-cloud-container", "main": "build/src/index.js", @@ -42,17 +42,18 @@ "prelint": "cd samples; npm link ../; npm i" }, "dependencies": { - "google-gax": "^1.9.0" + "google-gax": "^2.0.1" }, "devDependencies": { "@types/mocha": "^7.0.0", "@types/node": "^12.0.0", + "@types/sinon": "^7.5.2", "c8": "^7.0.0", "eslint": "^6.0.0", "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", "eslint-plugin-prettier": "^3.1.0", - "gts": "^1.0.0", + "gts": "2.0.0-alpha.9", "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", @@ -61,8 +62,9 @@ "null-loader": "^3.0.0", "pack-n-play": "^1.0.0-2", "prettier": "^1.17.1", + "sinon": "^9.0.1", "ts-loader": "^6.2.1", - "typescript": "^3.7.0", + "typescript": "^3.8.3", "webpack": "^4.41.2", "webpack-cli": "^3.3.10" } diff --git a/packages/google-container/smoke-test/cluster_manager_smoke_test.js b/packages/google-container/smoke-test/cluster_manager_smoke_test.js index c406795c09c..1b0c8a7bd8e 100644 --- a/packages/google-container/smoke-test/cluster_manager_smoke_test.js +++ b/packages/google-container/smoke-test/cluster_manager_smoke_test.js @@ -13,6 +13,7 @@ // limitations under the License. 'use strict'; +const {describe, it} = require('mocha'); describe('ClusterManagerSmokeTest', () => { if (!process.env.GCLOUD_PROJECT) { @@ -21,6 +22,7 @@ describe('ClusterManagerSmokeTest', () => { const projectId = process.env.GCLOUD_PROJECT; it('successfully makes a call to the service', done => { + // eslint-disable-next-line node/no-missing-require const container = require('../src'); const client = new container.v1.ClusterManagerClient({ diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 594f9ae857e..f5712fe86f9 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -18,18 +18,18 @@ import * as gax from 'google-gax'; import { - APICallback, + GaxCall, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, - PaginationResponse, } from 'google-gax'; import * as path from 'path'; import {Transform} from 'stream'; -import * as protosTypes from '../../protos/protos'; +import {RequestType} from 'google-gax/build/src/apitypes'; +import * as protos from '../../protos/protos'; import * as gapicConfig from './cluster_manager_client_config.json'; const version = require('../../../package.json').version; @@ -40,13 +40,6 @@ const version = require('../../../package.json').version; * @memberof v1 */ export class ClusterManagerClient { - private _descriptors: Descriptors = { - page: {}, - stream: {}, - longrunning: {}, - batching: {}, - }; - private _innerApiCalls: {[name: string]: Function}; private _terminated = false; private _opts: ClientOptions; private _gaxModule: typeof gax | typeof gax.fallback; @@ -54,6 +47,13 @@ export class ClusterManagerClient { private _protos: {}; private _defaults: {[method: string]: gax.CallSettings}; auth: gax.GoogleAuth; + descriptors: Descriptors = { + page: {}, + stream: {}, + longrunning: {}, + batching: {}, + }; + innerApiCalls: {[name: string]: Function}; clusterManagerStub?: Promise<{[name: string]: Function}>; /** @@ -145,13 +145,16 @@ export class ClusterManagerClient { 'protos.json' ); this._protos = this._gaxGrpc.loadProto( - opts.fallback ? require('../../protos/protos.json') : nodejsProtoPath + opts.fallback + ? // eslint-disable-next-line @typescript-eslint/no-var-requires + require('../../protos/protos.json') + : nodejsProtoPath ); // Some of the methods on this service return "paged" results, // (e.g. 50 results at a time, with tokens to get subsequent // pages). Denote the keys used for pagination and results. - this._descriptors.page = { + this.descriptors.page = { listUsableSubnetworks: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -170,7 +173,7 @@ export class ClusterManagerClient { // Set up a dictionary of "inner API calls"; the core implementation // of calling the API is handled in `google-gax`, with this code // merely providing the destination and request information. - this._innerApiCalls = {}; + this.innerApiCalls = {}; } /** @@ -197,7 +200,7 @@ export class ClusterManagerClient { ? (this._protos as protobuf.Root).lookupService( 'google.container.v1.ClusterManager' ) - : // tslint:disable-next-line no-any + : // eslint-disable-next-line @typescript-eslint/no-explicit-any (this._protos as any).google.container.v1.ClusterManager, this._opts ) as Promise<{[method: string]: Function}>; @@ -237,9 +240,8 @@ export class ClusterManagerClient { 'setMaintenancePolicy', 'listUsableSubnetworks', ]; - for (const methodName of clusterManagerStubMethods) { - const innerCallPromise = this.clusterManagerStub.then( + const callPromise = this.clusterManagerStub.then( stub => (...args: Array<{}>) => { if (this._terminated) { return Promise.reject('The client has already been closed.'); @@ -253,20 +255,14 @@ export class ClusterManagerClient { ); const apiCall = this._gaxModule.createApiCall( - innerCallPromise, + callPromise, this._defaults[methodName], - this._descriptors.page[methodName] || - this._descriptors.stream[methodName] || - this._descriptors.longrunning[methodName] + this.descriptors.page[methodName] || + this.descriptors.stream[methodName] || + this.descriptors.longrunning[methodName] ); - this._innerApiCalls[methodName] = ( - argument: {}, - callOptions?: CallOptions, - callback?: APICallback - ) => { - return apiCall(argument, callOptions, callback); - }; + this.innerApiCalls[methodName] = apiCall; } return this.clusterManagerStub; @@ -323,22 +319,30 @@ export class ClusterManagerClient { // -- Service calls -- // ------------------- listClusters( - request: protosTypes.google.container.v1.IListClustersRequest, + request: protos.google.container.v1.IListClustersRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IListClustersResponse, - protosTypes.google.container.v1.IListClustersRequest | undefined, + protos.google.container.v1.IListClustersResponse, + protos.google.container.v1.IListClustersRequest | undefined, {} | undefined ] >; listClusters( - request: protosTypes.google.container.v1.IListClustersRequest, + request: protos.google.container.v1.IListClustersRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IListClustersResponse, - protosTypes.google.container.v1.IListClustersRequest | undefined, - {} | undefined + protos.google.container.v1.IListClustersResponse, + protos.google.container.v1.IListClustersRequest | null | undefined, + {} | null | undefined + > + ): void; + listClusters( + request: protos.google.container.v1.IListClustersRequest, + callback: Callback< + protos.google.container.v1.IListClustersResponse, + protos.google.container.v1.IListClustersRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -367,23 +371,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ listClusters( - request: protosTypes.google.container.v1.IListClustersRequest, + request: protos.google.container.v1.IListClustersRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IListClustersResponse, - protosTypes.google.container.v1.IListClustersRequest | undefined, - {} | undefined + protos.google.container.v1.IListClustersResponse, + protos.google.container.v1.IListClustersRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IListClustersResponse, - protosTypes.google.container.v1.IListClustersRequest | undefined, - {} | undefined + protos.google.container.v1.IListClustersResponse, + protos.google.container.v1.IListClustersRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IListClustersResponse, - protosTypes.google.container.v1.IListClustersRequest | undefined, + protos.google.container.v1.IListClustersResponse, + protos.google.container.v1.IListClustersRequest | undefined, {} | undefined ] > | void { @@ -404,25 +408,33 @@ export class ClusterManagerClient { parent: request.parent || '', }); this.initialize(); - return this._innerApiCalls.listClusters(request, options, callback); + return this.innerApiCalls.listClusters(request, options, callback); } getCluster( - request: protosTypes.google.container.v1.IGetClusterRequest, + request: protos.google.container.v1.IGetClusterRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.ICluster, - protosTypes.google.container.v1.IGetClusterRequest | undefined, + protos.google.container.v1.ICluster, + protos.google.container.v1.IGetClusterRequest | undefined, {} | undefined ] >; getCluster( - request: protosTypes.google.container.v1.IGetClusterRequest, + request: protos.google.container.v1.IGetClusterRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.ICluster, - protosTypes.google.container.v1.IGetClusterRequest | undefined, - {} | undefined + protos.google.container.v1.ICluster, + protos.google.container.v1.IGetClusterRequest | null | undefined, + {} | null | undefined + > + ): void; + getCluster( + request: protos.google.container.v1.IGetClusterRequest, + callback: Callback< + protos.google.container.v1.ICluster, + protos.google.container.v1.IGetClusterRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -452,23 +464,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ getCluster( - request: protosTypes.google.container.v1.IGetClusterRequest, + request: protos.google.container.v1.IGetClusterRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.ICluster, - protosTypes.google.container.v1.IGetClusterRequest | undefined, - {} | undefined + protos.google.container.v1.ICluster, + protos.google.container.v1.IGetClusterRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.ICluster, - protosTypes.google.container.v1.IGetClusterRequest | undefined, - {} | undefined + protos.google.container.v1.ICluster, + protos.google.container.v1.IGetClusterRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.ICluster, - protosTypes.google.container.v1.IGetClusterRequest | undefined, + protos.google.container.v1.ICluster, + protos.google.container.v1.IGetClusterRequest | undefined, {} | undefined ] > | void { @@ -489,25 +501,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.getCluster(request, options, callback); + return this.innerApiCalls.getCluster(request, options, callback); } createCluster( - request: protosTypes.google.container.v1.ICreateClusterRequest, + request: protos.google.container.v1.ICreateClusterRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICreateClusterRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateClusterRequest | undefined, {} | undefined ] >; createCluster( - request: protosTypes.google.container.v1.ICreateClusterRequest, + request: protos.google.container.v1.ICreateClusterRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICreateClusterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateClusterRequest | null | undefined, + {} | null | undefined + > + ): void; + createCluster( + request: protos.google.container.v1.ICreateClusterRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateClusterRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -549,23 +569,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ createCluster( - request: protosTypes.google.container.v1.ICreateClusterRequest, + request: protos.google.container.v1.ICreateClusterRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICreateClusterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateClusterRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICreateClusterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateClusterRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICreateClusterRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateClusterRequest | undefined, {} | undefined ] > | void { @@ -586,25 +606,33 @@ export class ClusterManagerClient { parent: request.parent || '', }); this.initialize(); - return this._innerApiCalls.createCluster(request, options, callback); + return this.innerApiCalls.createCluster(request, options, callback); } updateCluster( - request: protosTypes.google.container.v1.IUpdateClusterRequest, + request: protos.google.container.v1.IUpdateClusterRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateClusterRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateClusterRequest | undefined, {} | undefined ] >; updateCluster( - request: protosTypes.google.container.v1.IUpdateClusterRequest, + request: protos.google.container.v1.IUpdateClusterRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateClusterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateClusterRequest | null | undefined, + {} | null | undefined + > + ): void; + updateCluster( + request: protos.google.container.v1.IUpdateClusterRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateClusterRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -636,23 +664,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ updateCluster( - request: protosTypes.google.container.v1.IUpdateClusterRequest, + request: protos.google.container.v1.IUpdateClusterRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateClusterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateClusterRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateClusterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateClusterRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateClusterRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateClusterRequest | undefined, {} | undefined ] > | void { @@ -673,25 +701,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.updateCluster(request, options, callback); + return this.innerApiCalls.updateCluster(request, options, callback); } updateNodePool( - request: protosTypes.google.container.v1.IUpdateNodePoolRequest, + request: protos.google.container.v1.IUpdateNodePoolRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateNodePoolRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | undefined, {} | undefined ] >; updateNodePool( - request: protosTypes.google.container.v1.IUpdateNodePoolRequest, + request: protos.google.container.v1.IUpdateNodePoolRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; + updateNodePool( + request: protos.google.container.v1.IUpdateNodePoolRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -739,23 +775,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ updateNodePool( - request: protosTypes.google.container.v1.IUpdateNodePoolRequest, + request: protos.google.container.v1.IUpdateNodePoolRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateNodePoolRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | undefined, {} | undefined ] > | void { @@ -776,29 +812,37 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.updateNodePool(request, options, callback); + return this.innerApiCalls.updateNodePool(request, options, callback); } setNodePoolAutoscaling( - request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest, + request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - ( - | protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest - | undefined - ), + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolAutoscalingRequest | undefined, {} | undefined ] >; setNodePoolAutoscaling( - request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest, + request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - | protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolAutoscalingRequest + | null | undefined, - {} | undefined + {} | null | undefined + > + ): void; + setNodePoolAutoscaling( + request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolAutoscalingRequest + | null + | undefined, + {} | null | undefined > ): void; /** @@ -834,28 +878,27 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setNodePoolAutoscaling( - request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest, + request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - | protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolAutoscalingRequest + | null | undefined, - {} | undefined + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - | protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolAutoscalingRequest + | null | undefined, - {} | undefined + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - ( - | protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest - | undefined - ), + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolAutoscalingRequest | undefined, {} | undefined ] > | void { @@ -876,29 +919,37 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setNodePoolAutoscaling( + return this.innerApiCalls.setNodePoolAutoscaling( request, options, callback ); } setLoggingService( - request: protosTypes.google.container.v1.ISetLoggingServiceRequest, + request: protos.google.container.v1.ISetLoggingServiceRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLoggingServiceRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLoggingServiceRequest | undefined, {} | undefined ] >; setLoggingService( - request: protosTypes.google.container.v1.ISetLoggingServiceRequest, + request: protos.google.container.v1.ISetLoggingServiceRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLoggingServiceRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLoggingServiceRequest | null | undefined, + {} | null | undefined + > + ): void; + setLoggingService( + request: protos.google.container.v1.ISetLoggingServiceRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLoggingServiceRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -934,23 +985,25 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setLoggingService( - request: protosTypes.google.container.v1.ISetLoggingServiceRequest, + request: protos.google.container.v1.ISetLoggingServiceRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLoggingServiceRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetLoggingServiceRequest + | null + | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLoggingServiceRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLoggingServiceRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLoggingServiceRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLoggingServiceRequest | undefined, {} | undefined ] > | void { @@ -971,25 +1024,37 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setLoggingService(request, options, callback); + return this.innerApiCalls.setLoggingService(request, options, callback); } setMonitoringService( - request: protosTypes.google.container.v1.ISetMonitoringServiceRequest, + request: protos.google.container.v1.ISetMonitoringServiceRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMonitoringServiceRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMonitoringServiceRequest | undefined, {} | undefined ] >; setMonitoringService( - request: protosTypes.google.container.v1.ISetMonitoringServiceRequest, + request: protos.google.container.v1.ISetMonitoringServiceRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMonitoringServiceRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetMonitoringServiceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setMonitoringService( + request: protos.google.container.v1.ISetMonitoringServiceRequest, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetMonitoringServiceRequest + | null + | undefined, + {} | null | undefined > ): void; /** @@ -1027,24 +1092,27 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setMonitoringService( - request: protosTypes.google.container.v1.ISetMonitoringServiceRequest, + request: protos.google.container.v1.ISetMonitoringServiceRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - | protosTypes.google.container.v1.ISetMonitoringServiceRequest + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetMonitoringServiceRequest + | null | undefined, - {} | undefined + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMonitoringServiceRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetMonitoringServiceRequest + | null + | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMonitoringServiceRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMonitoringServiceRequest | undefined, {} | undefined ] > | void { @@ -1065,25 +1133,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setMonitoringService(request, options, callback); + return this.innerApiCalls.setMonitoringService(request, options, callback); } setAddonsConfig( - request: protosTypes.google.container.v1.ISetAddonsConfigRequest, + request: protos.google.container.v1.ISetAddonsConfigRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetAddonsConfigRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | undefined, {} | undefined ] >; setAddonsConfig( - request: protosTypes.google.container.v1.ISetAddonsConfigRequest, + request: protos.google.container.v1.ISetAddonsConfigRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetAddonsConfigRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, + {} | null | undefined + > + ): void; + setAddonsConfig( + request: protos.google.container.v1.ISetAddonsConfigRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1116,23 +1192,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setAddonsConfig( - request: protosTypes.google.container.v1.ISetAddonsConfigRequest, + request: protos.google.container.v1.ISetAddonsConfigRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetAddonsConfigRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetAddonsConfigRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetAddonsConfigRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | undefined, {} | undefined ] > | void { @@ -1153,25 +1229,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setAddonsConfig(request, options, callback); + return this.innerApiCalls.setAddonsConfig(request, options, callback); } setLocations( - request: protosTypes.google.container.v1.ISetLocationsRequest, + request: protos.google.container.v1.ISetLocationsRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLocationsRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLocationsRequest | undefined, {} | undefined ] >; setLocations( - request: protosTypes.google.container.v1.ISetLocationsRequest, + request: protos.google.container.v1.ISetLocationsRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLocationsRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLocationsRequest | null | undefined, + {} | null | undefined + > + ): void; + setLocations( + request: protos.google.container.v1.ISetLocationsRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLocationsRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1209,23 +1293,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setLocations( - request: protosTypes.google.container.v1.ISetLocationsRequest, + request: protos.google.container.v1.ISetLocationsRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLocationsRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLocationsRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLocationsRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLocationsRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLocationsRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLocationsRequest | undefined, {} | undefined ] > | void { @@ -1246,25 +1330,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setLocations(request, options, callback); + return this.innerApiCalls.setLocations(request, options, callback); } updateMaster( - request: protosTypes.google.container.v1.IUpdateMasterRequest, + request: protos.google.container.v1.IUpdateMasterRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateMasterRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateMasterRequest | undefined, {} | undefined ] >; updateMaster( - request: protosTypes.google.container.v1.IUpdateMasterRequest, + request: protos.google.container.v1.IUpdateMasterRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateMasterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateMasterRequest | null | undefined, + {} | null | undefined + > + ): void; + updateMaster( + request: protos.google.container.v1.IUpdateMasterRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateMasterRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1305,23 +1397,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ updateMaster( - request: protosTypes.google.container.v1.IUpdateMasterRequest, + request: protos.google.container.v1.IUpdateMasterRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateMasterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateMasterRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateMasterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateMasterRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IUpdateMasterRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateMasterRequest | undefined, {} | undefined ] > | void { @@ -1342,25 +1434,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.updateMaster(request, options, callback); + return this.innerApiCalls.updateMaster(request, options, callback); } setMasterAuth( - request: protosTypes.google.container.v1.ISetMasterAuthRequest, + request: protos.google.container.v1.ISetMasterAuthRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMasterAuthRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMasterAuthRequest | undefined, {} | undefined ] >; setMasterAuth( - request: protosTypes.google.container.v1.ISetMasterAuthRequest, + request: protos.google.container.v1.ISetMasterAuthRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMasterAuthRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMasterAuthRequest | null | undefined, + {} | null | undefined + > + ): void; + setMasterAuth( + request: protos.google.container.v1.ISetMasterAuthRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMasterAuthRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1396,23 +1496,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setMasterAuth( - request: protosTypes.google.container.v1.ISetMasterAuthRequest, + request: protos.google.container.v1.ISetMasterAuthRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMasterAuthRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMasterAuthRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMasterAuthRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMasterAuthRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMasterAuthRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMasterAuthRequest | undefined, {} | undefined ] > | void { @@ -1433,25 +1533,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setMasterAuth(request, options, callback); + return this.innerApiCalls.setMasterAuth(request, options, callback); } deleteCluster( - request: protosTypes.google.container.v1.IDeleteClusterRequest, + request: protos.google.container.v1.IDeleteClusterRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IDeleteClusterRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteClusterRequest | undefined, {} | undefined ] >; deleteCluster( - request: protosTypes.google.container.v1.IDeleteClusterRequest, + request: protos.google.container.v1.IDeleteClusterRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IDeleteClusterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteClusterRequest | null | undefined, + {} | null | undefined + > + ): void; + deleteCluster( + request: protos.google.container.v1.IDeleteClusterRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteClusterRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1489,23 +1597,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ deleteCluster( - request: protosTypes.google.container.v1.IDeleteClusterRequest, + request: protos.google.container.v1.IDeleteClusterRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IDeleteClusterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteClusterRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IDeleteClusterRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteClusterRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IDeleteClusterRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteClusterRequest | undefined, {} | undefined ] > | void { @@ -1526,25 +1634,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.deleteCluster(request, options, callback); + return this.innerApiCalls.deleteCluster(request, options, callback); } listOperations( - request: protosTypes.google.container.v1.IListOperationsRequest, + request: protos.google.container.v1.IListOperationsRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IListOperationsResponse, - protosTypes.google.container.v1.IListOperationsRequest | undefined, + protos.google.container.v1.IListOperationsResponse, + protos.google.container.v1.IListOperationsRequest | undefined, {} | undefined ] >; listOperations( - request: protosTypes.google.container.v1.IListOperationsRequest, + request: protos.google.container.v1.IListOperationsRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IListOperationsResponse, - protosTypes.google.container.v1.IListOperationsRequest | undefined, - {} | undefined + protos.google.container.v1.IListOperationsResponse, + protos.google.container.v1.IListOperationsRequest | null | undefined, + {} | null | undefined + > + ): void; + listOperations( + request: protos.google.container.v1.IListOperationsRequest, + callback: Callback< + protos.google.container.v1.IListOperationsResponse, + protos.google.container.v1.IListOperationsRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1571,23 +1687,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ listOperations( - request: protosTypes.google.container.v1.IListOperationsRequest, + request: protos.google.container.v1.IListOperationsRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IListOperationsResponse, - protosTypes.google.container.v1.IListOperationsRequest | undefined, - {} | undefined + protos.google.container.v1.IListOperationsResponse, + protos.google.container.v1.IListOperationsRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IListOperationsResponse, - protosTypes.google.container.v1.IListOperationsRequest | undefined, - {} | undefined + protos.google.container.v1.IListOperationsResponse, + protos.google.container.v1.IListOperationsRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IListOperationsResponse, - protosTypes.google.container.v1.IListOperationsRequest | undefined, + protos.google.container.v1.IListOperationsResponse, + protos.google.container.v1.IListOperationsRequest | undefined, {} | undefined ] > | void { @@ -1608,25 +1724,33 @@ export class ClusterManagerClient { parent: request.parent || '', }); this.initialize(); - return this._innerApiCalls.listOperations(request, options, callback); + return this.innerApiCalls.listOperations(request, options, callback); } getOperation( - request: protosTypes.google.container.v1.IGetOperationRequest, + request: protos.google.container.v1.IGetOperationRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IGetOperationRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IGetOperationRequest | undefined, {} | undefined ] >; getOperation( - request: protosTypes.google.container.v1.IGetOperationRequest, + request: protos.google.container.v1.IGetOperationRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IGetOperationRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IGetOperationRequest | null | undefined, + {} | null | undefined + > + ): void; + getOperation( + request: protos.google.container.v1.IGetOperationRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IGetOperationRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1656,23 +1780,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ getOperation( - request: protosTypes.google.container.v1.IGetOperationRequest, + request: protos.google.container.v1.IGetOperationRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IGetOperationRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IGetOperationRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IGetOperationRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IGetOperationRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IGetOperationRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IGetOperationRequest | undefined, {} | undefined ] > | void { @@ -1693,25 +1817,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.getOperation(request, options, callback); + return this.innerApiCalls.getOperation(request, options, callback); } cancelOperation( - request: protosTypes.google.container.v1.ICancelOperationRequest, + request: protos.google.container.v1.ICancelOperationRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.protobuf.IEmpty, - protosTypes.google.container.v1.ICancelOperationRequest | undefined, + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICancelOperationRequest | undefined, {} | undefined ] >; cancelOperation( - request: protosTypes.google.container.v1.ICancelOperationRequest, + request: protos.google.container.v1.ICancelOperationRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.protobuf.IEmpty, - protosTypes.google.container.v1.ICancelOperationRequest | undefined, - {} | undefined + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICancelOperationRequest | null | undefined, + {} | null | undefined + > + ): void; + cancelOperation( + request: protos.google.container.v1.ICancelOperationRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICancelOperationRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1740,23 +1872,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ cancelOperation( - request: protosTypes.google.container.v1.ICancelOperationRequest, + request: protos.google.container.v1.ICancelOperationRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.protobuf.IEmpty, - protosTypes.google.container.v1.ICancelOperationRequest | undefined, - {} | undefined + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICancelOperationRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.protobuf.IEmpty, - protosTypes.google.container.v1.ICancelOperationRequest | undefined, - {} | undefined + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICancelOperationRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.protobuf.IEmpty, - protosTypes.google.container.v1.ICancelOperationRequest | undefined, + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICancelOperationRequest | undefined, {} | undefined ] > | void { @@ -1777,25 +1909,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.cancelOperation(request, options, callback); + return this.innerApiCalls.cancelOperation(request, options, callback); } getServerConfig( - request: protosTypes.google.container.v1.IGetServerConfigRequest, + request: protos.google.container.v1.IGetServerConfigRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IServerConfig, - protosTypes.google.container.v1.IGetServerConfigRequest | undefined, + protos.google.container.v1.IServerConfig, + protos.google.container.v1.IGetServerConfigRequest | undefined, {} | undefined ] >; getServerConfig( - request: protosTypes.google.container.v1.IGetServerConfigRequest, + request: protos.google.container.v1.IGetServerConfigRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IServerConfig, - protosTypes.google.container.v1.IGetServerConfigRequest | undefined, - {} | undefined + protos.google.container.v1.IServerConfig, + protos.google.container.v1.IGetServerConfigRequest | null | undefined, + {} | null | undefined + > + ): void; + getServerConfig( + request: protos.google.container.v1.IGetServerConfigRequest, + callback: Callback< + protos.google.container.v1.IServerConfig, + protos.google.container.v1.IGetServerConfigRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1821,23 +1961,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ getServerConfig( - request: protosTypes.google.container.v1.IGetServerConfigRequest, + request: protos.google.container.v1.IGetServerConfigRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IServerConfig, - protosTypes.google.container.v1.IGetServerConfigRequest | undefined, - {} | undefined + protos.google.container.v1.IServerConfig, + protos.google.container.v1.IGetServerConfigRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IServerConfig, - protosTypes.google.container.v1.IGetServerConfigRequest | undefined, - {} | undefined + protos.google.container.v1.IServerConfig, + protos.google.container.v1.IGetServerConfigRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IServerConfig, - protosTypes.google.container.v1.IGetServerConfigRequest | undefined, + protos.google.container.v1.IServerConfig, + protos.google.container.v1.IGetServerConfigRequest | undefined, {} | undefined ] > | void { @@ -1858,25 +1998,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.getServerConfig(request, options, callback); + return this.innerApiCalls.getServerConfig(request, options, callback); } listNodePools( - request: protosTypes.google.container.v1.IListNodePoolsRequest, + request: protos.google.container.v1.IListNodePoolsRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IListNodePoolsResponse, - protosTypes.google.container.v1.IListNodePoolsRequest | undefined, + protos.google.container.v1.IListNodePoolsResponse, + protos.google.container.v1.IListNodePoolsRequest | undefined, {} | undefined ] >; listNodePools( - request: protosTypes.google.container.v1.IListNodePoolsRequest, + request: protos.google.container.v1.IListNodePoolsRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IListNodePoolsResponse, - protosTypes.google.container.v1.IListNodePoolsRequest | undefined, - {} | undefined + protos.google.container.v1.IListNodePoolsResponse, + protos.google.container.v1.IListNodePoolsRequest | null | undefined, + {} | null | undefined + > + ): void; + listNodePools( + request: protos.google.container.v1.IListNodePoolsRequest, + callback: Callback< + protos.google.container.v1.IListNodePoolsResponse, + protos.google.container.v1.IListNodePoolsRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1906,23 +2054,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ listNodePools( - request: protosTypes.google.container.v1.IListNodePoolsRequest, + request: protos.google.container.v1.IListNodePoolsRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IListNodePoolsResponse, - protosTypes.google.container.v1.IListNodePoolsRequest | undefined, - {} | undefined + protos.google.container.v1.IListNodePoolsResponse, + protos.google.container.v1.IListNodePoolsRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IListNodePoolsResponse, - protosTypes.google.container.v1.IListNodePoolsRequest | undefined, - {} | undefined + protos.google.container.v1.IListNodePoolsResponse, + protos.google.container.v1.IListNodePoolsRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IListNodePoolsResponse, - protosTypes.google.container.v1.IListNodePoolsRequest | undefined, + protos.google.container.v1.IListNodePoolsResponse, + protos.google.container.v1.IListNodePoolsRequest | undefined, {} | undefined ] > | void { @@ -1943,25 +2091,33 @@ export class ClusterManagerClient { parent: request.parent || '', }); this.initialize(); - return this._innerApiCalls.listNodePools(request, options, callback); + return this.innerApiCalls.listNodePools(request, options, callback); } getNodePool( - request: protosTypes.google.container.v1.IGetNodePoolRequest, + request: protos.google.container.v1.IGetNodePoolRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.INodePool, - protosTypes.google.container.v1.IGetNodePoolRequest | undefined, + protos.google.container.v1.INodePool, + protos.google.container.v1.IGetNodePoolRequest | undefined, {} | undefined ] >; getNodePool( - request: protosTypes.google.container.v1.IGetNodePoolRequest, + request: protos.google.container.v1.IGetNodePoolRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.INodePool, - protosTypes.google.container.v1.IGetNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.INodePool, + protos.google.container.v1.IGetNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; + getNodePool( + request: protos.google.container.v1.IGetNodePoolRequest, + callback: Callback< + protos.google.container.v1.INodePool, + protos.google.container.v1.IGetNodePoolRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -1995,23 +2151,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ getNodePool( - request: protosTypes.google.container.v1.IGetNodePoolRequest, + request: protos.google.container.v1.IGetNodePoolRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.INodePool, - protosTypes.google.container.v1.IGetNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.INodePool, + protos.google.container.v1.IGetNodePoolRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.INodePool, - protosTypes.google.container.v1.IGetNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.INodePool, + protos.google.container.v1.IGetNodePoolRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.INodePool, - protosTypes.google.container.v1.IGetNodePoolRequest | undefined, + protos.google.container.v1.INodePool, + protos.google.container.v1.IGetNodePoolRequest | undefined, {} | undefined ] > | void { @@ -2032,25 +2188,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.getNodePool(request, options, callback); + return this.innerApiCalls.getNodePool(request, options, callback); } createNodePool( - request: protosTypes.google.container.v1.ICreateNodePoolRequest, + request: protos.google.container.v1.ICreateNodePoolRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICreateNodePoolRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateNodePoolRequest | undefined, {} | undefined ] >; createNodePool( - request: protosTypes.google.container.v1.ICreateNodePoolRequest, + request: protos.google.container.v1.ICreateNodePoolRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICreateNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; + createNodePool( + request: protos.google.container.v1.ICreateNodePoolRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateNodePoolRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -2083,23 +2247,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ createNodePool( - request: protosTypes.google.container.v1.ICreateNodePoolRequest, + request: protos.google.container.v1.ICreateNodePoolRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICreateNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateNodePoolRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICreateNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateNodePoolRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICreateNodePoolRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateNodePoolRequest | undefined, {} | undefined ] > | void { @@ -2120,25 +2284,33 @@ export class ClusterManagerClient { parent: request.parent || '', }); this.initialize(); - return this._innerApiCalls.createNodePool(request, options, callback); + return this.innerApiCalls.createNodePool(request, options, callback); } deleteNodePool( - request: protosTypes.google.container.v1.IDeleteNodePoolRequest, + request: protos.google.container.v1.IDeleteNodePoolRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IDeleteNodePoolRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteNodePoolRequest | undefined, {} | undefined ] >; deleteNodePool( - request: protosTypes.google.container.v1.IDeleteNodePoolRequest, + request: protos.google.container.v1.IDeleteNodePoolRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IDeleteNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; + deleteNodePool( + request: protos.google.container.v1.IDeleteNodePoolRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -2172,23 +2344,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ deleteNodePool( - request: protosTypes.google.container.v1.IDeleteNodePoolRequest, + request: protos.google.container.v1.IDeleteNodePoolRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IDeleteNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IDeleteNodePoolRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IDeleteNodePoolRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteNodePoolRequest | undefined, {} | undefined ] > | void { @@ -2209,29 +2381,37 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.deleteNodePool(request, options, callback); + return this.innerApiCalls.deleteNodePool(request, options, callback); } rollbackNodePoolUpgrade( - request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest, + request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - ( - | protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest - | undefined - ), + protos.google.container.v1.IOperation, + protos.google.container.v1.IRollbackNodePoolUpgradeRequest | undefined, {} | undefined ] >; rollbackNodePoolUpgrade( - request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest, + request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - | protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest + protos.google.container.v1.IOperation, + | protos.google.container.v1.IRollbackNodePoolUpgradeRequest + | null | undefined, - {} | undefined + {} | null | undefined + > + ): void; + rollbackNodePoolUpgrade( + request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.IRollbackNodePoolUpgradeRequest + | null + | undefined, + {} | null | undefined > ): void; /** @@ -2266,28 +2446,27 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ rollbackNodePoolUpgrade( - request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest, + request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - | protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest + protos.google.container.v1.IOperation, + | protos.google.container.v1.IRollbackNodePoolUpgradeRequest + | null | undefined, - {} | undefined + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - | protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest + protos.google.container.v1.IOperation, + | protos.google.container.v1.IRollbackNodePoolUpgradeRequest + | null | undefined, - {} | undefined + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - ( - | protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest - | undefined - ), + protos.google.container.v1.IOperation, + protos.google.container.v1.IRollbackNodePoolUpgradeRequest | undefined, {} | undefined ] > | void { @@ -2308,29 +2487,41 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.rollbackNodePoolUpgrade( + return this.innerApiCalls.rollbackNodePoolUpgrade( request, options, callback ); } setNodePoolManagement( - request: protosTypes.google.container.v1.ISetNodePoolManagementRequest, + request: protos.google.container.v1.ISetNodePoolManagementRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNodePoolManagementRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolManagementRequest | undefined, {} | undefined ] >; setNodePoolManagement( - request: protosTypes.google.container.v1.ISetNodePoolManagementRequest, + request: protos.google.container.v1.ISetNodePoolManagementRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNodePoolManagementRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolManagementRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setNodePoolManagement( + request: protos.google.container.v1.ISetNodePoolManagementRequest, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolManagementRequest + | null + | undefined, + {} | null | undefined > ): void; /** @@ -2366,24 +2557,27 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setNodePoolManagement( - request: protosTypes.google.container.v1.ISetNodePoolManagementRequest, + request: protos.google.container.v1.ISetNodePoolManagementRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - | protosTypes.google.container.v1.ISetNodePoolManagementRequest + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolManagementRequest + | null | undefined, - {} | undefined + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNodePoolManagementRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolManagementRequest + | null + | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNodePoolManagementRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolManagementRequest | undefined, {} | undefined ] > | void { @@ -2404,29 +2598,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setNodePoolManagement( - request, - options, - callback - ); + return this.innerApiCalls.setNodePoolManagement(request, options, callback); } setLabels( - request: protosTypes.google.container.v1.ISetLabelsRequest, + request: protos.google.container.v1.ISetLabelsRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLabelsRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLabelsRequest | undefined, {} | undefined ] >; setLabels( - request: protosTypes.google.container.v1.ISetLabelsRequest, + request: protos.google.container.v1.ISetLabelsRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLabelsRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLabelsRequest | null | undefined, + {} | null | undefined + > + ): void; + setLabels( + request: protos.google.container.v1.ISetLabelsRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLabelsRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -2465,23 +2663,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setLabels( - request: protosTypes.google.container.v1.ISetLabelsRequest, + request: protos.google.container.v1.ISetLabelsRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLabelsRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLabelsRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLabelsRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLabelsRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLabelsRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLabelsRequest | undefined, {} | undefined ] > | void { @@ -2502,25 +2700,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setLabels(request, options, callback); + return this.innerApiCalls.setLabels(request, options, callback); } setLegacyAbac( - request: protosTypes.google.container.v1.ISetLegacyAbacRequest, + request: protos.google.container.v1.ISetLegacyAbacRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLegacyAbacRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLegacyAbacRequest | undefined, {} | undefined ] >; setLegacyAbac( - request: protosTypes.google.container.v1.ISetLegacyAbacRequest, + request: protos.google.container.v1.ISetLegacyAbacRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLegacyAbacRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, + {} | null | undefined + > + ): void; + setLegacyAbac( + request: protos.google.container.v1.ISetLegacyAbacRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -2552,23 +2758,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setLegacyAbac( - request: protosTypes.google.container.v1.ISetLegacyAbacRequest, + request: protos.google.container.v1.ISetLegacyAbacRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLegacyAbacRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLegacyAbacRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetLegacyAbacRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLegacyAbacRequest | undefined, {} | undefined ] > | void { @@ -2589,25 +2795,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setLegacyAbac(request, options, callback); + return this.innerApiCalls.setLegacyAbac(request, options, callback); } startIPRotation( - request: protosTypes.google.container.v1.IStartIPRotationRequest, + request: protos.google.container.v1.IStartIPRotationRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IStartIPRotationRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IStartIPRotationRequest | undefined, {} | undefined ] >; startIPRotation( - request: protosTypes.google.container.v1.IStartIPRotationRequest, + request: protos.google.container.v1.IStartIPRotationRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IStartIPRotationRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IStartIPRotationRequest | null | undefined, + {} | null | undefined + > + ): void; + startIPRotation( + request: protos.google.container.v1.IStartIPRotationRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IStartIPRotationRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -2639,23 +2853,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ startIPRotation( - request: protosTypes.google.container.v1.IStartIPRotationRequest, + request: protos.google.container.v1.IStartIPRotationRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IStartIPRotationRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IStartIPRotationRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IStartIPRotationRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.IStartIPRotationRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.IStartIPRotationRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.IStartIPRotationRequest | undefined, {} | undefined ] > | void { @@ -2676,25 +2890,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.startIPRotation(request, options, callback); + return this.innerApiCalls.startIPRotation(request, options, callback); } completeIPRotation( - request: protosTypes.google.container.v1.ICompleteIPRotationRequest, + request: protos.google.container.v1.ICompleteIPRotationRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICompleteIPRotationRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ICompleteIPRotationRequest | undefined, {} | undefined ] >; completeIPRotation( - request: protosTypes.google.container.v1.ICompleteIPRotationRequest, + request: protos.google.container.v1.ICompleteIPRotationRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICompleteIPRotationRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ICompleteIPRotationRequest | null | undefined, + {} | null | undefined + > + ): void; + completeIPRotation( + request: protos.google.container.v1.ICompleteIPRotationRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ICompleteIPRotationRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -2724,24 +2946,25 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ completeIPRotation( - request: protosTypes.google.container.v1.ICompleteIPRotationRequest, + request: protos.google.container.v1.ICompleteIPRotationRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - | protosTypes.google.container.v1.ICompleteIPRotationRequest + protos.google.container.v1.IOperation, + | protos.google.container.v1.ICompleteIPRotationRequest + | null | undefined, - {} | undefined + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICompleteIPRotationRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ICompleteIPRotationRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ICompleteIPRotationRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ICompleteIPRotationRequest | undefined, {} | undefined ] > | void { @@ -2762,25 +2985,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.completeIPRotation(request, options, callback); + return this.innerApiCalls.completeIPRotation(request, options, callback); } setNodePoolSize( - request: protosTypes.google.container.v1.ISetNodePoolSizeRequest, + request: protos.google.container.v1.ISetNodePoolSizeRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNodePoolSizeRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolSizeRequest | undefined, {} | undefined ] >; setNodePoolSize( - request: protosTypes.google.container.v1.ISetNodePoolSizeRequest, + request: protos.google.container.v1.ISetNodePoolSizeRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNodePoolSizeRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, + {} | null | undefined + > + ): void; + setNodePoolSize( + request: protos.google.container.v1.ISetNodePoolSizeRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -2816,23 +3047,23 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setNodePoolSize( - request: protosTypes.google.container.v1.ISetNodePoolSizeRequest, + request: protos.google.container.v1.ISetNodePoolSizeRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNodePoolSizeRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNodePoolSizeRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNodePoolSizeRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolSizeRequest | undefined, {} | undefined ] > | void { @@ -2853,25 +3084,33 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setNodePoolSize(request, options, callback); + return this.innerApiCalls.setNodePoolSize(request, options, callback); } setNetworkPolicy( - request: protosTypes.google.container.v1.ISetNetworkPolicyRequest, + request: protos.google.container.v1.ISetNetworkPolicyRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNetworkPolicyRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNetworkPolicyRequest | undefined, {} | undefined ] >; setNetworkPolicy( - request: protosTypes.google.container.v1.ISetNetworkPolicyRequest, + request: protos.google.container.v1.ISetNetworkPolicyRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNetworkPolicyRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNetworkPolicyRequest | null | undefined, + {} | null | undefined + > + ): void; + setNetworkPolicy( + request: protos.google.container.v1.ISetNetworkPolicyRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNetworkPolicyRequest | null | undefined, + {} | null | undefined > ): void; /** @@ -2903,23 +3142,25 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setNetworkPolicy( - request: protosTypes.google.container.v1.ISetNetworkPolicyRequest, + request: protos.google.container.v1.ISetNetworkPolicyRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNetworkPolicyRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNetworkPolicyRequest + | null + | undefined, + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNetworkPolicyRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNetworkPolicyRequest | null | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetNetworkPolicyRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNetworkPolicyRequest | undefined, {} | undefined ] > | void { @@ -2940,25 +3181,37 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setNetworkPolicy(request, options, callback); + return this.innerApiCalls.setNetworkPolicy(request, options, callback); } setMaintenancePolicy( - request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest, + request: protos.google.container.v1.ISetMaintenancePolicyRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMaintenancePolicyRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMaintenancePolicyRequest | undefined, {} | undefined ] >; setMaintenancePolicy( - request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest, + request: protos.google.container.v1.ISetMaintenancePolicyRequest, options: gax.CallOptions, callback: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMaintenancePolicyRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetMaintenancePolicyRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setMaintenancePolicy( + request: protos.google.container.v1.ISetMaintenancePolicyRequest, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetMaintenancePolicyRequest + | null + | undefined, + {} | null | undefined > ): void; /** @@ -2989,24 +3242,27 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ setMaintenancePolicy( - request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest, + request: protos.google.container.v1.ISetMaintenancePolicyRequest, optionsOrCallback?: | gax.CallOptions | Callback< - protosTypes.google.container.v1.IOperation, - | protosTypes.google.container.v1.ISetMaintenancePolicyRequest + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetMaintenancePolicyRequest + | null | undefined, - {} | undefined + {} | null | undefined >, callback?: Callback< - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMaintenancePolicyRequest | undefined, - {} | undefined + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetMaintenancePolicyRequest + | null + | undefined, + {} | null | undefined > ): Promise< [ - protosTypes.google.container.v1.IOperation, - protosTypes.google.container.v1.ISetMaintenancePolicyRequest | undefined, + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMaintenancePolicyRequest | undefined, {} | undefined ] > | void { @@ -3027,26 +3283,38 @@ export class ClusterManagerClient { name: request.name || '', }); this.initialize(); - return this._innerApiCalls.setMaintenancePolicy(request, options, callback); + return this.innerApiCalls.setMaintenancePolicy(request, options, callback); } listUsableSubnetworks( - request: protosTypes.google.container.v1.IListUsableSubnetworksRequest, + request: protos.google.container.v1.IListUsableSubnetworksRequest, options?: gax.CallOptions ): Promise< [ - protosTypes.google.container.v1.IUsableSubnetwork[], - protosTypes.google.container.v1.IListUsableSubnetworksRequest | null, - protosTypes.google.container.v1.IListUsableSubnetworksResponse + protos.google.container.v1.IUsableSubnetwork[], + protos.google.container.v1.IListUsableSubnetworksRequest | null, + protos.google.container.v1.IListUsableSubnetworksResponse ] >; listUsableSubnetworks( - request: protosTypes.google.container.v1.IListUsableSubnetworksRequest, + request: protos.google.container.v1.IListUsableSubnetworksRequest, options: gax.CallOptions, - callback: Callback< - protosTypes.google.container.v1.IUsableSubnetwork[], - protosTypes.google.container.v1.IListUsableSubnetworksRequest | null, - protosTypes.google.container.v1.IListUsableSubnetworksResponse + callback: PaginationCallback< + protos.google.container.v1.IListUsableSubnetworksRequest, + | protos.google.container.v1.IListUsableSubnetworksResponse + | null + | undefined, + protos.google.container.v1.IUsableSubnetwork + > + ): void; + listUsableSubnetworks( + request: protos.google.container.v1.IListUsableSubnetworksRequest, + callback: PaginationCallback< + protos.google.container.v1.IListUsableSubnetworksRequest, + | protos.google.container.v1.IListUsableSubnetworksResponse + | null + | undefined, + protos.google.container.v1.IUsableSubnetwork > ): void; /** @@ -3089,24 +3357,28 @@ export class ClusterManagerClient { * The promise has a method named "cancel" which cancels the ongoing API call. */ listUsableSubnetworks( - request: protosTypes.google.container.v1.IListUsableSubnetworksRequest, + request: protos.google.container.v1.IListUsableSubnetworksRequest, optionsOrCallback?: | gax.CallOptions - | Callback< - protosTypes.google.container.v1.IUsableSubnetwork[], - protosTypes.google.container.v1.IListUsableSubnetworksRequest | null, - protosTypes.google.container.v1.IListUsableSubnetworksResponse + | PaginationCallback< + protos.google.container.v1.IListUsableSubnetworksRequest, + | protos.google.container.v1.IListUsableSubnetworksResponse + | null + | undefined, + protos.google.container.v1.IUsableSubnetwork >, - callback?: Callback< - protosTypes.google.container.v1.IUsableSubnetwork[], - protosTypes.google.container.v1.IListUsableSubnetworksRequest | null, - protosTypes.google.container.v1.IListUsableSubnetworksResponse + callback?: PaginationCallback< + protos.google.container.v1.IListUsableSubnetworksRequest, + | protos.google.container.v1.IListUsableSubnetworksResponse + | null + | undefined, + protos.google.container.v1.IUsableSubnetwork > ): Promise< [ - protosTypes.google.container.v1.IUsableSubnetwork[], - protosTypes.google.container.v1.IListUsableSubnetworksRequest | null, - protosTypes.google.container.v1.IListUsableSubnetworksResponse + protos.google.container.v1.IUsableSubnetwork[], + protos.google.container.v1.IListUsableSubnetworksRequest | null, + protos.google.container.v1.IListUsableSubnetworksResponse ] > | void { request = request || {}; @@ -3126,11 +3398,7 @@ export class ClusterManagerClient { parent: request.parent || '', }); this.initialize(); - return this._innerApiCalls.listUsableSubnetworks( - request, - options, - callback - ); + return this.innerApiCalls.listUsableSubnetworks(request, options, callback); } /** @@ -3170,7 +3438,7 @@ export class ClusterManagerClient { * An object stream which emits an object representing [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} on 'data' event. */ listUsableSubnetworksStream( - request?: protosTypes.google.container.v1.IListUsableSubnetworksRequest, + request?: protos.google.container.v1.IListUsableSubnetworksRequest, options?: gax.CallOptions ): Transform { request = request || {}; @@ -3184,13 +3452,64 @@ export class ClusterManagerClient { }); const callSettings = new gax.CallSettings(options); this.initialize(); - return this._descriptors.page.listUsableSubnetworks.createStream( - this._innerApiCalls.listUsableSubnetworks as gax.GaxCall, + return this.descriptors.page.listUsableSubnetworks.createStream( + this.innerApiCalls.listUsableSubnetworks as gax.GaxCall, request, callSettings ); } + /** + * Equivalent to {@link listUsableSubnetworks}, but returns an iterable object. + * + * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * The parent project where subnetworks are usable. + * Specified in the format 'projects/*'. + * @param {string} request.filter + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + * @param {number} request.pageSize + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + * @param {string} request.pageToken + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + */ + listUsableSubnetworksAsync( + request?: protos.google.container.v1.IListUsableSubnetworksRequest, + options?: gax.CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + options = options || {}; + const callSettings = new gax.CallSettings(options); + this.initialize(); + return this.descriptors.page.listUsableSubnetworks.asyncIterate( + this.innerApiCalls['listUsableSubnetworks'] as GaxCall, + (request as unknown) as RequestType, + callSettings + ) as AsyncIterable; + } + /** * Terminate the GRPC channel and close the client. * diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 112a0ae6a3f..4b98c822f1a 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,23 +1,5 @@ { - "updateTime": "2020-03-22T11:18:32.073897Z", - "sources": [ - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0be7105dc52590fa9a24e784052298ae37ce53aa", - "internalRef": "302154871", - "log": "0be7105dc52590fa9a24e784052298ae37ce53aa\nAdd BUILD.bazel file to asset/v1p1beta1\n\nPiperOrigin-RevId: 302154871\n\n6c248fd13e8543f8d22cbf118d978301a9fbe2a8\nAdd missing resource annotations and additional_bindings to dialogflow v2 API.\n\nPiperOrigin-RevId: 302063117\n\n9a3a7f33be9eeacf7b3e98435816b7022d206bd7\nChange the service name from \"chromeos-moblab.googleapis.com\" to \"chromeosmoblab.googleapis.com\"\n\nPiperOrigin-RevId: 302060989\n\n98a339237577e3de26cb4921f75fb5c57cc7a19f\nfeat: devtools/build/v1 publish client library config annotations\n\n* add details field to some of the BuildEvents\n* add final_invocation_id and build_tool_exit_code fields to BuildStatus\n\nPiperOrigin-RevId: 302044087\n\ncfabc98c6bbbb22d1aeaf7612179c0be193b3a13\nfeat: home/graph/v1 publish client library config annotations & comment updates\n\nThis change includes adding the client library configuration annotations, updated proto comments, and some client library configuration files.\n\nPiperOrigin-RevId: 302042647\n\nc8c8c0bd15d082db9546253dbaad1087c7a9782c\nchore: use latest gapic-generator in bazel WORKSPACE.\nincluding the following commits from gapic-generator:\n- feat: take source protos in all sub-packages (#3144)\n\nPiperOrigin-RevId: 301843591\n\ne4daf5202ea31cb2cb6916fdbfa9d6bd771aeb4c\nAdd bazel file for v1 client lib generation\n\nPiperOrigin-RevId: 301802926\n\n275fbcce2c900278d487c33293a3c7e1fbcd3a34\nfeat: pubsub/v1 add an experimental filter field to Subscription\n\nPiperOrigin-RevId: 301661567\n\nf2b18cec51d27c999ad30011dba17f3965677e9c\nFix: UpdateBackupRequest.backup is a resource, not a resource reference - remove annotation.\n\nPiperOrigin-RevId: 301636171\n\n800384063ac93a0cac3a510d41726fa4b2cd4a83\nCloud Billing Budget API v1beta1\nModified api documentation to include warnings about the new filter field.\n\nPiperOrigin-RevId: 301634389\n\n0cc6c146b660db21f04056c3d58a4b752ee445e3\nCloud Billing Budget API v1alpha1\nModified api documentation to include warnings about the new filter field.\n\nPiperOrigin-RevId: 301630018\n\nff2ea00f69065585c3ac0993c8b582af3b6fc215\nFix: Add resource definition for a parent of InspectTemplate which was otherwise missing.\n\nPiperOrigin-RevId: 301623052\n\n55fa441c9daf03173910760191646399338f2b7c\nAdd proto definition for AccessLevel, AccessPolicy, and ServicePerimeter.\n\nPiperOrigin-RevId: 301620844\n\ne7b10591c5408a67cf14ffafa267556f3290e262\nCloud Bigtable Managed Backup service and message proto files.\n\nPiperOrigin-RevId: 301585144\n\nd8e226f702f8ddf92915128c9f4693b63fb8685d\nfeat: Add time-to-live in a queue for builds\n\nPiperOrigin-RevId: 301579876\n\n430375af011f8c7a5174884f0d0e539c6ffa7675\ndocs: add missing closing backtick\n\nPiperOrigin-RevId: 301538851\n\n0e9f1f60ded9ad1c2e725e37719112f5b487ab65\nbazel: Use latest release of gax_java\n\nPiperOrigin-RevId: 301480457\n\n5058c1c96d0ece7f5301a154cf5a07b2ad03a571\nUpdate GAPIC v2 with batching parameters for Logging API\n\nPiperOrigin-RevId: 301443847\n\n64ab9744073de81fec1b3a6a931befc8a90edf90\nFix: Introduce location-based organization/folder/billing-account resources\nChore: Update copyright years\n\nPiperOrigin-RevId: 301373760\n\n23d5f09e670ebb0c1b36214acf78704e2ecfc2ac\nUpdate field_behavior annotations in V1 and V2.\n\nPiperOrigin-RevId: 301337970\n\nb2cf37e7fd62383a811aa4d54d013ecae638851d\nData Catalog V1 API\n\nPiperOrigin-RevId: 301282503\n\n1976b9981e2900c8172b7d34b4220bdb18c5db42\nCloud DLP api update. Adds missing fields to Finding and adds support for hybrid jobs.\n\nPiperOrigin-RevId: 301205325\n\nae78682c05e864d71223ce22532219813b0245ac\nfix: several sample code blocks in comments are now properly indented for markdown\n\nPiperOrigin-RevId: 301185150\n\ndcd171d04bda5b67db13049320f97eca3ace3731\nPublish Media Translation API V1Beta1\n\nPiperOrigin-RevId: 301180096\n\nff1713453b0fbc5a7544a1ef6828c26ad21a370e\nAdd protos and BUILD rules for v1 API.\n\nPiperOrigin-RevId: 301179394\n\n8386761d09819b665b6a6e1e6d6ff884bc8ff781\nfeat: chromeos/modlab publish protos and config for Chrome OS Moblab API.\n\nPiperOrigin-RevId: 300843960\n\nb2e2bc62fab90e6829e62d3d189906d9b79899e4\nUpdates to GCS gRPC API spec:\n\n1. Changed GetIamPolicy and TestBucketIamPermissions to use wrapper messages around google.iam.v1 IAM requests messages, and added CommonRequestParams. This lets us support RequesterPays buckets.\n2. Added a metadata field to GetObjectMediaResponse, to support resuming an object media read safely (by extracting the generation of the object being read, and using it in the resumed read request).\n\nPiperOrigin-RevId: 300817706\n\n7fd916ce12335cc9e784bb9452a8602d00b2516c\nAdd deprecated_collections field for backward-compatiblity in PHP and monolith-generated Python and Ruby clients.\n\nGenerate TopicName class in Java which covers the functionality of both ProjectTopicName and DeletedTopicName. Introduce breaking changes to be fixed by synth.py.\n\nDelete default retry parameters.\n\nRetry codes defs can be deleted once # https://github.com/googleapis/gapic-generator/issues/3137 is fixed.\n\nPiperOrigin-RevId: 300813135\n\n047d3a8ac7f75383855df0166144f891d7af08d9\nfix!: google/rpc refactor ErrorInfo.type to ErrorInfo.reason and comment updates.\n\nPiperOrigin-RevId: 300773211\n\nfae4bb6d5aac52aabe5f0bb4396466c2304ea6f6\nAdding RetryPolicy to pubsub.proto\n\nPiperOrigin-RevId: 300769420\n\n7d569be2928dbd72b4e261bf9e468f23afd2b950\nAdding additional protocol buffer annotations to v3.\n\nPiperOrigin-RevId: 300718800\n\n13942d1a85a337515040a03c5108993087dc0e4f\nAdd logging protos for Recommender v1.\n\nPiperOrigin-RevId: 300689896\n\na1a573c3eecfe2c404892bfa61a32dd0c9fb22b6\nfix: change go package to use cloud.google.com/go/maps\n\nPiperOrigin-RevId: 300661825\n\nc6fbac11afa0c7ab2972d9df181493875c566f77\nfeat: publish documentai/v1beta2 protos\n\nPiperOrigin-RevId: 300656808\n\n5202a9e0d9903f49e900f20fe5c7f4e42dd6588f\nProtos for v1beta1 release of Cloud Security Center Settings API\n\nPiperOrigin-RevId: 300580858\n\n83518e18655d9d4ac044acbda063cc6ecdb63ef8\nAdds gapic.yaml file and BUILD.bazel file.\n\nPiperOrigin-RevId: 300554200\n\n836c196dc8ef8354bbfb5f30696bd3477e8db5e2\nRegenerate recommender v1beta1 gRPC ServiceConfig file for Insights methods.\n\nPiperOrigin-RevId: 300549302\n\n34a5450c591b6be3d6566f25ac31caa5211b2f3f\nIncreases the default timeout from 20s to 30s for MetricService\n\nPiperOrigin-RevId: 300474272\n\n5d8bffe87cd01ba390c32f1714230e5a95d5991d\nfeat: use the latest gapic-generator in WORKSPACE for bazel build.\n\nPiperOrigin-RevId: 300461878\n\nd631c651e3bcfac5d371e8560c27648f7b3e2364\nUpdated the GAPIC configs to include parameters for Backups APIs.\n\nPiperOrigin-RevId: 300443402\n\n678afc7055c1adea9b7b54519f3bdb228013f918\nAdding Game Servers v1beta API.\n\nPiperOrigin-RevId: 300433218\n\n80d2bd2c652a5e213302041b0620aff423132589\nEnable proto annotation and gapic v2 for talent API.\n\nPiperOrigin-RevId: 300393997\n\n85e454be7a353f7fe1bf2b0affb753305785b872\ndocs(google/maps/roads): remove mention of nonexported api\n\nPiperOrigin-RevId: 300367734\n\nbf839ae632e0f263a729569e44be4b38b1c85f9c\nAdding protocol buffer annotations and updated config info for v1 and v2.\n\nPiperOrigin-RevId: 300276913\n\n309b899ca18a4c604bce63882a161d44854da549\nPublish `Backup` APIs and protos.\n\nPiperOrigin-RevId: 300246038\n\neced64c3f122421350b4aca68a28e89121d20db8\nadd PHP client libraries\n\nPiperOrigin-RevId: 300193634\n\n7727af0e39df1ae9ad715895c8576d7b65cf6c6d\nfeat: use the latest gapic-generator and protoc-java-resource-name-plugin in googleapis/WORKSPACE.\n\nPiperOrigin-RevId: 300188410\n\n2a25aa351dd5b5fe14895266aff5824d90ce757b\nBreaking change: remove the ProjectOrTenant resource and its references.\n\nPiperOrigin-RevId: 300182152\n\na499dbb28546379415f51803505cfb6123477e71\nUpdate web risk v1 gapic config and BUILD file.\n\nPiperOrigin-RevId: 300152177\n\n52701da10fec2a5f9796e8d12518c0fe574488fe\nFix: apply appropriate namespace/package options for C#, PHP and Ruby.\n\nPiperOrigin-RevId: 300123508\n\n365c029b8cdb63f7751b92ab490f1976e616105c\nAdd CC targets to the kms protos.\n\nThese are needed by go/tink.\n\nPiperOrigin-RevId: 300038469\n\n4ba9aa8a4a1413b88dca5a8fa931824ee9c284e6\nExpose logo recognition API proto for GA.\n\nPiperOrigin-RevId: 299971671\n\n1c9fc2c9e03dadf15f16b1c4f570955bdcebe00e\nAdding ruby_package option to accessapproval.proto for the Ruby client libraries generation.\n\nPiperOrigin-RevId: 299955924\n\n1cc6f0a7bfb147e6f2ede911d9b01e7a9923b719\nbuild(google/maps/routes): generate api clients\n\nPiperOrigin-RevId: 299955905\n\n29a47c965aac79e3fe8e3314482ca0b5967680f0\nIncrease timeout to 1hr for method `dropRange` in bigtable/admin/v2, which is\nsynced with the timeout setting in gapic_yaml.\n\nPiperOrigin-RevId: 299917154\n\n8f631c4c70a60a9c7da3749511ee4ad432b62898\nbuild(google/maps/roads/v1op): move go to monorepo pattern\n\nPiperOrigin-RevId: 299885195\n\nd66816518844ebbf63504c9e8dfc7133921dd2cd\nbuild(google/maps/roads/v1op): Add bazel build files to generate clients.\n\nPiperOrigin-RevId: 299851148\n\naf7dff701fabe029672168649c62356cf1bb43d0\nAdd LogPlayerReports and LogImpressions to Playable Locations service\n\nPiperOrigin-RevId: 299724050\n\nb6927fca808f38df32a642c560082f5bf6538ced\nUpdate BigQuery Connection API v1beta1 proto: added credential to CloudSqlProperties.\n\nPiperOrigin-RevId: 299503150\n\n91e1fb5ef9829c0c7a64bfa5bde330e6ed594378\nchore: update protobuf (protoc) version to 3.11.2\n\nPiperOrigin-RevId: 299404145\n\n30e36b4bee6749c4799f4fc1a51cc8f058ba167d\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 299399890\n\nffbb493674099f265693872ae250711b2238090c\nfeat: cloudbuild/v1 add new fields and annotate OUTPUT_OUT fields.\n\nPiperOrigin-RevId: 299397780\n\nbc973a15818e00c19e121959832676e9b7607456\nbazel: Fix broken common dependency\n\nPiperOrigin-RevId: 299397431\n\n71094a343e3b962e744aa49eb9338219537474e4\nchore: bigtable/admin/v2 publish retry config\n\nPiperOrigin-RevId: 299391875\n\n8f488efd7bda33885cb674ddd023b3678c40bd82\nfeat: Migrate logging to GAPIC v2; release new features.\n\nIMPORTANT: This is a breaking change for client libraries\nin all languages.\n\nCommitter: @lukesneeringer, @jskeet\nPiperOrigin-RevId: 299370279\n\n007605bf9ad3a1fd775014ebefbf7f1e6b31ee71\nUpdate API for bigqueryreservation v1beta1.\n- Adds flex capacity commitment plan to CapacityCommitment.\n- Adds methods for getting and updating BiReservations.\n- Adds methods for updating/splitting/merging CapacityCommitments.\n\nPiperOrigin-RevId: 299368059\n\n" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "7e98e1609c91082f4eeb63b530c6468aefd18cfd" - } - } - ], + "updateTime": "2020-03-31T19:20:38.622823Z", "destinations": [ { "client": { diff --git a/packages/google-container/system-test/fixtures/sample/src/index.js b/packages/google-container/system-test/fixtures/sample/src/index.js index c65d15844fe..f2152c69f4a 100644 --- a/packages/google-container/system-test/fixtures/sample/src/index.js +++ b/packages/google-container/system-test/fixtures/sample/src/index.js @@ -16,7 +16,6 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** - /* eslint-disable node/no-missing-require, no-unused-vars */ const container = require('@google-cloud/container'); diff --git a/packages/google-container/test/gapic-cluster_manager-v1.ts b/packages/google-container/test/gapic-cluster_manager-v1.ts deleted file mode 100644 index 0569a45001f..00000000000 --- a/packages/google-container/test/gapic-cluster_manager-v1.ts +++ /dev/null @@ -1,1728 +0,0 @@ -// 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. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// 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. -// -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** -// ** All changes to this file may be overwritten. ** - -import * as protosTypes from '../protos/protos'; -import * as assert from 'assert'; -import {describe, it} from 'mocha'; -const clustermanagerModule = require('../src'); - -const FAKE_STATUS_CODE = 1; -class FakeError { - name: string; - message: string; - code: number; - constructor(n: number) { - this.name = 'fakeName'; - this.message = 'fake message'; - this.code = n; - } -} -const error = new FakeError(FAKE_STATUS_CODE); -export interface Callback { - (err: FakeError | null, response?: {} | null): void; -} - -export class Operation { - constructor() {} - promise() {} -} -function mockSimpleGrpcMethod( - expectedRequest: {}, - response: {} | null, - error: FakeError | null -) { - return (actualRequest: {}, options: {}, callback: Callback) => { - assert.deepStrictEqual(actualRequest, expectedRequest); - if (error) { - callback(error); - } else if (response) { - callback(null, response); - } else { - callback(null); - } - }; -} -describe('v1.ClusterManagerClient', () => { - it('has servicePath', () => { - const servicePath = - clustermanagerModule.v1.ClusterManagerClient.servicePath; - assert(servicePath); - }); - it('has apiEndpoint', () => { - const apiEndpoint = - clustermanagerModule.v1.ClusterManagerClient.apiEndpoint; - assert(apiEndpoint); - }); - it('has port', () => { - const port = clustermanagerModule.v1.ClusterManagerClient.port; - assert(port); - assert(typeof port === 'number'); - }); - it('should create a client with no option', () => { - const client = new clustermanagerModule.v1.ClusterManagerClient(); - assert(client); - }); - it('should create a client with gRPC fallback', () => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - fallback: true, - }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.clusterManagerStub, undefined); - await client.initialize(); - assert(client.clusterManagerStub); - }); - it('has close method', () => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.close(); - }); - describe('listClusters', () => { - it('invokes listClusters without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IListClustersRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.listClusters = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.listClusters(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes listClusters with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IListClustersRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.listClusters = mockSimpleGrpcMethod( - request, - null, - error - ); - client.listClusters(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('getCluster', () => { - it('invokes getCluster without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IGetClusterRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.getCluster = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.getCluster(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes getCluster with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IGetClusterRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.getCluster = mockSimpleGrpcMethod( - request, - null, - error - ); - client.getCluster(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('createCluster', () => { - it('invokes createCluster without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ICreateClusterRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.createCluster = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.createCluster(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes createCluster with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ICreateClusterRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.createCluster = mockSimpleGrpcMethod( - request, - null, - error - ); - client.createCluster(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('updateCluster', () => { - it('invokes updateCluster without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IUpdateClusterRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.updateCluster = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.updateCluster(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes updateCluster with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IUpdateClusterRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.updateCluster = mockSimpleGrpcMethod( - request, - null, - error - ); - client.updateCluster(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('updateNodePool', () => { - it('invokes updateNodePool without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IUpdateNodePoolRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.updateNodePool = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.updateNodePool(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes updateNodePool with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IUpdateNodePoolRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.updateNodePool = mockSimpleGrpcMethod( - request, - null, - error - ); - client.updateNodePool(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setNodePoolAutoscaling', () => { - it('invokes setNodePoolAutoscaling without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setNodePoolAutoscaling = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setNodePoolAutoscaling(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setNodePoolAutoscaling with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetNodePoolAutoscalingRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setNodePoolAutoscaling = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setNodePoolAutoscaling(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setLoggingService', () => { - it('invokes setLoggingService without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetLoggingServiceRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setLoggingService = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setLoggingService(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setLoggingService with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetLoggingServiceRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setLoggingService = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setLoggingService(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setMonitoringService', () => { - it('invokes setMonitoringService without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetMonitoringServiceRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setMonitoringService = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setMonitoringService(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setMonitoringService with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetMonitoringServiceRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setMonitoringService = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setMonitoringService(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setAddonsConfig', () => { - it('invokes setAddonsConfig without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetAddonsConfigRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setAddonsConfig = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setAddonsConfig(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setAddonsConfig with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetAddonsConfigRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setAddonsConfig = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setAddonsConfig(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setLocations', () => { - it('invokes setLocations without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetLocationsRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setLocations = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setLocations(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setLocations with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetLocationsRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setLocations = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setLocations(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('updateMaster', () => { - it('invokes updateMaster without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IUpdateMasterRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.updateMaster = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.updateMaster(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes updateMaster with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IUpdateMasterRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.updateMaster = mockSimpleGrpcMethod( - request, - null, - error - ); - client.updateMaster(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setMasterAuth', () => { - it('invokes setMasterAuth without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetMasterAuthRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setMasterAuth = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setMasterAuth(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setMasterAuth with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetMasterAuthRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setMasterAuth = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setMasterAuth(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('deleteCluster', () => { - it('invokes deleteCluster without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IDeleteClusterRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.deleteCluster = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.deleteCluster(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes deleteCluster with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IDeleteClusterRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.deleteCluster = mockSimpleGrpcMethod( - request, - null, - error - ); - client.deleteCluster(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('listOperations', () => { - it('invokes listOperations without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IListOperationsRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.listOperations = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.listOperations(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes listOperations with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IListOperationsRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.listOperations = mockSimpleGrpcMethod( - request, - null, - error - ); - client.listOperations(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('getOperation', () => { - it('invokes getOperation without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IGetOperationRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.getOperation = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.getOperation(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes getOperation with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IGetOperationRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.getOperation = mockSimpleGrpcMethod( - request, - null, - error - ); - client.getOperation(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('cancelOperation', () => { - it('invokes cancelOperation without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ICancelOperationRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.cancelOperation = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.cancelOperation(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes cancelOperation with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ICancelOperationRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.cancelOperation = mockSimpleGrpcMethod( - request, - null, - error - ); - client.cancelOperation(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('getServerConfig', () => { - it('invokes getServerConfig without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IGetServerConfigRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.getServerConfig = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.getServerConfig(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes getServerConfig with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IGetServerConfigRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.getServerConfig = mockSimpleGrpcMethod( - request, - null, - error - ); - client.getServerConfig(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('listNodePools', () => { - it('invokes listNodePools without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IListNodePoolsRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.listNodePools = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.listNodePools(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes listNodePools with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IListNodePoolsRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.listNodePools = mockSimpleGrpcMethod( - request, - null, - error - ); - client.listNodePools(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('getNodePool', () => { - it('invokes getNodePool without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IGetNodePoolRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.getNodePool = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.getNodePool(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes getNodePool with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IGetNodePoolRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.getNodePool = mockSimpleGrpcMethod( - request, - null, - error - ); - client.getNodePool(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('createNodePool', () => { - it('invokes createNodePool without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ICreateNodePoolRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.createNodePool = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.createNodePool(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes createNodePool with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ICreateNodePoolRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.createNodePool = mockSimpleGrpcMethod( - request, - null, - error - ); - client.createNodePool(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('deleteNodePool', () => { - it('invokes deleteNodePool without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IDeleteNodePoolRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.deleteNodePool = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.deleteNodePool(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes deleteNodePool with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IDeleteNodePoolRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.deleteNodePool = mockSimpleGrpcMethod( - request, - null, - error - ); - client.deleteNodePool(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('rollbackNodePoolUpgrade', () => { - it('invokes rollbackNodePoolUpgrade without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.rollbackNodePoolUpgrade = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.rollbackNodePoolUpgrade(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes rollbackNodePoolUpgrade with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IRollbackNodePoolUpgradeRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.rollbackNodePoolUpgrade = mockSimpleGrpcMethod( - request, - null, - error - ); - client.rollbackNodePoolUpgrade( - request, - (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - } - ); - }); - }); - describe('setNodePoolManagement', () => { - it('invokes setNodePoolManagement without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetNodePoolManagementRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setNodePoolManagement = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setNodePoolManagement(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setNodePoolManagement with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetNodePoolManagementRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setNodePoolManagement = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setNodePoolManagement(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setLabels', () => { - it('invokes setLabels without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetLabelsRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setLabels = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setLabels(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setLabels with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetLabelsRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setLabels = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setLabels(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setLegacyAbac', () => { - it('invokes setLegacyAbac without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetLegacyAbacRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setLegacyAbac = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setLegacyAbac(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setLegacyAbac with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetLegacyAbacRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setLegacyAbac = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setLegacyAbac(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('startIPRotation', () => { - it('invokes startIPRotation without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IStartIPRotationRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.startIPRotation = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.startIPRotation(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes startIPRotation with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IStartIPRotationRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.startIPRotation = mockSimpleGrpcMethod( - request, - null, - error - ); - client.startIPRotation(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('completeIPRotation', () => { - it('invokes completeIPRotation without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ICompleteIPRotationRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.completeIPRotation = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.completeIPRotation(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes completeIPRotation with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ICompleteIPRotationRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.completeIPRotation = mockSimpleGrpcMethod( - request, - null, - error - ); - client.completeIPRotation(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setNodePoolSize', () => { - it('invokes setNodePoolSize without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetNodePoolSizeRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setNodePoolSize = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setNodePoolSize(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setNodePoolSize with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetNodePoolSizeRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setNodePoolSize = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setNodePoolSize(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setNetworkPolicy', () => { - it('invokes setNetworkPolicy without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetNetworkPolicyRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setNetworkPolicy = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setNetworkPolicy(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setNetworkPolicy with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetNetworkPolicyRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setNetworkPolicy = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setNetworkPolicy(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('setMaintenancePolicy', () => { - it('invokes setMaintenancePolicy without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setMaintenancePolicy = mockSimpleGrpcMethod( - request, - expectedResponse, - null - ); - client.setMaintenancePolicy(request, (err: {}, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - - it('invokes setMaintenancePolicy with error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.ISetMaintenancePolicyRequest = {}; - request.name = ''; - // Mock response - const expectedResponse = {}; - // Mock gRPC layer - client._innerApiCalls.setMaintenancePolicy = mockSimpleGrpcMethod( - request, - null, - error - ); - client.setMaintenancePolicy(request, (err: FakeError, response: {}) => { - assert(err instanceof FakeError); - assert.strictEqual(err.code, FAKE_STATUS_CODE); - assert(typeof response === 'undefined'); - done(); - }); - }); - }); - describe('listUsableSubnetworks', () => { - it('invokes listUsableSubnetworks without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IListUsableSubnetworksRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {}; - // Mock Grpc layer - client._innerApiCalls.listUsableSubnetworks = ( - actualRequest: {}, - options: {}, - callback: Callback - ) => { - assert.deepStrictEqual(actualRequest, request); - callback(null, expectedResponse); - }; - client.listUsableSubnetworks(request, (err: FakeError, response: {}) => { - assert.ifError(err); - assert.deepStrictEqual(response, expectedResponse); - done(); - }); - }); - }); - describe('listUsableSubnetworksStream', () => { - it('invokes listUsableSubnetworksStream without error', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - // Initialize client before mocking - client.initialize(); - // Mock request - const request: protosTypes.google.container.v1.IListUsableSubnetworksRequest = {}; - request.parent = ''; - // Mock response - const expectedResponse = {response: 'data'}; - // Mock Grpc layer - client._innerApiCalls.listUsableSubnetworks = ( - actualRequest: {}, - options: {}, - callback: Callback - ) => { - assert.deepStrictEqual(actualRequest, request); - callback(null, expectedResponse); - }; - const stream = client - .listUsableSubnetworksStream(request, {}) - .on('data', (response: {}) => { - assert.deepStrictEqual(response, expectedResponse); - done(); - }) - .on('error', (err: FakeError) => { - done(err); - }); - stream.write(expectedResponse); - }); - }); -}); diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts new file mode 100644 index 00000000000..1e8461d1ac9 --- /dev/null +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -0,0 +1,3949 @@ +// 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. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + +import * as protos from '../protos/protos'; +import * as assert from 'assert'; +import * as sinon from 'sinon'; +import {SinonStub} from 'sinon'; +import {describe, it} from 'mocha'; +import * as clustermanagerModule from '../src'; + +import {PassThrough} from 'stream'; + +import {protobuf} from 'google-gax'; + +function generateSampleMessage(instance: T) { + const filledObject = (instance.constructor as typeof protobuf.Message).toObject( + instance as protobuf.Message, + {defaults: true} + ); + return (instance.constructor as typeof protobuf.Message).fromObject( + filledObject + ) as T; +} + +function stubSimpleCall(response?: ResponseType, error?: Error) { + return error + ? sinon.stub().rejects(error) + : sinon.stub().resolves([response]); +} + +function stubSimpleCallWithCallback( + response?: ResponseType, + error?: Error +) { + return error + ? sinon.stub().callsArgWith(2, error) + : sinon.stub().callsArgWith(2, null, response); +} + +function stubPageStreamingCall( + responses?: ResponseType[], + error?: Error +) { + const pagingStub = sinon.stub(); + if (responses) { + for (let i = 0; i < responses.length; ++i) { + pagingStub.onCall(i).callsArgWith(2, null, responses[i]); + } + } + const transformStub = error + ? sinon.stub().callsArgWith(2, error) + : pagingStub; + const mockStream = new PassThrough({ + objectMode: true, + transform: transformStub, + }); + // trigger as many responses as needed + if (responses) { + for (let i = 0; i < responses.length; ++i) { + setImmediate(() => { + mockStream.write({}); + }); + } + setImmediate(() => { + mockStream.end(); + }); + } else { + setImmediate(() => { + mockStream.write({}); + }); + setImmediate(() => { + mockStream.end(); + }); + } + return sinon.stub().returns(mockStream); +} + +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + +describe('v1.ClusterManagerClient', () => { + it('has servicePath', () => { + const servicePath = + clustermanagerModule.v1.ClusterManagerClient.servicePath; + assert(servicePath); + }); + + it('has apiEndpoint', () => { + const apiEndpoint = + clustermanagerModule.v1.ClusterManagerClient.apiEndpoint; + assert(apiEndpoint); + }); + + it('has port', () => { + const port = clustermanagerModule.v1.ClusterManagerClient.port; + assert(port); + assert(typeof port === 'number'); + }); + + it('should create a client with no option', () => { + const client = new clustermanagerModule.v1.ClusterManagerClient(); + assert(client); + }); + + it('should create a client with gRPC fallback', () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + fallback: true, + }); + assert(client); + }); + + it('has initialize method and supports deferred initialization', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.clusterManagerStub, undefined); + await client.initialize(); + assert(client.clusterManagerStub); + }); + + it('has close method', () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.close(); + }); + + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); + }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + + describe('listClusters', () => { + it('invokes listClusters without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListClustersRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.ListClustersResponse() + ); + client.innerApiCalls.listClusters = stubSimpleCall(expectedResponse); + const [response] = await client.listClusters(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listClusters as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listClusters without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListClustersRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.ListClustersResponse() + ); + client.innerApiCalls.listClusters = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listClusters( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IListClustersResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listClusters as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listClusters with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListClustersRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listClusters = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.listClusters(request); + }, expectedError); + assert( + (client.innerApiCalls.listClusters as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getCluster', () => { + it('invokes getCluster without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetClusterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Cluster() + ); + client.innerApiCalls.getCluster = stubSimpleCall(expectedResponse); + const [response] = await client.getCluster(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getCluster without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetClusterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Cluster() + ); + client.innerApiCalls.getCluster = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getCluster( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.ICluster | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getCluster with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetClusterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getCluster = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.getCluster(request); + }, expectedError); + assert( + (client.innerApiCalls.getCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createCluster', () => { + it('invokes createCluster without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CreateClusterRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.createCluster = stubSimpleCall(expectedResponse); + const [response] = await client.createCluster(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createCluster without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CreateClusterRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.createCluster = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.createCluster( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createCluster with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CreateClusterRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createCluster = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.createCluster(request); + }, expectedError); + assert( + (client.innerApiCalls.createCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateCluster', () => { + it('invokes updateCluster without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateClusterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.updateCluster = stubSimpleCall(expectedResponse); + const [response] = await client.updateCluster(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateCluster without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateClusterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.updateCluster = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateCluster( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateCluster with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateClusterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateCluster = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.updateCluster(request); + }, expectedError); + assert( + (client.innerApiCalls.updateCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateNodePool', () => { + it('invokes updateNodePool without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateNodePoolRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.updateNodePool = stubSimpleCall(expectedResponse); + const [response] = await client.updateNodePool(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateNodePool without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateNodePoolRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.updateNodePool = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateNodePool( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateNodePool with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateNodePoolRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateNodePool = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.updateNodePool(request); + }, expectedError); + assert( + (client.innerApiCalls.updateNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setNodePoolAutoscaling', () => { + it('invokes setNodePoolAutoscaling without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolAutoscalingRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setNodePoolAutoscaling = stubSimpleCall( + expectedResponse + ); + const [response] = await client.setNodePoolAutoscaling(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setNodePoolAutoscaling as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setNodePoolAutoscaling without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolAutoscalingRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setNodePoolAutoscaling = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setNodePoolAutoscaling( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setNodePoolAutoscaling as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setNodePoolAutoscaling with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolAutoscalingRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setNodePoolAutoscaling = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setNodePoolAutoscaling(request); + }, expectedError); + assert( + (client.innerApiCalls.setNodePoolAutoscaling as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setLoggingService', () => { + it('invokes setLoggingService without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLoggingServiceRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setLoggingService = stubSimpleCall(expectedResponse); + const [response] = await client.setLoggingService(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setLoggingService as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setLoggingService without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLoggingServiceRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setLoggingService = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setLoggingService( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setLoggingService as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setLoggingService with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLoggingServiceRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setLoggingService = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setLoggingService(request); + }, expectedError); + assert( + (client.innerApiCalls.setLoggingService as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setMonitoringService', () => { + it('invokes setMonitoringService without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMonitoringServiceRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setMonitoringService = stubSimpleCall( + expectedResponse + ); + const [response] = await client.setMonitoringService(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setMonitoringService as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setMonitoringService without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMonitoringServiceRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setMonitoringService = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setMonitoringService( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setMonitoringService as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setMonitoringService with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMonitoringServiceRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setMonitoringService = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setMonitoringService(request); + }, expectedError); + assert( + (client.innerApiCalls.setMonitoringService as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setAddonsConfig', () => { + it('invokes setAddonsConfig without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetAddonsConfigRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setAddonsConfig = stubSimpleCall(expectedResponse); + const [response] = await client.setAddonsConfig(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setAddonsConfig as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setAddonsConfig without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetAddonsConfigRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setAddonsConfig = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setAddonsConfig( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setAddonsConfig as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setAddonsConfig with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetAddonsConfigRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setAddonsConfig = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setAddonsConfig(request); + }, expectedError); + assert( + (client.innerApiCalls.setAddonsConfig as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setLocations', () => { + it('invokes setLocations without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setLocations = stubSimpleCall(expectedResponse); + const [response] = await client.setLocations(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setLocations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setLocations without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setLocations = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setLocations( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setLocations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setLocations with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setLocations = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setLocations(request); + }, expectedError); + assert( + (client.innerApiCalls.setLocations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('updateMaster', () => { + it('invokes updateMaster without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateMasterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.updateMaster = stubSimpleCall(expectedResponse); + const [response] = await client.updateMaster(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateMaster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes updateMaster without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateMasterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.updateMaster = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.updateMaster( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.updateMaster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes updateMaster with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateMasterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.updateMaster = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.updateMaster(request); + }, expectedError); + assert( + (client.innerApiCalls.updateMaster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setMasterAuth', () => { + it('invokes setMasterAuth without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMasterAuthRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setMasterAuth = stubSimpleCall(expectedResponse); + const [response] = await client.setMasterAuth(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setMasterAuth as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setMasterAuth without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMasterAuthRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setMasterAuth = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setMasterAuth( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setMasterAuth as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setMasterAuth with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMasterAuthRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setMasterAuth = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setMasterAuth(request); + }, expectedError); + assert( + (client.innerApiCalls.setMasterAuth as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteCluster', () => { + it('invokes deleteCluster without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.DeleteClusterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.deleteCluster = stubSimpleCall(expectedResponse); + const [response] = await client.deleteCluster(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteCluster without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.DeleteClusterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.deleteCluster = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteCluster( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteCluster with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.DeleteClusterRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteCluster = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.deleteCluster(request); + }, expectedError); + assert( + (client.innerApiCalls.deleteCluster as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('listOperations', () => { + it('invokes listOperations without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListOperationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.ListOperationsResponse() + ); + client.innerApiCalls.listOperations = stubSimpleCall(expectedResponse); + const [response] = await client.listOperations(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listOperations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listOperations without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListOperationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.ListOperationsResponse() + ); + client.innerApiCalls.listOperations = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listOperations( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IListOperationsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listOperations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listOperations with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListOperationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listOperations = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.listOperations(request); + }, expectedError); + assert( + (client.innerApiCalls.listOperations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetOperationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.getOperation = stubSimpleCall(expectedResponse); + const [response] = await client.getOperation(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getOperation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getOperation without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetOperationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.getOperation = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getOperation( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getOperation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getOperation with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetOperationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getOperation = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.innerApiCalls.getOperation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CancelOperationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.cancelOperation = stubSimpleCall(expectedResponse); + const [response] = await client.cancelOperation(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes cancelOperation without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CancelOperationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.cancelOperation = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.cancelOperation( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes cancelOperation with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CancelOperationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.innerApiCalls.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getServerConfig', () => { + it('invokes getServerConfig without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetServerConfigRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.ServerConfig() + ); + client.innerApiCalls.getServerConfig = stubSimpleCall(expectedResponse); + const [response] = await client.getServerConfig(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getServerConfig as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getServerConfig without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetServerConfigRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.ServerConfig() + ); + client.innerApiCalls.getServerConfig = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getServerConfig( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IServerConfig | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getServerConfig as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getServerConfig with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetServerConfigRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getServerConfig = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.getServerConfig(request); + }, expectedError); + assert( + (client.innerApiCalls.getServerConfig as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('listNodePools', () => { + it('invokes listNodePools without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListNodePoolsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.ListNodePoolsResponse() + ); + client.innerApiCalls.listNodePools = stubSimpleCall(expectedResponse); + const [response] = await client.listNodePools(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listNodePools as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listNodePools without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListNodePoolsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.ListNodePoolsResponse() + ); + client.innerApiCalls.listNodePools = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listNodePools( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IListNodePoolsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listNodePools as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listNodePools with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListNodePoolsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listNodePools = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.listNodePools(request); + }, expectedError); + assert( + (client.innerApiCalls.listNodePools as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('getNodePool', () => { + it('invokes getNodePool without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetNodePoolRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.NodePool() + ); + client.innerApiCalls.getNodePool = stubSimpleCall(expectedResponse); + const [response] = await client.getNodePool(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getNodePool without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetNodePoolRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.NodePool() + ); + client.innerApiCalls.getNodePool = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getNodePool( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.INodePool | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getNodePool with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetNodePoolRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getNodePool = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.getNodePool(request); + }, expectedError); + assert( + (client.innerApiCalls.getNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('createNodePool', () => { + it('invokes createNodePool without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CreateNodePoolRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.createNodePool = stubSimpleCall(expectedResponse); + const [response] = await client.createNodePool(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes createNodePool without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CreateNodePoolRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.createNodePool = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.createNodePool( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.createNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes createNodePool with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CreateNodePoolRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.createNodePool = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.createNodePool(request); + }, expectedError); + assert( + (client.innerApiCalls.createNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('deleteNodePool', () => { + it('invokes deleteNodePool without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.DeleteNodePoolRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.deleteNodePool = stubSimpleCall(expectedResponse); + const [response] = await client.deleteNodePool(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes deleteNodePool without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.DeleteNodePoolRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.deleteNodePool = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.deleteNodePool( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.deleteNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes deleteNodePool with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.DeleteNodePoolRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.deleteNodePool = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.deleteNodePool(request); + }, expectedError); + assert( + (client.innerApiCalls.deleteNodePool as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('rollbackNodePoolUpgrade', () => { + it('invokes rollbackNodePoolUpgrade without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.RollbackNodePoolUpgradeRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.rollbackNodePoolUpgrade = stubSimpleCall( + expectedResponse + ); + const [response] = await client.rollbackNodePoolUpgrade(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes rollbackNodePoolUpgrade without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.RollbackNodePoolUpgradeRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.rollbackNodePoolUpgrade = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.rollbackNodePoolUpgrade( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes rollbackNodePoolUpgrade with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.RollbackNodePoolUpgradeRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.rollbackNodePoolUpgrade = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.rollbackNodePoolUpgrade(request); + }, expectedError); + assert( + (client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setNodePoolManagement', () => { + it('invokes setNodePoolManagement without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolManagementRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setNodePoolManagement = stubSimpleCall( + expectedResponse + ); + const [response] = await client.setNodePoolManagement(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setNodePoolManagement as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setNodePoolManagement without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolManagementRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setNodePoolManagement = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setNodePoolManagement( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setNodePoolManagement as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setNodePoolManagement with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolManagementRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setNodePoolManagement = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setNodePoolManagement(request); + }, expectedError); + assert( + (client.innerApiCalls.setNodePoolManagement as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setLabels', () => { + it('invokes setLabels without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLabelsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setLabels = stubSimpleCall(expectedResponse); + const [response] = await client.setLabels(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setLabels as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setLabels without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLabelsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setLabels = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setLabels( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setLabels as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setLabels with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLabelsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setLabels = stubSimpleCall(undefined, expectedError); + assert.rejects(async () => { + await client.setLabels(request); + }, expectedError); + assert( + (client.innerApiCalls.setLabels as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setLegacyAbac', () => { + it('invokes setLegacyAbac without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLegacyAbacRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setLegacyAbac = stubSimpleCall(expectedResponse); + const [response] = await client.setLegacyAbac(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setLegacyAbac as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setLegacyAbac without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLegacyAbacRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setLegacyAbac = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setLegacyAbac( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setLegacyAbac as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setLegacyAbac with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLegacyAbacRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setLegacyAbac = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setLegacyAbac(request); + }, expectedError); + assert( + (client.innerApiCalls.setLegacyAbac as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('startIPRotation', () => { + it('invokes startIPRotation without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.StartIPRotationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.startIPRotation = stubSimpleCall(expectedResponse); + const [response] = await client.startIPRotation(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.startIPRotation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes startIPRotation without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.StartIPRotationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.startIPRotation = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.startIPRotation( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.startIPRotation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes startIPRotation with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.StartIPRotationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.startIPRotation = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.startIPRotation(request); + }, expectedError); + assert( + (client.innerApiCalls.startIPRotation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('completeIPRotation', () => { + it('invokes completeIPRotation without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CompleteIPRotationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.completeIPRotation = stubSimpleCall( + expectedResponse + ); + const [response] = await client.completeIPRotation(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.completeIPRotation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes completeIPRotation without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CompleteIPRotationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.completeIPRotation = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.completeIPRotation( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.completeIPRotation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes completeIPRotation with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CompleteIPRotationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.completeIPRotation = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.completeIPRotation(request); + }, expectedError); + assert( + (client.innerApiCalls.completeIPRotation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setNodePoolSize', () => { + it('invokes setNodePoolSize without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolSizeRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setNodePoolSize = stubSimpleCall(expectedResponse); + const [response] = await client.setNodePoolSize(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setNodePoolSize as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setNodePoolSize without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolSizeRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setNodePoolSize = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setNodePoolSize( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setNodePoolSize as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setNodePoolSize with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolSizeRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setNodePoolSize = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setNodePoolSize(request); + }, expectedError); + assert( + (client.innerApiCalls.setNodePoolSize as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setNetworkPolicy', () => { + it('invokes setNetworkPolicy without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNetworkPolicyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setNetworkPolicy = stubSimpleCall(expectedResponse); + const [response] = await client.setNetworkPolicy(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setNetworkPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setNetworkPolicy without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNetworkPolicyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setNetworkPolicy = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setNetworkPolicy( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setNetworkPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setNetworkPolicy with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNetworkPolicyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setNetworkPolicy = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setNetworkPolicy(request); + }, expectedError); + assert( + (client.innerApiCalls.setNetworkPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('setMaintenancePolicy', () => { + it('invokes setMaintenancePolicy without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMaintenancePolicyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setMaintenancePolicy = stubSimpleCall( + expectedResponse + ); + const [response] = await client.setMaintenancePolicy(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setMaintenancePolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes setMaintenancePolicy without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMaintenancePolicyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.Operation() + ); + client.innerApiCalls.setMaintenancePolicy = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.setMaintenancePolicy( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IOperation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.setMaintenancePolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes setMaintenancePolicy with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMaintenancePolicyRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.setMaintenancePolicy = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.setMaintenancePolicy(request); + }, expectedError); + assert( + (client.innerApiCalls.setMaintenancePolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + + describe('listUsableSubnetworks', () => { + it('invokes listUsableSubnetworks without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListUsableSubnetworksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + ]; + client.innerApiCalls.listUsableSubnetworks = stubSimpleCall( + expectedResponse + ); + const [response] = await client.listUsableSubnetworks(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listUsableSubnetworks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listUsableSubnetworks without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListUsableSubnetworksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + ]; + client.innerApiCalls.listUsableSubnetworks = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.listUsableSubnetworks( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IUsableSubnetwork[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listUsableSubnetworks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listUsableSubnetworks with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListUsableSubnetworksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listUsableSubnetworks = stubSimpleCall( + undefined, + expectedError + ); + assert.rejects(async () => { + await client.listUsableSubnetworks(request); + }, expectedError); + assert( + (client.innerApiCalls.listUsableSubnetworks as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listUsableSubnetworksStream without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListUsableSubnetworksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + ]; + client.descriptors.page.listUsableSubnetworks.createStream = stubPageStreamingCall( + expectedResponse + ); + const stream = client.listUsableSubnetworksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.container.v1.UsableSubnetwork[] = []; + stream.on( + 'data', + (response: protos.google.container.v1.UsableSubnetwork) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listUsableSubnetworks + .createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listUsableSubnetworks, request) + ); + assert.strictEqual( + (client.descriptors.page.listUsableSubnetworks + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('invokes listUsableSubnetworksStream with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListUsableSubnetworksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listUsableSubnetworks.createStream = stubPageStreamingCall( + undefined, + expectedError + ); + const stream = client.listUsableSubnetworksStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.container.v1.UsableSubnetwork[] = []; + stream.on( + 'data', + (response: protos.google.container.v1.UsableSubnetwork) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + assert.rejects(async () => { + await promise; + }, expectedError); + assert( + (client.descriptors.page.listUsableSubnetworks + .createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listUsableSubnetworks, request) + ); + assert.strictEqual( + (client.descriptors.page.listUsableSubnetworks + .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listUsableSubnetworks without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListUsableSubnetworksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + generateSampleMessage( + new protos.google.container.v1.UsableSubnetwork() + ), + ]; + client.descriptors.page.listUsableSubnetworks.asyncIterate = stubAsyncIterationCall( + expectedResponse + ); + const responses: protos.google.container.v1.IUsableSubnetwork[] = []; + const iterable = client.listUsableSubnetworksAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + (client.descriptors.page.listUsableSubnetworks + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listUsableSubnetworks + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listUsableSubnetworks with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListUsableSubnetworksRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listUsableSubnetworks.asyncIterate = stubAsyncIterationCall( + undefined, + expectedError + ); + const iterable = client.listUsableSubnetworksAsync(request); + assert.rejects(async () => { + const responses: protos.google.container.v1.IUsableSubnetwork[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + (client.descriptors.page.listUsableSubnetworks + .asyncIterate as SinonStub).getCall(0).args[1], + request + ); + assert.strictEqual( + (client.descriptors.page.listUsableSubnetworks + .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ + 'x-goog-request-params' + ], + expectedHeaderRequestParams + ); + }); + }); +}); diff --git a/packages/google-container/webpack.config.js b/packages/google-container/webpack.config.js index e8df8bfbb15..211748f1ad3 100644 --- a/packages/google-container/webpack.config.js +++ b/packages/google-container/webpack.config.js @@ -36,27 +36,27 @@ module.exports = { { test: /\.tsx?$/, use: 'ts-loader', - exclude: /node_modules/ + exclude: /node_modules/, }, { test: /node_modules[\\/]@grpc[\\/]grpc-js/, - use: 'null-loader' + use: 'null-loader', }, { test: /node_modules[\\/]grpc/, - use: 'null-loader' + use: 'null-loader', }, { test: /node_modules[\\/]retry-request/, - use: 'null-loader' + use: 'null-loader', }, { test: /node_modules[\\/]https?-proxy-agent/, - use: 'null-loader' + use: 'null-loader', }, { test: /node_modules[\\/]gtoken/, - use: 'null-loader' + use: 'null-loader', }, ], }, From 968147df3f8f4631a1f95c62bed8ef549eafbf48 Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Tue, 31 Mar 2020 18:35:35 -0700 Subject: [PATCH 197/371] build: set AUTOSYNTH_MULTIPLE_COMMITS=true for context aware commits (#320) --- packages/google-container/synth.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index 39349e78150..ff2a71119b9 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -5,6 +5,9 @@ logging.basicConfig(level=logging.DEBUG) +AUTOSYNTH_MULTIPLE_COMMITS = True + + # Run the gapic generator gapic = gcp.GAPICMicrogenerator() version = 'v1' From dd5bb1413949f5ff08f44e62e921fea8a1a915c6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Apr 2020 23:35:06 +0200 Subject: [PATCH 198/371] chore(deps): update dependency @types/sinon to v9 (#321) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@types/sinon](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | devDependencies | major | [`^7.5.2` -> `^9.0.0`](https://renovatebot.com/diffs/npm/@types%2fsinon/7.5.2/9.0.0) | --- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 74a02587384..14ad585f551 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -47,7 +47,7 @@ "devDependencies": { "@types/mocha": "^7.0.0", "@types/node": "^12.0.0", - "@types/sinon": "^7.5.2", + "@types/sinon": "^9.0.0", "c8": "^7.0.0", "eslint": "^6.0.0", "eslint-config-prettier": "^6.0.0", From bff1f16a5e2edf175d453952e9d572c1a3c1897a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 2 Apr 2020 11:34:46 -0700 Subject: [PATCH 199/371] fix(test): don't assign unused variable (#323) --- .../src/v1/cluster_manager_client.ts | 2 +- packages/google-container/synth.metadata | 19 ++++++++++++++++++- .../system-test/fixtures/sample/src/index.ts | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index f5712fe86f9..5a76c298024 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -18,12 +18,12 @@ import * as gax from 'google-gax'; import { - GaxCall, Callback, CallOptions, Descriptors, ClientOptions, PaginationCallback, + GaxCall, } from 'google-gax'; import * as path from 'path'; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 4b98c822f1a..acd833a78d8 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,5 +1,22 @@ { - "updateTime": "2020-03-31T19:20:38.622823Z", + "updateTime": "2020-04-02T11:19:01.162648Z", + "sources": [ + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "75047719f704d61f405cac6d7439637ab36c1232", + "internalRef": "304305096" + } + }, + { + "git": { + "name": "synthtool", + "remote": "https://github.com/googleapis/synthtool.git", + "sha": "99820243d348191bc9c634f2b48ddf65096285ed" + } + } + ], "destinations": [ { "client": { diff --git a/packages/google-container/system-test/fixtures/sample/src/index.ts b/packages/google-container/system-test/fixtures/sample/src/index.ts index 12d6ce7d8dc..0a1fe874cec 100644 --- a/packages/google-container/system-test/fixtures/sample/src/index.ts +++ b/packages/google-container/system-test/fixtures/sample/src/index.ts @@ -19,7 +19,7 @@ import {ClusterManagerClient} from '@google-cloud/container'; function main() { - const clusterManagerClient = new ClusterManagerClient(); + new ClusterManagerClient(); } main(); From 4a13086057916dca294c14a58501d1a8e28d7ece Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sun, 5 Apr 2020 12:46:29 -0700 Subject: [PATCH 200/371] chore: remove duplicate mocha config (#325) --- packages/google-container/.mocharc.json | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 packages/google-container/.mocharc.json diff --git a/packages/google-container/.mocharc.json b/packages/google-container/.mocharc.json deleted file mode 100644 index 670c5e2c24b..00000000000 --- a/packages/google-container/.mocharc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "enable-source-maps": true, - "throw-deprecation": true, - "timeout": 10000 -} From bea8bac9f8c363ac4c6a0e4c3eac0e9d18803e23 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 7 Apr 2020 00:10:59 -0700 Subject: [PATCH 201/371] fix: export explicit version from protos.js (#324) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/1630485f-7526-4afd-9c13-b5660664d6a2/targets --- packages/google-container/protos/protos.js | 2 +- packages/google-container/synth.metadata | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index debda015df0..c44e442bd9a 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -28,7 +28,7 @@ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; // Exported root namespace - var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); + var $root = $protobuf.roots._google_cloud_container_1_7_0_protos || ($protobuf.roots._google_cloud_container_1_7_0_protos = {}); $root.google = (function() { diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index acd833a78d8..99a8c6caff7 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2020-04-02T11:19:01.162648Z", + "updateTime": "2020-04-03T11:24:40.097420Z", "sources": [ { "git": { From a850837e005d9e8e33e4c4d55fa41be304ef44a1 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 8 Apr 2020 13:34:07 -0700 Subject: [PATCH 202/371] test: await assert.rejects (#326) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/9c94202f-63a5-4df0-9d76-871a00f99b85/targets --- packages/google-container/.jsdoc.js | 2 +- packages/google-container/.mocharc.json | 5 ++ packages/google-container/.prettierrc.js | 2 +- packages/google-container/synth.metadata | 10 +-- .../test/gapic_cluster_manager_v1.ts | 66 +++++++++---------- 5 files changed, 46 insertions(+), 39 deletions(-) create mode 100644 packages/google-container/.mocharc.json diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index fcdbbd238cb..cd4bac566a3 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2019 Google, LLC.', + copyright: 'Copyright 2020 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/container', diff --git a/packages/google-container/.mocharc.json b/packages/google-container/.mocharc.json new file mode 100644 index 00000000000..670c5e2c24b --- /dev/null +++ b/packages/google-container/.mocharc.json @@ -0,0 +1,5 @@ +{ + "enable-source-maps": true, + "throw-deprecation": true, + "timeout": 10000 +} diff --git a/packages/google-container/.prettierrc.js b/packages/google-container/.prettierrc.js index 08cba3775be..d1b95106f4c 100644 --- a/packages/google-container/.prettierrc.js +++ b/packages/google-container/.prettierrc.js @@ -4,7 +4,7 @@ // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 99a8c6caff7..d23f8c067c6 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,19 +1,21 @@ { - "updateTime": "2020-04-03T11:24:40.097420Z", + "updateTime": "2020-04-07T12:01:18.363962Z", "sources": [ { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "75047719f704d61f405cac6d7439637ab36c1232", - "internalRef": "304305096" + "sha": "823facb4ca6a4b36b817ce955a790dcb40cf808f", + "internalRef": "305155214", + "log": "823facb4ca6a4b36b817ce955a790dcb40cf808f\nchore: enable gapicv2 for videointelligence/v1p3beta1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305155214\n\n6b9c969d42bcb0f8206675bd868ed7d1ddcdaef9\nAdd API for bigqueryreservation v1.\n\nPiperOrigin-RevId: 305151484\n\n514f7d27811832a9f58b83d6f6305d894b097cf6\nchore: enable gapicv2 for phishingprotection/v1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305126983\n\nff74d47d47280e6bbcbad1a7c82b1e0959c472ec\nfix: PHP-related fixes in BUILD.bazel and service.yamls\n\nThis PR also adds the rules for all 7 langauges in OsLogin and Kms BUILD.bazel files. Those build files were missing rules for 5 langagues, including PHP.\n\nThis PR is the prerequisite for migrating PHP synth.py scripts from artman to bazel.\n\nThe fixes in service.yaml fix regression made during proto annotation migration. This became visible only during PHP generation, because only PHP depends on the affected sections of the service.yaml config.\n\nPiperOrigin-RevId: 305108224\n\nfdbc7b1f63969307c71143a0c24fdfd02e739df6\nEnable gapicv2 for osconfig/agentendpoint/v1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305086443\n\n1490d30e1ae339570dd7826ba625a603ede91a08\nEnable gapicv2 for osconfig/v1beta\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305069755\n\n7bf824e82e5c3549642b150dc4a9579602000f34\nEnable gapicv2 for iam/credentials/v1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305065283\n\n9ff6fd3b22f99167827e89aae7778408b5e82425\nUpdates Dataproc v1 API:\n- Adds Dataproc Jobs.SubmitJobAsOperation RPC\n- Adds SparkR and Presto job types to WorkflowTemplates\n- Adds new Optional Components\n- Clarifies usage of some APIs\n\nPiperOrigin-RevId: 305053617\n\ncad0f5137a70d0d14a8d9acbfcee98e4cd3e9662\nUpdates to Dataproc v1beta2 API:\n- Adds SparkR and Presto job types to WorkflowTemplates\n- Adds new Optional Components\n- Clarifies usage of some APIs\n\nPiperOrigin-RevId: 305053062\n\na005f045a301535eeb4c4b3fa7bb94eec9d22a8b\nAdd support for Cloud EKM to the Cloud KMS service and resource protos.\n\nPiperOrigin-RevId: 305026790\n\n5077b1e4674afdbbf11dac3f5f43d36285ba53ff\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304836531\n\nd6cb4997910eda04c0c66c0f2fd043eeaa0f660d\nchore: enable gapic v2 and proto annotation for documentai API.\n\ncommitter @summer-ji-eng\n\nPiperOrigin-RevId: 304724866\n\n490bc556608bfa5b1548c9374b06152fa33d657e\nEnable gapicv2 for devtools/remoteworkers/v1test2\n\nCommitter: @miraleung\nPiperOrigin-RevId: 304718691\n\n9f78ce31a5bd7f4a63e3cf0ddf28221557adb7ed\nEnable gapicv2 for managedidentities/v1beta1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 304718676\n\n6e17d259b8e320bc51aa240cefef05ec753e2b83\ndocs: treat a dummy example URL as a string literal instead of a link\n\nPiperOrigin-RevId: 304716376\n\na8d76f99d3073aaccabdcc122c798a63e812c4fe\ndocs: change relative URLs to absolute URLs to fix broken links.\n\nPiperOrigin-RevId: 304702368\n\n65c749bc6a1d240416a0e6979381b67f97aff907\ndocs: fix formatting of some regexes and string literals.\n\nPiperOrigin-RevId: 304701150\n\n9119eefcd2b5ce845a680fa4ec4093ed733498f0\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304698702\n\n62a2a7cc33d3535638d220df238823eefcca930d\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304696461\n\n23848c8f64a5e81a239d6133378468185f1756dc\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304696192\n\n9514fa9e390a4c0715972c5b510cf4c10ad049a1\ndocs: change relative URLs to absolute URLs to fix broken links.\n\nPiperOrigin-RevId: 304695334\n\n0f7b1509a9a452808c3d07fe90fedfcea763d7d5\nfix: change config_schema_version to 2.0.0 for containeranalysis v1 gapic config.\n\ncommitter: @hzyi-google\nPiperOrigin-RevId: 304672648\n\n3d52f3c126fbfc31f067a7f54737b7f0dfbce163\nDialogflow weekly v2 library update:\n- Change `parent` field's resource_reference to specify child_type instead of type per client library generation requirement;\n- Change Session with its child resource pattern to support both projects/{project}/agent/sessions/{session} and projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session};\n- Fix `method_signature`\n- Regular documentation update\n\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 304635286\n\n4a6a01ce0ead505c245d11a2ce156de34800c58f\ndocs: change a relative URL to an absolute URL to fix broken links.\n\nPiperOrigin-RevId: 304633630\n\n1b969c28a6579265e89cd35e6c2ecacc89970e2d\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304620317\n\n5378173a889f9c7d83e36e52d38a6267190de692\nAdd v1beta2 SubmitJobAsOperation RPC to Dataproc.\n\nPiperOrigin-RevId: 304594381\n\n3d5d228a58bdf875e6147b228db3159010c735ee\nEnable visibility on the GetSnapshot and GetTopicSnapshots methods\n\nPiperOrigin-RevId: 304500143\n\n1346f5c11a0376bc82c5c03259b304de52671518\nRefresh public client library for Cloud Monitoring.\nIncrease default ListTimeSeries deadline to 90s.\n\nPiperOrigin-RevId: 304467075\n\n4a6cfccb4a32cb28db7366295d90078c6af3112f\ndocs: Fix link in monitoring summary description.\n\nPiperOrigin-RevId: 304438717\n\n6e2ea9a4b63a264090f1bd4b5b25766a3f634f3a\nfix: add interface name overrides back to logging gapic config.\n\ncommitter: @hzyi-google\nPiperOrigin-RevId: 304438432\n\n01f3ccbaa66cf3ae4e3b9fd140b1ecfbe54a3ed0\nFix: Add package/namespace options for C#, Ruby and PHP in remaining protos.\n\nPiperOrigin-RevId: 304416658\n\nb89abbf12cd3c086abddcd79adb0a653349f960a\nchore(google/maps): Rename nox.py to noxfile.py\n\nupstream wip fix here: https://github.com/googleapis/gapic-generator/pull/3156\n\nPiperOrigin-RevId: 304411146\n\nbbf26d7f11fae7789b13959bf100983c496c9807\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 304409906\n\n" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "99820243d348191bc9c634f2b48ddf65096285ed" + "sha": "1df68ed6735ddce6797d0f83641a731c3c3f75b4", + "log": "1df68ed6735ddce6797d0f83641a731c3c3f75b4\nfix: apache license URL (#468)\n\n\nf4a59efa54808c4b958263de87bc666ce41e415f\nfeat: Add discogapic support for GAPICBazel generation (#459)\n\n* feat: Add discogapic support for GAPICBazel generation\n\n* reformat with black\n\n* Rename source repository variable\n\nCo-authored-by: Jeffrey Rennie \n" } } ], diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index 1e8461d1ac9..9de83fb31eb 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -299,7 +299,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.listClusters(request); }, expectedError); assert( @@ -413,7 +413,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.getCluster(request); }, expectedError); assert( @@ -527,7 +527,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.createCluster(request); }, expectedError); assert( @@ -641,7 +641,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.updateCluster(request); }, expectedError); assert( @@ -755,7 +755,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.updateNodePool(request); }, expectedError); assert( @@ -871,7 +871,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setNodePoolAutoscaling(request); }, expectedError); assert( @@ -985,7 +985,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setLoggingService(request); }, expectedError); assert( @@ -1101,7 +1101,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setMonitoringService(request); }, expectedError); assert( @@ -1215,7 +1215,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setAddonsConfig(request); }, expectedError); assert( @@ -1329,7 +1329,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setLocations(request); }, expectedError); assert( @@ -1443,7 +1443,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.updateMaster(request); }, expectedError); assert( @@ -1557,7 +1557,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setMasterAuth(request); }, expectedError); assert( @@ -1671,7 +1671,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.deleteCluster(request); }, expectedError); assert( @@ -1785,7 +1785,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.listOperations(request); }, expectedError); assert( @@ -1899,7 +1899,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.getOperation(request); }, expectedError); assert( @@ -2013,7 +2013,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.cancelOperation(request); }, expectedError); assert( @@ -2127,7 +2127,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.getServerConfig(request); }, expectedError); assert( @@ -2241,7 +2241,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.listNodePools(request); }, expectedError); assert( @@ -2355,7 +2355,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.getNodePool(request); }, expectedError); assert( @@ -2469,7 +2469,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.createNodePool(request); }, expectedError); assert( @@ -2583,7 +2583,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.deleteNodePool(request); }, expectedError); assert( @@ -2699,7 +2699,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.rollbackNodePoolUpgrade(request); }, expectedError); assert( @@ -2815,7 +2815,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setNodePoolManagement(request); }, expectedError); assert( @@ -2926,7 +2926,7 @@ describe('v1.ClusterManagerClient', () => { }; const expectedError = new Error('expected'); client.innerApiCalls.setLabels = stubSimpleCall(undefined, expectedError); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setLabels(request); }, expectedError); assert( @@ -3040,7 +3040,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setLegacyAbac(request); }, expectedError); assert( @@ -3154,7 +3154,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.startIPRotation(request); }, expectedError); assert( @@ -3270,7 +3270,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.completeIPRotation(request); }, expectedError); assert( @@ -3384,7 +3384,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setNodePoolSize(request); }, expectedError); assert( @@ -3498,7 +3498,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setNetworkPolicy(request); }, expectedError); assert( @@ -3614,7 +3614,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.setMaintenancePolicy(request); }, expectedError); assert( @@ -3746,7 +3746,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - assert.rejects(async () => { + await assert.rejects(async () => { await client.listUsableSubnetworks(request); }, expectedError); assert( @@ -3846,7 +3846,7 @@ describe('v1.ClusterManagerClient', () => { reject(err); }); }); - assert.rejects(async () => { + await assert.rejects(async () => { await promise; }, expectedError); assert( @@ -3926,7 +3926,7 @@ describe('v1.ClusterManagerClient', () => { expectedError ); const iterable = client.listUsableSubnetworksAsync(request); - assert.rejects(async () => { + await assert.rejects(async () => { const responses: protos.google.container.v1.IUsableSubnetwork[] = []; for await (const resource of iterable) { responses.push(resource!); From f6f88b0573af217db01483918c0660e5317855f5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 10 Apr 2020 20:56:23 +0200 Subject: [PATCH 203/371] chore(deps): update dependency gts to v2.0.0 (#328) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [gts](https://togithub.com/google/gts) | devDependencies | patch | [`2.0.0-alpha.9` -> `2.0.0`](https://renovatebot.com/diffs/npm/gts/2.0.0-alpha.9/2.0.0) | --- ### Release Notes
google/gts ### [`v2.0.0`](https://togithub.com/google/gts/blob/master/CHANGELOG.md#​200-httpswwwgithubcomgooglegtscomparev112v200-2020-04-02) [Compare Source](https://togithub.com/google/gts/compare/39a2705e51b4b6329a70f91f8293a2d7a363bf5d...v2.0.0) ##### ⚠ BREAKING CHANGES ⚠ This is a major rewrite of the tool. Based on community guidance, we've switched from using [tslint](https://palantir.github.io/tslint/) to [eslint](https://eslint.org/). _Please read all of the steps below to upgrade_. ##### Configuring `eslint` With the shift to `eslint`, `gts` now will format and lint JavaScript _as well_ as TypeScript. Upgrading will require a number of manual steps. To format JavaScript and TypeScript, you can run: $ npx gts fix To specify only TypeScript: $ npx gts fix '**/*.ts' ##### Delete `tslint.json` This file is no longer used, and can lead to confusion. ##### Create a `.eslintrc.json` Now that we're using eslint, you need to extend the eslint configuration baked into the module. Create a new file named `.eslintrc.json`, and paste the following: ```js { "extends": "./node_modules/gts" } ``` ##### Create a `.eslintignore` The `.eslintignore` file lets you ignore specific directories. This tool now lints and formats JavaScript, so it's _really_ important to ignore your build directory! Here is an example of a `.eslintignore` file: **/node_modules build/ ##### Rule changes The underlying linter was changed, so naturally there are going to be a variety of rule changes along the way. To see the full list, check out [.eslintrc.json](https://togithub.com/google/gts/blob/master/.eslintrc.json). ##### Require Node.js 10.x and up Node.js 8.x is now end of life - this module now requires Ndoe.js 10.x and up. ##### Features - add the eol-last rule ([#​425](https://www.github.com/google/gts/issues/425)) ([50ebd4d](https://www.github.com/google/gts/commit/50ebd4dbaf063615f4c025f567ca28076a734223)) - allow eslintrc to run over tsx files ([#​469](https://www.github.com/google/gts/issues/469)) ([a21db94](https://www.github.com/google/gts/commit/a21db94601def563952d677cb0980a12b6730f4c)) - disable global rule for checking TODO comments ([#​459](https://www.github.com/google/gts/issues/459)) ([96aa84a](https://www.github.com/google/gts/commit/96aa84a0a42181046daa248750cc8fef0c320619)) - override require-atomic-updates ([#​468](https://www.github.com/google/gts/issues/468)) ([8105c93](https://www.github.com/google/gts/commit/8105c9334ee5104b05f6b1b2f150e51419637262)) - prefer single quotes if possible ([#​475](https://www.github.com/google/gts/issues/475)) ([39a2705](https://www.github.com/google/gts/commit/39a2705e51b4b6329a70f91f8293a2d7a363bf5d)) - use eslint instead of tslint ([#​400](https://www.github.com/google/gts/issues/400)) ([b3096fb](https://www.github.com/google/gts/commit/b3096fbd5076d302d93c2307bf627e12c423e726)) ##### Bug Fixes - use .prettierrc.js ([#​437](https://www.github.com/google/gts/issues/437)) ([06efa84](https://www.github.com/google/gts/commit/06efa8444cdf1064b64f3e8d61ebd04f45d90b4c)) - **deps:** update dependency chalk to v4 ([#​477](https://www.github.com/google/gts/issues/477)) ([061d64e](https://www.github.com/google/gts/commit/061d64e29d37b93ce55228937cc100e05ddef352)) - **deps:** update dependency eslint-plugin-node to v11 ([#​426](https://www.github.com/google/gts/issues/426)) ([a394b7c](https://www.github.com/google/gts/commit/a394b7c1f80437f25017ca5c500b968ebb789ece)) - **deps:** update dependency execa to v4 ([#​427](https://www.github.com/google/gts/issues/427)) ([f42ef36](https://www.github.com/google/gts/commit/f42ef36709251553342e655e287e889df72ee3e3)) - **deps:** update dependency prettier to v2 ([#​464](https://www.github.com/google/gts/issues/464)) ([20ef43d](https://www.github.com/google/gts/commit/20ef43d566df17d3c93949ef7db3b72ee9123ca3)) - disable no-use-before-define ([#​431](https://www.github.com/google/gts/issues/431)) ([dea2c22](https://www.github.com/google/gts/commit/dea2c223d1d3a60a1786aa820eebb93be27016a7)) - **deps:** update dependency update-notifier to v4 ([#​403](https://www.github.com/google/gts/issues/403)) ([57393b7](https://www.github.com/google/gts/commit/57393b74c6cf299e8ae09311f0382226b8baa3e3)) - **deps:** upgrade to meow 6.x ([#​423](https://www.github.com/google/gts/issues/423)) ([8f93d00](https://www.github.com/google/gts/commit/8f93d0049337a832d9a22b6ae4e86fd41140ec56)) - align back to the google style guide ([#​440](https://www.github.com/google/gts/issues/440)) ([8bd78c4](https://www.github.com/google/gts/commit/8bd78c4c78526a72400f618a95a987d2a7c1a8db)) - disable empty-function check ([#​467](https://www.github.com/google/gts/issues/467)) ([6455d7a](https://www.github.com/google/gts/commit/6455d7a9d227320d3ffe1b00c9c739b846f339a8)) - drop support for node 8 ([#​422](https://www.github.com/google/gts/issues/422)) ([888c686](https://www.github.com/google/gts/commit/888c68692079065f38ce66ec84472f1f3311a050)) - emit .prettierrc.js with init ([#​462](https://www.github.com/google/gts/issues/462)) ([b114614](https://www.github.com/google/gts/commit/b114614d22ab5560d2d1dd5cb6695968cc80027b)) - enable trailing comma ([#​470](https://www.github.com/google/gts/issues/470)) ([6518f58](https://www.github.com/google/gts/commit/6518f5843d3093e3beb7d3371b56d9aecedf3924)) - include _.tsx and _.jsx in default fix command ([#​473](https://www.github.com/google/gts/issues/473)) ([0509780](https://www.github.com/google/gts/commit/050978005ad089d9b3b5d8895b25ea1175d75db2)) ##### [1.1.2](https://www.github.com/google/gts/compare/v1.1.1...v1.1.2) (2019-11-20) ##### Bug Fixes - **deps:** update to newest prettier (with support for optional chain) ([#​396](https://www.github.com/google/gts/issues/396)) ([ce8ad06](https://www.github.com/google/gts/commit/ce8ad06c8489c44a9e2ed5292382637b3ebb7601)) ##### [1.1.1](https://www.github.com/google/gts/compare/v1.1.0...v1.1.1) (2019-11-11) ##### Bug Fixes - **deps:** update dependency chalk to v3 ([#​389](https://www.github.com/google/gts/issues/389)) ([1ce0f45](https://www.github.com/google/gts/commit/1ce0f450677e143a27efc39def617d13c66503e8)) - **deps:** update dependency inquirer to v7 ([#​377](https://www.github.com/google/gts/issues/377)) ([bf2c349](https://www.github.com/google/gts/commit/bf2c349b2208ac63e551542599ac9cd27b461338)) - **deps:** update dependency rimraf to v3 ([#​374](https://www.github.com/google/gts/issues/374)) ([2058eaa](https://www.github.com/google/gts/commit/2058eaa682f4baae978b469fd708d1f866e7da74)) - **deps:** update dependency write-file-atomic to v3 ([#​353](https://www.github.com/google/gts/issues/353)) ([59e6aa8](https://www.github.com/google/gts/commit/59e6aa8580a2f8e9457d2d2b6fa9e18e86347592))
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 14ad585f551..f025b1d8ba3 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -53,7 +53,7 @@ "eslint-config-prettier": "^6.0.0", "eslint-plugin-node": "^11.0.0", "eslint-plugin-prettier": "^3.1.0", - "gts": "2.0.0-alpha.9", + "gts": "2.0.0", "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", From 3d9b35b43972f42bc91fa822242429e7db943f98 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 10 Apr 2020 18:50:23 -0700 Subject: [PATCH 204/371] fix: remove eslint, update gax, fix generated protos, run the generator (#329) Run the latest version of the generator, update google-gax, update gts, and remove direct dependencies on eslint. --- packages/google-container/package.json | 12 ++++-------- packages/google-container/synth.metadata | 15 +++------------ packages/google-container/synth.py | 2 +- 3 files changed, 8 insertions(+), 21 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index f025b1d8ba3..8fa587b6255 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -30,7 +30,7 @@ "test": "c8 mocha build/test", "samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../", "system-test": "mocha build/system-test", - "lint": "gts fix && eslint --fix samples/*.js samples/**/*.js", + "lint": "gts fix", "fix": "gts fix", "docs": "jsdoc -c .jsdoc.js", "docs-test": "linkinator docs", @@ -39,21 +39,17 @@ "compile-protos": "compileProtos src", "predocs-test": "npm run docs", "prepare": "npm run compile", - "prelint": "cd samples; npm link ../; npm i" + "prelint": "cd samples; npm link ../; npm install" }, "dependencies": { - "google-gax": "^2.0.1" + "google-gax": "^2.1.0" }, "devDependencies": { "@types/mocha": "^7.0.0", "@types/node": "^12.0.0", "@types/sinon": "^9.0.0", "c8": "^7.0.0", - "eslint": "^6.0.0", - "eslint-config-prettier": "^6.0.0", - "eslint-plugin-node": "^11.0.0", - "eslint-plugin-prettier": "^3.1.0", - "gts": "2.0.0", + "gts": "^2.0.0", "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index d23f8c067c6..4c47c93a680 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,21 +1,12 @@ { - "updateTime": "2020-04-07T12:01:18.363962Z", + "updateTime": "2020-04-11T00:01:09.907067Z", "sources": [ - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "823facb4ca6a4b36b817ce955a790dcb40cf808f", - "internalRef": "305155214", - "log": "823facb4ca6a4b36b817ce955a790dcb40cf808f\nchore: enable gapicv2 for videointelligence/v1p3beta1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305155214\n\n6b9c969d42bcb0f8206675bd868ed7d1ddcdaef9\nAdd API for bigqueryreservation v1.\n\nPiperOrigin-RevId: 305151484\n\n514f7d27811832a9f58b83d6f6305d894b097cf6\nchore: enable gapicv2 for phishingprotection/v1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305126983\n\nff74d47d47280e6bbcbad1a7c82b1e0959c472ec\nfix: PHP-related fixes in BUILD.bazel and service.yamls\n\nThis PR also adds the rules for all 7 langauges in OsLogin and Kms BUILD.bazel files. Those build files were missing rules for 5 langagues, including PHP.\n\nThis PR is the prerequisite for migrating PHP synth.py scripts from artman to bazel.\n\nThe fixes in service.yaml fix regression made during proto annotation migration. This became visible only during PHP generation, because only PHP depends on the affected sections of the service.yaml config.\n\nPiperOrigin-RevId: 305108224\n\nfdbc7b1f63969307c71143a0c24fdfd02e739df6\nEnable gapicv2 for osconfig/agentendpoint/v1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305086443\n\n1490d30e1ae339570dd7826ba625a603ede91a08\nEnable gapicv2 for osconfig/v1beta\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305069755\n\n7bf824e82e5c3549642b150dc4a9579602000f34\nEnable gapicv2 for iam/credentials/v1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 305065283\n\n9ff6fd3b22f99167827e89aae7778408b5e82425\nUpdates Dataproc v1 API:\n- Adds Dataproc Jobs.SubmitJobAsOperation RPC\n- Adds SparkR and Presto job types to WorkflowTemplates\n- Adds new Optional Components\n- Clarifies usage of some APIs\n\nPiperOrigin-RevId: 305053617\n\ncad0f5137a70d0d14a8d9acbfcee98e4cd3e9662\nUpdates to Dataproc v1beta2 API:\n- Adds SparkR and Presto job types to WorkflowTemplates\n- Adds new Optional Components\n- Clarifies usage of some APIs\n\nPiperOrigin-RevId: 305053062\n\na005f045a301535eeb4c4b3fa7bb94eec9d22a8b\nAdd support for Cloud EKM to the Cloud KMS service and resource protos.\n\nPiperOrigin-RevId: 305026790\n\n5077b1e4674afdbbf11dac3f5f43d36285ba53ff\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304836531\n\nd6cb4997910eda04c0c66c0f2fd043eeaa0f660d\nchore: enable gapic v2 and proto annotation for documentai API.\n\ncommitter @summer-ji-eng\n\nPiperOrigin-RevId: 304724866\n\n490bc556608bfa5b1548c9374b06152fa33d657e\nEnable gapicv2 for devtools/remoteworkers/v1test2\n\nCommitter: @miraleung\nPiperOrigin-RevId: 304718691\n\n9f78ce31a5bd7f4a63e3cf0ddf28221557adb7ed\nEnable gapicv2 for managedidentities/v1beta1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 304718676\n\n6e17d259b8e320bc51aa240cefef05ec753e2b83\ndocs: treat a dummy example URL as a string literal instead of a link\n\nPiperOrigin-RevId: 304716376\n\na8d76f99d3073aaccabdcc122c798a63e812c4fe\ndocs: change relative URLs to absolute URLs to fix broken links.\n\nPiperOrigin-RevId: 304702368\n\n65c749bc6a1d240416a0e6979381b67f97aff907\ndocs: fix formatting of some regexes and string literals.\n\nPiperOrigin-RevId: 304701150\n\n9119eefcd2b5ce845a680fa4ec4093ed733498f0\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304698702\n\n62a2a7cc33d3535638d220df238823eefcca930d\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304696461\n\n23848c8f64a5e81a239d6133378468185f1756dc\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304696192\n\n9514fa9e390a4c0715972c5b510cf4c10ad049a1\ndocs: change relative URLs to absolute URLs to fix broken links.\n\nPiperOrigin-RevId: 304695334\n\n0f7b1509a9a452808c3d07fe90fedfcea763d7d5\nfix: change config_schema_version to 2.0.0 for containeranalysis v1 gapic config.\n\ncommitter: @hzyi-google\nPiperOrigin-RevId: 304672648\n\n3d52f3c126fbfc31f067a7f54737b7f0dfbce163\nDialogflow weekly v2 library update:\n- Change `parent` field's resource_reference to specify child_type instead of type per client library generation requirement;\n- Change Session with its child resource pattern to support both projects/{project}/agent/sessions/{session} and projects/{project}/agent/environments/{environment}/users/{user}/sessions/{session};\n- Fix `method_signature`\n- Regular documentation update\n\nImportant updates are also posted at:\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 304635286\n\n4a6a01ce0ead505c245d11a2ce156de34800c58f\ndocs: change a relative URL to an absolute URL to fix broken links.\n\nPiperOrigin-RevId: 304633630\n\n1b969c28a6579265e89cd35e6c2ecacc89970e2d\nchore: set Ruby namespace in proto options\n\nPiperOrigin-RevId: 304620317\n\n5378173a889f9c7d83e36e52d38a6267190de692\nAdd v1beta2 SubmitJobAsOperation RPC to Dataproc.\n\nPiperOrigin-RevId: 304594381\n\n3d5d228a58bdf875e6147b228db3159010c735ee\nEnable visibility on the GetSnapshot and GetTopicSnapshots methods\n\nPiperOrigin-RevId: 304500143\n\n1346f5c11a0376bc82c5c03259b304de52671518\nRefresh public client library for Cloud Monitoring.\nIncrease default ListTimeSeries deadline to 90s.\n\nPiperOrigin-RevId: 304467075\n\n4a6cfccb4a32cb28db7366295d90078c6af3112f\ndocs: Fix link in monitoring summary description.\n\nPiperOrigin-RevId: 304438717\n\n6e2ea9a4b63a264090f1bd4b5b25766a3f634f3a\nfix: add interface name overrides back to logging gapic config.\n\ncommitter: @hzyi-google\nPiperOrigin-RevId: 304438432\n\n01f3ccbaa66cf3ae4e3b9fd140b1ecfbe54a3ed0\nFix: Add package/namespace options for C#, Ruby and PHP in remaining protos.\n\nPiperOrigin-RevId: 304416658\n\nb89abbf12cd3c086abddcd79adb0a653349f960a\nchore(google/maps): Rename nox.py to noxfile.py\n\nupstream wip fix here: https://github.com/googleapis/gapic-generator/pull/3156\n\nPiperOrigin-RevId: 304411146\n\nbbf26d7f11fae7789b13959bf100983c496c9807\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 304409906\n\n" - } - }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1df68ed6735ddce6797d0f83641a731c3c3f75b4", - "log": "1df68ed6735ddce6797d0f83641a731c3c3f75b4\nfix: apache license URL (#468)\n\n\nf4a59efa54808c4b958263de87bc666ce41e415f\nfeat: Add discogapic support for GAPICBazel generation (#459)\n\n* feat: Add discogapic support for GAPICBazel generation\n\n* reformat with black\n\n* Rename source repository variable\n\nCo-authored-by: Jeffrey Rennie \n" + "sha": "6f32150677c9784f3c3a7e1949472bd29c9d72c5", + "log": "6f32150677c9784f3c3a7e1949472bd29c9d72c5\nfix: installs test_utils from its common repo (#480)\n\n\n74ce986d3b5431eb66985e9a00c4eb45295a4020\nfix: stop recording update_time in synth.metadata (#478)\n\n\n7f8e62aa3edd225f76347a16f92e400661fdfb52\nchore(java): release-please only updates non maven versions in README (#476)\n\nPrevent release-please and synthtool from fighting over the released library version. Synthtool updates the install snippets from the samples pom.xml files so the bots fight if they are temporarily out of sync after a release.\nc7e0e517d7f46f77bebd27da2e5afcaa6eee7e25\nbuild(java): fix nightly integration test config to run integrations (#465)\n\nThis was only running the units.\nbd69a2aa7b70875f3c988e269706b22fefbef40e\nbuild(java): fix retry_with_backoff when -e option set (#475)\n\n\nd9b173c427bfa0c6cca818233562e7e8841a357c\nfix: record version of working repo in synth.metadata (#473)\n\nPartial revert of b37cf74d12e9a42b9de9e61a4f26133d7cd9c168.\nf73a541770d95a609e5be6bf6b3b220d17cefcbe\nfeat(discogapic): allow local discovery-artifact-manager (#474)\n\n\n8cf0f5d93a70c3dcb0b4999d3152c46d4d9264bf\ndoc: describe the Autosynth & Synthtool protocol (#472)\n\n* doc: describe the Autosynth & Synthtool protocol\n\n* Accommodate review comments.\n980baaa738a1ad8fa02b4fdbd56be075ee77ece5\nfix: pin sphinx to <3.0.0 as new version causes new error (#471)\n\nThe error `toctree contains reference to document changlelog that doesn't have a title: no link will be generated` occurs as of 3.0.0. Pinning to 2.x until we address the docs build issue.\n\nTowards #470\n\nI did this manually for python-datastore https://github.com/googleapis/python-datastore/pull/22\n928b2998ac5023e7c7e254ab935f9ef022455aad\nchore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.15 (#466)\n\nCo-authored-by: Jeffrey Rennie \n188f1b1d53181f739b98f8aa5d40cfe99eb90c47\nfix: allow local and external deps to be specified (#469)\n\nModify noxfile.py to allow local and external dependencies for\nsystem tests to be specified.\n" } } ], diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index ff2a71119b9..f9e9219d22e 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -49,5 +49,5 @@ # Node.js specific cleanup subprocess.run(['npm', 'install']) +subprocess.run(['npm', 'run', 'lint']) subprocess.run(['npm', 'run', 'compile-protos']) -subprocess.run(['npm', 'run', 'fix']) From 07a6cfbba8b93a4305a76c779d93657b0de68438 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sat, 11 Apr 2020 19:14:45 -0700 Subject: [PATCH 205/371] build: remove unused codecov config (#330) --- packages/google-container/codecov.yaml | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 packages/google-container/codecov.yaml diff --git a/packages/google-container/codecov.yaml b/packages/google-container/codecov.yaml deleted file mode 100644 index 5724ea9478d..00000000000 --- a/packages/google-container/codecov.yaml +++ /dev/null @@ -1,4 +0,0 @@ ---- -codecov: - ci: - - source.cloud.google.com From e6630d9272eafe11dcc9b8b574d78f1b7b2420f8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 13 Apr 2020 09:15:04 -0700 Subject: [PATCH 206/371] docs: update reference URLs in jsdoc (#331) --- packages/google-container/.mocharc.json | 5 - packages/google-container/package.json | 1 - .../google/container/v1/cluster_service.proto | 165 +++++++++--------- packages/google-container/protos/protos.json | 3 +- .../google-container/samples/.eslintrc.yml | 1 - .../google-container/smoke-test/.eslintrc.yml | 4 - .../smoke-test/cluster_manager_smoke_test.js | 47 ----- .../src/v1/cluster_manager_client.ts | 132 +++++++------- packages/google-container/synth.metadata | 19 +- packages/google-container/synth.py | 19 -- .../google-container/system-test/install.ts | 4 +- .../google-container/system-test/smoke.ts | 31 ++++ packages/google-container/test/.eslintrc.yml | 3 - packages/google-container/tslint.json | 3 - 14 files changed, 200 insertions(+), 237 deletions(-) delete mode 100644 packages/google-container/.mocharc.json delete mode 100644 packages/google-container/smoke-test/.eslintrc.yml delete mode 100644 packages/google-container/smoke-test/cluster_manager_smoke_test.js create mode 100644 packages/google-container/system-test/smoke.ts delete mode 100644 packages/google-container/test/.eslintrc.yml delete mode 100644 packages/google-container/tslint.json diff --git a/packages/google-container/.mocharc.json b/packages/google-container/.mocharc.json deleted file mode 100644 index 670c5e2c24b..00000000000 --- a/packages/google-container/.mocharc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "enable-source-maps": true, - "throw-deprecation": true, - "timeout": 10000 -} diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 8fa587b6255..f55797814e8 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -57,7 +57,6 @@ "mocha": "^7.0.0", "null-loader": "^3.0.0", "pack-n-play": "^1.0.0-2", - "prettier": "^1.17.1", "sinon": "^9.0.1", "ts-loader": "^6.2.1", "typescript": "^3.8.3", diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 6330645ae05..3a798ca12f4 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -29,6 +29,7 @@ option java_multiple_files = true; option java_outer_classname = "ClusterServiceProto"; option java_package = "com.google.container.v1"; option php_namespace = "Google\\Cloud\\Container\\V1"; +option ruby_package = "Google::Cloud::Container::V1"; // Google Kubernetes Engine Cluster Manager v1 service ClusterManager { @@ -64,7 +65,7 @@ service ClusterManager { // Compute Engine instances. // // By default, the cluster is created in the project's - // [default network](/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 @@ -458,7 +459,7 @@ service ClusterManager { // Parameters that describe the nodes in a cluster. message NodeConfig { // The name of a Google Compute Engine [machine - // type](/compute/docs/machine-types) (e.g. + // type](https://cloud.google.com/compute/docs/machine-types) (e.g. // `n1-standard-1`). // // If unspecified, the default machine type is @@ -481,7 +482,7 @@ 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](/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. @@ -1038,7 +1039,7 @@ message Cluster { string monitoring_service = 7; // The name of the Google Compute Engine - // [network](/compute/docs/networks-and-firewalls#networks) to which the + // [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; @@ -1053,7 +1054,7 @@ message Cluster { AddonsConfig addons_config = 10; // The name of the Google Compute Engine - // [subnetwork](/compute/docs/subnetworks) to which the + // [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which the // cluster is connected. string subnetwork = 11; @@ -1063,7 +1064,7 @@ message Cluster { repeated NodePool node_pools = 12; // The list of Google Compute Engine - // [zones](/compute/docs/zones#available) in which the cluster's nodes + // [zones](https://cloud.google.com/compute/docs/zones#available) in which the cluster's nodes // should be located. repeated string locations = 13; @@ -1131,7 +1132,7 @@ message Cluster { string self_link = 100; // [Output only] The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1163,7 +1164,7 @@ message Cluster { string current_master_version = 104; // [Output only] Deprecated, use - // [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools) + // [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.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. @@ -1205,8 +1206,8 @@ message Cluster { string expire_time = 113; // [Output only] The name of the Google Compute Engine - // [zone](/compute/docs/regions-zones/regions-zones#available) or - // [region](/compute/docs/regions-zones/regions-zones#available) in which + // [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; @@ -1271,7 +1272,7 @@ message ClusterUpdate { NodePoolAutoscaling desired_node_pool_autoscaling = 9; // The desired list of Google Compute Engine - // [zones](/compute/docs/zones#available) in which the cluster's nodes + // [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. @@ -1398,7 +1399,7 @@ message Operation { string name = 1; // The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the operation + // [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]; @@ -1422,8 +1423,8 @@ message Operation { string target_link = 7; // [Output only] The name of the Google Compute Engine - // [zone](/compute/docs/regions-zones/regions-zones#available) or - // [region](/compute/docs/regions-zones/regions-zones#available) in which + // [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; @@ -1450,17 +1451,17 @@ message CreateClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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](/container-engine/reference/rest/v1/projects.zones.clusters) + // resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; // The parent (project and location) where the cluster will be created. - // Specified in the format 'projects/*/locations/*'. + // Specified in the format `projects/*/locations/*`. string parent = 5; } @@ -1472,7 +1473,7 @@ message GetClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1482,7 +1483,7 @@ message GetClusterRequest { string cluster_id = 3 [deprecated = true]; // The name (project, location, cluster) of the cluster to retrieve. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 5; } @@ -1494,7 +1495,7 @@ message UpdateClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1507,7 +1508,7 @@ message UpdateClusterRequest { ClusterUpdate update = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to update. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 5; } @@ -1519,7 +1520,7 @@ message UpdateNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1550,7 +1551,7 @@ message UpdateNodePoolRequest { // The name (project, location, cluster, node pool) of the node pool to // update. Specified in the format - // 'projects/*/locations/*/clusters/*/nodePools/*'. + // `projects/*/locations/*/clusters/*/nodePools/*`. string name = 8; } @@ -1562,7 +1563,7 @@ message SetNodePoolAutoscalingRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1580,7 +1581,7 @@ message SetNodePoolAutoscalingRequest { // The name (project, location, cluster, node pool) of the node pool to set // autoscaler settings. Specified in the format - // 'projects/*/locations/*/clusters/*/nodePools/*'. + // `projects/*/locations/*/clusters/*/nodePools/*`. string name = 6; } @@ -1592,7 +1593,7 @@ message SetLoggingServiceRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1609,7 +1610,7 @@ message SetLoggingServiceRequest { string logging_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set logging. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 5; } @@ -1621,7 +1622,7 @@ message SetMonitoringServiceRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1640,7 +1641,7 @@ message SetMonitoringServiceRequest { string monitoring_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set monitoring. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 6; } @@ -1652,7 +1653,7 @@ message SetAddonsConfigRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1666,7 +1667,7 @@ message SetAddonsConfigRequest { AddonsConfig addons_config = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set addons. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 6; } @@ -1678,7 +1679,7 @@ message SetLocationsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1688,7 +1689,7 @@ message SetLocationsRequest { string cluster_id = 3 [deprecated = true]; // Required. The desired list of Google Compute Engine - // [zones](/compute/docs/zones#available) in which the cluster's nodes + // [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. @@ -1697,7 +1698,7 @@ message SetLocationsRequest { repeated string locations = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set locations. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 6; } @@ -1709,7 +1710,7 @@ message UpdateMasterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1731,7 +1732,7 @@ message UpdateMasterRequest { string master_version = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to update. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 7; } @@ -1761,7 +1762,7 @@ message SetMasterAuthRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1777,7 +1778,7 @@ message SetMasterAuthRequest { MasterAuth update = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set auth. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 7; } @@ -1789,7 +1790,7 @@ message DeleteClusterRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1799,7 +1800,7 @@ message DeleteClusterRequest { string cluster_id = 3 [deprecated = true]; // The name (project, location, cluster) of the cluster to delete. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 4; } @@ -1811,13 +1812,13 @@ message ListClustersRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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. - // Specified in the format 'projects/*/locations/*'. + // Specified in the format `projects/*/locations/*`. // Location "-" matches all zones and all regions. string parent = 4; } @@ -1841,7 +1842,7 @@ message GetOperationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1851,7 +1852,7 @@ message GetOperationRequest { string operation_id = 3 [deprecated = true]; // The name (project, location, operation id) of the operation to get. - // Specified in the format 'projects/*/locations/*/operations/*'. + // Specified in the format `projects/*/locations/*/operations/*`. string name = 5; } @@ -1863,12 +1864,12 @@ message ListOperationsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) to return operations for, or `-` for + // [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. - // Specified in the format 'projects/*/locations/*'. + // Specified in the format `projects/*/locations/*`. // Location "-" matches all zones and all regions. string parent = 4; } @@ -1881,7 +1882,7 @@ message CancelOperationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the operation resides. + // [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]; @@ -1890,7 +1891,7 @@ message CancelOperationRequest { string operation_id = 3 [deprecated = true]; // The name (project, location, operation id) of the operation to cancel. - // Specified in the format 'projects/*/locations/*/operations/*'. + // Specified in the format `projects/*/locations/*/operations/*`. string name = 4; } @@ -1912,12 +1913,12 @@ message GetServerConfigRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) to return operations for. + // [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, - // specified in the format 'projects/*/locations/*'. + // specified in the format `projects/*/locations/*`. string name = 4; } @@ -1947,7 +1948,7 @@ message CreateNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1961,7 +1962,7 @@ message CreateNodePoolRequest { // The parent (project, location, cluster id) where the node pool will be // created. Specified in the format - // 'projects/*/locations/*/clusters/*'. + // `projects/*/locations/*/clusters/*`. string parent = 6; } @@ -1973,7 +1974,7 @@ message DeleteNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -1988,7 +1989,7 @@ message DeleteNodePoolRequest { // The name (project, location, cluster, node pool id) of the node pool to // delete. Specified in the format - // 'projects/*/locations/*/clusters/*/nodePools/*'. + // `projects/*/locations/*/clusters/*/nodePools/*`. string name = 6; } @@ -2000,7 +2001,7 @@ message ListNodePoolsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -2010,7 +2011,7 @@ message ListNodePoolsRequest { string cluster_id = 3 [deprecated = true]; // The parent (project, location, cluster id) where the node pools will be - // listed. Specified in the format 'projects/*/locations/*/clusters/*'. + // listed. Specified in the format `projects/*/locations/*/clusters/*`. string parent = 5; } @@ -2022,7 +2023,7 @@ message GetNodePoolRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -2037,7 +2038,7 @@ message GetNodePoolRequest { // The name (project, location, cluster, node pool id) of the node pool to // get. Specified in the format - // 'projects/*/locations/*/clusters/*/nodePools/*'. + // `projects/*/locations/*/clusters/*/nodePools/*`. string name = 6; } @@ -2098,7 +2099,7 @@ message NodePool { string version = 101; // [Output only] The resource URLs of the [managed instance - // groups](/compute/docs/instance-groups/creating-groups-of-managed-instances) + // groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) // associated with this node pool. repeated string instance_group_urls = 102; @@ -2256,7 +2257,7 @@ message SetNodePoolManagementRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -2274,7 +2275,7 @@ message SetNodePoolManagementRequest { // The name (project, location, cluster, node pool id) of the node pool to set // management properties. Specified in the format - // 'projects/*/locations/*/clusters/*/nodePools/*'. + // `projects/*/locations/*/clusters/*/nodePools/*`. string name = 7; } @@ -2287,7 +2288,7 @@ message SetNodePoolSizeRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -2305,7 +2306,7 @@ message SetNodePoolSizeRequest { // The name (project, location, cluster, node pool id) of the node pool to set // size. - // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + // Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. string name = 7; } @@ -2319,7 +2320,7 @@ message RollbackNodePoolUpgradeRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -2334,7 +2335,7 @@ message RollbackNodePoolUpgradeRequest { // The name (project, location, cluster, node pool id) of the node poll to // rollback upgrade. - // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + // Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. string name = 6; } @@ -2360,7 +2361,7 @@ message ClusterAutoscaling { // created by NAP. AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - // The list of Google Compute Engine [zones](/compute/docs/zones#available) + // 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; } @@ -2418,7 +2419,7 @@ message SetLabelsRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -2439,7 +2440,7 @@ message SetLabelsRequest { string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set labels. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 7; } @@ -2452,7 +2453,7 @@ message SetLegacyAbacRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -2465,7 +2466,7 @@ message SetLegacyAbacRequest { bool enabled = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set legacy abac. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 6; } @@ -2478,7 +2479,7 @@ message StartIPRotationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -2488,7 +2489,7 @@ message StartIPRotationRequest { string cluster_id = 3 [deprecated = true]; // The name (project, location, cluster id) of the cluster to start IP - // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. + // rotation. Specified in the format `projects/*/locations/*/clusters/*`. string name = 6; // Whether to rotate credentials during IP rotation. @@ -2503,7 +2504,7 @@ message CompleteIPRotationRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -2513,7 +2514,7 @@ message CompleteIPRotationRequest { string cluster_id = 3 [deprecated = true]; // The name (project, location, cluster id) of the cluster to complete IP - // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. + // rotation. Specified in the format `projects/*/locations/*/clusters/*`. string name = 7; } @@ -2523,7 +2524,7 @@ message AcceleratorConfig { int64 accelerator_count = 1; // The accelerator type resource name. List of supported accelerators - // [here](/compute/docs/gpus) + // [here](https://cloud.google.com/compute/docs/gpus) string accelerator_type = 2; } @@ -2535,7 +2536,7 @@ message SetNetworkPolicyRequest { string project_id = 1 [deprecated = true]; // Deprecated. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [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]; @@ -2548,7 +2549,7 @@ message SetNetworkPolicyRequest { NetworkPolicy network_policy = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set networking - // policy. Specified in the format 'projects/*/locations/*/clusters/*'. + // policy. Specified in the format `projects/*/locations/*/clusters/*`. string name = 6; } @@ -2559,7 +2560,7 @@ message SetMaintenancePolicyRequest { string project_id = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The name of the Google Compute Engine - // [zone](/compute/docs/zones#available) in which the cluster + // [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster // resides. string zone = 2 [(google.api.field_behavior) = REQUIRED]; @@ -2572,7 +2573,7 @@ message SetMaintenancePolicyRequest { // The name (project, location, cluster id) of the cluster to set maintenance // policy. - // Specified in the format 'projects/*/locations/*/clusters/*'. + // Specified in the format `projects/*/locations/*/clusters/*`. string name = 5; } @@ -2613,13 +2614,13 @@ 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](/compute/docs/networks-and-firewalls#networks) to which + // [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](/compute/docs/vpc) to which the cluster is connected. + // [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; @@ -2668,7 +2669,7 @@ message DatabaseEncryption { // available to a user for creating clusters. message ListUsableSubnetworksRequest { // The parent project where subnetworks are usable. - // Specified in the format 'projects/*'. + // Specified in the format `projects/*`. string parent = 1; // Filtering currently only supports equality on the networkProjectId and must diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index a1ea8f72a34..eba3555da02 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -11,7 +11,8 @@ "java_multiple_files": true, "java_outer_classname": "ClusterServiceProto", "java_package": "com.google.container.v1", - "php_namespace": "Google\\Cloud\\Container\\V1" + "php_namespace": "Google\\Cloud\\Container\\V1", + "ruby_package": "Google::Cloud::Container::V1" }, "nested": { "ClusterManager": { diff --git a/packages/google-container/samples/.eslintrc.yml b/packages/google-container/samples/.eslintrc.yml index 0aa37ac630e..282535f55f6 100644 --- a/packages/google-container/samples/.eslintrc.yml +++ b/packages/google-container/samples/.eslintrc.yml @@ -1,4 +1,3 @@ --- rules: no-console: off - node/no-missing-require: off diff --git a/packages/google-container/smoke-test/.eslintrc.yml b/packages/google-container/smoke-test/.eslintrc.yml deleted file mode 100644 index 5adab99ca15..00000000000 --- a/packages/google-container/smoke-test/.eslintrc.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -rules: - node/no-unpublished-require: off - no-console: off diff --git a/packages/google-container/smoke-test/cluster_manager_smoke_test.js b/packages/google-container/smoke-test/cluster_manager_smoke_test.js deleted file mode 100644 index 1b0c8a7bd8e..00000000000 --- a/packages/google-container/smoke-test/cluster_manager_smoke_test.js +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// 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. - -'use strict'; -const {describe, it} = require('mocha'); - -describe('ClusterManagerSmokeTest', () => { - if (!process.env.GCLOUD_PROJECT) { - throw new Error('Usage: GCLOUD_PROJECT= node #{$0}'); - } - const projectId = process.env.GCLOUD_PROJECT; - - it('successfully makes a call to the service', done => { - // eslint-disable-next-line node/no-missing-require - const container = require('../src'); - - const client = new container.v1.ClusterManagerClient({ - // optional auth parameters. - }); - - const projectId2 = projectId; - const zone = 'us-central1-a'; - const request = { - projectId: projectId2, - zone: zone, - }; - client - .listClusters(request) - .then(responses => { - const response = responses[0]; - console.log(response); - }) - .then(done) - .catch(done); - }); -}); diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 5a76c298024..a3870b231ae 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -357,12 +357,12 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.parent * The parent (project and location) where the clusters will be listed. - * Specified in the format 'projects/* /locations/*'. + * Specified in the format `projects/* /locations/*`. * Location "-" matches all zones and all regions. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -448,7 +448,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -456,7 +456,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -535,7 +535,7 @@ export class ClusterManagerClient { * Compute Engine instances. * * By default, the cluster is created in the project's - * [default network](https://cloud.google.com/vpc/docs/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 @@ -553,15 +553,15 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {google.container.v1.Cluster} request.cluster * Required. A [cluster - * resource](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters) + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.zones.clusters) * @param {string} request.parent * The parent (project and location) where the cluster will be created. - * Specified in the format 'projects/* /locations/*'. + * Specified in the format `projects/* /locations/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -646,7 +646,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -656,7 +656,7 @@ export class ClusterManagerClient { * Required. A description of the update. * @param {string} request.name * The name (project, location, cluster) of the cluster to update. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -741,7 +741,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -767,7 +767,7 @@ export class ClusterManagerClient { * @param {string} request.name * The name (project, location, cluster, node pool) of the node pool to * update. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. + * `projects/* /locations/* /clusters/* /nodePools/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -856,7 +856,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -870,7 +870,7 @@ export class ClusterManagerClient { * @param {string} request.name * The name (project, location, cluster, node pool) of the node pool to set * autoscaler settings. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. + * `projects/* /locations/* /clusters/* /nodePools/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -963,7 +963,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -977,7 +977,7 @@ export class ClusterManagerClient { * * "none" - no metrics will be exported from the cluster * @param {string} request.name * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1068,7 +1068,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -1084,7 +1084,7 @@ export class ClusterManagerClient { * * "none" - no metrics will be exported from the cluster * @param {string} request.name * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1173,7 +1173,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -1184,7 +1184,7 @@ export class ClusterManagerClient { * cluster. * @param {string} request.name * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1269,7 +1269,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -1277,7 +1277,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string[]} request.locations * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster's nodes + * [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. @@ -1285,7 +1285,7 @@ export class ClusterManagerClient { * This list must always include the cluster's primary zone. * @param {string} request.name * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1370,7 +1370,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -1389,7 +1389,7 @@ export class ClusterManagerClient { * - "-": picks the default Kubernetes version * @param {string} request.name * The name (project, location, cluster) of the cluster to update. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1476,7 +1476,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -1488,7 +1488,7 @@ export class ClusterManagerClient { * Required. A description of the update. * @param {string} request.name * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1581,7 +1581,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -1589,7 +1589,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster) of the cluster to delete. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1674,11 +1674,11 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) to return operations for, or `-` for + * [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. * @param {string} request.parent * The parent (project and location) where the operations will be listed. - * Specified in the format 'projects/* /locations/*'. + * Specified in the format `projects/* /locations/*`. * Location "-" matches all zones and all regions. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -1764,7 +1764,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.operationId @@ -1772,7 +1772,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, operation id) of the operation to get. - * Specified in the format 'projects/* /locations/* /operations/*'. + * Specified in the format `projects/* /locations/* /operations/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1857,14 +1857,14 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the operation resides. + * [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. * @param {string} request.operationId * Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, operation id) of the operation to cancel. - * Specified in the format 'projects/* /locations/* /operations/*'. + * Specified in the format `projects/* /locations/* /operations/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1949,11 +1949,11 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) to return operations for. + * [zone](https://cloud.google.com/compute/docs/zones#available) to return operations for. * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project and location) of the server config to get, - * specified in the format 'projects/* /locations/*'. + * specified in the format `projects/* /locations/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2038,7 +2038,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -2046,7 +2046,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.parent * The parent (project, location, cluster id) where the node pools will be - * listed. Specified in the format 'projects/* /locations/* /clusters/*'. + * listed. Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2131,7 +2131,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -2143,7 +2143,7 @@ export class ClusterManagerClient { * @param {string} request.name * The name (project, location, cluster, node pool id) of the node pool to * get. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. + * `projects/* /locations/* /clusters/* /nodePools/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2228,7 +2228,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -2239,7 +2239,7 @@ export class ClusterManagerClient { * @param {string} request.parent * The parent (project, location, cluster id) where the node pool will be * created. Specified in the format - * 'projects/* /locations/* /clusters/*'. + * `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2324,7 +2324,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -2336,7 +2336,7 @@ export class ClusterManagerClient { * @param {string} request.name * The name (project, location, cluster, node pool id) of the node pool to * delete. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. + * `projects/* /locations/* /clusters/* /nodePools/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2426,7 +2426,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -2438,7 +2438,7 @@ export class ClusterManagerClient { * @param {string} request.name * The name (project, location, cluster, node pool id) of the node poll to * rollback upgrade. - * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. + * Specified in the format `projects/* /locations/* /clusters/* /nodePools/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2535,7 +2535,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -2549,7 +2549,7 @@ export class ClusterManagerClient { * @param {string} request.name * The name (project, location, cluster, node pool id) of the node pool to set * management properties. Specified in the format - * 'projects/* /locations/* /clusters/* /nodePools/*'. + * `projects/* /locations/* /clusters/* /nodePools/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2638,7 +2638,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -2655,7 +2655,7 @@ export class ClusterManagerClient { * resource to get the latest fingerprint. * @param {string} request.name * The name (project, location, cluster id) of the cluster to set labels. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2740,7 +2740,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -2750,7 +2750,7 @@ export class ClusterManagerClient { * Required. Whether ABAC authorization will be enabled in the cluster. * @param {string} request.name * The name (project, location, cluster id) of the cluster to set legacy abac. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2835,7 +2835,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -2843,7 +2843,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster id) of the cluster to start IP - * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. + * rotation. Specified in the format `projects/* /locations/* /clusters/*`. * @param {boolean} request.rotateCredentials * Whether to rotate credentials during IP rotation. * @param {object} [options] @@ -2930,7 +2930,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -2938,7 +2938,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.name * The name (project, location, cluster id) of the cluster to complete IP - * rotation. Specified in the format 'projects/* /locations/* /clusters/*'. + * rotation. Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3025,7 +3025,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -3039,7 +3039,7 @@ export class ClusterManagerClient { * @param {string} request.name * The name (project, location, cluster, node pool id) of the node pool to set * size. - * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. + * Specified in the format `projects/* /locations/* /clusters/* /nodePools/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3124,7 +3124,7 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [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. * @param {string} request.clusterId @@ -3134,7 +3134,7 @@ export class ClusterManagerClient { * Required. Configuration options for the NetworkPolicy feature. * @param {string} request.name * The name (project, location, cluster id) of the cluster to set networking - * policy. Specified in the format 'projects/* /locations/* /clusters/*'. + * policy. Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3224,7 +3224,7 @@ export class ClusterManagerClient { * number](https://support.google.com/cloud/answer/6158840). * @param {string} request.zone * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/#available) in which the cluster + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster * resides. * @param {string} request.clusterId * Required. The name of the cluster to update. @@ -3234,7 +3234,7 @@ export class ClusterManagerClient { * @param {string} request.name * The name (project, location, cluster id) of the cluster to set maintenance * policy. - * Specified in the format 'projects/* /locations/* /clusters/*'. + * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3324,7 +3324,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.parent * The parent project where subnetworks are usable. - * Specified in the format 'projects/*'. + * Specified in the format `projects/*`. * @param {string} request.filter * Filtering currently only supports equality on the networkProjectId and must * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` @@ -3418,7 +3418,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.parent * The parent project where subnetworks are usable. - * Specified in the format 'projects/*'. + * Specified in the format `projects/*`. * @param {string} request.filter * Filtering currently only supports equality on the networkProjectId and must * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` @@ -3468,7 +3468,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.parent * The parent project where subnetworks are usable. - * Specified in the format 'projects/*'. + * Specified in the format `projects/*`. * @param {string} request.filter * Filtering currently only supports equality on the networkProjectId and must * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 4c47c93a680..dc0a648ed69 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -1,12 +1,25 @@ { - "updateTime": "2020-04-11T00:01:09.907067Z", "sources": [ + { + "git": { + "name": ".", + "remote": "git@github.com:googleapis/nodejs-cloud-container.git", + "sha": "16c326bfac5b980db1f4beb5e913e816a967d8cb" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "1bd77e8ce6f953ac641af7966d0c52646afc16a8", + "internalRef": "305974465" + } + }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6f32150677c9784f3c3a7e1949472bd29c9d72c5", - "log": "6f32150677c9784f3c3a7e1949472bd29c9d72c5\nfix: installs test_utils from its common repo (#480)\n\n\n74ce986d3b5431eb66985e9a00c4eb45295a4020\nfix: stop recording update_time in synth.metadata (#478)\n\n\n7f8e62aa3edd225f76347a16f92e400661fdfb52\nchore(java): release-please only updates non maven versions in README (#476)\n\nPrevent release-please and synthtool from fighting over the released library version. Synthtool updates the install snippets from the samples pom.xml files so the bots fight if they are temporarily out of sync after a release.\nc7e0e517d7f46f77bebd27da2e5afcaa6eee7e25\nbuild(java): fix nightly integration test config to run integrations (#465)\n\nThis was only running the units.\nbd69a2aa7b70875f3c988e269706b22fefbef40e\nbuild(java): fix retry_with_backoff when -e option set (#475)\n\n\nd9b173c427bfa0c6cca818233562e7e8841a357c\nfix: record version of working repo in synth.metadata (#473)\n\nPartial revert of b37cf74d12e9a42b9de9e61a4f26133d7cd9c168.\nf73a541770d95a609e5be6bf6b3b220d17cefcbe\nfeat(discogapic): allow local discovery-artifact-manager (#474)\n\n\n8cf0f5d93a70c3dcb0b4999d3152c46d4d9264bf\ndoc: describe the Autosynth & Synthtool protocol (#472)\n\n* doc: describe the Autosynth & Synthtool protocol\n\n* Accommodate review comments.\n980baaa738a1ad8fa02b4fdbd56be075ee77ece5\nfix: pin sphinx to <3.0.0 as new version causes new error (#471)\n\nThe error `toctree contains reference to document changlelog that doesn't have a title: no link will be generated` occurs as of 3.0.0. Pinning to 2.x until we address the docs build issue.\n\nTowards #470\n\nI did this manually for python-datastore https://github.com/googleapis/python-datastore/pull/22\n928b2998ac5023e7c7e254ab935f9ef022455aad\nchore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.15 (#466)\n\nCo-authored-by: Jeffrey Rennie \n188f1b1d53181f739b98f8aa5d40cfe99eb90c47\nfix: allow local and external deps to be specified (#469)\n\nModify noxfile.py to allow local and external dependencies for\nsystem tests to be specified.\n" + "sha": "8eff3790f88b50706a0c4b6a20b385f24e9ac4e7" } } ], diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index f9e9219d22e..68ef6f6c0fb 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -7,7 +7,6 @@ AUTOSYNTH_MULTIPLE_COMMITS = True - # Run the gapic generator gapic = gcp.GAPICMicrogenerator() version = 'v1' @@ -29,24 +28,6 @@ templates = common_templates.node_library(source_location='build/src') s.copy(templates) -# fix broken doc links - -s.replace("src/v1/doc/google/container/v1/doc_cluster_service.js", - "https:\/\/cloud\.google\.com\/kubernetes-engine\/docs\/reference\/rest\/v1\/projects\.zones\.clusters\.nodePool", - "https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools#resource-nodepool") - -s.replace('src/v1/*.ts', - '/compute/docs/zones', - 'https://cloud.google.com/compute/docs/regions-zones/') - -s.replace('src/v1/*.ts', - '/compute/docs/networks-and-firewalls', - 'https://cloud.google.com/vpc/docs/firewalls') - -s.replace('src/v1/*.ts', - "/container-engine/reference/rest/v1/projects.zones.clusters", - "https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters") - # Node.js specific cleanup subprocess.run(['npm', 'install']) subprocess.run(['npm', 'run', 'lint']) diff --git a/packages/google-container/system-test/install.ts b/packages/google-container/system-test/install.ts index c4d80e9c0c8..4c1ba3eb79a 100644 --- a/packages/google-container/system-test/install.ts +++ b/packages/google-container/system-test/install.ts @@ -21,7 +21,7 @@ import {readFileSync} from 'fs'; import {describe, it} from 'mocha'; describe('typescript consumer tests', () => { - it('should have correct type signature for typescript users', async function() { + it('should have correct type signature for typescript users', async function () { this.timeout(300000); const options = { packageDir: process.cwd(), // path to your module. @@ -35,7 +35,7 @@ describe('typescript consumer tests', () => { await packNTest(options); // will throw upon error. }); - it('should have correct type signature for javascript users', async function() { + it('should have correct type signature for javascript users', async function () { this.timeout(300000); const options = { packageDir: process.cwd(), // path to your module. diff --git a/packages/google-container/system-test/smoke.ts b/packages/google-container/system-test/smoke.ts new file mode 100644 index 00000000000..d47bced532d --- /dev/null +++ b/packages/google-container/system-test/smoke.ts @@ -0,0 +1,31 @@ +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +import {describe, it} from 'mocha'; +import {ClusterManagerClient} from '../src'; +import * as assert from 'assert'; + +describe('ClusterManagerSmokeTest', () => { + it('successfully makes a call to the service', async () => { + const client = new ClusterManagerClient(); + const projectId = await client.getProjectId(); + const zone = 'us-central1-a'; + const request = { + projectId, + zone, + }; + const [result] = await client.listClusters(request); + assert.ok(result); + }); +}); diff --git a/packages/google-container/test/.eslintrc.yml b/packages/google-container/test/.eslintrc.yml deleted file mode 100644 index cd088a97818..00000000000 --- a/packages/google-container/test/.eslintrc.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -rules: - node/no-unpublished-require: off diff --git a/packages/google-container/tslint.json b/packages/google-container/tslint.json deleted file mode 100644 index 617dc975bae..00000000000 --- a/packages/google-container/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "gts/tslint.json" -} From a8acf8ca21622613181d85eb70d15c7095894fdb Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Mon, 13 Apr 2020 16:48:42 -0700 Subject: [PATCH 207/371] fix: remove unused files from package (#333) --- packages/google-container/.eslintignore | 3 +- packages/google-container/.prettierignore | 9 +- .../src/v1/doc/google/protobuf/doc_empty.js | 34 ----- .../v1/doc/google/protobuf/doc_timestamp.js | 119 ------------------ packages/google-container/synth.metadata | 10 +- packages/google-container/synth.py | 2 +- 6 files changed, 15 insertions(+), 162 deletions(-) delete mode 100644 packages/google-container/src/v1/doc/google/protobuf/doc_empty.js delete mode 100644 packages/google-container/src/v1/doc/google/protobuf/doc_timestamp.js diff --git a/packages/google-container/.eslintignore b/packages/google-container/.eslintignore index 09b31fe735a..9340ad9b86d 100644 --- a/packages/google-container/.eslintignore +++ b/packages/google-container/.eslintignore @@ -1,5 +1,6 @@ **/node_modules -src/**/doc/* +**/coverage +test/fixtures build/ docs/ protos/ diff --git a/packages/google-container/.prettierignore b/packages/google-container/.prettierignore index f6fac98b0a8..9340ad9b86d 100644 --- a/packages/google-container/.prettierignore +++ b/packages/google-container/.prettierignore @@ -1,3 +1,6 @@ -node_modules/* -samples/node_modules/* -src/**/doc/* +**/node_modules +**/coverage +test/fixtures +build/ +docs/ +protos/ diff --git a/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js b/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js deleted file mode 100644 index 0b446dd9ce4..00000000000 --- a/packages/google-container/src/v1/doc/google/protobuf/doc_empty.js +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// 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. - -// Note: this file is purely for documentation. Any contents are not expected -// to be loaded as the JS file. - -/** - * A generic empty message that you can re-use to avoid defining duplicated - * empty messages in your APIs. A typical example is to use it as the request - * or the response type of an API method. For instance: - * - * service Foo { - * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); - * } - * - * The JSON representation for `Empty` is empty JSON object `{}`. - * @typedef Empty - * @memberof google.protobuf - * @see [google.protobuf.Empty definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/empty.proto} - */ -const Empty = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; \ No newline at end of file diff --git a/packages/google-container/src/v1/doc/google/protobuf/doc_timestamp.js b/packages/google-container/src/v1/doc/google/protobuf/doc_timestamp.js deleted file mode 100644 index 3bc1e986897..00000000000 --- a/packages/google-container/src/v1/doc/google/protobuf/doc_timestamp.js +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// 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. - -// Note: this file is purely for documentation. Any contents are not expected -// to be loaded as the JS file. - -/** - * A Timestamp represents a point in time independent of any time zone or local - * calendar, encoded as a count of seconds and fractions of seconds at - * nanosecond resolution. The count is relative to an epoch at UTC midnight on - * January 1, 1970, in the proleptic Gregorian calendar which extends the - * Gregorian calendar backwards to year one. - * - * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap - * second table is needed for interpretation, using a [24-hour linear - * smear](https://developers.google.com/time/smear). - * - * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By - * restricting to that range, we ensure that we can convert to and from [RFC - * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. - * - * # Examples - * - * Example 1: Compute Timestamp from POSIX `time()`. - * - * Timestamp timestamp; - * timestamp.set_seconds(time(NULL)); - * timestamp.set_nanos(0); - * - * Example 2: Compute Timestamp from POSIX `gettimeofday()`. - * - * struct timeval tv; - * gettimeofday(&tv, NULL); - * - * Timestamp timestamp; - * timestamp.set_seconds(tv.tv_sec); - * timestamp.set_nanos(tv.tv_usec * 1000); - * - * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. - * - * FILETIME ft; - * GetSystemTimeAsFileTime(&ft); - * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; - * - * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z - * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. - * Timestamp timestamp; - * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); - * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); - * - * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. - * - * long millis = System.currentTimeMillis(); - * - * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) - * .setNanos((int) ((millis % 1000) * 1000000)).build(); - * - * - * Example 5: Compute Timestamp from current time in Python. - * - * timestamp = Timestamp() - * timestamp.GetCurrentTime() - * - * # JSON Mapping - * - * In JSON format, the Timestamp type is encoded as a string in the - * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the - * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" - * where {year} is always expressed using four digits while {month}, {day}, - * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional - * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), - * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone - * is required. A proto3 JSON serializer should always use UTC (as indicated by - * "Z") when printing the Timestamp type and a proto3 JSON parser should be - * able to accept both UTC and other timezones (as indicated by an offset). - * - * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past - * 01:30 UTC on January 15, 2017. - * - * In JavaScript, one can convert a Date object to this format using the - * standard - * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) - * method. In Python, a standard `datetime.datetime` object can be converted - * to this format using - * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with - * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use - * the Joda Time's [`ISODateTimeFormat.dateTime()`](https://cloud.google.com - * http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D - * ) to obtain a formatter capable of generating timestamps in this format. - * - * @property {number} seconds - * Represents seconds of UTC time since Unix epoch - * 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to - * 9999-12-31T23:59:59Z inclusive. - * - * @property {number} nanos - * Non-negative fractions of a second at nanosecond resolution. Negative - * second values with fractions must still have non-negative nanos values - * that count forward in time. Must be from 0 to 999,999,999 - * inclusive. - * - * @typedef Timestamp - * @memberof google.protobuf - * @see [google.protobuf.Timestamp definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/timestamp.proto} - */ -const Timestamp = { - // This is for documentation. Actual contents will be loaded by gRPC. -}; \ No newline at end of file diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index dc0a648ed69..edb87e434ac 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,22 +4,24 @@ "git": { "name": ".", "remote": "git@github.com:googleapis/nodejs-cloud-container.git", - "sha": "16c326bfac5b980db1f4beb5e913e816a967d8cb" + "sha": "cc856416dfd87842e91bc2d3145fdc236454492a" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1bd77e8ce6f953ac641af7966d0c52646afc16a8", - "internalRef": "305974465" + "sha": "26523a96798ce1a6caa1b3c912119059cfcc98a7", + "internalRef": "306320014", + "log": "26523a96798ce1a6caa1b3c912119059cfcc98a7\nchore: delete gapic config for resourcemanager/v2\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306320014\n\n35672e7936b923eff048d0ee1529faa163cc81b8\nchore: enable gapicv2 for datacatalog/v1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306318928\n\ndea1f52034d188ca371c3a70c716ca2a6b3f2aa1\nchore: delete gapic config for language/v1beta1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306298030\n\ndf955af5d9508cf9215de6f1fbdad033d5b8fef6\nchore: enable gapicv2 for language/v1beta2 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306297639\n\ne2a59ff2f861b1b92b2f15b242780dccddd77ab9\nchore: enable gapicv2 for bigquery/reservation/v1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306297615\n\nc9942c00e8f35b5b37cd589ef7a0323aeda264e2\nchore: enable gapicv2 for datacatalog/v1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306297587\n\nf561f57eea013327be27d8f6799b3cc2d18ee804\nbazel: upgrade gapic-generator-go to v0.13.2\n\nChanges include:\n* update Bazel rules_go to v0.22.3\n* update Bazel Go repositories with latest\n* fix Bazel go_gapic_assembly_pkg archive contents path\n\nPiperOrigin-RevId: 306294636\n\na34f4eb96a94bfd5b3e7f8de253db28d0a3e9237\nchore: enable gapicv2 for asset/v1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306283252\n\n4efd71279f0781579ced60c374336ce1b8b8cea8\nchore: enable gapicv2 for asset/v1p4beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306282838\n\n789fd7e0680b04a589447139811d55c5d1f34afe\nchore: enable gapicv2 for asset/v1p1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306282062\n\n0feb08065d91d6deebffef3019751f0619a72140\nchore: enable gapicv2 for asset/v1p2beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306281797\n\n9ea892ebe8a7cd66da9bd62eb7086b8dc2ddd559\nchore: enable gapicv2 for vision/v1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306281271\n\n4d61e1cb40184a7ad63ef37b1813f6608718674a\nAdd speech adaptation, phrase sets and custom classes.\n\nPiperOrigin-RevId: 306280989\n\n3824f547aa44df459580615c73cabb30a2a78ee0\nfeat: Adding Retry policy for OS Config V1Beta AgentEndpointService\n\nPiperOrigin-RevId: 306254195\n\n" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8eff3790f88b50706a0c4b6a20b385f24e9ac4e7" + "sha": "3df869dd6eb546ef13beeb7a9efa6ee0226afafd", + "log": "3df869dd6eb546ef13beeb7a9efa6ee0226afafd\nci: add dependency list completeness check (#490)\n\n\n682c0c37d1054966ca662a44259e96cc7aea4413\nbuild(nodejs): update lint ignore rules (#488)\n\n\n97c7ccfdceb927db1cbe6f3bb09616aa02bafd89\ndoc: document context-aware commit flags (#481)\n\nAlso, delete obsolete blurb about cleaning up old, dead files.\n\nCo-authored-by: Jeff Ching \n" } } ], diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index 68ef6f6c0fb..d2e0248c93b 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -30,5 +30,5 @@ # Node.js specific cleanup subprocess.run(['npm', 'install']) -subprocess.run(['npm', 'run', 'lint']) +subprocess.run(['npm', 'run', 'fix']) subprocess.run(['npm', 'run', 'compile-protos']) From 76bf871294864384adc1ab9261c04fbced6ad64f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 15 Apr 2020 17:32:08 +0200 Subject: [PATCH 208/371] chore(deps): update dependency ts-loader to v7 (#334) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [ts-loader](https://togithub.com/TypeStrong/ts-loader) | devDependencies | major | [`^6.2.1` -> `^7.0.0`](https://renovatebot.com/diffs/npm/ts-loader/6.2.2/7.0.0) | --- ### Release Notes
TypeStrong/ts-loader ### [`v7.0.0`](https://togithub.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md#v700) [Compare Source](https://togithub.com/TypeStrong/ts-loader/compare/v6.2.2...v7.0.0) - [Project reference support enhancements](https://togithub.com/TypeStrong/ts-loader/pull/1076) - thanks [@​sheetalkamat](https://togithub.com/sheetalkamat)! - Following the end of life of Node 8, `ts-loader` no longer supports Node 8 **BREAKING CHANGE**
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index f55797814e8..be8bcd59cca 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -58,7 +58,7 @@ "null-loader": "^3.0.0", "pack-n-play": "^1.0.0-2", "sinon": "^9.0.1", - "ts-loader": "^6.2.1", + "ts-loader": "^7.0.0", "typescript": "^3.8.3", "webpack": "^4.41.2", "webpack-cli": "^3.3.10" From a33660c6661a991de431a7b46eb06b394e16fa22 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 15 Apr 2020 18:31:42 +0200 Subject: [PATCH 209/371] chore(deps): update dependency null-loader to v4 (#335) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [null-loader](https://togithub.com/webpack-contrib/null-loader) | devDependencies | major | [`^3.0.0` -> `^4.0.0`](https://renovatebot.com/diffs/npm/null-loader/3.0.0/4.0.0) | --- ### Release Notes
webpack-contrib/null-loader ### [`v4.0.0`](https://togithub.com/webpack-contrib/null-loader/blob/master/CHANGELOG.md#​400-httpsgithubcomwebpack-contribnull-loadercomparev300v400-2020-04-15) [Compare Source](https://togithub.com/webpack-contrib/null-loader/compare/v3.0.0...v4.0.0) ##### Bug Fixes - support `webpack@5` ##### ⚠ BREAKING CHANGES - minimum required Nodejs version is `10.13`
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index be8bcd59cca..8a2649f1b3c 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -55,7 +55,7 @@ "jsdoc-region-tag": "^1.0.2", "linkinator": "^2.0.0", "mocha": "^7.0.0", - "null-loader": "^3.0.0", + "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", "sinon": "^9.0.1", "ts-loader": "^7.0.0", From 497710fd56f1a4c449c691c98c9f7f960e8d4857 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 20 Apr 2020 14:42:17 -0700 Subject: [PATCH 210/371] build: use codecov's action, now that it's authless (#499) (#336) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/73563d93-aea4-4354-9013-d19800d55cda/targets --- packages/google-container/synth.metadata | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index edb87e434ac..d28903080ba 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -3,25 +3,23 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/nodejs-cloud-container.git", - "sha": "cc856416dfd87842e91bc2d3145fdc236454492a" + "remote": "https://github.com/googleapis/nodejs-cloud-container.git", + "sha": "03201e01ff2f0d72e4e3a7f7d7d7548c1dc2a94b" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "26523a96798ce1a6caa1b3c912119059cfcc98a7", - "internalRef": "306320014", - "log": "26523a96798ce1a6caa1b3c912119059cfcc98a7\nchore: delete gapic config for resourcemanager/v2\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306320014\n\n35672e7936b923eff048d0ee1529faa163cc81b8\nchore: enable gapicv2 for datacatalog/v1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306318928\n\ndea1f52034d188ca371c3a70c716ca2a6b3f2aa1\nchore: delete gapic config for language/v1beta1\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306298030\n\ndf955af5d9508cf9215de6f1fbdad033d5b8fef6\nchore: enable gapicv2 for language/v1beta2 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306297639\n\ne2a59ff2f861b1b92b2f15b242780dccddd77ab9\nchore: enable gapicv2 for bigquery/reservation/v1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306297615\n\nc9942c00e8f35b5b37cd589ef7a0323aeda264e2\nchore: enable gapicv2 for datacatalog/v1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306297587\n\nf561f57eea013327be27d8f6799b3cc2d18ee804\nbazel: upgrade gapic-generator-go to v0.13.2\n\nChanges include:\n* update Bazel rules_go to v0.22.3\n* update Bazel Go repositories with latest\n* fix Bazel go_gapic_assembly_pkg archive contents path\n\nPiperOrigin-RevId: 306294636\n\na34f4eb96a94bfd5b3e7f8de253db28d0a3e9237\nchore: enable gapicv2 for asset/v1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306283252\n\n4efd71279f0781579ced60c374336ce1b8b8cea8\nchore: enable gapicv2 for asset/v1p4beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306282838\n\n789fd7e0680b04a589447139811d55c5d1f34afe\nchore: enable gapicv2 for asset/v1p1beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306282062\n\n0feb08065d91d6deebffef3019751f0619a72140\nchore: enable gapicv2 for asset/v1p2beta1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306281797\n\n9ea892ebe8a7cd66da9bd62eb7086b8dc2ddd559\nchore: enable gapicv2 for vision/v1 API\n\nCommitter: @miraleung\nPiperOrigin-RevId: 306281271\n\n4d61e1cb40184a7ad63ef37b1813f6608718674a\nAdd speech adaptation, phrase sets and custom classes.\n\nPiperOrigin-RevId: 306280989\n\n3824f547aa44df459580615c73cabb30a2a78ee0\nfeat: Adding Retry policy for OS Config V1Beta AgentEndpointService\n\nPiperOrigin-RevId: 306254195\n\n" + "sha": "42ee97c1b93a0e3759bbba3013da309f670a90ab", + "internalRef": "307114445" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "3df869dd6eb546ef13beeb7a9efa6ee0226afafd", - "log": "3df869dd6eb546ef13beeb7a9efa6ee0226afafd\nci: add dependency list completeness check (#490)\n\n\n682c0c37d1054966ca662a44259e96cc7aea4413\nbuild(nodejs): update lint ignore rules (#488)\n\n\n97c7ccfdceb927db1cbe6f3bb09616aa02bafd89\ndoc: document context-aware commit flags (#481)\n\nAlso, delete obsolete blurb about cleaning up old, dead files.\n\nCo-authored-by: Jeff Ching \n" + "sha": "19465d3ec5e5acdb01521d8f3bddd311bcbee28d" } } ], From 920295f9dfa21e97315629fbdba57d57658118d4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 21 Apr 2020 20:09:31 -0700 Subject: [PATCH 211/371] build: adopt changes to generator formatting (#337) --- packages/google-container/protos/protos.js | 920 ++++++++++----------- packages/google-container/synth.metadata | 2 +- 2 files changed, 461 insertions(+), 461 deletions(-) diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index c44e442bd9a..b693bf57b94 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1303,41 +1303,41 @@ NodeConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.machineType != null && message.hasOwnProperty("machineType")) + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); - if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.diskSizeGb); if (message.oauthScopes != null && message.oauthScopes.length) for (var i = 0; i < message.oauthScopes.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).string(message.oauthScopes[i]); - if (message.metadata != null && message.hasOwnProperty("metadata")) + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i) writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim(); - if (message.imageType != null && message.hasOwnProperty("imageType")) + if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.imageType); - if (message.labels != null && message.hasOwnProperty("labels")) + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.localSsdCount != null && message.hasOwnProperty("localSsdCount")) + if (message.localSsdCount != null && Object.hasOwnProperty.call(message, "localSsdCount")) writer.uint32(/* id 7, wireType 0 =*/56).int32(message.localSsdCount); if (message.tags != null && message.tags.length) for (var i = 0; i < message.tags.length; ++i) writer.uint32(/* id 8, wireType 2 =*/66).string(message.tags[i]); - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.serviceAccount); - if (message.preemptible != null && message.hasOwnProperty("preemptible")) + if (message.preemptible != null && Object.hasOwnProperty.call(message, "preemptible")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.preemptible); if (message.accelerators != null && message.accelerators.length) for (var i = 0; i < message.accelerators.length; ++i) $root.google.container.v1.AcceleratorConfig.encode(message.accelerators[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.diskType != null && message.hasOwnProperty("diskType")) + if (message.diskType != null && Object.hasOwnProperty.call(message, "diskType")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.diskType); - if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.minCpuPlatform); 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.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) + 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(); return writer; }; @@ -1800,9 +1800,9 @@ ShieldedInstanceConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableSecureBoot != null && message.hasOwnProperty("enableSecureBoot")) + if (message.enableSecureBoot != null && Object.hasOwnProperty.call(message, "enableSecureBoot")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableSecureBoot); - if (message.enableIntegrityMonitoring != null && message.hasOwnProperty("enableIntegrityMonitoring")) + if (message.enableIntegrityMonitoring != null && Object.hasOwnProperty.call(message, "enableIntegrityMonitoring")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableIntegrityMonitoring); return writer; }; @@ -2019,11 +2019,11 @@ NodeTaint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - if (message.effect != null && message.hasOwnProperty("effect")) + if (message.effect != null && Object.hasOwnProperty.call(message, "effect")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.effect); return writer; }; @@ -2200,7 +2200,7 @@ /** * Effect enum. * @name google.container.v1.NodeTaint.Effect - * @enum {string} + * @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 @@ -2319,17 +2319,17 @@ MasterAuth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.password != null && message.hasOwnProperty("password")) + if (message.password != null && Object.hasOwnProperty.call(message, "password")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); - if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) + 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 && message.hasOwnProperty("clusterCaCertificate")) + if (message.clusterCaCertificate != null && Object.hasOwnProperty.call(message, "clusterCaCertificate")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.clusterCaCertificate); - if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) + if (message.clientCertificate != null && Object.hasOwnProperty.call(message, "clientCertificate")) writer.uint32(/* id 101, wireType 2 =*/810).string(message.clientCertificate); - if (message.clientKey != null && message.hasOwnProperty("clientKey")) + if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey")) writer.uint32(/* id 102, wireType 2 =*/818).string(message.clientKey); return writer; }; @@ -2577,7 +2577,7 @@ ClientCertificateConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate")) + if (message.issueClientCertificate != null && Object.hasOwnProperty.call(message, "issueClientCertificate")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.issueClientCertificate); return writer; }; @@ -2800,15 +2800,15 @@ AddonsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) + 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 && message.hasOwnProperty("horizontalPodAutoscaling")) + 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 && message.hasOwnProperty("kubernetesDashboard")) + 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 && message.hasOwnProperty("networkPolicyConfig")) + 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 && message.hasOwnProperty("cloudRunConfig")) + 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(); return writer; }; @@ -3065,7 +3065,7 @@ HttpLoadBalancing.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3252,7 +3252,7 @@ HorizontalPodAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3439,7 +3439,7 @@ KubernetesDashboard.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3626,7 +3626,7 @@ NetworkPolicyConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3849,15 +3849,15 @@ PrivateClusterConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) + if (message.enablePrivateNodes != null && Object.hasOwnProperty.call(message, "enablePrivateNodes")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateNodes); - if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) + if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePrivateEndpoint); - if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) + if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4CidrBlock); - if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) + if (message.privateEndpoint != null && Object.hasOwnProperty.call(message, "privateEndpoint")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.privateEndpoint); - if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) + if (message.publicEndpoint != null && Object.hasOwnProperty.call(message, "publicEndpoint")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint); return writer; }; @@ -4098,9 +4098,9 @@ AuthenticatorGroupsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.securityGroup != null && message.hasOwnProperty("securityGroup")) + if (message.securityGroup != null && Object.hasOwnProperty.call(message, "securityGroup")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.securityGroup); return writer; }; @@ -4299,7 +4299,7 @@ CloudRunConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -4496,7 +4496,7 @@ MasterAuthorizedNetworksConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + 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) @@ -4723,9 +4723,9 @@ CidrBlock.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayName != null && message.hasOwnProperty("displayName")) + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) + if (message.cidrBlock != null && Object.hasOwnProperty.call(message, "cidrBlock")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock); return writer; }; @@ -4927,7 +4927,7 @@ LegacyAbac.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -5123,9 +5123,9 @@ NetworkPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.provider != null && message.hasOwnProperty("provider")) + if (message.provider != null && Object.hasOwnProperty.call(message, "provider")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); return writer; }; @@ -5281,7 +5281,7 @@ /** * Provider enum. * @name google.container.v1.NetworkPolicy.Provider - * @enum {string} + * @enum {number} * @property {number} PROVIDER_UNSPECIFIED=0 PROVIDER_UNSPECIFIED value * @property {number} CALICO=1 CALICO value */ @@ -5351,7 +5351,7 @@ BinaryAuthorization.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -5637,29 +5637,29 @@ IPAllocationPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) + if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases); - if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork")) + if (message.createSubnetwork != null && Object.hasOwnProperty.call(message, "createSubnetwork")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.createSubnetwork); - if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName")) + if (message.subnetworkName != null && Object.hasOwnProperty.call(message, "subnetworkName")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.subnetworkName); - if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4Cidr); - if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr")) + if (message.nodeIpv4Cidr != null && Object.hasOwnProperty.call(message, "nodeIpv4Cidr")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeIpv4Cidr); - if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) + if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.servicesIpv4Cidr); - if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) + if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.clusterSecondaryRangeName); - if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) + if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.servicesSecondaryRangeName); - if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) + if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4CidrBlock); - if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock")) + if (message.nodeIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrBlock")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.nodeIpv4CidrBlock); - if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) + if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.servicesIpv4CidrBlock); - if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) + if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.tpuIpv4CidrBlock); return writer; }; @@ -6396,27 +6396,27 @@ Cluster.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) + 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 && message.hasOwnProperty("masterAuth")) + 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 && message.hasOwnProperty("loggingService")) + if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.loggingService); - if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.monitoringService); - if (message.network != null && message.hasOwnProperty("network")) + if (message.network != null && Object.hasOwnProperty.call(message, "network")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.network); - if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4Cidr); - if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) + 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 && message.hasOwnProperty("subnetwork")) + 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) @@ -6424,75 +6424,75 @@ 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 && message.hasOwnProperty("enableKubernetesAlpha")) + if (message.enableKubernetesAlpha != null && Object.hasOwnProperty.call(message, "enableKubernetesAlpha")) writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableKubernetesAlpha); - if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) + 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 && message.hasOwnProperty("labelFingerprint")) + if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) writer.uint32(/* id 16, wireType 2 =*/130).string(message.labelFingerprint); - if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) + 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 && message.hasOwnProperty("networkPolicy")) + 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 && message.hasOwnProperty("ipAllocationPolicy")) + 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 && message.hasOwnProperty("masterAuthorizedNetworksConfig")) + 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 && message.hasOwnProperty("maintenancePolicy")) + 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 && message.hasOwnProperty("binaryAuthorization")) + 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 && message.hasOwnProperty("autoscaling")) + 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 && message.hasOwnProperty("networkConfig")) + 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 && message.hasOwnProperty("defaultMaxPodsConstraint")) + 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 && message.hasOwnProperty("resourceUsageExportConfig")) + 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 && message.hasOwnProperty("authenticatorGroupsConfig")) + 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 && message.hasOwnProperty("privateClusterConfig")) + 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 && message.hasOwnProperty("databaseEncryption")) + 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 && message.hasOwnProperty("verticalPodAutoscaling")) + 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 && message.hasOwnProperty("selfLink")) + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 101, wireType 2 =*/810).string(message.zone); - if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) writer.uint32(/* id 102, wireType 2 =*/818).string(message.endpoint); - if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion")) + if (message.initialClusterVersion != null && Object.hasOwnProperty.call(message, "initialClusterVersion")) writer.uint32(/* id 103, wireType 2 =*/826).string(message.initialClusterVersion); - if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion")) + if (message.currentMasterVersion != null && Object.hasOwnProperty.call(message, "currentMasterVersion")) writer.uint32(/* id 104, wireType 2 =*/834).string(message.currentMasterVersion); - if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion")) + if (message.currentNodeVersion != null && Object.hasOwnProperty.call(message, "currentNodeVersion")) writer.uint32(/* id 105, wireType 2 =*/842).string(message.currentNodeVersion); - if (message.createTime != null && message.hasOwnProperty("createTime")) + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) writer.uint32(/* id 106, wireType 2 =*/850).string(message.createTime); - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 107, wireType 0 =*/856).int32(message.status); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 108, wireType 2 =*/866).string(message.statusMessage); - if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize")) + if (message.nodeIpv4CidrSize != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrSize")) writer.uint32(/* id 109, wireType 0 =*/872).int32(message.nodeIpv4CidrSize); - if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) + 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 && message.hasOwnProperty("currentNodeCount")) + if (message.currentNodeCount != null && Object.hasOwnProperty.call(message, "currentNodeCount")) writer.uint32(/* id 112, wireType 0 =*/896).int32(message.currentNodeCount); - if (message.expireTime != null && message.hasOwnProperty("expireTime")) + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) writer.uint32(/* id 113, wireType 2 =*/906).string(message.expireTime); - if (message.location != null && message.hasOwnProperty("location")) + if (message.location != null && Object.hasOwnProperty.call(message, "location")) writer.uint32(/* id 114, wireType 2 =*/914).string(message.location); - if (message.enableTpu != null && message.hasOwnProperty("enableTpu")) + if (message.enableTpu != null && Object.hasOwnProperty.call(message, "enableTpu")) writer.uint32(/* id 115, wireType 0 =*/920).bool(message.enableTpu); - if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) + 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) @@ -7355,7 +7355,7 @@ /** * Status enum. * @name google.container.v1.Cluster.Status - * @enum {string} + * @enum {number} * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value * @property {number} PROVISIONING=1 PROVISIONING value * @property {number} RUNNING=2 RUNNING value @@ -7571,38 +7571,38 @@ ClusterUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) + if (message.desiredNodeVersion != null && Object.hasOwnProperty.call(message, "desiredNodeVersion")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.desiredNodeVersion); - if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService")) + if (message.desiredMonitoringService != null && Object.hasOwnProperty.call(message, "desiredMonitoringService")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.desiredMonitoringService); - if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) + 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 && message.hasOwnProperty("desiredNodePoolId")) + if (message.desiredNodePoolId != null && Object.hasOwnProperty.call(message, "desiredNodePoolId")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.desiredNodePoolId); - if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType")) + if (message.desiredImageType != null && Object.hasOwnProperty.call(message, "desiredImageType")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.desiredImageType); - if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling")) + 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 && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) + 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 && message.hasOwnProperty("desiredClusterAutoscaling")) + 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 && message.hasOwnProperty("desiredBinaryAuthorization")) + 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 && message.hasOwnProperty("desiredLoggingService")) + if (message.desiredLoggingService != null && Object.hasOwnProperty.call(message, "desiredLoggingService")) writer.uint32(/* id 19, wireType 2 =*/154).string(message.desiredLoggingService); - if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig")) + 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 && message.hasOwnProperty("desiredVerticalPodAutoscaling")) + 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 && message.hasOwnProperty("desiredIntraNodeVisibilityConfig")) + 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 && message.hasOwnProperty("desiredDatabaseEncryption")) + 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 && message.hasOwnProperty("desiredMasterVersion")) + if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); return writer; }; @@ -8125,27 +8125,27 @@ Operation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationType != null && message.hasOwnProperty("operationType")) + if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operationType); - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.selfLink != null && message.hasOwnProperty("selfLink")) + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.selfLink); - if (message.targetLink != null && message.hasOwnProperty("targetLink")) + if (message.targetLink != null && Object.hasOwnProperty.call(message, "targetLink")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetLink); - if (message.detail != null && message.hasOwnProperty("detail")) + if (message.detail != null && Object.hasOwnProperty.call(message, "detail")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.detail); - if (message.location != null && message.hasOwnProperty("location")) + if (message.location != null && Object.hasOwnProperty.call(message, "location")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.location); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTime); - if (message.endTime != null && message.hasOwnProperty("endTime")) + 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) @@ -8571,7 +8571,7 @@ /** * Status enum. * @name google.container.v1.Operation.Status - * @enum {string} + * @enum {number} * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value * @property {number} PENDING=1 PENDING value * @property {number} RUNNING=2 RUNNING value @@ -8591,7 +8591,7 @@ /** * Type enum. * @name google.container.v1.Operation.Type - * @enum {string} + * @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 @@ -8718,13 +8718,13 @@ CreateClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.cluster != null && message.hasOwnProperty("cluster")) + 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 && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); return writer; }; @@ -8977,13 +8977,13 @@ GetClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -9240,15 +9240,15 @@ UpdateClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.update != null && message.hasOwnProperty("update")) + 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 && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -9539,19 +9539,19 @@ UpdateNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion")) + if (message.nodeVersion != null && Object.hasOwnProperty.call(message, "nodeVersion")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeVersion); - if (message.imageType != null && message.hasOwnProperty("imageType")) + if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.imageType); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); return writer; }; @@ -9850,17 +9850,17 @@ SetNodePoolAutoscalingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + 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 && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -10144,15 +10144,15 @@ SetLoggingServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.loggingService != null && message.hasOwnProperty("loggingService")) + if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.loggingService); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -10420,15 +10420,15 @@ SetMonitoringServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.monitoringService); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -10696,15 +10696,15 @@ SetAddonsConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) + 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 && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -10978,16 +10978,16 @@ SetLocationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + 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 && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -11270,15 +11270,15 @@ UpdateMasterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.masterVersion != null && message.hasOwnProperty("masterVersion")) + if (message.masterVersion != null && Object.hasOwnProperty.call(message, "masterVersion")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.masterVersion); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -11555,17 +11555,17 @@ SetMasterAuthRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.action != null && message.hasOwnProperty("action")) + if (message.action != null && Object.hasOwnProperty.call(message, "action")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action); - if (message.update != null && message.hasOwnProperty("update")) + 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 && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -11780,7 +11780,7 @@ /** * Action enum. * @name google.container.v1.SetMasterAuthRequest.Action - * @enum {string} + * @enum {number} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} SET_PASSWORD=1 SET_PASSWORD value * @property {number} GENERATE_PASSWORD=2 GENERATE_PASSWORD value @@ -11881,13 +11881,13 @@ DeleteClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; @@ -12126,11 +12126,11 @@ ListClustersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.parent != null && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); return writer; }; @@ -12614,13 +12614,13 @@ GetOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationId != null && message.hasOwnProperty("operationId")) + if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -12859,11 +12859,11 @@ ListOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.parent != null && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); return writer; }; @@ -13100,13 +13100,13 @@ CancelOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationId != null && message.hasOwnProperty("operationId")) + if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; @@ -13592,11 +13592,11 @@ GetServerConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; @@ -13845,12 +13845,12 @@ ServerConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + if (message.defaultClusterVersion != null && Object.hasOwnProperty.call(message, "defaultClusterVersion")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultClusterVersion); if (message.validNodeVersions != null && message.validNodeVersions.length) for (var i = 0; i < message.validNodeVersions.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).string(message.validNodeVersions[i]); - if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + if (message.defaultImageType != null && Object.hasOwnProperty.call(message, "defaultImageType")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultImageType); if (message.validImageTypes != null && message.validImageTypes.length) for (var i = 0; i < message.validImageTypes.length; ++i) @@ -14168,15 +14168,15 @@ CreateNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePool != null && message.hasOwnProperty("nodePool")) + if (message.nodePool != null && Object.hasOwnProperty.call(message, "nodePool")) $root.google.container.v1.NodePool.encode(message.nodePool, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parent != null && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.parent); return writer; }; @@ -14449,15 +14449,15 @@ DeleteNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -14716,13 +14716,13 @@ ListNodePoolsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.parent != null && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); return writer; }; @@ -14979,15 +14979,15 @@ GetNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -15329,30 +15329,30 @@ NodePool.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.config != null && message.hasOwnProperty("config")) + if (message.config != null && Object.hasOwnProperty.call(message, "config")) $root.google.container.v1.NodeConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.management != null && message.hasOwnProperty("management")) + if (message.management != null && Object.hasOwnProperty.call(message, "management")) $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) + if (message.maxPodsConstraint != null && Object.hasOwnProperty.call(message, "maxPodsConstraint")) $root.google.container.v1.MaxPodsConstraint.encode(message.maxPodsConstraint, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) + if (message.podIpv4CidrSize != null && Object.hasOwnProperty.call(message, "podIpv4CidrSize")) writer.uint32(/* id 7, wireType 0 =*/56).int32(message.podIpv4CidrSize); - if (message.selfLink != null && message.hasOwnProperty("selfLink")) + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) writer.uint32(/* id 101, wireType 2 =*/810).string(message.version); if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) for (var i = 0; i < message.instanceGroupUrls.length; ++i) writer.uint32(/* id 102, wireType 2 =*/818).string(message.instanceGroupUrls[i]); - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 103, wireType 0 =*/824).int32(message.status); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 104, wireType 2 =*/834).string(message.statusMessage); if (message.conditions != null && message.conditions.length) for (var i = 0; i < message.conditions.length; ++i) @@ -15712,7 +15712,7 @@ /** * Status enum. * @name google.container.v1.NodePool.Status - * @enum {string} + * @enum {number} * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value * @property {number} PROVISIONING=1 PROVISIONING value * @property {number} RUNNING=2 RUNNING value @@ -15810,11 +15810,11 @@ NodeManagement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + if (message.autoUpgrade != null && Object.hasOwnProperty.call(message, "autoUpgrade")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.autoUpgrade); - if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + if (message.autoRepair != null && Object.hasOwnProperty.call(message, "autoRepair")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autoRepair); - if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) + if (message.upgradeOptions != null && Object.hasOwnProperty.call(message, "upgradeOptions")) $root.google.container.v1.AutoUpgradeOptions.encode(message.upgradeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; @@ -16038,9 +16038,9 @@ AutoUpgradeOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + if (message.autoUpgradeStartTime != null && Object.hasOwnProperty.call(message, "autoUpgradeStartTime")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoUpgradeStartTime); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); return writer; }; @@ -16248,9 +16248,9 @@ MaintenancePolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && message.hasOwnProperty("window")) + if (message.window != null && Object.hasOwnProperty.call(message, "window")) $root.google.container.v1.MaintenanceWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) + if (message.resourceVersion != null && Object.hasOwnProperty.call(message, "resourceVersion")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.resourceVersion); return writer; }; @@ -16487,11 +16487,11 @@ MaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) + if (message.dailyMaintenanceWindow != null && Object.hasOwnProperty.call(message, "dailyMaintenanceWindow")) $root.google.container.v1.DailyMaintenanceWindow.encode(message.dailyMaintenanceWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) + if (message.recurringWindow != null && Object.hasOwnProperty.call(message, "recurringWindow")) $root.google.container.v1.RecurringTimeWindow.encode(message.recurringWindow, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maintenanceExclusions != null && message.hasOwnProperty("maintenanceExclusions")) + if (message.maintenanceExclusions != null && Object.hasOwnProperty.call(message, "maintenanceExclusions")) for (var keys = Object.keys(message.maintenanceExclusions), i = 0; i < keys.length; ++i) { writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); $root.google.container.v1.TimeWindow.encode(message.maintenanceExclusions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); @@ -16759,9 +16759,9 @@ TimeWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && message.hasOwnProperty("endTime")) + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -16979,9 +16979,9 @@ RecurringTimeWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && message.hasOwnProperty("window")) + if (message.window != null && Object.hasOwnProperty.call(message, "window")) $root.google.container.v1.TimeWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.recurrence != null && message.hasOwnProperty("recurrence")) + if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.recurrence); return writer; }; @@ -17194,9 +17194,9 @@ DailyMaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.startTime); - if (message.duration != null && message.hasOwnProperty("duration")) + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.duration); return writer; }; @@ -17440,17 +17440,17 @@ SetNodePoolManagementRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.management != null && message.hasOwnProperty("management")) + if (message.management != null && Object.hasOwnProperty.call(message, "management")) $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -17743,17 +17743,17 @@ SetNodePoolSizeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nodeCount); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -18032,15 +18032,15 @@ RollbackNodePoolUpgradeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -18509,12 +18509,12 @@ ClusterAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) + if (message.enableNodeAutoprovisioning != null && Object.hasOwnProperty.call(message, "enableNodeAutoprovisioning")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableNodeAutoprovisioning); if (message.resourceLimits != null && message.resourceLimits.length) for (var i = 0; i < message.resourceLimits.length; ++i) $root.google.container.v1.ResourceLimit.encode(message.resourceLimits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) + if (message.autoprovisioningNodePoolDefaults != null && Object.hasOwnProperty.call(message, "autoprovisioningNodePoolDefaults")) $root.google.container.v1.AutoprovisioningNodePoolDefaults.encode(message.autoprovisioningNodePoolDefaults, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.autoprovisioningLocations != null && message.autoprovisioningLocations.length) for (var i = 0; i < message.autoprovisioningLocations.length; ++i) @@ -18791,7 +18791,7 @@ if (message.oauthScopes != null && message.oauthScopes.length) for (var i = 0; i < message.oauthScopes.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.oauthScopes[i]); - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); return writer; }; @@ -19022,11 +19022,11 @@ ResourceLimit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceType); - if (message.minimum != null && message.hasOwnProperty("minimum")) + if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minimum); - if (message.maximum != null && message.hasOwnProperty("maximum")) + if (message.maximum != null && Object.hasOwnProperty.call(message, "maximum")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maximum); return writer; }; @@ -19291,13 +19291,13 @@ NodePoolAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minNodeCount); - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); - if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) + if (message.autoprovisioned != null && Object.hasOwnProperty.call(message, "autoprovisioned")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.autoprovisioned); return writer; }; @@ -19564,18 +19564,18 @@ SetLabelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) + 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 4, wireType 2 =*/34).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 && message.hasOwnProperty("labelFingerprint")) + if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.labelFingerprint); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -19874,15 +19874,15 @@ SetLegacyAbacRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -20150,15 +20150,15 @@ StartIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); - if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + if (message.rotateCredentials != null && Object.hasOwnProperty.call(message, "rotateCredentials")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateCredentials); return writer; }; @@ -20417,13 +20417,13 @@ CompleteIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -20653,9 +20653,9 @@ AcceleratorConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + if (message.acceleratorCount != null && Object.hasOwnProperty.call(message, "acceleratorCount")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); - if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + if (message.acceleratorType != null && Object.hasOwnProperty.call(message, "acceleratorType")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); return writer; }; @@ -20904,15 +20904,15 @@ SetNetworkPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -21185,15 +21185,15 @@ SetMaintenancePolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + if (message.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy")) $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -21439,9 +21439,9 @@ StatusCondition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && message.hasOwnProperty("code")) + if (message.code != null && Object.hasOwnProperty.call(message, "code")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; @@ -21617,7 +21617,7 @@ /** * Code enum. * @name google.container.v1.StatusCondition.Code - * @enum {string} + * @enum {number} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} GCE_STOCKOUT=1 GCE_STOCKOUT value * @property {number} GKE_SERVICE_ACCOUNT_DELETED=2 GKE_SERVICE_ACCOUNT_DELETED value @@ -21713,11 +21713,11 @@ NetworkConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.network != null && message.hasOwnProperty("network")) + if (message.network != null && Object.hasOwnProperty.call(message, "network")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); - if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) + if (message.enableIntraNodeVisibility != null && Object.hasOwnProperty.call(message, "enableIntraNodeVisibility")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableIntraNodeVisibility); return writer; }; @@ -21927,7 +21927,7 @@ IntraNodeVisibilityConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -22114,7 +22114,7 @@ MaxPodsConstraint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) + if (message.maxPodsPerNode != null && Object.hasOwnProperty.call(message, "maxPodsPerNode")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxPodsPerNode); return writer; }; @@ -22324,9 +22324,9 @@ DatabaseEncryption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyName != null && message.hasOwnProperty("keyName")) + if (message.keyName != null && Object.hasOwnProperty.call(message, "keyName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyName); - if (message.state != null && message.hasOwnProperty("state")) + if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); return writer; }; @@ -22487,7 +22487,7 @@ /** * State enum. * @name google.container.v1.DatabaseEncryption.State - * @enum {string} + * @enum {number} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} ENCRYPTED=1 ENCRYPTED value * @property {number} DECRYPTED=2 DECRYPTED value @@ -22586,13 +22586,13 @@ ListUsableSubnetworksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && message.hasOwnProperty("filter")) + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); return writer; }; @@ -22826,7 +22826,7 @@ if (message.subnetworks != null && message.subnetworks.length) for (var i = 0; i < message.subnetworks.length; ++i) $root.google.container.v1.UsableSubnetwork.encode(message.subnetworks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; @@ -23062,11 +23062,11 @@ UsableSubnetworkSecondaryRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rangeName != null && message.hasOwnProperty("rangeName")) + if (message.rangeName != null && Object.hasOwnProperty.call(message, "rangeName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.rangeName); - if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.ipCidrRange); - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); return writer; }; @@ -23248,7 +23248,7 @@ /** * Status enum. * @name google.container.v1.UsableSubnetworkSecondaryRange.Status - * @enum {string} + * @enum {number} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} UNUSED=1 UNUSED value * @property {number} IN_USE_SERVICE=2 IN_USE_SERVICE value @@ -23361,16 +23361,16 @@ UsableSubnetwork.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.subnetwork); - if (message.network != null && message.hasOwnProperty("network")) + if (message.network != null && Object.hasOwnProperty.call(message, "network")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); - if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.ipCidrRange); if (message.secondaryIpRanges != null && message.secondaryIpRanges.length) for (var i = 0; i < message.secondaryIpRanges.length; ++i) $root.google.container.v1.UsableSubnetworkSecondaryRange.encode(message.secondaryIpRanges[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); return writer; }; @@ -23640,11 +23640,11 @@ ResourceUsageExportConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.enableNetworkEgressMetering != null && message.hasOwnProperty("enableNetworkEgressMetering")) + if (message.enableNetworkEgressMetering != null && Object.hasOwnProperty.call(message, "enableNetworkEgressMetering")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableNetworkEgressMetering); - if (message.consumptionMeteringConfig != null && message.hasOwnProperty("consumptionMeteringConfig")) + if (message.consumptionMeteringConfig != null && Object.hasOwnProperty.call(message, "consumptionMeteringConfig")) $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.encode(message.consumptionMeteringConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -23861,7 +23861,7 @@ BigQueryDestination.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datasetId != null && message.hasOwnProperty("datasetId")) + if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); return writer; }; @@ -24048,7 +24048,7 @@ ConsumptionMeteringConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -24238,7 +24238,7 @@ VerticalPodAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -24453,7 +24453,7 @@ if (message.rules != null && message.rules.length) for (var i = 0; i < message.rules.length; ++i) $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); return writer; }; @@ -24767,26 +24767,26 @@ HttpRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.selector != null && message.hasOwnProperty("selector")) + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && message.hasOwnProperty("get")) + if (message.get != null && Object.hasOwnProperty.call(message, "get")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && message.hasOwnProperty("put")) + if (message.put != null && Object.hasOwnProperty.call(message, "put")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && message.hasOwnProperty("post")) + if (message.post != null && Object.hasOwnProperty.call(message, "post")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && message.hasOwnProperty("delete")) + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && message.hasOwnProperty("patch")) + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && message.hasOwnProperty("body")) + if (message.body != null && Object.hasOwnProperty.call(message, "body")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && message.hasOwnProperty("custom")) + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.additionalBindings != null && message.additionalBindings.length) for (var i = 0; i < message.additionalBindings.length; ++i) $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); return writer; }; @@ -25143,9 +25143,9 @@ CustomHttpPattern.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kind != null && message.hasOwnProperty("kind")) + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && message.hasOwnProperty("path")) + if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); return writer; }; @@ -25291,7 +25291,7 @@ /** * FieldBehavior enum. * @name google.api.FieldBehavior - * @enum {string} + * @enum {number} * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value * @property {number} OPTIONAL=1 OPTIONAL value * @property {number} REQUIRED=2 REQUIRED value @@ -25692,9 +25692,9 @@ FileDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && message.hasOwnProperty("package")) + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); if (message.dependency != null && message.dependency.length) for (var i = 0; i < message.dependency.length; ++i) @@ -25711,9 +25711,9 @@ if (message.extension != null && message.extension.length) for (var i = 0; i < message.extension.length; ++i) $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.publicDependency != null && message.publicDependency.length) for (var i = 0; i < message.publicDependency.length; ++i) @@ -25721,7 +25721,7 @@ if (message.weakDependency != null && message.weakDependency.length) for (var i = 0; i < message.weakDependency.length; ++i) writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && message.hasOwnProperty("syntax")) + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); return writer; }; @@ -26259,7 +26259,7 @@ DescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.field != null && message.field.length) for (var i = 0; i < message.field.length; ++i) @@ -26276,7 +26276,7 @@ if (message.extension != null && message.extension.length) for (var i = 0; i < message.extension.length; ++i) $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.oneofDecl != null && message.oneofDecl.length) for (var i = 0; i < message.oneofDecl.length; ++i) @@ -26741,11 +26741,11 @@ ExtensionRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -26969,9 +26969,9 @@ ReservedRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); return writer; }; @@ -27462,25 +27462,25 @@ FieldDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && message.hasOwnProperty("extendee")) + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && message.hasOwnProperty("number")) + if (message.number != null && Object.hasOwnProperty.call(message, "number")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && message.hasOwnProperty("label")) + if (message.label != null && Object.hasOwnProperty.call(message, "label")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && message.hasOwnProperty("typeName")) + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); return writer; }; @@ -27827,7 +27827,7 @@ /** * Type enum. * @name google.protobuf.FieldDescriptorProto.Type - * @enum {string} + * @enum {number} * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value * @property {number} TYPE_INT64=3 TYPE_INT64 value @@ -27873,7 +27873,7 @@ /** * Label enum. * @name google.protobuf.FieldDescriptorProto.Label - * @enum {string} + * @enum {number} * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value @@ -27954,9 +27954,9 @@ OneofDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -28199,12 +28199,12 @@ EnumDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.value != null && message.value.length) for (var i = 0; i < message.value.length; ++i) $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.reservedRange != null && message.reservedRange.length) for (var i = 0; i < message.reservedRange.length; ++i) @@ -28507,9 +28507,9 @@ EnumReservedRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); return writer; }; @@ -28729,11 +28729,11 @@ EnumValueDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && message.hasOwnProperty("number")) + if (message.number != null && Object.hasOwnProperty.call(message, "number")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -28967,12 +28967,12 @@ ServiceDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.method != null && message.method.length) for (var i = 0; i < message.method.length; ++i) $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -29252,17 +29252,17 @@ MethodDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.inputType != null && message.hasOwnProperty("inputType")) + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && message.hasOwnProperty("outputType")) + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); return writer; }; @@ -29691,45 +29691,45 @@ FileOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -30122,7 +30122,7 @@ /** * OptimizeMode enum. * @name google.protobuf.FileOptions.OptimizeMode - * @enum {string} + * @enum {number} * @property {number} SPEED=1 SPEED value * @property {number} CODE_SIZE=2 CODE_SIZE value * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value @@ -30231,13 +30231,13 @@ MessageOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -30557,17 +30557,17 @@ FieldOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ctype != null && message.hasOwnProperty("ctype")) + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && message.hasOwnProperty("packed")) + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && message.hasOwnProperty("lazy")) + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && message.hasOwnProperty("jstype")) + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && message.hasOwnProperty("weak")) + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -30896,7 +30896,7 @@ /** * CType enum. * @name google.protobuf.FieldOptions.CType - * @enum {string} + * @enum {number} * @property {number} STRING=0 STRING value * @property {number} CORD=1 CORD value * @property {number} STRING_PIECE=2 STRING_PIECE value @@ -30912,7 +30912,7 @@ /** * JSType enum. * @name google.protobuf.FieldOptions.JSType - * @enum {string} + * @enum {number} * @property {number} JS_NORMAL=0 JS_NORMAL value * @property {number} JS_STRING=1 JS_STRING value * @property {number} JS_NUMBER=2 JS_NUMBER value @@ -31211,9 +31211,9 @@ EnumOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -31456,7 +31456,7 @@ EnumValueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -31705,14 +31705,14 @@ ServiceOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); return writer; }; @@ -31991,9 +31991,9 @@ MethodOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -32001,7 +32001,7 @@ if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; }; @@ -32235,7 +32235,7 @@ /** * IdempotencyLevel enum. * @name google.protobuf.MethodOptions.IdempotencyLevel - * @enum {string} + * @enum {number} * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value * @property {number} IDEMPOTENT=2 IDEMPOTENT value @@ -32365,17 +32365,17 @@ if (message.name != null && message.name.length) for (var i = 0; i < message.name.length; ++i) $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); return writer; }; @@ -33152,9 +33152,9 @@ writer.int32(message.span[i]); writer.ldelim(); } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) for (var i = 0; i < message.leadingDetachedComments.length; ++i) @@ -33685,11 +33685,11 @@ writer.int32(message.path[i]); writer.ldelim(); } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && message.hasOwnProperty("begin")) + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); return writer; }; @@ -34102,9 +34102,9 @@ Timestamp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && message.hasOwnProperty("nanos")) + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index d28903080ba..3a4daa8155b 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "03201e01ff2f0d72e4e3a7f7d7d7548c1dc2a94b" + "sha": "b9097123158bbe2314732e5a5b88842421f05326" } }, { From 840be4b0666d4420ceefe0cb0abda2fc66874f3e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 22 Apr 2020 08:21:45 -0700 Subject: [PATCH 212/371] fix: support request params {key} with no =value (#338) --- .../src/v1/cluster_manager_client.ts | 30 ++ packages/google-container/synth.metadata | 2 +- .../test/gapic_cluster_manager_v1.ts | 270 ++++++++++++------ 3 files changed, 211 insertions(+), 91 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index a3870b231ae..c487cf2ad40 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -406,6 +406,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ parent: request.parent || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.listClusters(request, options, callback); @@ -499,6 +500,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.getCluster(request, options, callback); @@ -604,6 +606,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ parent: request.parent || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.createCluster(request, options, callback); @@ -699,6 +702,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.updateCluster(request, options, callback); @@ -810,6 +814,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.updateNodePool(request, options, callback); @@ -917,6 +922,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setNodePoolAutoscaling( @@ -1022,6 +1028,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setLoggingService(request, options, callback); @@ -1131,6 +1138,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setMonitoringService(request, options, callback); @@ -1227,6 +1235,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setAddonsConfig(request, options, callback); @@ -1328,6 +1337,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setLocations(request, options, callback); @@ -1432,6 +1442,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.updateMaster(request, options, callback); @@ -1531,6 +1542,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setMasterAuth(request, options, callback); @@ -1632,6 +1644,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.deleteCluster(request, options, callback); @@ -1722,6 +1735,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ parent: request.parent || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.listOperations(request, options, callback); @@ -1815,6 +1829,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.getOperation(request, options, callback); @@ -1907,6 +1922,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.cancelOperation(request, options, callback); @@ -1996,6 +2012,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.getServerConfig(request, options, callback); @@ -2089,6 +2106,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ parent: request.parent || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.listNodePools(request, options, callback); @@ -2186,6 +2204,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.getNodePool(request, options, callback); @@ -2282,6 +2301,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ parent: request.parent || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.createNodePool(request, options, callback); @@ -2379,6 +2399,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.deleteNodePool(request, options, callback); @@ -2485,6 +2506,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.rollbackNodePoolUpgrade( @@ -2596,6 +2618,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setNodePoolManagement(request, options, callback); @@ -2698,6 +2721,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setLabels(request, options, callback); @@ -2793,6 +2817,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setLegacyAbac(request, options, callback); @@ -2888,6 +2913,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.startIPRotation(request, options, callback); @@ -2983,6 +3009,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.completeIPRotation(request, options, callback); @@ -3082,6 +3109,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setNodePoolSize(request, options, callback); @@ -3179,6 +3207,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setNetworkPolicy(request, options, callback); @@ -3281,6 +3310,7 @@ export class ClusterManagerClient { 'x-goog-request-params' ] = gax.routingHeader.fromParams({ name: request.name || '', + project_id: request.projectId || '', }); this.initialize(); return this.innerApiCalls.setMaintenancePolicy(request, options, callback); diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 3a4daa8155b..c9b90db74f4 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "b9097123158bbe2314732e5a5b88842421f05326" + "sha": "e8fd828801edf9d153ff2bfe957858129fee383f" } }, { diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index 9de83fb31eb..e74dee08b62 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -207,7 +207,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListClustersRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -238,7 +239,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListClustersRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -286,7 +288,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListClustersRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -321,7 +324,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetClusterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -352,7 +356,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetClusterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -400,7 +405,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetClusterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -435,7 +441,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CreateClusterRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -466,7 +473,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CreateClusterRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -514,7 +522,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CreateClusterRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -549,7 +558,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UpdateClusterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -580,7 +590,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UpdateClusterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -628,7 +639,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UpdateClusterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -663,7 +675,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UpdateNodePoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -694,7 +707,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UpdateNodePoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -742,7 +756,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UpdateNodePoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -777,7 +792,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -810,7 +826,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -858,7 +875,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -893,7 +911,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLoggingServiceRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -924,7 +943,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLoggingServiceRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -972,7 +992,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLoggingServiceRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1007,7 +1028,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetMonitoringServiceRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1040,7 +1062,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetMonitoringServiceRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1088,7 +1111,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetMonitoringServiceRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1123,7 +1147,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetAddonsConfigRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1154,7 +1179,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetAddonsConfigRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1202,7 +1228,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetAddonsConfigRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1237,7 +1264,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLocationsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1268,7 +1296,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLocationsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1316,7 +1345,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLocationsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1351,7 +1381,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UpdateMasterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1382,7 +1413,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UpdateMasterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1430,7 +1462,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UpdateMasterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1465,7 +1498,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetMasterAuthRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1496,7 +1530,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetMasterAuthRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1544,7 +1579,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetMasterAuthRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1579,7 +1615,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.DeleteClusterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1610,7 +1647,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.DeleteClusterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1658,7 +1696,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.DeleteClusterRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1693,7 +1732,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListOperationsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1724,7 +1764,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListOperationsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1772,7 +1813,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListOperationsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1807,7 +1849,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetOperationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1838,7 +1881,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetOperationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1886,7 +1930,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetOperationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1921,7 +1966,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CancelOperationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -1952,7 +1998,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CancelOperationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2000,7 +2047,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CancelOperationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2035,7 +2083,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetServerConfigRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2066,7 +2115,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetServerConfigRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2114,7 +2164,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetServerConfigRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2149,7 +2200,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListNodePoolsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2180,7 +2232,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListNodePoolsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2228,7 +2281,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListNodePoolsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2263,7 +2317,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetNodePoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2294,7 +2349,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetNodePoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2342,7 +2398,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetNodePoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2377,7 +2434,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CreateNodePoolRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2408,7 +2466,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CreateNodePoolRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2456,7 +2515,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CreateNodePoolRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2491,7 +2551,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.DeleteNodePoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2522,7 +2583,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.DeleteNodePoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2570,7 +2632,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.DeleteNodePoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2605,7 +2668,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2638,7 +2702,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2686,7 +2751,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2721,7 +2787,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolManagementRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2754,7 +2821,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolManagementRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2802,7 +2870,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolManagementRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2837,7 +2906,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLabelsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2868,7 +2938,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLabelsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2916,7 +2987,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLabelsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2948,7 +3020,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLegacyAbacRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -2979,7 +3052,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLegacyAbacRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3027,7 +3101,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetLegacyAbacRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3062,7 +3137,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.StartIPRotationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3093,7 +3169,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.StartIPRotationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3141,7 +3218,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.StartIPRotationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3176,7 +3254,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CompleteIPRotationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3209,7 +3288,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CompleteIPRotationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3257,7 +3337,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CompleteIPRotationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3292,7 +3373,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolSizeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3323,7 +3405,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolSizeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3371,7 +3454,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolSizeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3406,7 +3490,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNetworkPolicyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3437,7 +3522,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNetworkPolicyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3485,7 +3571,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNetworkPolicyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3520,7 +3607,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetMaintenancePolicyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3553,7 +3641,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetMaintenancePolicyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { @@ -3601,7 +3690,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetMaintenancePolicyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; const expectedOptions = { otherArgs: { headers: { From f20b6f52879de9594672bf9e865c724249b99a81 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Thu, 23 Apr 2020 19:29:12 -0700 Subject: [PATCH 213/371] chore: update npm scripts and synth.py (#339) Update npm scripts: add clean, prelint, prefix; make sure that lint and fix are set properly. Use post-process feature of synthtool. --- packages/google-container/package.json | 5 +++-- packages/google-container/synth.py | 7 ++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 8a2649f1b3c..fa4bbdb6277 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -30,7 +30,7 @@ "test": "c8 mocha build/test", "samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../", "system-test": "mocha build/system-test", - "lint": "gts fix", + "lint": "gts check", "fix": "gts fix", "docs": "jsdoc -c .jsdoc.js", "docs-test": "linkinator docs", @@ -39,7 +39,8 @@ "compile-protos": "compileProtos src", "predocs-test": "npm run docs", "prepare": "npm run compile", - "prelint": "cd samples; npm link ../; npm install" + "prelint": "cd samples; npm link ../; npm install", + "precompile": "gts clean" }, "dependencies": { "google-gax": "^2.1.0" diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index d2e0248c93b..b51dfa4e6fc 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -1,7 +1,7 @@ import synthtool as s import synthtool.gcp as gcp +import synthtool.languages.node as node import logging -import subprocess logging.basicConfig(level=logging.DEBUG) @@ -28,7 +28,4 @@ templates = common_templates.node_library(source_location='build/src') s.copy(templates) -# Node.js specific cleanup -subprocess.run(['npm', 'install']) -subprocess.run(['npm', 'run', 'fix']) -subprocess.run(['npm', 'run', 'compile-protos']) +node.postprocess_gapic_library() From 111eccd1cc149e324805e105ab1b8927a124d521 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Tue, 5 May 2020 19:38:23 -0700 Subject: [PATCH 214/371] fix: regen protos and tests (#340) --- packages/google-container/protos/protos.js | 920 +++++++++--------- packages/google-container/synth.metadata | 14 +- .../test/gapic_cluster_manager_v1.ts | 140 +-- 3 files changed, 507 insertions(+), 567 deletions(-) diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index b693bf57b94..c44e442bd9a 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1303,41 +1303,41 @@ NodeConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) + if (message.machineType != null && message.hasOwnProperty("machineType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); - if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.diskSizeGb); if (message.oauthScopes != null && message.oauthScopes.length) for (var i = 0; i < message.oauthScopes.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).string(message.oauthScopes[i]); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + if (message.metadata != null && message.hasOwnProperty("metadata")) for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i) writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim(); - if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType")) + if (message.imageType != null && message.hasOwnProperty("imageType")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.imageType); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + if (message.labels != null && message.hasOwnProperty("labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.localSsdCount != null && Object.hasOwnProperty.call(message, "localSsdCount")) + if (message.localSsdCount != null && message.hasOwnProperty("localSsdCount")) writer.uint32(/* id 7, wireType 0 =*/56).int32(message.localSsdCount); if (message.tags != null && message.tags.length) for (var i = 0; i < message.tags.length; ++i) writer.uint32(/* id 8, wireType 2 =*/66).string(message.tags[i]); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.serviceAccount); - if (message.preemptible != null && Object.hasOwnProperty.call(message, "preemptible")) + if (message.preemptible != null && message.hasOwnProperty("preemptible")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.preemptible); if (message.accelerators != null && message.accelerators.length) for (var i = 0; i < message.accelerators.length; ++i) $root.google.container.v1.AcceleratorConfig.encode(message.accelerators[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.diskType != null && Object.hasOwnProperty.call(message, "diskType")) + if (message.diskType != null && message.hasOwnProperty("diskType")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.diskType); - if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.minCpuPlatform); 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.shieldedInstanceConfig != null && Object.hasOwnProperty.call(message, "shieldedInstanceConfig")) + if (message.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) $root.google.container.v1.ShieldedInstanceConfig.encode(message.shieldedInstanceConfig, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); return writer; }; @@ -1800,9 +1800,9 @@ ShieldedInstanceConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableSecureBoot != null && Object.hasOwnProperty.call(message, "enableSecureBoot")) + if (message.enableSecureBoot != null && message.hasOwnProperty("enableSecureBoot")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableSecureBoot); - if (message.enableIntegrityMonitoring != null && Object.hasOwnProperty.call(message, "enableIntegrityMonitoring")) + if (message.enableIntegrityMonitoring != null && message.hasOwnProperty("enableIntegrityMonitoring")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableIntegrityMonitoring); return writer; }; @@ -2019,11 +2019,11 @@ NodeTaint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) + if (message.key != null && message.hasOwnProperty("key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) + if (message.value != null && message.hasOwnProperty("value")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - if (message.effect != null && Object.hasOwnProperty.call(message, "effect")) + if (message.effect != null && message.hasOwnProperty("effect")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.effect); return writer; }; @@ -2200,7 +2200,7 @@ /** * Effect enum. * @name google.container.v1.NodeTaint.Effect - * @enum {number} + * @enum {string} * @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 @@ -2319,17 +2319,17 @@ MasterAuth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) + if (message.username != null && message.hasOwnProperty("username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) + if (message.password != null && message.hasOwnProperty("password")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); - if (message.clientCertificateConfig != null && Object.hasOwnProperty.call(message, "clientCertificateConfig")) + if (message.clientCertificateConfig != null && message.hasOwnProperty("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")) + if (message.clusterCaCertificate != null && message.hasOwnProperty("clusterCaCertificate")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.clusterCaCertificate); - if (message.clientCertificate != null && Object.hasOwnProperty.call(message, "clientCertificate")) + if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) writer.uint32(/* id 101, wireType 2 =*/810).string(message.clientCertificate); - if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey")) + if (message.clientKey != null && message.hasOwnProperty("clientKey")) writer.uint32(/* id 102, wireType 2 =*/818).string(message.clientKey); return writer; }; @@ -2577,7 +2577,7 @@ ClientCertificateConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.issueClientCertificate != null && Object.hasOwnProperty.call(message, "issueClientCertificate")) + if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.issueClientCertificate); return writer; }; @@ -2800,15 +2800,15 @@ AddonsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.httpLoadBalancing != null && Object.hasOwnProperty.call(message, "httpLoadBalancing")) + if (message.httpLoadBalancing != null && message.hasOwnProperty("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")) + if (message.horizontalPodAutoscaling != null && message.hasOwnProperty("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")) + if (message.kubernetesDashboard != null && message.hasOwnProperty("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")) + if (message.networkPolicyConfig != null && message.hasOwnProperty("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")) + if (message.cloudRunConfig != null && message.hasOwnProperty("cloudRunConfig")) $root.google.container.v1.CloudRunConfig.encode(message.cloudRunConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; @@ -3065,7 +3065,7 @@ HttpLoadBalancing.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + if (message.disabled != null && message.hasOwnProperty("disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3252,7 +3252,7 @@ HorizontalPodAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + if (message.disabled != null && message.hasOwnProperty("disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3439,7 +3439,7 @@ KubernetesDashboard.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + if (message.disabled != null && message.hasOwnProperty("disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3626,7 +3626,7 @@ NetworkPolicyConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + if (message.disabled != null && message.hasOwnProperty("disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3849,15 +3849,15 @@ PrivateClusterConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enablePrivateNodes != null && Object.hasOwnProperty.call(message, "enablePrivateNodes")) + if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateNodes); - if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint")) + if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePrivateEndpoint); - if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock")) + if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4CidrBlock); - if (message.privateEndpoint != null && Object.hasOwnProperty.call(message, "privateEndpoint")) + if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.privateEndpoint); - if (message.publicEndpoint != null && Object.hasOwnProperty.call(message, "publicEndpoint")) + if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint); return writer; }; @@ -4098,9 +4098,9 @@ AuthenticatorGroupsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + if (message.enabled != null && message.hasOwnProperty("enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.securityGroup != null && Object.hasOwnProperty.call(message, "securityGroup")) + if (message.securityGroup != null && message.hasOwnProperty("securityGroup")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.securityGroup); return writer; }; @@ -4299,7 +4299,7 @@ CloudRunConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + if (message.disabled != null && message.hasOwnProperty("disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -4496,7 +4496,7 @@ MasterAuthorizedNetworksConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + if (message.enabled != null && message.hasOwnProperty("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) @@ -4723,9 +4723,9 @@ CidrBlock.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + if (message.displayName != null && message.hasOwnProperty("displayName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.cidrBlock != null && Object.hasOwnProperty.call(message, "cidrBlock")) + if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock); return writer; }; @@ -4927,7 +4927,7 @@ LegacyAbac.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + if (message.enabled != null && message.hasOwnProperty("enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -5123,9 +5123,9 @@ NetworkPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.provider != null && Object.hasOwnProperty.call(message, "provider")) + if (message.provider != null && message.hasOwnProperty("provider")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + if (message.enabled != null && message.hasOwnProperty("enabled")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); return writer; }; @@ -5281,7 +5281,7 @@ /** * Provider enum. * @name google.container.v1.NetworkPolicy.Provider - * @enum {number} + * @enum {string} * @property {number} PROVIDER_UNSPECIFIED=0 PROVIDER_UNSPECIFIED value * @property {number} CALICO=1 CALICO value */ @@ -5351,7 +5351,7 @@ BinaryAuthorization.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + if (message.enabled != null && message.hasOwnProperty("enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -5637,29 +5637,29 @@ IPAllocationPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases")) + if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases); - if (message.createSubnetwork != null && Object.hasOwnProperty.call(message, "createSubnetwork")) + if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.createSubnetwork); - if (message.subnetworkName != null && Object.hasOwnProperty.call(message, "subnetworkName")) + if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.subnetworkName); - if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr")) + if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4Cidr); - if (message.nodeIpv4Cidr != null && Object.hasOwnProperty.call(message, "nodeIpv4Cidr")) + if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeIpv4Cidr); - if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr")) + if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.servicesIpv4Cidr); - if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName")) + if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.clusterSecondaryRangeName); - if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName")) + if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.servicesSecondaryRangeName); - if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock")) + if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4CidrBlock); - if (message.nodeIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrBlock")) + if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.nodeIpv4CidrBlock); - if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock")) + if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.servicesIpv4CidrBlock); - if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock")) + if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.tpuIpv4CidrBlock); return writer; }; @@ -6396,27 +6396,27 @@ Cluster.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) + if (message.description != null && message.hasOwnProperty("description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.nodeConfig != null && Object.hasOwnProperty.call(message, "nodeConfig")) + if (message.nodeConfig != null && message.hasOwnProperty("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")) + if (message.masterAuth != null && message.hasOwnProperty("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")) + if (message.loggingService != null && message.hasOwnProperty("loggingService")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.loggingService); - if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService")) + if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.monitoringService); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) + if (message.network != null && message.hasOwnProperty("network")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.network); - if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr")) + if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4Cidr); - if (message.addonsConfig != null && Object.hasOwnProperty.call(message, "addonsConfig")) + if (message.addonsConfig != null && message.hasOwnProperty("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")) + if (message.subnetwork != null && message.hasOwnProperty("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) @@ -6424,75 +6424,75 @@ 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")) + if (message.enableKubernetesAlpha != null && message.hasOwnProperty("enableKubernetesAlpha")) writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableKubernetesAlpha); - if (message.resourceLabels != null && Object.hasOwnProperty.call(message, "resourceLabels")) + if (message.resourceLabels != null && message.hasOwnProperty("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")) + if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) writer.uint32(/* id 16, wireType 2 =*/130).string(message.labelFingerprint); - if (message.legacyAbac != null && Object.hasOwnProperty.call(message, "legacyAbac")) + if (message.legacyAbac != null && message.hasOwnProperty("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")) + if (message.networkPolicy != null && message.hasOwnProperty("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")) + if (message.ipAllocationPolicy != null && message.hasOwnProperty("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")) + if (message.masterAuthorizedNetworksConfig != null && message.hasOwnProperty("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")) + if (message.maintenancePolicy != null && message.hasOwnProperty("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")) + if (message.binaryAuthorization != null && message.hasOwnProperty("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")) + if (message.autoscaling != null && message.hasOwnProperty("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")) + if (message.networkConfig != null && message.hasOwnProperty("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")) + if (message.defaultMaxPodsConstraint != null && message.hasOwnProperty("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")) + if (message.resourceUsageExportConfig != null && message.hasOwnProperty("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")) + if (message.authenticatorGroupsConfig != null && message.hasOwnProperty("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")) + if (message.privateClusterConfig != null && message.hasOwnProperty("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")) + if (message.databaseEncryption != null && message.hasOwnProperty("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")) + if (message.verticalPodAutoscaling != null && message.hasOwnProperty("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")) + if (message.selfLink != null && message.hasOwnProperty("selfLink")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 101, wireType 2 =*/810).string(message.zone); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + if (message.endpoint != null && message.hasOwnProperty("endpoint")) writer.uint32(/* id 102, wireType 2 =*/818).string(message.endpoint); - if (message.initialClusterVersion != null && Object.hasOwnProperty.call(message, "initialClusterVersion")) + if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion")) writer.uint32(/* id 103, wireType 2 =*/826).string(message.initialClusterVersion); - if (message.currentMasterVersion != null && Object.hasOwnProperty.call(message, "currentMasterVersion")) + if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion")) writer.uint32(/* id 104, wireType 2 =*/834).string(message.currentMasterVersion); - if (message.currentNodeVersion != null && Object.hasOwnProperty.call(message, "currentNodeVersion")) + if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion")) writer.uint32(/* id 105, wireType 2 =*/842).string(message.currentNodeVersion); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + if (message.createTime != null && message.hasOwnProperty("createTime")) writer.uint32(/* id 106, wireType 2 =*/850).string(message.createTime); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) + if (message.status != null && message.hasOwnProperty("status")) writer.uint32(/* id 107, wireType 0 =*/856).int32(message.status); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) writer.uint32(/* id 108, wireType 2 =*/866).string(message.statusMessage); - if (message.nodeIpv4CidrSize != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrSize")) + if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize")) writer.uint32(/* id 109, wireType 0 =*/872).int32(message.nodeIpv4CidrSize); - if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr")) + if (message.servicesIpv4Cidr != null && message.hasOwnProperty("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")) + if (message.currentNodeCount != null && message.hasOwnProperty("currentNodeCount")) writer.uint32(/* id 112, wireType 0 =*/896).int32(message.currentNodeCount); - if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) + if (message.expireTime != null && message.hasOwnProperty("expireTime")) writer.uint32(/* id 113, wireType 2 =*/906).string(message.expireTime); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) + if (message.location != null && message.hasOwnProperty("location")) writer.uint32(/* id 114, wireType 2 =*/914).string(message.location); - if (message.enableTpu != null && Object.hasOwnProperty.call(message, "enableTpu")) + if (message.enableTpu != null && message.hasOwnProperty("enableTpu")) writer.uint32(/* id 115, wireType 0 =*/920).bool(message.enableTpu); - if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock")) + if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("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) @@ -7355,7 +7355,7 @@ /** * Status enum. * @name google.container.v1.Cluster.Status - * @enum {number} + * @enum {string} * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value * @property {number} PROVISIONING=1 PROVISIONING value * @property {number} RUNNING=2 RUNNING value @@ -7571,38 +7571,38 @@ ClusterUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.desiredNodeVersion != null && Object.hasOwnProperty.call(message, "desiredNodeVersion")) + if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.desiredNodeVersion); - if (message.desiredMonitoringService != null && Object.hasOwnProperty.call(message, "desiredMonitoringService")) + if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.desiredMonitoringService); - if (message.desiredAddonsConfig != null && Object.hasOwnProperty.call(message, "desiredAddonsConfig")) + if (message.desiredAddonsConfig != null && message.hasOwnProperty("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")) + if (message.desiredNodePoolId != null && message.hasOwnProperty("desiredNodePoolId")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.desiredNodePoolId); - if (message.desiredImageType != null && Object.hasOwnProperty.call(message, "desiredImageType")) + if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.desiredImageType); - if (message.desiredNodePoolAutoscaling != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoscaling")) + if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("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")) + if (message.desiredMasterAuthorizedNetworksConfig != null && message.hasOwnProperty("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")) + if (message.desiredClusterAutoscaling != null && message.hasOwnProperty("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")) + if (message.desiredBinaryAuthorization != null && message.hasOwnProperty("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")) + if (message.desiredLoggingService != null && message.hasOwnProperty("desiredLoggingService")) writer.uint32(/* id 19, wireType 2 =*/154).string(message.desiredLoggingService); - if (message.desiredResourceUsageExportConfig != null && Object.hasOwnProperty.call(message, "desiredResourceUsageExportConfig")) + if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("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")) + if (message.desiredVerticalPodAutoscaling != null && message.hasOwnProperty("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")) + if (message.desiredIntraNodeVisibilityConfig != null && message.hasOwnProperty("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")) + if (message.desiredDatabaseEncryption != null && message.hasOwnProperty("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")) + if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); return writer; }; @@ -8125,27 +8125,27 @@ Operation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) + if (message.operationType != null && message.hasOwnProperty("operationType")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operationType); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) + if (message.status != null && message.hasOwnProperty("status")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + if (message.selfLink != null && message.hasOwnProperty("selfLink")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.selfLink); - if (message.targetLink != null && Object.hasOwnProperty.call(message, "targetLink")) + if (message.targetLink != null && message.hasOwnProperty("targetLink")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetLink); - if (message.detail != null && Object.hasOwnProperty.call(message, "detail")) + if (message.detail != null && message.hasOwnProperty("detail")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.detail); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) + if (message.location != null && message.hasOwnProperty("location")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.location); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + if (message.startTime != null && message.hasOwnProperty("startTime")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTime); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + if (message.endTime != null && message.hasOwnProperty("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) @@ -8571,7 +8571,7 @@ /** * Status enum. * @name google.container.v1.Operation.Status - * @enum {number} + * @enum {string} * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value * @property {number} PENDING=1 PENDING value * @property {number} RUNNING=2 RUNNING value @@ -8591,7 +8591,7 @@ /** * Type enum. * @name google.container.v1.Operation.Type - * @enum {number} + * @enum {string} * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value * @property {number} CREATE_CLUSTER=1 CREATE_CLUSTER value * @property {number} DELETE_CLUSTER=2 DELETE_CLUSTER value @@ -8718,13 +8718,13 @@ CreateClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster")) + if (message.cluster != null && message.hasOwnProperty("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")) + if (message.parent != null && message.hasOwnProperty("parent")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); return writer; }; @@ -8977,13 +8977,13 @@ GetClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -9240,15 +9240,15 @@ UpdateClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.update != null && Object.hasOwnProperty.call(message, "update")) + if (message.update != null && message.hasOwnProperty("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")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -9539,19 +9539,19 @@ UpdateNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.nodeVersion != null && Object.hasOwnProperty.call(message, "nodeVersion")) + if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeVersion); - if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType")) + if (message.imageType != null && message.hasOwnProperty("imageType")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.imageType); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); return writer; }; @@ -9850,17 +9850,17 @@ SetNodePoolAutoscalingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) + if (message.autoscaling != null && message.hasOwnProperty("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")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -10144,15 +10144,15 @@ SetLoggingServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService")) + if (message.loggingService != null && message.hasOwnProperty("loggingService")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.loggingService); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -10420,15 +10420,15 @@ SetMonitoringServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService")) + if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.monitoringService); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -10696,15 +10696,15 @@ SetAddonsConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.addonsConfig != null && Object.hasOwnProperty.call(message, "addonsConfig")) + if (message.addonsConfig != null && message.hasOwnProperty("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")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -10978,16 +10978,16 @@ SetLocationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("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")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -11270,15 +11270,15 @@ UpdateMasterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.masterVersion != null && Object.hasOwnProperty.call(message, "masterVersion")) + if (message.masterVersion != null && message.hasOwnProperty("masterVersion")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.masterVersion); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -11555,17 +11555,17 @@ SetMasterAuthRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) + if (message.action != null && message.hasOwnProperty("action")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action); - if (message.update != null && Object.hasOwnProperty.call(message, "update")) + if (message.update != null && message.hasOwnProperty("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")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -11780,7 +11780,7 @@ /** * Action enum. * @name google.container.v1.SetMasterAuthRequest.Action - * @enum {number} + * @enum {string} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} SET_PASSWORD=1 SET_PASSWORD value * @property {number} GENERATE_PASSWORD=2 GENERATE_PASSWORD value @@ -11881,13 +11881,13 @@ DeleteClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; @@ -12126,11 +12126,11 @@ ListClustersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + if (message.parent != null && message.hasOwnProperty("parent")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); return writer; }; @@ -12614,13 +12614,13 @@ GetOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId")) + if (message.operationId != null && message.hasOwnProperty("operationId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -12859,11 +12859,11 @@ ListOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + if (message.parent != null && message.hasOwnProperty("parent")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); return writer; }; @@ -13100,13 +13100,13 @@ CancelOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId")) + if (message.operationId != null && message.hasOwnProperty("operationId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; @@ -13592,11 +13592,11 @@ GetServerConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; @@ -13845,12 +13845,12 @@ ServerConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.defaultClusterVersion != null && Object.hasOwnProperty.call(message, "defaultClusterVersion")) + if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultClusterVersion); if (message.validNodeVersions != null && message.validNodeVersions.length) for (var i = 0; i < message.validNodeVersions.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).string(message.validNodeVersions[i]); - if (message.defaultImageType != null && Object.hasOwnProperty.call(message, "defaultImageType")) + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultImageType); if (message.validImageTypes != null && message.validImageTypes.length) for (var i = 0; i < message.validImageTypes.length; ++i) @@ -14168,15 +14168,15 @@ CreateNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePool != null && Object.hasOwnProperty.call(message, "nodePool")) + if (message.nodePool != null && message.hasOwnProperty("nodePool")) $root.google.container.v1.NodePool.encode(message.nodePool, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + if (message.parent != null && message.hasOwnProperty("parent")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.parent); return writer; }; @@ -14449,15 +14449,15 @@ DeleteNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -14716,13 +14716,13 @@ ListNodePoolsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + if (message.parent != null && message.hasOwnProperty("parent")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); return writer; }; @@ -14979,15 +14979,15 @@ GetNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -15329,30 +15329,30 @@ NodePool.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) + if (message.config != null && message.hasOwnProperty("config")) $root.google.container.v1.NodeConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.management != null && Object.hasOwnProperty.call(message, "management")) + if (message.management != null && message.hasOwnProperty("management")) $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.maxPodsConstraint != null && Object.hasOwnProperty.call(message, "maxPodsConstraint")) + if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) $root.google.container.v1.MaxPodsConstraint.encode(message.maxPodsConstraint, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.podIpv4CidrSize != null && Object.hasOwnProperty.call(message, "podIpv4CidrSize")) + if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) writer.uint32(/* id 7, wireType 0 =*/56).int32(message.podIpv4CidrSize); - if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + if (message.selfLink != null && message.hasOwnProperty("selfLink")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) + if (message.version != null && message.hasOwnProperty("version")) writer.uint32(/* id 101, wireType 2 =*/810).string(message.version); if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) for (var i = 0; i < message.instanceGroupUrls.length; ++i) writer.uint32(/* id 102, wireType 2 =*/818).string(message.instanceGroupUrls[i]); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) + if (message.status != null && message.hasOwnProperty("status")) writer.uint32(/* id 103, wireType 0 =*/824).int32(message.status); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) writer.uint32(/* id 104, wireType 2 =*/834).string(message.statusMessage); if (message.conditions != null && message.conditions.length) for (var i = 0; i < message.conditions.length; ++i) @@ -15712,7 +15712,7 @@ /** * Status enum. * @name google.container.v1.NodePool.Status - * @enum {number} + * @enum {string} * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value * @property {number} PROVISIONING=1 PROVISIONING value * @property {number} RUNNING=2 RUNNING value @@ -15810,11 +15810,11 @@ NodeManagement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgrade != null && Object.hasOwnProperty.call(message, "autoUpgrade")) + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.autoUpgrade); - if (message.autoRepair != null && Object.hasOwnProperty.call(message, "autoRepair")) + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autoRepair); - if (message.upgradeOptions != null && Object.hasOwnProperty.call(message, "upgradeOptions")) + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) $root.google.container.v1.AutoUpgradeOptions.encode(message.upgradeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; @@ -16038,9 +16038,9 @@ AutoUpgradeOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgradeStartTime != null && Object.hasOwnProperty.call(message, "autoUpgradeStartTime")) + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoUpgradeStartTime); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) + if (message.description != null && message.hasOwnProperty("description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); return writer; }; @@ -16248,9 +16248,9 @@ MaintenancePolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && Object.hasOwnProperty.call(message, "window")) + if (message.window != null && message.hasOwnProperty("window")) $root.google.container.v1.MaintenanceWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.resourceVersion != null && Object.hasOwnProperty.call(message, "resourceVersion")) + if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.resourceVersion); return writer; }; @@ -16487,11 +16487,11 @@ MaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dailyMaintenanceWindow != null && Object.hasOwnProperty.call(message, "dailyMaintenanceWindow")) + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) $root.google.container.v1.DailyMaintenanceWindow.encode(message.dailyMaintenanceWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.recurringWindow != null && Object.hasOwnProperty.call(message, "recurringWindow")) + if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) $root.google.container.v1.RecurringTimeWindow.encode(message.recurringWindow, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maintenanceExclusions != null && Object.hasOwnProperty.call(message, "maintenanceExclusions")) + if (message.maintenanceExclusions != null && message.hasOwnProperty("maintenanceExclusions")) for (var keys = Object.keys(message.maintenanceExclusions), i = 0; i < keys.length; ++i) { writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); $root.google.container.v1.TimeWindow.encode(message.maintenanceExclusions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); @@ -16759,9 +16759,9 @@ TimeWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + if (message.startTime != null && message.hasOwnProperty("startTime")) $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + if (message.endTime != null && message.hasOwnProperty("endTime")) $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -16979,9 +16979,9 @@ RecurringTimeWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && Object.hasOwnProperty.call(message, "window")) + if (message.window != null && message.hasOwnProperty("window")) $root.google.container.v1.TimeWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) + if (message.recurrence != null && message.hasOwnProperty("recurrence")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.recurrence); return writer; }; @@ -17194,9 +17194,9 @@ DailyMaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + if (message.startTime != null && message.hasOwnProperty("startTime")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.startTime); - if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) + if (message.duration != null && message.hasOwnProperty("duration")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.duration); return writer; }; @@ -17440,17 +17440,17 @@ SetNodePoolManagementRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.management != null && Object.hasOwnProperty.call(message, "management")) + if (message.management != null && message.hasOwnProperty("management")) $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -17743,17 +17743,17 @@ SetNodePoolSizeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nodeCount); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -18032,15 +18032,15 @@ RollbackNodePoolUpgradeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -18509,12 +18509,12 @@ ClusterAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableNodeAutoprovisioning != null && Object.hasOwnProperty.call(message, "enableNodeAutoprovisioning")) + if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableNodeAutoprovisioning); if (message.resourceLimits != null && message.resourceLimits.length) for (var i = 0; i < message.resourceLimits.length; ++i) $root.google.container.v1.ResourceLimit.encode(message.resourceLimits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.autoprovisioningNodePoolDefaults != null && Object.hasOwnProperty.call(message, "autoprovisioningNodePoolDefaults")) + if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) $root.google.container.v1.AutoprovisioningNodePoolDefaults.encode(message.autoprovisioningNodePoolDefaults, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.autoprovisioningLocations != null && message.autoprovisioningLocations.length) for (var i = 0; i < message.autoprovisioningLocations.length; ++i) @@ -18791,7 +18791,7 @@ if (message.oauthScopes != null && message.oauthScopes.length) for (var i = 0; i < message.oauthScopes.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.oauthScopes[i]); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); return writer; }; @@ -19022,11 +19022,11 @@ ResourceLimit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + if (message.resourceType != null && message.hasOwnProperty("resourceType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceType); - if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) + if (message.minimum != null && message.hasOwnProperty("minimum")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minimum); - if (message.maximum != null && Object.hasOwnProperty.call(message, "maximum")) + if (message.maximum != null && message.hasOwnProperty("maximum")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maximum); return writer; }; @@ -19291,13 +19291,13 @@ NodePoolAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + if (message.enabled != null && message.hasOwnProperty("enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minNodeCount); - if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); - if (message.autoprovisioned != null && Object.hasOwnProperty.call(message, "autoprovisioned")) + if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.autoprovisioned); return writer; }; @@ -19564,18 +19564,18 @@ SetLabelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.resourceLabels != null && Object.hasOwnProperty.call(message, "resourceLabels")) + if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i) writer.uint32(/* id 4, wireType 2 =*/34).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")) + if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.labelFingerprint); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -19874,15 +19874,15 @@ SetLegacyAbacRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + if (message.enabled != null && message.hasOwnProperty("enabled")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -20150,15 +20150,15 @@ StartIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); - if (message.rotateCredentials != null && Object.hasOwnProperty.call(message, "rotateCredentials")) + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateCredentials); return writer; }; @@ -20417,13 +20417,13 @@ CompleteIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -20653,9 +20653,9 @@ AcceleratorConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.acceleratorCount != null && Object.hasOwnProperty.call(message, "acceleratorCount")) + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); - if (message.acceleratorType != null && Object.hasOwnProperty.call(message, "acceleratorType")) + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); return writer; }; @@ -20904,15 +20904,15 @@ SetNetworkPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) + if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -21185,15 +21185,15 @@ SetMaintenancePolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) + if (message.projectId != null && message.hasOwnProperty("projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) + if (message.zone != null && message.hasOwnProperty("zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) + if (message.clusterId != null && message.hasOwnProperty("clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy")) + if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -21439,9 +21439,9 @@ StatusCondition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) + if (message.code != null && message.hasOwnProperty("code")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) + if (message.message != null && message.hasOwnProperty("message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; @@ -21617,7 +21617,7 @@ /** * Code enum. * @name google.container.v1.StatusCondition.Code - * @enum {number} + * @enum {string} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} GCE_STOCKOUT=1 GCE_STOCKOUT value * @property {number} GKE_SERVICE_ACCOUNT_DELETED=2 GKE_SERVICE_ACCOUNT_DELETED value @@ -21713,11 +21713,11 @@ NetworkConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) + if (message.network != null && message.hasOwnProperty("network")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); - if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); - if (message.enableIntraNodeVisibility != null && Object.hasOwnProperty.call(message, "enableIntraNodeVisibility")) + if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableIntraNodeVisibility); return writer; }; @@ -21927,7 +21927,7 @@ IntraNodeVisibilityConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + if (message.enabled != null && message.hasOwnProperty("enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -22114,7 +22114,7 @@ MaxPodsConstraint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.maxPodsPerNode != null && Object.hasOwnProperty.call(message, "maxPodsPerNode")) + if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxPodsPerNode); return writer; }; @@ -22324,9 +22324,9 @@ DatabaseEncryption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyName != null && Object.hasOwnProperty.call(message, "keyName")) + if (message.keyName != null && message.hasOwnProperty("keyName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyName); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) + if (message.state != null && message.hasOwnProperty("state")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); return writer; }; @@ -22487,7 +22487,7 @@ /** * State enum. * @name google.container.v1.DatabaseEncryption.State - * @enum {number} + * @enum {string} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} ENCRYPTED=1 ENCRYPTED value * @property {number} DECRYPTED=2 DECRYPTED value @@ -22586,13 +22586,13 @@ ListUsableSubnetworksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + if (message.parent != null && message.hasOwnProperty("parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + if (message.filter != null && message.hasOwnProperty("filter")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + if (message.pageSize != null && message.hasOwnProperty("pageSize")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + if (message.pageToken != null && message.hasOwnProperty("pageToken")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); return writer; }; @@ -22826,7 +22826,7 @@ if (message.subnetworks != null && message.subnetworks.length) for (var i = 0; i < message.subnetworks.length; ++i) $root.google.container.v1.UsableSubnetwork.encode(message.subnetworks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; @@ -23062,11 +23062,11 @@ UsableSubnetworkSecondaryRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rangeName != null && Object.hasOwnProperty.call(message, "rangeName")) + if (message.rangeName != null && message.hasOwnProperty("rangeName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.rangeName); - if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.ipCidrRange); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) + if (message.status != null && message.hasOwnProperty("status")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); return writer; }; @@ -23248,7 +23248,7 @@ /** * Status enum. * @name google.container.v1.UsableSubnetworkSecondaryRange.Status - * @enum {number} + * @enum {string} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} UNUSED=1 UNUSED value * @property {number} IN_USE_SERVICE=2 IN_USE_SERVICE value @@ -23361,16 +23361,16 @@ UsableSubnetwork.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.subnetwork); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) + if (message.network != null && message.hasOwnProperty("network")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); - if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) + if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.ipCidrRange); if (message.secondaryIpRanges != null && message.secondaryIpRanges.length) for (var i = 0; i < message.secondaryIpRanges.length; ++i) $root.google.container.v1.UsableSubnetworkSecondaryRange.encode(message.secondaryIpRanges[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); return writer; }; @@ -23640,11 +23640,11 @@ ResourceUsageExportConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.enableNetworkEgressMetering != null && Object.hasOwnProperty.call(message, "enableNetworkEgressMetering")) + if (message.enableNetworkEgressMetering != null && message.hasOwnProperty("enableNetworkEgressMetering")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableNetworkEgressMetering); - if (message.consumptionMeteringConfig != null && Object.hasOwnProperty.call(message, "consumptionMeteringConfig")) + if (message.consumptionMeteringConfig != null && message.hasOwnProperty("consumptionMeteringConfig")) $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.encode(message.consumptionMeteringConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -23861,7 +23861,7 @@ BigQueryDestination.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) + if (message.datasetId != null && message.hasOwnProperty("datasetId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); return writer; }; @@ -24048,7 +24048,7 @@ ConsumptionMeteringConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + if (message.enabled != null && message.hasOwnProperty("enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -24238,7 +24238,7 @@ VerticalPodAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + if (message.enabled != null && message.hasOwnProperty("enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -24453,7 +24453,7 @@ if (message.rules != null && message.rules.length) for (var i = 0; i < message.rules.length; ++i) $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); return writer; }; @@ -24767,26 +24767,26 @@ HttpRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + if (message.selector != null && message.hasOwnProperty("selector")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && Object.hasOwnProperty.call(message, "get")) + if (message.get != null && message.hasOwnProperty("get")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && Object.hasOwnProperty.call(message, "put")) + if (message.put != null && message.hasOwnProperty("put")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && Object.hasOwnProperty.call(message, "post")) + if (message.post != null && message.hasOwnProperty("post")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + if (message["delete"] != null && message.hasOwnProperty("delete")) writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + if (message.patch != null && message.hasOwnProperty("patch")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && Object.hasOwnProperty.call(message, "body")) + if (message.body != null && message.hasOwnProperty("body")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + if (message.custom != null && message.hasOwnProperty("custom")) $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.additionalBindings != null && message.additionalBindings.length) for (var i = 0; i < message.additionalBindings.length; ++i) $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + if (message.responseBody != null && message.hasOwnProperty("responseBody")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); return writer; }; @@ -25143,9 +25143,9 @@ CustomHttpPattern.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + if (message.kind != null && message.hasOwnProperty("kind")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) + if (message.path != null && message.hasOwnProperty("path")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); return writer; }; @@ -25291,7 +25291,7 @@ /** * FieldBehavior enum. * @name google.api.FieldBehavior - * @enum {number} + * @enum {string} * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value * @property {number} OPTIONAL=1 OPTIONAL value * @property {number} REQUIRED=2 REQUIRED value @@ -25692,9 +25692,9 @@ FileDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) + if (message["package"] != null && message.hasOwnProperty("package")) writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); if (message.dependency != null && message.dependency.length) for (var i = 0; i < message.dependency.length; ++i) @@ -25711,9 +25711,9 @@ if (message.extension != null && message.extension.length) for (var i = 0; i < message.extension.length; ++i) $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) + if (message.options != null && message.hasOwnProperty("options")) $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.publicDependency != null && message.publicDependency.length) for (var i = 0; i < message.publicDependency.length; ++i) @@ -25721,7 +25721,7 @@ if (message.weakDependency != null && message.weakDependency.length) for (var i = 0; i < message.weakDependency.length; ++i) writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + if (message.syntax != null && message.hasOwnProperty("syntax")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); return writer; }; @@ -26259,7 +26259,7 @@ DescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.field != null && message.field.length) for (var i = 0; i < message.field.length; ++i) @@ -26276,7 +26276,7 @@ if (message.extension != null && message.extension.length) for (var i = 0; i < message.extension.length; ++i) $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) + if (message.options != null && message.hasOwnProperty("options")) $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.oneofDecl != null && message.oneofDecl.length) for (var i = 0; i < message.oneofDecl.length; ++i) @@ -26741,11 +26741,11 @@ ExtensionRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) + if (message.start != null && message.hasOwnProperty("start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) + if (message.end != null && message.hasOwnProperty("end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) + if (message.options != null && message.hasOwnProperty("options")) $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -26969,9 +26969,9 @@ ReservedRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) + if (message.start != null && message.hasOwnProperty("start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) + if (message.end != null && message.hasOwnProperty("end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); return writer; }; @@ -27462,25 +27462,25 @@ FieldDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + if (message.extendee != null && message.hasOwnProperty("extendee")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) + if (message.number != null && message.hasOwnProperty("number")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) + if (message.label != null && message.hasOwnProperty("label")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) + if (message.type != null && message.hasOwnProperty("type")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + if (message.typeName != null && message.hasOwnProperty("typeName")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) + if (message.options != null && message.hasOwnProperty("options")) $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + if (message.jsonName != null && message.hasOwnProperty("jsonName")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); return writer; }; @@ -27827,7 +27827,7 @@ /** * Type enum. * @name google.protobuf.FieldDescriptorProto.Type - * @enum {number} + * @enum {string} * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value * @property {number} TYPE_INT64=3 TYPE_INT64 value @@ -27873,7 +27873,7 @@ /** * Label enum. * @name google.protobuf.FieldDescriptorProto.Label - * @enum {number} + * @enum {string} * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value @@ -27954,9 +27954,9 @@ OneofDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) + if (message.options != null && message.hasOwnProperty("options")) $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -28199,12 +28199,12 @@ EnumDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.value != null && message.value.length) for (var i = 0; i < message.value.length; ++i) $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) + if (message.options != null && message.hasOwnProperty("options")) $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.reservedRange != null && message.reservedRange.length) for (var i = 0; i < message.reservedRange.length; ++i) @@ -28507,9 +28507,9 @@ EnumReservedRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) + if (message.start != null && message.hasOwnProperty("start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) + if (message.end != null && message.hasOwnProperty("end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); return writer; }; @@ -28729,11 +28729,11 @@ EnumValueDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) + if (message.number != null && message.hasOwnProperty("number")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) + if (message.options != null && message.hasOwnProperty("options")) $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -28967,12 +28967,12 @@ ServiceDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.method != null && message.method.length) for (var i = 0; i < message.method.length; ++i) $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) + if (message.options != null && message.hasOwnProperty("options")) $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -29252,17 +29252,17 @@ MethodDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) + if (message.name != null && message.hasOwnProperty("name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + if (message.inputType != null && message.hasOwnProperty("inputType")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + if (message.outputType != null && message.hasOwnProperty("outputType")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) + if (message.options != null && message.hasOwnProperty("options")) $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); return writer; }; @@ -29691,45 +29691,45 @@ FileOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + if (message.goPackage != null && message.hasOwnProperty("goPackage")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + if (message.deprecated != null && message.hasOwnProperty("deprecated")) writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); - if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); - if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); - if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); - if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -30122,7 +30122,7 @@ /** * OptimizeMode enum. * @name google.protobuf.FileOptions.OptimizeMode - * @enum {number} + * @enum {string} * @property {number} SPEED=1 SPEED value * @property {number} CODE_SIZE=2 CODE_SIZE value * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value @@ -30231,13 +30231,13 @@ MessageOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + if (message.deprecated != null && message.hasOwnProperty("deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -30557,17 +30557,17 @@ FieldOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + if (message.ctype != null && message.hasOwnProperty("ctype")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + if (message.packed != null && message.hasOwnProperty("packed")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + if (message.deprecated != null && message.hasOwnProperty("deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + if (message.lazy != null && message.hasOwnProperty("lazy")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + if (message.jstype != null && message.hasOwnProperty("jstype")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + if (message.weak != null && message.hasOwnProperty("weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -30896,7 +30896,7 @@ /** * CType enum. * @name google.protobuf.FieldOptions.CType - * @enum {number} + * @enum {string} * @property {number} STRING=0 STRING value * @property {number} CORD=1 CORD value * @property {number} STRING_PIECE=2 STRING_PIECE value @@ -30912,7 +30912,7 @@ /** * JSType enum. * @name google.protobuf.FieldOptions.JSType - * @enum {number} + * @enum {string} * @property {number} JS_NORMAL=0 JS_NORMAL value * @property {number} JS_STRING=1 JS_STRING value * @property {number} JS_NUMBER=2 JS_NUMBER value @@ -31211,9 +31211,9 @@ EnumOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + if (message.deprecated != null && message.hasOwnProperty("deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -31456,7 +31456,7 @@ EnumValueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + if (message.deprecated != null && message.hasOwnProperty("deprecated")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -31705,14 +31705,14 @@ ServiceOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + if (message.deprecated != null && message.hasOwnProperty("deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); - if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); return writer; }; @@ -31991,9 +31991,9 @@ MethodOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + if (message.deprecated != null && message.hasOwnProperty("deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -32001,7 +32001,7 @@ if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); - if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; }; @@ -32235,7 +32235,7 @@ /** * IdempotencyLevel enum. * @name google.protobuf.MethodOptions.IdempotencyLevel - * @enum {number} + * @enum {string} * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value * @property {number} IDEMPOTENT=2 IDEMPOTENT value @@ -32365,17 +32365,17 @@ if (message.name != null && message.name.length) for (var i = 0; i < message.name.length; ++i) $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + if (message.stringValue != null && message.hasOwnProperty("stringValue")) writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); return writer; }; @@ -33152,9 +33152,9 @@ writer.int32(message.span[i]); writer.ldelim(); } - if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) for (var i = 0; i < message.leadingDetachedComments.length; ++i) @@ -33685,11 +33685,11 @@ writer.int32(message.path[i]); writer.ldelim(); } - if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + if (message.begin != null && message.hasOwnProperty("begin")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) + if (message.end != null && message.hasOwnProperty("end")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); return writer; }; @@ -34102,9 +34102,9 @@ Timestamp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + if (message.seconds != null && message.hasOwnProperty("seconds")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + if (message.nanos != null && message.hasOwnProperty("nanos")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index c9b90db74f4..6f71aeefbcd 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -3,23 +3,15 @@ { "git": { "name": ".", - "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "e8fd828801edf9d153ff2bfe957858129fee383f" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "42ee97c1b93a0e3759bbba3013da309f670a90ab", - "internalRef": "307114445" + "remote": "git@github.com:googleapis/nodejs-cloud-container.git", + "sha": "a0b5ac609094f5ad30713a3ad0951a361ae902cd" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "19465d3ec5e5acdb01521d8f3bddd311bcbee28d" + "sha": "ab883569eb0257bbf16a6d825fd018b3adde3912" } } ], diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index e74dee08b62..e2c923ed86a 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -302,9 +302,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.listClusters(request); - }, expectedError); + await assert.rejects(client.listClusters(request), expectedError); assert( (client.innerApiCalls.listClusters as SinonStub) .getCall(0) @@ -419,9 +417,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.getCluster(request); - }, expectedError); + await assert.rejects(client.getCluster(request), expectedError); assert( (client.innerApiCalls.getCluster as SinonStub) .getCall(0) @@ -536,9 +532,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.createCluster(request); - }, expectedError); + await assert.rejects(client.createCluster(request), expectedError); assert( (client.innerApiCalls.createCluster as SinonStub) .getCall(0) @@ -653,9 +647,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.updateCluster(request); - }, expectedError); + await assert.rejects(client.updateCluster(request), expectedError); assert( (client.innerApiCalls.updateCluster as SinonStub) .getCall(0) @@ -770,9 +762,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.updateNodePool(request); - }, expectedError); + await assert.rejects(client.updateNodePool(request), expectedError); assert( (client.innerApiCalls.updateNodePool as SinonStub) .getCall(0) @@ -889,9 +879,10 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setNodePoolAutoscaling(request); - }, expectedError); + await assert.rejects( + client.setNodePoolAutoscaling(request), + expectedError + ); assert( (client.innerApiCalls.setNodePoolAutoscaling as SinonStub) .getCall(0) @@ -1006,9 +997,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setLoggingService(request); - }, expectedError); + await assert.rejects(client.setLoggingService(request), expectedError); assert( (client.innerApiCalls.setLoggingService as SinonStub) .getCall(0) @@ -1125,9 +1114,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setMonitoringService(request); - }, expectedError); + await assert.rejects(client.setMonitoringService(request), expectedError); assert( (client.innerApiCalls.setMonitoringService as SinonStub) .getCall(0) @@ -1242,9 +1229,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setAddonsConfig(request); - }, expectedError); + await assert.rejects(client.setAddonsConfig(request), expectedError); assert( (client.innerApiCalls.setAddonsConfig as SinonStub) .getCall(0) @@ -1359,9 +1344,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setLocations(request); - }, expectedError); + await assert.rejects(client.setLocations(request), expectedError); assert( (client.innerApiCalls.setLocations as SinonStub) .getCall(0) @@ -1476,9 +1459,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.updateMaster(request); - }, expectedError); + await assert.rejects(client.updateMaster(request), expectedError); assert( (client.innerApiCalls.updateMaster as SinonStub) .getCall(0) @@ -1593,9 +1574,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setMasterAuth(request); - }, expectedError); + await assert.rejects(client.setMasterAuth(request), expectedError); assert( (client.innerApiCalls.setMasterAuth as SinonStub) .getCall(0) @@ -1710,9 +1689,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.deleteCluster(request); - }, expectedError); + await assert.rejects(client.deleteCluster(request), expectedError); assert( (client.innerApiCalls.deleteCluster as SinonStub) .getCall(0) @@ -1827,9 +1804,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.listOperations(request); - }, expectedError); + await assert.rejects(client.listOperations(request), expectedError); assert( (client.innerApiCalls.listOperations as SinonStub) .getCall(0) @@ -1944,9 +1919,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.getOperation(request); - }, expectedError); + await assert.rejects(client.getOperation(request), expectedError); assert( (client.innerApiCalls.getOperation as SinonStub) .getCall(0) @@ -2061,9 +2034,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.cancelOperation(request); - }, expectedError); + await assert.rejects(client.cancelOperation(request), expectedError); assert( (client.innerApiCalls.cancelOperation as SinonStub) .getCall(0) @@ -2178,9 +2149,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.getServerConfig(request); - }, expectedError); + await assert.rejects(client.getServerConfig(request), expectedError); assert( (client.innerApiCalls.getServerConfig as SinonStub) .getCall(0) @@ -2295,9 +2264,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.listNodePools(request); - }, expectedError); + await assert.rejects(client.listNodePools(request), expectedError); assert( (client.innerApiCalls.listNodePools as SinonStub) .getCall(0) @@ -2412,9 +2379,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.getNodePool(request); - }, expectedError); + await assert.rejects(client.getNodePool(request), expectedError); assert( (client.innerApiCalls.getNodePool as SinonStub) .getCall(0) @@ -2529,9 +2494,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.createNodePool(request); - }, expectedError); + await assert.rejects(client.createNodePool(request), expectedError); assert( (client.innerApiCalls.createNodePool as SinonStub) .getCall(0) @@ -2646,9 +2609,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.deleteNodePool(request); - }, expectedError); + await assert.rejects(client.deleteNodePool(request), expectedError); assert( (client.innerApiCalls.deleteNodePool as SinonStub) .getCall(0) @@ -2765,9 +2726,10 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.rollbackNodePoolUpgrade(request); - }, expectedError); + await assert.rejects( + client.rollbackNodePoolUpgrade(request), + expectedError + ); assert( (client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub) .getCall(0) @@ -2884,9 +2846,10 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setNodePoolManagement(request); - }, expectedError); + await assert.rejects( + client.setNodePoolManagement(request), + expectedError + ); assert( (client.innerApiCalls.setNodePoolManagement as SinonStub) .getCall(0) @@ -2998,9 +2961,7 @@ describe('v1.ClusterManagerClient', () => { }; const expectedError = new Error('expected'); client.innerApiCalls.setLabels = stubSimpleCall(undefined, expectedError); - await assert.rejects(async () => { - await client.setLabels(request); - }, expectedError); + await assert.rejects(client.setLabels(request), expectedError); assert( (client.innerApiCalls.setLabels as SinonStub) .getCall(0) @@ -3115,9 +3076,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setLegacyAbac(request); - }, expectedError); + await assert.rejects(client.setLegacyAbac(request), expectedError); assert( (client.innerApiCalls.setLegacyAbac as SinonStub) .getCall(0) @@ -3232,9 +3191,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.startIPRotation(request); - }, expectedError); + await assert.rejects(client.startIPRotation(request), expectedError); assert( (client.innerApiCalls.startIPRotation as SinonStub) .getCall(0) @@ -3351,9 +3308,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.completeIPRotation(request); - }, expectedError); + await assert.rejects(client.completeIPRotation(request), expectedError); assert( (client.innerApiCalls.completeIPRotation as SinonStub) .getCall(0) @@ -3468,9 +3423,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setNodePoolSize(request); - }, expectedError); + await assert.rejects(client.setNodePoolSize(request), expectedError); assert( (client.innerApiCalls.setNodePoolSize as SinonStub) .getCall(0) @@ -3585,9 +3538,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setNetworkPolicy(request); - }, expectedError); + await assert.rejects(client.setNetworkPolicy(request), expectedError); assert( (client.innerApiCalls.setNetworkPolicy as SinonStub) .getCall(0) @@ -3704,9 +3655,7 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.setMaintenancePolicy(request); - }, expectedError); + await assert.rejects(client.setMaintenancePolicy(request), expectedError); assert( (client.innerApiCalls.setMaintenancePolicy as SinonStub) .getCall(0) @@ -3836,9 +3785,10 @@ describe('v1.ClusterManagerClient', () => { undefined, expectedError ); - await assert.rejects(async () => { - await client.listUsableSubnetworks(request); - }, expectedError); + await assert.rejects( + client.listUsableSubnetworks(request), + expectedError + ); assert( (client.innerApiCalls.listUsableSubnetworks as SinonStub) .getCall(0) @@ -3936,9 +3886,7 @@ describe('v1.ClusterManagerClient', () => { reject(err); }); }); - await assert.rejects(async () => { - await promise; - }, expectedError); + await assert.rejects(promise, expectedError); assert( (client.descriptors.page.listUsableSubnetworks .createStream as SinonStub) From ffc7b972e64e4dd74d3b293335dc5767b041ac79 Mon Sep 17 00:00:00 2001 From: Summer Ji Date: Wed, 6 May 2020 00:58:05 -0700 Subject: [PATCH 215/371] fix: synth.py clean up for multiple version (#341) --- packages/google-container/protos/protos.js | 920 ++++++++++----------- packages/google-container/src/index.ts | 10 +- packages/google-container/synth.metadata | 10 +- packages/google-container/synth.py | 13 +- 4 files changed, 481 insertions(+), 472 deletions(-) diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index c44e442bd9a..b693bf57b94 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1303,41 +1303,41 @@ NodeConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.machineType != null && message.hasOwnProperty("machineType")) + if (message.machineType != null && Object.hasOwnProperty.call(message, "machineType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.machineType); - if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.diskSizeGb); if (message.oauthScopes != null && message.oauthScopes.length) for (var i = 0; i < message.oauthScopes.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).string(message.oauthScopes[i]); - if (message.metadata != null && message.hasOwnProperty("metadata")) + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i) writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim(); - if (message.imageType != null && message.hasOwnProperty("imageType")) + if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.imageType); - if (message.labels != null && message.hasOwnProperty("labels")) + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.localSsdCount != null && message.hasOwnProperty("localSsdCount")) + if (message.localSsdCount != null && Object.hasOwnProperty.call(message, "localSsdCount")) writer.uint32(/* id 7, wireType 0 =*/56).int32(message.localSsdCount); if (message.tags != null && message.tags.length) for (var i = 0; i < message.tags.length; ++i) writer.uint32(/* id 8, wireType 2 =*/66).string(message.tags[i]); - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.serviceAccount); - if (message.preemptible != null && message.hasOwnProperty("preemptible")) + if (message.preemptible != null && Object.hasOwnProperty.call(message, "preemptible")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.preemptible); if (message.accelerators != null && message.accelerators.length) for (var i = 0; i < message.accelerators.length; ++i) $root.google.container.v1.AcceleratorConfig.encode(message.accelerators[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.diskType != null && message.hasOwnProperty("diskType")) + if (message.diskType != null && Object.hasOwnProperty.call(message, "diskType")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.diskType); - if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.minCpuPlatform); 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.shieldedInstanceConfig != null && message.hasOwnProperty("shieldedInstanceConfig")) + 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(); return writer; }; @@ -1800,9 +1800,9 @@ ShieldedInstanceConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableSecureBoot != null && message.hasOwnProperty("enableSecureBoot")) + if (message.enableSecureBoot != null && Object.hasOwnProperty.call(message, "enableSecureBoot")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableSecureBoot); - if (message.enableIntegrityMonitoring != null && message.hasOwnProperty("enableIntegrityMonitoring")) + if (message.enableIntegrityMonitoring != null && Object.hasOwnProperty.call(message, "enableIntegrityMonitoring")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableIntegrityMonitoring); return writer; }; @@ -2019,11 +2019,11 @@ NodeTaint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.key != null && message.hasOwnProperty("key")) + if (message.key != null && Object.hasOwnProperty.call(message, "key")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && message.hasOwnProperty("value")) + if (message.value != null && Object.hasOwnProperty.call(message, "value")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - if (message.effect != null && message.hasOwnProperty("effect")) + if (message.effect != null && Object.hasOwnProperty.call(message, "effect")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.effect); return writer; }; @@ -2200,7 +2200,7 @@ /** * Effect enum. * @name google.container.v1.NodeTaint.Effect - * @enum {string} + * @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 @@ -2319,17 +2319,17 @@ MasterAuth.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.username != null && message.hasOwnProperty("username")) + if (message.username != null && Object.hasOwnProperty.call(message, "username")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.password != null && message.hasOwnProperty("password")) + if (message.password != null && Object.hasOwnProperty.call(message, "password")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.password); - if (message.clientCertificateConfig != null && message.hasOwnProperty("clientCertificateConfig")) + 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 && message.hasOwnProperty("clusterCaCertificate")) + if (message.clusterCaCertificate != null && Object.hasOwnProperty.call(message, "clusterCaCertificate")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.clusterCaCertificate); - if (message.clientCertificate != null && message.hasOwnProperty("clientCertificate")) + if (message.clientCertificate != null && Object.hasOwnProperty.call(message, "clientCertificate")) writer.uint32(/* id 101, wireType 2 =*/810).string(message.clientCertificate); - if (message.clientKey != null && message.hasOwnProperty("clientKey")) + if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey")) writer.uint32(/* id 102, wireType 2 =*/818).string(message.clientKey); return writer; }; @@ -2577,7 +2577,7 @@ ClientCertificateConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.issueClientCertificate != null && message.hasOwnProperty("issueClientCertificate")) + if (message.issueClientCertificate != null && Object.hasOwnProperty.call(message, "issueClientCertificate")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.issueClientCertificate); return writer; }; @@ -2800,15 +2800,15 @@ AddonsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) + 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 && message.hasOwnProperty("horizontalPodAutoscaling")) + 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 && message.hasOwnProperty("kubernetesDashboard")) + 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 && message.hasOwnProperty("networkPolicyConfig")) + 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 && message.hasOwnProperty("cloudRunConfig")) + 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(); return writer; }; @@ -3065,7 +3065,7 @@ HttpLoadBalancing.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3252,7 +3252,7 @@ HorizontalPodAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3439,7 +3439,7 @@ KubernetesDashboard.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3626,7 +3626,7 @@ NetworkPolicyConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -3849,15 +3849,15 @@ PrivateClusterConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) + if (message.enablePrivateNodes != null && Object.hasOwnProperty.call(message, "enablePrivateNodes")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enablePrivateNodes); - if (message.enablePrivateEndpoint != null && message.hasOwnProperty("enablePrivateEndpoint")) + if (message.enablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "enablePrivateEndpoint")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enablePrivateEndpoint); - if (message.masterIpv4CidrBlock != null && message.hasOwnProperty("masterIpv4CidrBlock")) + if (message.masterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "masterIpv4CidrBlock")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.masterIpv4CidrBlock); - if (message.privateEndpoint != null && message.hasOwnProperty("privateEndpoint")) + if (message.privateEndpoint != null && Object.hasOwnProperty.call(message, "privateEndpoint")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.privateEndpoint); - if (message.publicEndpoint != null && message.hasOwnProperty("publicEndpoint")) + if (message.publicEndpoint != null && Object.hasOwnProperty.call(message, "publicEndpoint")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicEndpoint); return writer; }; @@ -4098,9 +4098,9 @@ AuthenticatorGroupsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.securityGroup != null && message.hasOwnProperty("securityGroup")) + if (message.securityGroup != null && Object.hasOwnProperty.call(message, "securityGroup")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.securityGroup); return writer; }; @@ -4299,7 +4299,7 @@ CloudRunConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.disabled != null && message.hasOwnProperty("disabled")) + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); return writer; }; @@ -4496,7 +4496,7 @@ MasterAuthorizedNetworksConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + 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) @@ -4723,9 +4723,9 @@ CidrBlock.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.displayName != null && message.hasOwnProperty("displayName")) + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.displayName); - if (message.cidrBlock != null && message.hasOwnProperty("cidrBlock")) + if (message.cidrBlock != null && Object.hasOwnProperty.call(message, "cidrBlock")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.cidrBlock); return writer; }; @@ -4927,7 +4927,7 @@ LegacyAbac.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -5123,9 +5123,9 @@ NetworkPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.provider != null && message.hasOwnProperty("provider")) + if (message.provider != null && Object.hasOwnProperty.call(message, "provider")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.provider); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); return writer; }; @@ -5281,7 +5281,7 @@ /** * Provider enum. * @name google.container.v1.NetworkPolicy.Provider - * @enum {string} + * @enum {number} * @property {number} PROVIDER_UNSPECIFIED=0 PROVIDER_UNSPECIFIED value * @property {number} CALICO=1 CALICO value */ @@ -5351,7 +5351,7 @@ BinaryAuthorization.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -5637,29 +5637,29 @@ IPAllocationPolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) + if (message.useIpAliases != null && Object.hasOwnProperty.call(message, "useIpAliases")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useIpAliases); - if (message.createSubnetwork != null && message.hasOwnProperty("createSubnetwork")) + if (message.createSubnetwork != null && Object.hasOwnProperty.call(message, "createSubnetwork")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.createSubnetwork); - if (message.subnetworkName != null && message.hasOwnProperty("subnetworkName")) + if (message.subnetworkName != null && Object.hasOwnProperty.call(message, "subnetworkName")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.subnetworkName); - if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.clusterIpv4Cidr); - if (message.nodeIpv4Cidr != null && message.hasOwnProperty("nodeIpv4Cidr")) + if (message.nodeIpv4Cidr != null && Object.hasOwnProperty.call(message, "nodeIpv4Cidr")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeIpv4Cidr); - if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) + if (message.servicesIpv4Cidr != null && Object.hasOwnProperty.call(message, "servicesIpv4Cidr")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.servicesIpv4Cidr); - if (message.clusterSecondaryRangeName != null && message.hasOwnProperty("clusterSecondaryRangeName")) + if (message.clusterSecondaryRangeName != null && Object.hasOwnProperty.call(message, "clusterSecondaryRangeName")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.clusterSecondaryRangeName); - if (message.servicesSecondaryRangeName != null && message.hasOwnProperty("servicesSecondaryRangeName")) + if (message.servicesSecondaryRangeName != null && Object.hasOwnProperty.call(message, "servicesSecondaryRangeName")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.servicesSecondaryRangeName); - if (message.clusterIpv4CidrBlock != null && message.hasOwnProperty("clusterIpv4CidrBlock")) + if (message.clusterIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "clusterIpv4CidrBlock")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4CidrBlock); - if (message.nodeIpv4CidrBlock != null && message.hasOwnProperty("nodeIpv4CidrBlock")) + if (message.nodeIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrBlock")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.nodeIpv4CidrBlock); - if (message.servicesIpv4CidrBlock != null && message.hasOwnProperty("servicesIpv4CidrBlock")) + if (message.servicesIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "servicesIpv4CidrBlock")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.servicesIpv4CidrBlock); - if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) + if (message.tpuIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "tpuIpv4CidrBlock")) writer.uint32(/* id 13, wireType 2 =*/106).string(message.tpuIpv4CidrBlock); return writer; }; @@ -6396,27 +6396,27 @@ Cluster.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.nodeConfig != null && message.hasOwnProperty("nodeConfig")) + 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 && message.hasOwnProperty("masterAuth")) + 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 && message.hasOwnProperty("loggingService")) + if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.loggingService); - if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.monitoringService); - if (message.network != null && message.hasOwnProperty("network")) + if (message.network != null && Object.hasOwnProperty.call(message, "network")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.network); - if (message.clusterIpv4Cidr != null && message.hasOwnProperty("clusterIpv4Cidr")) + if (message.clusterIpv4Cidr != null && Object.hasOwnProperty.call(message, "clusterIpv4Cidr")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.clusterIpv4Cidr); - if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) + 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 && message.hasOwnProperty("subnetwork")) + 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) @@ -6424,75 +6424,75 @@ 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 && message.hasOwnProperty("enableKubernetesAlpha")) + if (message.enableKubernetesAlpha != null && Object.hasOwnProperty.call(message, "enableKubernetesAlpha")) writer.uint32(/* id 14, wireType 0 =*/112).bool(message.enableKubernetesAlpha); - if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) + 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 && message.hasOwnProperty("labelFingerprint")) + if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) writer.uint32(/* id 16, wireType 2 =*/130).string(message.labelFingerprint); - if (message.legacyAbac != null && message.hasOwnProperty("legacyAbac")) + 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 && message.hasOwnProperty("networkPolicy")) + 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 && message.hasOwnProperty("ipAllocationPolicy")) + 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 && message.hasOwnProperty("masterAuthorizedNetworksConfig")) + 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 && message.hasOwnProperty("maintenancePolicy")) + 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 && message.hasOwnProperty("binaryAuthorization")) + 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 && message.hasOwnProperty("autoscaling")) + 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 && message.hasOwnProperty("networkConfig")) + 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 && message.hasOwnProperty("defaultMaxPodsConstraint")) + 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 && message.hasOwnProperty("resourceUsageExportConfig")) + 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 && message.hasOwnProperty("authenticatorGroupsConfig")) + 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 && message.hasOwnProperty("privateClusterConfig")) + 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 && message.hasOwnProperty("databaseEncryption")) + 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 && message.hasOwnProperty("verticalPodAutoscaling")) + 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 && message.hasOwnProperty("selfLink")) + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 101, wireType 2 =*/810).string(message.zone); - if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) writer.uint32(/* id 102, wireType 2 =*/818).string(message.endpoint); - if (message.initialClusterVersion != null && message.hasOwnProperty("initialClusterVersion")) + if (message.initialClusterVersion != null && Object.hasOwnProperty.call(message, "initialClusterVersion")) writer.uint32(/* id 103, wireType 2 =*/826).string(message.initialClusterVersion); - if (message.currentMasterVersion != null && message.hasOwnProperty("currentMasterVersion")) + if (message.currentMasterVersion != null && Object.hasOwnProperty.call(message, "currentMasterVersion")) writer.uint32(/* id 104, wireType 2 =*/834).string(message.currentMasterVersion); - if (message.currentNodeVersion != null && message.hasOwnProperty("currentNodeVersion")) + if (message.currentNodeVersion != null && Object.hasOwnProperty.call(message, "currentNodeVersion")) writer.uint32(/* id 105, wireType 2 =*/842).string(message.currentNodeVersion); - if (message.createTime != null && message.hasOwnProperty("createTime")) + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) writer.uint32(/* id 106, wireType 2 =*/850).string(message.createTime); - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 107, wireType 0 =*/856).int32(message.status); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 108, wireType 2 =*/866).string(message.statusMessage); - if (message.nodeIpv4CidrSize != null && message.hasOwnProperty("nodeIpv4CidrSize")) + if (message.nodeIpv4CidrSize != null && Object.hasOwnProperty.call(message, "nodeIpv4CidrSize")) writer.uint32(/* id 109, wireType 0 =*/872).int32(message.nodeIpv4CidrSize); - if (message.servicesIpv4Cidr != null && message.hasOwnProperty("servicesIpv4Cidr")) + 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 && message.hasOwnProperty("currentNodeCount")) + if (message.currentNodeCount != null && Object.hasOwnProperty.call(message, "currentNodeCount")) writer.uint32(/* id 112, wireType 0 =*/896).int32(message.currentNodeCount); - if (message.expireTime != null && message.hasOwnProperty("expireTime")) + if (message.expireTime != null && Object.hasOwnProperty.call(message, "expireTime")) writer.uint32(/* id 113, wireType 2 =*/906).string(message.expireTime); - if (message.location != null && message.hasOwnProperty("location")) + if (message.location != null && Object.hasOwnProperty.call(message, "location")) writer.uint32(/* id 114, wireType 2 =*/914).string(message.location); - if (message.enableTpu != null && message.hasOwnProperty("enableTpu")) + if (message.enableTpu != null && Object.hasOwnProperty.call(message, "enableTpu")) writer.uint32(/* id 115, wireType 0 =*/920).bool(message.enableTpu); - if (message.tpuIpv4CidrBlock != null && message.hasOwnProperty("tpuIpv4CidrBlock")) + 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) @@ -7355,7 +7355,7 @@ /** * Status enum. * @name google.container.v1.Cluster.Status - * @enum {string} + * @enum {number} * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value * @property {number} PROVISIONING=1 PROVISIONING value * @property {number} RUNNING=2 RUNNING value @@ -7571,38 +7571,38 @@ ClusterUpdate.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) + if (message.desiredNodeVersion != null && Object.hasOwnProperty.call(message, "desiredNodeVersion")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.desiredNodeVersion); - if (message.desiredMonitoringService != null && message.hasOwnProperty("desiredMonitoringService")) + if (message.desiredMonitoringService != null && Object.hasOwnProperty.call(message, "desiredMonitoringService")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.desiredMonitoringService); - if (message.desiredAddonsConfig != null && message.hasOwnProperty("desiredAddonsConfig")) + 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 && message.hasOwnProperty("desiredNodePoolId")) + if (message.desiredNodePoolId != null && Object.hasOwnProperty.call(message, "desiredNodePoolId")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.desiredNodePoolId); - if (message.desiredImageType != null && message.hasOwnProperty("desiredImageType")) + if (message.desiredImageType != null && Object.hasOwnProperty.call(message, "desiredImageType")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.desiredImageType); - if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling")) + 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 && message.hasOwnProperty("desiredMasterAuthorizedNetworksConfig")) + 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 && message.hasOwnProperty("desiredClusterAutoscaling")) + 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 && message.hasOwnProperty("desiredBinaryAuthorization")) + 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 && message.hasOwnProperty("desiredLoggingService")) + if (message.desiredLoggingService != null && Object.hasOwnProperty.call(message, "desiredLoggingService")) writer.uint32(/* id 19, wireType 2 =*/154).string(message.desiredLoggingService); - if (message.desiredResourceUsageExportConfig != null && message.hasOwnProperty("desiredResourceUsageExportConfig")) + 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 && message.hasOwnProperty("desiredVerticalPodAutoscaling")) + 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 && message.hasOwnProperty("desiredIntraNodeVisibilityConfig")) + 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 && message.hasOwnProperty("desiredDatabaseEncryption")) + 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 && message.hasOwnProperty("desiredMasterVersion")) + if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); return writer; }; @@ -8125,27 +8125,27 @@ Operation.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationType != null && message.hasOwnProperty("operationType")) + if (message.operationType != null && Object.hasOwnProperty.call(message, "operationType")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operationType); - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); - if (message.selfLink != null && message.hasOwnProperty("selfLink")) + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.selfLink); - if (message.targetLink != null && message.hasOwnProperty("targetLink")) + if (message.targetLink != null && Object.hasOwnProperty.call(message, "targetLink")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.targetLink); - if (message.detail != null && message.hasOwnProperty("detail")) + if (message.detail != null && Object.hasOwnProperty.call(message, "detail")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.detail); - if (message.location != null && message.hasOwnProperty("location")) + if (message.location != null && Object.hasOwnProperty.call(message, "location")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.location); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.startTime); - if (message.endTime != null && message.hasOwnProperty("endTime")) + 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) @@ -8571,7 +8571,7 @@ /** * Status enum. * @name google.container.v1.Operation.Status - * @enum {string} + * @enum {number} * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value * @property {number} PENDING=1 PENDING value * @property {number} RUNNING=2 RUNNING value @@ -8591,7 +8591,7 @@ /** * Type enum. * @name google.container.v1.Operation.Type - * @enum {string} + * @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 @@ -8718,13 +8718,13 @@ CreateClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.cluster != null && message.hasOwnProperty("cluster")) + 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 && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); return writer; }; @@ -8977,13 +8977,13 @@ GetClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -9240,15 +9240,15 @@ UpdateClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.update != null && message.hasOwnProperty("update")) + 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 && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -9539,19 +9539,19 @@ UpdateNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.nodeVersion != null && message.hasOwnProperty("nodeVersion")) + if (message.nodeVersion != null && Object.hasOwnProperty.call(message, "nodeVersion")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.nodeVersion); - if (message.imageType != null && message.hasOwnProperty("imageType")) + if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.imageType); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); return writer; }; @@ -9850,17 +9850,17 @@ SetNodePoolAutoscalingRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + 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 && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -10144,15 +10144,15 @@ SetLoggingServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.loggingService != null && message.hasOwnProperty("loggingService")) + if (message.loggingService != null && Object.hasOwnProperty.call(message, "loggingService")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.loggingService); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -10420,15 +10420,15 @@ SetMonitoringServiceRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.monitoringService != null && message.hasOwnProperty("monitoringService")) + if (message.monitoringService != null && Object.hasOwnProperty.call(message, "monitoringService")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.monitoringService); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -10696,15 +10696,15 @@ SetAddonsConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.addonsConfig != null && message.hasOwnProperty("addonsConfig")) + 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 && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -10978,16 +10978,16 @@ SetLocationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + 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 && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -11270,15 +11270,15 @@ UpdateMasterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.masterVersion != null && message.hasOwnProperty("masterVersion")) + if (message.masterVersion != null && Object.hasOwnProperty.call(message, "masterVersion")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.masterVersion); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -11555,17 +11555,17 @@ SetMasterAuthRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.action != null && message.hasOwnProperty("action")) + if (message.action != null && Object.hasOwnProperty.call(message, "action")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.action); - if (message.update != null && message.hasOwnProperty("update")) + 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 && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -11780,7 +11780,7 @@ /** * Action enum. * @name google.container.v1.SetMasterAuthRequest.Action - * @enum {string} + * @enum {number} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} SET_PASSWORD=1 SET_PASSWORD value * @property {number} GENERATE_PASSWORD=2 GENERATE_PASSWORD value @@ -11881,13 +11881,13 @@ DeleteClusterRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; @@ -12126,11 +12126,11 @@ ListClustersRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.parent != null && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); return writer; }; @@ -12614,13 +12614,13 @@ GetOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationId != null && message.hasOwnProperty("operationId")) + if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -12859,11 +12859,11 @@ ListOperationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.parent != null && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); return writer; }; @@ -13100,13 +13100,13 @@ CancelOperationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.operationId != null && message.hasOwnProperty("operationId")) + if (message.operationId != null && Object.hasOwnProperty.call(message, "operationId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; @@ -13592,11 +13592,11 @@ GetServerConfigRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); return writer; }; @@ -13845,12 +13845,12 @@ ServerConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + if (message.defaultClusterVersion != null && Object.hasOwnProperty.call(message, "defaultClusterVersion")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultClusterVersion); if (message.validNodeVersions != null && message.validNodeVersions.length) for (var i = 0; i < message.validNodeVersions.length; ++i) writer.uint32(/* id 3, wireType 2 =*/26).string(message.validNodeVersions[i]); - if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + if (message.defaultImageType != null && Object.hasOwnProperty.call(message, "defaultImageType")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultImageType); if (message.validImageTypes != null && message.validImageTypes.length) for (var i = 0; i < message.validImageTypes.length; ++i) @@ -14168,15 +14168,15 @@ CreateNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePool != null && message.hasOwnProperty("nodePool")) + if (message.nodePool != null && Object.hasOwnProperty.call(message, "nodePool")) $root.google.container.v1.NodePool.encode(message.nodePool, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parent != null && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.parent); return writer; }; @@ -14449,15 +14449,15 @@ DeleteNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -14716,13 +14716,13 @@ ListNodePoolsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.parent != null && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); return writer; }; @@ -14979,15 +14979,15 @@ GetNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -15329,30 +15329,30 @@ NodePool.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.config != null && message.hasOwnProperty("config")) + if (message.config != null && Object.hasOwnProperty.call(message, "config")) $root.google.container.v1.NodeConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.management != null && message.hasOwnProperty("management")) + if (message.management != null && Object.hasOwnProperty.call(message, "management")) $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) + if (message.maxPodsConstraint != null && Object.hasOwnProperty.call(message, "maxPodsConstraint")) $root.google.container.v1.MaxPodsConstraint.encode(message.maxPodsConstraint, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) + if (message.podIpv4CidrSize != null && Object.hasOwnProperty.call(message, "podIpv4CidrSize")) writer.uint32(/* id 7, wireType 0 =*/56).int32(message.podIpv4CidrSize); - if (message.selfLink != null && message.hasOwnProperty("selfLink")) + if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && Object.hasOwnProperty.call(message, "version")) writer.uint32(/* id 101, wireType 2 =*/810).string(message.version); if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) for (var i = 0; i < message.instanceGroupUrls.length; ++i) writer.uint32(/* id 102, wireType 2 =*/818).string(message.instanceGroupUrls[i]); - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 103, wireType 0 =*/824).int32(message.status); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 104, wireType 2 =*/834).string(message.statusMessage); if (message.conditions != null && message.conditions.length) for (var i = 0; i < message.conditions.length; ++i) @@ -15712,7 +15712,7 @@ /** * Status enum. * @name google.container.v1.NodePool.Status - * @enum {string} + * @enum {number} * @property {number} STATUS_UNSPECIFIED=0 STATUS_UNSPECIFIED value * @property {number} PROVISIONING=1 PROVISIONING value * @property {number} RUNNING=2 RUNNING value @@ -15810,11 +15810,11 @@ NodeManagement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + if (message.autoUpgrade != null && Object.hasOwnProperty.call(message, "autoUpgrade")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.autoUpgrade); - if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + if (message.autoRepair != null && Object.hasOwnProperty.call(message, "autoRepair")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autoRepair); - if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) + if (message.upgradeOptions != null && Object.hasOwnProperty.call(message, "upgradeOptions")) $root.google.container.v1.AutoUpgradeOptions.encode(message.upgradeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; @@ -16038,9 +16038,9 @@ AutoUpgradeOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + if (message.autoUpgradeStartTime != null && Object.hasOwnProperty.call(message, "autoUpgradeStartTime")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoUpgradeStartTime); - if (message.description != null && message.hasOwnProperty("description")) + if (message.description != null && Object.hasOwnProperty.call(message, "description")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); return writer; }; @@ -16248,9 +16248,9 @@ MaintenancePolicy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && message.hasOwnProperty("window")) + if (message.window != null && Object.hasOwnProperty.call(message, "window")) $root.google.container.v1.MaintenanceWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) + if (message.resourceVersion != null && Object.hasOwnProperty.call(message, "resourceVersion")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.resourceVersion); return writer; }; @@ -16487,11 +16487,11 @@ MaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) + if (message.dailyMaintenanceWindow != null && Object.hasOwnProperty.call(message, "dailyMaintenanceWindow")) $root.google.container.v1.DailyMaintenanceWindow.encode(message.dailyMaintenanceWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) + if (message.recurringWindow != null && Object.hasOwnProperty.call(message, "recurringWindow")) $root.google.container.v1.RecurringTimeWindow.encode(message.recurringWindow, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maintenanceExclusions != null && message.hasOwnProperty("maintenanceExclusions")) + if (message.maintenanceExclusions != null && Object.hasOwnProperty.call(message, "maintenanceExclusions")) for (var keys = Object.keys(message.maintenanceExclusions), i = 0; i < keys.length; ++i) { writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); $root.google.container.v1.TimeWindow.encode(message.maintenanceExclusions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); @@ -16759,9 +16759,9 @@ TimeWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && message.hasOwnProperty("endTime")) + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -16979,9 +16979,9 @@ RecurringTimeWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && message.hasOwnProperty("window")) + if (message.window != null && Object.hasOwnProperty.call(message, "window")) $root.google.container.v1.TimeWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.recurrence != null && message.hasOwnProperty("recurrence")) + if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.recurrence); return writer; }; @@ -17194,9 +17194,9 @@ DailyMaintenanceWindow.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && message.hasOwnProperty("startTime")) + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.startTime); - if (message.duration != null && message.hasOwnProperty("duration")) + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.duration); return writer; }; @@ -17440,17 +17440,17 @@ SetNodePoolManagementRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.management != null && message.hasOwnProperty("management")) + if (message.management != null && Object.hasOwnProperty.call(message, "management")) $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -17743,17 +17743,17 @@ SetNodePoolSizeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + if (message.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nodeCount); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -18032,15 +18032,15 @@ RollbackNodePoolUpgradeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (message.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -18509,12 +18509,12 @@ ClusterAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) + if (message.enableNodeAutoprovisioning != null && Object.hasOwnProperty.call(message, "enableNodeAutoprovisioning")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableNodeAutoprovisioning); if (message.resourceLimits != null && message.resourceLimits.length) for (var i = 0; i < message.resourceLimits.length; ++i) $root.google.container.v1.ResourceLimit.encode(message.resourceLimits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) + if (message.autoprovisioningNodePoolDefaults != null && Object.hasOwnProperty.call(message, "autoprovisioningNodePoolDefaults")) $root.google.container.v1.AutoprovisioningNodePoolDefaults.encode(message.autoprovisioningNodePoolDefaults, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.autoprovisioningLocations != null && message.autoprovisioningLocations.length) for (var i = 0; i < message.autoprovisioningLocations.length; ++i) @@ -18791,7 +18791,7 @@ if (message.oauthScopes != null && message.oauthScopes.length) for (var i = 0; i < message.oauthScopes.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).string(message.oauthScopes[i]); - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); return writer; }; @@ -19022,11 +19022,11 @@ ResourceLimit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceType); - if (message.minimum != null && message.hasOwnProperty("minimum")) + if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minimum); - if (message.maximum != null && message.hasOwnProperty("maximum")) + if (message.maximum != null && Object.hasOwnProperty.call(message, "maximum")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maximum); return writer; }; @@ -19291,13 +19291,13 @@ NodePoolAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minNodeCount); - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); - if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) + if (message.autoprovisioned != null && Object.hasOwnProperty.call(message, "autoprovisioned")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.autoprovisioned); return writer; }; @@ -19564,18 +19564,18 @@ SetLabelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) + 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 4, wireType 2 =*/34).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 && message.hasOwnProperty("labelFingerprint")) + if (message.labelFingerprint != null && Object.hasOwnProperty.call(message, "labelFingerprint")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.labelFingerprint); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -19874,15 +19874,15 @@ SetLegacyAbacRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -20150,15 +20150,15 @@ StartIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); - if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + if (message.rotateCredentials != null && Object.hasOwnProperty.call(message, "rotateCredentials")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateCredentials); return writer; }; @@ -20417,13 +20417,13 @@ CompleteIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; @@ -20653,9 +20653,9 @@ AcceleratorConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + if (message.acceleratorCount != null && Object.hasOwnProperty.call(message, "acceleratorCount")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); - if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + if (message.acceleratorType != null && Object.hasOwnProperty.call(message, "acceleratorType")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); return writer; }; @@ -20904,15 +20904,15 @@ SetNetworkPolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + if (message.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; @@ -21185,15 +21185,15 @@ SetMaintenancePolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.projectId != null && message.hasOwnProperty("projectId")) + if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.projectId); - if (message.zone != null && message.hasOwnProperty("zone")) + if (message.zone != null && Object.hasOwnProperty.call(message, "zone")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.zone); - if (message.clusterId != null && message.hasOwnProperty("clusterId")) + if (message.clusterId != null && Object.hasOwnProperty.call(message, "clusterId")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterId); - if (message.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + if (message.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy")) $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; @@ -21439,9 +21439,9 @@ StatusCondition.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && message.hasOwnProperty("code")) + if (message.code != null && Object.hasOwnProperty.call(message, "code")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); - if (message.message != null && message.hasOwnProperty("message")) + if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; @@ -21617,7 +21617,7 @@ /** * Code enum. * @name google.container.v1.StatusCondition.Code - * @enum {string} + * @enum {number} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} GCE_STOCKOUT=1 GCE_STOCKOUT value * @property {number} GKE_SERVICE_ACCOUNT_DELETED=2 GKE_SERVICE_ACCOUNT_DELETED value @@ -21713,11 +21713,11 @@ NetworkConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.network != null && message.hasOwnProperty("network")) + if (message.network != null && Object.hasOwnProperty.call(message, "network")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); - if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) + if (message.enableIntraNodeVisibility != null && Object.hasOwnProperty.call(message, "enableIntraNodeVisibility")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableIntraNodeVisibility); return writer; }; @@ -21927,7 +21927,7 @@ IntraNodeVisibilityConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -22114,7 +22114,7 @@ MaxPodsConstraint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) + if (message.maxPodsPerNode != null && Object.hasOwnProperty.call(message, "maxPodsPerNode")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxPodsPerNode); return writer; }; @@ -22324,9 +22324,9 @@ DatabaseEncryption.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.keyName != null && message.hasOwnProperty("keyName")) + if (message.keyName != null && Object.hasOwnProperty.call(message, "keyName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyName); - if (message.state != null && message.hasOwnProperty("state")) + if (message.state != null && Object.hasOwnProperty.call(message, "state")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); return writer; }; @@ -22487,7 +22487,7 @@ /** * State enum. * @name google.container.v1.DatabaseEncryption.State - * @enum {string} + * @enum {number} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} ENCRYPTED=1 ENCRYPTED value * @property {number} DECRYPTED=2 DECRYPTED value @@ -22586,13 +22586,13 @@ ListUsableSubnetworksRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && message.hasOwnProperty("parent")) + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && message.hasOwnProperty("filter")) + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); return writer; }; @@ -22826,7 +22826,7 @@ if (message.subnetworks != null && message.subnetworks.length) for (var i = 0; i < message.subnetworks.length; ++i) $root.google.container.v1.UsableSubnetwork.encode(message.subnetworks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; @@ -23062,11 +23062,11 @@ UsableSubnetworkSecondaryRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.rangeName != null && message.hasOwnProperty("rangeName")) + if (message.rangeName != null && Object.hasOwnProperty.call(message, "rangeName")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.rangeName); - if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.ipCidrRange); - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && Object.hasOwnProperty.call(message, "status")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); return writer; }; @@ -23248,7 +23248,7 @@ /** * Status enum. * @name google.container.v1.UsableSubnetworkSecondaryRange.Status - * @enum {string} + * @enum {number} * @property {number} UNKNOWN=0 UNKNOWN value * @property {number} UNUSED=1 UNUSED value * @property {number} IN_USE_SERVICE=2 IN_USE_SERVICE value @@ -23361,16 +23361,16 @@ UsableSubnetwork.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.subnetwork); - if (message.network != null && message.hasOwnProperty("network")) + if (message.network != null && Object.hasOwnProperty.call(message, "network")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.network); - if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) + if (message.ipCidrRange != null && Object.hasOwnProperty.call(message, "ipCidrRange")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.ipCidrRange); if (message.secondaryIpRanges != null && message.secondaryIpRanges.length) for (var i = 0; i < message.secondaryIpRanges.length; ++i) $root.google.container.v1.UsableSubnetworkSecondaryRange.encode(message.secondaryIpRanges[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); return writer; }; @@ -23640,11 +23640,11 @@ ResourceUsageExportConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.enableNetworkEgressMetering != null && message.hasOwnProperty("enableNetworkEgressMetering")) + if (message.enableNetworkEgressMetering != null && Object.hasOwnProperty.call(message, "enableNetworkEgressMetering")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableNetworkEgressMetering); - if (message.consumptionMeteringConfig != null && message.hasOwnProperty("consumptionMeteringConfig")) + if (message.consumptionMeteringConfig != null && Object.hasOwnProperty.call(message, "consumptionMeteringConfig")) $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.encode(message.consumptionMeteringConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -23861,7 +23861,7 @@ BigQueryDestination.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datasetId != null && message.hasOwnProperty("datasetId")) + if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); return writer; }; @@ -24048,7 +24048,7 @@ ConsumptionMeteringConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -24238,7 +24238,7 @@ VerticalPodAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; @@ -24453,7 +24453,7 @@ if (message.rules != null && message.rules.length) for (var i = 0; i < message.rules.length; ++i) $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); return writer; }; @@ -24767,26 +24767,26 @@ HttpRule.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.selector != null && message.hasOwnProperty("selector")) + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && message.hasOwnProperty("get")) + if (message.get != null && Object.hasOwnProperty.call(message, "get")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && message.hasOwnProperty("put")) + if (message.put != null && Object.hasOwnProperty.call(message, "put")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && message.hasOwnProperty("post")) + if (message.post != null && Object.hasOwnProperty.call(message, "post")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && message.hasOwnProperty("delete")) + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && message.hasOwnProperty("patch")) + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && message.hasOwnProperty("body")) + if (message.body != null && Object.hasOwnProperty.call(message, "body")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && message.hasOwnProperty("custom")) + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.additionalBindings != null && message.additionalBindings.length) for (var i = 0; i < message.additionalBindings.length; ++i) $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); return writer; }; @@ -25143,9 +25143,9 @@ CustomHttpPattern.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kind != null && message.hasOwnProperty("kind")) + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && message.hasOwnProperty("path")) + if (message.path != null && Object.hasOwnProperty.call(message, "path")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); return writer; }; @@ -25291,7 +25291,7 @@ /** * FieldBehavior enum. * @name google.api.FieldBehavior - * @enum {string} + * @enum {number} * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value * @property {number} OPTIONAL=1 OPTIONAL value * @property {number} REQUIRED=2 REQUIRED value @@ -25692,9 +25692,9 @@ FileDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && message.hasOwnProperty("package")) + if (message["package"] != null && Object.hasOwnProperty.call(message, "package")) writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); if (message.dependency != null && message.dependency.length) for (var i = 0; i < message.dependency.length; ++i) @@ -25711,9 +25711,9 @@ if (message.extension != null && message.extension.length) for (var i = 0; i < message.extension.length; ++i) $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); if (message.publicDependency != null && message.publicDependency.length) for (var i = 0; i < message.publicDependency.length; ++i) @@ -25721,7 +25721,7 @@ if (message.weakDependency != null && message.weakDependency.length) for (var i = 0; i < message.weakDependency.length; ++i) writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && message.hasOwnProperty("syntax")) + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); return writer; }; @@ -26259,7 +26259,7 @@ DescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.field != null && message.field.length) for (var i = 0; i < message.field.length; ++i) @@ -26276,7 +26276,7 @@ if (message.extension != null && message.extension.length) for (var i = 0; i < message.extension.length; ++i) $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); if (message.oneofDecl != null && message.oneofDecl.length) for (var i = 0; i < message.oneofDecl.length; ++i) @@ -26741,11 +26741,11 @@ ExtensionRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -26969,9 +26969,9 @@ ReservedRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); return writer; }; @@ -27462,25 +27462,25 @@ FieldDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && message.hasOwnProperty("extendee")) + if (message.extendee != null && Object.hasOwnProperty.call(message, "extendee")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && message.hasOwnProperty("number")) + if (message.number != null && Object.hasOwnProperty.call(message, "number")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && message.hasOwnProperty("label")) + if (message.label != null && Object.hasOwnProperty.call(message, "label")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && message.hasOwnProperty("type")) + if (message.type != null && Object.hasOwnProperty.call(message, "type")) writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && message.hasOwnProperty("typeName")) + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); return writer; }; @@ -27827,7 +27827,7 @@ /** * Type enum. * @name google.protobuf.FieldDescriptorProto.Type - * @enum {string} + * @enum {number} * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value * @property {number} TYPE_INT64=3 TYPE_INT64 value @@ -27873,7 +27873,7 @@ /** * Label enum. * @name google.protobuf.FieldDescriptorProto.Label - * @enum {string} + * @enum {number} * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value @@ -27954,9 +27954,9 @@ OneofDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -28199,12 +28199,12 @@ EnumDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.value != null && message.value.length) for (var i = 0; i < message.value.length; ++i) $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); if (message.reservedRange != null && message.reservedRange.length) for (var i = 0; i < message.reservedRange.length; ++i) @@ -28507,9 +28507,9 @@ EnumReservedRange.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) + if (message.start != null && Object.hasOwnProperty.call(message, "start")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); return writer; }; @@ -28729,11 +28729,11 @@ EnumValueDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && message.hasOwnProperty("number")) + if (message.number != null && Object.hasOwnProperty.call(message, "number")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -28967,12 +28967,12 @@ ServiceDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.method != null && message.method.length) for (var i = 0; i < message.method.length; ++i) $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -29252,17 +29252,17 @@ MethodDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) + if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.inputType != null && message.hasOwnProperty("inputType")) + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && message.hasOwnProperty("outputType")) + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); - if (message.options != null && message.hasOwnProperty("options")) + if (message.options != null && Object.hasOwnProperty.call(message, "options")) $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); return writer; }; @@ -29691,45 +29691,45 @@ FileOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -30122,7 +30122,7 @@ /** * OptimizeMode enum. * @name google.protobuf.FileOptions.OptimizeMode - * @enum {string} + * @enum {number} * @property {number} SPEED=1 SPEED value * @property {number} CODE_SIZE=2 CODE_SIZE value * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value @@ -30231,13 +30231,13 @@ MessageOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -30557,17 +30557,17 @@ FieldOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ctype != null && message.hasOwnProperty("ctype")) + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && message.hasOwnProperty("packed")) + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && message.hasOwnProperty("lazy")) + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && message.hasOwnProperty("jstype")) + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && message.hasOwnProperty("weak")) + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -30896,7 +30896,7 @@ /** * CType enum. * @name google.protobuf.FieldOptions.CType - * @enum {string} + * @enum {number} * @property {number} STRING=0 STRING value * @property {number} CORD=1 CORD value * @property {number} STRING_PIECE=2 STRING_PIECE value @@ -30912,7 +30912,7 @@ /** * JSType enum. * @name google.protobuf.FieldOptions.JSType - * @enum {string} + * @enum {number} * @property {number} JS_NORMAL=0 JS_NORMAL value * @property {number} JS_STRING=1 JS_STRING value * @property {number} JS_NUMBER=2 JS_NUMBER value @@ -31211,9 +31211,9 @@ EnumOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -31456,7 +31456,7 @@ EnumValueOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -31705,14 +31705,14 @@ ServiceOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); return writer; }; @@ -31991,9 +31991,9 @@ MethodOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) @@ -32001,7 +32001,7 @@ if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; }; @@ -32235,7 +32235,7 @@ /** * IdempotencyLevel enum. * @name google.protobuf.MethodOptions.IdempotencyLevel - * @enum {string} + * @enum {number} * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value * @property {number} IDEMPOTENT=2 IDEMPOTENT value @@ -32365,17 +32365,17 @@ if (message.name != null && message.name.length) for (var i = 0; i < message.name.length; ++i) $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); return writer; }; @@ -33152,9 +33152,9 @@ writer.int32(message.span[i]); writer.ldelim(); } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) for (var i = 0; i < message.leadingDetachedComments.length; ++i) @@ -33685,11 +33685,11 @@ writer.int32(message.path[i]); writer.ldelim(); } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && message.hasOwnProperty("begin")) + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && message.hasOwnProperty("end")) + if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); return writer; }; @@ -34102,9 +34102,9 @@ Timestamp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && message.hasOwnProperty("nanos")) + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; diff --git a/packages/google-container/src/index.ts b/packages/google-container/src/index.ts index bea92d8699b..790919f1299 100644 --- a/packages/google-container/src/index.ts +++ b/packages/google-container/src/index.ts @@ -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. @@ -12,15 +12,15 @@ // See the License for the specific language governing permissions and // limitations under the License. // -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** // ** All changes to this file may be overwritten. ** import * as v1 from './v1'; + const ClusterManagerClient = v1.ClusterManagerClient; + export {v1, ClusterManagerClient}; -// For compatibility with JavaScript libraries we need to provide this default export: -// tslint:disable-next-line no-default-export export default {v1, ClusterManagerClient}; import * as protos from '../protos/protos'; export {protos}; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 6f71aeefbcd..f7897c2c1ac 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,15 @@ "git": { "name": ".", "remote": "git@github.com:googleapis/nodejs-cloud-container.git", - "sha": "a0b5ac609094f5ad30713a3ad0951a361ae902cd" + "sha": "edbc1c99e4f50665066ed61593d632201f60e2f5" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "a3a0bf0f6291d69f2ff3df7fcd63d28ee20ac727", + "internalRef": "310060413" } }, { diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index b51dfa4e6fc..bcca4207367 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -13,11 +13,11 @@ library = gapic.typescript_library( 'container', generator_args={ - "grpc-service-config": f"google/container/{version}/container_grpc_service_config.json", - "package-name": f"@google-cloud/container" - }, - proto_path=f'/google/container/{version}', - version=version) + "grpc-service-config": f"google/container/{version}/container_grpc_service_config.json", + "package-name": f"@google-cloud/container" + }, + proto_path=f'/google/container/{version}', + version=version) s.copy( library, excludes=['package.json', 'README.md', 'src/index.ts'], @@ -25,7 +25,8 @@ # Copy templated files common_templates = gcp.CommonTemplates() -templates = common_templates.node_library(source_location='build/src') +templates = common_templates.node_library( + source_location='build/src', versions=['v1'], default_version='v1') s.copy(templates) node.postprocess_gapic_library() From 4fbed6c503b10180087bf82d70c7e0a85a3d956f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 8 May 2020 11:31:28 -0700 Subject: [PATCH 216/371] build: do not fail builds on codecov errors (#528) (#342) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/13e8b547-7af0-436b-b85e-2c1942f8f36a/targets Source-Link: https://github.com/googleapis/synthtool/commit/be74d3e532faa47eb59f1a0eaebde0860d1d8ab4 --- packages/google-container/synth.metadata | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index f7897c2c1ac..fdb71e2b3b7 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -3,8 +3,8 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/nodejs-cloud-container.git", - "sha": "edbc1c99e4f50665066ed61593d632201f60e2f5" + "remote": "https://github.com/googleapis/nodejs-cloud-container.git", + "sha": "29b309db935655a6ab5add27e111f72f7d053c07" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ab883569eb0257bbf16a6d825fd018b3adde3912" + "sha": "be74d3e532faa47eb59f1a0eaebde0860d1d8ab4" } } ], From 55a38b32fc35c800b9882108bc88419d7877dc1c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 3 Jun 2020 17:42:24 -0700 Subject: [PATCH 217/371] build: update protos.js (#343) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/041f5df7-f5d3-4b2a-9ede-0752bf41c185/targets --- packages/google-container/protos/protos.d.ts | 6 +++++ packages/google-container/protos/protos.js | 26 ++++++++++++++++++-- packages/google-container/protos/protos.json | 6 ++++- packages/google-container/synth.metadata | 2 +- 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 9c9ddbf70d7..e6e503d0670 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -11001,6 +11001,9 @@ export namespace google { /** FieldDescriptorProto options */ options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); } /** Represents a FieldDescriptorProto. */ @@ -11042,6 +11045,9 @@ export namespace google { /** FieldDescriptorProto options. */ public options?: (google.protobuf.IFieldOptions|null); + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; + /** * Creates a new FieldDescriptorProto instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index b693bf57b94..acf2b32ca64 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -27341,6 +27341,7 @@ * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex * @property {string|null} [jsonName] FieldDescriptorProto jsonName * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional */ /** @@ -27438,6 +27439,14 @@ */ FieldDescriptorProto.prototype.options = null; + /** + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.proto3Optional = false; + /** * Creates a new FieldDescriptorProto instance using the specified properties. * @function create @@ -27482,6 +27491,8 @@ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); return writer; }; @@ -27546,6 +27557,9 @@ case 8: message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); break; + case 17: + message.proto3Optional = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -27640,6 +27654,9 @@ if (error) return "options." + error; } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; return null; }; @@ -27762,6 +27779,8 @@ throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); return message; }; @@ -27789,6 +27808,7 @@ object.options = null; object.oneofIndex = 0; object.jsonName = ""; + object.proto3Optional = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -27810,6 +27830,8 @@ object.oneofIndex = message.oneofIndex; if (message.jsonName != null && message.hasOwnProperty("jsonName")) object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; return object; }; @@ -29601,7 +29623,7 @@ * @memberof google.protobuf.FileOptions * @instance */ - FileOptions.prototype.ccEnableArenas = false; + FileOptions.prototype.ccEnableArenas = true; /** * FileOptions objcClassPrefix. @@ -30050,7 +30072,7 @@ object.javaGenerateEqualsAndHash = false; object.deprecated = false; object.javaStringCheckUtf8 = false; - object.ccEnableArenas = false; + object.ccEnableArenas = true; object.objcClassPrefix = ""; object.csharpNamespace = ""; object.swiftPrefix = ""; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index eba3555da02..b57e61dd439 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -3029,6 +3029,10 @@ "options": { "type": "FieldOptions", "id": 8 + }, + "proto3Optional": { + "type": "bool", + "id": 17 } }, "nested": { @@ -3264,7 +3268,7 @@ "type": "bool", "id": 31, "options": { - "default": false + "default": true } }, "objcClassPrefix": { diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index fdb71e2b3b7..1cc27710d7c 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "29b309db935655a6ab5add27e111f72f7d053c07" + "sha": "9c2b006b21d92137b2178a20dd0e1579c6dd38ef" } }, { From d4062bf32c9419bbb299a83ad71aea9e0a9111e7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 4 Jun 2020 11:07:06 -0700 Subject: [PATCH 218/371] chore: release 2.0.0 (#319) * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-container/CHANGELOG.md | 22 +++++++++++++++++++ packages/google-container/package.json | 2 +- .../google-container/samples/package.json | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index f8757fb344d..f1eea8b8649 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,28 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [2.0.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.7.0...v2.0.0) (2020-06-04) + + +### ⚠ BREAKING CHANGES + +* The library now supports Node.js v10+. The last version to support Node.js v8 is tagged legacy-8 on NPM. + +### Features + +* drop node8 support, support for async iterators ([#318](https://www.github.com/googleapis/nodejs-cloud-container/issues/318)) ([e6338eb](https://www.github.com/googleapis/nodejs-cloud-container/commit/e6338eb9e080a80e3b8361ae13b1c74039974f32)) + + +### Bug Fixes + +* **test:** don't assign unused variable ([#323](https://www.github.com/googleapis/nodejs-cloud-container/issues/323)) ([671a4b8](https://www.github.com/googleapis/nodejs-cloud-container/commit/671a4b8bc4e49ba6705af418f3bc427485f912ed)) +* export explicit version from protos.js ([#324](https://www.github.com/googleapis/nodejs-cloud-container/issues/324)) ([896c658](https://www.github.com/googleapis/nodejs-cloud-container/commit/896c658e0c7c811c2e71909d138e2e38b431b9e8)) +* regen protos and tests ([#340](https://www.github.com/googleapis/nodejs-cloud-container/issues/340)) ([edbc1c9](https://www.github.com/googleapis/nodejs-cloud-container/commit/edbc1c99e4f50665066ed61593d632201f60e2f5)) +* remove eslint, update gax, fix generated protos, run the generator ([#329](https://www.github.com/googleapis/nodejs-cloud-container/issues/329)) ([c66f3ed](https://www.github.com/googleapis/nodejs-cloud-container/commit/c66f3ed896cd99108f980133205505aa0b49131e)) +* remove unused files from package ([#333](https://www.github.com/googleapis/nodejs-cloud-container/issues/333)) ([ac4c07a](https://www.github.com/googleapis/nodejs-cloud-container/commit/ac4c07a6cb48423f2f3b35b485841e88aa189a22)) +* support request params {key} with no =value ([#338](https://www.github.com/googleapis/nodejs-cloud-container/issues/338)) ([adf4a60](https://www.github.com/googleapis/nodejs-cloud-container/commit/adf4a601a870c0ce961f4011318606e4b29c266f)) +* synth.py clean up for multiple version ([#341](https://www.github.com/googleapis/nodejs-cloud-container/issues/341)) ([29b309d](https://www.github.com/googleapis/nodejs-cloud-container/commit/29b309db935655a6ab5add27e111f72f7d053c07)) + ## [1.7.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.6.2...v1.7.0) (2020-03-06) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index fa4bbdb6277..e1ded5e27bd 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "1.7.0", + "version": "2.0.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index ff61cc70fb8..ff75c8fcb40 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^1.7.0" + "@google-cloud/container": "^2.0.0" }, "devDependencies": { "chai": "^4.2.0", From 5520af4dff72c4626fabba5ec3ee39f37f76aa02 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 9 Jun 2020 17:39:55 -0700 Subject: [PATCH 219/371] feat: move ts target to es2018 from es2016 (#347) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/9b55eba7-85ee-48d5-a737-8b677439db4d/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/1c92077459db3dc50741e878f98b08c6261181e0 --- packages/google-container/protos/protos.js | 2 +- packages/google-container/src/v1/cluster_manager_client.ts | 7 +++++++ packages/google-container/synth.metadata | 4 ++-- packages/google-container/tsconfig.json | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index acf2b32ca64..b89a9755621 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -28,7 +28,7 @@ var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; // Exported root namespace - var $root = $protobuf.roots._google_cloud_container_1_7_0_protos || ($protobuf.roots._google_cloud_container_1_7_0_protos = {}); + var $root = $protobuf.roots._google_cloud_container_protos || ($protobuf.roots._google_cloud_container_protos = {}); $root.google = (function() { diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index c487cf2ad40..76c87c856cd 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -98,6 +98,13 @@ export class ClusterManagerClient { } opts.servicePath = opts.servicePath || servicePath; opts.port = opts.port || port; + + // users can override the config from client side, like retry codes name. + // The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546 + // The way to override client config for Showcase API: + // + // const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}} + // const showcaseClient = new showcaseClient({ projectId, customConfig }); opts.clientConfig = opts.clientConfig || {}; const isBrowser = typeof window !== 'undefined'; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 1cc27710d7c..e1329145326 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "9c2b006b21d92137b2178a20dd0e1579c6dd38ef" + "sha": "0814a6ac4d47e62e8f0dbfc683fa8ce3a874c911" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "be74d3e532faa47eb59f1a0eaebde0860d1d8ab4" + "sha": "1c92077459db3dc50741e878f98b08c6261181e0" } } ], diff --git a/packages/google-container/tsconfig.json b/packages/google-container/tsconfig.json index 613d35597b5..c78f1c884ef 100644 --- a/packages/google-container/tsconfig.json +++ b/packages/google-container/tsconfig.json @@ -5,7 +5,7 @@ "outDir": "build", "resolveJsonModule": true, "lib": [ - "es2016", + "es2018", "dom" ] }, From 2cde841cc40acf7df44844b682c0c7c52c5d2002 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 17:45:43 +0200 Subject: [PATCH 220/371] chore(deps): update dependency mocha to v8 (#349) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [mocha](https://mochajs.org/) ([source](https://togithub.com/mochajs/mocha)) | devDependencies | major | [`^7.0.0` -> `^8.0.0`](https://renovatebot.com/diffs/npm/mocha/7.2.0/8.0.1) | --- ### Release Notes
mochajs/mocha ### [`v8.0.1`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#​801--2020-06-10) [Compare Source](https://togithub.com/mochajs/mocha/compare/v8.0.0...v8.0.1) The obligatory patch after a major. #### :bug: Fixes - [#​4328](https://togithub.com/mochajs/mocha/issues/4328): Fix `--parallel` when combined with `--watch` ([**@​boneskull**](https://togithub.com/boneskull)) ### [`v8.0.0`](https://togithub.com/mochajs/mocha/blob/master/CHANGELOG.md#​800--2020-06-10) [Compare Source](https://togithub.com/mochajs/mocha/compare/v7.2.0...v8.0.0) In this major release, Mocha adds the ability to _run tests in parallel_. Better late than never! Please note the **breaking changes** detailed below. Let's welcome [**@​giltayar**](https://togithub.com/giltayar) and [**@​nicojs**](https://togithub.com/nicojs) to the maintenance team! #### :boom: Breaking Changes - [#​4164](https://togithub.com/mochajs/mocha/issues/4164): **Mocha v8.0.0 now requires Node.js v10.0.0 or newer.** Mocha no longer supports the Node.js v8.x line ("Carbon"), which entered End-of-Life at the end of 2019 ([**@​UlisesGascon**](https://togithub.com/UlisesGascon)) - [#​4175](https://togithub.com/mochajs/mocha/issues/4175): Having been deprecated with a warning since v7.0.0, **`mocha.opts` is no longer supported** ([**@​juergba**](https://togithub.com/juergba)) :sparkles: **WORKAROUND:** Replace `mocha.opts` with a [configuration file](https://mochajs.org/#configuring-mocha-nodejs). - [#​4260](https://togithub.com/mochajs/mocha/issues/4260): Remove `enableTimeout()` (`this.enableTimeout()`) from the context object ([**@​craigtaub**](https://togithub.com/craigtaub)) :sparkles: **WORKAROUND:** Replace usage of `this.enableTimeout(false)` in your tests with `this.timeout(0)`. - [#​4315](https://togithub.com/mochajs/mocha/issues/4315): The `spec` option no longer supports a comma-delimited list of files ([**@​juergba**](https://togithub.com/juergba)) :sparkles: **WORKAROUND**: Use an array instead (e.g., `"spec": "foo.js,bar.js"` becomes `"spec": ["foo.js", "bar.js"]`). - [#​4309](https://togithub.com/mochajs/mocha/issues/4309): Drop support for Node.js v13.x line, which is now End-of-Life ([**@​juergba**](https://togithub.com/juergba)) - [#​4282](https://togithub.com/mochajs/mocha/issues/4282): `--forbid-only` will throw an error even if exclusive tests are avoided via `--grep` or other means ([**@​arvidOtt**](https://togithub.com/arvidOtt)) - [#​4223](https://togithub.com/mochajs/mocha/issues/4223): The context object's `skip()` (`this.skip()`) in a "before all" (`before()`) hook will no longer execute subsequent sibling hooks, in addition to hooks in child suites ([**@​juergba**](https://togithub.com/juergba)) - [#​4178](https://togithub.com/mochajs/mocha/issues/4178): Remove previously soft-deprecated APIs ([**@​wnghdcjfe**](https://togithub.com/wnghdcjfe)): - `Mocha.prototype.ignoreLeaks()` - `Mocha.prototype.useColors()` - `Mocha.prototype.useInlineDiffs()` - `Mocha.prototype.hideDiff()` #### :tada: Enhancements - [#​4245](https://togithub.com/mochajs/mocha/issues/4245): Add ability to run tests in parallel for Node.js (see [docs](https://mochajs.org/#parallel-tests)) ([**@​boneskull**](https://togithub.com/boneskull)) :exclamation: See also [#​4244](https://togithub.com/mochajs/mocha/issues/4244); [Root Hook Plugins (docs)](https://mochajs.org/#root-hook-plugins) -- _root hooks must be defined via Root Hook Plugins to work in parallel mode_ - [#​4304](https://togithub.com/mochajs/mocha/issues/4304): `--require` now works with ES modules ([**@​JacobLey**](https://togithub.com/JacobLey)) - [#​4299](https://togithub.com/mochajs/mocha/issues/4299): In some circumstances, Mocha can run ES modules under Node.js v10 -- _use at your own risk!_ ([**@​giltayar**](https://togithub.com/giltayar)) #### :book: Documentation - [#​4246](https://togithub.com/mochajs/mocha/issues/4246): Add documentation for parallel mode and Root Hook plugins ([**@​boneskull**](https://togithub.com/boneskull)) #### :bug: Fixes (All bug fixes in Mocha v8.0.0 are also breaking changes, and are listed above)
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index e1ded5e27bd..32e9886f2c3 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -55,7 +55,7 @@ "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", "linkinator": "^2.0.0", - "mocha": "^7.0.0", + "mocha": "^8.0.0", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", "sinon": "^9.0.1", diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index ff75c8fcb40..86efa8b25aa 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -18,6 +18,6 @@ }, "devDependencies": { "chai": "^4.2.0", - "mocha": "^7.0.0" + "mocha": "^8.0.0" } } From 5cdd973968188a7846203775fbe34eef597c52b6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 11 Jun 2020 09:58:43 -0700 Subject: [PATCH 221/371] chore(nodejs_templates): add script logging to node_library populate-secrets.sh (#350) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e306327b-605f-4c07-9420-c106e40c47d5/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/e7034945fbdc0e79d3c57f6e299e5c90b0f11469 --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index e1329145326..21d00eb5aeb 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "0814a6ac4d47e62e8f0dbfc683fa8ce3a874c911" + "sha": "67b6724ebbb1e9587ccbb1e845e5ffce3144eab6" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1c92077459db3dc50741e878f98b08c6261181e0" + "sha": "e7034945fbdc0e79d3c57f6e299e5c90b0f11469" } } ], From 71950071bea542b3d7364e370dfceceacf5a340b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 12 Jun 2020 10:32:08 -0700 Subject: [PATCH 222/371] docs: fix links in comments (#346) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/94b5c3f0-0503-436d-9be8-c1804aaa194c/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 315023125 Source-Link: https://github.com/googleapis/googleapis/commit/dd244bb3a5023a4a9290b21dae6b99020c026123 PiperOrigin-RevId: 314788929 Source-Link: https://github.com/googleapis/googleapis/commit/c77929eb8d6c7d6238f585cb9ee9d364893f9ed4 --- .../protos/google/container/v1/cluster_service.proto | 4 ++-- packages/google-container/synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 3a798ca12f4..6363fc9496d 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -989,7 +989,7 @@ message Cluster { string description = 2; // The number of nodes to create in this cluster. You must ensure that your - // Compute Engine
resource quota + // Compute Engine [resource quota](https://cloud.google.com/compute/quotas) // is sufficient for this number of instances. You must also have available // firewall and routes quota. // For requests, this field should only be used in lieu of a @@ -2087,7 +2087,7 @@ message NodePool { NodeConfig config = 2; // The initial node count for the pool. You must ensure that your - // Compute Engine resource quota + // Compute Engine [resource quota](https://cloud.google.com/compute/quotas) // is sufficient for this number of instances. You must also have available // firewall and routes quota. int32 initial_node_count = 3; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 21d00eb5aeb..964caa1baed 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -11,8 +11,8 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "a3a0bf0f6291d69f2ff3df7fcd63d28ee20ac727", - "internalRef": "310060413" + "sha": "dd244bb3a5023a4a9290b21dae6b99020c026123", + "internalRef": "315023125" } }, { From 68eaccfd30e2ac9501d7f1ce31a4de0d1386eecf Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 15 Jun 2020 11:11:27 -0700 Subject: [PATCH 223/371] fix: proper fallback option handling autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. --- .../src/v1/cluster_manager_client.ts | 13 +++++-------- packages/google-container/synth.metadata | 2 +- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 76c87c856cd..8c969f95ba2 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -107,14 +107,11 @@ export class ClusterManagerClient { // const showcaseClient = new showcaseClient({ projectId, customConfig }); opts.clientConfig = opts.clientConfig || {}; - const isBrowser = typeof window !== 'undefined'; - if (isBrowser) { - opts.fallback = true; - } - // If we are in browser, we are already using fallback because of the - // "browser" field in package.json. - // But if we were explicitly requested to use fallback, let's do it now. - this._gaxModule = !isBrowser && opts.fallback ? gax.fallback : gax; + // If we're running in browser, it's OK to omit `fallback` since + // google-gax has `browser` field in its `package.json`. + // For Electron (which does not respect `browser` field), + // pass `{fallback: true}` to the ClusterManagerClient constructor. + this._gaxModule = opts.fallback ? gax.fallback : gax; // Create a `gaxGrpc` object, with any grpc-specific options // sent to the client. diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 964caa1baed..b146ce69ad2 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "67b6724ebbb1e9587ccbb1e845e5ffce3144eab6" + "sha": "c989ec620d2c74c8eedad6bb456c8fa4a310b39d" } }, { From 113c2a7dc31c3459bac108f7767582ee2c6b6131 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 16 Jun 2020 09:30:39 -0700 Subject: [PATCH 224/371] chore: release 2.1.0 (#348) * updated CHANGELOG.md [ci skip] * updated package.json [ci skip] * updated samples/package.json Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-container/CHANGELOG.md | 12 ++++++++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index f1eea8b8649..410d22d0419 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,18 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [2.1.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.0.0...v2.1.0) (2020-06-15) + + +### Features + +* move ts target to es2018 from es2016 ([#347](https://www.github.com/googleapis/nodejs-cloud-container/issues/347)) ([67b6724](https://www.github.com/googleapis/nodejs-cloud-container/commit/67b6724ebbb1e9587ccbb1e845e5ffce3144eab6)) + + +### Bug Fixes + +* proper fallback option handling ([c087af4](https://www.github.com/googleapis/nodejs-cloud-container/commit/c087af449cc24492b58f686f05bcef90a00deeca)) + ## [2.0.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v1.7.0...v2.0.0) (2020-06-04) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 32e9886f2c3..58de97a9426 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.0.0", + "version": "2.1.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 86efa8b25aa..4d5f6552e15 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.0.0" + "@google-cloud/container": "^2.1.0" }, "devDependencies": { "chai": "^4.2.0", From 4af1b245512129ff081c1878712103295925d327 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 18 Jun 2020 07:47:35 -0700 Subject: [PATCH 225/371] chore: update node issue template (#352) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/37f383f8-7560-459e-b66c-def10ff830cb/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/b10590a4a1568548dd13cfcea9aa11d40898144b --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index b146ce69ad2..c4d31ba47bd 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "c989ec620d2c74c8eedad6bb456c8fa4a310b39d" + "sha": "1a23a4afcdc5cc97952edcf7e12feae50473aa55" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "e7034945fbdc0e79d3c57f6e299e5c90b0f11469" + "sha": "b10590a4a1568548dd13cfcea9aa11d40898144b" } } ], From 5875e261f6d965b10560ef50cb5319d50f773dc2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 27 Jun 2020 17:48:47 -0700 Subject: [PATCH 226/371] build: add config .gitattributes (#353) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/2a81bca4-7abd-4108-ac1f-21340f858709/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/dc9caca650c77b7039e2bbc3339ffb34ae78e5b7 --- packages/google-container/.gitattributes | 3 +++ packages/google-container/synth.metadata | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 packages/google-container/.gitattributes diff --git a/packages/google-container/.gitattributes b/packages/google-container/.gitattributes new file mode 100644 index 00000000000..2e63216ae9c --- /dev/null +++ b/packages/google-container/.gitattributes @@ -0,0 +1,3 @@ +*.ts text eol=lf +*.js test eol=lf +protos/* linguist-generated diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index c4d31ba47bd..14d9e05d7bc 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,22 +4,22 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "1a23a4afcdc5cc97952edcf7e12feae50473aa55" + "sha": "3899eb4b6fc50c9b8943b623ba59a94c9874c6eb" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "dd244bb3a5023a4a9290b21dae6b99020c026123", - "internalRef": "315023125" + "sha": "7c577e89f1c84545113b393b7d7964473251d123", + "internalRef": "318542700" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "b10590a4a1568548dd13cfcea9aa11d40898144b" + "sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7" } } ], From 29bcbef8723159a31595b1ffb3bf84a60a876b66 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Mon, 6 Jul 2020 10:16:29 -0700 Subject: [PATCH 227/371] build: use bazel build (#355) --- packages/google-container/synth.metadata | 18 +++++------------- packages/google-container/synth.py | 11 ++--------- 2 files changed, 7 insertions(+), 22 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 14d9e05d7bc..d18bd386557 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -3,23 +3,15 @@ { "git": { "name": ".", - "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "3899eb4b6fc50c9b8943b623ba59a94c9874c6eb" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "7c577e89f1c84545113b393b7d7964473251d123", - "internalRef": "318542700" + "remote": "git@github.com:googleapis/nodejs-cloud-container.git", + "sha": "3308b534991e457b7c38280ffdb05e3add924112" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7" + "sha": "303271797a360f8a439203413f13a160f2f5b3b4" } } ], @@ -29,8 +21,8 @@ "source": "googleapis", "apiName": "container", "apiVersion": "v1", - "language": "typescript", - "generator": "gapic-generator-typescript" + "language": "nodejs", + "generator": "bazel" } } ] diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py index bcca4207367..cfef6a00848 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -8,16 +8,9 @@ AUTOSYNTH_MULTIPLE_COMMITS = True # Run the gapic generator -gapic = gcp.GAPICMicrogenerator() +gapic = gcp.GAPICBazel() version = 'v1' -library = gapic.typescript_library( - 'container', - generator_args={ - "grpc-service-config": f"google/container/{version}/container_grpc_service_config.json", - "package-name": f"@google-cloud/container" - }, - proto_path=f'/google/container/{version}', - version=version) +library = gapic.node_library('container', version, proto_path=f'google/container/{version}') s.copy( library, excludes=['package.json', 'README.md', 'src/index.ts'], From fc7f7eed618eb8e838bfe6d905c9852552a8f339 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 9 Jul 2020 05:40:07 -0700 Subject: [PATCH 228/371] fix: typeo in nodejs .gitattribute (#358) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/cc99acfa-05b8-434b-9500-2f6faf2eaa02/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/799d8e6522c1ef7cb55a70d9ea0b15e045c3d00b --- packages/google-container/.gitattributes | 2 +- packages/google-container/synth.metadata | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/google-container/.gitattributes b/packages/google-container/.gitattributes index 2e63216ae9c..d4f4169b28b 100644 --- a/packages/google-container/.gitattributes +++ b/packages/google-container/.gitattributes @@ -1,3 +1,3 @@ *.ts text eol=lf -*.js test eol=lf +*.js text eol=lf protos/* linguist-generated diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index d18bd386557..1ce9895ce77 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -3,15 +3,23 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/nodejs-cloud-container.git", - "sha": "3308b534991e457b7c38280ffdb05e3add924112" + "remote": "https://github.com/googleapis/nodejs-cloud-container.git", + "sha": "0131a86547cc42b760c065659718f037df3b6957" + } + }, + { + "git": { + "name": "googleapis", + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "4f4aa3a03e470f1390758b9d89eb1aa88837a5be", + "internalRef": "320300472" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "303271797a360f8a439203413f13a160f2f5b3b4" + "sha": "799d8e6522c1ef7cb55a70d9ea0b15e045c3d00b" } } ], From 6e7831160030e73419a9daa45297c82d2a0d4949 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 10 Jul 2020 01:13:59 +0000 Subject: [PATCH 229/371] chore: release 2.1.1 (#359) :robot: I have created a release \*beep\* \*boop\* --- ### [2.1.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.1.0...v2.1.1) (2020-07-09) ### Bug Fixes * typeo in nodejs .gitattribute ([#358](https://www.github.com/googleapis/nodejs-cloud-container/issues/358)) ([8d4b79a](https://www.github.com/googleapis/nodejs-cloud-container/commit/8d4b79aa731f06e7c31e86ec3f8d0190554f40be)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 410d22d0419..9148979b892 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [2.1.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.1.0...v2.1.1) (2020-07-09) + + +### Bug Fixes + +* typeo in nodejs .gitattribute ([#358](https://www.github.com/googleapis/nodejs-cloud-container/issues/358)) ([8d4b79a](https://www.github.com/googleapis/nodejs-cloud-container/commit/8d4b79aa731f06e7c31e86ec3f8d0190554f40be)) + ## [2.1.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.0.0...v2.1.0) (2020-06-15) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 58de97a9426..3de19c7476c 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.1.0", + "version": "2.1.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 4d5f6552e15..d9ccb281d51 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.1.0" + "@google-cloud/container": "^2.1.1" }, "devDependencies": { "chai": "^4.2.0", From 69a97129b74d693d3e10d657e1bcaa66b53b5333 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 10 Jul 2020 18:47:49 +0200 Subject: [PATCH 230/371] chore(deps): update dependency ts-loader to v8 (#357) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [ts-loader](https://togithub.com/TypeStrong/ts-loader) | devDependencies | major | [`^7.0.0` -> `^8.0.0`](https://renovatebot.com/diffs/npm/ts-loader/7.0.5/8.0.0) | --- ### Release Notes
TypeStrong/ts-loader ### [`v8.0.0`](https://togithub.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md#v800) [Compare Source](https://togithub.com/TypeStrong/ts-loader/compare/v7.0.5...v8.0.0) - [Support for symlinks in project references](https://togithub.com/TypeStrong/ts-loader/pull/1136) - thanks [@​sheetalkamat](https://togithub.com/sheetalkamat)! - `ts-loader` now supports TypeScript 3.6 and greater **BREAKING CHANGE**
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 3de19c7476c..7fe4c0ac290 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -59,7 +59,7 @@ "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", "sinon": "^9.0.1", - "ts-loader": "^7.0.0", + "ts-loader": "^8.0.0", "typescript": "^3.8.3", "webpack": "^4.41.2", "webpack-cli": "^3.3.10" From 52730b503a397eec01c83d74099dd01cc5b785c0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 12 Jul 2020 18:47:46 +0200 Subject: [PATCH 231/371] chore(deps): update dependency @types/mocha to v8 (#360) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@types/mocha](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | devDependencies | major | [`^7.0.0` -> `^8.0.0`](https://renovatebot.com/diffs/npm/@types%2fmocha/7.0.2/8.0.0) | --- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 7fe4c0ac290..2401c528be5 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -46,7 +46,7 @@ "google-gax": "^2.1.0" }, "devDependencies": { - "@types/mocha": "^7.0.0", + "@types/mocha": "^8.0.0", "@types/node": "^12.0.0", "@types/sinon": "^9.0.0", "c8": "^7.0.0", From 0369cd8813d58df2ed4e417457abe07f95b602ef Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 14 Jul 2020 17:44:33 -0700 Subject: [PATCH 232/371] chore: update generated protos.js (#362) --- packages/google-container/protos/protos.js | 118 ++++++++++++++++----- packages/google-container/synth.metadata | 2 +- 2 files changed, 95 insertions(+), 25 deletions(-) diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index b89a9755621..22ced97dc76 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1369,7 +1369,7 @@ NodeConfig.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.NodeConfig(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodeConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -1388,23 +1388,51 @@ message.serviceAccount = reader.string(); break; case 4: - reader.skip().pos++; if (message.metadata === $util.emptyObject) message.metadata = {}; - key = reader.string(); - reader.pos++; - message.metadata[key] = reader.string(); + 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.metadata[key] = value; break; case 5: message.imageType = reader.string(); break; case 6: - reader.skip().pos++; if (message.labels === $util.emptyObject) message.labels = {}; - key = reader.string(); - reader.pos++; - message.labels[key] = reader.string(); + 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.labels[key] = value; break; case 7: message.localSsdCount = reader.int32(); @@ -6527,7 +6555,7 @@ 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; + 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) { @@ -6578,12 +6606,26 @@ message.enableKubernetesAlpha = reader.bool(); break; case 15: - reader.skip().pos++; if (message.resourceLabels === $util.emptyObject) message.resourceLabels = {}; - key = reader.string(); - reader.pos++; - message.resourceLabels[key] = reader.string(); + 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(); @@ -16526,7 +16568,7 @@ MaintenanceWindow.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.MaintenanceWindow(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaintenanceWindow(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -16537,12 +16579,26 @@ message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.decode(reader, reader.uint32()); break; case 4: - reader.skip().pos++; if (message.maintenanceExclusions === $util.emptyObject) message.maintenanceExclusions = {}; - key = reader.string(); - reader.pos++; - message.maintenanceExclusions[key] = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.maintenanceExclusions[key] = value; break; default: reader.skipType(tag & 7); @@ -19607,7 +19663,7 @@ SetLabelsRequest.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.SetLabelsRequest(), key; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLabelsRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19621,12 +19677,26 @@ message.clusterId = reader.string(); break; case 4: - reader.skip().pos++; if (message.resourceLabels === $util.emptyObject) message.resourceLabels = {}; - key = reader.string(); - reader.pos++; - message.resourceLabels[key] = reader.string(); + 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 5: message.labelFingerprint = reader.string(); diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 1ce9895ce77..a08971dff80 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "0131a86547cc42b760c065659718f037df3b6957" + "sha": "5da5235bd6e088e1ea8389f28e7a9d74c115c945" } }, { From 61fdbd31ed256afec931c5daf1c274e9ed4b3b32 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 14 Jul 2020 17:49:57 -0700 Subject: [PATCH 233/371] build: missing closing paren in publish script (#363) --- packages/google-container/synth.metadata | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index a08971dff80..b9c187bdeba 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "799d8e6522c1ef7cb55a70d9ea0b15e045c3d00b" + "sha": "d82deccf657a66e31bd5da9efdb96c6fa322fc7e" } } ], From 438b5a1823a5ff602a8d647f7135a5e338f84d53 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 17 Jul 2020 16:00:01 -0700 Subject: [PATCH 234/371] chore: add config files for cloud-rad for node.js, delete Node 8 templates (#367) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/5e903fff-57bb-4395-bb94-8b4d1909dbf6/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/21f1470ecd01424dc91c70f1a7c798e4e87d1eec Source-Link: https://github.com/googleapis/synthtool/commit/388e10f5ae302d3e8de1fac99f3a95d1ab8f824a --- packages/google-container/api-extractor.json | 369 +++++++++++++++++++ packages/google-container/synth.metadata | 4 +- 2 files changed, 371 insertions(+), 2 deletions(-) create mode 100644 packages/google-container/api-extractor.json diff --git a/packages/google-container/api-extractor.json b/packages/google-container/api-extractor.json new file mode 100644 index 00000000000..de228294b23 --- /dev/null +++ b/packages/google-container/api-extractor.json @@ -0,0 +1,369 @@ +/** + * Config file for API Extractor. For more info, please visit: https://api-extractor.com + */ +{ + "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", + + /** + * Optionally specifies another JSON config file that this file extends from. This provides a way for + * standard settings to be shared across multiple projects. + * + * If the path starts with "./" or "../", the path is resolved relative to the folder of the file that contains + * the "extends" field. Otherwise, the first path segment is interpreted as an NPM package name, and will be + * resolved using NodeJS require(). + * + * SUPPORTED TOKENS: none + * DEFAULT VALUE: "" + */ + // "extends": "./shared/api-extractor-base.json" + // "extends": "my-package/include/api-extractor-base.json" + + /** + * Determines the "" token that can be used with other config file settings. The project folder + * typically contains the tsconfig.json and package.json config files, but the path is user-defined. + * + * The path is resolved relative to the folder of the config file that contains the setting. + * + * The default value for "projectFolder" is the token "", which means the folder is determined by traversing + * parent folders, starting from the folder containing api-extractor.json, and stopping at the first folder + * that contains a tsconfig.json file. If a tsconfig.json file cannot be found in this way, then an error + * will be reported. + * + * SUPPORTED TOKENS: + * DEFAULT VALUE: "" + */ + // "projectFolder": "..", + + /** + * (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor + * analyzes the symbols exported by this module. + * + * The file extension must be ".d.ts" and not ".ts". + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + */ + "mainEntryPointFilePath": "/protos/protos.d.ts", + + /** + * A list of NPM package names whose exports should be treated as part of this package. + * + * For example, suppose that Webpack is used to generate a distributed bundle for the project "library1", + * and another NPM package "library2" is embedded in this bundle. Some types from library2 may become part + * of the exported API for library1, but by default API Extractor would generate a .d.ts rollup that explicitly + * imports library2. To avoid this, we can specify: + * + * "bundledPackages": [ "library2" ], + * + * This would direct API Extractor to embed those types directly in the .d.ts rollup, as if they had been + * local files for library1. + */ + "bundledPackages": [ ], + + /** + * Determines how the TypeScript compiler engine will be invoked by API Extractor. + */ + "compiler": { + /** + * Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * Note: This setting will be ignored if "overrideTsconfig" is used. + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "/tsconfig.json" + */ + // "tsconfigFilePath": "/tsconfig.json", + + /** + * Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk. + * The object must conform to the TypeScript tsconfig schema: + * + * http://json.schemastore.org/tsconfig + * + * If omitted, then the tsconfig.json file will be read from the "projectFolder". + * + * DEFAULT VALUE: no overrideTsconfig section + */ + // "overrideTsconfig": { + // . . . + // } + + /** + * This option causes the compiler to be invoked with the --skipLibCheck option. This option is not recommended + * and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when + * dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses + * for its analysis. Where possible, the underlying issue should be fixed rather than relying on skipLibCheck. + * + * DEFAULT VALUE: false + */ + // "skipLibCheck": true, + }, + + /** + * Configures how the API report file (*.api.md) will be generated. + */ + "apiReport": { + /** + * (REQUIRED) Whether to generate an API report. + */ + "enabled": true, + + /** + * The filename for the API report files. It will be combined with "reportFolder" or "reportTempFolder" to produce + * a full file path. + * + * The file extension should be ".api.md", and the string should not contain a path separator such as "\" or "/". + * + * SUPPORTED TOKENS: , + * DEFAULT VALUE: ".api.md" + */ + // "reportFileName": ".api.md", + + /** + * Specifies the folder where the API report file is written. The file name portion is determined by + * the "reportFileName" setting. + * + * The API report file is normally tracked by Git. Changes to it can be used to trigger a branch policy, + * e.g. for an API review. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "/etc/" + */ + // "reportFolder": "/etc/", + + /** + * Specifies the folder where the temporary report file is written. The file name portion is determined by + * the "reportFileName" setting. + * + * After the temporary file is written to disk, it is compared with the file in the "reportFolder". + * If they are different, a production build will fail. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "/temp/" + */ + // "reportTempFolder": "/temp/" + }, + + /** + * Configures how the doc model file (*.api.json) will be generated. + */ + "docModel": { + /** + * (REQUIRED) Whether to generate a doc model file. + */ + "enabled": true, + + /** + * The output path for the doc model file. The file extension should be ".api.json". + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "/temp/.api.json" + */ + // "apiJsonFilePath": "/temp/.api.json" + }, + + /** + * Configures how the .d.ts rollup file will be generated. + */ + "dtsRollup": { + /** + * (REQUIRED) Whether to generate the .d.ts rollup file. + */ + "enabled": true, + + /** + * Specifies the output path for a .d.ts rollup file to be generated without any trimming. + * This file will include all declarations that are exported by the main entry point. + * + * If the path is an empty string, then this file will not be written. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "/dist/.d.ts" + */ + // "untrimmedFilePath": "/dist/.d.ts", + + /** + * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "beta" release. + * This file will include only declarations that are marked as "@public" or "@beta". + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "" + */ + // "betaTrimmedFilePath": "/dist/-beta.d.ts", + + + /** + * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "public" release. + * This file will include only declarations that are marked as "@public". + * + * If the path is an empty string, then this file will not be written. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "" + */ + // "publicTrimmedFilePath": "/dist/-public.d.ts", + + /** + * When a declaration is trimmed, by default it will be replaced by a code comment such as + * "Excluded from this release type: exampleMember". Set "omitTrimmingComments" to true to remove the + * declaration completely. + * + * DEFAULT VALUE: false + */ + // "omitTrimmingComments": true + }, + + /** + * Configures how the tsdoc-metadata.json file will be generated. + */ + "tsdocMetadata": { + /** + * Whether to generate the tsdoc-metadata.json file. + * + * DEFAULT VALUE: true + */ + // "enabled": true, + + /** + * Specifies where the TSDoc metadata file should be written. + * + * The path is resolved relative to the folder of the config file that contains the setting; to change this, + * prepend a folder token such as "". + * + * The default value is "", which causes the path to be automatically inferred from the "tsdocMetadata", + * "typings" or "main" fields of the project's package.json. If none of these fields are set, the lookup + * falls back to "tsdoc-metadata.json" in the package folder. + * + * SUPPORTED TOKENS: , , + * DEFAULT VALUE: "" + */ + // "tsdocMetadataFilePath": "/dist/tsdoc-metadata.json" + }, + + /** + * Specifies what type of newlines API Extractor should use when writing output files. By default, the output files + * will be written with Windows-style newlines. To use POSIX-style newlines, specify "lf" instead. + * To use the OS's default newline kind, specify "os". + * + * DEFAULT VALUE: "crlf" + */ + // "newlineKind": "crlf", + + /** + * Configures how API Extractor reports error and warning messages produced during analysis. + * + * There are three sources of messages: compiler messages, API Extractor messages, and TSDoc messages. + */ + "messages": { + /** + * Configures handling of diagnostic messages reported by the TypeScript compiler engine while analyzing + * the input .d.ts files. + * + * TypeScript message identifiers start with "TS" followed by an integer. For example: "TS2551" + * + * DEFAULT VALUE: A single "default" entry with logLevel=warning. + */ + "compilerMessageReporting": { + /** + * Configures the default routing for messages that don't match an explicit rule in this table. + */ + "default": { + /** + * Specifies whether the message should be written to the the tool's output log. Note that + * the "addToApiReportFile" property may supersede this option. + * + * Possible values: "error", "warning", "none" + * + * Errors cause the build to fail and return a nonzero exit code. Warnings cause a production build fail + * and return a nonzero exit code. For a non-production build (e.g. when "api-extractor run" includes + * the "--local" option), the warning is displayed but the build will not fail. + * + * DEFAULT VALUE: "warning" + */ + "logLevel": "warning", + + /** + * When addToApiReportFile is true: If API Extractor is configured to write an API report file (.api.md), + * then the message will be written inside that file; otherwise, the message is instead logged according to + * the "logLevel" option. + * + * DEFAULT VALUE: false + */ + // "addToApiReportFile": false + }, + + // "TS2551": { + // "logLevel": "warning", + // "addToApiReportFile": true + // }, + // + // . . . + }, + + /** + * Configures handling of messages reported by API Extractor during its analysis. + * + * API Extractor message identifiers start with "ae-". For example: "ae-extra-release-tag" + * + * DEFAULT VALUE: See api-extractor-defaults.json for the complete table of extractorMessageReporting mappings + */ + "extractorMessageReporting": { + "default": { + "logLevel": "warning", + // "addToApiReportFile": false + }, + + // "ae-extra-release-tag": { + // "logLevel": "warning", + // "addToApiReportFile": true + // }, + // + // . . . + }, + + /** + * Configures handling of messages reported by the TSDoc parser when analyzing code comments. + * + * TSDoc message identifiers start with "tsdoc-". For example: "tsdoc-link-tag-unescaped-text" + * + * DEFAULT VALUE: A single "default" entry with logLevel=warning. + */ + "tsdocMessageReporting": { + "default": { + "logLevel": "warning", + // "addToApiReportFile": false + } + + // "tsdoc-link-tag-unescaped-text": { + // "logLevel": "warning", + // "addToApiReportFile": true + // }, + // + // . . . + } + } + +} diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index b9c187bdeba..85db7ca4524 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "5da5235bd6e088e1ea8389f28e7a9d74c115c945" + "sha": "25016870c055067898fecef502a41c642f85f0ef" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d82deccf657a66e31bd5da9efdb96c6fa322fc7e" + "sha": "21f1470ecd01424dc91c70f1a7c798e4e87d1eec" } } ], From 2ee5eb6eb185597bd462b2e3cd20131960e1018b Mon Sep 17 00:00:00 2001 From: "F. Hinkelmann" Date: Tue, 21 Jul 2020 14:44:13 -0400 Subject: [PATCH 235/371] chore: add dev dependencies for cloud-rad ref docs (#368) --- packages/google-container/package.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2401c528be5..d188d1184b7 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -40,7 +40,9 @@ "predocs-test": "npm run docs", "prepare": "npm run compile", "prelint": "cd samples; npm link ../; npm install", - "precompile": "gts clean" + "precompile": "gts clean", + "api-extractor": "api-extractor run --local", + "api-documenter": "api-documenter yaml --input-folder=temp" }, "dependencies": { "google-gax": "^2.1.0" @@ -62,6 +64,8 @@ "ts-loader": "^8.0.0", "typescript": "^3.8.3", "webpack": "^4.41.2", - "webpack-cli": "^3.3.10" + "webpack-cli": "^3.3.10", + "@microsoft/api-documenter": "^7.8.10", + "@microsoft/api-extractor": "^7.8.10" } } From 2aa505d9ca01fc46033c04de9a450cd236b83eb6 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 21 Jul 2020 22:20:25 -0700 Subject: [PATCH 236/371] build: rename _toc to toc (#369) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/940354f9-15cd-4361-bbf4-dc9af1426979/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/99c93fe09f8c1dca09dfc0301c8668e3a70dd796 --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 85db7ca4524..888b9eb2801 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "25016870c055067898fecef502a41c642f85f0ef" + "sha": "38b7a67566c70fd2fd7a11206029b2c3e77d1d02" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "21f1470ecd01424dc91c70f1a7c798e4e87d1eec" + "sha": "99c93fe09f8c1dca09dfc0301c8668e3a70dd796" } } ], From 3edc2eaf0823eac0f3117acb1e9fb2f589d3a91f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 23 Jul 2020 20:06:25 -0700 Subject: [PATCH 237/371] chore: move gitattributes files to node templates (#370) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/d43b90cc-a087-4c57-864c-1e4f93292dc6/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/3a00b7fea8c4c83eaff8eb207f530a2e3e8e1de3 --- packages/google-container/.gitattributes | 1 + packages/google-container/synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/google-container/.gitattributes b/packages/google-container/.gitattributes index d4f4169b28b..33739cb74e4 100644 --- a/packages/google-container/.gitattributes +++ b/packages/google-container/.gitattributes @@ -1,3 +1,4 @@ *.ts text eol=lf *.js text eol=lf protos/* linguist-generated +**/api-extractor.json linguist-language=JSON-with-Comments diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 888b9eb2801..7feb767fff6 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "38b7a67566c70fd2fd7a11206029b2c3e77d1d02" + "sha": "dd64103851c1318f8326e086a57210c89b72cd10" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "99c93fe09f8c1dca09dfc0301c8668e3a70dd796" + "sha": "3a00b7fea8c4c83eaff8eb207f530a2e3e8e1de3" } } ], From 7b6b173c20d0ddbd5b821d9e9149949f0777f0f4 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 29 Jul 2020 17:07:13 -0700 Subject: [PATCH 238/371] chore(node): fix kokoro build path for cloud-rad (#371) Source-Author: F. Hinkelmann Source-Date: Wed Jul 29 00:28:42 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 89d431fb2975fc4e0ed24995a6e6dfc8ff4c24fa Source-Link: https://github.com/googleapis/synthtool/commit/89d431fb2975fc4e0ed24995a6e6dfc8ff4c24fa --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 7feb767fff6..ad630d75917 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "dd64103851c1318f8326e086a57210c89b72cd10" + "sha": "6a09c9085cf563166484e13271c861eff21527f5" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "3a00b7fea8c4c83eaff8eb207f530a2e3e8e1de3" + "sha": "89d431fb2975fc4e0ed24995a6e6dfc8ff4c24fa" } } ], From e384f08ecf8f565e300de3d315aff41572f61d67 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 30 Jul 2020 19:10:24 -0700 Subject: [PATCH 239/371] build: update protos (#372) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b205fd33-200c-4298-88b8-18b0d1c79a3e/targets - [ ] To automatically regenerate this PR, check this box. --- packages/google-container/protos/protos.d.ts | 2 +- packages/google-container/protos/protos.js | 2 +- packages/google-container/synth.metadata | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index e6e503d0670..89b46067ec3 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -13,7 +13,7 @@ // limitations under the License. import * as Long from "long"; -import * as $protobuf from "protobufjs"; +import {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 22ced97dc76..5b103603724 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -19,7 +19,7 @@ define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("protobufjs/minimal")); + module.exports = factory(require("google-gax").protobufMinimal); })(this, function($protobuf) { "use strict"; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index ad630d75917..26901a7a3f7 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "6a09c9085cf563166484e13271c861eff21527f5" + "sha": "5cf2e90ffd097e31e0a02f6cac523fe8ef87c1e4" } }, { From ca91ee1b839e7b72ff405cd78a0dc30a192ab636 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 31 Jul 2020 09:24:05 -0700 Subject: [PATCH 240/371] docs: add links to the CHANGELOG from the README.md for Java and Node (#373) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/7b446397-88f3-4463-9e7d-d2ce7069989d/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/5936421202fb53ed4641bcb824017dd393a3dbcc --- packages/google-container/README.md | 3 +++ packages/google-container/synth.metadata | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index cc44eb3dacd..c36d37b0eec 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -17,6 +17,9 @@ building and managing container based applications, powered by the open source Kubernetes technology. +A comprehensive list of changes in each version may be found in +[the CHANGELOG](https://github.com/googleapis/nodejs-cloud-container/blob/master/CHANGELOG.md). + * [Kubernetes Engine Cluster Manager API Node.js Client API Reference][client-docs] * [Kubernetes Engine Cluster Manager API Documentation][product-docs] * [github.com/googleapis/nodejs-cloud-container](https://github.com/googleapis/nodejs-cloud-container) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 26901a7a3f7..d267ef1d34a 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "5cf2e90ffd097e31e0a02f6cac523fe8ef87c1e4" + "sha": "1509350098d82288d17e2a717396ba1fd0c0d191" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "89d431fb2975fc4e0ed24995a6e6dfc8ff4c24fa" + "sha": "5936421202fb53ed4641bcb824017dd393a3dbcc" } } ], From aed56e624633e7b745fb8c4df4e0abd539b078df Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 8 Aug 2020 11:36:37 -0700 Subject: [PATCH 241/371] build: --credential-file-override is no longer required (#375) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/4de22315-84b1-493d-8da2-dfa7688128f5/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/94421c47802f56a44c320257b2b4c190dc7d6b68 --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index d267ef1d34a..09863b5d35a 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "1509350098d82288d17e2a717396ba1fd0c0d191" + "sha": "a2f27ef59d7134bc1095a06fe67179a1eb759026" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5936421202fb53ed4641bcb824017dd393a3dbcc" + "sha": "94421c47802f56a44c320257b2b4c190dc7d6b68" } } ], From 7c75ca4c5809fa160b6b2caf3595fda509fa8979 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 11 Aug 2020 11:24:13 -0700 Subject: [PATCH 242/371] build: use gapic-generator-typescript v1.0.7. (#376) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/5f7f9c6d-c75a-4c60-8bb8-0026a14cead7/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 325949033 Source-Link: https://github.com/googleapis/googleapis/commit/94006b3cb8d2fb44703cf535da15608eed6bf7db --- packages/google-container/src/v1/cluster_manager_client.ts | 5 ++--- packages/google-container/synth.metadata | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 8c969f95ba2..ef7447a7d9d 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -258,12 +258,11 @@ export class ClusterManagerClient { } ); + const descriptor = this.descriptors.page[methodName] || undefined; const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - this.descriptors.page[methodName] || - this.descriptors.stream[methodName] || - this.descriptors.longrunning[methodName] + descriptor ); this.innerApiCalls[methodName] = apiCall; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 09863b5d35a..c19e0b0880d 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "a2f27ef59d7134bc1095a06fe67179a1eb759026" + "sha": "6abbff2dec06f1c52b6d0afdf38ddd9b0b426c48" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "4f4aa3a03e470f1390758b9d89eb1aa88837a5be", - "internalRef": "320300472" + "sha": "94006b3cb8d2fb44703cf535da15608eed6bf7db", + "internalRef": "325949033" } }, { From 472bd057f087bfcca19f64057ba1ec28126c973d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 12 Aug 2020 09:36:17 -0700 Subject: [PATCH 243/371] chore: update cloud rad kokoro build job (#377) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b742586e-df31-4aac-8092-78288e9ea8e7/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/bd0deaa1113b588d70449535ab9cbf0f2bd0e72f --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index c19e0b0880d..77a6e92d4cc 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "6abbff2dec06f1c52b6d0afdf38ddd9b0b426c48" + "sha": "9216ea88e4d9e58ffff4a8ee3f3aaf1283683146" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "94421c47802f56a44c320257b2b4c190dc7d6b68" + "sha": "bd0deaa1113b588d70449535ab9cbf0f2bd0e72f" } } ], From 6e50b49e118b3d8e88bbe4602b6732d62838408d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 13 Aug 2020 09:14:43 -0700 Subject: [PATCH 244/371] build: perform publish using Node 12 (#378) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/c36c6dbc-ab79-4f17-b70b-523b420b2a70/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/5747555f7620113d9a2078a48f4c047a99d31b3e --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 77a6e92d4cc..d6fbdefc0f4 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "9216ea88e4d9e58ffff4a8ee3f3aaf1283683146" + "sha": "06fa9725a7bb50b27c86d58a19e16d0f4d18ff53" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "bd0deaa1113b588d70449535ab9cbf0f2bd0e72f" + "sha": "5747555f7620113d9a2078a48f4c047a99d31b3e" } } ], From acfba4d52a9951887a0c30eafa60941dad0e0a77 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 19 Aug 2020 09:42:15 -0700 Subject: [PATCH 245/371] chore: start tracking obsolete files (#379) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/7a1b0b96-8ddb-4836-a1a2-d2f73b7e6ffe/targets - [ ] To automatically regenerate this PR, check this box. --- packages/google-container/synth.metadata | 80 ++++++++++++++++++++++-- 1 file changed, 76 insertions(+), 4 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index d6fbdefc0f4..2d9b42fab9b 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,22 +4,22 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "06fa9725a7bb50b27c86d58a19e16d0f4d18ff53" + "sha": "358e8b249a48501932cd711556bc50136cf48da5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "94006b3cb8d2fb44703cf535da15608eed6bf7db", - "internalRef": "325949033" + "sha": "4c5071b615d96ef9dfd6a63d8429090f1f2872bb", + "internalRef": "327369997" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5747555f7620113d9a2078a48f4c047a99d31b3e" + "sha": "1a60ff2a3975c2f5054431588bd95db9c3b862ba" } } ], @@ -33,5 +33,77 @@ "generator": "bazel" } } + ], + "generatedFiles": [ + ".eslintignore", + ".eslintrc.json", + ".gitattributes", + ".github/ISSUE_TEMPLATE/bug_report.md", + ".github/ISSUE_TEMPLATE/feature_request.md", + ".github/ISSUE_TEMPLATE/support_request.md", + ".github/PULL_REQUEST_TEMPLATE.md", + ".github/publish.yml", + ".github/release-please.yml", + ".github/workflows/ci.yaml", + ".gitignore", + ".jsdoc.js", + ".kokoro/.gitattributes", + ".kokoro/common.cfg", + ".kokoro/continuous/node10/common.cfg", + ".kokoro/continuous/node10/docs.cfg", + ".kokoro/continuous/node10/lint.cfg", + ".kokoro/continuous/node10/samples-test.cfg", + ".kokoro/continuous/node10/system-test.cfg", + ".kokoro/continuous/node10/test.cfg", + ".kokoro/continuous/node12/common.cfg", + ".kokoro/continuous/node12/test.cfg", + ".kokoro/docs.sh", + ".kokoro/lint.sh", + ".kokoro/populate-secrets.sh", + ".kokoro/presubmit/node10/common.cfg", + ".kokoro/presubmit/node10/samples-test.cfg", + ".kokoro/presubmit/node10/system-test.cfg", + ".kokoro/presubmit/node12/common.cfg", + ".kokoro/presubmit/node12/test.cfg", + ".kokoro/publish.sh", + ".kokoro/release/docs-devsite.cfg", + ".kokoro/release/docs-devsite.sh", + ".kokoro/release/docs.cfg", + ".kokoro/release/docs.sh", + ".kokoro/release/publish.cfg", + ".kokoro/samples-test.sh", + ".kokoro/system-test.sh", + ".kokoro/test.bat", + ".kokoro/test.sh", + ".kokoro/trampoline.sh", + ".mocharc.js", + ".nycrc", + ".prettierignore", + ".prettierrc.js", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "README.md", + "api-extractor.json", + "linkinator.config.json", + "package-lock.json.2826428697", + "protos/google/container/v1/cluster_service.proto", + "protos/protos.d.ts", + "protos/protos.js", + "protos/protos.json", + "renovate.json", + "samples/README.md", + "samples/package-lock.json.969449951", + "src/index.ts", + "src/v1/cluster_manager_client.ts", + "src/v1/cluster_manager_client_config.json", + "src/v1/cluster_manager_proto_list.json", + "src/v1/index.ts", + "system-test/fixtures/sample/src/index.js", + "system-test/fixtures/sample/src/index.ts", + "system-test/install.ts", + "test/gapic_cluster_manager_v1.ts", + "tsconfig.json", + "webpack.config.js" ] } \ No newline at end of file From 32d665b15f313cc6f82cd6a7adc394a24e4a9be8 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 21 Aug 2020 09:26:19 -0700 Subject: [PATCH 246/371] build: move system and samples test from Node 10 to Node 12 (#380) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/ba2d388f-b3b2-4ad7-a163-0c6b4d86894f/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/05de3e1e14a0b07eab8b474e669164dbd31f81fb --- packages/google-container/synth.metadata | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 2d9b42fab9b..97c55b85d74 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "358e8b249a48501932cd711556bc50136cf48da5" + "sha": "6a69657d5d91205436084f9d9b49fd985b7ca06f" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1a60ff2a3975c2f5054431588bd95db9c3b862ba" + "sha": "05de3e1e14a0b07eab8b474e669164dbd31f81fb" } } ], @@ -51,19 +51,19 @@ ".kokoro/common.cfg", ".kokoro/continuous/node10/common.cfg", ".kokoro/continuous/node10/docs.cfg", - ".kokoro/continuous/node10/lint.cfg", - ".kokoro/continuous/node10/samples-test.cfg", - ".kokoro/continuous/node10/system-test.cfg", ".kokoro/continuous/node10/test.cfg", ".kokoro/continuous/node12/common.cfg", + ".kokoro/continuous/node12/lint.cfg", + ".kokoro/continuous/node12/samples-test.cfg", + ".kokoro/continuous/node12/system-test.cfg", ".kokoro/continuous/node12/test.cfg", ".kokoro/docs.sh", ".kokoro/lint.sh", ".kokoro/populate-secrets.sh", ".kokoro/presubmit/node10/common.cfg", - ".kokoro/presubmit/node10/samples-test.cfg", - ".kokoro/presubmit/node10/system-test.cfg", ".kokoro/presubmit/node12/common.cfg", + ".kokoro/presubmit/node12/samples-test.cfg", + ".kokoro/presubmit/node12/system-test.cfg", ".kokoro/presubmit/node12/test.cfg", ".kokoro/publish.sh", ".kokoro/release/docs-devsite.cfg", @@ -86,14 +86,12 @@ "README.md", "api-extractor.json", "linkinator.config.json", - "package-lock.json.2826428697", "protos/google/container/v1/cluster_service.proto", "protos/protos.d.ts", "protos/protos.js", "protos/protos.json", "renovate.json", "samples/README.md", - "samples/package-lock.json.969449951", "src/index.ts", "src/v1/cluster_manager_client.ts", "src/v1/cluster_manager_client_config.json", From dbe7c2efee83104c9067b8a8f937e560acf99313 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 27 Aug 2020 20:40:03 -0700 Subject: [PATCH 247/371] build: track flaky tests for "nightly", add new secrets for tagging (#381) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/a8ab5675-1982-4cf5-b9b7-36794038b975/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/8cf6d2834ad14318e64429c3b94f6443ae83daf9 --- packages/google-container/synth.metadata | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 97c55b85d74..aa485aea6ef 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "6a69657d5d91205436084f9d9b49fd985b7ca06f" + "sha": "4fb2155aac9745b0936156ba625258b488958fec" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "05de3e1e14a0b07eab8b474e669164dbd31f81fb" + "sha": "8cf6d2834ad14318e64429c3b94f6443ae83daf9" } } ], @@ -42,7 +42,6 @@ ".github/ISSUE_TEMPLATE/feature_request.md", ".github/ISSUE_TEMPLATE/support_request.md", ".github/PULL_REQUEST_TEMPLATE.md", - ".github/publish.yml", ".github/release-please.yml", ".github/workflows/ci.yaml", ".gitignore", From cec2eba12e05bdd6483a8527b79fd29a087e9578 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 12 Sep 2020 11:22:11 -0700 Subject: [PATCH 248/371] build(test): recursively find test files; fail on unsupported dependency versions (#384) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/28f926df-4479-489a-b60f-ecf7782e1eb7/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/fdd03c161003ab97657cc0218f25c82c89ddf4b6 --- packages/google-container/.mocharc.js | 3 ++- packages/google-container/synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/google-container/.mocharc.js b/packages/google-container/.mocharc.js index ff7b34fa5d1..0b600509bed 100644 --- a/packages/google-container/.mocharc.js +++ b/packages/google-container/.mocharc.js @@ -14,7 +14,8 @@ const config = { "enable-source-maps": true, "throw-deprecation": true, - "timeout": 10000 + "timeout": 10000, + "recursive": true } if (process.env.MOCHA_THROW_DEPRECATION === 'false') { delete config['throw-deprecation']; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index aa485aea6ef..3b118c7e19f 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "4fb2155aac9745b0936156ba625258b488958fec" + "sha": "aa31aa239359b1af8433726ee974b0d86ba72c1a" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8cf6d2834ad14318e64429c3b94f6443ae83daf9" + "sha": "fdd03c161003ab97657cc0218f25c82c89ddf4b6" } } ], From 3a2e82787f821f7c95268c56c13a52f2ea433618 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 1 Oct 2020 05:04:01 -0700 Subject: [PATCH 249/371] chore: update bucket for cloud-rad (#385) Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com> Source-Author: F. Hinkelmann Source-Date: Wed Sep 30 14:13:57 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 079dcce498117f9570cebe6e6cff254b38ba3860 Source-Link: https://github.com/googleapis/synthtool/commit/079dcce498117f9570cebe6e6cff254b38ba3860 --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 3b118c7e19f..9baae534644 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "aa31aa239359b1af8433726ee974b0d86ba72c1a" + "sha": "6c9569bcabfd11078ea1b1db9731347d4fe43c31" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "fdd03c161003ab97657cc0218f25c82c89ddf4b6" + "sha": "079dcce498117f9570cebe6e6cff254b38ba3860" } } ], From f409cce0664ea61f75a60f16df7f9162ae674aff Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 7 Oct 2020 18:26:01 -0700 Subject: [PATCH 250/371] build(node_library): migrate to Trampoline V2 (#386) Source-Author: Takashi Matsuo Source-Date: Fri Oct 2 12:13:27 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 0c868d49b8e05bc1f299bc773df9eb4ef9ed96e9 Source-Link: https://github.com/googleapis/synthtool/commit/0c868d49b8e05bc1f299bc773df9eb4ef9ed96e9 --- packages/google-container/synth.metadata | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 9baae534644..7b0d45e54d2 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "6c9569bcabfd11078ea1b1db9731347d4fe43c31" + "sha": "5abab296e45cd60f146d283f777a79086bea1675" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "079dcce498117f9570cebe6e6cff254b38ba3860" + "sha": "0c868d49b8e05bc1f299bc773df9eb4ef9ed96e9" } } ], @@ -75,10 +75,12 @@ ".kokoro/test.bat", ".kokoro/test.sh", ".kokoro/trampoline.sh", + ".kokoro/trampoline_v2.sh", ".mocharc.js", ".nycrc", ".prettierignore", ".prettierrc.js", + ".trampolinerc", "CODE_OF_CONDUCT.md", "CONTRIBUTING.md", "LICENSE", From a1347ef69c4795cbaaef9fb871f6b7fbf13451cf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Oct 2020 21:56:14 +0200 Subject: [PATCH 251/371] chore(deps): update dependency webpack-cli to v4 (#389) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [webpack-cli](https://togithub.com/webpack/webpack-cli) | devDependencies | major | [`^3.3.10` -> `^4.0.0`](https://renovatebot.com/diffs/npm/webpack-cli/3.3.12/4.0.0) | --- ### Release Notes
webpack/webpack-cli ### [`v4.0.0`](https://togithub.com/webpack/webpack-cli/blob/master/CHANGELOG.md#​400-httpsgithubcomwebpackwebpack-clicomparewebpack-cli400-rc1webpack-cli400-2020-10-10) [Compare Source](https://togithub.com/webpack/webpack-cli/compare/v3.3.12...webpack-cli@4.0.0) ##### Bug Fixes - add compilation lifecycle in watch instance ([#​1903](https://togithub.com/webpack/webpack-cli/issues/1903)) ([02b6d21](https://togithub.com/webpack/webpack-cli/commit/02b6d21eaa20166a7ed37816de716b8fc22b756a)) - cleanup `package-utils` package ([#​1822](https://togithub.com/webpack/webpack-cli/issues/1822)) ([fd5b92b](https://togithub.com/webpack/webpack-cli/commit/fd5b92b3cd40361daec5bf4486e455a41f4c9738)) - cli-executer supplies args further up ([#​1904](https://togithub.com/webpack/webpack-cli/issues/1904)) ([097564a](https://togithub.com/webpack/webpack-cli/commit/097564a851b36b63e0a6bf88144997ef65aa057a)) - exit code for validation errors ([59f6303](https://togithub.com/webpack/webpack-cli/commit/59f63037fcbdbb8934b578b9adf5725bc4ae1235)) - exit process in case of schema errors ([71e89b4](https://togithub.com/webpack/webpack-cli/commit/71e89b4092d953ea587cc4f606451ab78cbcdb93)) ##### Features - assign config paths in build dependencies in cache config ([#​1900](https://togithub.com/webpack/webpack-cli/issues/1900)) ([7e90f11](https://togithub.com/webpack/webpack-cli/commit/7e90f110b119f36ef9def4f66cf4e17ccf1438cd))
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index d188d1184b7..5be6566c7a0 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -64,7 +64,7 @@ "ts-loader": "^8.0.0", "typescript": "^3.8.3", "webpack": "^4.41.2", - "webpack-cli": "^3.3.10", + "webpack-cli": "^4.0.0", "@microsoft/api-documenter": "^7.8.10", "@microsoft/api-extractor": "^7.8.10" } From 59a1b718e26c1e9b5677e1ed4bc02ccb425e8a8e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Oct 2020 23:02:21 +0200 Subject: [PATCH 252/371] chore(deps): update dependency webpack to v5 (#388) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [webpack](https://togithub.com/webpack/webpack) | devDependencies | major | [`^4.41.2` -> `^5.0.0`](https://renovatebot.com/diffs/npm/webpack/4.44.2/5.1.0) | --- ### Release Notes
webpack/webpack ### [`v5.1.0`](https://togithub.com/webpack/webpack/releases/v5.1.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v5.0.0...v5.1.0) ### Features - expose `webpack` property from `Compiler` - expose `cleverMerge`, `EntryOptionPlugin`, `DynamicEntryPlugin` ### Bugfixes - missing `require("..").xxx` in try-catch produces a warning instead of an error now - handle reexports in concatenated modules correctly when they are side-effect-free - fix incorrect deprecation message for ModuleTemplate.hooks.hash ### [`v5.0.0`](https://togithub.com/webpack/webpack/releases/v5.0.0) [Compare Source](https://togithub.com/webpack/webpack/compare/v4.44.2...v5.0.0) [Announcement and changelog](https://webpack.js.org/blog/2020-10-10-webpack-5-release/)
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 5be6566c7a0..2c6991f9f1e 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -63,7 +63,7 @@ "sinon": "^9.0.1", "ts-loader": "^8.0.0", "typescript": "^3.8.3", - "webpack": "^4.41.2", + "webpack": "^5.0.0", "webpack-cli": "^4.0.0", "@microsoft/api-documenter": "^7.8.10", "@microsoft/api-extractor": "^7.8.10" From 232713f83086808f3cbbb2ce00d26c5c73c83aec Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 16 Oct 2020 10:08:27 -0700 Subject: [PATCH 253/371] build: only check --engine-strict for production deps (#390) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/9b1f5306-e1f1-4834-baa7-c436ccd06c13/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/5451633881133e5573cc271a18e73b18caca8b1b --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 7b0d45e54d2..6316de7a641 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "5abab296e45cd60f146d283f777a79086bea1675" + "sha": "97cdaa22fe0f43cc0c5b96652d081fe874724b6c" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0c868d49b8e05bc1f299bc773df9eb4ef9ed96e9" + "sha": "5451633881133e5573cc271a18e73b18caca8b1b" } } ], From af0b287cdbb8e3cf1aaf15c03b1d6fe7cc9abbb0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 21 Oct 2020 11:21:26 -0700 Subject: [PATCH 254/371] chore: clean up Node.js TOC for cloud-rad (#391) * chore: clean up Node.js TOC for cloud-rad Source-Author: F. Hinkelmann Source-Date: Wed Oct 21 09:26:04 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: f96d3b455fe27c3dc7bc37c3c9cd27b1c6d269c8 Source-Link: https://github.com/googleapis/synthtool/commit/f96d3b455fe27c3dc7bc37c3c9cd27b1c6d269c8 * chore: fix Node.js TOC for cloud-rad Source-Author: F. Hinkelmann Source-Date: Wed Oct 21 12:01:24 2020 -0400 Source-Repo: googleapis/synthtool Source-Sha: 901ddd44e9ef7887ee681b9183bbdea99437fdcc Source-Link: https://github.com/googleapis/synthtool/commit/901ddd44e9ef7887ee681b9183bbdea99437fdcc --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 6316de7a641..66516bb1f22 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "97cdaa22fe0f43cc0c5b96652d081fe874724b6c" + "sha": "384176540bdc7fe2028af6fb087d091122e2d8d2" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "5451633881133e5573cc271a18e73b18caca8b1b" + "sha": "901ddd44e9ef7887ee681b9183bbdea99437fdcc" } } ], From 3dce4f8e2d777d573d7229b00dea55712785ef1a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 27 Oct 2020 08:38:30 -0700 Subject: [PATCH 255/371] docs: updated code of conduct (includes update to actions) (#395) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/1ba764cb-0d2b-415e-8df3-550cb9bd34aa/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/89c849ba5013e45e8fb688b138f33c2ec6083dc5 Source-Link: https://github.com/googleapis/synthtool/commit/a783321fd55f010709294455584a553f4b24b944 Source-Link: https://github.com/googleapis/synthtool/commit/b7413d38b763827c72c0360f0a3d286c84656eeb Source-Link: https://github.com/googleapis/synthtool/commit/5f6ef0ec5501d33c4667885b37a7685a30d41a76 --- packages/google-container/CODE_OF_CONDUCT.md | 123 +++++++++++++------ packages/google-container/synth.metadata | 4 +- 2 files changed, 89 insertions(+), 38 deletions(-) diff --git a/packages/google-container/CODE_OF_CONDUCT.md b/packages/google-container/CODE_OF_CONDUCT.md index 46b2a08ea6d..2add2547a81 100644 --- a/packages/google-container/CODE_OF_CONDUCT.md +++ b/packages/google-container/CODE_OF_CONDUCT.md @@ -1,43 +1,94 @@ -# Contributor Code of Conduct + +# Code of Conduct -As contributors and maintainers of this project, -and in the interest of fostering an open and welcoming community, -we pledge to respect all people who contribute through reporting issues, -posting feature requests, updating documentation, -submitting pull requests or patches, and other activities. +## Our Pledge -We are committed to making participation in this project -a harassment-free experience for everyone, -regardless of level of experience, gender, gender identity and expression, -sexual orientation, disability, personal appearance, -body size, race, ethnicity, age, religion, or nationality. +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, gender identity and expression, level of +experience, education, socio-economic status, nationality, personal appearance, +race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members Examples of unacceptable behavior by participants include: -* The use of sexualized language or imagery -* Personal attacks -* Trolling or insulting/derogatory comments -* Public or private harassment -* Publishing other's private information, -such as physical or electronic -addresses, without explicit permission -* Other unethical or unprofessional conduct. +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. Project maintainers have the right and responsibility to remove, edit, or reject -comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct. -By adopting this Code of Conduct, -project maintainers commit themselves to fairly and consistently -applying these principles to every aspect of managing this project. -Project maintainers who do not follow or enforce the Code of Conduct -may be permanently removed from the project team. - -This code of conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. - -Instances of abusive, harassing, or otherwise unacceptable behavior -may be reported by opening an issue -or contacting one or more of the project maintainers. - -This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, -available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/) +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, or to ban temporarily or permanently any +contributor for other behaviors that they deem inappropriate, threatening, +offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +This Code of Conduct also applies outside the project spaces when the Project +Steward has a reasonable belief that an individual's behavior may have a +negative impact on the project or its community. + +## Conflict Resolution + +We do not believe that all conflict is bad; healthy debate and disagreement +often yield positive results. However, it is never okay to be disrespectful or +to engage in behavior that violates the project’s code of conduct. + +If you see someone violating the code of conduct, you are encouraged to address +the behavior directly with those involved. Many issues can be resolved quickly +and easily, and this gives people more control over the outcome of their +dispute. If you are unable to resolve the matter for any reason, or if the +behavior is threatening or harassing, report it. We are dedicated to providing +an environment where participants feel welcome and safe. + +Reports should be directed to *googleapis-stewards@google.com*, the +Project Steward(s) for *Google Cloud Client Libraries*. It is the Project Steward’s duty to +receive and address reported violations of the code of conduct. They will then +work with a committee consisting of representatives from the Open Source +Programs Office and the Google Open Source Strategy team. If for any reason you +are uncomfortable reaching out to the Project Steward, please email +opensource@google.com. + +We will investigate every complaint, but you may not receive a direct response. +We will use our discretion in determining when and how to follow up on reported +incidents, which may range from not taking action to permanent expulsion from +the project and project-sponsored spaces. We will notify the accused of the +report and provide them an opportunity to discuss it before any action is taken. +The identity of the reporter will be omitted from the details of the report +supplied to the accused. In potentially harmful situations, such as ongoing +harassment or threats to anyone's safety, we may take action without notice. + +## Attribution + +This Code of Conduct is adapted from the Contributor Covenant, version 1.4, +available at +https://www.contributor-covenant.org/version/1/4/code-of-conduct.html \ No newline at end of file diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 66516bb1f22..7e8eaac3bdf 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "384176540bdc7fe2028af6fb087d091122e2d8d2" + "sha": "e94b529fd0487c6dcfb97710ed978a974182dd3f" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "901ddd44e9ef7887ee681b9183bbdea99437fdcc" + "sha": "89c849ba5013e45e8fb688b138f33c2ec6083dc5" } } ], From 8923cb95eaa4b8de898e7dadf0c6f54f55abbbd7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 2 Nov 2020 15:58:21 -0800 Subject: [PATCH 256/371] build(node): add KOKORO_BUILD_ARTIFACTS_SUBDIR to env (#396) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/bfc25924-7584-48c7-bead-23b659b9a9b8/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/ba9918cd22874245b55734f57470c719b577e591 --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 7e8eaac3bdf..5c88e72acd7 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "e94b529fd0487c6dcfb97710ed978a974182dd3f" + "sha": "c6f26c4135f0c487081f208669c6d5038477ee10" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "89c849ba5013e45e8fb688b138f33c2ec6083dc5" + "sha": "ba9918cd22874245b55734f57470c719b577e591" } } ], From 5e614b31093d4338356de7f4773e6a4a71808d1e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 6 Nov 2020 14:56:27 -0800 Subject: [PATCH 257/371] build: add type for ClusterManagerClient (#397) --- packages/google-container/src/index.ts | 1 + packages/google-container/synth.metadata | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/google-container/src/index.ts b/packages/google-container/src/index.ts index 790919f1299..a08475c7343 100644 --- a/packages/google-container/src/index.ts +++ b/packages/google-container/src/index.ts @@ -19,6 +19,7 @@ import * as v1 from './v1'; const ClusterManagerClient = v1.ClusterManagerClient; +type ClusterManagerClient = v1.ClusterManagerClient; export {v1, ClusterManagerClient}; export default {v1, ClusterManagerClient}; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 5c88e72acd7..79a6627ac9d 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "c6f26c4135f0c487081f208669c6d5038477ee10" + "sha": "8a18ada1eba87105614f495f005dca0d503e58a9" } }, { From 61f6d0e54b1575c773df5c229c4083a5ce30fb4c Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Fri, 6 Nov 2020 16:36:07 -0800 Subject: [PATCH 258/371] fix: do not modify options object, use defaultScopes (#398) Regenerated the library using [gapic-generator-typescript](https://github.com/googleapis/gapic-generator-typescript) v1.2.1. --- packages/google-container/package.json | 2 +- .../src/v1/cluster_manager_client.ts | 303 ++++++++++++------ packages/google-container/synth.metadata | 6 +- .../system-test/fixtures/sample/src/index.ts | 9 +- .../google-container/system-test/install.ts | 18 +- 5 files changed, 235 insertions(+), 103 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2c6991f9f1e..0f269065992 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -45,7 +45,7 @@ "api-documenter": "api-documenter yaml --input-folder=temp" }, "dependencies": { - "google-gax": "^2.1.0" + "google-gax": "^2.9.2" }, "devDependencies": { "@types/mocha": "^8.0.0", diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index ef7447a7d9d..0d22fced5ce 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -59,8 +59,10 @@ export class ClusterManagerClient { /** * Construct an instance of ClusterManagerClient. * - * @param {object} [options] - The configuration object. See the subsequent - * parameters for more details. + * @param {object} [options] - The configuration object. + * The options accepted by the constructor are described in detail + * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] * @param {string} [options.credentials.private_key] @@ -80,42 +82,33 @@ export class ClusterManagerClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. + * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. + * TODO(@alexander-fenster): link to gax documentation. + * @param {boolean} fallback - Use HTTP fallback mode. + * In fallback mode, a special browser-compatible transport implementation is used + * instead of gRPC transport. In browser context (if the `window` object is defined) + * the fallback mode is enabled automatically; set `options.fallback` to `false` + * if you need to override this behavior. */ - constructor(opts?: ClientOptions) { - // Ensure that options include the service address and port. + // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ClusterManagerClient; const servicePath = - opts && opts.servicePath - ? opts.servicePath - : opts && opts.apiEndpoint - ? opts.apiEndpoint - : staticMembers.servicePath; - const port = opts && opts.port ? opts.port : staticMembers.port; + opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + const port = opts?.port || staticMembers.port; + const clientConfig = opts?.clientConfig ?? {}; + const fallback = opts?.fallback ?? typeof window !== 'undefined'; + opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); - if (!opts) { - opts = {servicePath, port}; + // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. + if (servicePath !== staticMembers.servicePath && !('scopes' in opts)) { + opts['scopes'] = staticMembers.scopes; } - opts.servicePath = opts.servicePath || servicePath; - opts.port = opts.port || port; - - // users can override the config from client side, like retry codes name. - // The detailed structure of the clientConfig can be found here: https://github.com/googleapis/gax-nodejs/blob/master/src/gax.ts#L546 - // The way to override client config for Showcase API: - // - // const customConfig = {"interfaces": {"google.showcase.v1beta1.Echo": {"methods": {"Echo": {"retry_codes_name": "idempotent", "retry_params_name": "default"}}}}} - // const showcaseClient = new showcaseClient({ projectId, customConfig }); - opts.clientConfig = opts.clientConfig || {}; - // If we're running in browser, it's OK to omit `fallback` since - // google-gax has `browser` field in its `package.json`. - // For Electron (which does not respect `browser` field), - // pass `{fallback: true}` to the ClusterManagerClient constructor. + // Choose either gRPC or proto-over-HTTP implementation of google-gax. this._gaxModule = opts.fallback ? gax.fallback : gax; - // Create a `gaxGrpc` object, with any grpc-specific options - // sent to the client. - opts.scopes = (this.constructor as typeof ClusterManagerClient).scopes; + // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); // Save options to use in initialize() method. @@ -124,6 +117,11 @@ export class ClusterManagerClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set the default scopes in auth client if needed. + if (servicePath === staticMembers.servicePath) { + this.auth.defaultScopes = staticMembers.scopes; + } + // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; if (typeof process !== 'undefined' && 'versions' in process) { @@ -273,6 +271,7 @@ export class ClusterManagerClient { /** * The DNS address for this API service. + * @returns {string} The DNS address for this service. */ static get servicePath() { return 'container.googleapis.com'; @@ -281,6 +280,7 @@ export class ClusterManagerClient { /** * The DNS address for this API service - same as servicePath(), * exists for compatibility reasons. + * @returns {string} The DNS address for this service. */ static get apiEndpoint() { return 'container.googleapis.com'; @@ -288,6 +288,7 @@ export class ClusterManagerClient { /** * The port for this API service. + * @returns {number} The default port for this service. */ static get port() { return 443; @@ -296,6 +297,7 @@ export class ClusterManagerClient { /** * The scopes needed to make gRPC calls for every method defined * in this service. + * @returns {string[]} List of default scopes. */ static get scopes() { return ['https://www.googleapis.com/auth/cloud-platform']; @@ -305,8 +307,7 @@ export class ClusterManagerClient { getProjectId(callback: Callback): void; /** * Return the project ID used by this class. - * @param {function(Error, string)} callback - the callback to - * be called with the current project Id. + * @returns {Promise} A promise that resolves to string containing the project ID. */ getProjectId( callback?: Callback @@ -371,7 +372,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [ListClustersResponse]{@link google.container.v1.ListClustersResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.listClusters(request); */ listClusters( request: protos.google.container.v1.IListClustersRequest, @@ -465,7 +470,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Cluster]{@link google.container.v1.Cluster}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getCluster(request); */ getCluster( request: protos.google.container.v1.IGetClusterRequest, @@ -571,7 +580,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createCluster(request); */ createCluster( request: protos.google.container.v1.ICreateClusterRequest, @@ -667,7 +680,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateCluster(request); */ updateCluster( request: protos.google.container.v1.IUpdateClusterRequest, @@ -779,7 +796,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateNodePool(request); */ updateNodePool( request: protos.google.container.v1.IUpdateNodePoolRequest, @@ -883,7 +904,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setNodePoolAutoscaling(request); */ setNodePoolAutoscaling( request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, @@ -991,7 +1016,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setLoggingService(request); */ setLoggingService( request: protos.google.container.v1.ISetLoggingServiceRequest, @@ -1099,7 +1128,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setMonitoringService(request); */ setMonitoringService( request: protos.google.container.v1.ISetMonitoringServiceRequest, @@ -1200,7 +1233,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setAddonsConfig(request); */ setAddonsConfig( request: protos.google.container.v1.ISetAddonsConfigRequest, @@ -1302,7 +1339,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setLocations(request); */ setLocations( request: protos.google.container.v1.ISetLocationsRequest, @@ -1407,7 +1448,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.updateMaster(request); */ updateMaster( request: protos.google.container.v1.IUpdateMasterRequest, @@ -1507,7 +1552,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setMasterAuth(request); */ setMasterAuth( request: protos.google.container.v1.ISetMasterAuthRequest, @@ -1609,7 +1658,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteCluster(request); */ deleteCluster( request: protos.google.container.v1.IDeleteClusterRequest, @@ -1700,7 +1753,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [ListOperationsResponse]{@link google.container.v1.ListOperationsResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.listOperations(request); */ listOperations( request: protos.google.container.v1.IListOperationsRequest, @@ -1794,7 +1851,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getOperation(request); */ getOperation( request: protos.google.container.v1.IGetOperationRequest, @@ -1887,7 +1948,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.cancelOperation(request); */ cancelOperation( request: protos.google.container.v1.ICancelOperationRequest, @@ -1977,7 +2042,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [ServerConfig]{@link google.container.v1.ServerConfig}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getServerConfig(request); */ getServerConfig( request: protos.google.container.v1.IGetServerConfigRequest, @@ -2071,7 +2140,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [ListNodePoolsResponse]{@link google.container.v1.ListNodePoolsResponse}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.listNodePools(request); */ listNodePools( request: protos.google.container.v1.IListNodePoolsRequest, @@ -2169,7 +2242,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [NodePool]{@link google.container.v1.NodePool}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getNodePool(request); */ getNodePool( request: protos.google.container.v1.IGetNodePoolRequest, @@ -2266,7 +2343,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.createNodePool(request); */ createNodePool( request: protos.google.container.v1.ICreateNodePoolRequest, @@ -2364,7 +2445,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.deleteNodePool(request); */ deleteNodePool( request: protos.google.container.v1.IDeleteNodePoolRequest, @@ -2467,7 +2552,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.rollbackNodePoolUpgrade(request); */ rollbackNodePoolUpgrade( request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, @@ -2579,7 +2668,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setNodePoolManagement(request); */ setNodePoolManagement( request: protos.google.container.v1.ISetNodePoolManagementRequest, @@ -2686,7 +2779,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setLabels(request); */ setLabels( request: protos.google.container.v1.ISetLabelsRequest, @@ -2782,7 +2879,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setLegacyAbac(request); */ setLegacyAbac( request: protos.google.container.v1.ISetLegacyAbacRequest, @@ -2878,7 +2979,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.startIPRotation(request); */ startIPRotation( request: protos.google.container.v1.IStartIPRotationRequest, @@ -2972,7 +3077,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.completeIPRotation(request); */ completeIPRotation( request: protos.google.container.v1.ICompleteIPRotationRequest, @@ -3074,7 +3183,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setNodePoolSize(request); */ setNodePoolSize( request: protos.google.container.v1.ISetNodePoolSizeRequest, @@ -3170,7 +3283,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setNetworkPolicy(request); */ setNetworkPolicy( request: protos.google.container.v1.ISetNetworkPolicyRequest, @@ -3271,7 +3388,11 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * The promise has a method named "cancel" which cancels the ongoing API call. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.setMaintenancePolicy(request); */ setMaintenancePolicy( request: protos.google.container.v1.ISetMaintenancePolicyRequest, @@ -3375,19 +3496,14 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. * The first element of the array is Array of [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork}. - * The client library support auto-pagination by default: it will call the API as many + * The client library will perform auto-pagination by default: it will call the API as many * times as needed and will merge results from all the pages into this array. - * - * When autoPaginate: false is specified through options, the array has three elements. - * The first element is Array of [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} that corresponds to - * the one page received from the API server. - * If the second element is not null it contains the request object of type [ListUsableSubnetworksRequest]{@link google.container.v1.ListUsableSubnetworksRequest} - * that can be used to obtain the next page of the results. - * If it is null, the next page does not exist. - * The third element contains the raw response received from the API server. Its type is - * [ListUsableSubnetworksResponse]{@link google.container.v1.ListUsableSubnetworksResponse}. - * - * The promise has a method named "cancel" which cancels the ongoing API call. + * Note that it can affect your quota. + * We recommend using `listUsableSubnetworksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listUsableSubnetworks( request: protos.google.container.v1.IListUsableSubnetworksRequest, @@ -3435,18 +3551,7 @@ export class ClusterManagerClient { } /** - * Equivalent to {@link listUsableSubnetworks}, but returns a NodeJS Stream object. - * - * This fetches the paged responses for {@link listUsableSubnetworks} continuously - * and invokes the callback registered for 'data' event for each element in the - * responses. - * - * The returned object has 'end' method when no more elements are required. - * - * autoPaginate option will be ignored. - * - * @see {@link https://nodejs.org/api/stream.html} - * + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -3469,6 +3574,13 @@ export class ClusterManagerClient { * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listUsableSubnetworksAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. */ listUsableSubnetworksStream( request?: protos.google.container.v1.IListUsableSubnetworksRequest, @@ -3493,10 +3605,9 @@ export class ClusterManagerClient { } /** - * Equivalent to {@link listUsableSubnetworks}, but returns an iterable object. - * - * for-await-of syntax is used with the iterable to recursively get response element on-demand. + * Equivalent to `listUsableSubnetworks`, but returns an iterable object. * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent @@ -3518,7 +3629,18 @@ export class ClusterManagerClient { * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} - * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [UsableSubnetwork]{@link google.container.v1.UsableSubnetwork}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * const iterable = client.listUsableSubnetworksAsync(request); + * for await (const response of iterable) { + * // process response + * } */ listUsableSubnetworksAsync( request?: protos.google.container.v1.IListUsableSubnetworksRequest, @@ -3544,9 +3666,10 @@ export class ClusterManagerClient { } /** - * Terminate the GRPC channel and close the client. + * Terminate the gRPC channel and close the client. * * The client will no longer be usable and all future behavior is undefined. + * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise { this.initialize(); diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 79a6627ac9d..b5a544628a3 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -3,7 +3,7 @@ { "git": { "name": ".", - "remote": "https://github.com/googleapis/nodejs-cloud-container.git", + "remote": "git@github.com:googleapis/nodejs-cloud-container.git", "sha": "8a18ada1eba87105614f495f005dca0d503e58a9" } }, @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "ba9918cd22874245b55734f57470c719b577e591" + "sha": "1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b" } } ], @@ -87,12 +87,14 @@ "README.md", "api-extractor.json", "linkinator.config.json", + "package-lock.json.908320379", "protos/google/container/v1/cluster_service.proto", "protos/protos.d.ts", "protos/protos.js", "protos/protos.json", "renovate.json", "samples/README.md", + "samples/package-lock.json.1331714418", "src/index.ts", "src/v1/cluster_manager_client.ts", "src/v1/cluster_manager_client_config.json", diff --git a/packages/google-container/system-test/fixtures/sample/src/index.ts b/packages/google-container/system-test/fixtures/sample/src/index.ts index 0a1fe874cec..2813e3d93c1 100644 --- a/packages/google-container/system-test/fixtures/sample/src/index.ts +++ b/packages/google-container/system-test/fixtures/sample/src/index.ts @@ -18,8 +18,15 @@ import {ClusterManagerClient} from '@google-cloud/container'; +// check that the client class type name can be used +function doStuffWithClusterManagerClient(client: ClusterManagerClient) { + client.close(); +} + function main() { - new ClusterManagerClient(); + // check that the client instance can be created + const clusterManagerClient = new ClusterManagerClient(); + doStuffWithClusterManagerClient(clusterManagerClient); } main(); diff --git a/packages/google-container/system-test/install.ts b/packages/google-container/system-test/install.ts index 4c1ba3eb79a..39d90f771de 100644 --- a/packages/google-container/system-test/install.ts +++ b/packages/google-container/system-test/install.ts @@ -20,32 +20,32 @@ import {packNTest} from 'pack-n-play'; import {readFileSync} from 'fs'; import {describe, it} from 'mocha'; -describe('typescript consumer tests', () => { - it('should have correct type signature for typescript users', async function () { +describe('📦 pack-n-play test', () => { + it('TypeScript code', async function () { this.timeout(300000); const options = { - packageDir: process.cwd(), // path to your module. + packageDir: process.cwd(), sample: { - description: 'typescript based user can use the type definitions', + description: 'TypeScript user can use the type definitions', ts: readFileSync( './system-test/fixtures/sample/src/index.ts' ).toString(), }, }; - await packNTest(options); // will throw upon error. + await packNTest(options); }); - it('should have correct type signature for javascript users', async function () { + it('JavaScript code', async function () { this.timeout(300000); const options = { - packageDir: process.cwd(), // path to your module. + packageDir: process.cwd(), sample: { - description: 'typescript based user can use the type definitions', + description: 'JavaScript user can use the library', ts: readFileSync( './system-test/fixtures/sample/src/index.js' ).toString(), }, }; - await packNTest(options); // will throw upon error. + await packNTest(options); }); }); From cb1aa29bbdd86370bf5c4eac88ea2ef08cfdcd4b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2020 12:52:26 -0800 Subject: [PATCH 259/371] chore: release 2.1.2 (#399) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 9148979b892..d8129050c8e 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [2.1.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.1.1...v2.1.2) (2020-11-07) + + +### Bug Fixes + +* do not modify options object, use defaultScopes ([#398](https://www.github.com/googleapis/nodejs-cloud-container/issues/398)) ([e696b91](https://www.github.com/googleapis/nodejs-cloud-container/commit/e696b91a5cd57f213a0f2412f6f513ff44183d41)) + ### [2.1.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.1.0...v2.1.1) (2020-07-09) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 0f269065992..ad93cb38a2e 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.1.1", + "version": "2.1.2", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index d9ccb281d51..faad25e73bb 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.1.1" + "@google-cloud/container": "^2.1.2" }, "devDependencies": { "chai": "^4.2.0", From 106238cee723ff39162ab6276ecf998a1f6b4d51 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Mon, 16 Nov 2020 13:53:07 -0800 Subject: [PATCH 260/371] feat: update GKE v1 API (#401) This update follows the proto changes from [this commit](https://github.com/googleapis/googleapis/commit/75d1324fff65abad6435e6d501e050439b5a616b). --- packages/google-container/package.json | 2 +- .../google/container/v1/cluster_service.proto | 983 +- packages/google-container/protos/protos.d.ts | 4519 ++- packages/google-container/protos/protos.js | 26604 ++++++++++------ packages/google-container/protos/protos.json | 1063 +- .../src/v1/cluster_manager_client.ts | 316 +- .../src/v1/cluster_manager_client_config.json | 4 + packages/google-container/synth.metadata | 10 +- .../test/gapic_cluster_manager_v1.ts | 112 + 9 files changed, 21519 insertions(+), 12094 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index ad93cb38a2e..50c4df01bce 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/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/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 6363fc9496d..040173ec22f 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/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/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 89b46067ec3..99d34b4ba85 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/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/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 5b103603724..d908cb59ddd 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/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.|null} [channels] ServerConfig channels */ /** - * Constructs a new ListClustersRequest. + * Constructs a new ServerConfig. * @memberof google.container.v1 - * @classdesc Represents a ListClustersRequest. - * @implements IListClustersRequest + * @classdesc Represents a ServerConfig. + * @implements IServerConfig * @constructor - * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set + * @param {google.container.v1.IServerConfig=} [properties] Properties to set */ - function ListClustersRequest(properties) { + function ServerConfig(properties) { + this.validNodeVersions = []; + this.validImageTypes = []; + this.validMasterVersions = []; + this.channels = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12121,101 +16187,152 @@ } /** - * ListClustersRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.ListClustersRequest + * ServerConfig defaultClusterVersion. + * @member {string} defaultClusterVersion + * @memberof google.container.v1.ServerConfig * @instance */ - ListClustersRequest.prototype.projectId = ""; + ServerConfig.prototype.defaultClusterVersion = ""; /** - * ListClustersRequest zone. - * @member {string} zone - * @memberof google.container.v1.ListClustersRequest + * ServerConfig validNodeVersions. + * @member {Array.} validNodeVersions + * @memberof google.container.v1.ServerConfig * @instance */ - ListClustersRequest.prototype.zone = ""; + ServerConfig.prototype.validNodeVersions = $util.emptyArray; /** - * ListClustersRequest parent. - * @member {string} parent - * @memberof google.container.v1.ListClustersRequest + * ServerConfig defaultImageType. + * @member {string} defaultImageType + * @memberof google.container.v1.ServerConfig * @instance */ - ListClustersRequest.prototype.parent = ""; + ServerConfig.prototype.defaultImageType = ""; /** - * Creates a new ListClustersRequest instance using the specified properties. + * ServerConfig validImageTypes. + * @member {Array.} validImageTypes + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.validImageTypes = $util.emptyArray; + + /** + * ServerConfig validMasterVersions. + * @member {Array.} validMasterVersions + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.validMasterVersions = $util.emptyArray; + + /** + * ServerConfig channels. + * @member {Array.} channels + * @memberof google.container.v1.ServerConfig + * @instance + */ + ServerConfig.prototype.channels = $util.emptyArray; + + /** + * Creates a new ServerConfig instance using the specified properties. * @function create - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.IListClustersRequest=} [properties] Properties to set - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest instance + * @param {google.container.v1.IServerConfig=} [properties] Properties to set + * @returns {google.container.v1.ServerConfig} ServerConfig instance */ - ListClustersRequest.create = function create(properties) { - return new ListClustersRequest(properties); + ServerConfig.create = function create(properties) { + return new ServerConfig(properties); }; /** - * Encodes the specified ListClustersRequest message. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * Encodes the specified ServerConfig message. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode + * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersRequest.encode = function encode(message, writer) { + ServerConfig.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.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + if (message.defaultClusterVersion != null && Object.hasOwnProperty.call(message, "defaultClusterVersion")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultClusterVersion); + if (message.validNodeVersions != null && message.validNodeVersions.length) + for (var i = 0; i < message.validNodeVersions.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.validNodeVersions[i]); + if (message.defaultImageType != null && Object.hasOwnProperty.call(message, "defaultImageType")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultImageType); + if (message.validImageTypes != null && message.validImageTypes.length) + for (var i = 0; i < message.validImageTypes.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.validImageTypes[i]); + if (message.validMasterVersions != null && message.validMasterVersions.length) + for (var i = 0; i < message.validMasterVersions.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.validMasterVersions[i]); + if (message.channels != null && message.channels.length) + for (var i = 0; i < message.channels.length; ++i) + $root.google.container.v1.ServerConfig.ReleaseChannelConfig.encode(message.channels[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListClustersRequest message, length delimited. Does not implicitly {@link google.container.v1.ListClustersRequest.verify|verify} messages. + * Encodes the specified ServerConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.IListClustersRequest} message ListClustersRequest message or plain object to encode + * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersRequest.encodeDelimited = function encodeDelimited(message, writer) { + ServerConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListClustersRequest message from the specified reader or buffer. + * Decodes a ServerConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + * @returns {google.container.v1.ServerConfig} ServerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersRequest.decode = function decode(reader, length) { + ServerConfig.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.ListClustersRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ServerConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.defaultClusterVersion = reader.string(); break; - case 2: - message.zone = reader.string(); + case 3: + if (!(message.validNodeVersions && message.validNodeVersions.length)) + message.validNodeVersions = []; + message.validNodeVersions.push(reader.string()); break; case 4: - message.parent = reader.string(); + message.defaultImageType = reader.string(); + break; + case 5: + if (!(message.validImageTypes && message.validImageTypes.length)) + message.validImageTypes = []; + message.validImageTypes.push(reader.string()); + break; + case 6: + if (!(message.validMasterVersions && message.validMasterVersions.length)) + message.validMasterVersions = []; + message.validMasterVersions.push(reader.string()); + break; + case 9: + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push($root.google.container.v1.ServerConfig.ReleaseChannelConfig.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -12226,127 +16343,479 @@ }; /** - * Decodes a ListClustersRequest message from the specified reader or buffer, length delimited. + * Decodes a ServerConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + * @returns {google.container.v1.ServerConfig} ServerConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersRequest.decodeDelimited = function decodeDelimited(reader) { + ServerConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListClustersRequest message. + * Verifies a ServerConfig message. * @function verify - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListClustersRequest.verify = function verify(message) { + ServerConfig.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.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + if (!$util.isString(message.defaultClusterVersion)) + return "defaultClusterVersion: string expected"; + if (message.validNodeVersions != null && message.hasOwnProperty("validNodeVersions")) { + if (!Array.isArray(message.validNodeVersions)) + return "validNodeVersions: array expected"; + for (var i = 0; i < message.validNodeVersions.length; ++i) + if (!$util.isString(message.validNodeVersions[i])) + return "validNodeVersions: string[] expected"; + } + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + if (!$util.isString(message.defaultImageType)) + return "defaultImageType: string expected"; + if (message.validImageTypes != null && message.hasOwnProperty("validImageTypes")) { + if (!Array.isArray(message.validImageTypes)) + return "validImageTypes: array expected"; + for (var i = 0; i < message.validImageTypes.length; ++i) + if (!$util.isString(message.validImageTypes[i])) + return "validImageTypes: string[] expected"; + } + if (message.validMasterVersions != null && message.hasOwnProperty("validMasterVersions")) { + if (!Array.isArray(message.validMasterVersions)) + return "validMasterVersions: array expected"; + for (var i = 0; i < message.validMasterVersions.length; ++i) + if (!$util.isString(message.validMasterVersions[i])) + return "validMasterVersions: string[] expected"; + } + if (message.channels != null && message.hasOwnProperty("channels")) { + if (!Array.isArray(message.channels)) + return "channels: array expected"; + for (var i = 0; i < message.channels.length; ++i) { + var error = $root.google.container.v1.ServerConfig.ReleaseChannelConfig.verify(message.channels[i]); + if (error) + return "channels." + error; + } + } return null; }; /** - * Creates a ListClustersRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ServerConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListClustersRequest} ListClustersRequest + * @returns {google.container.v1.ServerConfig} ServerConfig */ - ListClustersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListClustersRequest) + ServerConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ServerConfig) return object; - 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.parent != null) - message.parent = String(object.parent); + var message = new $root.google.container.v1.ServerConfig(); + if (object.defaultClusterVersion != null) + message.defaultClusterVersion = String(object.defaultClusterVersion); + if (object.validNodeVersions) { + if (!Array.isArray(object.validNodeVersions)) + throw TypeError(".google.container.v1.ServerConfig.validNodeVersions: array expected"); + message.validNodeVersions = []; + for (var i = 0; i < object.validNodeVersions.length; ++i) + message.validNodeVersions[i] = String(object.validNodeVersions[i]); + } + if (object.defaultImageType != null) + message.defaultImageType = String(object.defaultImageType); + if (object.validImageTypes) { + if (!Array.isArray(object.validImageTypes)) + throw TypeError(".google.container.v1.ServerConfig.validImageTypes: array expected"); + message.validImageTypes = []; + for (var i = 0; i < object.validImageTypes.length; ++i) + message.validImageTypes[i] = String(object.validImageTypes[i]); + } + if (object.validMasterVersions) { + if (!Array.isArray(object.validMasterVersions)) + throw TypeError(".google.container.v1.ServerConfig.validMasterVersions: array expected"); + message.validMasterVersions = []; + for (var i = 0; i < object.validMasterVersions.length; ++i) + message.validMasterVersions[i] = String(object.validMasterVersions[i]); + } + if (object.channels) { + if (!Array.isArray(object.channels)) + throw TypeError(".google.container.v1.ServerConfig.channels: array expected"); + message.channels = []; + for (var i = 0; i < object.channels.length; ++i) { + if (typeof object.channels[i] !== "object") + throw TypeError(".google.container.v1.ServerConfig.channels: object expected"); + message.channels[i] = $root.google.container.v1.ServerConfig.ReleaseChannelConfig.fromObject(object.channels[i]); + } + } return message; }; /** - * Creates a plain object from a ListClustersRequest message. Also converts values to other types if specified. + * Creates a plain object from a ServerConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @static - * @param {google.container.v1.ListClustersRequest} message ListClustersRequest + * @param {google.container.v1.ServerConfig} message ServerConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListClustersRequest.toObject = function toObject(message, options) { + ServerConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.validNodeVersions = []; + object.validImageTypes = []; + object.validMasterVersions = []; + object.channels = []; + } if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.parent = ""; + object.defaultClusterVersion = ""; + object.defaultImageType = ""; + } + if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) + object.defaultClusterVersion = message.defaultClusterVersion; + if (message.validNodeVersions && message.validNodeVersions.length) { + object.validNodeVersions = []; + for (var j = 0; j < message.validNodeVersions.length; ++j) + object.validNodeVersions[j] = message.validNodeVersions[j]; + } + if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) + object.defaultImageType = message.defaultImageType; + if (message.validImageTypes && message.validImageTypes.length) { + object.validImageTypes = []; + for (var j = 0; j < message.validImageTypes.length; ++j) + object.validImageTypes[j] = message.validImageTypes[j]; + } + if (message.validMasterVersions && message.validMasterVersions.length) { + object.validMasterVersions = []; + for (var j = 0; j < message.validMasterVersions.length; ++j) + object.validMasterVersions[j] = message.validMasterVersions[j]; + } + if (message.channels && message.channels.length) { + object.channels = []; + for (var j = 0; j < message.channels.length; ++j) + object.channels[j] = $root.google.container.v1.ServerConfig.ReleaseChannelConfig.toObject(message.channels[j], options); } - if (message.projectId != null && message.hasOwnProperty("projectId")) - object.projectId = message.projectId; - if (message.zone != null && message.hasOwnProperty("zone")) - object.zone = message.zone; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; return object; }; /** - * Converts this ListClustersRequest to JSON. + * Converts this ServerConfig to JSON. * @function toJSON - * @memberof google.container.v1.ListClustersRequest + * @memberof google.container.v1.ServerConfig * @instance * @returns {Object.} JSON object */ - ListClustersRequest.prototype.toJSON = function toJSON() { + ServerConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListClustersRequest; + ServerConfig.ReleaseChannelConfig = (function() { + + /** + * Properties of a ReleaseChannelConfig. + * @memberof google.container.v1.ServerConfig + * @interface IReleaseChannelConfig + * @property {google.container.v1.ReleaseChannel.Channel|null} [channel] ReleaseChannelConfig channel + * @property {string|null} [defaultVersion] ReleaseChannelConfig defaultVersion + * @property {Array.|null} [validVersions] ReleaseChannelConfig validVersions + */ + + /** + * Constructs a new ReleaseChannelConfig. + * @memberof google.container.v1.ServerConfig + * @classdesc Represents a ReleaseChannelConfig. + * @implements IReleaseChannelConfig + * @constructor + * @param {google.container.v1.ServerConfig.IReleaseChannelConfig=} [properties] Properties to set + */ + function ReleaseChannelConfig(properties) { + this.validVersions = []; + 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]]; + } + + /** + * ReleaseChannelConfig channel. + * @member {google.container.v1.ReleaseChannel.Channel} channel + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @instance + */ + ReleaseChannelConfig.prototype.channel = 0; + + /** + * ReleaseChannelConfig defaultVersion. + * @member {string} defaultVersion + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @instance + */ + ReleaseChannelConfig.prototype.defaultVersion = ""; + + /** + * ReleaseChannelConfig validVersions. + * @member {Array.} validVersions + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @instance + */ + ReleaseChannelConfig.prototype.validVersions = $util.emptyArray; + + /** + * Creates a new ReleaseChannelConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {google.container.v1.ServerConfig.IReleaseChannelConfig=} [properties] Properties to set + * @returns {google.container.v1.ServerConfig.ReleaseChannelConfig} ReleaseChannelConfig instance + */ + ReleaseChannelConfig.create = function create(properties) { + return new ReleaseChannelConfig(properties); + }; + + /** + * Encodes the specified ReleaseChannelConfig message. Does not implicitly {@link google.container.v1.ServerConfig.ReleaseChannelConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {google.container.v1.ServerConfig.IReleaseChannelConfig} message ReleaseChannelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReleaseChannelConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.channel); + if (message.defaultVersion != null && Object.hasOwnProperty.call(message, "defaultVersion")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.defaultVersion); + if (message.validVersions != null && message.validVersions.length) + for (var i = 0; i < message.validVersions.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.validVersions[i]); + return writer; + }; + + /** + * Encodes the specified ReleaseChannelConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.ReleaseChannelConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {google.container.v1.ServerConfig.IReleaseChannelConfig} message ReleaseChannelConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReleaseChannelConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReleaseChannelConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ServerConfig.ReleaseChannelConfig} ReleaseChannelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReleaseChannelConfig.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.ServerConfig.ReleaseChannelConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.channel = reader.int32(); + break; + case 2: + message.defaultVersion = reader.string(); + break; + case 4: + if (!(message.validVersions && message.validVersions.length)) + message.validVersions = []; + message.validVersions.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReleaseChannelConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ServerConfig.ReleaseChannelConfig} ReleaseChannelConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReleaseChannelConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReleaseChannelConfig message. + * @function verify + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReleaseChannelConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.channel != null && message.hasOwnProperty("channel")) + switch (message.channel) { + default: + return "channel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.defaultVersion != null && message.hasOwnProperty("defaultVersion")) + if (!$util.isString(message.defaultVersion)) + return "defaultVersion: string expected"; + if (message.validVersions != null && message.hasOwnProperty("validVersions")) { + if (!Array.isArray(message.validVersions)) + return "validVersions: array expected"; + for (var i = 0; i < message.validVersions.length; ++i) + if (!$util.isString(message.validVersions[i])) + return "validVersions: string[] expected"; + } + return null; + }; + + /** + * Creates a ReleaseChannelConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ServerConfig.ReleaseChannelConfig} ReleaseChannelConfig + */ + ReleaseChannelConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ServerConfig.ReleaseChannelConfig) + return object; + var message = new $root.google.container.v1.ServerConfig.ReleaseChannelConfig(); + switch (object.channel) { + case "UNSPECIFIED": + case 0: + message.channel = 0; + break; + case "RAPID": + case 1: + message.channel = 1; + break; + case "REGULAR": + case 2: + message.channel = 2; + break; + case "STABLE": + case 3: + message.channel = 3; + break; + } + if (object.defaultVersion != null) + message.defaultVersion = String(object.defaultVersion); + if (object.validVersions) { + if (!Array.isArray(object.validVersions)) + throw TypeError(".google.container.v1.ServerConfig.ReleaseChannelConfig.validVersions: array expected"); + message.validVersions = []; + for (var i = 0; i < object.validVersions.length; ++i) + message.validVersions[i] = String(object.validVersions[i]); + } + return message; + }; + + /** + * Creates a plain object from a ReleaseChannelConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {google.container.v1.ServerConfig.ReleaseChannelConfig} message ReleaseChannelConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReleaseChannelConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.validVersions = []; + if (options.defaults) { + object.channel = options.enums === String ? "UNSPECIFIED" : 0; + object.defaultVersion = ""; + } + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = options.enums === String ? $root.google.container.v1.ReleaseChannel.Channel[message.channel] : message.channel; + if (message.defaultVersion != null && message.hasOwnProperty("defaultVersion")) + object.defaultVersion = message.defaultVersion; + if (message.validVersions && message.validVersions.length) { + object.validVersions = []; + for (var j = 0; j < message.validVersions.length; ++j) + object.validVersions[j] = message.validVersions[j]; + } + return object; + }; + + /** + * Converts this ReleaseChannelConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @instance + * @returns {Object.} JSON object + */ + ReleaseChannelConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReleaseChannelConfig; + })(); + + return ServerConfig; })(); - v1.ListClustersResponse = (function() { + v1.CreateNodePoolRequest = (function() { /** - * Properties of a ListClustersResponse. + * Properties of a CreateNodePoolRequest. * @memberof google.container.v1 - * @interface IListClustersResponse - * @property {Array.|null} [clusters] ListClustersResponse clusters - * @property {Array.|null} [missingZones] ListClustersResponse missingZones + * @interface ICreateNodePoolRequest + * @property {string|null} [projectId] CreateNodePoolRequest projectId + * @property {string|null} [zone] CreateNodePoolRequest zone + * @property {string|null} [clusterId] CreateNodePoolRequest clusterId + * @property {google.container.v1.INodePool|null} [nodePool] CreateNodePoolRequest nodePool + * @property {string|null} [parent] CreateNodePoolRequest parent */ /** - * Constructs a new ListClustersResponse. + * Constructs a new CreateNodePoolRequest. * @memberof google.container.v1 - * @classdesc Represents a ListClustersResponse. - * @implements IListClustersResponse + * @classdesc Represents a CreateNodePoolRequest. + * @implements ICreateNodePoolRequest * @constructor - * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set + * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set */ - function ListClustersResponse(properties) { - this.clusters = []; - this.missingZones = []; + function CreateNodePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12354,94 +16823,127 @@ } /** - * ListClustersResponse clusters. - * @member {Array.} clusters - * @memberof google.container.v1.ListClustersResponse + * CreateNodePoolRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.CreateNodePoolRequest * @instance */ - ListClustersResponse.prototype.clusters = $util.emptyArray; + CreateNodePoolRequest.prototype.projectId = ""; /** - * ListClustersResponse missingZones. - * @member {Array.} missingZones - * @memberof google.container.v1.ListClustersResponse + * CreateNodePoolRequest zone. + * @member {string} zone + * @memberof google.container.v1.CreateNodePoolRequest * @instance */ - ListClustersResponse.prototype.missingZones = $util.emptyArray; + CreateNodePoolRequest.prototype.zone = ""; /** - * Creates a new ListClustersResponse instance using the specified properties. + * CreateNodePoolRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.clusterId = ""; + + /** + * CreateNodePoolRequest nodePool. + * @member {google.container.v1.INodePool|null|undefined} nodePool + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.nodePool = null; + + /** + * CreateNodePoolRequest parent. + * @member {string} parent + * @memberof google.container.v1.CreateNodePoolRequest + * @instance + */ + CreateNodePoolRequest.prototype.parent = ""; + + /** + * Creates a new CreateNodePoolRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.IListClustersResponse=} [properties] Properties to set - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse instance + * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest instance */ - ListClustersResponse.create = function create(properties) { - return new ListClustersResponse(properties); + CreateNodePoolRequest.create = function create(properties) { + return new CreateNodePoolRequest(properties); }; /** - * Encodes the specified ListClustersResponse message. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. + * Encodes the specified CreateNodePoolRequest message. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode + * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersResponse.encode = function encode(message, writer) { + CreateNodePoolRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - 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]); + 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.nodePool != null && Object.hasOwnProperty.call(message, "nodePool")) + $root.google.container.v1.NodePool.encode(message.nodePool, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.parent); return writer; }; /** - * Encodes the specified ListClustersResponse message, length delimited. Does not implicitly {@link google.container.v1.ListClustersResponse.verify|verify} messages. + * Encodes the specified CreateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.IListClustersResponse} message ListClustersResponse message or plain object to encode + * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListClustersResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListClustersResponse message from the specified reader or buffer. + * Decodes a CreateNodePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersResponse.decode = function decode(reader, length) { + CreateNodePoolRequest.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.ListClustersResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CreateNodePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.clusters && message.clusters.length)) - message.clusters = []; - message.clusters.push($root.google.container.v1.Cluster.decode(reader, reader.uint32())); + message.projectId = reader.string(); break; case 2: - if (!(message.missingZones && message.missingZones.length)) - message.missingZones = []; - message.missingZones.push(reader.string()); + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.nodePool = $root.google.container.v1.NodePool.decode(reader, reader.uint32()); + break; + case 6: + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -12452,148 +16954,149 @@ }; /** - * Decodes a ListClustersResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateNodePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListClustersResponse.decodeDelimited = function decodeDelimited(reader) { + CreateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListClustersResponse message. + * Verifies a CreateNodePoolRequest message. * @function verify - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListClustersResponse.verify = function verify(message) { + CreateNodePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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"; + 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.nodePool != null && message.hasOwnProperty("nodePool")) { + var error = $root.google.container.v1.NodePool.verify(message.nodePool); + if (error) + return "nodePool." + error; } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return null; }; /** - * Creates a ListClustersResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateNodePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListClustersResponse} ListClustersResponse + * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest */ - ListClustersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListClustersResponse) + CreateNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CreateNodePoolRequest) return object; - 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]); + var message = new $root.google.container.v1.CreateNodePoolRequest(); + 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.nodePool != null) { + if (typeof object.nodePool !== "object") + throw TypeError(".google.container.v1.CreateNodePoolRequest.nodePool: object expected"); + message.nodePool = $root.google.container.v1.NodePool.fromObject(object.nodePool); } + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a ListClustersResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateNodePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @static - * @param {google.container.v1.ListClustersResponse} message ListClustersResponse + * @param {google.container.v1.CreateNodePoolRequest} message CreateNodePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListClustersResponse.toObject = function toObject(message, options) { + CreateNodePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - 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 (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePool = 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.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePool != null && message.hasOwnProperty("nodePool")) + object.nodePool = $root.google.container.v1.NodePool.toObject(message.nodePool, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this ListClustersResponse to JSON. + * Converts this CreateNodePoolRequest to JSON. * @function toJSON - * @memberof google.container.v1.ListClustersResponse + * @memberof google.container.v1.CreateNodePoolRequest * @instance * @returns {Object.} JSON object */ - ListClustersResponse.prototype.toJSON = function toJSON() { + CreateNodePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListClustersResponse; + return CreateNodePoolRequest; })(); - v1.GetOperationRequest = (function() { + v1.DeleteNodePoolRequest = (function() { /** - * Properties of a GetOperationRequest. + * Properties of a DeleteNodePoolRequest. * @memberof google.container.v1 - * @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 + * @interface IDeleteNodePoolRequest + * @property {string|null} [projectId] DeleteNodePoolRequest projectId + * @property {string|null} [zone] DeleteNodePoolRequest zone + * @property {string|null} [clusterId] DeleteNodePoolRequest clusterId + * @property {string|null} [nodePoolId] DeleteNodePoolRequest nodePoolId + * @property {string|null} [name] DeleteNodePoolRequest name */ /** - * Constructs a new GetOperationRequest. + * Constructs a new DeleteNodePoolRequest. * @memberof google.container.v1 - * @classdesc Represents a GetOperationRequest. - * @implements IGetOperationRequest + * @classdesc Represents a DeleteNodePoolRequest. + * @implements IDeleteNodePoolRequest * @constructor - * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set + * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set */ - function GetOperationRequest(properties) { + function DeleteNodePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12601,100 +17104,110 @@ } /** - * GetOperationRequest projectId. + * DeleteNodePoolRequest projectId. * @member {string} projectId - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - GetOperationRequest.prototype.projectId = ""; + DeleteNodePoolRequest.prototype.projectId = ""; /** - * GetOperationRequest zone. + * DeleteNodePoolRequest zone. * @member {string} zone - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - GetOperationRequest.prototype.zone = ""; + DeleteNodePoolRequest.prototype.zone = ""; /** - * GetOperationRequest operationId. - * @member {string} operationId - * @memberof google.container.v1.GetOperationRequest + * DeleteNodePoolRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - GetOperationRequest.prototype.operationId = ""; + DeleteNodePoolRequest.prototype.clusterId = ""; /** - * GetOperationRequest name. + * DeleteNodePoolRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.DeleteNodePoolRequest + * @instance + */ + DeleteNodePoolRequest.prototype.nodePoolId = ""; + + /** + * DeleteNodePoolRequest name. * @member {string} name - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance */ - GetOperationRequest.prototype.name = ""; + DeleteNodePoolRequest.prototype.name = ""; /** - * Creates a new GetOperationRequest instance using the specified properties. + * Creates a new DeleteNodePoolRequest instance using the specified properties. * @function create - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.IGetOperationRequest=} [properties] Properties to set - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest instance + * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest instance */ - GetOperationRequest.create = function create(properties) { - return new GetOperationRequest(properties); + DeleteNodePoolRequest.create = function create(properties) { + return new DeleteNodePoolRequest(properties); }; /** - * Encodes the specified GetOperationRequest message. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. + * Encodes the specified DeleteNodePoolRequest message. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.IGetOperationRequest} message GetOperationRequest message or plain object to encode + * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOperationRequest.encode = function encode(message, writer) { + DeleteNodePoolRequest.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.operationId != null && Object.hasOwnProperty.call(message, "operationId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); + 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.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 GetOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOperationRequest.verify|verify} messages. + * Encodes the specified DeleteNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.IGetOperationRequest} message GetOperationRequest message or plain object to encode + * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetOperationRequest message from the specified reader or buffer. + * Decodes a DeleteNodePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOperationRequest.decode = function decode(reader, length) { + DeleteNodePoolRequest.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.GetOperationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DeleteNodePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12705,9 +17218,12 @@ message.zone = reader.string(); break; case 3: - message.operationId = reader.string(); + message.clusterId = reader.string(); break; - case 5: + case 4: + message.nodePoolId = reader.string(); + break; + case 6: message.name = reader.string(); break; default: @@ -12719,30 +17235,30 @@ }; /** - * Decodes a GetOperationRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteNodePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOperationRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetOperationRequest message. + * Verifies a DeleteNodePoolRequest message. * @function verify - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetOperationRequest.verify = function verify(message) { + DeleteNodePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -12751,9 +17267,12 @@ if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; - if (message.operationId != null && message.hasOwnProperty("operationId")) - if (!$util.isString(message.operationId)) - return "operationId: 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.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -12761,92 +17280,98 @@ }; /** - * Creates a GetOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteNodePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetOperationRequest} GetOperationRequest + * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest */ - GetOperationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetOperationRequest) + DeleteNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DeleteNodePoolRequest) return object; - var message = new $root.google.container.v1.GetOperationRequest(); + var message = new $root.google.container.v1.DeleteNodePoolRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.operationId != null) - message.operationId = String(object.operationId); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetOperationRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteNodePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @static - * @param {google.container.v1.GetOperationRequest} message GetOperationRequest + * @param {google.container.v1.DeleteNodePoolRequest} message DeleteNodePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetOperationRequest.toObject = function toObject(message, options) { + DeleteNodePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; - object.operationId = ""; + object.clusterId = ""; + object.nodePoolId = ""; 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.operationId != null && message.hasOwnProperty("operationId")) - object.operationId = message.operationId; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this GetOperationRequest to JSON. + * Converts this DeleteNodePoolRequest to JSON. * @function toJSON - * @memberof google.container.v1.GetOperationRequest + * @memberof google.container.v1.DeleteNodePoolRequest * @instance * @returns {Object.} JSON object */ - GetOperationRequest.prototype.toJSON = function toJSON() { + DeleteNodePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetOperationRequest; + return DeleteNodePoolRequest; })(); - v1.ListOperationsRequest = (function() { + v1.ListNodePoolsRequest = (function() { /** - * Properties of a ListOperationsRequest. + * Properties of a ListNodePoolsRequest. * @memberof google.container.v1 - * @interface IListOperationsRequest - * @property {string|null} [projectId] ListOperationsRequest projectId - * @property {string|null} [zone] ListOperationsRequest zone - * @property {string|null} [parent] ListOperationsRequest parent + * @interface IListNodePoolsRequest + * @property {string|null} [projectId] ListNodePoolsRequest projectId + * @property {string|null} [zone] ListNodePoolsRequest zone + * @property {string|null} [clusterId] ListNodePoolsRequest clusterId + * @property {string|null} [parent] ListNodePoolsRequest parent */ /** - * Constructs a new ListOperationsRequest. + * Constructs a new ListNodePoolsRequest. * @memberof google.container.v1 - * @classdesc Represents a ListOperationsRequest. - * @implements IListOperationsRequest + * @classdesc Represents a ListNodePoolsRequest. + * @implements IListNodePoolsRequest * @constructor - * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set + * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set */ - function ListOperationsRequest(properties) { + function ListNodePoolsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -12854,90 +17379,100 @@ } /** - * ListOperationsRequest projectId. + * ListNodePoolsRequest projectId. * @member {string} projectId - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance */ - ListOperationsRequest.prototype.projectId = ""; + ListNodePoolsRequest.prototype.projectId = ""; /** - * ListOperationsRequest zone. + * ListNodePoolsRequest zone. * @member {string} zone - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance */ - ListOperationsRequest.prototype.zone = ""; + ListNodePoolsRequest.prototype.zone = ""; /** - * ListOperationsRequest parent. + * ListNodePoolsRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.ListNodePoolsRequest + * @instance + */ + ListNodePoolsRequest.prototype.clusterId = ""; + + /** + * ListNodePoolsRequest parent. * @member {string} parent - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance */ - ListOperationsRequest.prototype.parent = ""; + ListNodePoolsRequest.prototype.parent = ""; /** - * Creates a new ListOperationsRequest instance using the specified properties. + * Creates a new ListNodePoolsRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.IListOperationsRequest=} [properties] Properties to set - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest instance + * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest instance */ - ListOperationsRequest.create = function create(properties) { - return new ListOperationsRequest(properties); + ListNodePoolsRequest.create = function create(properties) { + return new ListNodePoolsRequest(properties); }; /** - * Encodes the specified ListOperationsRequest message. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. + * Encodes the specified ListNodePoolsRequest message. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.IListOperationsRequest} message ListOperationsRequest message or plain object to encode + * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsRequest.encode = function encode(message, writer) { + ListNodePoolsRequest.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.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parent); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); return writer; }; /** - * Encodes the specified ListOperationsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsRequest.verify|verify} messages. + * Encodes the specified ListNodePoolsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.IListOperationsRequest} message ListOperationsRequest message or plain object to encode + * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListNodePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListOperationsRequest message from the specified reader or buffer. + * Decodes a ListNodePoolsRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsRequest.decode = function decode(reader, length) { + ListNodePoolsRequest.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.ListOperationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListNodePoolsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -12947,7 +17482,10 @@ case 2: message.zone = reader.string(); break; - case 4: + case 3: + message.clusterId = reader.string(); + break; + case 5: message.parent = reader.string(); break; default: @@ -12959,30 +17497,30 @@ }; /** - * Decodes a ListOperationsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListNodePoolsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsRequest.decodeDelimited = function decodeDelimited(reader) { + ListNodePoolsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListOperationsRequest message. + * Verifies a ListNodePoolsRequest message. * @function verify - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListOperationsRequest.verify = function verify(message) { + ListNodePoolsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -12991,6 +17529,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.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; @@ -12998,88 +17539,94 @@ }; /** - * Creates a ListOperationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListNodePoolsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListOperationsRequest} ListOperationsRequest + * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest */ - ListOperationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListOperationsRequest) + ListNodePoolsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListNodePoolsRequest) return object; - var message = new $root.google.container.v1.ListOperationsRequest(); + var message = new $root.google.container.v1.ListNodePoolsRequest(); 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.parent != null) message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a ListOperationsRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListNodePoolsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @static - * @param {google.container.v1.ListOperationsRequest} message ListOperationsRequest + * @param {google.container.v1.ListNodePoolsRequest} message ListNodePoolsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListOperationsRequest.toObject = function toObject(message, options) { + ListNodePoolsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; + object.clusterId = ""; 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.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; return object; }; /** - * Converts this ListOperationsRequest to JSON. + * Converts this ListNodePoolsRequest to JSON. * @function toJSON - * @memberof google.container.v1.ListOperationsRequest + * @memberof google.container.v1.ListNodePoolsRequest * @instance * @returns {Object.} JSON object */ - ListOperationsRequest.prototype.toJSON = function toJSON() { + ListNodePoolsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListOperationsRequest; + return ListNodePoolsRequest; })(); - v1.CancelOperationRequest = (function() { + v1.GetNodePoolRequest = (function() { /** - * Properties of a CancelOperationRequest. + * Properties of a GetNodePoolRequest. * @memberof google.container.v1 - * @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 + * @interface IGetNodePoolRequest + * @property {string|null} [projectId] GetNodePoolRequest projectId + * @property {string|null} [zone] GetNodePoolRequest zone + * @property {string|null} [clusterId] GetNodePoolRequest clusterId + * @property {string|null} [nodePoolId] GetNodePoolRequest nodePoolId + * @property {string|null} [name] GetNodePoolRequest name */ /** - * Constructs a new CancelOperationRequest. + * Constructs a new GetNodePoolRequest. * @memberof google.container.v1 - * @classdesc Represents a CancelOperationRequest. - * @implements ICancelOperationRequest + * @classdesc Represents a GetNodePoolRequest. + * @implements IGetNodePoolRequest * @constructor - * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set + * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set */ - function CancelOperationRequest(properties) { + function GetNodePoolRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13087,100 +17634,110 @@ } /** - * CancelOperationRequest projectId. + * GetNodePoolRequest projectId. * @member {string} projectId - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - CancelOperationRequest.prototype.projectId = ""; + GetNodePoolRequest.prototype.projectId = ""; /** - * CancelOperationRequest zone. + * GetNodePoolRequest zone. * @member {string} zone - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - CancelOperationRequest.prototype.zone = ""; + GetNodePoolRequest.prototype.zone = ""; /** - * CancelOperationRequest operationId. - * @member {string} operationId - * @memberof google.container.v1.CancelOperationRequest + * GetNodePoolRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - CancelOperationRequest.prototype.operationId = ""; + GetNodePoolRequest.prototype.clusterId = ""; /** - * CancelOperationRequest name. + * GetNodePoolRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.GetNodePoolRequest + * @instance + */ + GetNodePoolRequest.prototype.nodePoolId = ""; + + /** + * GetNodePoolRequest name. * @member {string} name - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance */ - CancelOperationRequest.prototype.name = ""; + GetNodePoolRequest.prototype.name = ""; /** - * Creates a new CancelOperationRequest instance using the specified properties. + * Creates a new GetNodePoolRequest instance using the specified properties. * @function create - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.ICancelOperationRequest=} [properties] Properties to set - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest instance + * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest instance */ - CancelOperationRequest.create = function create(properties) { - return new CancelOperationRequest(properties); + GetNodePoolRequest.create = function create(properties) { + return new GetNodePoolRequest(properties); }; /** - * Encodes the specified CancelOperationRequest message. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. + * Encodes the specified GetNodePoolRequest message. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode + * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelOperationRequest.encode = function encode(message, writer) { + GetNodePoolRequest.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.operationId != null && Object.hasOwnProperty.call(message, "operationId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.operationId); + 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.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified CancelOperationRequest message, length delimited. Does not implicitly {@link google.container.v1.CancelOperationRequest.verify|verify} messages. + * Encodes the specified GetNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.ICancelOperationRequest} message CancelOperationRequest message or plain object to encode + * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelOperationRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelOperationRequest message from the specified reader or buffer. + * Decodes a GetNodePoolRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelOperationRequest.decode = function decode(reader, length) { + GetNodePoolRequest.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.CancelOperationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetNodePoolRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -13191,9 +17748,12 @@ message.zone = reader.string(); break; case 3: - message.operationId = reader.string(); + message.clusterId = reader.string(); break; case 4: + message.nodePoolId = reader.string(); + break; + case 6: message.name = reader.string(); break; default: @@ -13205,30 +17765,30 @@ }; /** - * Decodes a CancelOperationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetNodePoolRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelOperationRequest.decodeDelimited = function decodeDelimited(reader) { + GetNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelOperationRequest message. + * Verifies a GetNodePoolRequest message. * @function verify - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelOperationRequest.verify = function verify(message) { + GetNodePoolRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -13237,9 +17797,12 @@ if (message.zone != null && message.hasOwnProperty("zone")) if (!$util.isString(message.zone)) return "zone: string expected"; - if (message.operationId != null && message.hasOwnProperty("operationId")) - if (!$util.isString(message.operationId)) - return "operationId: 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.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -13247,93 +17810,112 @@ }; /** - * Creates a CancelOperationRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetNodePoolRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CancelOperationRequest} CancelOperationRequest + * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest */ - CancelOperationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CancelOperationRequest) + GetNodePoolRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetNodePoolRequest) return object; - var message = new $root.google.container.v1.CancelOperationRequest(); + var message = new $root.google.container.v1.GetNodePoolRequest(); if (object.projectId != null) message.projectId = String(object.projectId); if (object.zone != null) message.zone = String(object.zone); - if (object.operationId != null) - message.operationId = String(object.operationId); + if (object.clusterId != null) + message.clusterId = String(object.clusterId); + if (object.nodePoolId != null) + message.nodePoolId = String(object.nodePoolId); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelOperationRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetNodePoolRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @static - * @param {google.container.v1.CancelOperationRequest} message CancelOperationRequest + * @param {google.container.v1.GetNodePoolRequest} message GetNodePoolRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelOperationRequest.toObject = function toObject(message, options) { + GetNodePoolRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; - object.operationId = ""; + object.clusterId = ""; + object.nodePoolId = ""; 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.operationId != null && message.hasOwnProperty("operationId")) - object.operationId = message.operationId; + if (message.clusterId != null && message.hasOwnProperty("clusterId")) + object.clusterId = message.clusterId; + if (message.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + object.nodePoolId = message.nodePoolId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this CancelOperationRequest to JSON. + * Converts this GetNodePoolRequest to JSON. * @function toJSON - * @memberof google.container.v1.CancelOperationRequest + * @memberof google.container.v1.GetNodePoolRequest * @instance * @returns {Object.} JSON object */ - CancelOperationRequest.prototype.toJSON = function toJSON() { + GetNodePoolRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelOperationRequest; + return GetNodePoolRequest; })(); - v1.ListOperationsResponse = (function() { + v1.NodePool = (function() { /** - * Properties of a ListOperationsResponse. + * Properties of a NodePool. * @memberof google.container.v1 - * @interface IListOperationsResponse - * @property {Array.|null} [operations] ListOperationsResponse operations - * @property {Array.|null} [missingZones] ListOperationsResponse missingZones + * @interface INodePool + * @property {string|null} [name] NodePool name + * @property {google.container.v1.INodeConfig|null} [config] NodePool config + * @property {number|null} [initialNodeCount] NodePool initialNodeCount + * @property {Array.|null} [locations] NodePool locations + * @property {string|null} [selfLink] NodePool selfLink + * @property {string|null} [version] NodePool version + * @property {Array.|null} [instanceGroupUrls] NodePool instanceGroupUrls + * @property {google.container.v1.NodePool.Status|null} [status] NodePool status + * @property {string|null} [statusMessage] NodePool statusMessage + * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] NodePool autoscaling + * @property {google.container.v1.INodeManagement|null} [management] NodePool management + * @property {google.container.v1.IMaxPodsConstraint|null} [maxPodsConstraint] NodePool maxPodsConstraint + * @property {Array.|null} [conditions] NodePool conditions + * @property {number|null} [podIpv4CidrSize] NodePool podIpv4CidrSize + * @property {google.container.v1.NodePool.IUpgradeSettings|null} [upgradeSettings] NodePool upgradeSettings */ /** - * Constructs a new ListOperationsResponse. + * Constructs a new NodePool. * @memberof google.container.v1 - * @classdesc Represents a ListOperationsResponse. - * @implements IListOperationsResponse + * @classdesc Represents a NodePool. + * @implements INodePool * @constructor - * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set + * @param {google.container.v1.INodePool=} [properties] Properties to set */ - function ListOperationsResponse(properties) { - this.operations = []; - this.missingZones = []; + function NodePool(properties) { + this.locations = []; + this.instanceGroupUrls = []; + this.conditions = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13341,94 +17923,266 @@ } /** - * ListOperationsResponse operations. - * @member {Array.} operations - * @memberof google.container.v1.ListOperationsResponse + * NodePool name. + * @member {string} name + * @memberof google.container.v1.NodePool * @instance */ - ListOperationsResponse.prototype.operations = $util.emptyArray; + NodePool.prototype.name = ""; /** - * ListOperationsResponse missingZones. - * @member {Array.} missingZones - * @memberof google.container.v1.ListOperationsResponse + * NodePool config. + * @member {google.container.v1.INodeConfig|null|undefined} config + * @memberof google.container.v1.NodePool * @instance */ - ListOperationsResponse.prototype.missingZones = $util.emptyArray; + NodePool.prototype.config = null; /** - * Creates a new ListOperationsResponse instance using the specified properties. + * NodePool initialNodeCount. + * @member {number} initialNodeCount + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.initialNodeCount = 0; + + /** + * NodePool locations. + * @member {Array.} locations + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.locations = $util.emptyArray; + + /** + * NodePool selfLink. + * @member {string} selfLink + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.selfLink = ""; + + /** + * NodePool version. + * @member {string} version + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.version = ""; + + /** + * NodePool instanceGroupUrls. + * @member {Array.} instanceGroupUrls + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.instanceGroupUrls = $util.emptyArray; + + /** + * NodePool status. + * @member {google.container.v1.NodePool.Status} status + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.status = 0; + + /** + * NodePool statusMessage. + * @member {string} statusMessage + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.statusMessage = ""; + + /** + * NodePool autoscaling. + * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.autoscaling = null; + + /** + * NodePool management. + * @member {google.container.v1.INodeManagement|null|undefined} management + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.management = null; + + /** + * NodePool maxPodsConstraint. + * @member {google.container.v1.IMaxPodsConstraint|null|undefined} maxPodsConstraint + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.maxPodsConstraint = null; + + /** + * NodePool conditions. + * @member {Array.} conditions + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.conditions = $util.emptyArray; + + /** + * NodePool podIpv4CidrSize. + * @member {number} podIpv4CidrSize + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.podIpv4CidrSize = 0; + + /** + * NodePool upgradeSettings. + * @member {google.container.v1.NodePool.IUpgradeSettings|null|undefined} upgradeSettings + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.upgradeSettings = null; + + /** + * Creates a new NodePool instance using the specified properties. * @function create - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.IListOperationsResponse=} [properties] Properties to set - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse instance + * @param {google.container.v1.INodePool=} [properties] Properties to set + * @returns {google.container.v1.NodePool} NodePool instance */ - ListOperationsResponse.create = function create(properties) { - return new ListOperationsResponse(properties); + NodePool.create = function create(properties) { + return new NodePool(properties); }; /** - * Encodes the specified ListOperationsResponse message. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. + * Encodes the specified NodePool message. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.IListOperationsResponse} message ListOperationsResponse message or plain object to encode + * @param {google.container.v1.INodePool} message NodePool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsResponse.encode = function encode(message, writer) { + NodePool.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - 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]); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.config != null && Object.hasOwnProperty.call(message, "config")) + $root.google.container.v1.NodeConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); + if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) + $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.management != null && Object.hasOwnProperty.call(message, "management")) + $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.maxPodsConstraint != null && Object.hasOwnProperty.call(message, "maxPodsConstraint")) + $root.google.container.v1.MaxPodsConstraint.encode(message.maxPodsConstraint, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.podIpv4CidrSize != null && Object.hasOwnProperty.call(message, "podIpv4CidrSize")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.podIpv4CidrSize); + 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.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) + writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 101, wireType 2 =*/810).string(message.version); + if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) + for (var i = 0; i < message.instanceGroupUrls.length; ++i) + writer.uint32(/* id 102, wireType 2 =*/818).string(message.instanceGroupUrls[i]); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + writer.uint32(/* id 103, wireType 0 =*/824).int32(message.status); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) + writer.uint32(/* id 104, wireType 2 =*/834).string(message.statusMessage); + 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 105, wireType 2 =*/842).fork()).ldelim(); + if (message.upgradeSettings != null && Object.hasOwnProperty.call(message, "upgradeSettings")) + $root.google.container.v1.NodePool.UpgradeSettings.encode(message.upgradeSettings, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListOperationsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListOperationsResponse.verify|verify} messages. + * Encodes the specified NodePool message, length delimited. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.IListOperationsResponse} message ListOperationsResponse message or plain object to encode + * @param {google.container.v1.INodePool} message NodePool message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListOperationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + NodePool.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListOperationsResponse message from the specified reader or buffer. + * Decodes a NodePool message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse + * @returns {google.container.v1.NodePool} NodePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsResponse.decode = function decode(reader, length) { + NodePool.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.ListOperationsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePool(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.operations && message.operations.length)) - message.operations = []; - message.operations.push($root.google.container.v1.Operation.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + case 2: + message.config = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); + break; + case 3: + message.initialNodeCount = reader.int32(); + break; + case 13: + if (!(message.locations && message.locations.length)) + message.locations = []; + message.locations.push(reader.string()); + break; + case 100: + message.selfLink = reader.string(); + break; + case 101: + message.version = reader.string(); break; - case 2: - if (!(message.missingZones && message.missingZones.length)) - message.missingZones = []; - message.missingZones.push(reader.string()); + case 102: + if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) + message.instanceGroupUrls = []; + message.instanceGroupUrls.push(reader.string()); + break; + case 103: + message.status = reader.int32(); + break; + case 104: + message.statusMessage = reader.string(); + break; + case 4: + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); + break; + case 5: + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + case 6: + message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32()); + break; + case 105: + if (!(message.conditions && message.conditions.length)) + message.conditions = []; + message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); + break; + case 7: + message.podIpv4CidrSize = reader.int32(); + break; + case 107: + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13439,147 +18193,562 @@ }; /** - * Decodes a ListOperationsResponse message from the specified reader or buffer, length delimited. + * Decodes a NodePool message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse + * @returns {google.container.v1.NodePool} NodePool * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListOperationsResponse.decodeDelimited = function decodeDelimited(reader) { + NodePool.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListOperationsResponse message. + * Verifies a NodePool message. * @function verify - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListOperationsResponse.verify = function verify(message) { + NodePool.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - 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 (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.config != null && message.hasOwnProperty("config")) { + var error = $root.google.container.v1.NodeConfig.verify(message.config); + if (error) + return "config." + error; + } + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + if (!$util.isInteger(message.initialNodeCount)) + return "initialNodeCount: integer 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.selfLink != null && message.hasOwnProperty("selfLink")) + if (!$util.isString(message.selfLink)) + return "selfLink: string expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: 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.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.autoscaling != null && message.hasOwnProperty("autoscaling")) { + var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling); + if (error) + return "autoscaling." + error; + } + if (message.management != null && message.hasOwnProperty("management")) { + var error = $root.google.container.v1.NodeManagement.verify(message.management); + if (error) + return "management." + error; + } + if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) { + var error = $root.google.container.v1.MaxPodsConstraint.verify(message.maxPodsConstraint); + if (error) + return "maxPodsConstraint." + error; + } + 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 "operations." + error; + return "conditions." + 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"; + if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) + if (!$util.isInteger(message.podIpv4CidrSize)) + return "podIpv4CidrSize: integer expected"; + 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 ListOperationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a NodePool message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListOperationsResponse} ListOperationsResponse + * @returns {google.container.v1.NodePool} NodePool */ - ListOperationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListOperationsResponse) + NodePool.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePool) return object; - 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]); + var message = new $root.google.container.v1.NodePool(); + if (object.name != null) + message.name = String(object.name); + if (object.config != null) { + if (typeof object.config !== "object") + throw TypeError(".google.container.v1.NodePool.config: object expected"); + message.config = $root.google.container.v1.NodeConfig.fromObject(object.config); + } + if (object.initialNodeCount != null) + message.initialNodeCount = object.initialNodeCount | 0; + if (object.locations) { + if (!Array.isArray(object.locations)) + throw TypeError(".google.container.v1.NodePool.locations: array expected"); + message.locations = []; + for (var i = 0; i < object.locations.length; ++i) + message.locations[i] = String(object.locations[i]); + } + if (object.selfLink != null) + message.selfLink = String(object.selfLink); + if (object.version != null) + message.version = String(object.version); + if (object.instanceGroupUrls) { + if (!Array.isArray(object.instanceGroupUrls)) + throw TypeError(".google.container.v1.NodePool.instanceGroupUrls: array expected"); + message.instanceGroupUrls = []; + for (var i = 0; i < object.instanceGroupUrls.length; ++i) + message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]); + } + 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 "RUNNING_WITH_ERROR": + case 3: + message.status = 3; + break; + case "RECONCILING": + case 4: + message.status = 4; + break; + case "STOPPING": + case 5: + message.status = 5; + break; + case "ERROR": + case 6: + message.status = 6; + break; + } + if (object.statusMessage != null) + message.statusMessage = String(object.statusMessage); + if (object.autoscaling != null) { + if (typeof object.autoscaling !== "object") + throw TypeError(".google.container.v1.NodePool.autoscaling: object expected"); + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling); + } + if (object.management != null) { + if (typeof object.management !== "object") + throw TypeError(".google.container.v1.NodePool.management: object expected"); + message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); + } + if (object.maxPodsConstraint != null) { + if (typeof object.maxPodsConstraint !== "object") + throw TypeError(".google.container.v1.NodePool.maxPodsConstraint: object expected"); + message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.fromObject(object.maxPodsConstraint); + } + if (object.conditions) { + if (!Array.isArray(object.conditions)) + throw TypeError(".google.container.v1.NodePool.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.NodePool.conditions: object expected"); + message.conditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.conditions[i]); } } - 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.podIpv4CidrSize != null) + message.podIpv4CidrSize = object.podIpv4CidrSize | 0; + if (object.upgradeSettings != null) { + if (typeof object.upgradeSettings !== "object") + throw TypeError(".google.container.v1.NodePool.upgradeSettings: object expected"); + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.fromObject(object.upgradeSettings); } return message; }; /** - * Creates a plain object from a ListOperationsResponse message. Also converts values to other types if specified. + * Creates a plain object from a NodePool message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @static - * @param {google.container.v1.ListOperationsResponse} message ListOperationsResponse + * @param {google.container.v1.NodePool} message NodePool * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListOperationsResponse.toObject = function toObject(message, options) { + NodePool.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) { - object.operations = []; - object.missingZones = []; + object.locations = []; + object.instanceGroupUrls = []; + object.conditions = []; + } + if (options.defaults) { + object.name = ""; + object.config = null; + object.initialNodeCount = 0; + object.autoscaling = null; + object.management = null; + object.maxPodsConstraint = null; + object.podIpv4CidrSize = 0; + object.selfLink = ""; + object.version = ""; + object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; + object.statusMessage = ""; + object.upgradeSettings = null; } - 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.config != null && message.hasOwnProperty("config")) + object.config = $root.google.container.v1.NodeConfig.toObject(message.config, options); + if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) + object.initialNodeCount = message.initialNodeCount; + if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) + object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options); + if (message.management != null && message.hasOwnProperty("management")) + object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) + object.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.toObject(message.maxPodsConstraint, options); + if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) + object.podIpv4CidrSize = message.podIpv4CidrSize; + 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.missingZones && message.missingZones.length) { - object.missingZones = []; - for (var j = 0; j < message.missingZones.length; ++j) - object.missingZones[j] = message.missingZones[j]; + if (message.selfLink != null && message.hasOwnProperty("selfLink")) + object.selfLink = message.selfLink; + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + 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.status != null && message.hasOwnProperty("status")) + object.status = options.enums === String ? $root.google.container.v1.NodePool.Status[message.status] : message.status; + if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.statusMessage = message.statusMessage; + 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.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) + object.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.toObject(message.upgradeSettings, options); return object; }; /** - * Converts this ListOperationsResponse to JSON. + * Converts this NodePool to JSON. * @function toJSON - * @memberof google.container.v1.ListOperationsResponse + * @memberof google.container.v1.NodePool * @instance * @returns {Object.} JSON object */ - ListOperationsResponse.prototype.toJSON = function toJSON() { + NodePool.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListOperationsResponse; + NodePool.UpgradeSettings = (function() { + + /** + * Properties of an UpgradeSettings. + * @memberof google.container.v1.NodePool + * @interface IUpgradeSettings + * @property {number|null} [maxSurge] UpgradeSettings maxSurge + * @property {number|null} [maxUnavailable] UpgradeSettings maxUnavailable + */ + + /** + * Constructs a new UpgradeSettings. + * @memberof google.container.v1.NodePool + * @classdesc Represents an UpgradeSettings. + * @implements IUpgradeSettings + * @constructor + * @param {google.container.v1.NodePool.IUpgradeSettings=} [properties] Properties to set + */ + function UpgradeSettings(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]]; + } + + /** + * UpgradeSettings maxSurge. + * @member {number} maxSurge + * @memberof google.container.v1.NodePool.UpgradeSettings + * @instance + */ + UpgradeSettings.prototype.maxSurge = 0; + + /** + * UpgradeSettings maxUnavailable. + * @member {number} maxUnavailable + * @memberof google.container.v1.NodePool.UpgradeSettings + * @instance + */ + UpgradeSettings.prototype.maxUnavailable = 0; + + /** + * Creates a new UpgradeSettings instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {google.container.v1.NodePool.IUpgradeSettings=} [properties] Properties to set + * @returns {google.container.v1.NodePool.UpgradeSettings} UpgradeSettings instance + */ + UpgradeSettings.create = function create(properties) { + return new UpgradeSettings(properties); + }; + + /** + * Encodes the specified UpgradeSettings message. Does not implicitly {@link google.container.v1.NodePool.UpgradeSettings.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {google.container.v1.NodePool.IUpgradeSettings} message UpgradeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpgradeSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxSurge != null && Object.hasOwnProperty.call(message, "maxSurge")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxSurge); + if (message.maxUnavailable != null && Object.hasOwnProperty.call(message, "maxUnavailable")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxUnavailable); + return writer; + }; + + /** + * Encodes the specified UpgradeSettings message, length delimited. Does not implicitly {@link google.container.v1.NodePool.UpgradeSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {google.container.v1.NodePool.IUpgradeSettings} message UpgradeSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpgradeSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpgradeSettings message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePool.UpgradeSettings} UpgradeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpgradeSettings.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.NodePool.UpgradeSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxSurge = reader.int32(); + break; + case 2: + message.maxUnavailable = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpgradeSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePool.UpgradeSettings} UpgradeSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpgradeSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpgradeSettings message. + * @function verify + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpgradeSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maxSurge != null && message.hasOwnProperty("maxSurge")) + if (!$util.isInteger(message.maxSurge)) + return "maxSurge: integer expected"; + if (message.maxUnavailable != null && message.hasOwnProperty("maxUnavailable")) + if (!$util.isInteger(message.maxUnavailable)) + return "maxUnavailable: integer expected"; + return null; + }; + + /** + * Creates an UpgradeSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePool.UpgradeSettings} UpgradeSettings + */ + UpgradeSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePool.UpgradeSettings) + return object; + var message = new $root.google.container.v1.NodePool.UpgradeSettings(); + if (object.maxSurge != null) + message.maxSurge = object.maxSurge | 0; + if (object.maxUnavailable != null) + message.maxUnavailable = object.maxUnavailable | 0; + return message; + }; + + /** + * Creates a plain object from an UpgradeSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {google.container.v1.NodePool.UpgradeSettings} message UpgradeSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpgradeSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.maxSurge = 0; + object.maxUnavailable = 0; + } + if (message.maxSurge != null && message.hasOwnProperty("maxSurge")) + object.maxSurge = message.maxSurge; + if (message.maxUnavailable != null && message.hasOwnProperty("maxUnavailable")) + object.maxUnavailable = message.maxUnavailable; + return object; + }; + + /** + * Converts this UpgradeSettings to JSON. + * @function toJSON + * @memberof google.container.v1.NodePool.UpgradeSettings + * @instance + * @returns {Object.} JSON object + */ + UpgradeSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpgradeSettings; + })(); + + /** + * Status enum. + * @name google.container.v1.NodePool.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} RUNNING_WITH_ERROR=3 RUNNING_WITH_ERROR value + * @property {number} RECONCILING=4 RECONCILING value + * @property {number} STOPPING=5 STOPPING value + * @property {number} ERROR=6 ERROR value + */ + NodePool.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] = "RUNNING_WITH_ERROR"] = 3; + values[valuesById[4] = "RECONCILING"] = 4; + values[valuesById[5] = "STOPPING"] = 5; + values[valuesById[6] = "ERROR"] = 6; + return values; + })(); + + return NodePool; })(); - v1.GetServerConfigRequest = (function() { + v1.NodeManagement = (function() { /** - * Properties of a GetServerConfigRequest. + * Properties of a NodeManagement. * @memberof google.container.v1 - * @interface IGetServerConfigRequest - * @property {string|null} [projectId] GetServerConfigRequest projectId - * @property {string|null} [zone] GetServerConfigRequest zone - * @property {string|null} [name] GetServerConfigRequest name + * @interface INodeManagement + * @property {boolean|null} [autoUpgrade] NodeManagement autoUpgrade + * @property {boolean|null} [autoRepair] NodeManagement autoRepair + * @property {google.container.v1.IAutoUpgradeOptions|null} [upgradeOptions] NodeManagement upgradeOptions */ /** - * Constructs a new GetServerConfigRequest. + * Constructs a new NodeManagement. * @memberof google.container.v1 - * @classdesc Represents a GetServerConfigRequest. - * @implements IGetServerConfigRequest + * @classdesc Represents a NodeManagement. + * @implements INodeManagement * @constructor - * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set + * @param {google.container.v1.INodeManagement=} [properties] Properties to set */ - function GetServerConfigRequest(properties) { + function NodeManagement(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13587,101 +18756,101 @@ } /** - * GetServerConfigRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.GetServerConfigRequest + * NodeManagement autoUpgrade. + * @member {boolean} autoUpgrade + * @memberof google.container.v1.NodeManagement * @instance */ - GetServerConfigRequest.prototype.projectId = ""; + NodeManagement.prototype.autoUpgrade = false; /** - * GetServerConfigRequest zone. - * @member {string} zone - * @memberof google.container.v1.GetServerConfigRequest + * NodeManagement autoRepair. + * @member {boolean} autoRepair + * @memberof google.container.v1.NodeManagement * @instance */ - GetServerConfigRequest.prototype.zone = ""; + NodeManagement.prototype.autoRepair = false; /** - * GetServerConfigRequest name. - * @member {string} name - * @memberof google.container.v1.GetServerConfigRequest + * NodeManagement upgradeOptions. + * @member {google.container.v1.IAutoUpgradeOptions|null|undefined} upgradeOptions + * @memberof google.container.v1.NodeManagement * @instance */ - GetServerConfigRequest.prototype.name = ""; + NodeManagement.prototype.upgradeOptions = null; /** - * Creates a new GetServerConfigRequest instance using the specified properties. + * Creates a new NodeManagement instance using the specified properties. * @function create - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.IGetServerConfigRequest=} [properties] Properties to set - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest instance + * @param {google.container.v1.INodeManagement=} [properties] Properties to set + * @returns {google.container.v1.NodeManagement} NodeManagement instance */ - GetServerConfigRequest.create = function create(properties) { - return new GetServerConfigRequest(properties); + NodeManagement.create = function create(properties) { + return new NodeManagement(properties); }; /** - * Encodes the specified GetServerConfigRequest message. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. + * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.IGetServerConfigRequest} message GetServerConfigRequest message or plain object to encode + * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetServerConfigRequest.encode = function encode(message, writer) { + NodeManagement.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.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); + if (message.autoUpgrade != null && Object.hasOwnProperty.call(message, "autoUpgrade")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.autoUpgrade); + if (message.autoRepair != null && Object.hasOwnProperty.call(message, "autoRepair")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autoRepair); + if (message.upgradeOptions != null && Object.hasOwnProperty.call(message, "upgradeOptions")) + $root.google.container.v1.AutoUpgradeOptions.encode(message.upgradeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetServerConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetServerConfigRequest.verify|verify} messages. + * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.IGetServerConfigRequest} message GetServerConfigRequest message or plain object to encode + * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetServerConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + NodeManagement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetServerConfigRequest message from the specified reader or buffer. + * Decodes a NodeManagement message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest + * @returns {google.container.v1.NodeManagement} NodeManagement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetServerConfigRequest.decode = function decode(reader, length) { + NodeManagement.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.GetServerConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodeManagement(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.autoUpgrade = reader.bool(); break; case 2: - message.zone = reader.string(); + message.autoRepair = reader.bool(); break; - case 4: - message.name = reader.string(); + case 10: + message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -13692,131 +18861,130 @@ }; /** - * Decodes a GetServerConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a NodeManagement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest + * @returns {google.container.v1.NodeManagement} NodeManagement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetServerConfigRequest.decodeDelimited = function decodeDelimited(reader) { + NodeManagement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetServerConfigRequest message. + * Verifies a NodeManagement message. * @function verify - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetServerConfigRequest.verify = function verify(message) { + NodeManagement.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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + if (typeof message.autoUpgrade !== "boolean") + return "autoUpgrade: boolean expected"; + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + if (typeof message.autoRepair !== "boolean") + return "autoRepair: boolean expected"; + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) { + var error = $root.google.container.v1.AutoUpgradeOptions.verify(message.upgradeOptions); + if (error) + return "upgradeOptions." + error; + } return null; }; /** - * Creates a GetServerConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NodeManagement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetServerConfigRequest} GetServerConfigRequest + * @returns {google.container.v1.NodeManagement} NodeManagement */ - GetServerConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetServerConfigRequest) + NodeManagement.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeManagement) return object; - 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.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.NodeManagement(); + if (object.autoUpgrade != null) + message.autoUpgrade = Boolean(object.autoUpgrade); + if (object.autoRepair != null) + message.autoRepair = Boolean(object.autoRepair); + if (object.upgradeOptions != null) { + if (typeof object.upgradeOptions !== "object") + throw TypeError(".google.container.v1.NodeManagement.upgradeOptions: object expected"); + message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.fromObject(object.upgradeOptions); + } return message; }; /** - * Creates a plain object from a GetServerConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a NodeManagement message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @static - * @param {google.container.v1.GetServerConfigRequest} message GetServerConfigRequest + * @param {google.container.v1.NodeManagement} message NodeManagement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetServerConfigRequest.toObject = function toObject(message, options) { + NodeManagement.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.name = ""; + object.autoUpgrade = false; + object.autoRepair = false; + object.upgradeOptions = 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) + object.autoUpgrade = message.autoUpgrade; + if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) + object.autoRepair = message.autoRepair; + if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) + object.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.toObject(message.upgradeOptions, options); return object; }; /** - * Converts this GetServerConfigRequest to JSON. + * Converts this NodeManagement to JSON. * @function toJSON - * @memberof google.container.v1.GetServerConfigRequest + * @memberof google.container.v1.NodeManagement * @instance * @returns {Object.} JSON object */ - GetServerConfigRequest.prototype.toJSON = function toJSON() { + NodeManagement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetServerConfigRequest; + return NodeManagement; })(); - v1.ServerConfig = (function() { + v1.AutoUpgradeOptions = (function() { /** - * Properties of a ServerConfig. + * Properties of an AutoUpgradeOptions. * @memberof google.container.v1 - * @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 + * @interface IAutoUpgradeOptions + * @property {string|null} [autoUpgradeStartTime] AutoUpgradeOptions autoUpgradeStartTime + * @property {string|null} [description] AutoUpgradeOptions description */ /** - * Constructs a new ServerConfig. + * Constructs a new AutoUpgradeOptions. * @memberof google.container.v1 - * @classdesc Represents a ServerConfig. - * @implements IServerConfig + * @classdesc Represents an AutoUpgradeOptions. + * @implements IAutoUpgradeOptions * @constructor - * @param {google.container.v1.IServerConfig=} [properties] Properties to set + * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set */ - function ServerConfig(properties) { - this.validNodeVersions = []; - this.validImageTypes = []; - this.validMasterVersions = []; + function AutoUpgradeOptions(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -13824,136 +18992,88 @@ } /** - * ServerConfig defaultClusterVersion. - * @member {string} defaultClusterVersion - * @memberof google.container.v1.ServerConfig - * @instance - */ - ServerConfig.prototype.defaultClusterVersion = ""; - - /** - * ServerConfig validNodeVersions. - * @member {Array.} validNodeVersions - * @memberof google.container.v1.ServerConfig - * @instance - */ - ServerConfig.prototype.validNodeVersions = $util.emptyArray; - - /** - * ServerConfig defaultImageType. - * @member {string} defaultImageType - * @memberof google.container.v1.ServerConfig - * @instance - */ - ServerConfig.prototype.defaultImageType = ""; - - /** - * ServerConfig validImageTypes. - * @member {Array.} validImageTypes - * @memberof google.container.v1.ServerConfig + * AutoUpgradeOptions autoUpgradeStartTime. + * @member {string} autoUpgradeStartTime + * @memberof google.container.v1.AutoUpgradeOptions * @instance */ - ServerConfig.prototype.validImageTypes = $util.emptyArray; + AutoUpgradeOptions.prototype.autoUpgradeStartTime = ""; /** - * ServerConfig validMasterVersions. - * @member {Array.} validMasterVersions - * @memberof google.container.v1.ServerConfig + * AutoUpgradeOptions description. + * @member {string} description + * @memberof google.container.v1.AutoUpgradeOptions * @instance */ - ServerConfig.prototype.validMasterVersions = $util.emptyArray; + AutoUpgradeOptions.prototype.description = ""; /** - * Creates a new ServerConfig instance using the specified properties. + * Creates a new AutoUpgradeOptions instance using the specified properties. * @function create - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.IServerConfig=} [properties] Properties to set - * @returns {google.container.v1.ServerConfig} ServerConfig instance + * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions instance */ - ServerConfig.create = function create(properties) { - return new ServerConfig(properties); + AutoUpgradeOptions.create = function create(properties) { + return new AutoUpgradeOptions(properties); }; /** - * Encodes the specified ServerConfig message. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. + * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. * @function encode - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode + * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServerConfig.encode = function encode(message, writer) { + AutoUpgradeOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.defaultClusterVersion != null && Object.hasOwnProperty.call(message, "defaultClusterVersion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.defaultClusterVersion); - if (message.validNodeVersions != null && message.validNodeVersions.length) - for (var i = 0; i < message.validNodeVersions.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.validNodeVersions[i]); - if (message.defaultImageType != null && Object.hasOwnProperty.call(message, "defaultImageType")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.defaultImageType); - if (message.validImageTypes != null && message.validImageTypes.length) - for (var i = 0; i < message.validImageTypes.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.validImageTypes[i]); - if (message.validMasterVersions != null && message.validMasterVersions.length) - for (var i = 0; i < message.validMasterVersions.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.validMasterVersions[i]); + if (message.autoUpgradeStartTime != null && Object.hasOwnProperty.call(message, "autoUpgradeStartTime")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoUpgradeStartTime); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); return writer; }; /** - * Encodes the specified ServerConfig message, length delimited. Does not implicitly {@link google.container.v1.ServerConfig.verify|verify} messages. + * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.IServerConfig} message ServerConfig message or plain object to encode + * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServerConfig.encodeDelimited = function encodeDelimited(message, writer) { + AutoUpgradeOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServerConfig message from the specified reader or buffer. + * Decodes an AutoUpgradeOptions message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ServerConfig} ServerConfig + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServerConfig.decode = function decode(reader, length) { + AutoUpgradeOptions.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.ServerConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AutoUpgradeOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.defaultClusterVersion = reader.string(); - break; - case 3: - if (!(message.validNodeVersions && message.validNodeVersions.length)) - message.validNodeVersions = []; - message.validNodeVersions.push(reader.string()); - break; - case 4: - message.defaultImageType = reader.string(); - break; - case 5: - if (!(message.validImageTypes && message.validImageTypes.length)) - message.validImageTypes = []; - message.validImageTypes.push(reader.string()); + message.autoUpgradeStartTime = reader.string(); break; - case 6: - if (!(message.validMasterVersions && message.validMasterVersions.length)) - message.validMasterVersions = []; - message.validMasterVersions.push(reader.string()); + case 2: + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -13964,182 +19084,117 @@ }; /** - * Decodes a ServerConfig message from the specified reader or buffer, length delimited. + * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ServerConfig} ServerConfig + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServerConfig.decodeDelimited = function decodeDelimited(reader) { + AutoUpgradeOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServerConfig message. + * Verifies an AutoUpgradeOptions message. * @function verify - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServerConfig.verify = function verify(message) { + AutoUpgradeOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) - if (!$util.isString(message.defaultClusterVersion)) - return "defaultClusterVersion: string expected"; - if (message.validNodeVersions != null && message.hasOwnProperty("validNodeVersions")) { - if (!Array.isArray(message.validNodeVersions)) - return "validNodeVersions: array expected"; - for (var i = 0; i < message.validNodeVersions.length; ++i) - if (!$util.isString(message.validNodeVersions[i])) - return "validNodeVersions: string[] expected"; - } - if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) - if (!$util.isString(message.defaultImageType)) - return "defaultImageType: string expected"; - if (message.validImageTypes != null && message.hasOwnProperty("validImageTypes")) { - if (!Array.isArray(message.validImageTypes)) - return "validImageTypes: array expected"; - for (var i = 0; i < message.validImageTypes.length; ++i) - if (!$util.isString(message.validImageTypes[i])) - return "validImageTypes: string[] expected"; - } - if (message.validMasterVersions != null && message.hasOwnProperty("validMasterVersions")) { - if (!Array.isArray(message.validMasterVersions)) - return "validMasterVersions: array expected"; - for (var i = 0; i < message.validMasterVersions.length; ++i) - if (!$util.isString(message.validMasterVersions[i])) - return "validMasterVersions: string[] expected"; - } + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + if (!$util.isString(message.autoUpgradeStartTime)) + return "autoUpgradeStartTime: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a ServerConfig message from a plain object. Also converts values to their respective internal types. + * Creates an AutoUpgradeOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ServerConfig} ServerConfig + * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions */ - ServerConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ServerConfig) + AutoUpgradeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AutoUpgradeOptions) return object; - var message = new $root.google.container.v1.ServerConfig(); - if (object.defaultClusterVersion != null) - message.defaultClusterVersion = String(object.defaultClusterVersion); - if (object.validNodeVersions) { - if (!Array.isArray(object.validNodeVersions)) - throw TypeError(".google.container.v1.ServerConfig.validNodeVersions: array expected"); - message.validNodeVersions = []; - for (var i = 0; i < object.validNodeVersions.length; ++i) - message.validNodeVersions[i] = String(object.validNodeVersions[i]); - } - if (object.defaultImageType != null) - message.defaultImageType = String(object.defaultImageType); - if (object.validImageTypes) { - if (!Array.isArray(object.validImageTypes)) - throw TypeError(".google.container.v1.ServerConfig.validImageTypes: array expected"); - message.validImageTypes = []; - for (var i = 0; i < object.validImageTypes.length; ++i) - message.validImageTypes[i] = String(object.validImageTypes[i]); - } - if (object.validMasterVersions) { - if (!Array.isArray(object.validMasterVersions)) - throw TypeError(".google.container.v1.ServerConfig.validMasterVersions: array expected"); - message.validMasterVersions = []; - for (var i = 0; i < object.validMasterVersions.length; ++i) - message.validMasterVersions[i] = String(object.validMasterVersions[i]); - } + var message = new $root.google.container.v1.AutoUpgradeOptions(); + if (object.autoUpgradeStartTime != null) + message.autoUpgradeStartTime = String(object.autoUpgradeStartTime); + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a ServerConfig message. Also converts values to other types if specified. + * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @static - * @param {google.container.v1.ServerConfig} message ServerConfig + * @param {google.container.v1.AutoUpgradeOptions} message AutoUpgradeOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServerConfig.toObject = function toObject(message, options) { + AutoUpgradeOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.validNodeVersions = []; - object.validImageTypes = []; - object.validMasterVersions = []; - } if (options.defaults) { - object.defaultClusterVersion = ""; - object.defaultImageType = ""; - } - if (message.defaultClusterVersion != null && message.hasOwnProperty("defaultClusterVersion")) - object.defaultClusterVersion = message.defaultClusterVersion; - if (message.validNodeVersions && message.validNodeVersions.length) { - object.validNodeVersions = []; - for (var j = 0; j < message.validNodeVersions.length; ++j) - object.validNodeVersions[j] = message.validNodeVersions[j]; - } - if (message.defaultImageType != null && message.hasOwnProperty("defaultImageType")) - object.defaultImageType = message.defaultImageType; - if (message.validImageTypes && message.validImageTypes.length) { - object.validImageTypes = []; - for (var j = 0; j < message.validImageTypes.length; ++j) - object.validImageTypes[j] = message.validImageTypes[j]; - } - if (message.validMasterVersions && message.validMasterVersions.length) { - object.validMasterVersions = []; - for (var j = 0; j < message.validMasterVersions.length; ++j) - object.validMasterVersions[j] = message.validMasterVersions[j]; + object.autoUpgradeStartTime = ""; + object.description = ""; } + if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) + object.autoUpgradeStartTime = message.autoUpgradeStartTime; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this ServerConfig to JSON. + * Converts this AutoUpgradeOptions to JSON. * @function toJSON - * @memberof google.container.v1.ServerConfig + * @memberof google.container.v1.AutoUpgradeOptions * @instance * @returns {Object.} JSON object */ - ServerConfig.prototype.toJSON = function toJSON() { + AutoUpgradeOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServerConfig; + return AutoUpgradeOptions; })(); - v1.CreateNodePoolRequest = (function() { + v1.MaintenancePolicy = (function() { /** - * Properties of a CreateNodePoolRequest. + * Properties of a MaintenancePolicy. * @memberof google.container.v1 - * @interface ICreateNodePoolRequest - * @property {string|null} [projectId] CreateNodePoolRequest projectId - * @property {string|null} [zone] CreateNodePoolRequest zone - * @property {string|null} [clusterId] CreateNodePoolRequest clusterId - * @property {google.container.v1.INodePool|null} [nodePool] CreateNodePoolRequest nodePool - * @property {string|null} [parent] CreateNodePoolRequest parent + * @interface IMaintenancePolicy + * @property {google.container.v1.IMaintenanceWindow|null} [window] MaintenancePolicy window + * @property {string|null} [resourceVersion] MaintenancePolicy resourceVersion */ /** - * Constructs a new CreateNodePoolRequest. + * Constructs a new MaintenancePolicy. * @memberof google.container.v1 - * @classdesc Represents a CreateNodePoolRequest. - * @implements ICreateNodePoolRequest + * @classdesc Represents a MaintenancePolicy. + * @implements IMaintenancePolicy * @constructor - * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set + * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set */ - function CreateNodePoolRequest(properties) { + function MaintenancePolicy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14147,127 +19202,88 @@ } /** - * CreateNodePoolRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.CreateNodePoolRequest - * @instance - */ - CreateNodePoolRequest.prototype.projectId = ""; - - /** - * CreateNodePoolRequest zone. - * @member {string} zone - * @memberof google.container.v1.CreateNodePoolRequest - * @instance - */ - CreateNodePoolRequest.prototype.zone = ""; - - /** - * CreateNodePoolRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.CreateNodePoolRequest - * @instance - */ - CreateNodePoolRequest.prototype.clusterId = ""; - - /** - * CreateNodePoolRequest nodePool. - * @member {google.container.v1.INodePool|null|undefined} nodePool - * @memberof google.container.v1.CreateNodePoolRequest + * MaintenancePolicy window. + * @member {google.container.v1.IMaintenanceWindow|null|undefined} window + * @memberof google.container.v1.MaintenancePolicy * @instance */ - CreateNodePoolRequest.prototype.nodePool = null; + MaintenancePolicy.prototype.window = null; /** - * CreateNodePoolRequest parent. - * @member {string} parent - * @memberof google.container.v1.CreateNodePoolRequest + * MaintenancePolicy resourceVersion. + * @member {string} resourceVersion + * @memberof google.container.v1.MaintenancePolicy * @instance */ - CreateNodePoolRequest.prototype.parent = ""; + MaintenancePolicy.prototype.resourceVersion = ""; /** - * Creates a new CreateNodePoolRequest instance using the specified properties. + * Creates a new MaintenancePolicy instance using the specified properties. * @function create - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.ICreateNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest instance + * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy instance */ - CreateNodePoolRequest.create = function create(properties) { - return new CreateNodePoolRequest(properties); + MaintenancePolicy.create = function create(properties) { + return new MaintenancePolicy(properties); }; /** - * Encodes the specified CreateNodePoolRequest message. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. + * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. * @function encode - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode + * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNodePoolRequest.encode = function encode(message, writer) { + MaintenancePolicy.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.nodePool != null && Object.hasOwnProperty.call(message, "nodePool")) - $root.google.container.v1.NodePool.encode(message.nodePool, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.parent); + if (message.window != null && Object.hasOwnProperty.call(message, "window")) + $root.google.container.v1.MaintenanceWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.resourceVersion != null && Object.hasOwnProperty.call(message, "resourceVersion")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.resourceVersion); return writer; }; /** - * Encodes the specified CreateNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.CreateNodePoolRequest.verify|verify} messages. + * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.ICreateNodePoolRequest} message CreateNodePoolRequest message or plain object to encode + * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + MaintenancePolicy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateNodePoolRequest message from the specified reader or buffer. + * Decodes a MaintenancePolicy message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNodePoolRequest.decode = function decode(reader, length) { + MaintenancePolicy.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.CreateNodePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaintenancePolicy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); - break; - case 2: - message.zone = reader.string(); + message.window = $root.google.container.v1.MaintenanceWindow.decode(reader, reader.uint32()); break; case 3: - message.clusterId = reader.string(); - break; - case 4: - message.nodePool = $root.google.container.v1.NodePool.decode(reader, reader.uint32()); - break; - case 6: - message.parent = reader.string(); + message.resourceVersion = reader.string(); break; default: reader.skipType(tag & 7); @@ -14278,149 +19294,124 @@ }; /** - * Decodes a CreateNodePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + MaintenancePolicy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateNodePoolRequest message. + * Verifies a MaintenancePolicy message. * @function verify - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateNodePoolRequest.verify = function verify(message) { + MaintenancePolicy.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.nodePool != null && message.hasOwnProperty("nodePool")) { - var error = $root.google.container.v1.NodePool.verify(message.nodePool); + if (message.window != null && message.hasOwnProperty("window")) { + var error = $root.google.container.v1.MaintenanceWindow.verify(message.window); if (error) - return "nodePool." + error; + return "window." + error; } - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) + if (!$util.isString(message.resourceVersion)) + return "resourceVersion: string expected"; return null; }; /** - * Creates a CreateNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MaintenancePolicy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CreateNodePoolRequest} CreateNodePoolRequest + * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy */ - CreateNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CreateNodePoolRequest) + MaintenancePolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaintenancePolicy) return object; - var message = new $root.google.container.v1.CreateNodePoolRequest(); - 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.nodePool != null) { - if (typeof object.nodePool !== "object") - throw TypeError(".google.container.v1.CreateNodePoolRequest.nodePool: object expected"); - message.nodePool = $root.google.container.v1.NodePool.fromObject(object.nodePool); + var message = new $root.google.container.v1.MaintenancePolicy(); + if (object.window != null) { + if (typeof object.window !== "object") + throw TypeError(".google.container.v1.MaintenancePolicy.window: object expected"); + message.window = $root.google.container.v1.MaintenanceWindow.fromObject(object.window); } - if (object.parent != null) - message.parent = String(object.parent); + if (object.resourceVersion != null) + message.resourceVersion = String(object.resourceVersion); return message; }; /** - * Creates a plain object from a CreateNodePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @static - * @param {google.container.v1.CreateNodePoolRequest} message CreateNodePoolRequest + * @param {google.container.v1.MaintenancePolicy} message MaintenancePolicy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateNodePoolRequest.toObject = function toObject(message, options) { + MaintenancePolicy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePool = null; - object.parent = ""; + object.window = null; + object.resourceVersion = ""; } - 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.nodePool != null && message.hasOwnProperty("nodePool")) - object.nodePool = $root.google.container.v1.NodePool.toObject(message.nodePool, options); - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.window != null && message.hasOwnProperty("window")) + object.window = $root.google.container.v1.MaintenanceWindow.toObject(message.window, options); + if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) + object.resourceVersion = message.resourceVersion; return object; }; /** - * Converts this CreateNodePoolRequest to JSON. + * Converts this MaintenancePolicy to JSON. * @function toJSON - * @memberof google.container.v1.CreateNodePoolRequest + * @memberof google.container.v1.MaintenancePolicy * @instance * @returns {Object.} JSON object */ - CreateNodePoolRequest.prototype.toJSON = function toJSON() { + MaintenancePolicy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateNodePoolRequest; + return MaintenancePolicy; })(); - v1.DeleteNodePoolRequest = (function() { + v1.MaintenanceWindow = (function() { /** - * Properties of a DeleteNodePoolRequest. + * Properties of a MaintenanceWindow. * @memberof google.container.v1 - * @interface IDeleteNodePoolRequest - * @property {string|null} [projectId] DeleteNodePoolRequest projectId - * @property {string|null} [zone] DeleteNodePoolRequest zone - * @property {string|null} [clusterId] DeleteNodePoolRequest clusterId - * @property {string|null} [nodePoolId] DeleteNodePoolRequest nodePoolId - * @property {string|null} [name] DeleteNodePoolRequest name + * @interface IMaintenanceWindow + * @property {google.container.v1.IDailyMaintenanceWindow|null} [dailyMaintenanceWindow] MaintenanceWindow dailyMaintenanceWindow + * @property {google.container.v1.IRecurringTimeWindow|null} [recurringWindow] MaintenanceWindow recurringWindow + * @property {Object.|null} [maintenanceExclusions] MaintenanceWindow maintenanceExclusions */ /** - * Constructs a new DeleteNodePoolRequest. + * Constructs a new MaintenanceWindow. * @memberof google.container.v1 - * @classdesc Represents a DeleteNodePoolRequest. - * @implements IDeleteNodePoolRequest + * @classdesc Represents a MaintenanceWindow. + * @implements IMaintenanceWindow * @constructor - * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set + * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set */ - function DeleteNodePoolRequest(properties) { + function MaintenanceWindow(properties) { + this.maintenanceExclusions = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14428,127 +19419,137 @@ } /** - * DeleteNodePoolRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.DeleteNodePoolRequest + * MaintenanceWindow dailyMaintenanceWindow. + * @member {google.container.v1.IDailyMaintenanceWindow|null|undefined} dailyMaintenanceWindow + * @memberof google.container.v1.MaintenanceWindow * @instance */ - DeleteNodePoolRequest.prototype.projectId = ""; + MaintenanceWindow.prototype.dailyMaintenanceWindow = null; /** - * DeleteNodePoolRequest zone. - * @member {string} zone - * @memberof google.container.v1.DeleteNodePoolRequest + * MaintenanceWindow recurringWindow. + * @member {google.container.v1.IRecurringTimeWindow|null|undefined} recurringWindow + * @memberof google.container.v1.MaintenanceWindow * @instance */ - DeleteNodePoolRequest.prototype.zone = ""; + MaintenanceWindow.prototype.recurringWindow = null; /** - * DeleteNodePoolRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.DeleteNodePoolRequest + * MaintenanceWindow maintenanceExclusions. + * @member {Object.} maintenanceExclusions + * @memberof google.container.v1.MaintenanceWindow * @instance */ - DeleteNodePoolRequest.prototype.clusterId = ""; + MaintenanceWindow.prototype.maintenanceExclusions = $util.emptyObject; - /** - * DeleteNodePoolRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.DeleteNodePoolRequest - * @instance - */ - DeleteNodePoolRequest.prototype.nodePoolId = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * DeleteNodePoolRequest name. - * @member {string} name - * @memberof google.container.v1.DeleteNodePoolRequest + * MaintenanceWindow policy. + * @member {"dailyMaintenanceWindow"|"recurringWindow"|undefined} policy + * @memberof google.container.v1.MaintenanceWindow * @instance */ - DeleteNodePoolRequest.prototype.name = ""; + Object.defineProperty(MaintenanceWindow.prototype, "policy", { + get: $util.oneOfGetter($oneOfFields = ["dailyMaintenanceWindow", "recurringWindow"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new DeleteNodePoolRequest instance using the specified properties. + * Creates a new MaintenanceWindow instance using the specified properties. * @function create - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.IDeleteNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest instance + * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow instance */ - DeleteNodePoolRequest.create = function create(properties) { - return new DeleteNodePoolRequest(properties); + MaintenanceWindow.create = function create(properties) { + return new MaintenanceWindow(properties); }; /** - * Encodes the specified DeleteNodePoolRequest message. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. + * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode + * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNodePoolRequest.encode = function encode(message, writer) { + MaintenanceWindow.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.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.dailyMaintenanceWindow != null && Object.hasOwnProperty.call(message, "dailyMaintenanceWindow")) + $root.google.container.v1.DailyMaintenanceWindow.encode(message.dailyMaintenanceWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.recurringWindow != null && Object.hasOwnProperty.call(message, "recurringWindow")) + $root.google.container.v1.RecurringTimeWindow.encode(message.recurringWindow, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.maintenanceExclusions != null && Object.hasOwnProperty.call(message, "maintenanceExclusions")) + for (var keys = Object.keys(message.maintenanceExclusions), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.container.v1.TimeWindow.encode(message.maintenanceExclusions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } return writer; }; /** - * Encodes the specified DeleteNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.DeleteNodePoolRequest.verify|verify} messages. + * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.IDeleteNodePoolRequest} message DeleteNodePoolRequest message or plain object to encode + * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteNodePoolRequest message from the specified reader or buffer. + * Decodes a MaintenanceWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNodePoolRequest.decode = function decode(reader, length) { + MaintenanceWindow.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.DeleteNodePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.MaintenanceWindow(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.projectId = reader.string(); - break; case 2: - message.zone = reader.string(); + message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.decode(reader, reader.uint32()); break; case 3: - message.clusterId = reader.string(); + message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.decode(reader, reader.uint32()); break; case 4: - message.nodePoolId = reader.string(); - break; - case 6: - message.name = reader.string(); + if (message.maintenanceExclusions === $util.emptyObject) + message.maintenanceExclusions = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.maintenanceExclusions[key] = value; break; default: reader.skipType(tag & 7); @@ -14559,143 +19560,166 @@ }; /** - * Decodes a DeleteNodePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteNodePoolRequest message. + * Verifies a MaintenanceWindow message. * @function verify - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteNodePoolRequest.verify = function verify(message) { + MaintenanceWindow.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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + var properties = {}; + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { + properties.policy = 1; + { + var error = $root.google.container.v1.DailyMaintenanceWindow.verify(message.dailyMaintenanceWindow); + if (error) + return "dailyMaintenanceWindow." + error; + } + } + if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) { + if (properties.policy === 1) + return "policy: multiple values"; + properties.policy = 1; + { + var error = $root.google.container.v1.RecurringTimeWindow.verify(message.recurringWindow); + if (error) + return "recurringWindow." + error; + } + } + if (message.maintenanceExclusions != null && message.hasOwnProperty("maintenanceExclusions")) { + if (!$util.isObject(message.maintenanceExclusions)) + return "maintenanceExclusions: object expected"; + var key = Object.keys(message.maintenanceExclusions); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.container.v1.TimeWindow.verify(message.maintenanceExclusions[key[i]]); + if (error) + return "maintenanceExclusions." + error; + } + } return null; }; /** - * Creates a DeleteNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MaintenanceWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.DeleteNodePoolRequest} DeleteNodePoolRequest + * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow */ - DeleteNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.DeleteNodePoolRequest) + MaintenanceWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaintenanceWindow) return object; - var message = new $root.google.container.v1.DeleteNodePoolRequest(); - 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.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.MaintenanceWindow(); + if (object.dailyMaintenanceWindow != null) { + if (typeof object.dailyMaintenanceWindow !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.dailyMaintenanceWindow: object expected"); + message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.fromObject(object.dailyMaintenanceWindow); + } + if (object.recurringWindow != null) { + if (typeof object.recurringWindow !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.recurringWindow: object expected"); + message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.fromObject(object.recurringWindow); + } + if (object.maintenanceExclusions) { + if (typeof object.maintenanceExclusions !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.maintenanceExclusions: object expected"); + message.maintenanceExclusions = {}; + for (var keys = Object.keys(object.maintenanceExclusions), i = 0; i < keys.length; ++i) { + if (typeof object.maintenanceExclusions[keys[i]] !== "object") + throw TypeError(".google.container.v1.MaintenanceWindow.maintenanceExclusions: object expected"); + message.maintenanceExclusions[keys[i]] = $root.google.container.v1.TimeWindow.fromObject(object.maintenanceExclusions[keys[i]]); + } + } return message; }; /** - * Creates a plain object from a DeleteNodePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @static - * @param {google.container.v1.DeleteNodePoolRequest} message DeleteNodePoolRequest + * @param {google.container.v1.MaintenanceWindow} message MaintenanceWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteNodePoolRequest.toObject = function toObject(message, options) { + MaintenanceWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePoolId = ""; - object.name = ""; + if (options.objects || options.defaults) + object.maintenanceExclusions = {}; + if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { + object.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.toObject(message.dailyMaintenanceWindow, options); + if (options.oneofs) + object.policy = "dailyMaintenanceWindow"; + } + if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) { + object.recurringWindow = $root.google.container.v1.RecurringTimeWindow.toObject(message.recurringWindow, options); + if (options.oneofs) + object.policy = "recurringWindow"; + } + var keys2; + if (message.maintenanceExclusions && (keys2 = Object.keys(message.maintenanceExclusions)).length) { + object.maintenanceExclusions = {}; + for (var j = 0; j < keys2.length; ++j) + object.maintenanceExclusions[keys2[j]] = $root.google.container.v1.TimeWindow.toObject(message.maintenanceExclusions[keys2[j]], options); } - 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; return object; }; /** - * Converts this DeleteNodePoolRequest to JSON. + * Converts this MaintenanceWindow to JSON. * @function toJSON - * @memberof google.container.v1.DeleteNodePoolRequest + * @memberof google.container.v1.MaintenanceWindow * @instance * @returns {Object.} JSON object */ - DeleteNodePoolRequest.prototype.toJSON = function toJSON() { + MaintenanceWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteNodePoolRequest; + return MaintenanceWindow; })(); - v1.ListNodePoolsRequest = (function() { + v1.TimeWindow = (function() { /** - * Properties of a ListNodePoolsRequest. + * Properties of a TimeWindow. * @memberof google.container.v1 - * @interface IListNodePoolsRequest - * @property {string|null} [projectId] ListNodePoolsRequest projectId - * @property {string|null} [zone] ListNodePoolsRequest zone - * @property {string|null} [clusterId] ListNodePoolsRequest clusterId - * @property {string|null} [parent] ListNodePoolsRequest parent + * @interface ITimeWindow + * @property {google.protobuf.ITimestamp|null} [startTime] TimeWindow startTime + * @property {google.protobuf.ITimestamp|null} [endTime] TimeWindow endTime */ /** - * Constructs a new ListNodePoolsRequest. + * Constructs a new TimeWindow. * @memberof google.container.v1 - * @classdesc Represents a ListNodePoolsRequest. - * @implements IListNodePoolsRequest + * @classdesc Represents a TimeWindow. + * @implements ITimeWindow * @constructor - * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set + * @param {google.container.v1.ITimeWindow=} [properties] Properties to set */ - function ListNodePoolsRequest(properties) { + function TimeWindow(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14703,114 +19727,88 @@ } /** - * ListNodePoolsRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.ListNodePoolsRequest - * @instance - */ - ListNodePoolsRequest.prototype.projectId = ""; - - /** - * ListNodePoolsRequest zone. - * @member {string} zone - * @memberof google.container.v1.ListNodePoolsRequest - * @instance - */ - ListNodePoolsRequest.prototype.zone = ""; - - /** - * ListNodePoolsRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.ListNodePoolsRequest + * TimeWindow startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.container.v1.TimeWindow * @instance */ - ListNodePoolsRequest.prototype.clusterId = ""; + TimeWindow.prototype.startTime = null; /** - * ListNodePoolsRequest parent. - * @member {string} parent - * @memberof google.container.v1.ListNodePoolsRequest + * TimeWindow endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.container.v1.TimeWindow * @instance */ - ListNodePoolsRequest.prototype.parent = ""; + TimeWindow.prototype.endTime = null; /** - * Creates a new ListNodePoolsRequest instance using the specified properties. + * Creates a new TimeWindow instance using the specified properties. * @function create - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.IListNodePoolsRequest=} [properties] Properties to set - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest instance + * @param {google.container.v1.ITimeWindow=} [properties] Properties to set + * @returns {google.container.v1.TimeWindow} TimeWindow instance */ - ListNodePoolsRequest.create = function create(properties) { - return new ListNodePoolsRequest(properties); + TimeWindow.create = function create(properties) { + return new TimeWindow(properties); }; /** - * Encodes the specified ListNodePoolsRequest message. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. + * Encodes the specified TimeWindow message. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode + * @param {google.container.v1.ITimeWindow} message TimeWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsRequest.encode = function encode(message, writer) { + TimeWindow.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.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.parent); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListNodePoolsRequest message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsRequest.verify|verify} messages. + * Encodes the specified TimeWindow message, length delimited. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.IListNodePoolsRequest} message ListNodePoolsRequest message or plain object to encode + * @param {google.container.v1.ITimeWindow} message TimeWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsRequest.encodeDelimited = function encodeDelimited(message, writer) { + TimeWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNodePoolsRequest message from the specified reader or buffer. + * Decodes a TimeWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @returns {google.container.v1.TimeWindow} TimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsRequest.decode = function decode(reader, length) { + TimeWindow.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.ListNodePoolsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.TimeWindow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 5: - message.parent = reader.string(); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -14821,136 +19819,127 @@ }; /** - * Decodes a ListNodePoolsRequest message from the specified reader or buffer, length delimited. + * Decodes a TimeWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @returns {google.container.v1.TimeWindow} TimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsRequest.decodeDelimited = function decodeDelimited(reader) { + TimeWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNodePoolsRequest message. + * Verifies a TimeWindow message. * @function verify - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNodePoolsRequest.verify = function verify(message) { + TimeWindow.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.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } return null; }; /** - * Creates a ListNodePoolsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TimeWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListNodePoolsRequest} ListNodePoolsRequest + * @returns {google.container.v1.TimeWindow} TimeWindow */ - ListNodePoolsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListNodePoolsRequest) + TimeWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.TimeWindow) return object; - var message = new $root.google.container.v1.ListNodePoolsRequest(); - 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.parent != null) - message.parent = String(object.parent); + var message = new $root.google.container.v1.TimeWindow(); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.container.v1.TimeWindow.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.container.v1.TimeWindow.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } return message; }; /** - * Creates a plain object from a ListNodePoolsRequest message. Also converts values to other types if specified. + * Creates a plain object from a TimeWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @static - * @param {google.container.v1.ListNodePoolsRequest} message ListNodePoolsRequest + * @param {google.container.v1.TimeWindow} message TimeWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNodePoolsRequest.toObject = function toObject(message, options) { + TimeWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.parent = ""; + object.startTime = null; + object.endTime = 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.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this ListNodePoolsRequest to JSON. + * Converts this TimeWindow to JSON. * @function toJSON - * @memberof google.container.v1.ListNodePoolsRequest + * @memberof google.container.v1.TimeWindow * @instance * @returns {Object.} JSON object */ - ListNodePoolsRequest.prototype.toJSON = function toJSON() { + TimeWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListNodePoolsRequest; + return TimeWindow; })(); - v1.GetNodePoolRequest = (function() { + v1.RecurringTimeWindow = (function() { /** - * Properties of a GetNodePoolRequest. + * Properties of a RecurringTimeWindow. * @memberof google.container.v1 - * @interface IGetNodePoolRequest - * @property {string|null} [projectId] GetNodePoolRequest projectId - * @property {string|null} [zone] GetNodePoolRequest zone - * @property {string|null} [clusterId] GetNodePoolRequest clusterId - * @property {string|null} [nodePoolId] GetNodePoolRequest nodePoolId - * @property {string|null} [name] GetNodePoolRequest name + * @interface IRecurringTimeWindow + * @property {google.container.v1.ITimeWindow|null} [window] RecurringTimeWindow window + * @property {string|null} [recurrence] RecurringTimeWindow recurrence */ /** - * Constructs a new GetNodePoolRequest. + * Constructs a new RecurringTimeWindow. * @memberof google.container.v1 - * @classdesc Represents a GetNodePoolRequest. - * @implements IGetNodePoolRequest + * @classdesc Represents a RecurringTimeWindow. + * @implements IRecurringTimeWindow * @constructor - * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set + * @param {google.container.v1.IRecurringTimeWindow=} [properties] Properties to set */ - function GetNodePoolRequest(properties) { + function RecurringTimeWindow(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -14958,127 +19947,88 @@ } /** - * GetNodePoolRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.GetNodePoolRequest - * @instance - */ - GetNodePoolRequest.prototype.projectId = ""; - - /** - * GetNodePoolRequest zone. - * @member {string} zone - * @memberof google.container.v1.GetNodePoolRequest - * @instance - */ - GetNodePoolRequest.prototype.zone = ""; - - /** - * GetNodePoolRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.GetNodePoolRequest - * @instance - */ - GetNodePoolRequest.prototype.clusterId = ""; - - /** - * GetNodePoolRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.GetNodePoolRequest + * RecurringTimeWindow window. + * @member {google.container.v1.ITimeWindow|null|undefined} window + * @memberof google.container.v1.RecurringTimeWindow * @instance */ - GetNodePoolRequest.prototype.nodePoolId = ""; + RecurringTimeWindow.prototype.window = null; /** - * GetNodePoolRequest name. - * @member {string} name - * @memberof google.container.v1.GetNodePoolRequest + * RecurringTimeWindow recurrence. + * @member {string} recurrence + * @memberof google.container.v1.RecurringTimeWindow * @instance */ - GetNodePoolRequest.prototype.name = ""; + RecurringTimeWindow.prototype.recurrence = ""; /** - * Creates a new GetNodePoolRequest instance using the specified properties. + * Creates a new RecurringTimeWindow instance using the specified properties. * @function create - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static - * @param {google.container.v1.IGetNodePoolRequest=} [properties] Properties to set - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest instance + * @param {google.container.v1.IRecurringTimeWindow=} [properties] Properties to set + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow instance */ - GetNodePoolRequest.create = function create(properties) { - return new GetNodePoolRequest(properties); + RecurringTimeWindow.create = function create(properties) { + return new RecurringTimeWindow(properties); }; /** - * Encodes the specified GetNodePoolRequest message. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. + * Encodes the specified RecurringTimeWindow message. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetNodePoolRequest - * @static - * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetNodePoolRequest.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.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + * @memberof google.container.v1.RecurringTimeWindow + * @static + * @param {google.container.v1.IRecurringTimeWindow} message RecurringTimeWindow message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecurringTimeWindow.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.window != null && Object.hasOwnProperty.call(message, "window")) + $root.google.container.v1.TimeWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.recurrence); return writer; }; /** - * Encodes the specified GetNodePoolRequest message, length delimited. Does not implicitly {@link google.container.v1.GetNodePoolRequest.verify|verify} messages. + * Encodes the specified RecurringTimeWindow message, length delimited. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static - * @param {google.container.v1.IGetNodePoolRequest} message GetNodePoolRequest message or plain object to encode + * @param {google.container.v1.IRecurringTimeWindow} message RecurringTimeWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetNodePoolRequest.encodeDelimited = function encodeDelimited(message, writer) { + RecurringTimeWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetNodePoolRequest message from the specified reader or buffer. + * Decodes a RecurringTimeWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNodePoolRequest.decode = function decode(reader, length) { + RecurringTimeWindow.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.GetNodePoolRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.RecurringTimeWindow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.window = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 4: - message.nodePoolId = reader.string(); - break; - case 6: - message.name = reader.string(); + message.recurrence = reader.string(); break; default: reader.skipType(tag & 7); @@ -15089,392 +20039,211 @@ }; /** - * Decodes a GetNodePoolRequest message from the specified reader or buffer, length delimited. + * Decodes a RecurringTimeWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetNodePoolRequest.decodeDelimited = function decodeDelimited(reader) { + RecurringTimeWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetNodePoolRequest message. + * Verifies a RecurringTimeWindow message. * @function verify - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetNodePoolRequest.verify = function verify(message) { + RecurringTimeWindow.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.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.window != null && message.hasOwnProperty("window")) { + var error = $root.google.container.v1.TimeWindow.verify(message.window); + if (error) + return "window." + error; + } + if (message.recurrence != null && message.hasOwnProperty("recurrence")) + if (!$util.isString(message.recurrence)) + return "recurrence: string expected"; return null; }; /** - * Creates a GetNodePoolRequest message from a plain object. Also converts values to their respective internal types. + * Creates a RecurringTimeWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetNodePoolRequest} GetNodePoolRequest + * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow */ - GetNodePoolRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetNodePoolRequest) + RecurringTimeWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.RecurringTimeWindow) return object; - var message = new $root.google.container.v1.GetNodePoolRequest(); - 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.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.RecurringTimeWindow(); + if (object.window != null) { + if (typeof object.window !== "object") + throw TypeError(".google.container.v1.RecurringTimeWindow.window: object expected"); + message.window = $root.google.container.v1.TimeWindow.fromObject(object.window); + } + if (object.recurrence != null) + message.recurrence = String(object.recurrence); return message; }; /** - * Creates a plain object from a GetNodePoolRequest message. Also converts values to other types if specified. + * Creates a plain object from a RecurringTimeWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetNodePoolRequest + * @memberof google.container.v1.RecurringTimeWindow * @static - * @param {google.container.v1.GetNodePoolRequest} message GetNodePoolRequest + * @param {google.container.v1.RecurringTimeWindow} message RecurringTimeWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetNodePoolRequest.toObject = function toObject(message, options) { + RecurringTimeWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePoolId = ""; - object.name = ""; + object.window = null; + object.recurrence = ""; } - 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; - - /** - * Converts this GetNodePoolRequest to JSON. - * @function toJSON - * @memberof google.container.v1.GetNodePoolRequest - * @instance - * @returns {Object.} JSON object - */ - GetNodePoolRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetNodePoolRequest; - })(); - - v1.NodePool = (function() { - - /** - * Properties of a NodePool. - * @memberof google.container.v1 - * @interface INodePool - * @property {string|null} [name] NodePool name - * @property {google.container.v1.INodeConfig|null} [config] NodePool config - * @property {number|null} [initialNodeCount] NodePool initialNodeCount - * @property {string|null} [selfLink] NodePool selfLink - * @property {string|null} [version] NodePool version - * @property {Array.|null} [instanceGroupUrls] NodePool instanceGroupUrls - * @property {google.container.v1.NodePool.Status|null} [status] NodePool status - * @property {string|null} [statusMessage] NodePool statusMessage - * @property {google.container.v1.INodePoolAutoscaling|null} [autoscaling] NodePool autoscaling - * @property {google.container.v1.INodeManagement|null} [management] NodePool management - * @property {google.container.v1.IMaxPodsConstraint|null} [maxPodsConstraint] NodePool maxPodsConstraint - * @property {Array.|null} [conditions] NodePool conditions - * @property {number|null} [podIpv4CidrSize] NodePool podIpv4CidrSize - */ - - /** - * Constructs a new NodePool. - * @memberof google.container.v1 - * @classdesc Represents a NodePool. - * @implements INodePool - * @constructor - * @param {google.container.v1.INodePool=} [properties] Properties to set - */ - function NodePool(properties) { - 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]]; - } - - /** - * NodePool name. - * @member {string} name - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.name = ""; - - /** - * NodePool config. - * @member {google.container.v1.INodeConfig|null|undefined} config - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.config = null; - - /** - * NodePool initialNodeCount. - * @member {number} initialNodeCount - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.initialNodeCount = 0; - - /** - * NodePool selfLink. - * @member {string} selfLink - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.selfLink = ""; - - /** - * NodePool version. - * @member {string} version - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.version = ""; - - /** - * NodePool instanceGroupUrls. - * @member {Array.} instanceGroupUrls - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.instanceGroupUrls = $util.emptyArray; - - /** - * NodePool status. - * @member {google.container.v1.NodePool.Status} status - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.status = 0; - - /** - * NodePool statusMessage. - * @member {string} statusMessage - * @memberof google.container.v1.NodePool - * @instance - */ - NodePool.prototype.statusMessage = ""; + if (message.window != null && message.hasOwnProperty("window")) + object.window = $root.google.container.v1.TimeWindow.toObject(message.window, options); + if (message.recurrence != null && message.hasOwnProperty("recurrence")) + object.recurrence = message.recurrence; + return object; + }; /** - * NodePool autoscaling. - * @member {google.container.v1.INodePoolAutoscaling|null|undefined} autoscaling - * @memberof google.container.v1.NodePool + * Converts this RecurringTimeWindow to JSON. + * @function toJSON + * @memberof google.container.v1.RecurringTimeWindow * @instance + * @returns {Object.} JSON object */ - NodePool.prototype.autoscaling = null; + RecurringTimeWindow.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return RecurringTimeWindow; + })(); + + v1.DailyMaintenanceWindow = (function() { /** - * NodePool management. - * @member {google.container.v1.INodeManagement|null|undefined} management - * @memberof google.container.v1.NodePool - * @instance + * Properties of a DailyMaintenanceWindow. + * @memberof google.container.v1 + * @interface IDailyMaintenanceWindow + * @property {string|null} [startTime] DailyMaintenanceWindow startTime + * @property {string|null} [duration] DailyMaintenanceWindow duration */ - NodePool.prototype.management = null; /** - * NodePool maxPodsConstraint. - * @member {google.container.v1.IMaxPodsConstraint|null|undefined} maxPodsConstraint - * @memberof google.container.v1.NodePool - * @instance + * Constructs a new DailyMaintenanceWindow. + * @memberof google.container.v1 + * @classdesc Represents a DailyMaintenanceWindow. + * @implements IDailyMaintenanceWindow + * @constructor + * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set */ - NodePool.prototype.maxPodsConstraint = null; + function DailyMaintenanceWindow(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]]; + } /** - * NodePool conditions. - * @member {Array.} conditions - * @memberof google.container.v1.NodePool + * DailyMaintenanceWindow startTime. + * @member {string} startTime + * @memberof google.container.v1.DailyMaintenanceWindow * @instance */ - NodePool.prototype.conditions = $util.emptyArray; + DailyMaintenanceWindow.prototype.startTime = ""; /** - * NodePool podIpv4CidrSize. - * @member {number} podIpv4CidrSize - * @memberof google.container.v1.NodePool + * DailyMaintenanceWindow duration. + * @member {string} duration + * @memberof google.container.v1.DailyMaintenanceWindow * @instance */ - NodePool.prototype.podIpv4CidrSize = 0; + DailyMaintenanceWindow.prototype.duration = ""; /** - * Creates a new NodePool instance using the specified properties. + * Creates a new DailyMaintenanceWindow instance using the specified properties. * @function create - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.INodePool=} [properties] Properties to set - * @returns {google.container.v1.NodePool} NodePool instance + * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow instance */ - NodePool.create = function create(properties) { - return new NodePool(properties); + DailyMaintenanceWindow.create = function create(properties) { + return new DailyMaintenanceWindow(properties); }; /** - * Encodes the specified NodePool message. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. + * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.INodePool} message NodePool message or plain object to encode + * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePool.encode = function encode(message, writer) { + DailyMaintenanceWindow.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.config != null && Object.hasOwnProperty.call(message, "config")) - $root.google.container.v1.NodeConfig.encode(message.config, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.initialNodeCount != null && Object.hasOwnProperty.call(message, "initialNodeCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initialNodeCount); - if (message.autoscaling != null && Object.hasOwnProperty.call(message, "autoscaling")) - $root.google.container.v1.NodePoolAutoscaling.encode(message.autoscaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.management != null && Object.hasOwnProperty.call(message, "management")) - $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.maxPodsConstraint != null && Object.hasOwnProperty.call(message, "maxPodsConstraint")) - $root.google.container.v1.MaxPodsConstraint.encode(message.maxPodsConstraint, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.podIpv4CidrSize != null && Object.hasOwnProperty.call(message, "podIpv4CidrSize")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.podIpv4CidrSize); - if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) - writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 101, wireType 2 =*/810).string(message.version); - if (message.instanceGroupUrls != null && message.instanceGroupUrls.length) - for (var i = 0; i < message.instanceGroupUrls.length; ++i) - writer.uint32(/* id 102, wireType 2 =*/818).string(message.instanceGroupUrls[i]); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 103, wireType 0 =*/824).int32(message.status); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 104, wireType 2 =*/834).string(message.statusMessage); - 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 105, wireType 2 =*/842).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.startTime); + if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.duration); return writer; }; /** - * Encodes the specified NodePool message, length delimited. Does not implicitly {@link google.container.v1.NodePool.verify|verify} messages. + * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.INodePool} message NodePool message or plain object to encode + * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePool.encodeDelimited = function encodeDelimited(message, writer) { + DailyMaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodePool message from the specified reader or buffer. + * Decodes a DailyMaintenanceWindow message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodePool} NodePool + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePool.decode = function decode(reader, length) { + DailyMaintenanceWindow.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.NodePool(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.DailyMaintenanceWindow(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; case 2: - message.config = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); + message.startTime = reader.string(); break; case 3: - message.initialNodeCount = reader.int32(); - break; - case 100: - message.selfLink = reader.string(); - break; - case 101: - message.version = reader.string(); - break; - case 102: - if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) - message.instanceGroupUrls = []; - message.instanceGroupUrls.push(reader.string()); - break; - case 103: - message.status = reader.int32(); - break; - case 104: - message.statusMessage = reader.string(); - break; - case 4: - message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); - break; - case 5: - message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); - break; - case 6: - message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32()); - break; - case 105: - if (!(message.conditions && message.conditions.length)) - message.conditions = []; - message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); - break; - case 7: - message.podIpv4CidrSize = reader.int32(); + message.duration = reader.string(); break; default: reader.skipType(tag & 7); @@ -15485,319 +20254,121 @@ }; /** - * Decodes a NodePool message from the specified reader or buffer, length delimited. + * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodePool} NodePool + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePool.decodeDelimited = function decodeDelimited(reader) { + DailyMaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodePool message. + * Verifies a DailyMaintenanceWindow message. * @function verify - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodePool.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.config != null && message.hasOwnProperty("config")) { - var error = $root.google.container.v1.NodeConfig.verify(message.config); - if (error) - return "config." + error; - } - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) - if (!$util.isInteger(message.initialNodeCount)) - return "initialNodeCount: integer expected"; - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - if (!$util.isString(message.selfLink)) - return "selfLink: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: 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.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.autoscaling != null && message.hasOwnProperty("autoscaling")) { - var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.autoscaling); - if (error) - return "autoscaling." + error; - } - if (message.management != null && message.hasOwnProperty("management")) { - var error = $root.google.container.v1.NodeManagement.verify(message.management); - if (error) - return "management." + error; - } - if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) { - var error = $root.google.container.v1.MaxPodsConstraint.verify(message.maxPodsConstraint); - if (error) - return "maxPodsConstraint." + error; - } - 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; - } - } - if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) - if (!$util.isInteger(message.podIpv4CidrSize)) - return "podIpv4CidrSize: integer expected"; + */ + DailyMaintenanceWindow.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) + if (!$util.isString(message.startTime)) + return "startTime: string expected"; + if (message.duration != null && message.hasOwnProperty("duration")) + if (!$util.isString(message.duration)) + return "duration: string expected"; return null; }; /** - * Creates a NodePool message from a plain object. Also converts values to their respective internal types. + * Creates a DailyMaintenanceWindow message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodePool} NodePool + * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow */ - NodePool.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodePool) + DailyMaintenanceWindow.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DailyMaintenanceWindow) return object; - var message = new $root.google.container.v1.NodePool(); - if (object.name != null) - message.name = String(object.name); - if (object.config != null) { - if (typeof object.config !== "object") - throw TypeError(".google.container.v1.NodePool.config: object expected"); - message.config = $root.google.container.v1.NodeConfig.fromObject(object.config); - } - if (object.initialNodeCount != null) - message.initialNodeCount = object.initialNodeCount | 0; - if (object.selfLink != null) - message.selfLink = String(object.selfLink); - if (object.version != null) - message.version = String(object.version); - if (object.instanceGroupUrls) { - if (!Array.isArray(object.instanceGroupUrls)) - throw TypeError(".google.container.v1.NodePool.instanceGroupUrls: array expected"); - message.instanceGroupUrls = []; - for (var i = 0; i < object.instanceGroupUrls.length; ++i) - message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]); - } - 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 "RUNNING_WITH_ERROR": - case 3: - message.status = 3; - break; - case "RECONCILING": - case 4: - message.status = 4; - break; - case "STOPPING": - case 5: - message.status = 5; - break; - case "ERROR": - case 6: - message.status = 6; - break; - } - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); - if (object.autoscaling != null) { - if (typeof object.autoscaling !== "object") - throw TypeError(".google.container.v1.NodePool.autoscaling: object expected"); - message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.fromObject(object.autoscaling); - } - if (object.management != null) { - if (typeof object.management !== "object") - throw TypeError(".google.container.v1.NodePool.management: object expected"); - message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); - } - if (object.maxPodsConstraint != null) { - if (typeof object.maxPodsConstraint !== "object") - throw TypeError(".google.container.v1.NodePool.maxPodsConstraint: object expected"); - message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.fromObject(object.maxPodsConstraint); - } - if (object.conditions) { - if (!Array.isArray(object.conditions)) - throw TypeError(".google.container.v1.NodePool.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.NodePool.conditions: object expected"); - message.conditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.conditions[i]); - } - } - if (object.podIpv4CidrSize != null) - message.podIpv4CidrSize = object.podIpv4CidrSize | 0; + var message = new $root.google.container.v1.DailyMaintenanceWindow(); + if (object.startTime != null) + message.startTime = String(object.startTime); + if (object.duration != null) + message.duration = String(object.duration); return message; }; /** - * Creates a plain object from a NodePool message. Also converts values to other types if specified. + * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @static - * @param {google.container.v1.NodePool} message NodePool + * @param {google.container.v1.DailyMaintenanceWindow} message DailyMaintenanceWindow * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodePool.toObject = function toObject(message, options) { + DailyMaintenanceWindow.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.instanceGroupUrls = []; - object.conditions = []; - } if (options.defaults) { - object.name = ""; - object.config = null; - object.initialNodeCount = 0; - object.autoscaling = null; - object.management = null; - object.maxPodsConstraint = null; - object.podIpv4CidrSize = 0; - object.selfLink = ""; - object.version = ""; - object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; - object.statusMessage = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.config != null && message.hasOwnProperty("config")) - object.config = $root.google.container.v1.NodeConfig.toObject(message.config, options); - if (message.initialNodeCount != null && message.hasOwnProperty("initialNodeCount")) - object.initialNodeCount = message.initialNodeCount; - if (message.autoscaling != null && message.hasOwnProperty("autoscaling")) - object.autoscaling = $root.google.container.v1.NodePoolAutoscaling.toObject(message.autoscaling, options); - if (message.management != null && message.hasOwnProperty("management")) - object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); - if (message.maxPodsConstraint != null && message.hasOwnProperty("maxPodsConstraint")) - object.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.toObject(message.maxPodsConstraint, options); - if (message.podIpv4CidrSize != null && message.hasOwnProperty("podIpv4CidrSize")) - object.podIpv4CidrSize = message.podIpv4CidrSize; - if (message.selfLink != null && message.hasOwnProperty("selfLink")) - object.selfLink = message.selfLink; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - 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.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.google.container.v1.NodePool.Status[message.status] : message.status; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - object.statusMessage = message.statusMessage; - 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); + object.startTime = ""; + object.duration = ""; } + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = message.startTime; + if (message.duration != null && message.hasOwnProperty("duration")) + object.duration = message.duration; return object; }; /** - * Converts this NodePool to JSON. + * Converts this DailyMaintenanceWindow to JSON. * @function toJSON - * @memberof google.container.v1.NodePool + * @memberof google.container.v1.DailyMaintenanceWindow * @instance * @returns {Object.} JSON object */ - NodePool.prototype.toJSON = function toJSON() { + DailyMaintenanceWindow.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Status enum. - * @name google.container.v1.NodePool.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} RUNNING_WITH_ERROR=3 RUNNING_WITH_ERROR value - * @property {number} RECONCILING=4 RECONCILING value - * @property {number} STOPPING=5 STOPPING value - * @property {number} ERROR=6 ERROR value - */ - NodePool.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] = "RUNNING_WITH_ERROR"] = 3; - values[valuesById[4] = "RECONCILING"] = 4; - values[valuesById[5] = "STOPPING"] = 5; - values[valuesById[6] = "ERROR"] = 6; - return values; - })(); - - return NodePool; + return DailyMaintenanceWindow; })(); - v1.NodeManagement = (function() { + v1.SetNodePoolManagementRequest = (function() { /** - * Properties of a NodeManagement. + * Properties of a SetNodePoolManagementRequest. * @memberof google.container.v1 - * @interface INodeManagement - * @property {boolean|null} [autoUpgrade] NodeManagement autoUpgrade - * @property {boolean|null} [autoRepair] NodeManagement autoRepair - * @property {google.container.v1.IAutoUpgradeOptions|null} [upgradeOptions] NodeManagement upgradeOptions + * @interface ISetNodePoolManagementRequest + * @property {string|null} [projectId] SetNodePoolManagementRequest projectId + * @property {string|null} [zone] SetNodePoolManagementRequest zone + * @property {string|null} [clusterId] SetNodePoolManagementRequest clusterId + * @property {string|null} [nodePoolId] SetNodePoolManagementRequest nodePoolId + * @property {google.container.v1.INodeManagement|null} [management] SetNodePoolManagementRequest management + * @property {string|null} [name] SetNodePoolManagementRequest name */ /** - * Constructs a new NodeManagement. + * Constructs a new SetNodePoolManagementRequest. * @memberof google.container.v1 - * @classdesc Represents a NodeManagement. - * @implements INodeManagement + * @classdesc Represents a SetNodePoolManagementRequest. + * @implements ISetNodePoolManagementRequest * @constructor - * @param {google.container.v1.INodeManagement=} [properties] Properties to set + * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set */ - function NodeManagement(properties) { + function SetNodePoolManagementRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -15805,101 +20376,140 @@ } /** - * NodeManagement autoUpgrade. - * @member {boolean} autoUpgrade - * @memberof google.container.v1.NodeManagement + * SetNodePoolManagementRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance */ - NodeManagement.prototype.autoUpgrade = false; + SetNodePoolManagementRequest.prototype.projectId = ""; /** - * NodeManagement autoRepair. - * @member {boolean} autoRepair - * @memberof google.container.v1.NodeManagement + * SetNodePoolManagementRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.zone = ""; + + /** + * SetNodePoolManagementRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.clusterId = ""; + + /** + * SetNodePoolManagementRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.SetNodePoolManagementRequest + * @instance + */ + SetNodePoolManagementRequest.prototype.nodePoolId = ""; + + /** + * SetNodePoolManagementRequest management. + * @member {google.container.v1.INodeManagement|null|undefined} management + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance */ - NodeManagement.prototype.autoRepair = false; + SetNodePoolManagementRequest.prototype.management = null; /** - * NodeManagement upgradeOptions. - * @member {google.container.v1.IAutoUpgradeOptions|null|undefined} upgradeOptions - * @memberof google.container.v1.NodeManagement + * SetNodePoolManagementRequest name. + * @member {string} name + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance */ - NodeManagement.prototype.upgradeOptions = null; + SetNodePoolManagementRequest.prototype.name = ""; /** - * Creates a new NodeManagement instance using the specified properties. + * Creates a new SetNodePoolManagementRequest instance using the specified properties. * @function create - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.INodeManagement=} [properties] Properties to set - * @returns {google.container.v1.NodeManagement} NodeManagement instance + * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest instance */ - NodeManagement.create = function create(properties) { - return new NodeManagement(properties); + SetNodePoolManagementRequest.create = function create(properties) { + return new SetNodePoolManagementRequest(properties); }; /** - * Encodes the specified NodeManagement message. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. + * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode + * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeManagement.encode = function encode(message, writer) { + SetNodePoolManagementRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgrade != null && Object.hasOwnProperty.call(message, "autoUpgrade")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.autoUpgrade); - if (message.autoRepair != null && Object.hasOwnProperty.call(message, "autoRepair")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.autoRepair); - if (message.upgradeOptions != null && Object.hasOwnProperty.call(message, "upgradeOptions")) - $root.google.container.v1.AutoUpgradeOptions.encode(message.upgradeOptions, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + 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.management != null && Object.hasOwnProperty.call(message, "management")) + $root.google.container.v1.NodeManagement.encode(message.management, 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); return writer; }; /** - * Encodes the specified NodeManagement message, length delimited. Does not implicitly {@link google.container.v1.NodeManagement.verify|verify} messages. + * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.INodeManagement} message NodeManagement message or plain object to encode + * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodeManagement.encodeDelimited = function encodeDelimited(message, writer) { + SetNodePoolManagementRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodeManagement message from the specified reader or buffer. + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodeManagement} NodeManagement + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeManagement.decode = function decode(reader, length) { + SetNodePoolManagementRequest.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.NodeManagement(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNodePoolManagementRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.autoUpgrade = reader.bool(); + message.projectId = reader.string(); break; case 2: - message.autoRepair = reader.bool(); + message.zone = reader.string(); break; - case 10: - message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.decode(reader, reader.uint32()); + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.nodePoolId = reader.string(); + break; + case 5: + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + case 7: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -15910,219 +20520,299 @@ }; /** - * Decodes a NodeManagement message from the specified reader or buffer, length delimited. + * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodeManagement} NodeManagement + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodeManagement.decodeDelimited = function decodeDelimited(reader) { + SetNodePoolManagementRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodeManagement message. + * Verifies a SetNodePoolManagementRequest message. * @function verify - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodeManagement.verify = function verify(message) { + SetNodePoolManagementRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) - if (typeof message.autoUpgrade !== "boolean") - return "autoUpgrade: boolean expected"; - if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) - if (typeof message.autoRepair !== "boolean") - return "autoRepair: boolean expected"; - if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) { - var error = $root.google.container.v1.AutoUpgradeOptions.verify(message.upgradeOptions); + 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.management != null && message.hasOwnProperty("management")) { + var error = $root.google.container.v1.NodeManagement.verify(message.management); if (error) - return "upgradeOptions." + error; + return "management." + error; } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return 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. * @function fromObject - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodeManagement} NodeManagement + * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest */ - NodeManagement.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodeManagement) + SetNodePoolManagementRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNodePoolManagementRequest) return object; - var message = new $root.google.container.v1.NodeManagement(); - if (object.autoUpgrade != null) - message.autoUpgrade = Boolean(object.autoUpgrade); - if (object.autoRepair != null) - message.autoRepair = Boolean(object.autoRepair); - if (object.upgradeOptions != null) { - if (typeof object.upgradeOptions !== "object") - throw TypeError(".google.container.v1.NodeManagement.upgradeOptions: object expected"); - message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.fromObject(object.upgradeOptions); + var message = new $root.google.container.v1.SetNodePoolManagementRequest(); + 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.management != null) { + if (typeof object.management !== "object") + throw TypeError(".google.container.v1.SetNodePoolManagementRequest.management: object expected"); + message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); } + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a NodeManagement message. Also converts values to other types if specified. + * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @static - * @param {google.container.v1.NodeManagement} message NodeManagement + * @param {google.container.v1.SetNodePoolManagementRequest} message SetNodePoolManagementRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodeManagement.toObject = function toObject(message, options) { + SetNodePoolManagementRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.autoUpgrade = false; - object.autoRepair = false; - object.upgradeOptions = null; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.management = null; + object.name = ""; } - if (message.autoUpgrade != null && message.hasOwnProperty("autoUpgrade")) - object.autoUpgrade = message.autoUpgrade; - if (message.autoRepair != null && message.hasOwnProperty("autoRepair")) - object.autoRepair = message.autoRepair; - if (message.upgradeOptions != null && message.hasOwnProperty("upgradeOptions")) - object.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.toObject(message.upgradeOptions, options); + 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.management != null && message.hasOwnProperty("management")) + object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this NodeManagement to JSON. + * Converts this SetNodePoolManagementRequest to JSON. * @function toJSON - * @memberof google.container.v1.NodeManagement + * @memberof google.container.v1.SetNodePoolManagementRequest * @instance * @returns {Object.} JSON object */ - NodeManagement.prototype.toJSON = function toJSON() { + SetNodePoolManagementRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NodeManagement; + return SetNodePoolManagementRequest; })(); - v1.AutoUpgradeOptions = (function() { + v1.SetNodePoolSizeRequest = (function() { /** - * Properties of an AutoUpgradeOptions. + * Properties of a SetNodePoolSizeRequest. * @memberof google.container.v1 - * @interface IAutoUpgradeOptions - * @property {string|null} [autoUpgradeStartTime] AutoUpgradeOptions autoUpgradeStartTime - * @property {string|null} [description] AutoUpgradeOptions description + * @interface ISetNodePoolSizeRequest + * @property {string|null} [projectId] SetNodePoolSizeRequest projectId + * @property {string|null} [zone] SetNodePoolSizeRequest zone + * @property {string|null} [clusterId] SetNodePoolSizeRequest clusterId + * @property {string|null} [nodePoolId] SetNodePoolSizeRequest nodePoolId + * @property {number|null} [nodeCount] SetNodePoolSizeRequest nodeCount + * @property {string|null} [name] SetNodePoolSizeRequest name + */ + + /** + * Constructs a new SetNodePoolSizeRequest. + * @memberof google.container.v1 + * @classdesc Represents a SetNodePoolSizeRequest. + * @implements ISetNodePoolSizeRequest + * @constructor + * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + */ + function SetNodePoolSizeRequest(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]]; + } + + /** + * SetNodePoolSizeRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.projectId = ""; + + /** + * SetNodePoolSizeRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance + */ + SetNodePoolSizeRequest.prototype.zone = ""; + + /** + * SetNodePoolSizeRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance */ + SetNodePoolSizeRequest.prototype.clusterId = ""; /** - * Constructs a new AutoUpgradeOptions. - * @memberof google.container.v1 - * @classdesc Represents an AutoUpgradeOptions. - * @implements IAutoUpgradeOptions - * @constructor - * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set + * SetNodePoolSizeRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.SetNodePoolSizeRequest + * @instance */ - function AutoUpgradeOptions(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]]; - } + SetNodePoolSizeRequest.prototype.nodePoolId = ""; /** - * AutoUpgradeOptions autoUpgradeStartTime. - * @member {string} autoUpgradeStartTime - * @memberof google.container.v1.AutoUpgradeOptions + * SetNodePoolSizeRequest nodeCount. + * @member {number} nodeCount + * @memberof google.container.v1.SetNodePoolSizeRequest * @instance */ - AutoUpgradeOptions.prototype.autoUpgradeStartTime = ""; + SetNodePoolSizeRequest.prototype.nodeCount = 0; /** - * AutoUpgradeOptions description. - * @member {string} description - * @memberof google.container.v1.AutoUpgradeOptions + * SetNodePoolSizeRequest name. + * @member {string} name + * @memberof google.container.v1.SetNodePoolSizeRequest * @instance */ - AutoUpgradeOptions.prototype.description = ""; + SetNodePoolSizeRequest.prototype.name = ""; /** - * Creates a new AutoUpgradeOptions instance using the specified properties. + * Creates a new SetNodePoolSizeRequest instance using the specified properties. * @function create - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.IAutoUpgradeOptions=} [properties] Properties to set - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions instance + * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest instance */ - AutoUpgradeOptions.create = function create(properties) { - return new AutoUpgradeOptions(properties); + SetNodePoolSizeRequest.create = function create(properties) { + return new SetNodePoolSizeRequest(properties); }; /** - * Encodes the specified AutoUpgradeOptions message. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. + * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode + * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoUpgradeOptions.encode = function encode(message, writer) { + SetNodePoolSizeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.autoUpgradeStartTime != null && Object.hasOwnProperty.call(message, "autoUpgradeStartTime")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.autoUpgradeStartTime); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + 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.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nodeCount); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified AutoUpgradeOptions message, length delimited. Does not implicitly {@link google.container.v1.AutoUpgradeOptions.verify|verify} messages. + * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.IAutoUpgradeOptions} message AutoUpgradeOptions message or plain object to encode + * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoUpgradeOptions.encodeDelimited = function encodeDelimited(message, writer) { + SetNodePoolSizeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutoUpgradeOptions message from the specified reader or buffer. + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoUpgradeOptions.decode = function decode(reader, length) { + SetNodePoolSizeRequest.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.AutoUpgradeOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNodePoolSizeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.autoUpgradeStartTime = reader.string(); + message.projectId = reader.string(); break; case 2: - message.description = reader.string(); + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 4: + message.nodePoolId = reader.string(); + break; + case 5: + message.nodeCount = reader.int32(); + break; + case 7: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -16133,206 +20823,280 @@ }; /** - * Decodes an AutoUpgradeOptions message from the specified reader or buffer, length delimited. + * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoUpgradeOptions.decodeDelimited = function decodeDelimited(reader) { + SetNodePoolSizeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutoUpgradeOptions message. + * Verifies a SetNodePoolSizeRequest message. * @function verify - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutoUpgradeOptions.verify = function verify(message) { + SetNodePoolSizeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) - if (!$util.isString(message.autoUpgradeStartTime)) - return "autoUpgradeStartTime: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: 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.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; + if (message.nodeCount != null && message.hasOwnProperty("nodeCount")) + if (!$util.isInteger(message.nodeCount)) + return "nodeCount: integer expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return 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. * @function fromObject - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.AutoUpgradeOptions} AutoUpgradeOptions + * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest */ - AutoUpgradeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.AutoUpgradeOptions) + SetNodePoolSizeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNodePoolSizeRequest) return object; - var message = new $root.google.container.v1.AutoUpgradeOptions(); - if (object.autoUpgradeStartTime != null) - message.autoUpgradeStartTime = String(object.autoUpgradeStartTime); - if (object.description != null) - message.description = String(object.description); + var message = new $root.google.container.v1.SetNodePoolSizeRequest(); + 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.nodeCount != null) + message.nodeCount = object.nodeCount | 0; + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an AutoUpgradeOptions message. Also converts values to other types if specified. + * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @static - * @param {google.container.v1.AutoUpgradeOptions} message AutoUpgradeOptions + * @param {google.container.v1.SetNodePoolSizeRequest} message SetNodePoolSizeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutoUpgradeOptions.toObject = function toObject(message, options) { + SetNodePoolSizeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.autoUpgradeStartTime = ""; - object.description = ""; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.nodeCount = 0; + object.name = ""; } - if (message.autoUpgradeStartTime != null && message.hasOwnProperty("autoUpgradeStartTime")) - object.autoUpgradeStartTime = message.autoUpgradeStartTime; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + 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.nodeCount != null && message.hasOwnProperty("nodeCount")) + object.nodeCount = message.nodeCount; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this AutoUpgradeOptions to JSON. + * Converts this SetNodePoolSizeRequest to JSON. * @function toJSON - * @memberof google.container.v1.AutoUpgradeOptions + * @memberof google.container.v1.SetNodePoolSizeRequest * @instance * @returns {Object.} JSON object */ - AutoUpgradeOptions.prototype.toJSON = function toJSON() { + SetNodePoolSizeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AutoUpgradeOptions; + return SetNodePoolSizeRequest; })(); - v1.MaintenancePolicy = (function() { + v1.RollbackNodePoolUpgradeRequest = (function() { /** - * Properties of a MaintenancePolicy. + * Properties of a RollbackNodePoolUpgradeRequest. * @memberof google.container.v1 - * @interface IMaintenancePolicy - * @property {google.container.v1.IMaintenanceWindow|null} [window] MaintenancePolicy window - * @property {string|null} [resourceVersion] MaintenancePolicy resourceVersion + * @interface IRollbackNodePoolUpgradeRequest + * @property {string|null} [projectId] RollbackNodePoolUpgradeRequest projectId + * @property {string|null} [zone] RollbackNodePoolUpgradeRequest zone + * @property {string|null} [clusterId] RollbackNodePoolUpgradeRequest clusterId + * @property {string|null} [nodePoolId] RollbackNodePoolUpgradeRequest nodePoolId + * @property {string|null} [name] RollbackNodePoolUpgradeRequest name + */ + + /** + * Constructs a new RollbackNodePoolUpgradeRequest. + * @memberof google.container.v1 + * @classdesc Represents a RollbackNodePoolUpgradeRequest. + * @implements IRollbackNodePoolUpgradeRequest + * @constructor + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set + */ + function RollbackNodePoolUpgradeRequest(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]]; + } + + /** + * RollbackNodePoolUpgradeRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance + */ + RollbackNodePoolUpgradeRequest.prototype.projectId = ""; + + /** + * RollbackNodePoolUpgradeRequest zone. + * @member {string} zone + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance */ + RollbackNodePoolUpgradeRequest.prototype.zone = ""; /** - * Constructs a new MaintenancePolicy. - * @memberof google.container.v1 - * @classdesc Represents a MaintenancePolicy. - * @implements IMaintenancePolicy - * @constructor - * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set + * RollbackNodePoolUpgradeRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance */ - function MaintenancePolicy(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]]; - } + RollbackNodePoolUpgradeRequest.prototype.clusterId = ""; /** - * MaintenancePolicy window. - * @member {google.container.v1.IMaintenanceWindow|null|undefined} window - * @memberof google.container.v1.MaintenancePolicy + * RollbackNodePoolUpgradeRequest nodePoolId. + * @member {string} nodePoolId + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance */ - MaintenancePolicy.prototype.window = null; + RollbackNodePoolUpgradeRequest.prototype.nodePoolId = ""; /** - * MaintenancePolicy resourceVersion. - * @member {string} resourceVersion - * @memberof google.container.v1.MaintenancePolicy + * RollbackNodePoolUpgradeRequest name. + * @member {string} name + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance */ - MaintenancePolicy.prototype.resourceVersion = ""; + RollbackNodePoolUpgradeRequest.prototype.name = ""; /** - * Creates a new MaintenancePolicy instance using the specified properties. + * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. * @function create - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.IMaintenancePolicy=} [properties] Properties to set - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy instance + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest instance */ - MaintenancePolicy.create = function create(properties) { - return new MaintenancePolicy(properties); + RollbackNodePoolUpgradeRequest.create = function create(properties) { + return new RollbackNodePoolUpgradeRequest(properties); }; /** - * Encodes the specified MaintenancePolicy message. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. + * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenancePolicy.encode = function encode(message, writer) { + RollbackNodePoolUpgradeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && Object.hasOwnProperty.call(message, "window")) - $root.google.container.v1.MaintenanceWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.resourceVersion != null && Object.hasOwnProperty.call(message, "resourceVersion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resourceVersion); + 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.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified MaintenancePolicy message, length delimited. Does not implicitly {@link google.container.v1.MaintenancePolicy.verify|verify} messages. + * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.IMaintenancePolicy} message MaintenancePolicy message or plain object to encode + * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenancePolicy.encodeDelimited = function encodeDelimited(message, writer) { + RollbackNodePoolUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaintenancePolicy message from the specified reader or buffer. + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenancePolicy.decode = function decode(reader, length) { + RollbackNodePoolUpgradeRequest.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.MaintenancePolicy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.window = $root.google.container.v1.MaintenanceWindow.decode(reader, reader.uint32()); + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); break; case 3: - message.resourceVersion = reader.string(); + message.clusterId = reader.string(); + break; + case 4: + message.nodePoolId = reader.string(); + break; + case 6: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -16343,124 +21107,141 @@ }; /** - * Decodes a MaintenancePolicy message from the specified reader or buffer, length delimited. + * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenancePolicy.decodeDelimited = function decodeDelimited(reader) { + RollbackNodePoolUpgradeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaintenancePolicy message. + * Verifies a RollbackNodePoolUpgradeRequest message. * @function verify - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaintenancePolicy.verify = function verify(message) { + RollbackNodePoolUpgradeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.window != null && message.hasOwnProperty("window")) { - var error = $root.google.container.v1.MaintenanceWindow.verify(message.window); - if (error) - return "window." + error; - } - if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) - if (!$util.isString(message.resourceVersion)) - return "resourceVersion: 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.nodePoolId != null && message.hasOwnProperty("nodePoolId")) + if (!$util.isString(message.nodePoolId)) + return "nodePoolId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return 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. * @function fromObject - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MaintenancePolicy} MaintenancePolicy + * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest */ - MaintenancePolicy.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MaintenancePolicy) + RollbackNodePoolUpgradeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.RollbackNodePoolUpgradeRequest) return object; - var message = new $root.google.container.v1.MaintenancePolicy(); - if (object.window != null) { - if (typeof object.window !== "object") - throw TypeError(".google.container.v1.MaintenancePolicy.window: object expected"); - message.window = $root.google.container.v1.MaintenanceWindow.fromObject(object.window); - } - if (object.resourceVersion != null) - message.resourceVersion = String(object.resourceVersion); + var message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); + 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.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a MaintenancePolicy message. Also converts values to other types if specified. + * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @static - * @param {google.container.v1.MaintenancePolicy} message MaintenancePolicy + * @param {google.container.v1.RollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaintenancePolicy.toObject = function toObject(message, options) { + RollbackNodePoolUpgradeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.window = null; - object.resourceVersion = ""; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.nodePoolId = ""; + object.name = ""; } - if (message.window != null && message.hasOwnProperty("window")) - object.window = $root.google.container.v1.MaintenanceWindow.toObject(message.window, options); - if (message.resourceVersion != null && message.hasOwnProperty("resourceVersion")) - object.resourceVersion = message.resourceVersion; + 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.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this MaintenancePolicy to JSON. + * Converts this RollbackNodePoolUpgradeRequest to JSON. * @function toJSON - * @memberof google.container.v1.MaintenancePolicy + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest * @instance * @returns {Object.} JSON object */ - MaintenancePolicy.prototype.toJSON = function toJSON() { + RollbackNodePoolUpgradeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaintenancePolicy; + return RollbackNodePoolUpgradeRequest; })(); - v1.MaintenanceWindow = (function() { + v1.ListNodePoolsResponse = (function() { /** - * Properties of a MaintenanceWindow. + * Properties of a ListNodePoolsResponse. * @memberof google.container.v1 - * @interface IMaintenanceWindow - * @property {google.container.v1.IDailyMaintenanceWindow|null} [dailyMaintenanceWindow] MaintenanceWindow dailyMaintenanceWindow - * @property {google.container.v1.IRecurringTimeWindow|null} [recurringWindow] MaintenanceWindow recurringWindow - * @property {Object.|null} [maintenanceExclusions] MaintenanceWindow maintenanceExclusions + * @interface IListNodePoolsResponse + * @property {Array.|null} [nodePools] ListNodePoolsResponse nodePools */ /** - * Constructs a new MaintenanceWindow. + * Constructs a new ListNodePoolsResponse. * @memberof google.container.v1 - * @classdesc Represents a MaintenanceWindow. - * @implements IMaintenanceWindow + * @classdesc Represents a ListNodePoolsResponse. + * @implements IListNodePoolsResponse * @constructor - * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set + * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set */ - function MaintenanceWindow(properties) { - this.maintenanceExclusions = {}; + function ListNodePoolsResponse(properties) { + this.nodePools = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16468,137 +21249,78 @@ } /** - * MaintenanceWindow dailyMaintenanceWindow. - * @member {google.container.v1.IDailyMaintenanceWindow|null|undefined} dailyMaintenanceWindow - * @memberof google.container.v1.MaintenanceWindow - * @instance - */ - MaintenanceWindow.prototype.dailyMaintenanceWindow = null; - - /** - * MaintenanceWindow recurringWindow. - * @member {google.container.v1.IRecurringTimeWindow|null|undefined} recurringWindow - * @memberof google.container.v1.MaintenanceWindow - * @instance - */ - MaintenanceWindow.prototype.recurringWindow = null; - - /** - * MaintenanceWindow maintenanceExclusions. - * @member {Object.} maintenanceExclusions - * @memberof google.container.v1.MaintenanceWindow - * @instance - */ - MaintenanceWindow.prototype.maintenanceExclusions = $util.emptyObject; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * MaintenanceWindow policy. - * @member {"dailyMaintenanceWindow"|"recurringWindow"|undefined} policy - * @memberof google.container.v1.MaintenanceWindow + * ListNodePoolsResponse nodePools. + * @member {Array.} nodePools + * @memberof google.container.v1.ListNodePoolsResponse * @instance */ - Object.defineProperty(MaintenanceWindow.prototype, "policy", { - get: $util.oneOfGetter($oneOfFields = ["dailyMaintenanceWindow", "recurringWindow"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListNodePoolsResponse.prototype.nodePools = $util.emptyArray; /** - * Creates a new MaintenanceWindow instance using the specified properties. + * Creates a new ListNodePoolsResponse instance using the specified properties. * @function create - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.IMaintenanceWindow=} [properties] Properties to set - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow instance + * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse instance */ - MaintenanceWindow.create = function create(properties) { - return new MaintenanceWindow(properties); + ListNodePoolsResponse.create = function create(properties) { + return new ListNodePoolsResponse(properties); }; /** - * Encodes the specified MaintenanceWindow message. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. + * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. * @function encode - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenanceWindow.encode = function encode(message, writer) { + ListNodePoolsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dailyMaintenanceWindow != null && Object.hasOwnProperty.call(message, "dailyMaintenanceWindow")) - $root.google.container.v1.DailyMaintenanceWindow.encode(message.dailyMaintenanceWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.recurringWindow != null && Object.hasOwnProperty.call(message, "recurringWindow")) - $root.google.container.v1.RecurringTimeWindow.encode(message.recurringWindow, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.maintenanceExclusions != null && Object.hasOwnProperty.call(message, "maintenanceExclusions")) - for (var keys = Object.keys(message.maintenanceExclusions), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.container.v1.TimeWindow.encode(message.maintenanceExclusions[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } + 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 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceWindow.verify|verify} messages. + * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.IMaintenanceWindow} message MaintenanceWindow message or plain object to encode + * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + ListNodePoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer. + * Decodes a ListNodePoolsResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenanceWindow.decode = function decode(reader, length) { + ListNodePoolsResponse.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.MaintenanceWindow(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ListNodePoolsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.decode(reader, reader.uint32()); - break; - case 3: - message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.decode(reader, reader.uint32()); - break; - case 4: - if (message.maintenanceExclusions === $util.emptyObject) - message.maintenanceExclusions = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.maintenanceExclusions[key] = value; + case 1: + if (!(message.nodePools && message.nodePools.length)) + message.nodePools = []; + message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -16609,166 +21331,129 @@ }; /** - * Decodes a MaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + ListNodePoolsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaintenanceWindow message. + * Verifies a ListNodePoolsResponse message. * @function verify - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaintenanceWindow.verify = function verify(message) { + ListNodePoolsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { - properties.policy = 1; - { - var error = $root.google.container.v1.DailyMaintenanceWindow.verify(message.dailyMaintenanceWindow); - if (error) - return "dailyMaintenanceWindow." + error; - } - } - if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) { - if (properties.policy === 1) - return "policy: multiple values"; - properties.policy = 1; - { - var error = $root.google.container.v1.RecurringTimeWindow.verify(message.recurringWindow); - if (error) - return "recurringWindow." + error; - } - } - if (message.maintenanceExclusions != null && message.hasOwnProperty("maintenanceExclusions")) { - if (!$util.isObject(message.maintenanceExclusions)) - return "maintenanceExclusions: object expected"; - var key = Object.keys(message.maintenanceExclusions); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.container.v1.TimeWindow.verify(message.maintenanceExclusions[key[i]]); + 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 "maintenanceExclusions." + error; + return "nodePools." + error; } } return 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. * @function fromObject - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MaintenanceWindow} MaintenanceWindow + * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse */ - MaintenanceWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MaintenanceWindow) + ListNodePoolsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ListNodePoolsResponse) return object; - var message = new $root.google.container.v1.MaintenanceWindow(); - if (object.dailyMaintenanceWindow != null) { - if (typeof object.dailyMaintenanceWindow !== "object") - throw TypeError(".google.container.v1.MaintenanceWindow.dailyMaintenanceWindow: object expected"); - message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.fromObject(object.dailyMaintenanceWindow); - } - if (object.recurringWindow != null) { - if (typeof object.recurringWindow !== "object") - throw TypeError(".google.container.v1.MaintenanceWindow.recurringWindow: object expected"); - message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.fromObject(object.recurringWindow); - } - if (object.maintenanceExclusions) { - if (typeof object.maintenanceExclusions !== "object") - throw TypeError(".google.container.v1.MaintenanceWindow.maintenanceExclusions: object expected"); - message.maintenanceExclusions = {}; - for (var keys = Object.keys(object.maintenanceExclusions), i = 0; i < keys.length; ++i) { - if (typeof object.maintenanceExclusions[keys[i]] !== "object") - throw TypeError(".google.container.v1.MaintenanceWindow.maintenanceExclusions: object expected"); - message.maintenanceExclusions[keys[i]] = $root.google.container.v1.TimeWindow.fromObject(object.maintenanceExclusions[keys[i]]); + var message = new $root.google.container.v1.ListNodePoolsResponse(); + if (object.nodePools) { + if (!Array.isArray(object.nodePools)) + throw TypeError(".google.container.v1.ListNodePoolsResponse.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.ListNodePoolsResponse.nodePools: object expected"); + message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]); } } return message; }; /** - * Creates a plain object from a MaintenanceWindow message. Also converts values to other types if specified. + * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @static - * @param {google.container.v1.MaintenanceWindow} message MaintenanceWindow + * @param {google.container.v1.ListNodePoolsResponse} message ListNodePoolsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaintenanceWindow.toObject = function toObject(message, options) { + ListNodePoolsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.maintenanceExclusions = {}; - if (message.dailyMaintenanceWindow != null && message.hasOwnProperty("dailyMaintenanceWindow")) { - object.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.toObject(message.dailyMaintenanceWindow, options); - if (options.oneofs) - object.policy = "dailyMaintenanceWindow"; - } - if (message.recurringWindow != null && message.hasOwnProperty("recurringWindow")) { - object.recurringWindow = $root.google.container.v1.RecurringTimeWindow.toObject(message.recurringWindow, options); - if (options.oneofs) - object.policy = "recurringWindow"; - } - var keys2; - if (message.maintenanceExclusions && (keys2 = Object.keys(message.maintenanceExclusions)).length) { - object.maintenanceExclusions = {}; - for (var j = 0; j < keys2.length; ++j) - object.maintenanceExclusions[keys2[j]] = $root.google.container.v1.TimeWindow.toObject(message.maintenanceExclusions[keys2[j]], options); + if (options.arrays || options.defaults) + object.nodePools = []; + 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); } return object; }; /** - * Converts this MaintenanceWindow to JSON. + * Converts this ListNodePoolsResponse to JSON. * @function toJSON - * @memberof google.container.v1.MaintenanceWindow + * @memberof google.container.v1.ListNodePoolsResponse * @instance * @returns {Object.} JSON object */ - MaintenanceWindow.prototype.toJSON = function toJSON() { + ListNodePoolsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaintenanceWindow; + return ListNodePoolsResponse; })(); - v1.TimeWindow = (function() { + v1.ClusterAutoscaling = (function() { /** - * Properties of a TimeWindow. + * Properties of a ClusterAutoscaling. * @memberof google.container.v1 - * @interface ITimeWindow - * @property {google.protobuf.ITimestamp|null} [startTime] TimeWindow startTime - * @property {google.protobuf.ITimestamp|null} [endTime] TimeWindow endTime + * @interface IClusterAutoscaling + * @property {boolean|null} [enableNodeAutoprovisioning] ClusterAutoscaling enableNodeAutoprovisioning + * @property {Array.|null} [resourceLimits] ClusterAutoscaling resourceLimits + * @property {google.container.v1.IAutoprovisioningNodePoolDefaults|null} [autoprovisioningNodePoolDefaults] ClusterAutoscaling autoprovisioningNodePoolDefaults + * @property {Array.|null} [autoprovisioningLocations] ClusterAutoscaling autoprovisioningLocations */ /** - * Constructs a new TimeWindow. + * Constructs a new ClusterAutoscaling. * @memberof google.container.v1 - * @classdesc Represents a TimeWindow. - * @implements ITimeWindow + * @classdesc Represents a ClusterAutoscaling. + * @implements IClusterAutoscaling * @constructor - * @param {google.container.v1.ITimeWindow=} [properties] Properties to set + * @param {google.container.v1.IClusterAutoscaling=} [properties] Properties to set */ - function TimeWindow(properties) { + function ClusterAutoscaling(properties) { + this.resourceLimits = []; + this.autoprovisioningLocations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -16776,88 +21461,120 @@ } /** - * TimeWindow startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.container.v1.TimeWindow + * ClusterAutoscaling enableNodeAutoprovisioning. + * @member {boolean} enableNodeAutoprovisioning + * @memberof google.container.v1.ClusterAutoscaling * @instance */ - TimeWindow.prototype.startTime = null; + ClusterAutoscaling.prototype.enableNodeAutoprovisioning = false; + + /** + * ClusterAutoscaling resourceLimits. + * @member {Array.} resourceLimits + * @memberof google.container.v1.ClusterAutoscaling + * @instance + */ + ClusterAutoscaling.prototype.resourceLimits = $util.emptyArray; + + /** + * ClusterAutoscaling autoprovisioningNodePoolDefaults. + * @member {google.container.v1.IAutoprovisioningNodePoolDefaults|null|undefined} autoprovisioningNodePoolDefaults + * @memberof google.container.v1.ClusterAutoscaling + * @instance + */ + ClusterAutoscaling.prototype.autoprovisioningNodePoolDefaults = null; /** - * TimeWindow endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.container.v1.TimeWindow + * ClusterAutoscaling autoprovisioningLocations. + * @member {Array.} autoprovisioningLocations + * @memberof google.container.v1.ClusterAutoscaling * @instance */ - TimeWindow.prototype.endTime = null; + ClusterAutoscaling.prototype.autoprovisioningLocations = $util.emptyArray; /** - * Creates a new TimeWindow instance using the specified properties. + * Creates a new ClusterAutoscaling instance using the specified properties. * @function create - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.ITimeWindow=} [properties] Properties to set - * @returns {google.container.v1.TimeWindow} TimeWindow instance + * @param {google.container.v1.IClusterAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling instance */ - TimeWindow.create = function create(properties) { - return new TimeWindow(properties); + ClusterAutoscaling.create = function create(properties) { + return new ClusterAutoscaling(properties); }; /** - * Encodes the specified TimeWindow message. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. + * Encodes the specified ClusterAutoscaling message. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. * @function encode - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.ITimeWindow} message TimeWindow message or plain object to encode + * @param {google.container.v1.IClusterAutoscaling} message ClusterAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeWindow.encode = function encode(message, writer) { + ClusterAutoscaling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.enableNodeAutoprovisioning != null && Object.hasOwnProperty.call(message, "enableNodeAutoprovisioning")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableNodeAutoprovisioning); + if (message.resourceLimits != null && message.resourceLimits.length) + for (var i = 0; i < message.resourceLimits.length; ++i) + $root.google.container.v1.ResourceLimit.encode(message.resourceLimits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.autoprovisioningNodePoolDefaults != null && Object.hasOwnProperty.call(message, "autoprovisioningNodePoolDefaults")) + $root.google.container.v1.AutoprovisioningNodePoolDefaults.encode(message.autoprovisioningNodePoolDefaults, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.autoprovisioningLocations != null && message.autoprovisioningLocations.length) + for (var i = 0; i < message.autoprovisioningLocations.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.autoprovisioningLocations[i]); return writer; }; /** - * Encodes the specified TimeWindow message, length delimited. Does not implicitly {@link google.container.v1.TimeWindow.verify|verify} messages. + * Encodes the specified ClusterAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.ITimeWindow} message TimeWindow message or plain object to encode + * @param {google.container.v1.IClusterAutoscaling} message ClusterAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TimeWindow.encodeDelimited = function encodeDelimited(message, writer) { + ClusterAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TimeWindow message from the specified reader or buffer. + * Decodes a ClusterAutoscaling message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.TimeWindow} TimeWindow + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimeWindow.decode = function decode(reader, length) { + ClusterAutoscaling.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.TimeWindow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ClusterAutoscaling(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.enableNodeAutoprovisioning = reader.bool(); break; case 2: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.resourceLimits && message.resourceLimits.length)) + message.resourceLimits = []; + message.resourceLimits.push($root.google.container.v1.ResourceLimit.decode(reader, reader.uint32())); + break; + case 4: + message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.autoprovisioningLocations && message.autoprovisioningLocations.length)) + message.autoprovisioningLocations = []; + message.autoprovisioningLocations.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -16868,216 +21585,360 @@ }; /** - * Decodes a TimeWindow message from the specified reader or buffer, length delimited. + * Decodes a ClusterAutoscaling message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.TimeWindow} TimeWindow + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TimeWindow.decodeDelimited = function decodeDelimited(reader) { + ClusterAutoscaling.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TimeWindow message. + * Verifies a ClusterAutoscaling message. * @function verify - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TimeWindow.verify = function verify(message) { + ClusterAutoscaling.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; + if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) + if (typeof message.enableNodeAutoprovisioning !== "boolean") + return "enableNodeAutoprovisioning: boolean expected"; + if (message.resourceLimits != null && message.hasOwnProperty("resourceLimits")) { + if (!Array.isArray(message.resourceLimits)) + return "resourceLimits: array expected"; + for (var i = 0; i < message.resourceLimits.length; ++i) { + var error = $root.google.container.v1.ResourceLimit.verify(message.resourceLimits[i]); + if (error) + return "resourceLimits." + error; + } } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) { + var error = $root.google.container.v1.AutoprovisioningNodePoolDefaults.verify(message.autoprovisioningNodePoolDefaults); if (error) - return "endTime." + error; + return "autoprovisioningNodePoolDefaults." + error; + } + if (message.autoprovisioningLocations != null && message.hasOwnProperty("autoprovisioningLocations")) { + if (!Array.isArray(message.autoprovisioningLocations)) + return "autoprovisioningLocations: array expected"; + for (var i = 0; i < message.autoprovisioningLocations.length; ++i) + if (!$util.isString(message.autoprovisioningLocations[i])) + return "autoprovisioningLocations: string[] expected"; } return 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. * @function fromObject - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static * @param {Object.} object Plain object - * @returns {google.container.v1.TimeWindow} TimeWindow + * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling */ - TimeWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.TimeWindow) + ClusterAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ClusterAutoscaling) return object; - var message = new $root.google.container.v1.TimeWindow(); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.container.v1.TimeWindow.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + var message = new $root.google.container.v1.ClusterAutoscaling(); + if (object.enableNodeAutoprovisioning != null) + message.enableNodeAutoprovisioning = Boolean(object.enableNodeAutoprovisioning); + if (object.resourceLimits) { + if (!Array.isArray(object.resourceLimits)) + throw TypeError(".google.container.v1.ClusterAutoscaling.resourceLimits: array expected"); + message.resourceLimits = []; + for (var i = 0; i < object.resourceLimits.length; ++i) { + if (typeof object.resourceLimits[i] !== "object") + throw TypeError(".google.container.v1.ClusterAutoscaling.resourceLimits: object expected"); + message.resourceLimits[i] = $root.google.container.v1.ResourceLimit.fromObject(object.resourceLimits[i]); + } } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.container.v1.TimeWindow.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + if (object.autoprovisioningNodePoolDefaults != null) { + if (typeof object.autoprovisioningNodePoolDefaults !== "object") + throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningNodePoolDefaults: object expected"); + message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.fromObject(object.autoprovisioningNodePoolDefaults); + } + if (object.autoprovisioningLocations) { + if (!Array.isArray(object.autoprovisioningLocations)) + throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningLocations: array expected"); + message.autoprovisioningLocations = []; + for (var i = 0; i < object.autoprovisioningLocations.length; ++i) + message.autoprovisioningLocations[i] = String(object.autoprovisioningLocations[i]); } return message; }; /** - * Creates a plain object from a TimeWindow message. Also converts values to other types if specified. + * Creates a plain object from a ClusterAutoscaling message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @static - * @param {google.container.v1.TimeWindow} message TimeWindow + * @param {google.container.v1.ClusterAutoscaling} message ClusterAutoscaling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TimeWindow.toObject = function toObject(message, options) { + ClusterAutoscaling.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.resourceLimits = []; + object.autoprovisioningLocations = []; + } if (options.defaults) { - object.startTime = null; - object.endTime = null; + object.enableNodeAutoprovisioning = false; + object.autoprovisioningNodePoolDefaults = null; + } + if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) + object.enableNodeAutoprovisioning = message.enableNodeAutoprovisioning; + if (message.resourceLimits && message.resourceLimits.length) { + object.resourceLimits = []; + for (var j = 0; j < message.resourceLimits.length; ++j) + object.resourceLimits[j] = $root.google.container.v1.ResourceLimit.toObject(message.resourceLimits[j], options); + } + if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) + object.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.toObject(message.autoprovisioningNodePoolDefaults, options); + if (message.autoprovisioningLocations && message.autoprovisioningLocations.length) { + object.autoprovisioningLocations = []; + for (var j = 0; j < message.autoprovisioningLocations.length; ++j) + object.autoprovisioningLocations[j] = message.autoprovisioningLocations[j]; } - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this TimeWindow to JSON. + * Converts this ClusterAutoscaling to JSON. * @function toJSON - * @memberof google.container.v1.TimeWindow + * @memberof google.container.v1.ClusterAutoscaling * @instance * @returns {Object.} JSON object */ - TimeWindow.prototype.toJSON = function toJSON() { + ClusterAutoscaling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TimeWindow; + return ClusterAutoscaling; })(); - v1.RecurringTimeWindow = (function() { + v1.AutoprovisioningNodePoolDefaults = (function() { + + /** + * Properties of an AutoprovisioningNodePoolDefaults. + * @memberof google.container.v1 + * @interface IAutoprovisioningNodePoolDefaults + * @property {Array.|null} [oauthScopes] AutoprovisioningNodePoolDefaults oauthScopes + * @property {string|null} [serviceAccount] AutoprovisioningNodePoolDefaults serviceAccount + * @property {google.container.v1.NodePool.IUpgradeSettings|null} [upgradeSettings] AutoprovisioningNodePoolDefaults upgradeSettings + * @property {google.container.v1.INodeManagement|null} [management] AutoprovisioningNodePoolDefaults management + * @property {string|null} [minCpuPlatform] AutoprovisioningNodePoolDefaults minCpuPlatform + * @property {number|null} [diskSizeGb] AutoprovisioningNodePoolDefaults diskSizeGb + * @property {string|null} [diskType] AutoprovisioningNodePoolDefaults diskType + * @property {google.container.v1.IShieldedInstanceConfig|null} [shieldedInstanceConfig] AutoprovisioningNodePoolDefaults shieldedInstanceConfig + * @property {string|null} [bootDiskKmsKey] AutoprovisioningNodePoolDefaults bootDiskKmsKey + */ + + /** + * Constructs a new AutoprovisioningNodePoolDefaults. + * @memberof google.container.v1 + * @classdesc Represents an AutoprovisioningNodePoolDefaults. + * @implements IAutoprovisioningNodePoolDefaults + * @constructor + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults=} [properties] Properties to set + */ + function AutoprovisioningNodePoolDefaults(properties) { + this.oauthScopes = []; + 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]]; + } + + /** + * AutoprovisioningNodePoolDefaults oauthScopes. + * @member {Array.} oauthScopes + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.oauthScopes = $util.emptyArray; + + /** + * AutoprovisioningNodePoolDefaults serviceAccount. + * @member {string} serviceAccount + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.serviceAccount = ""; + + /** + * AutoprovisioningNodePoolDefaults upgradeSettings. + * @member {google.container.v1.NodePool.IUpgradeSettings|null|undefined} upgradeSettings + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.upgradeSettings = null; + + /** + * AutoprovisioningNodePoolDefaults management. + * @member {google.container.v1.INodeManagement|null|undefined} management + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.management = null; + + /** + * AutoprovisioningNodePoolDefaults minCpuPlatform. + * @member {string} minCpuPlatform + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.minCpuPlatform = ""; /** - * Properties of a RecurringTimeWindow. - * @memberof google.container.v1 - * @interface IRecurringTimeWindow - * @property {google.container.v1.ITimeWindow|null} [window] RecurringTimeWindow window - * @property {string|null} [recurrence] RecurringTimeWindow recurrence + * AutoprovisioningNodePoolDefaults diskSizeGb. + * @member {number} diskSizeGb + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance */ + AutoprovisioningNodePoolDefaults.prototype.diskSizeGb = 0; /** - * Constructs a new RecurringTimeWindow. - * @memberof google.container.v1 - * @classdesc Represents a RecurringTimeWindow. - * @implements IRecurringTimeWindow - * @constructor - * @param {google.container.v1.IRecurringTimeWindow=} [properties] Properties to set + * AutoprovisioningNodePoolDefaults diskType. + * @member {string} diskType + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance */ - function RecurringTimeWindow(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]]; - } + AutoprovisioningNodePoolDefaults.prototype.diskType = ""; /** - * RecurringTimeWindow window. - * @member {google.container.v1.ITimeWindow|null|undefined} window - * @memberof google.container.v1.RecurringTimeWindow + * AutoprovisioningNodePoolDefaults shieldedInstanceConfig. + * @member {google.container.v1.IShieldedInstanceConfig|null|undefined} shieldedInstanceConfig + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @instance */ - RecurringTimeWindow.prototype.window = null; + AutoprovisioningNodePoolDefaults.prototype.shieldedInstanceConfig = null; /** - * RecurringTimeWindow recurrence. - * @member {string} recurrence - * @memberof google.container.v1.RecurringTimeWindow + * AutoprovisioningNodePoolDefaults bootDiskKmsKey. + * @member {string} bootDiskKmsKey + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @instance */ - RecurringTimeWindow.prototype.recurrence = ""; + AutoprovisioningNodePoolDefaults.prototype.bootDiskKmsKey = ""; /** - * Creates a new RecurringTimeWindow instance using the specified properties. + * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties. * @function create - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.IRecurringTimeWindow=} [properties] Properties to set - * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow instance + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults=} [properties] Properties to set + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults instance */ - RecurringTimeWindow.create = function create(properties) { - return new RecurringTimeWindow(properties); + AutoprovisioningNodePoolDefaults.create = function create(properties) { + return new AutoprovisioningNodePoolDefaults(properties); }; /** - * Encodes the specified RecurringTimeWindow message. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. + * Encodes the specified AutoprovisioningNodePoolDefaults message. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. * @function encode - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.IRecurringTimeWindow} message RecurringTimeWindow message or plain object to encode + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecurringTimeWindow.encode = function encode(message, writer) { + AutoprovisioningNodePoolDefaults.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.window != null && Object.hasOwnProperty.call(message, "window")) - $root.google.container.v1.TimeWindow.encode(message.window, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.recurrence != null && Object.hasOwnProperty.call(message, "recurrence")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.recurrence); + if (message.oauthScopes != null && message.oauthScopes.length) + for (var i = 0; i < message.oauthScopes.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.oauthScopes[i]); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); + if (message.upgradeSettings != null && Object.hasOwnProperty.call(message, "upgradeSettings")) + $root.google.container.v1.NodePool.UpgradeSettings.encode(message.upgradeSettings, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.management != null && Object.hasOwnProperty.call(message, "management")) + $root.google.container.v1.NodeManagement.encode(message.management, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.minCpuPlatform != null && Object.hasOwnProperty.call(message, "minCpuPlatform")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.minCpuPlatform); + if (message.diskSizeGb != null && Object.hasOwnProperty.call(message, "diskSizeGb")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.diskSizeGb); + if (message.diskType != null && Object.hasOwnProperty.call(message, "diskType")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.diskType); + if (message.shieldedInstanceConfig != null && Object.hasOwnProperty.call(message, "shieldedInstanceConfig")) + $root.google.container.v1.ShieldedInstanceConfig.encode(message.shieldedInstanceConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.bootDiskKmsKey != null && Object.hasOwnProperty.call(message, "bootDiskKmsKey")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.bootDiskKmsKey); return writer; }; /** - * Encodes the specified RecurringTimeWindow message, length delimited. Does not implicitly {@link google.container.v1.RecurringTimeWindow.verify|verify} messages. + * Encodes the specified AutoprovisioningNodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.IRecurringTimeWindow} message RecurringTimeWindow message or plain object to encode + * @param {google.container.v1.IAutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RecurringTimeWindow.encodeDelimited = function encodeDelimited(message, writer) { + AutoprovisioningNodePoolDefaults.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RecurringTimeWindow message from the specified reader or buffer. + * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecurringTimeWindow.decode = function decode(reader, length) { + AutoprovisioningNodePoolDefaults.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.RecurringTimeWindow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AutoprovisioningNodePoolDefaults(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.window = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); + if (!(message.oauthScopes && message.oauthScopes.length)) + message.oauthScopes = []; + message.oauthScopes.push(reader.string()); break; case 2: - message.recurrence = reader.string(); + message.serviceAccount = reader.string(); + break; + case 3: + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); + break; + case 4: + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + case 5: + message.minCpuPlatform = reader.string(); + break; + case 6: + message.diskSizeGb = reader.int32(); + break; + case 7: + message.diskType = reader.string(); + break; + case 8: + message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.decode(reader, reader.uint32()); + break; + case 9: + message.bootDiskKmsKey = reader.string(); break; default: reader.skipType(tag & 7); @@ -17088,122 +21949,202 @@ }; /** - * Decodes a RecurringTimeWindow message from the specified reader or buffer, length delimited. + * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RecurringTimeWindow.decodeDelimited = function decodeDelimited(reader) { + AutoprovisioningNodePoolDefaults.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RecurringTimeWindow message. + * Verifies an AutoprovisioningNodePoolDefaults message. * @function verify - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RecurringTimeWindow.verify = function verify(message) { + AutoprovisioningNodePoolDefaults.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.window != null && message.hasOwnProperty("window")) { - var error = $root.google.container.v1.TimeWindow.verify(message.window); + if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) { + if (!Array.isArray(message.oauthScopes)) + return "oauthScopes: array expected"; + for (var i = 0; i < message.oauthScopes.length; ++i) + if (!$util.isString(message.oauthScopes[i])) + return "oauthScopes: string[] expected"; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) { + var error = $root.google.container.v1.NodePool.UpgradeSettings.verify(message.upgradeSettings); if (error) - return "window." + error; + return "upgradeSettings." + error; } - if (message.recurrence != null && message.hasOwnProperty("recurrence")) - if (!$util.isString(message.recurrence)) - return "recurrence: string expected"; + if (message.management != null && message.hasOwnProperty("management")) { + var error = $root.google.container.v1.NodeManagement.verify(message.management); + if (error) + return "management." + error; + } + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + if (!$util.isString(message.minCpuPlatform)) + return "minCpuPlatform: string expected"; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + if (!$util.isInteger(message.diskSizeGb)) + return "diskSizeGb: integer expected"; + if (message.diskType != null && message.hasOwnProperty("diskType")) + if (!$util.isString(message.diskType)) + return "diskType: string expected"; + 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; }; /** - * 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. * @function fromObject - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static * @param {Object.} object Plain object - * @returns {google.container.v1.RecurringTimeWindow} RecurringTimeWindow + * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults */ - RecurringTimeWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.RecurringTimeWindow) + AutoprovisioningNodePoolDefaults.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AutoprovisioningNodePoolDefaults) return object; - var message = new $root.google.container.v1.RecurringTimeWindow(); - if (object.window != null) { - if (typeof object.window !== "object") - throw TypeError(".google.container.v1.RecurringTimeWindow.window: object expected"); - message.window = $root.google.container.v1.TimeWindow.fromObject(object.window); + var message = new $root.google.container.v1.AutoprovisioningNodePoolDefaults(); + if (object.oauthScopes) { + if (!Array.isArray(object.oauthScopes)) + throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.oauthScopes: array expected"); + message.oauthScopes = []; + for (var i = 0; i < object.oauthScopes.length; ++i) + message.oauthScopes[i] = String(object.oauthScopes[i]); } - if (object.recurrence != null) - message.recurrence = String(object.recurrence); + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.upgradeSettings != null) { + if (typeof object.upgradeSettings !== "object") + throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.upgradeSettings: object expected"); + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.fromObject(object.upgradeSettings); + } + if (object.management != null) { + if (typeof object.management !== "object") + throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.management: object expected"); + message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); + } + if (object.minCpuPlatform != null) + message.minCpuPlatform = String(object.minCpuPlatform); + if (object.diskSizeGb != null) + message.diskSizeGb = object.diskSizeGb | 0; + if (object.diskType != null) + message.diskType = String(object.diskType); + if (object.shieldedInstanceConfig != null) { + if (typeof object.shieldedInstanceConfig !== "object") + throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.shieldedInstanceConfig: object expected"); + message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.fromObject(object.shieldedInstanceConfig); + } + if (object.bootDiskKmsKey != null) + message.bootDiskKmsKey = String(object.bootDiskKmsKey); return message; }; /** - * Creates a plain object from a RecurringTimeWindow message. Also converts values to other types if specified. + * Creates a plain object from an AutoprovisioningNodePoolDefaults message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @static - * @param {google.container.v1.RecurringTimeWindow} message RecurringTimeWindow + * @param {google.container.v1.AutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RecurringTimeWindow.toObject = function toObject(message, options) { + AutoprovisioningNodePoolDefaults.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.oauthScopes = []; if (options.defaults) { - object.window = null; - object.recurrence = ""; + object.serviceAccount = ""; + object.upgradeSettings = null; + object.management = null; + object.minCpuPlatform = ""; + object.diskSizeGb = 0; + object.diskType = ""; + object.shieldedInstanceConfig = null; + object.bootDiskKmsKey = ""; } - if (message.window != null && message.hasOwnProperty("window")) - object.window = $root.google.container.v1.TimeWindow.toObject(message.window, options); - if (message.recurrence != null && message.hasOwnProperty("recurrence")) - object.recurrence = message.recurrence; + if (message.oauthScopes && message.oauthScopes.length) { + object.oauthScopes = []; + for (var j = 0; j < message.oauthScopes.length; ++j) + object.oauthScopes[j] = message.oauthScopes[j]; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) + object.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.toObject(message.upgradeSettings, options); + if (message.management != null && message.hasOwnProperty("management")) + object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); + if (message.minCpuPlatform != null && message.hasOwnProperty("minCpuPlatform")) + object.minCpuPlatform = message.minCpuPlatform; + if (message.diskSizeGb != null && message.hasOwnProperty("diskSizeGb")) + object.diskSizeGb = message.diskSizeGb; + if (message.diskType != null && message.hasOwnProperty("diskType")) + object.diskType = message.diskType; + 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; }; /** - * Converts this RecurringTimeWindow to JSON. + * Converts this AutoprovisioningNodePoolDefaults to JSON. * @function toJSON - * @memberof google.container.v1.RecurringTimeWindow + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults * @instance * @returns {Object.} JSON object */ - RecurringTimeWindow.prototype.toJSON = function toJSON() { + AutoprovisioningNodePoolDefaults.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RecurringTimeWindow; + return AutoprovisioningNodePoolDefaults; })(); - v1.DailyMaintenanceWindow = (function() { + v1.ResourceLimit = (function() { /** - * Properties of a DailyMaintenanceWindow. + * Properties of a ResourceLimit. * @memberof google.container.v1 - * @interface IDailyMaintenanceWindow - * @property {string|null} [startTime] DailyMaintenanceWindow startTime - * @property {string|null} [duration] DailyMaintenanceWindow duration + * @interface IResourceLimit + * @property {string|null} [resourceType] ResourceLimit resourceType + * @property {number|Long|null} [minimum] ResourceLimit minimum + * @property {number|Long|null} [maximum] ResourceLimit maximum */ /** - * Constructs a new DailyMaintenanceWindow. + * Constructs a new ResourceLimit. * @memberof google.container.v1 - * @classdesc Represents a DailyMaintenanceWindow. - * @implements IDailyMaintenanceWindow + * @classdesc Represents a ResourceLimit. + * @implements IResourceLimit * @constructor - * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set + * @param {google.container.v1.IResourceLimit=} [properties] Properties to set */ - function DailyMaintenanceWindow(properties) { + function ResourceLimit(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17211,88 +22152,101 @@ } /** - * DailyMaintenanceWindow startTime. - * @member {string} startTime - * @memberof google.container.v1.DailyMaintenanceWindow + * ResourceLimit resourceType. + * @member {string} resourceType + * @memberof google.container.v1.ResourceLimit * @instance */ - DailyMaintenanceWindow.prototype.startTime = ""; + ResourceLimit.prototype.resourceType = ""; /** - * DailyMaintenanceWindow duration. - * @member {string} duration - * @memberof google.container.v1.DailyMaintenanceWindow + * ResourceLimit minimum. + * @member {number|Long} minimum + * @memberof google.container.v1.ResourceLimit * @instance */ - DailyMaintenanceWindow.prototype.duration = ""; + ResourceLimit.prototype.minimum = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new DailyMaintenanceWindow instance using the specified properties. + * ResourceLimit maximum. + * @member {number|Long} maximum + * @memberof google.container.v1.ResourceLimit + * @instance + */ + ResourceLimit.prototype.maximum = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ResourceLimit instance using the specified properties. * @function create - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.IDailyMaintenanceWindow=} [properties] Properties to set - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow instance + * @param {google.container.v1.IResourceLimit=} [properties] Properties to set + * @returns {google.container.v1.ResourceLimit} ResourceLimit instance */ - DailyMaintenanceWindow.create = function create(properties) { - return new DailyMaintenanceWindow(properties); + ResourceLimit.create = function create(properties) { + return new ResourceLimit(properties); }; /** - * Encodes the specified DailyMaintenanceWindow message. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. + * Encodes the specified ResourceLimit message. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. * @function encode - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode + * @param {google.container.v1.IResourceLimit} message ResourceLimit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DailyMaintenanceWindow.encode = function encode(message, writer) { + ResourceLimit.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.startTime); - if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.duration); + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceType); + if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minimum); + if (message.maximum != null && Object.hasOwnProperty.call(message, "maximum")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maximum); return writer; }; /** - * Encodes the specified DailyMaintenanceWindow message, length delimited. Does not implicitly {@link google.container.v1.DailyMaintenanceWindow.verify|verify} messages. + * Encodes the specified ResourceLimit message, length delimited. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.IDailyMaintenanceWindow} message DailyMaintenanceWindow message or plain object to encode + * @param {google.container.v1.IResourceLimit} message ResourceLimit message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DailyMaintenanceWindow.encodeDelimited = function encodeDelimited(message, writer) { + ResourceLimit.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DailyMaintenanceWindow message from the specified reader or buffer. + * Decodes a ResourceLimit message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @returns {google.container.v1.ResourceLimit} ResourceLimit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DailyMaintenanceWindow.decode = function decode(reader, length) { + ResourceLimit.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.DailyMaintenanceWindow(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceLimit(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.resourceType = reader.string(); + break; case 2: - message.startTime = reader.string(); + message.minimum = reader.int64(); break; case 3: - message.duration = reader.string(); + message.maximum = reader.int64(); break; default: reader.skipType(tag & 7); @@ -17303,121 +22257,155 @@ }; /** - * Decodes a DailyMaintenanceWindow message from the specified reader or buffer, length delimited. + * Decodes a ResourceLimit message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @returns {google.container.v1.ResourceLimit} ResourceLimit * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DailyMaintenanceWindow.decodeDelimited = function decodeDelimited(reader) { + ResourceLimit.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DailyMaintenanceWindow message. + * Verifies a ResourceLimit message. * @function verify - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DailyMaintenanceWindow.verify = function verify(message) { + ResourceLimit.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) - if (!$util.isString(message.startTime)) - return "startTime: string expected"; - if (message.duration != null && message.hasOwnProperty("duration")) - if (!$util.isString(message.duration)) - return "duration: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + if (!$util.isString(message.resourceType)) + return "resourceType: string expected"; + if (message.minimum != null && message.hasOwnProperty("minimum")) + if (!$util.isInteger(message.minimum) && !(message.minimum && $util.isInteger(message.minimum.low) && $util.isInteger(message.minimum.high))) + return "minimum: integer|Long expected"; + if (message.maximum != null && message.hasOwnProperty("maximum")) + if (!$util.isInteger(message.maximum) && !(message.maximum && $util.isInteger(message.maximum.low) && $util.isInteger(message.maximum.high))) + return "maximum: integer|Long expected"; return 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. * @function fromObject - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static * @param {Object.} object Plain object - * @returns {google.container.v1.DailyMaintenanceWindow} DailyMaintenanceWindow + * @returns {google.container.v1.ResourceLimit} ResourceLimit */ - DailyMaintenanceWindow.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.DailyMaintenanceWindow) + ResourceLimit.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceLimit) return object; - var message = new $root.google.container.v1.DailyMaintenanceWindow(); - if (object.startTime != null) - message.startTime = String(object.startTime); - if (object.duration != null) - message.duration = String(object.duration); + var message = new $root.google.container.v1.ResourceLimit(); + if (object.resourceType != null) + message.resourceType = String(object.resourceType); + if (object.minimum != null) + if ($util.Long) + (message.minimum = $util.Long.fromValue(object.minimum)).unsigned = false; + else if (typeof object.minimum === "string") + message.minimum = parseInt(object.minimum, 10); + else if (typeof object.minimum === "number") + message.minimum = object.minimum; + else if (typeof object.minimum === "object") + message.minimum = new $util.LongBits(object.minimum.low >>> 0, object.minimum.high >>> 0).toNumber(); + if (object.maximum != null) + if ($util.Long) + (message.maximum = $util.Long.fromValue(object.maximum)).unsigned = false; + else if (typeof object.maximum === "string") + message.maximum = parseInt(object.maximum, 10); + else if (typeof object.maximum === "number") + message.maximum = object.maximum; + else if (typeof object.maximum === "object") + message.maximum = new $util.LongBits(object.maximum.low >>> 0, object.maximum.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a DailyMaintenanceWindow message. Also converts values to other types if specified. + * Creates a plain object from a ResourceLimit message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @static - * @param {google.container.v1.DailyMaintenanceWindow} message DailyMaintenanceWindow + * @param {google.container.v1.ResourceLimit} message ResourceLimit * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DailyMaintenanceWindow.toObject = function toObject(message, options) { + ResourceLimit.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.startTime = ""; - object.duration = ""; + object.resourceType = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minimum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minimum = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maximum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maximum = options.longs === String ? "0" : 0; } - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = message.startTime; - if (message.duration != null && message.hasOwnProperty("duration")) - object.duration = message.duration; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = message.resourceType; + if (message.minimum != null && message.hasOwnProperty("minimum")) + if (typeof message.minimum === "number") + object.minimum = options.longs === String ? String(message.minimum) : message.minimum; + else + object.minimum = options.longs === String ? $util.Long.prototype.toString.call(message.minimum) : options.longs === Number ? new $util.LongBits(message.minimum.low >>> 0, message.minimum.high >>> 0).toNumber() : message.minimum; + if (message.maximum != null && message.hasOwnProperty("maximum")) + if (typeof message.maximum === "number") + object.maximum = options.longs === String ? String(message.maximum) : message.maximum; + else + object.maximum = options.longs === String ? $util.Long.prototype.toString.call(message.maximum) : options.longs === Number ? new $util.LongBits(message.maximum.low >>> 0, message.maximum.high >>> 0).toNumber() : message.maximum; return object; }; /** - * Converts this DailyMaintenanceWindow to JSON. + * Converts this ResourceLimit to JSON. * @function toJSON - * @memberof google.container.v1.DailyMaintenanceWindow + * @memberof google.container.v1.ResourceLimit * @instance * @returns {Object.} JSON object */ - DailyMaintenanceWindow.prototype.toJSON = function toJSON() { + ResourceLimit.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DailyMaintenanceWindow; + return ResourceLimit; })(); - v1.SetNodePoolManagementRequest = (function() { + v1.NodePoolAutoscaling = (function() { /** - * Properties of a SetNodePoolManagementRequest. + * Properties of a NodePoolAutoscaling. * @memberof google.container.v1 - * @interface ISetNodePoolManagementRequest - * @property {string|null} [projectId] SetNodePoolManagementRequest projectId - * @property {string|null} [zone] SetNodePoolManagementRequest zone - * @property {string|null} [clusterId] SetNodePoolManagementRequest clusterId - * @property {string|null} [nodePoolId] SetNodePoolManagementRequest nodePoolId - * @property {google.container.v1.INodeManagement|null} [management] SetNodePoolManagementRequest management - * @property {string|null} [name] SetNodePoolManagementRequest name + * @interface INodePoolAutoscaling + * @property {boolean|null} [enabled] NodePoolAutoscaling enabled + * @property {number|null} [minNodeCount] NodePoolAutoscaling minNodeCount + * @property {number|null} [maxNodeCount] NodePoolAutoscaling maxNodeCount + * @property {boolean|null} [autoprovisioned] NodePoolAutoscaling autoprovisioned */ /** - * Constructs a new SetNodePoolManagementRequest. + * Constructs a new NodePoolAutoscaling. * @memberof google.container.v1 - * @classdesc Represents a SetNodePoolManagementRequest. - * @implements ISetNodePoolManagementRequest + * @classdesc Represents a NodePoolAutoscaling. + * @implements INodePoolAutoscaling * @constructor - * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set + * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set */ - function SetNodePoolManagementRequest(properties) { + function NodePoolAutoscaling(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17425,140 +22413,114 @@ } /** - * SetNodePoolManagementRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetNodePoolManagementRequest - * @instance - */ - SetNodePoolManagementRequest.prototype.projectId = ""; - - /** - * SetNodePoolManagementRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetNodePoolManagementRequest - * @instance - */ - SetNodePoolManagementRequest.prototype.zone = ""; - - /** - * SetNodePoolManagementRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetNodePoolManagementRequest + * NodePoolAutoscaling enabled. + * @member {boolean} enabled + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - SetNodePoolManagementRequest.prototype.clusterId = ""; + NodePoolAutoscaling.prototype.enabled = false; /** - * SetNodePoolManagementRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.SetNodePoolManagementRequest + * NodePoolAutoscaling minNodeCount. + * @member {number} minNodeCount + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - SetNodePoolManagementRequest.prototype.nodePoolId = ""; + NodePoolAutoscaling.prototype.minNodeCount = 0; /** - * SetNodePoolManagementRequest management. - * @member {google.container.v1.INodeManagement|null|undefined} management - * @memberof google.container.v1.SetNodePoolManagementRequest + * NodePoolAutoscaling maxNodeCount. + * @member {number} maxNodeCount + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - SetNodePoolManagementRequest.prototype.management = null; + NodePoolAutoscaling.prototype.maxNodeCount = 0; /** - * SetNodePoolManagementRequest name. - * @member {string} name - * @memberof google.container.v1.SetNodePoolManagementRequest + * NodePoolAutoscaling autoprovisioned. + * @member {boolean} autoprovisioned + * @memberof google.container.v1.NodePoolAutoscaling * @instance */ - SetNodePoolManagementRequest.prototype.name = ""; + NodePoolAutoscaling.prototype.autoprovisioned = false; /** - * Creates a new SetNodePoolManagementRequest instance using the specified properties. + * Creates a new NodePoolAutoscaling instance using the specified properties. * @function create - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.ISetNodePoolManagementRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest instance + * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling instance */ - SetNodePoolManagementRequest.create = function create(properties) { - return new SetNodePoolManagementRequest(properties); + NodePoolAutoscaling.create = function create(properties) { + return new NodePoolAutoscaling(properties); }; /** - * Encodes the specified SetNodePoolManagementRequest message. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. + * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode + * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolManagementRequest.encode = function encode(message, writer) { + NodePoolAutoscaling.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.management != null && Object.hasOwnProperty.call(message, "management")) - $root.google.container.v1.NodeManagement.encode(message.management, 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.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minNodeCount); + if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); + if (message.autoprovisioned != null && Object.hasOwnProperty.call(message, "autoprovisioned")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.autoprovisioned); return writer; }; /** - * Encodes the specified SetNodePoolManagementRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolManagementRequest.verify|verify} messages. + * Encodes the specified NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.ISetNodePoolManagementRequest} message SetNodePoolManagementRequest message or plain object to encode + * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolManagementRequest.encodeDelimited = function encodeDelimited(message, writer) { + NodePoolAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer. + * Decodes a NodePoolAutoscaling message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolManagementRequest.decode = function decode(reader, length) { + NodePoolAutoscaling.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.SetNodePoolManagementRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NodePoolAutoscaling(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.enabled = reader.bool(); break; case 2: - message.zone = reader.string(); + message.minNodeCount = reader.int32(); break; case 3: - message.clusterId = reader.string(); + message.maxNodeCount = reader.int32(); break; case 4: - message.nodePoolId = reader.string(); - break; - case 5: - message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); - break; - case 7: - message.name = reader.string(); + message.autoprovisioned = reader.bool(); break; default: reader.skipType(tag & 7); @@ -17569,158 +22531,138 @@ }; /** - * Decodes a SetNodePoolManagementRequest message from the specified reader or buffer, length delimited. + * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolManagementRequest.decodeDelimited = function decodeDelimited(reader) { + NodePoolAutoscaling.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNodePoolManagementRequest message. + * Verifies a NodePoolAutoscaling message. * @function verify - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetNodePoolManagementRequest.verify = function verify(message) { + NodePoolAutoscaling.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.management != null && message.hasOwnProperty("management")) { - var error = $root.google.container.v1.NodeManagement.verify(message.management); - if (error) - return "management." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + if (!$util.isInteger(message.minNodeCount)) + return "minNodeCount: integer expected"; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + if (!$util.isInteger(message.maxNodeCount)) + return "maxNodeCount: integer expected"; + if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) + if (typeof message.autoprovisioned !== "boolean") + return "autoprovisioned: boolean expected"; return 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. * @function fromObject - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNodePoolManagementRequest} SetNodePoolManagementRequest + * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling */ - SetNodePoolManagementRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNodePoolManagementRequest) + NodePoolAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePoolAutoscaling) return object; - var message = new $root.google.container.v1.SetNodePoolManagementRequest(); - 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.management != null) { - if (typeof object.management !== "object") - throw TypeError(".google.container.v1.SetNodePoolManagementRequest.management: object expected"); - message.management = $root.google.container.v1.NodeManagement.fromObject(object.management); - } - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.NodePoolAutoscaling(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.minNodeCount != null) + message.minNodeCount = object.minNodeCount | 0; + if (object.maxNodeCount != null) + message.maxNodeCount = object.maxNodeCount | 0; + if (object.autoprovisioned != null) + message.autoprovisioned = Boolean(object.autoprovisioned); return message; }; /** - * Creates a plain object from a SetNodePoolManagementRequest message. Also converts values to other types if specified. + * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @static - * @param {google.container.v1.SetNodePoolManagementRequest} message SetNodePoolManagementRequest + * @param {google.container.v1.NodePoolAutoscaling} message NodePoolAutoscaling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNodePoolManagementRequest.toObject = function toObject(message, options) { + NodePoolAutoscaling.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.nodePoolId = ""; - object.management = null; - object.name = ""; + object.enabled = false; + object.minNodeCount = 0; + object.maxNodeCount = 0; + object.autoprovisioned = false; } - 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.management != null && message.hasOwnProperty("management")) - object.management = $root.google.container.v1.NodeManagement.toObject(message.management, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + object.minNodeCount = message.minNodeCount; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + object.maxNodeCount = message.maxNodeCount; + if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) + object.autoprovisioned = message.autoprovisioned; return object; }; /** - * Converts this SetNodePoolManagementRequest to JSON. + * Converts this NodePoolAutoscaling to JSON. * @function toJSON - * @memberof google.container.v1.SetNodePoolManagementRequest + * @memberof google.container.v1.NodePoolAutoscaling * @instance * @returns {Object.} JSON object */ - SetNodePoolManagementRequest.prototype.toJSON = function toJSON() { + NodePoolAutoscaling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNodePoolManagementRequest; + return NodePoolAutoscaling; })(); - v1.SetNodePoolSizeRequest = (function() { + v1.SetLabelsRequest = (function() { /** - * Properties of a SetNodePoolSizeRequest. + * Properties of a SetLabelsRequest. * @memberof google.container.v1 - * @interface ISetNodePoolSizeRequest - * @property {string|null} [projectId] SetNodePoolSizeRequest projectId - * @property {string|null} [zone] SetNodePoolSizeRequest zone - * @property {string|null} [clusterId] SetNodePoolSizeRequest clusterId - * @property {string|null} [nodePoolId] SetNodePoolSizeRequest nodePoolId - * @property {number|null} [nodeCount] SetNodePoolSizeRequest nodeCount - * @property {string|null} [name] SetNodePoolSizeRequest name + * @interface ISetLabelsRequest + * @property {string|null} [projectId] SetLabelsRequest projectId + * @property {string|null} [zone] SetLabelsRequest zone + * @property {string|null} [clusterId] SetLabelsRequest clusterId + * @property {Object.|null} [resourceLabels] SetLabelsRequest resourceLabels + * @property {string|null} [labelFingerprint] SetLabelsRequest labelFingerprint + * @property {string|null} [name] SetLabelsRequest name */ /** - * Constructs a new SetNodePoolSizeRequest. + * Constructs a new SetLabelsRequest. * @memberof google.container.v1 - * @classdesc Represents a SetNodePoolSizeRequest. - * @implements ISetNodePoolSizeRequest + * @classdesc Represents a SetLabelsRequest. + * @implements ISetLabelsRequest * @constructor - * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set + * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set */ - function SetNodePoolSizeRequest(properties) { + function SetLabelsRequest(properties) { + this.resourceLabels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -17728,75 +22670,75 @@ } /** - * SetNodePoolSizeRequest projectId. + * SetLabelsRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.projectId = ""; + SetLabelsRequest.prototype.projectId = ""; /** - * SetNodePoolSizeRequest zone. + * SetLabelsRequest zone. * @member {string} zone - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.zone = ""; + SetLabelsRequest.prototype.zone = ""; /** - * SetNodePoolSizeRequest clusterId. + * SetLabelsRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.clusterId = ""; + SetLabelsRequest.prototype.clusterId = ""; /** - * SetNodePoolSizeRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.SetNodePoolSizeRequest + * SetLabelsRequest resourceLabels. + * @member {Object.} resourceLabels + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.nodePoolId = ""; + SetLabelsRequest.prototype.resourceLabels = $util.emptyObject; /** - * SetNodePoolSizeRequest nodeCount. - * @member {number} nodeCount - * @memberof google.container.v1.SetNodePoolSizeRequest + * SetLabelsRequest labelFingerprint. + * @member {string} labelFingerprint + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.nodeCount = 0; + SetLabelsRequest.prototype.labelFingerprint = ""; /** - * SetNodePoolSizeRequest name. + * SetLabelsRequest name. * @member {string} name - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @instance */ - SetNodePoolSizeRequest.prototype.name = ""; + SetLabelsRequest.prototype.name = ""; /** - * Creates a new SetNodePoolSizeRequest instance using the specified properties. + * Creates a new SetLabelsRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.ISetNodePoolSizeRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest instance + * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest instance */ - SetNodePoolSizeRequest.create = function create(properties) { - return new SetNodePoolSizeRequest(properties); + SetLabelsRequest.create = function create(properties) { + return new SetLabelsRequest(properties); }; /** - * Encodes the specified SetNodePoolSizeRequest message. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. + * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode + * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolSizeRequest.encode = function encode(message, writer) { + SetLabelsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) @@ -17805,43 +22747,44 @@ 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.nodeCount != null && Object.hasOwnProperty.call(message, "nodeCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.nodeCount); + 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 4, wireType 2 =*/34).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 5, wireType 2 =*/42).string(message.labelFingerprint); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified SetNodePoolSizeRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNodePoolSizeRequest.verify|verify} messages. + * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.ISetNodePoolSizeRequest} message SetNodePoolSizeRequest message or plain object to encode + * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNodePoolSizeRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetLabelsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer. + * Decodes a SetLabelsRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolSizeRequest.decode = function decode(reader, length) { + SetLabelsRequest.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.SetNodePoolSizeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLabelsRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -17855,10 +22798,29 @@ message.clusterId = reader.string(); break; case 4: - message.nodePoolId = reader.string(); + 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 5: - message.nodeCount = reader.int32(); + message.labelFingerprint = reader.string(); break; case 7: message.name = reader.string(); @@ -17872,30 +22834,30 @@ }; /** - * Decodes a SetNodePoolSizeRequest message from the specified reader or buffer, length delimited. + * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNodePoolSizeRequest.decodeDelimited = function decodeDelimited(reader) { + SetLabelsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNodePoolSizeRequest message. + * Verifies a SetLabelsRequest message. * @function verify - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetNodePoolSizeRequest.verify = function verify(message) { + SetLabelsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -17907,12 +22869,17 @@ 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.nodeCount != null && message.hasOwnProperty("nodeCount")) - if (!$util.isInteger(message.nodeCount)) - return "nodeCount: integer 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.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -17920,51 +22887,57 @@ }; /** - * 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. * @function fromObject - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNodePoolSizeRequest} SetNodePoolSizeRequest + * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest */ - SetNodePoolSizeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNodePoolSizeRequest) + SetLabelsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLabelsRequest) return object; - var message = new $root.google.container.v1.SetNodePoolSizeRequest(); + var message = new $root.google.container.v1.SetLabelsRequest(); 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.nodeCount != null) - message.nodeCount = object.nodeCount | 0; + if (object.resourceLabels) { + if (typeof object.resourceLabels !== "object") + throw TypeError(".google.container.v1.SetLabelsRequest.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.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a SetNodePoolSizeRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @static - * @param {google.container.v1.SetNodePoolSizeRequest} message SetNodePoolSizeRequest + * @param {google.container.v1.SetLabelsRequest} message SetLabelsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNodePoolSizeRequest.toObject = function toObject(message, options) { + SetLabelsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.resourceLabels = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.nodePoolId = ""; - object.nodeCount = 0; + object.labelFingerprint = ""; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -17973,51 +22946,55 @@ 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.nodeCount != null && message.hasOwnProperty("nodeCount")) - object.nodeCount = message.nodeCount; + 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.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this SetNodePoolSizeRequest to JSON. + * Converts this SetLabelsRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetNodePoolSizeRequest + * @memberof google.container.v1.SetLabelsRequest * @instance * @returns {Object.} JSON object */ - SetNodePoolSizeRequest.prototype.toJSON = function toJSON() { + SetLabelsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNodePoolSizeRequest; + return SetLabelsRequest; })(); - v1.RollbackNodePoolUpgradeRequest = (function() { + v1.SetLegacyAbacRequest = (function() { /** - * Properties of a RollbackNodePoolUpgradeRequest. + * Properties of a SetLegacyAbacRequest. * @memberof google.container.v1 - * @interface IRollbackNodePoolUpgradeRequest - * @property {string|null} [projectId] RollbackNodePoolUpgradeRequest projectId - * @property {string|null} [zone] RollbackNodePoolUpgradeRequest zone - * @property {string|null} [clusterId] RollbackNodePoolUpgradeRequest clusterId - * @property {string|null} [nodePoolId] RollbackNodePoolUpgradeRequest nodePoolId - * @property {string|null} [name] RollbackNodePoolUpgradeRequest name + * @interface ISetLegacyAbacRequest + * @property {string|null} [projectId] SetLegacyAbacRequest projectId + * @property {string|null} [zone] SetLegacyAbacRequest zone + * @property {string|null} [clusterId] SetLegacyAbacRequest clusterId + * @property {boolean|null} [enabled] SetLegacyAbacRequest enabled + * @property {string|null} [name] SetLegacyAbacRequest name */ /** - * Constructs a new RollbackNodePoolUpgradeRequest. + * Constructs a new SetLegacyAbacRequest. * @memberof google.container.v1 - * @classdesc Represents a RollbackNodePoolUpgradeRequest. - * @implements IRollbackNodePoolUpgradeRequest + * @classdesc Represents a SetLegacyAbacRequest. + * @implements ISetLegacyAbacRequest * @constructor - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set + * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set */ - function RollbackNodePoolUpgradeRequest(properties) { + function SetLegacyAbacRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18025,67 +23002,67 @@ } /** - * RollbackNodePoolUpgradeRequest projectId. + * SetLegacyAbacRequest projectId. * @member {string} projectId - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - RollbackNodePoolUpgradeRequest.prototype.projectId = ""; + SetLegacyAbacRequest.prototype.projectId = ""; /** - * RollbackNodePoolUpgradeRequest zone. + * SetLegacyAbacRequest zone. * @member {string} zone - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - RollbackNodePoolUpgradeRequest.prototype.zone = ""; + SetLegacyAbacRequest.prototype.zone = ""; /** - * RollbackNodePoolUpgradeRequest clusterId. + * SetLegacyAbacRequest clusterId. * @member {string} clusterId - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - RollbackNodePoolUpgradeRequest.prototype.clusterId = ""; + SetLegacyAbacRequest.prototype.clusterId = ""; /** - * RollbackNodePoolUpgradeRequest nodePoolId. - * @member {string} nodePoolId - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * SetLegacyAbacRequest enabled. + * @member {boolean} enabled + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - RollbackNodePoolUpgradeRequest.prototype.nodePoolId = ""; + SetLegacyAbacRequest.prototype.enabled = false; /** - * RollbackNodePoolUpgradeRequest name. + * SetLegacyAbacRequest name. * @member {string} name - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @instance */ - RollbackNodePoolUpgradeRequest.prototype.name = ""; + SetLegacyAbacRequest.prototype.name = ""; /** - * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. + * Creates a new SetLegacyAbacRequest instance using the specified properties. * @function create - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest=} [properties] Properties to set - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest instance + * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest instance */ - RollbackNodePoolUpgradeRequest.create = function create(properties) { - return new RollbackNodePoolUpgradeRequest(properties); + SetLegacyAbacRequest.create = function create(properties) { + return new SetLegacyAbacRequest(properties); }; /** - * Encodes the specified RollbackNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. + * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode + * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackNodePoolUpgradeRequest.encode = function encode(message, writer) { + SetLegacyAbacRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) @@ -18094,41 +23071,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.nodePoolId != null && Object.hasOwnProperty.call(message, "nodePoolId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); return writer; }; /** - * Encodes the specified RollbackNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.RollbackNodePoolUpgradeRequest.verify|verify} messages. + * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.IRollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest message or plain object to encode + * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RollbackNodePoolUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetLegacyAbacRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer. + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackNodePoolUpgradeRequest.decode = function decode(reader, length) { + SetLegacyAbacRequest.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.RollbackNodePoolUpgradeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetLegacyAbacRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -18142,7 +23119,7 @@ message.clusterId = reader.string(); break; case 4: - message.nodePoolId = reader.string(); + message.enabled = reader.bool(); break; case 6: message.name = reader.string(); @@ -18156,30 +23133,30 @@ }; /** - * Decodes a RollbackNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. + * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RollbackNodePoolUpgradeRequest.decodeDelimited = function decodeDelimited(reader) { + SetLegacyAbacRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RollbackNodePoolUpgradeRequest message. + * Verifies a SetLegacyAbacRequest message. * @function verify - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RollbackNodePoolUpgradeRequest.verify = function verify(message) { + SetLegacyAbacRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -18191,9 +23168,9 @@ 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.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -18201,40 +23178,40 @@ }; /** - * 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. * @function fromObject - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.RollbackNodePoolUpgradeRequest} RollbackNodePoolUpgradeRequest + * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest */ - RollbackNodePoolUpgradeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.RollbackNodePoolUpgradeRequest) + SetLegacyAbacRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetLegacyAbacRequest) return object; - var message = new $root.google.container.v1.RollbackNodePoolUpgradeRequest(); + var message = new $root.google.container.v1.SetLegacyAbacRequest(); 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.enabled != null) + message.enabled = Boolean(object.enabled); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a RollbackNodePoolUpgradeRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @static - * @param {google.container.v1.RollbackNodePoolUpgradeRequest} message RollbackNodePoolUpgradeRequest + * @param {google.container.v1.SetLegacyAbacRequest} message SetLegacyAbacRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RollbackNodePoolUpgradeRequest.toObject = function toObject(message, options) { + SetLegacyAbacRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -18242,7 +23219,7 @@ object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.nodePoolId = ""; + object.enabled = false; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -18251,46 +23228,49 @@ 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.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this RollbackNodePoolUpgradeRequest to JSON. + * Converts this SetLegacyAbacRequest to JSON. * @function toJSON - * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @memberof google.container.v1.SetLegacyAbacRequest * @instance * @returns {Object.} JSON object */ - RollbackNodePoolUpgradeRequest.prototype.toJSON = function toJSON() { + SetLegacyAbacRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RollbackNodePoolUpgradeRequest; + return SetLegacyAbacRequest; })(); - v1.ListNodePoolsResponse = (function() { + v1.StartIPRotationRequest = (function() { /** - * Properties of a ListNodePoolsResponse. + * Properties of a StartIPRotationRequest. * @memberof google.container.v1 - * @interface IListNodePoolsResponse - * @property {Array.|null} [nodePools] ListNodePoolsResponse nodePools + * @interface IStartIPRotationRequest + * @property {string|null} [projectId] StartIPRotationRequest projectId + * @property {string|null} [zone] StartIPRotationRequest zone + * @property {string|null} [clusterId] StartIPRotationRequest clusterId + * @property {string|null} [name] StartIPRotationRequest name + * @property {boolean|null} [rotateCredentials] StartIPRotationRequest rotateCredentials */ /** - * Constructs a new ListNodePoolsResponse. + * Constructs a new StartIPRotationRequest. * @memberof google.container.v1 - * @classdesc Represents a ListNodePoolsResponse. - * @implements IListNodePoolsResponse + * @classdesc Represents a StartIPRotationRequest. + * @implements IStartIPRotationRequest * @constructor - * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set + * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set */ - function ListNodePoolsResponse(properties) { - this.nodePools = []; + function StartIPRotationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18298,78 +23278,127 @@ } /** - * ListNodePoolsResponse nodePools. - * @member {Array.} nodePools - * @memberof google.container.v1.ListNodePoolsResponse + * StartIPRotationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.StartIPRotationRequest * @instance */ - ListNodePoolsResponse.prototype.nodePools = $util.emptyArray; + StartIPRotationRequest.prototype.projectId = ""; /** - * Creates a new ListNodePoolsResponse instance using the specified properties. + * StartIPRotationRequest zone. + * @member {string} zone + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.zone = ""; + + /** + * StartIPRotationRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.clusterId = ""; + + /** + * StartIPRotationRequest name. + * @member {string} name + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.name = ""; + + /** + * StartIPRotationRequest rotateCredentials. + * @member {boolean} rotateCredentials + * @memberof google.container.v1.StartIPRotationRequest + * @instance + */ + StartIPRotationRequest.prototype.rotateCredentials = false; + + /** + * Creates a new StartIPRotationRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.IListNodePoolsResponse=} [properties] Properties to set - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse instance + * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest instance */ - ListNodePoolsResponse.create = function create(properties) { - return new ListNodePoolsResponse(properties); + StartIPRotationRequest.create = function create(properties) { + return new StartIPRotationRequest(properties); }; /** - * Encodes the specified ListNodePoolsResponse message. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. + * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode + * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsResponse.encode = function encode(message, writer) { + StartIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - 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 1, wireType 2 =*/10).fork()).ldelim(); + 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 6, wireType 2 =*/50).string(message.name); + if (message.rotateCredentials != null && Object.hasOwnProperty.call(message, "rotateCredentials")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateCredentials); return writer; }; /** - * Encodes the specified ListNodePoolsResponse message, length delimited. Does not implicitly {@link google.container.v1.ListNodePoolsResponse.verify|verify} messages. + * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.IListNodePoolsResponse} message ListNodePoolsResponse message or plain object to encode + * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListNodePoolsResponse.encodeDelimited = function encodeDelimited(message, writer) { + StartIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListNodePoolsResponse message from the specified reader or buffer. + * Decodes a StartIPRotationRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsResponse.decode = function decode(reader, length) { + StartIPRotationRequest.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.ListNodePoolsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.StartIPRotationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.nodePools && message.nodePools.length)) - message.nodePools = []; - message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); + message.projectId = reader.string(); + break; + case 2: + message.zone = reader.string(); + break; + case 3: + message.clusterId = reader.string(); + break; + case 6: + message.name = reader.string(); + break; + case 7: + message.rotateCredentials = reader.bool(); break; default: reader.skipType(tag & 7); @@ -18380,129 +23409,143 @@ }; /** - * Decodes a ListNodePoolsResponse message from the specified reader or buffer, length delimited. + * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListNodePoolsResponse.decodeDelimited = function decodeDelimited(reader) { + StartIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListNodePoolsResponse message. + * Verifies a StartIPRotationRequest message. * @function verify - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListNodePoolsResponse.verify = function verify(message) { + StartIPRotationRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object 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.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"; + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + if (typeof message.rotateCredentials !== "boolean") + return "rotateCredentials: boolean expected"; return 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. * @function fromObject - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ListNodePoolsResponse} ListNodePoolsResponse + * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest */ - ListNodePoolsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ListNodePoolsResponse) + StartIPRotationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.StartIPRotationRequest) return object; - var message = new $root.google.container.v1.ListNodePoolsResponse(); - if (object.nodePools) { - if (!Array.isArray(object.nodePools)) - throw TypeError(".google.container.v1.ListNodePoolsResponse.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.ListNodePoolsResponse.nodePools: object expected"); - message.nodePools[i] = $root.google.container.v1.NodePool.fromObject(object.nodePools[i]); - } - } + var message = new $root.google.container.v1.StartIPRotationRequest(); + 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); + if (object.rotateCredentials != null) + message.rotateCredentials = Boolean(object.rotateCredentials); return message; }; /** - * Creates a plain object from a ListNodePoolsResponse message. Also converts values to other types if specified. + * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @static - * @param {google.container.v1.ListNodePoolsResponse} message ListNodePoolsResponse + * @param {google.container.v1.StartIPRotationRequest} message StartIPRotationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListNodePoolsResponse.toObject = function toObject(message, options) { + StartIPRotationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.nodePools = []; - 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 (options.defaults) { + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.name = ""; + object.rotateCredentials = false; } + 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; + if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) + object.rotateCredentials = message.rotateCredentials; return object; }; /** - * Converts this ListNodePoolsResponse to JSON. + * Converts this StartIPRotationRequest to JSON. * @function toJSON - * @memberof google.container.v1.ListNodePoolsResponse + * @memberof google.container.v1.StartIPRotationRequest * @instance * @returns {Object.} JSON object */ - ListNodePoolsResponse.prototype.toJSON = function toJSON() { + StartIPRotationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListNodePoolsResponse; + return StartIPRotationRequest; })(); - v1.ClusterAutoscaling = (function() { + v1.CompleteIPRotationRequest = (function() { /** - * Properties of a ClusterAutoscaling. + * Properties of a CompleteIPRotationRequest. * @memberof google.container.v1 - * @interface IClusterAutoscaling - * @property {boolean|null} [enableNodeAutoprovisioning] ClusterAutoscaling enableNodeAutoprovisioning - * @property {Array.|null} [resourceLimits] ClusterAutoscaling resourceLimits - * @property {google.container.v1.IAutoprovisioningNodePoolDefaults|null} [autoprovisioningNodePoolDefaults] ClusterAutoscaling autoprovisioningNodePoolDefaults - * @property {Array.|null} [autoprovisioningLocations] ClusterAutoscaling autoprovisioningLocations + * @interface ICompleteIPRotationRequest + * @property {string|null} [projectId] CompleteIPRotationRequest projectId + * @property {string|null} [zone] CompleteIPRotationRequest zone + * @property {string|null} [clusterId] CompleteIPRotationRequest clusterId + * @property {string|null} [name] CompleteIPRotationRequest name */ /** - * Constructs a new ClusterAutoscaling. + * Constructs a new CompleteIPRotationRequest. * @memberof google.container.v1 - * @classdesc Represents a ClusterAutoscaling. - * @implements IClusterAutoscaling + * @classdesc Represents a CompleteIPRotationRequest. + * @implements ICompleteIPRotationRequest * @constructor - * @param {google.container.v1.IClusterAutoscaling=} [properties] Properties to set + * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set */ - function ClusterAutoscaling(properties) { - this.resourceLimits = []; - this.autoprovisioningLocations = []; + function CompleteIPRotationRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18510,120 +23553,114 @@ } /** - * ClusterAutoscaling enableNodeAutoprovisioning. - * @member {boolean} enableNodeAutoprovisioning - * @memberof google.container.v1.ClusterAutoscaling + * CompleteIPRotationRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.CompleteIPRotationRequest * @instance */ - ClusterAutoscaling.prototype.enableNodeAutoprovisioning = false; + CompleteIPRotationRequest.prototype.projectId = ""; /** - * ClusterAutoscaling resourceLimits. - * @member {Array.} resourceLimits - * @memberof google.container.v1.ClusterAutoscaling + * CompleteIPRotationRequest zone. + * @member {string} zone + * @memberof google.container.v1.CompleteIPRotationRequest * @instance */ - ClusterAutoscaling.prototype.resourceLimits = $util.emptyArray; + CompleteIPRotationRequest.prototype.zone = ""; /** - * ClusterAutoscaling autoprovisioningNodePoolDefaults. - * @member {google.container.v1.IAutoprovisioningNodePoolDefaults|null|undefined} autoprovisioningNodePoolDefaults - * @memberof google.container.v1.ClusterAutoscaling + * CompleteIPRotationRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.CompleteIPRotationRequest * @instance */ - ClusterAutoscaling.prototype.autoprovisioningNodePoolDefaults = null; + CompleteIPRotationRequest.prototype.clusterId = ""; /** - * ClusterAutoscaling autoprovisioningLocations. - * @member {Array.} autoprovisioningLocations - * @memberof google.container.v1.ClusterAutoscaling + * CompleteIPRotationRequest name. + * @member {string} name + * @memberof google.container.v1.CompleteIPRotationRequest * @instance */ - ClusterAutoscaling.prototype.autoprovisioningLocations = $util.emptyArray; + CompleteIPRotationRequest.prototype.name = ""; /** - * Creates a new ClusterAutoscaling instance using the specified properties. + * Creates a new CompleteIPRotationRequest instance using the specified properties. * @function create - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.IClusterAutoscaling=} [properties] Properties to set - * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling instance + * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest instance */ - ClusterAutoscaling.create = function create(properties) { - return new ClusterAutoscaling(properties); + CompleteIPRotationRequest.create = function create(properties) { + return new CompleteIPRotationRequest(properties); }; /** - * Encodes the specified ClusterAutoscaling message. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. + * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.IClusterAutoscaling} message ClusterAutoscaling message or plain object to encode + * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterAutoscaling.encode = function encode(message, writer) { + CompleteIPRotationRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableNodeAutoprovisioning != null && Object.hasOwnProperty.call(message, "enableNodeAutoprovisioning")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableNodeAutoprovisioning); - if (message.resourceLimits != null && message.resourceLimits.length) - for (var i = 0; i < message.resourceLimits.length; ++i) - $root.google.container.v1.ResourceLimit.encode(message.resourceLimits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.autoprovisioningNodePoolDefaults != null && Object.hasOwnProperty.call(message, "autoprovisioningNodePoolDefaults")) - $root.google.container.v1.AutoprovisioningNodePoolDefaults.encode(message.autoprovisioningNodePoolDefaults, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.autoprovisioningLocations != null && message.autoprovisioningLocations.length) - for (var i = 0; i < message.autoprovisioningLocations.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.autoprovisioningLocations[i]); + 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 7, wireType 2 =*/58).string(message.name); return writer; }; /** - * Encodes the specified ClusterAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.ClusterAutoscaling.verify|verify} messages. + * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.IClusterAutoscaling} message ClusterAutoscaling message or plain object to encode + * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ClusterAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + CompleteIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ClusterAutoscaling message from the specified reader or buffer. + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClusterAutoscaling.decode = function decode(reader, length) { + CompleteIPRotationRequest.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.ClusterAutoscaling(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.CompleteIPRotationRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enableNodeAutoprovisioning = reader.bool(); + message.projectId = reader.string(); break; case 2: - if (!(message.resourceLimits && message.resourceLimits.length)) - message.resourceLimits = []; - message.resourceLimits.push($root.google.container.v1.ResourceLimit.decode(reader, reader.uint32())); + message.zone = reader.string(); break; - case 4: - message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.decode(reader, reader.uint32()); + case 3: + message.clusterId = reader.string(); break; - case 5: - if (!(message.autoprovisioningLocations && message.autoprovisioningLocations.length)) - message.autoprovisioningLocations = []; - message.autoprovisioningLocations.push(reader.string()); + case 7: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -18634,170 +23671,133 @@ }; /** - * Decodes a ClusterAutoscaling message from the specified reader or buffer, length delimited. + * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ClusterAutoscaling.decodeDelimited = function decodeDelimited(reader) { + CompleteIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ClusterAutoscaling message. - * @function verify - * @memberof google.container.v1.ClusterAutoscaling - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ClusterAutoscaling.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) - if (typeof message.enableNodeAutoprovisioning !== "boolean") - return "enableNodeAutoprovisioning: boolean expected"; - if (message.resourceLimits != null && message.hasOwnProperty("resourceLimits")) { - if (!Array.isArray(message.resourceLimits)) - return "resourceLimits: array expected"; - for (var i = 0; i < message.resourceLimits.length; ++i) { - var error = $root.google.container.v1.ResourceLimit.verify(message.resourceLimits[i]); - if (error) - return "resourceLimits." + error; - } - } - if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) { - var error = $root.google.container.v1.AutoprovisioningNodePoolDefaults.verify(message.autoprovisioningNodePoolDefaults); - if (error) - return "autoprovisioningNodePoolDefaults." + error; - } - if (message.autoprovisioningLocations != null && message.hasOwnProperty("autoprovisioningLocations")) { - if (!Array.isArray(message.autoprovisioningLocations)) - return "autoprovisioningLocations: array expected"; - for (var i = 0; i < message.autoprovisioningLocations.length; ++i) - if (!$util.isString(message.autoprovisioningLocations[i])) - return "autoprovisioningLocations: string[] expected"; - } + }; + + /** + * Verifies a CompleteIPRotationRequest message. + * @function verify + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompleteIPRotationRequest.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 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. * @function fromObject - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ClusterAutoscaling} ClusterAutoscaling + * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest */ - ClusterAutoscaling.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ClusterAutoscaling) + CompleteIPRotationRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CompleteIPRotationRequest) return object; - var message = new $root.google.container.v1.ClusterAutoscaling(); - if (object.enableNodeAutoprovisioning != null) - message.enableNodeAutoprovisioning = Boolean(object.enableNodeAutoprovisioning); - if (object.resourceLimits) { - if (!Array.isArray(object.resourceLimits)) - throw TypeError(".google.container.v1.ClusterAutoscaling.resourceLimits: array expected"); - message.resourceLimits = []; - for (var i = 0; i < object.resourceLimits.length; ++i) { - if (typeof object.resourceLimits[i] !== "object") - throw TypeError(".google.container.v1.ClusterAutoscaling.resourceLimits: object expected"); - message.resourceLimits[i] = $root.google.container.v1.ResourceLimit.fromObject(object.resourceLimits[i]); - } - } - if (object.autoprovisioningNodePoolDefaults != null) { - if (typeof object.autoprovisioningNodePoolDefaults !== "object") - throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningNodePoolDefaults: object expected"); - message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.fromObject(object.autoprovisioningNodePoolDefaults); - } - if (object.autoprovisioningLocations) { - if (!Array.isArray(object.autoprovisioningLocations)) - throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningLocations: array expected"); - message.autoprovisioningLocations = []; - for (var i = 0; i < object.autoprovisioningLocations.length; ++i) - message.autoprovisioningLocations[i] = String(object.autoprovisioningLocations[i]); - } + var message = new $root.google.container.v1.CompleteIPRotationRequest(); + 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 ClusterAutoscaling message. Also converts values to other types if specified. + * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @static - * @param {google.container.v1.ClusterAutoscaling} message ClusterAutoscaling + * @param {google.container.v1.CompleteIPRotationRequest} message CompleteIPRotationRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ClusterAutoscaling.toObject = function toObject(message, options) { + CompleteIPRotationRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.resourceLimits = []; - object.autoprovisioningLocations = []; - } if (options.defaults) { - object.enableNodeAutoprovisioning = false; - object.autoprovisioningNodePoolDefaults = null; - } - if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) - object.enableNodeAutoprovisioning = message.enableNodeAutoprovisioning; - if (message.resourceLimits && message.resourceLimits.length) { - object.resourceLimits = []; - for (var j = 0; j < message.resourceLimits.length; ++j) - object.resourceLimits[j] = $root.google.container.v1.ResourceLimit.toObject(message.resourceLimits[j], options); - } - if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) - object.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.toObject(message.autoprovisioningNodePoolDefaults, options); - if (message.autoprovisioningLocations && message.autoprovisioningLocations.length) { - object.autoprovisioningLocations = []; - for (var j = 0; j < message.autoprovisioningLocations.length; ++j) - object.autoprovisioningLocations[j] = message.autoprovisioningLocations[j]; + 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 ClusterAutoscaling to JSON. + * Converts this CompleteIPRotationRequest to JSON. * @function toJSON - * @memberof google.container.v1.ClusterAutoscaling + * @memberof google.container.v1.CompleteIPRotationRequest * @instance * @returns {Object.} JSON object */ - ClusterAutoscaling.prototype.toJSON = function toJSON() { + CompleteIPRotationRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ClusterAutoscaling; + return CompleteIPRotationRequest; })(); - v1.AutoprovisioningNodePoolDefaults = (function() { + v1.AcceleratorConfig = (function() { /** - * Properties of an AutoprovisioningNodePoolDefaults. + * Properties of an AcceleratorConfig. * @memberof google.container.v1 - * @interface IAutoprovisioningNodePoolDefaults - * @property {Array.|null} [oauthScopes] AutoprovisioningNodePoolDefaults oauthScopes - * @property {string|null} [serviceAccount] AutoprovisioningNodePoolDefaults serviceAccount + * @interface IAcceleratorConfig + * @property {number|Long|null} [acceleratorCount] AcceleratorConfig acceleratorCount + * @property {string|null} [acceleratorType] AcceleratorConfig acceleratorType */ /** - * Constructs a new AutoprovisioningNodePoolDefaults. + * Constructs a new AcceleratorConfig. * @memberof google.container.v1 - * @classdesc Represents an AutoprovisioningNodePoolDefaults. - * @implements IAutoprovisioningNodePoolDefaults + * @classdesc Represents an AcceleratorConfig. + * @implements IAcceleratorConfig * @constructor - * @param {google.container.v1.IAutoprovisioningNodePoolDefaults=} [properties] Properties to set + * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set */ - function AutoprovisioningNodePoolDefaults(properties) { - this.oauthScopes = []; + function AcceleratorConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -18805,91 +23805,88 @@ } /** - * AutoprovisioningNodePoolDefaults oauthScopes. - * @member {Array.} oauthScopes - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * AcceleratorConfig acceleratorCount. + * @member {number|Long} acceleratorCount + * @memberof google.container.v1.AcceleratorConfig * @instance */ - AutoprovisioningNodePoolDefaults.prototype.oauthScopes = $util.emptyArray; + AcceleratorConfig.prototype.acceleratorCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * AutoprovisioningNodePoolDefaults serviceAccount. - * @member {string} serviceAccount - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * AcceleratorConfig acceleratorType. + * @member {string} acceleratorType + * @memberof google.container.v1.AcceleratorConfig * @instance */ - AutoprovisioningNodePoolDefaults.prototype.serviceAccount = ""; + AcceleratorConfig.prototype.acceleratorType = ""; /** - * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties. + * Creates a new AcceleratorConfig instance using the specified properties. * @function create - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.IAutoprovisioningNodePoolDefaults=} [properties] Properties to set - * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults instance + * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig instance */ - AutoprovisioningNodePoolDefaults.create = function create(properties) { - return new AutoprovisioningNodePoolDefaults(properties); + AcceleratorConfig.create = function create(properties) { + return new AcceleratorConfig(properties); }; /** - * Encodes the specified AutoprovisioningNodePoolDefaults message. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. + * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.IAutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults message or plain object to encode + * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoprovisioningNodePoolDefaults.encode = function encode(message, writer) { + AcceleratorConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.oauthScopes != null && message.oauthScopes.length) - for (var i = 0; i < message.oauthScopes.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.oauthScopes[i]); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAccount); + if (message.acceleratorCount != null && Object.hasOwnProperty.call(message, "acceleratorCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); + if (message.acceleratorType != null && Object.hasOwnProperty.call(message, "acceleratorType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); return writer; }; /** - * Encodes the specified AutoprovisioningNodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.AutoprovisioningNodePoolDefaults.verify|verify} messages. + * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.IAutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults message or plain object to encode + * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AutoprovisioningNodePoolDefaults.encodeDelimited = function encodeDelimited(message, writer) { + AcceleratorConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer. + * Decodes an AcceleratorConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoprovisioningNodePoolDefaults.decode = function decode(reader, length) { + AcceleratorConfig.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.AutoprovisioningNodePoolDefaults(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.AcceleratorConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.oauthScopes && message.oauthScopes.length)) - message.oauthScopes = []; - message.oauthScopes.push(reader.string()); + message.acceleratorCount = reader.int64(); break; case 2: - message.serviceAccount = reader.string(); + message.acceleratorType = reader.string(); break; default: reader.skipType(tag & 7); @@ -18900,130 +23897,130 @@ }; /** - * Decodes an AutoprovisioningNodePoolDefaults message from the specified reader or buffer, length delimited. + * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AutoprovisioningNodePoolDefaults.decodeDelimited = function decodeDelimited(reader) { + AcceleratorConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AutoprovisioningNodePoolDefaults message. + * Verifies an AcceleratorConfig message. * @function verify - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AutoprovisioningNodePoolDefaults.verify = function verify(message) { + AcceleratorConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.oauthScopes != null && message.hasOwnProperty("oauthScopes")) { - if (!Array.isArray(message.oauthScopes)) - return "oauthScopes: array expected"; - for (var i = 0; i < message.oauthScopes.length; ++i) - if (!$util.isString(message.oauthScopes[i])) - return "oauthScopes: string[] expected"; - } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + if (!$util.isInteger(message.acceleratorCount) && !(message.acceleratorCount && $util.isInteger(message.acceleratorCount.low) && $util.isInteger(message.acceleratorCount.high))) + return "acceleratorCount: integer|Long expected"; + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + if (!$util.isString(message.acceleratorType)) + return "acceleratorType: string expected"; return 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. * @function fromObject - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.AutoprovisioningNodePoolDefaults} AutoprovisioningNodePoolDefaults - */ - AutoprovisioningNodePoolDefaults.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.AutoprovisioningNodePoolDefaults) - return object; - var message = new $root.google.container.v1.AutoprovisioningNodePoolDefaults(); - if (object.oauthScopes) { - if (!Array.isArray(object.oauthScopes)) - throw TypeError(".google.container.v1.AutoprovisioningNodePoolDefaults.oauthScopes: array expected"); - message.oauthScopes = []; - for (var i = 0; i < object.oauthScopes.length; ++i) - message.oauthScopes[i] = String(object.oauthScopes[i]); - } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); + * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + */ + AcceleratorConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AcceleratorConfig) + return object; + var message = new $root.google.container.v1.AcceleratorConfig(); + if (object.acceleratorCount != null) + if ($util.Long) + (message.acceleratorCount = $util.Long.fromValue(object.acceleratorCount)).unsigned = false; + else if (typeof object.acceleratorCount === "string") + message.acceleratorCount = parseInt(object.acceleratorCount, 10); + else if (typeof object.acceleratorCount === "number") + message.acceleratorCount = object.acceleratorCount; + else if (typeof object.acceleratorCount === "object") + message.acceleratorCount = new $util.LongBits(object.acceleratorCount.low >>> 0, object.acceleratorCount.high >>> 0).toNumber(); + if (object.acceleratorType != null) + message.acceleratorType = String(object.acceleratorType); return message; }; /** - * Creates a plain object from an AutoprovisioningNodePoolDefaults message. Also converts values to other types if specified. + * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @static - * @param {google.container.v1.AutoprovisioningNodePoolDefaults} message AutoprovisioningNodePoolDefaults + * @param {google.container.v1.AcceleratorConfig} message AcceleratorConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AutoprovisioningNodePoolDefaults.toObject = function toObject(message, options) { + AcceleratorConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.oauthScopes = []; - if (options.defaults) - object.serviceAccount = ""; - if (message.oauthScopes && message.oauthScopes.length) { - object.oauthScopes = []; - for (var j = 0; j < message.oauthScopes.length; ++j) - object.oauthScopes[j] = message.oauthScopes[j]; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.acceleratorCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.acceleratorCount = options.longs === String ? "0" : 0; + object.acceleratorType = ""; } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; + if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) + if (typeof message.acceleratorCount === "number") + object.acceleratorCount = options.longs === String ? String(message.acceleratorCount) : message.acceleratorCount; + else + object.acceleratorCount = options.longs === String ? $util.Long.prototype.toString.call(message.acceleratorCount) : options.longs === Number ? new $util.LongBits(message.acceleratorCount.low >>> 0, message.acceleratorCount.high >>> 0).toNumber() : message.acceleratorCount; + if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) + object.acceleratorType = message.acceleratorType; return object; }; /** - * Converts this AutoprovisioningNodePoolDefaults to JSON. + * Converts this AcceleratorConfig to JSON. * @function toJSON - * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @memberof google.container.v1.AcceleratorConfig * @instance * @returns {Object.} JSON object */ - AutoprovisioningNodePoolDefaults.prototype.toJSON = function toJSON() { + AcceleratorConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AutoprovisioningNodePoolDefaults; + return AcceleratorConfig; })(); - v1.ResourceLimit = (function() { + v1.WorkloadMetadataConfig = (function() { /** - * Properties of a ResourceLimit. + * Properties of a WorkloadMetadataConfig. * @memberof google.container.v1 - * @interface IResourceLimit - * @property {string|null} [resourceType] ResourceLimit resourceType - * @property {number|Long|null} [minimum] ResourceLimit minimum - * @property {number|Long|null} [maximum] ResourceLimit maximum + * @interface IWorkloadMetadataConfig + * @property {google.container.v1.WorkloadMetadataConfig.Mode|null} [mode] WorkloadMetadataConfig mode */ /** - * Constructs a new ResourceLimit. + * Constructs a new WorkloadMetadataConfig. * @memberof google.container.v1 - * @classdesc Represents a ResourceLimit. - * @implements IResourceLimit + * @classdesc Represents a WorkloadMetadataConfig. + * @implements IWorkloadMetadataConfig * @constructor - * @param {google.container.v1.IResourceLimit=} [properties] Properties to set + * @param {google.container.v1.IWorkloadMetadataConfig=} [properties] Properties to set */ - function ResourceLimit(properties) { + function WorkloadMetadataConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19031,101 +24028,75 @@ } /** - * ResourceLimit resourceType. - * @member {string} resourceType - * @memberof google.container.v1.ResourceLimit - * @instance - */ - ResourceLimit.prototype.resourceType = ""; - - /** - * ResourceLimit minimum. - * @member {number|Long} minimum - * @memberof google.container.v1.ResourceLimit - * @instance - */ - ResourceLimit.prototype.minimum = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ResourceLimit maximum. - * @member {number|Long} maximum - * @memberof google.container.v1.ResourceLimit + * WorkloadMetadataConfig mode. + * @member {google.container.v1.WorkloadMetadataConfig.Mode} mode + * @memberof google.container.v1.WorkloadMetadataConfig * @instance */ - ResourceLimit.prototype.maximum = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + WorkloadMetadataConfig.prototype.mode = 0; /** - * Creates a new ResourceLimit instance using the specified properties. + * Creates a new WorkloadMetadataConfig instance using the specified properties. * @function create - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static - * @param {google.container.v1.IResourceLimit=} [properties] Properties to set - * @returns {google.container.v1.ResourceLimit} ResourceLimit instance + * @param {google.container.v1.IWorkloadMetadataConfig=} [properties] Properties to set + * @returns {google.container.v1.WorkloadMetadataConfig} WorkloadMetadataConfig instance */ - ResourceLimit.create = function create(properties) { - return new ResourceLimit(properties); + WorkloadMetadataConfig.create = function create(properties) { + return new WorkloadMetadataConfig(properties); }; /** - * Encodes the specified ResourceLimit message. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. + * Encodes the specified WorkloadMetadataConfig message. Does not implicitly {@link google.container.v1.WorkloadMetadataConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static - * @param {google.container.v1.IResourceLimit} message ResourceLimit message or plain object to encode + * @param {google.container.v1.IWorkloadMetadataConfig} message WorkloadMetadataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceLimit.encode = function encode(message, writer) { + WorkloadMetadataConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceType); - if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minimum); - if (message.maximum != null && Object.hasOwnProperty.call(message, "maximum")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.maximum); + if (message.mode != null && Object.hasOwnProperty.call(message, "mode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mode); return writer; }; /** - * Encodes the specified ResourceLimit message, length delimited. Does not implicitly {@link google.container.v1.ResourceLimit.verify|verify} messages. + * Encodes the specified WorkloadMetadataConfig message, length delimited. Does not implicitly {@link google.container.v1.WorkloadMetadataConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static - * @param {google.container.v1.IResourceLimit} message ResourceLimit message or plain object to encode + * @param {google.container.v1.IWorkloadMetadataConfig} message WorkloadMetadataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResourceLimit.encodeDelimited = function encodeDelimited(message, writer) { + WorkloadMetadataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResourceLimit message from the specified reader or buffer. + * Decodes a WorkloadMetadataConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ResourceLimit} ResourceLimit + * @returns {google.container.v1.WorkloadMetadataConfig} WorkloadMetadataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceLimit.decode = function decode(reader, length) { + WorkloadMetadataConfig.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.ResourceLimit(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.WorkloadMetadataConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.resourceType = reader.string(); - break; case 2: - message.minimum = reader.int64(); - break; - case 3: - message.maximum = reader.int64(); + message.mode = reader.int32(); break; default: reader.skipType(tag & 7); @@ -19136,155 +24107,145 @@ }; /** - * Decodes a ResourceLimit message from the specified reader or buffer, length delimited. + * Decodes a WorkloadMetadataConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ResourceLimit} ResourceLimit + * @returns {google.container.v1.WorkloadMetadataConfig} WorkloadMetadataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResourceLimit.decodeDelimited = function decodeDelimited(reader) { + WorkloadMetadataConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResourceLimit message. + * Verifies a WorkloadMetadataConfig message. * @function verify - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResourceLimit.verify = function verify(message) { + WorkloadMetadataConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - if (!$util.isString(message.resourceType)) - return "resourceType: string expected"; - if (message.minimum != null && message.hasOwnProperty("minimum")) - if (!$util.isInteger(message.minimum) && !(message.minimum && $util.isInteger(message.minimum.low) && $util.isInteger(message.minimum.high))) - return "minimum: integer|Long expected"; - if (message.maximum != null && message.hasOwnProperty("maximum")) - if (!$util.isInteger(message.maximum) && !(message.maximum && $util.isInteger(message.maximum.low) && $util.isInteger(message.maximum.high))) - return "maximum: integer|Long expected"; + if (message.mode != null && message.hasOwnProperty("mode")) + switch (message.mode) { + default: + return "mode: enum value expected"; + case 0: + case 1: + case 2: + break; + } return 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. * @function fromObject - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.ResourceLimit} ResourceLimit + * @returns {google.container.v1.WorkloadMetadataConfig} WorkloadMetadataConfig */ - ResourceLimit.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ResourceLimit) + WorkloadMetadataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.WorkloadMetadataConfig) return object; - var message = new $root.google.container.v1.ResourceLimit(); - if (object.resourceType != null) - message.resourceType = String(object.resourceType); - if (object.minimum != null) - if ($util.Long) - (message.minimum = $util.Long.fromValue(object.minimum)).unsigned = false; - else if (typeof object.minimum === "string") - message.minimum = parseInt(object.minimum, 10); - else if (typeof object.minimum === "number") - message.minimum = object.minimum; - else if (typeof object.minimum === "object") - message.minimum = new $util.LongBits(object.minimum.low >>> 0, object.minimum.high >>> 0).toNumber(); - if (object.maximum != null) - if ($util.Long) - (message.maximum = $util.Long.fromValue(object.maximum)).unsigned = false; - else if (typeof object.maximum === "string") - message.maximum = parseInt(object.maximum, 10); - else if (typeof object.maximum === "number") - message.maximum = object.maximum; - else if (typeof object.maximum === "object") - message.maximum = new $util.LongBits(object.maximum.low >>> 0, object.maximum.high >>> 0).toNumber(); + var message = new $root.google.container.v1.WorkloadMetadataConfig(); + switch (object.mode) { + case "MODE_UNSPECIFIED": + case 0: + message.mode = 0; + break; + case "GCE_METADATA": + case 1: + message.mode = 1; + break; + case "GKE_METADATA": + case 2: + message.mode = 2; + break; + } return message; }; /** - * Creates a plain object from a ResourceLimit message. Also converts values to other types if specified. + * Creates a plain object from a WorkloadMetadataConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @static - * @param {google.container.v1.ResourceLimit} message ResourceLimit + * @param {google.container.v1.WorkloadMetadataConfig} message WorkloadMetadataConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResourceLimit.toObject = function toObject(message, options) { + WorkloadMetadataConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.resourceType = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minimum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minimum = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maximum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maximum = options.longs === String ? "0" : 0; - } - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - object.resourceType = message.resourceType; - if (message.minimum != null && message.hasOwnProperty("minimum")) - if (typeof message.minimum === "number") - object.minimum = options.longs === String ? String(message.minimum) : message.minimum; - else - object.minimum = options.longs === String ? $util.Long.prototype.toString.call(message.minimum) : options.longs === Number ? new $util.LongBits(message.minimum.low >>> 0, message.minimum.high >>> 0).toNumber() : message.minimum; - if (message.maximum != null && message.hasOwnProperty("maximum")) - if (typeof message.maximum === "number") - object.maximum = options.longs === String ? String(message.maximum) : message.maximum; - else - object.maximum = options.longs === String ? $util.Long.prototype.toString.call(message.maximum) : options.longs === Number ? new $util.LongBits(message.maximum.low >>> 0, message.maximum.high >>> 0).toNumber() : message.maximum; + if (options.defaults) + object.mode = options.enums === String ? "MODE_UNSPECIFIED" : 0; + if (message.mode != null && message.hasOwnProperty("mode")) + object.mode = options.enums === String ? $root.google.container.v1.WorkloadMetadataConfig.Mode[message.mode] : message.mode; return object; }; /** - * Converts this ResourceLimit to JSON. + * Converts this WorkloadMetadataConfig to JSON. * @function toJSON - * @memberof google.container.v1.ResourceLimit + * @memberof google.container.v1.WorkloadMetadataConfig * @instance * @returns {Object.} JSON object */ - ResourceLimit.prototype.toJSON = function toJSON() { + WorkloadMetadataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResourceLimit; + /** + * Mode enum. + * @name google.container.v1.WorkloadMetadataConfig.Mode + * @enum {number} + * @property {number} MODE_UNSPECIFIED=0 MODE_UNSPECIFIED value + * @property {number} GCE_METADATA=1 GCE_METADATA value + * @property {number} GKE_METADATA=2 GKE_METADATA value + */ + WorkloadMetadataConfig.Mode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "GCE_METADATA"] = 1; + values[valuesById[2] = "GKE_METADATA"] = 2; + return values; + })(); + + return WorkloadMetadataConfig; })(); - v1.NodePoolAutoscaling = (function() { + v1.SetNetworkPolicyRequest = (function() { /** - * Properties of a NodePoolAutoscaling. + * Properties of a SetNetworkPolicyRequest. * @memberof google.container.v1 - * @interface INodePoolAutoscaling - * @property {boolean|null} [enabled] NodePoolAutoscaling enabled - * @property {number|null} [minNodeCount] NodePoolAutoscaling minNodeCount - * @property {number|null} [maxNodeCount] NodePoolAutoscaling maxNodeCount - * @property {boolean|null} [autoprovisioned] NodePoolAutoscaling autoprovisioned + * @interface ISetNetworkPolicyRequest + * @property {string|null} [projectId] SetNetworkPolicyRequest projectId + * @property {string|null} [zone] SetNetworkPolicyRequest zone + * @property {string|null} [clusterId] SetNetworkPolicyRequest clusterId + * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] SetNetworkPolicyRequest networkPolicy + * @property {string|null} [name] SetNetworkPolicyRequest name */ /** - * Constructs a new NodePoolAutoscaling. + * Constructs a new SetNetworkPolicyRequest. * @memberof google.container.v1 - * @classdesc Represents a NodePoolAutoscaling. - * @implements INodePoolAutoscaling + * @classdesc Represents a SetNetworkPolicyRequest. + * @implements ISetNetworkPolicyRequest * @constructor - * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set + * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set */ - function NodePoolAutoscaling(properties) { + function SetNetworkPolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19292,114 +24253,127 @@ } /** - * NodePoolAutoscaling enabled. - * @member {boolean} enabled - * @memberof google.container.v1.NodePoolAutoscaling + * SetNetworkPolicyRequest projectId. + * @member {string} projectId + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - NodePoolAutoscaling.prototype.enabled = false; + SetNetworkPolicyRequest.prototype.projectId = ""; + + /** + * SetNetworkPolicyRequest zone. + * @member {string} zone + * @memberof google.container.v1.SetNetworkPolicyRequest + * @instance + */ + SetNetworkPolicyRequest.prototype.zone = ""; /** - * NodePoolAutoscaling minNodeCount. - * @member {number} minNodeCount - * @memberof google.container.v1.NodePoolAutoscaling + * SetNetworkPolicyRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - NodePoolAutoscaling.prototype.minNodeCount = 0; + SetNetworkPolicyRequest.prototype.clusterId = ""; /** - * NodePoolAutoscaling maxNodeCount. - * @member {number} maxNodeCount - * @memberof google.container.v1.NodePoolAutoscaling + * SetNetworkPolicyRequest networkPolicy. + * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - NodePoolAutoscaling.prototype.maxNodeCount = 0; + SetNetworkPolicyRequest.prototype.networkPolicy = null; /** - * NodePoolAutoscaling autoprovisioned. - * @member {boolean} autoprovisioned - * @memberof google.container.v1.NodePoolAutoscaling + * SetNetworkPolicyRequest name. + * @member {string} name + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance */ - NodePoolAutoscaling.prototype.autoprovisioned = false; + SetNetworkPolicyRequest.prototype.name = ""; /** - * Creates a new NodePoolAutoscaling instance using the specified properties. + * Creates a new SetNetworkPolicyRequest instance using the specified properties. * @function create - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.INodePoolAutoscaling=} [properties] Properties to set - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling instance + * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest instance */ - NodePoolAutoscaling.create = function create(properties) { - return new NodePoolAutoscaling(properties); + SetNetworkPolicyRequest.create = function create(properties) { + return new SetNetworkPolicyRequest(properties); }; /** - * Encodes the specified NodePoolAutoscaling message. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. + * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode + * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePoolAutoscaling.encode = function encode(message, writer) { + SetNetworkPolicyRequest.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.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minNodeCount); - if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); - if (message.autoprovisioned != null && Object.hasOwnProperty.call(message, "autoprovisioned")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.autoprovisioned); + 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.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) + $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, 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 NodePoolAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoscaling.verify|verify} messages. + * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.INodePoolAutoscaling} message NodePoolAutoscaling message or plain object to encode + * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NodePoolAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + SetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NodePoolAutoscaling message from the specified reader or buffer. + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePoolAutoscaling.decode = function decode(reader, length) { + SetNetworkPolicyRequest.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.NodePoolAutoscaling(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetNetworkPolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enabled = reader.bool(); + message.projectId = reader.string(); break; case 2: - message.minNodeCount = reader.int32(); + message.zone = reader.string(); break; case 3: - message.maxNodeCount = reader.int32(); + message.clusterId = reader.string(); break; case 4: - message.autoprovisioned = reader.bool(); + message.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); + break; + case 6: + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -19410,138 +24384,149 @@ }; /** - * Decodes a NodePoolAutoscaling message from the specified reader or buffer, length delimited. + * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NodePoolAutoscaling.decodeDelimited = function decodeDelimited(reader) { + SetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NodePoolAutoscaling message. + * Verifies a SetNetworkPolicyRequest message. * @function verify - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NodePoolAutoscaling.verify = function verify(message) { + SetNetworkPolicyRequest.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.minNodeCount != null && message.hasOwnProperty("minNodeCount")) - if (!$util.isInteger(message.minNodeCount)) - return "minNodeCount: integer expected"; - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) - if (!$util.isInteger(message.maxNodeCount)) - return "maxNodeCount: integer expected"; - if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) - if (typeof message.autoprovisioned !== "boolean") - return "autoprovisioned: boolean 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.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { + var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy); + if (error) + return "networkPolicy." + error; + } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return 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. * @function fromObject - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NodePoolAutoscaling} NodePoolAutoscaling + * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest */ - NodePoolAutoscaling.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NodePoolAutoscaling) + SetNetworkPolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetNetworkPolicyRequest) return object; - var message = new $root.google.container.v1.NodePoolAutoscaling(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.minNodeCount != null) - message.minNodeCount = object.minNodeCount | 0; - if (object.maxNodeCount != null) - message.maxNodeCount = object.maxNodeCount | 0; - if (object.autoprovisioned != null) - message.autoprovisioned = Boolean(object.autoprovisioned); + var message = new $root.google.container.v1.SetNetworkPolicyRequest(); + 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.networkPolicy != null) { + if (typeof object.networkPolicy !== "object") + throw TypeError(".google.container.v1.SetNetworkPolicyRequest.networkPolicy: object expected"); + message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy); + } + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a NodePoolAutoscaling message. Also converts values to other types if specified. + * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @static - * @param {google.container.v1.NodePoolAutoscaling} message NodePoolAutoscaling + * @param {google.container.v1.SetNetworkPolicyRequest} message SetNetworkPolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NodePoolAutoscaling.toObject = function toObject(message, options) { + SetNetworkPolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.enabled = false; - object.minNodeCount = 0; - object.maxNodeCount = 0; - object.autoprovisioned = false; + object.projectId = ""; + object.zone = ""; + object.clusterId = ""; + object.networkPolicy = null; + object.name = ""; } - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) - object.minNodeCount = message.minNodeCount; - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) - object.maxNodeCount = message.maxNodeCount; - if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) - object.autoprovisioned = message.autoprovisioned; + 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.networkPolicy != null && message.hasOwnProperty("networkPolicy")) + object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this NodePoolAutoscaling to JSON. + * Converts this SetNetworkPolicyRequest to JSON. * @function toJSON - * @memberof google.container.v1.NodePoolAutoscaling + * @memberof google.container.v1.SetNetworkPolicyRequest * @instance * @returns {Object.} JSON object */ - NodePoolAutoscaling.prototype.toJSON = function toJSON() { + SetNetworkPolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NodePoolAutoscaling; + return SetNetworkPolicyRequest; })(); - v1.SetLabelsRequest = (function() { + v1.SetMaintenancePolicyRequest = (function() { /** - * Properties of a SetLabelsRequest. + * Properties of a SetMaintenancePolicyRequest. * @memberof google.container.v1 - * @interface ISetLabelsRequest - * @property {string|null} [projectId] SetLabelsRequest projectId - * @property {string|null} [zone] SetLabelsRequest zone - * @property {string|null} [clusterId] SetLabelsRequest clusterId - * @property {Object.|null} [resourceLabels] SetLabelsRequest resourceLabels - * @property {string|null} [labelFingerprint] SetLabelsRequest labelFingerprint - * @property {string|null} [name] SetLabelsRequest name + * @interface ISetMaintenancePolicyRequest + * @property {string|null} [projectId] SetMaintenancePolicyRequest projectId + * @property {string|null} [zone] SetMaintenancePolicyRequest zone + * @property {string|null} [clusterId] SetMaintenancePolicyRequest clusterId + * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] SetMaintenancePolicyRequest maintenancePolicy + * @property {string|null} [name] SetMaintenancePolicyRequest name */ /** - * Constructs a new SetLabelsRequest. + * Constructs a new SetMaintenancePolicyRequest. * @memberof google.container.v1 - * @classdesc Represents a SetLabelsRequest. - * @implements ISetLabelsRequest + * @classdesc Represents a SetMaintenancePolicyRequest. + * @implements ISetMaintenancePolicyRequest * @constructor - * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set + * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set */ - function SetLabelsRequest(properties) { - this.resourceLabels = {}; + function SetMaintenancePolicyRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19549,75 +24534,67 @@ } /** - * SetLabelsRequest projectId. + * SetMaintenancePolicyRequest projectId. * @member {string} projectId - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetLabelsRequest.prototype.projectId = ""; + SetMaintenancePolicyRequest.prototype.projectId = ""; /** - * SetLabelsRequest zone. + * SetMaintenancePolicyRequest zone. * @member {string} zone - * @memberof google.container.v1.SetLabelsRequest - * @instance - */ - SetLabelsRequest.prototype.zone = ""; - - /** - * SetLabelsRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetLabelsRequest.prototype.clusterId = ""; + SetMaintenancePolicyRequest.prototype.zone = ""; /** - * SetLabelsRequest resourceLabels. - * @member {Object.} resourceLabels - * @memberof google.container.v1.SetLabelsRequest + * SetMaintenancePolicyRequest clusterId. + * @member {string} clusterId + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetLabelsRequest.prototype.resourceLabels = $util.emptyObject; + SetMaintenancePolicyRequest.prototype.clusterId = ""; /** - * SetLabelsRequest labelFingerprint. - * @member {string} labelFingerprint - * @memberof google.container.v1.SetLabelsRequest + * SetMaintenancePolicyRequest maintenancePolicy. + * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetLabelsRequest.prototype.labelFingerprint = ""; + SetMaintenancePolicyRequest.prototype.maintenancePolicy = null; /** - * SetLabelsRequest name. + * SetMaintenancePolicyRequest name. * @member {string} name - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance */ - SetLabelsRequest.prototype.name = ""; + SetMaintenancePolicyRequest.prototype.name = ""; /** - * Creates a new SetLabelsRequest instance using the specified properties. + * Creates a new SetMaintenancePolicyRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.ISetLabelsRequest=} [properties] Properties to set - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest instance + * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest instance */ - SetLabelsRequest.create = function create(properties) { - return new SetLabelsRequest(properties); + SetMaintenancePolicyRequest.create = function create(properties) { + return new SetMaintenancePolicyRequest(properties); }; /** - * Encodes the specified SetLabelsRequest message. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. + * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode + * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLabelsRequest.encode = function encode(message, writer) { + SetMaintenancePolicyRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.projectId != null && Object.hasOwnProperty.call(message, "projectId")) @@ -19626,44 +24603,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.resourceLabels != null && Object.hasOwnProperty.call(message, "resourceLabels")) - for (var keys = Object.keys(message.resourceLabels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).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 5, wireType 2 =*/42).string(message.labelFingerprint); + if (message.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy")) + $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.name); + writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); return writer; }; /** - * Encodes the specified SetLabelsRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLabelsRequest.verify|verify} messages. + * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.ISetLabelsRequest} message SetLabelsRequest message or plain object to encode + * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLabelsRequest.encodeDelimited = function encodeDelimited(message, writer) { + SetMaintenancePolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetLabelsRequest message from the specified reader or buffer. + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLabelsRequest.decode = function decode(reader, length) { + SetMaintenancePolicyRequest.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.SetLabelsRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.SetMaintenancePolicyRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -19677,31 +24651,9 @@ message.clusterId = reader.string(); break; case 4: - 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; + message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); break; case 5: - message.labelFingerprint = reader.string(); - break; - case 7: message.name = reader.string(); break; default: @@ -19713,30 +24665,30 @@ }; /** - * Decodes a SetLabelsRequest message from the specified reader or buffer, length delimited. + * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLabelsRequest.decodeDelimited = function decodeDelimited(reader) { + SetMaintenancePolicyRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetLabelsRequest message. + * Verifies a SetMaintenancePolicyRequest message. * @function verify - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetLabelsRequest.verify = function verify(message) { + SetMaintenancePolicyRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -19748,17 +24700,11 @@ if (message.clusterId != null && message.hasOwnProperty("clusterId")) if (!$util.isString(message.clusterId)) return "clusterId: string 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.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) { + var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy); + if (error) + return "maintenancePolicy." + error; } - if (message.labelFingerprint != null && message.hasOwnProperty("labelFingerprint")) - if (!$util.isString(message.labelFingerprint)) - return "labelFingerprint: string expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; @@ -19766,57 +24712,51 @@ }; /** - * 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. * @function fromObject - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetLabelsRequest} SetLabelsRequest + * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest */ - SetLabelsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetLabelsRequest) + SetMaintenancePolicyRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SetMaintenancePolicyRequest) return object; - var message = new $root.google.container.v1.SetLabelsRequest(); + var message = new $root.google.container.v1.SetMaintenancePolicyRequest(); 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.resourceLabels) { - if (typeof object.resourceLabels !== "object") - throw TypeError(".google.container.v1.SetLabelsRequest.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.maintenancePolicy != null) { + if (typeof object.maintenancePolicy !== "object") + throw TypeError(".google.container.v1.SetMaintenancePolicyRequest.maintenancePolicy: object expected"); + message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy); } - if (object.labelFingerprint != null) - message.labelFingerprint = String(object.labelFingerprint); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a SetLabelsRequest message. Also converts values to other types if specified. + * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @static - * @param {google.container.v1.SetLabelsRequest} message SetLabelsRequest + * @param {google.container.v1.SetMaintenancePolicyRequest} message SetMaintenancePolicyRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetLabelsRequest.toObject = function toObject(message, options) { + SetMaintenancePolicyRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.resourceLabels = {}; if (options.defaults) { object.projectId = ""; object.zone = ""; object.clusterId = ""; - object.labelFingerprint = ""; + object.maintenancePolicy = null; object.name = ""; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -19825,55 +24765,46 @@ object.zone = message.zone; if (message.clusterId != null && message.hasOwnProperty("clusterId")) object.clusterId = message.clusterId; - 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.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) + object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options); if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; return object; }; /** - * Converts this SetLabelsRequest to JSON. + * Converts this SetMaintenancePolicyRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetLabelsRequest + * @memberof google.container.v1.SetMaintenancePolicyRequest * @instance * @returns {Object.} JSON object */ - SetLabelsRequest.prototype.toJSON = function toJSON() { + SetMaintenancePolicyRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetLabelsRequest; + return SetMaintenancePolicyRequest; })(); - v1.SetLegacyAbacRequest = (function() { + v1.StatusCondition = (function() { /** - * Properties of a SetLegacyAbacRequest. + * Properties of a StatusCondition. * @memberof google.container.v1 - * @interface ISetLegacyAbacRequest - * @property {string|null} [projectId] SetLegacyAbacRequest projectId - * @property {string|null} [zone] SetLegacyAbacRequest zone - * @property {string|null} [clusterId] SetLegacyAbacRequest clusterId - * @property {boolean|null} [enabled] SetLegacyAbacRequest enabled - * @property {string|null} [name] SetLegacyAbacRequest name + * @interface IStatusCondition + * @property {google.container.v1.StatusCondition.Code|null} [code] StatusCondition code + * @property {string|null} [message] StatusCondition message */ /** - * Constructs a new SetLegacyAbacRequest. + * Constructs a new StatusCondition. * @memberof google.container.v1 - * @classdesc Represents a SetLegacyAbacRequest. - * @implements ISetLegacyAbacRequest + * @classdesc Represents a StatusCondition. + * @implements IStatusCondition * @constructor - * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set + * @param {google.container.v1.IStatusCondition=} [properties] Properties to set */ - function SetLegacyAbacRequest(properties) { + function StatusCondition(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -19881,127 +24812,88 @@ } /** - * SetLegacyAbacRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetLegacyAbacRequest - * @instance - */ - SetLegacyAbacRequest.prototype.projectId = ""; - - /** - * SetLegacyAbacRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetLegacyAbacRequest - * @instance - */ - SetLegacyAbacRequest.prototype.zone = ""; - - /** - * SetLegacyAbacRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetLegacyAbacRequest - * @instance - */ - SetLegacyAbacRequest.prototype.clusterId = ""; - - /** - * SetLegacyAbacRequest enabled. - * @member {boolean} enabled - * @memberof google.container.v1.SetLegacyAbacRequest + * StatusCondition code. + * @member {google.container.v1.StatusCondition.Code} code + * @memberof google.container.v1.StatusCondition * @instance */ - SetLegacyAbacRequest.prototype.enabled = false; + StatusCondition.prototype.code = 0; /** - * SetLegacyAbacRequest name. - * @member {string} name - * @memberof google.container.v1.SetLegacyAbacRequest + * StatusCondition message. + * @member {string} message + * @memberof google.container.v1.StatusCondition * @instance */ - SetLegacyAbacRequest.prototype.name = ""; + StatusCondition.prototype.message = ""; /** - * Creates a new SetLegacyAbacRequest instance using the specified properties. + * Creates a new StatusCondition instance using the specified properties. * @function create - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.ISetLegacyAbacRequest=} [properties] Properties to set - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest instance + * @param {google.container.v1.IStatusCondition=} [properties] Properties to set + * @returns {google.container.v1.StatusCondition} StatusCondition instance */ - SetLegacyAbacRequest.create = function create(properties) { - return new SetLegacyAbacRequest(properties); + StatusCondition.create = function create(properties) { + return new StatusCondition(properties); }; /** - * Encodes the specified SetLegacyAbacRequest message. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. + * Encodes the specified StatusCondition message. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode + * @param {google.container.v1.IStatusCondition} message StatusCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLegacyAbacRequest.encode = function encode(message, writer) { + StatusCondition.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.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); return writer; }; /** - * Encodes the specified SetLegacyAbacRequest message, length delimited. Does not implicitly {@link google.container.v1.SetLegacyAbacRequest.verify|verify} messages. + * Encodes the specified StatusCondition message, length delimited. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.ISetLegacyAbacRequest} message SetLegacyAbacRequest message or plain object to encode + * @param {google.container.v1.IStatusCondition} message StatusCondition message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetLegacyAbacRequest.encodeDelimited = function encodeDelimited(message, writer) { + StatusCondition.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetLegacyAbacRequest message from the specified reader or buffer. + * Decodes a StatusCondition message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @returns {google.container.v1.StatusCondition} StatusCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLegacyAbacRequest.decode = function decode(reader, length) { + StatusCondition.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.SetLegacyAbacRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.StatusCondition(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.code = reader.int32(); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); - break; - case 4: - message.enabled = reader.bool(); - break; - case 6: - message.name = reader.string(); + message.message = reader.string(); break; default: reader.skipType(tag & 7); @@ -20012,144 +24904,174 @@ }; /** - * Decodes a SetLegacyAbacRequest message from the specified reader or buffer, length delimited. + * Decodes a StatusCondition message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @returns {google.container.v1.StatusCondition} StatusCondition * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetLegacyAbacRequest.decodeDelimited = function decodeDelimited(reader) { + StatusCondition.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetLegacyAbacRequest message. + * Verifies a StatusCondition message. * @function verify - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetLegacyAbacRequest.verify = function verify(message) { + StatusCondition.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.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.code != null && message.hasOwnProperty("code")) + switch (message.code) { + default: + return "code: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 7: + break; + } + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; return 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. * @function fromObject - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetLegacyAbacRequest} SetLegacyAbacRequest + * @returns {google.container.v1.StatusCondition} StatusCondition */ - SetLegacyAbacRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetLegacyAbacRequest) + StatusCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.StatusCondition) return object; - var message = new $root.google.container.v1.SetLegacyAbacRequest(); - 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.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.StatusCondition(); + switch (object.code) { + case "UNKNOWN": + case 0: + message.code = 0; + break; + case "GCE_STOCKOUT": + case 1: + message.code = 1; + break; + case "GKE_SERVICE_ACCOUNT_DELETED": + case 2: + message.code = 2; + break; + case "GCE_QUOTA_EXCEEDED": + case 3: + message.code = 3; + break; + case "SET_BY_OPERATOR": + case 4: + message.code = 4; + break; + case "CLOUD_KMS_KEY_ERROR": + case 7: + message.code = 7; + break; + } + if (object.message != null) + message.message = String(object.message); return message; }; /** - * Creates a plain object from a SetLegacyAbacRequest message. Also converts values to other types if specified. + * Creates a plain object from a StatusCondition message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @static - * @param {google.container.v1.SetLegacyAbacRequest} message SetLegacyAbacRequest + * @param {google.container.v1.StatusCondition} message StatusCondition * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetLegacyAbacRequest.toObject = function toObject(message, options) { + StatusCondition.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.enabled = false; - object.name = ""; + object.code = options.enums === String ? "UNKNOWN" : 0; + object.message = ""; } - 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.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.code != null && message.hasOwnProperty("code")) + object.code = options.enums === String ? $root.google.container.v1.StatusCondition.Code[message.code] : message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; return object; }; /** - * Converts this SetLegacyAbacRequest to JSON. + * Converts this StatusCondition to JSON. * @function toJSON - * @memberof google.container.v1.SetLegacyAbacRequest + * @memberof google.container.v1.StatusCondition * @instance * @returns {Object.} JSON object */ - SetLegacyAbacRequest.prototype.toJSON = function toJSON() { + StatusCondition.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetLegacyAbacRequest; + /** + * Code enum. + * @name google.container.v1.StatusCondition.Code + * @enum {number} + * @property {number} UNKNOWN=0 UNKNOWN value + * @property {number} GCE_STOCKOUT=1 GCE_STOCKOUT value + * @property {number} GKE_SERVICE_ACCOUNT_DELETED=2 GKE_SERVICE_ACCOUNT_DELETED value + * @property {number} GCE_QUOTA_EXCEEDED=3 GCE_QUOTA_EXCEEDED value + * @property {number} SET_BY_OPERATOR=4 SET_BY_OPERATOR value + * @property {number} CLOUD_KMS_KEY_ERROR=7 CLOUD_KMS_KEY_ERROR value + */ + StatusCondition.Code = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNKNOWN"] = 0; + values[valuesById[1] = "GCE_STOCKOUT"] = 1; + values[valuesById[2] = "GKE_SERVICE_ACCOUNT_DELETED"] = 2; + values[valuesById[3] = "GCE_QUOTA_EXCEEDED"] = 3; + values[valuesById[4] = "SET_BY_OPERATOR"] = 4; + values[valuesById[7] = "CLOUD_KMS_KEY_ERROR"] = 7; + return values; + })(); + + return StatusCondition; })(); - v1.StartIPRotationRequest = (function() { + v1.NetworkConfig = (function() { /** - * Properties of a StartIPRotationRequest. + * Properties of a NetworkConfig. * @memberof google.container.v1 - * @interface IStartIPRotationRequest - * @property {string|null} [projectId] StartIPRotationRequest projectId - * @property {string|null} [zone] StartIPRotationRequest zone - * @property {string|null} [clusterId] StartIPRotationRequest clusterId - * @property {string|null} [name] StartIPRotationRequest name - * @property {boolean|null} [rotateCredentials] StartIPRotationRequest rotateCredentials + * @interface INetworkConfig + * @property {string|null} [network] NetworkConfig network + * @property {string|null} [subnetwork] NetworkConfig subnetwork + * @property {boolean|null} [enableIntraNodeVisibility] NetworkConfig enableIntraNodeVisibility + * @property {google.container.v1.IDefaultSnatStatus|null} [defaultSnatStatus] NetworkConfig defaultSnatStatus */ /** - * Constructs a new StartIPRotationRequest. + * Constructs a new NetworkConfig. * @memberof google.container.v1 - * @classdesc Represents a StartIPRotationRequest. - * @implements IStartIPRotationRequest + * @classdesc Represents a NetworkConfig. + * @implements INetworkConfig * @constructor - * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set + * @param {google.container.v1.INetworkConfig=} [properties] Properties to set */ - function StartIPRotationRequest(properties) { + function NetworkConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20157,127 +25079,114 @@ } /** - * StartIPRotationRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.StartIPRotationRequest - * @instance - */ - StartIPRotationRequest.prototype.projectId = ""; - - /** - * StartIPRotationRequest zone. - * @member {string} zone - * @memberof google.container.v1.StartIPRotationRequest + * NetworkConfig network. + * @member {string} network + * @memberof google.container.v1.NetworkConfig * @instance */ - StartIPRotationRequest.prototype.zone = ""; + NetworkConfig.prototype.network = ""; /** - * StartIPRotationRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.StartIPRotationRequest + * NetworkConfig subnetwork. + * @member {string} subnetwork + * @memberof google.container.v1.NetworkConfig * @instance */ - StartIPRotationRequest.prototype.clusterId = ""; - - /** - * StartIPRotationRequest name. - * @member {string} name - * @memberof google.container.v1.StartIPRotationRequest + NetworkConfig.prototype.subnetwork = ""; + + /** + * NetworkConfig enableIntraNodeVisibility. + * @member {boolean} enableIntraNodeVisibility + * @memberof google.container.v1.NetworkConfig * @instance */ - StartIPRotationRequest.prototype.name = ""; + NetworkConfig.prototype.enableIntraNodeVisibility = false; /** - * StartIPRotationRequest rotateCredentials. - * @member {boolean} rotateCredentials - * @memberof google.container.v1.StartIPRotationRequest + * NetworkConfig defaultSnatStatus. + * @member {google.container.v1.IDefaultSnatStatus|null|undefined} defaultSnatStatus + * @memberof google.container.v1.NetworkConfig * @instance */ - StartIPRotationRequest.prototype.rotateCredentials = false; + NetworkConfig.prototype.defaultSnatStatus = null; /** - * Creates a new StartIPRotationRequest instance using the specified properties. + * Creates a new NetworkConfig instance using the specified properties. * @function create - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.IStartIPRotationRequest=} [properties] Properties to set - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest instance + * @param {google.container.v1.INetworkConfig=} [properties] Properties to set + * @returns {google.container.v1.NetworkConfig} NetworkConfig instance */ - StartIPRotationRequest.create = function create(properties) { - return new StartIPRotationRequest(properties); + NetworkConfig.create = function create(properties) { + return new NetworkConfig(properties); }; /** - * Encodes the specified StartIPRotationRequest message. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. + * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode + * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartIPRotationRequest.encode = function encode(message, writer) { + NetworkConfig.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 6, wireType 2 =*/50).string(message.name); - if (message.rotateCredentials != null && Object.hasOwnProperty.call(message, "rotateCredentials")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateCredentials); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); + if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); + if (message.enableIntraNodeVisibility != null && Object.hasOwnProperty.call(message, "enableIntraNodeVisibility")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableIntraNodeVisibility); + if (message.defaultSnatStatus != null && Object.hasOwnProperty.call(message, "defaultSnatStatus")) + $root.google.container.v1.DefaultSnatStatus.encode(message.defaultSnatStatus, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified StartIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.StartIPRotationRequest.verify|verify} messages. + * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.IStartIPRotationRequest} message StartIPRotationRequest message or plain object to encode + * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StartIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { + NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StartIPRotationRequest message from the specified reader or buffer. + * Decodes a NetworkConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + * @returns {google.container.v1.NetworkConfig} NetworkConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartIPRotationRequest.decode = function decode(reader, length) { + NetworkConfig.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.StartIPRotationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.NetworkConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.network = reader.string(); break; case 2: - message.zone = reader.string(); - break; - case 3: - message.clusterId = reader.string(); + message.subnetwork = reader.string(); break; - case 6: - message.name = reader.string(); + case 5: + message.enableIntraNodeVisibility = reader.bool(); break; case 7: - message.rotateCredentials = reader.bool(); + message.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -20288,143 +25197,137 @@ }; /** - * Decodes a StartIPRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + * @returns {google.container.v1.NetworkConfig} NetworkConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StartIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { + NetworkConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StartIPRotationRequest message. + * Verifies a NetworkConfig message. * @function verify - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StartIPRotationRequest.verify = function verify(message) { + NetworkConfig.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"; - if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) - if (typeof message.rotateCredentials !== "boolean") - return "rotateCredentials: boolean expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + if (!$util.isString(message.subnetwork)) + return "subnetwork: string expected"; + if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) + if (typeof message.enableIntraNodeVisibility !== "boolean") + return "enableIntraNodeVisibility: boolean expected"; + if (message.defaultSnatStatus != null && message.hasOwnProperty("defaultSnatStatus")) { + var error = $root.google.container.v1.DefaultSnatStatus.verify(message.defaultSnatStatus); + if (error) + return "defaultSnatStatus." + error; + } return 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. * @function fromObject - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.StartIPRotationRequest} StartIPRotationRequest + * @returns {google.container.v1.NetworkConfig} NetworkConfig */ - StartIPRotationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.StartIPRotationRequest) + NetworkConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NetworkConfig) return object; - var message = new $root.google.container.v1.StartIPRotationRequest(); - 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); - if (object.rotateCredentials != null) - message.rotateCredentials = Boolean(object.rotateCredentials); + var message = new $root.google.container.v1.NetworkConfig(); + if (object.network != null) + message.network = String(object.network); + if (object.subnetwork != null) + message.subnetwork = String(object.subnetwork); + if (object.enableIntraNodeVisibility != null) + message.enableIntraNodeVisibility = Boolean(object.enableIntraNodeVisibility); + if (object.defaultSnatStatus != null) { + if (typeof object.defaultSnatStatus !== "object") + throw TypeError(".google.container.v1.NetworkConfig.defaultSnatStatus: object expected"); + message.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.fromObject(object.defaultSnatStatus); + } return message; }; /** - * Creates a plain object from a StartIPRotationRequest message. Also converts values to other types if specified. + * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @static - * @param {google.container.v1.StartIPRotationRequest} message StartIPRotationRequest + * @param {google.container.v1.NetworkConfig} message NetworkConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StartIPRotationRequest.toObject = function toObject(message, options) { + NetworkConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.name = ""; - object.rotateCredentials = false; + object.network = ""; + object.subnetwork = ""; + object.enableIntraNodeVisibility = false; + object.defaultSnatStatus = 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.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.rotateCredentials != null && message.hasOwnProperty("rotateCredentials")) - object.rotateCredentials = message.rotateCredentials; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) + object.subnetwork = message.subnetwork; + if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) + object.enableIntraNodeVisibility = message.enableIntraNodeVisibility; + if (message.defaultSnatStatus != null && message.hasOwnProperty("defaultSnatStatus")) + object.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.toObject(message.defaultSnatStatus, options); return object; }; /** - * Converts this StartIPRotationRequest to JSON. + * Converts this NetworkConfig to JSON. * @function toJSON - * @memberof google.container.v1.StartIPRotationRequest + * @memberof google.container.v1.NetworkConfig * @instance * @returns {Object.} JSON object */ - StartIPRotationRequest.prototype.toJSON = function toJSON() { + NetworkConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StartIPRotationRequest; + return NetworkConfig; })(); - v1.CompleteIPRotationRequest = (function() { + v1.GetOpenIDConfigRequest = (function() { /** - * Properties of a CompleteIPRotationRequest. + * Properties of a GetOpenIDConfigRequest. * @memberof google.container.v1 - * @interface ICompleteIPRotationRequest - * @property {string|null} [projectId] CompleteIPRotationRequest projectId - * @property {string|null} [zone] CompleteIPRotationRequest zone - * @property {string|null} [clusterId] CompleteIPRotationRequest clusterId - * @property {string|null} [name] CompleteIPRotationRequest name + * @interface IGetOpenIDConfigRequest + * @property {string|null} [parent] GetOpenIDConfigRequest parent */ /** - * Constructs a new CompleteIPRotationRequest. + * Constructs a new GetOpenIDConfigRequest. * @memberof google.container.v1 - * @classdesc Represents a CompleteIPRotationRequest. - * @implements ICompleteIPRotationRequest + * @classdesc Represents a GetOpenIDConfigRequest. + * @implements IGetOpenIDConfigRequest * @constructor - * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set + * @param {google.container.v1.IGetOpenIDConfigRequest=} [properties] Properties to set */ - function CompleteIPRotationRequest(properties) { + function GetOpenIDConfigRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20432,114 +25335,75 @@ } /** - * CompleteIPRotationRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.CompleteIPRotationRequest - * @instance - */ - CompleteIPRotationRequest.prototype.projectId = ""; - - /** - * CompleteIPRotationRequest zone. - * @member {string} zone - * @memberof google.container.v1.CompleteIPRotationRequest - * @instance - */ - CompleteIPRotationRequest.prototype.zone = ""; - - /** - * CompleteIPRotationRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.CompleteIPRotationRequest - * @instance - */ - CompleteIPRotationRequest.prototype.clusterId = ""; - - /** - * CompleteIPRotationRequest name. - * @member {string} name - * @memberof google.container.v1.CompleteIPRotationRequest + * GetOpenIDConfigRequest parent. + * @member {string} parent + * @memberof google.container.v1.GetOpenIDConfigRequest * @instance */ - CompleteIPRotationRequest.prototype.name = ""; + GetOpenIDConfigRequest.prototype.parent = ""; /** - * Creates a new CompleteIPRotationRequest instance using the specified properties. + * Creates a new GetOpenIDConfigRequest instance using the specified properties. * @function create - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static - * @param {google.container.v1.ICompleteIPRotationRequest=} [properties] Properties to set - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest instance + * @param {google.container.v1.IGetOpenIDConfigRequest=} [properties] Properties to set + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest instance */ - CompleteIPRotationRequest.create = function create(properties) { - return new CompleteIPRotationRequest(properties); + GetOpenIDConfigRequest.create = function create(properties) { + return new GetOpenIDConfigRequest(properties); }; /** - * Encodes the specified CompleteIPRotationRequest message. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. + * Encodes the specified GetOpenIDConfigRequest message. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static - * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode + * @param {google.container.v1.IGetOpenIDConfigRequest} message GetOpenIDConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompleteIPRotationRequest.encode = function encode(message, writer) { + GetOpenIDConfigRequest.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 7, wireType 2 =*/58).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); return writer; }; /** - * Encodes the specified CompleteIPRotationRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteIPRotationRequest.verify|verify} messages. + * Encodes the specified GetOpenIDConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static - * @param {google.container.v1.ICompleteIPRotationRequest} message CompleteIPRotationRequest message or plain object to encode + * @param {google.container.v1.IGetOpenIDConfigRequest} message GetOpenIDConfigRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CompleteIPRotationRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetOpenIDConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CompleteIPRotationRequest message from the specified reader or buffer. + * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompleteIPRotationRequest.decode = function decode(reader, length) { + GetOpenIDConfigRequest.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.CompleteIPRotationRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetOpenIDConfigRequest(); 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 7: - message.name = reader.string(); + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -20550,133 +25414,118 @@ }; /** - * Decodes a CompleteIPRotationRequest message from the specified reader or buffer, length delimited. + * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CompleteIPRotationRequest.decodeDelimited = function decodeDelimited(reader) { + GetOpenIDConfigRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CompleteIPRotationRequest message. + * Verifies a GetOpenIDConfigRequest message. * @function verify - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CompleteIPRotationRequest.verify = function verify(message) { + GetOpenIDConfigRequest.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"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; return 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. * @function fromObject - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.CompleteIPRotationRequest} CompleteIPRotationRequest + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest */ - CompleteIPRotationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.CompleteIPRotationRequest) + GetOpenIDConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetOpenIDConfigRequest) return object; - var message = new $root.google.container.v1.CompleteIPRotationRequest(); - 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); + var message = new $root.google.container.v1.GetOpenIDConfigRequest(); + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetOpenIDConfigRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @static - * @param {google.container.v1.CompleteIPRotationRequest} message CompleteIPRotationRequest + * @param {google.container.v1.GetOpenIDConfigRequest} message GetOpenIDConfigRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CompleteIPRotationRequest.toObject = function toObject(message, options) { + GetOpenIDConfigRequest.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; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this CompleteIPRotationRequest to JSON. + * Converts this GetOpenIDConfigRequest to JSON. * @function toJSON - * @memberof google.container.v1.CompleteIPRotationRequest + * @memberof google.container.v1.GetOpenIDConfigRequest * @instance * @returns {Object.} JSON object */ - CompleteIPRotationRequest.prototype.toJSON = function toJSON() { + GetOpenIDConfigRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CompleteIPRotationRequest; + return GetOpenIDConfigRequest; })(); - v1.AcceleratorConfig = (function() { + v1.GetOpenIDConfigResponse = (function() { /** - * Properties of an AcceleratorConfig. + * Properties of a GetOpenIDConfigResponse. * @memberof google.container.v1 - * @interface IAcceleratorConfig - * @property {number|Long|null} [acceleratorCount] AcceleratorConfig acceleratorCount - * @property {string|null} [acceleratorType] AcceleratorConfig acceleratorType + * @interface IGetOpenIDConfigResponse + * @property {string|null} [issuer] GetOpenIDConfigResponse issuer + * @property {string|null} [jwksUri] GetOpenIDConfigResponse jwksUri + * @property {Array.|null} [responseTypesSupported] GetOpenIDConfigResponse responseTypesSupported + * @property {Array.|null} [subjectTypesSupported] GetOpenIDConfigResponse subjectTypesSupported + * @property {Array.|null} [idTokenSigningAlgValuesSupported] GetOpenIDConfigResponse idTokenSigningAlgValuesSupported + * @property {Array.|null} [claimsSupported] GetOpenIDConfigResponse claimsSupported + * @property {Array.|null} [grantTypes] GetOpenIDConfigResponse grantTypes */ /** - * Constructs a new AcceleratorConfig. + * Constructs a new GetOpenIDConfigResponse. * @memberof google.container.v1 - * @classdesc Represents an AcceleratorConfig. - * @implements IAcceleratorConfig + * @classdesc Represents a GetOpenIDConfigResponse. + * @implements IGetOpenIDConfigResponse * @constructor - * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set - */ - function AcceleratorConfig(properties) { + * @param {google.container.v1.IGetOpenIDConfigResponse=} [properties] Properties to set + */ + function GetOpenIDConfigResponse(properties) { + this.responseTypesSupported = []; + this.subjectTypesSupported = []; + this.idTokenSigningAlgValuesSupported = []; + this.claimsSupported = []; + this.grantTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20684,88 +25533,168 @@ } /** - * AcceleratorConfig acceleratorCount. - * @member {number|Long} acceleratorCount - * @memberof google.container.v1.AcceleratorConfig + * GetOpenIDConfigResponse issuer. + * @member {string} issuer + * @memberof google.container.v1.GetOpenIDConfigResponse * @instance */ - AcceleratorConfig.prototype.acceleratorCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GetOpenIDConfigResponse.prototype.issuer = ""; /** - * AcceleratorConfig acceleratorType. - * @member {string} acceleratorType - * @memberof google.container.v1.AcceleratorConfig + * GetOpenIDConfigResponse jwksUri. + * @member {string} jwksUri + * @memberof google.container.v1.GetOpenIDConfigResponse * @instance */ - AcceleratorConfig.prototype.acceleratorType = ""; + GetOpenIDConfigResponse.prototype.jwksUri = ""; /** - * Creates a new AcceleratorConfig instance using the specified properties. + * GetOpenIDConfigResponse responseTypesSupported. + * @member {Array.} responseTypesSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.responseTypesSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse subjectTypesSupported. + * @member {Array.} subjectTypesSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.subjectTypesSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse idTokenSigningAlgValuesSupported. + * @member {Array.} idTokenSigningAlgValuesSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.idTokenSigningAlgValuesSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse claimsSupported. + * @member {Array.} claimsSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.claimsSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse grantTypes. + * @member {Array.} grantTypes + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.grantTypes = $util.emptyArray; + + /** + * Creates a new GetOpenIDConfigResponse instance using the specified properties. * @function create - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static - * @param {google.container.v1.IAcceleratorConfig=} [properties] Properties to set - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig instance + * @param {google.container.v1.IGetOpenIDConfigResponse=} [properties] Properties to set + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse instance */ - AcceleratorConfig.create = function create(properties) { - return new AcceleratorConfig(properties); + GetOpenIDConfigResponse.create = function create(properties) { + return new GetOpenIDConfigResponse(properties); }; /** - * Encodes the specified AcceleratorConfig message. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. + * Encodes the specified GetOpenIDConfigResponse message. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages. * @function encode - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static - * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode + * @param {google.container.v1.IGetOpenIDConfigResponse} message GetOpenIDConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcceleratorConfig.encode = function encode(message, writer) { + GetOpenIDConfigResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.acceleratorCount != null && Object.hasOwnProperty.call(message, "acceleratorCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); - if (message.acceleratorType != null && Object.hasOwnProperty.call(message, "acceleratorType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); + if (message.issuer != null && Object.hasOwnProperty.call(message, "issuer")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.issuer); + if (message.jwksUri != null && Object.hasOwnProperty.call(message, "jwksUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.jwksUri); + if (message.responseTypesSupported != null && message.responseTypesSupported.length) + for (var i = 0; i < message.responseTypesSupported.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.responseTypesSupported[i]); + if (message.subjectTypesSupported != null && message.subjectTypesSupported.length) + for (var i = 0; i < message.subjectTypesSupported.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.subjectTypesSupported[i]); + if (message.idTokenSigningAlgValuesSupported != null && message.idTokenSigningAlgValuesSupported.length) + for (var i = 0; i < message.idTokenSigningAlgValuesSupported.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.idTokenSigningAlgValuesSupported[i]); + if (message.claimsSupported != null && message.claimsSupported.length) + for (var i = 0; i < message.claimsSupported.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.claimsSupported[i]); + if (message.grantTypes != null && message.grantTypes.length) + for (var i = 0; i < message.grantTypes.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.grantTypes[i]); return writer; }; /** - * Encodes the specified AcceleratorConfig message, length delimited. Does not implicitly {@link google.container.v1.AcceleratorConfig.verify|verify} messages. + * Encodes the specified GetOpenIDConfigResponse message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static - * @param {google.container.v1.IAcceleratorConfig} message AcceleratorConfig message or plain object to encode + * @param {google.container.v1.IGetOpenIDConfigResponse} message GetOpenIDConfigResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AcceleratorConfig.encodeDelimited = function encodeDelimited(message, writer) { + GetOpenIDConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer. + * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcceleratorConfig.decode = function decode(reader, length) { + GetOpenIDConfigResponse.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.AcceleratorConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetOpenIDConfigResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.acceleratorCount = reader.int64(); + message.issuer = reader.string(); break; case 2: - message.acceleratorType = reader.string(); + message.jwksUri = reader.string(); + break; + case 3: + if (!(message.responseTypesSupported && message.responseTypesSupported.length)) + message.responseTypesSupported = []; + message.responseTypesSupported.push(reader.string()); + break; + case 4: + if (!(message.subjectTypesSupported && message.subjectTypesSupported.length)) + message.subjectTypesSupported = []; + message.subjectTypesSupported.push(reader.string()); + break; + case 5: + if (!(message.idTokenSigningAlgValuesSupported && message.idTokenSigningAlgValuesSupported.length)) + message.idTokenSigningAlgValuesSupported = []; + message.idTokenSigningAlgValuesSupported.push(reader.string()); + break; + case 6: + if (!(message.claimsSupported && message.claimsSupported.length)) + message.claimsSupported = []; + message.claimsSupported.push(reader.string()); + break; + case 7: + if (!(message.grantTypes && message.grantTypes.length)) + message.grantTypes = []; + message.grantTypes.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -20776,134 +25705,218 @@ }; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. + * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AcceleratorConfig.decodeDelimited = function decodeDelimited(reader) { + GetOpenIDConfigResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AcceleratorConfig message. + * Verifies a GetOpenIDConfigResponse message. * @function verify - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AcceleratorConfig.verify = function verify(message) { + GetOpenIDConfigResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) - if (!$util.isInteger(message.acceleratorCount) && !(message.acceleratorCount && $util.isInteger(message.acceleratorCount.low) && $util.isInteger(message.acceleratorCount.high))) - return "acceleratorCount: integer|Long expected"; - if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) - if (!$util.isString(message.acceleratorType)) - return "acceleratorType: string expected"; + if (message.issuer != null && message.hasOwnProperty("issuer")) + if (!$util.isString(message.issuer)) + return "issuer: string expected"; + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + if (!$util.isString(message.jwksUri)) + return "jwksUri: string expected"; + if (message.responseTypesSupported != null && message.hasOwnProperty("responseTypesSupported")) { + if (!Array.isArray(message.responseTypesSupported)) + return "responseTypesSupported: array expected"; + for (var i = 0; i < message.responseTypesSupported.length; ++i) + if (!$util.isString(message.responseTypesSupported[i])) + return "responseTypesSupported: string[] expected"; + } + if (message.subjectTypesSupported != null && message.hasOwnProperty("subjectTypesSupported")) { + if (!Array.isArray(message.subjectTypesSupported)) + return "subjectTypesSupported: array expected"; + for (var i = 0; i < message.subjectTypesSupported.length; ++i) + if (!$util.isString(message.subjectTypesSupported[i])) + return "subjectTypesSupported: string[] expected"; + } + if (message.idTokenSigningAlgValuesSupported != null && message.hasOwnProperty("idTokenSigningAlgValuesSupported")) { + if (!Array.isArray(message.idTokenSigningAlgValuesSupported)) + return "idTokenSigningAlgValuesSupported: array expected"; + for (var i = 0; i < message.idTokenSigningAlgValuesSupported.length; ++i) + if (!$util.isString(message.idTokenSigningAlgValuesSupported[i])) + return "idTokenSigningAlgValuesSupported: string[] expected"; + } + if (message.claimsSupported != null && message.hasOwnProperty("claimsSupported")) { + if (!Array.isArray(message.claimsSupported)) + return "claimsSupported: array expected"; + for (var i = 0; i < message.claimsSupported.length; ++i) + if (!$util.isString(message.claimsSupported[i])) + return "claimsSupported: string[] expected"; + } + if (message.grantTypes != null && message.hasOwnProperty("grantTypes")) { + if (!Array.isArray(message.grantTypes)) + return "grantTypes: array expected"; + for (var i = 0; i < message.grantTypes.length; ++i) + if (!$util.isString(message.grantTypes[i])) + return "grantTypes: string[] expected"; + } return 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. * @function fromObject - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.AcceleratorConfig} AcceleratorConfig + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse */ - AcceleratorConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.AcceleratorConfig) + GetOpenIDConfigResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetOpenIDConfigResponse) return object; - var message = new $root.google.container.v1.AcceleratorConfig(); - if (object.acceleratorCount != null) - if ($util.Long) - (message.acceleratorCount = $util.Long.fromValue(object.acceleratorCount)).unsigned = false; - else if (typeof object.acceleratorCount === "string") - message.acceleratorCount = parseInt(object.acceleratorCount, 10); - else if (typeof object.acceleratorCount === "number") - message.acceleratorCount = object.acceleratorCount; - else if (typeof object.acceleratorCount === "object") - message.acceleratorCount = new $util.LongBits(object.acceleratorCount.low >>> 0, object.acceleratorCount.high >>> 0).toNumber(); - if (object.acceleratorType != null) - message.acceleratorType = String(object.acceleratorType); + var message = new $root.google.container.v1.GetOpenIDConfigResponse(); + if (object.issuer != null) + message.issuer = String(object.issuer); + if (object.jwksUri != null) + message.jwksUri = String(object.jwksUri); + if (object.responseTypesSupported) { + if (!Array.isArray(object.responseTypesSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.responseTypesSupported: array expected"); + message.responseTypesSupported = []; + for (var i = 0; i < object.responseTypesSupported.length; ++i) + message.responseTypesSupported[i] = String(object.responseTypesSupported[i]); + } + if (object.subjectTypesSupported) { + if (!Array.isArray(object.subjectTypesSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.subjectTypesSupported: array expected"); + message.subjectTypesSupported = []; + for (var i = 0; i < object.subjectTypesSupported.length; ++i) + message.subjectTypesSupported[i] = String(object.subjectTypesSupported[i]); + } + if (object.idTokenSigningAlgValuesSupported) { + if (!Array.isArray(object.idTokenSigningAlgValuesSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.idTokenSigningAlgValuesSupported: array expected"); + message.idTokenSigningAlgValuesSupported = []; + for (var i = 0; i < object.idTokenSigningAlgValuesSupported.length; ++i) + message.idTokenSigningAlgValuesSupported[i] = String(object.idTokenSigningAlgValuesSupported[i]); + } + if (object.claimsSupported) { + if (!Array.isArray(object.claimsSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.claimsSupported: array expected"); + message.claimsSupported = []; + for (var i = 0; i < object.claimsSupported.length; ++i) + message.claimsSupported[i] = String(object.claimsSupported[i]); + } + if (object.grantTypes) { + if (!Array.isArray(object.grantTypes)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.grantTypes: array expected"); + message.grantTypes = []; + for (var i = 0; i < object.grantTypes.length; ++i) + message.grantTypes[i] = String(object.grantTypes[i]); + } return message; }; /** - * Creates a plain object from an AcceleratorConfig message. Also converts values to other types if specified. + * Creates a plain object from a GetOpenIDConfigResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @static - * @param {google.container.v1.AcceleratorConfig} message AcceleratorConfig + * @param {google.container.v1.GetOpenIDConfigResponse} message GetOpenIDConfigResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AcceleratorConfig.toObject = function toObject(message, options) { + GetOpenIDConfigResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.responseTypesSupported = []; + object.subjectTypesSupported = []; + object.idTokenSigningAlgValuesSupported = []; + object.claimsSupported = []; + object.grantTypes = []; + } if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.acceleratorCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.acceleratorCount = options.longs === String ? "0" : 0; - object.acceleratorType = ""; + object.issuer = ""; + object.jwksUri = ""; + } + if (message.issuer != null && message.hasOwnProperty("issuer")) + object.issuer = message.issuer; + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + object.jwksUri = message.jwksUri; + if (message.responseTypesSupported && message.responseTypesSupported.length) { + object.responseTypesSupported = []; + for (var j = 0; j < message.responseTypesSupported.length; ++j) + object.responseTypesSupported[j] = message.responseTypesSupported[j]; + } + if (message.subjectTypesSupported && message.subjectTypesSupported.length) { + object.subjectTypesSupported = []; + for (var j = 0; j < message.subjectTypesSupported.length; ++j) + object.subjectTypesSupported[j] = message.subjectTypesSupported[j]; + } + if (message.idTokenSigningAlgValuesSupported && message.idTokenSigningAlgValuesSupported.length) { + object.idTokenSigningAlgValuesSupported = []; + for (var j = 0; j < message.idTokenSigningAlgValuesSupported.length; ++j) + object.idTokenSigningAlgValuesSupported[j] = message.idTokenSigningAlgValuesSupported[j]; + } + if (message.claimsSupported && message.claimsSupported.length) { + object.claimsSupported = []; + for (var j = 0; j < message.claimsSupported.length; ++j) + object.claimsSupported[j] = message.claimsSupported[j]; + } + if (message.grantTypes && message.grantTypes.length) { + object.grantTypes = []; + for (var j = 0; j < message.grantTypes.length; ++j) + object.grantTypes[j] = message.grantTypes[j]; } - if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) - if (typeof message.acceleratorCount === "number") - object.acceleratorCount = options.longs === String ? String(message.acceleratorCount) : message.acceleratorCount; - else - object.acceleratorCount = options.longs === String ? $util.Long.prototype.toString.call(message.acceleratorCount) : options.longs === Number ? new $util.LongBits(message.acceleratorCount.low >>> 0, message.acceleratorCount.high >>> 0).toNumber() : message.acceleratorCount; - if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) - object.acceleratorType = message.acceleratorType; return object; }; /** - * Converts this AcceleratorConfig to JSON. + * Converts this GetOpenIDConfigResponse to JSON. * @function toJSON - * @memberof google.container.v1.AcceleratorConfig + * @memberof google.container.v1.GetOpenIDConfigResponse * @instance * @returns {Object.} JSON object */ - AcceleratorConfig.prototype.toJSON = function toJSON() { + GetOpenIDConfigResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AcceleratorConfig; + return GetOpenIDConfigResponse; })(); - v1.SetNetworkPolicyRequest = (function() { + v1.GetJSONWebKeysRequest = (function() { /** - * Properties of a SetNetworkPolicyRequest. + * Properties of a GetJSONWebKeysRequest. * @memberof google.container.v1 - * @interface ISetNetworkPolicyRequest - * @property {string|null} [projectId] SetNetworkPolicyRequest projectId - * @property {string|null} [zone] SetNetworkPolicyRequest zone - * @property {string|null} [clusterId] SetNetworkPolicyRequest clusterId - * @property {google.container.v1.INetworkPolicy|null} [networkPolicy] SetNetworkPolicyRequest networkPolicy - * @property {string|null} [name] SetNetworkPolicyRequest name + * @interface IGetJSONWebKeysRequest + * @property {string|null} [parent] GetJSONWebKeysRequest parent */ /** - * Constructs a new SetNetworkPolicyRequest. + * Constructs a new GetJSONWebKeysRequest. * @memberof google.container.v1 - * @classdesc Represents a SetNetworkPolicyRequest. - * @implements ISetNetworkPolicyRequest + * @classdesc Represents a GetJSONWebKeysRequest. + * @implements IGetJSONWebKeysRequest * @constructor - * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set + * @param {google.container.v1.IGetJSONWebKeysRequest=} [properties] Properties to set */ - function SetNetworkPolicyRequest(properties) { + function GetJSONWebKeysRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -20911,127 +25924,75 @@ } /** - * SetNetworkPolicyRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetNetworkPolicyRequest - * @instance - */ - SetNetworkPolicyRequest.prototype.projectId = ""; - - /** - * SetNetworkPolicyRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetNetworkPolicyRequest - * @instance - */ - SetNetworkPolicyRequest.prototype.zone = ""; - - /** - * SetNetworkPolicyRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetNetworkPolicyRequest - * @instance - */ - SetNetworkPolicyRequest.prototype.clusterId = ""; - - /** - * SetNetworkPolicyRequest networkPolicy. - * @member {google.container.v1.INetworkPolicy|null|undefined} networkPolicy - * @memberof google.container.v1.SetNetworkPolicyRequest - * @instance - */ - SetNetworkPolicyRequest.prototype.networkPolicy = null; - - /** - * SetNetworkPolicyRequest name. - * @member {string} name - * @memberof google.container.v1.SetNetworkPolicyRequest + * GetJSONWebKeysRequest parent. + * @member {string} parent + * @memberof google.container.v1.GetJSONWebKeysRequest * @instance */ - SetNetworkPolicyRequest.prototype.name = ""; + GetJSONWebKeysRequest.prototype.parent = ""; /** - * Creates a new SetNetworkPolicyRequest instance using the specified properties. + * Creates a new GetJSONWebKeysRequest instance using the specified properties. * @function create - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static - * @param {google.container.v1.ISetNetworkPolicyRequest=} [properties] Properties to set - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest instance + * @param {google.container.v1.IGetJSONWebKeysRequest=} [properties] Properties to set + * @returns {google.container.v1.GetJSONWebKeysRequest} GetJSONWebKeysRequest instance */ - SetNetworkPolicyRequest.create = function create(properties) { - return new SetNetworkPolicyRequest(properties); + GetJSONWebKeysRequest.create = function create(properties) { + return new GetJSONWebKeysRequest(properties); }; /** - * Encodes the specified SetNetworkPolicyRequest message. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified GetJSONWebKeysRequest message. Does not implicitly {@link google.container.v1.GetJSONWebKeysRequest.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static - * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode + * @param {google.container.v1.IGetJSONWebKeysRequest} message GetJSONWebKeysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNetworkPolicyRequest.encode = function encode(message, writer) { + GetJSONWebKeysRequest.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.networkPolicy != null && Object.hasOwnProperty.call(message, "networkPolicy")) - $root.google.container.v1.NetworkPolicy.encode(message.networkPolicy, 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); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); return writer; }; /** - * Encodes the specified SetNetworkPolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetNetworkPolicyRequest.verify|verify} messages. + * Encodes the specified GetJSONWebKeysRequest message, length delimited. Does not implicitly {@link google.container.v1.GetJSONWebKeysRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static - * @param {google.container.v1.ISetNetworkPolicyRequest} message SetNetworkPolicyRequest message or plain object to encode + * @param {google.container.v1.IGetJSONWebKeysRequest} message GetJSONWebKeysRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetNetworkPolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetJSONWebKeysRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer. + * Decodes a GetJSONWebKeysRequest message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @returns {google.container.v1.GetJSONWebKeysRequest} GetJSONWebKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNetworkPolicyRequest.decode = function decode(reader, length) { + GetJSONWebKeysRequest.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.SetNetworkPolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetJSONWebKeysRequest(); 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.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); - break; - case 6: - message.name = reader.string(); + message.parent = reader.string(); break; default: reader.skipType(tag & 7); @@ -21042,149 +26003,115 @@ }; /** - * Decodes a SetNetworkPolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a GetJSONWebKeysRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @returns {google.container.v1.GetJSONWebKeysRequest} GetJSONWebKeysRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetNetworkPolicyRequest.decodeDelimited = function decodeDelimited(reader) { + GetJSONWebKeysRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetNetworkPolicyRequest message. + * Verifies a GetJSONWebKeysRequest message. * @function verify - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetNetworkPolicyRequest.verify = function verify(message) { + GetJSONWebKeysRequest.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.networkPolicy != null && message.hasOwnProperty("networkPolicy")) { - var error = $root.google.container.v1.NetworkPolicy.verify(message.networkPolicy); - if (error) - return "networkPolicy." + error; - } - 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 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. * @function fromObject - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetNetworkPolicyRequest} SetNetworkPolicyRequest + * @returns {google.container.v1.GetJSONWebKeysRequest} GetJSONWebKeysRequest */ - SetNetworkPolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetNetworkPolicyRequest) + GetJSONWebKeysRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetJSONWebKeysRequest) return object; - var message = new $root.google.container.v1.SetNetworkPolicyRequest(); - 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.networkPolicy != null) { - if (typeof object.networkPolicy !== "object") - throw TypeError(".google.container.v1.SetNetworkPolicyRequest.networkPolicy: object expected"); - message.networkPolicy = $root.google.container.v1.NetworkPolicy.fromObject(object.networkPolicy); - } - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.container.v1.GetJSONWebKeysRequest(); + if (object.parent != null) + message.parent = String(object.parent); return message; }; /** - * Creates a plain object from a SetNetworkPolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetJSONWebKeysRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @static - * @param {google.container.v1.SetNetworkPolicyRequest} message SetNetworkPolicyRequest + * @param {google.container.v1.GetJSONWebKeysRequest} message GetJSONWebKeysRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetNetworkPolicyRequest.toObject = function toObject(message, options) { + GetJSONWebKeysRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.networkPolicy = 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.networkPolicy != null && message.hasOwnProperty("networkPolicy")) - object.networkPolicy = $root.google.container.v1.NetworkPolicy.toObject(message.networkPolicy, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; return object; }; /** - * Converts this SetNetworkPolicyRequest to JSON. + * Converts this GetJSONWebKeysRequest to JSON. * @function toJSON - * @memberof google.container.v1.SetNetworkPolicyRequest + * @memberof google.container.v1.GetJSONWebKeysRequest * @instance * @returns {Object.} JSON object */ - SetNetworkPolicyRequest.prototype.toJSON = function toJSON() { + GetJSONWebKeysRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetNetworkPolicyRequest; + return GetJSONWebKeysRequest; })(); - v1.SetMaintenancePolicyRequest = (function() { + v1.Jwk = (function() { /** - * Properties of a SetMaintenancePolicyRequest. + * Properties of a Jwk. * @memberof google.container.v1 - * @interface ISetMaintenancePolicyRequest - * @property {string|null} [projectId] SetMaintenancePolicyRequest projectId - * @property {string|null} [zone] SetMaintenancePolicyRequest zone - * @property {string|null} [clusterId] SetMaintenancePolicyRequest clusterId - * @property {google.container.v1.IMaintenancePolicy|null} [maintenancePolicy] SetMaintenancePolicyRequest maintenancePolicy - * @property {string|null} [name] SetMaintenancePolicyRequest name + * @interface IJwk + * @property {string|null} [kty] Jwk kty + * @property {string|null} [alg] Jwk alg + * @property {string|null} [use] Jwk use + * @property {string|null} [kid] Jwk kid + * @property {string|null} [n] Jwk n + * @property {string|null} [e] Jwk e + * @property {string|null} [x] Jwk x + * @property {string|null} [y] Jwk y + * @property {string|null} [crv] Jwk crv */ /** - * Constructs a new SetMaintenancePolicyRequest. + * Constructs a new Jwk. * @memberof google.container.v1 - * @classdesc Represents a SetMaintenancePolicyRequest. - * @implements ISetMaintenancePolicyRequest + * @classdesc Represents a Jwk. + * @implements IJwk * @constructor - * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set + * @param {google.container.v1.IJwk=} [properties] Properties to set */ - function SetMaintenancePolicyRequest(properties) { + function Jwk(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21192,127 +26119,179 @@ } /** - * SetMaintenancePolicyRequest projectId. - * @member {string} projectId - * @memberof google.container.v1.SetMaintenancePolicyRequest + * Jwk kty. + * @member {string} kty + * @memberof google.container.v1.Jwk * @instance */ - SetMaintenancePolicyRequest.prototype.projectId = ""; + Jwk.prototype.kty = ""; /** - * SetMaintenancePolicyRequest zone. - * @member {string} zone - * @memberof google.container.v1.SetMaintenancePolicyRequest + * Jwk alg. + * @member {string} alg + * @memberof google.container.v1.Jwk * @instance */ - SetMaintenancePolicyRequest.prototype.zone = ""; + Jwk.prototype.alg = ""; /** - * SetMaintenancePolicyRequest clusterId. - * @member {string} clusterId - * @memberof google.container.v1.SetMaintenancePolicyRequest + * Jwk use. + * @member {string} use + * @memberof google.container.v1.Jwk * @instance */ - SetMaintenancePolicyRequest.prototype.clusterId = ""; + Jwk.prototype.use = ""; /** - * SetMaintenancePolicyRequest maintenancePolicy. - * @member {google.container.v1.IMaintenancePolicy|null|undefined} maintenancePolicy - * @memberof google.container.v1.SetMaintenancePolicyRequest + * Jwk kid. + * @member {string} kid + * @memberof google.container.v1.Jwk * @instance */ - SetMaintenancePolicyRequest.prototype.maintenancePolicy = null; + Jwk.prototype.kid = ""; /** - * SetMaintenancePolicyRequest name. - * @member {string} name - * @memberof google.container.v1.SetMaintenancePolicyRequest + * Jwk n. + * @member {string} n + * @memberof google.container.v1.Jwk * @instance */ - SetMaintenancePolicyRequest.prototype.name = ""; + Jwk.prototype.n = ""; /** - * Creates a new SetMaintenancePolicyRequest instance using the specified properties. + * Jwk e. + * @member {string} e + * @memberof google.container.v1.Jwk + * @instance + */ + Jwk.prototype.e = ""; + + /** + * Jwk x. + * @member {string} x + * @memberof google.container.v1.Jwk + * @instance + */ + Jwk.prototype.x = ""; + + /** + * Jwk y. + * @member {string} y + * @memberof google.container.v1.Jwk + * @instance + */ + Jwk.prototype.y = ""; + + /** + * Jwk crv. + * @member {string} crv + * @memberof google.container.v1.Jwk + * @instance + */ + Jwk.prototype.crv = ""; + + /** + * Creates a new Jwk instance using the specified properties. * @function create - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static - * @param {google.container.v1.ISetMaintenancePolicyRequest=} [properties] Properties to set - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest instance + * @param {google.container.v1.IJwk=} [properties] Properties to set + * @returns {google.container.v1.Jwk} Jwk instance */ - SetMaintenancePolicyRequest.create = function create(properties) { - return new SetMaintenancePolicyRequest(properties); + Jwk.create = function create(properties) { + return new Jwk(properties); }; /** - * Encodes the specified SetMaintenancePolicyRequest message. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. + * Encodes the specified Jwk message. Does not implicitly {@link google.container.v1.Jwk.verify|verify} messages. * @function encode - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static - * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode + * @param {google.container.v1.IJwk} message Jwk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMaintenancePolicyRequest.encode = function encode(message, writer) { + Jwk.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.maintenancePolicy != null && Object.hasOwnProperty.call(message, "maintenancePolicy")) - $root.google.container.v1.MaintenancePolicy.encode(message.maintenancePolicy, 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); + if (message.kty != null && Object.hasOwnProperty.call(message, "kty")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kty); + if (message.alg != null && Object.hasOwnProperty.call(message, "alg")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.alg); + if (message.use != null && Object.hasOwnProperty.call(message, "use")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.use); + if (message.kid != null && Object.hasOwnProperty.call(message, "kid")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.kid); + if (message.n != null && Object.hasOwnProperty.call(message, "n")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.n); + if (message.e != null && Object.hasOwnProperty.call(message, "e")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.e); + if (message.x != null && Object.hasOwnProperty.call(message, "x")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.x); + if (message.y != null && Object.hasOwnProperty.call(message, "y")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.y); + if (message.crv != null && Object.hasOwnProperty.call(message, "crv")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.crv); return writer; }; /** - * Encodes the specified SetMaintenancePolicyRequest message, length delimited. Does not implicitly {@link google.container.v1.SetMaintenancePolicyRequest.verify|verify} messages. + * Encodes the specified Jwk message, length delimited. Does not implicitly {@link google.container.v1.Jwk.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static - * @param {google.container.v1.ISetMaintenancePolicyRequest} message SetMaintenancePolicyRequest message or plain object to encode + * @param {google.container.v1.IJwk} message Jwk message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SetMaintenancePolicyRequest.encodeDelimited = function encodeDelimited(message, writer) { + Jwk.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer. + * Decodes a Jwk message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest + * @returns {google.container.v1.Jwk} Jwk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMaintenancePolicyRequest.decode = function decode(reader, length) { + Jwk.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.SetMaintenancePolicyRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.Jwk(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.projectId = reader.string(); + message.kty = reader.string(); break; case 2: - message.zone = reader.string(); + message.alg = reader.string(); break; case 3: - message.clusterId = reader.string(); + message.use = reader.string(); break; case 4: - message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); + message.kid = reader.string(); break; case 5: - message.name = reader.string(); + message.n = reader.string(); + break; + case 6: + message.e = reader.string(); + break; + case 7: + message.x = reader.string(); + break; + case 8: + message.y = reader.string(); + break; + case 9: + message.crv = reader.string(); break; default: reader.skipType(tag & 7); @@ -21323,146 +26302,173 @@ }; /** - * Decodes a SetMaintenancePolicyRequest message from the specified reader or buffer, length delimited. + * Decodes a Jwk message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest + * @returns {google.container.v1.Jwk} Jwk * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SetMaintenancePolicyRequest.decodeDelimited = function decodeDelimited(reader) { + Jwk.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SetMaintenancePolicyRequest message. + * Verifies a Jwk message. * @function verify - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SetMaintenancePolicyRequest.verify = function verify(message) { + Jwk.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.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) { - var error = $root.google.container.v1.MaintenancePolicy.verify(message.maintenancePolicy); - if (error) - return "maintenancePolicy." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.kty != null && message.hasOwnProperty("kty")) + if (!$util.isString(message.kty)) + return "kty: string expected"; + if (message.alg != null && message.hasOwnProperty("alg")) + if (!$util.isString(message.alg)) + return "alg: string expected"; + if (message.use != null && message.hasOwnProperty("use")) + if (!$util.isString(message.use)) + return "use: string expected"; + if (message.kid != null && message.hasOwnProperty("kid")) + if (!$util.isString(message.kid)) + return "kid: string expected"; + if (message.n != null && message.hasOwnProperty("n")) + if (!$util.isString(message.n)) + return "n: string expected"; + if (message.e != null && message.hasOwnProperty("e")) + if (!$util.isString(message.e)) + return "e: string expected"; + if (message.x != null && message.hasOwnProperty("x")) + if (!$util.isString(message.x)) + return "x: string expected"; + if (message.y != null && message.hasOwnProperty("y")) + if (!$util.isString(message.y)) + return "y: string expected"; + if (message.crv != null && message.hasOwnProperty("crv")) + if (!$util.isString(message.crv)) + return "crv: string expected"; return 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. * @function fromObject - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static * @param {Object.} object Plain object - * @returns {google.container.v1.SetMaintenancePolicyRequest} SetMaintenancePolicyRequest + * @returns {google.container.v1.Jwk} Jwk */ - SetMaintenancePolicyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.SetMaintenancePolicyRequest) - return object; - var message = new $root.google.container.v1.SetMaintenancePolicyRequest(); - 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.maintenancePolicy != null) { - if (typeof object.maintenancePolicy !== "object") - throw TypeError(".google.container.v1.SetMaintenancePolicyRequest.maintenancePolicy: object expected"); - message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.fromObject(object.maintenancePolicy); - } - if (object.name != null) - message.name = String(object.name); + Jwk.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.Jwk) + return object; + var message = new $root.google.container.v1.Jwk(); + if (object.kty != null) + message.kty = String(object.kty); + if (object.alg != null) + message.alg = String(object.alg); + if (object.use != null) + message.use = String(object.use); + if (object.kid != null) + message.kid = String(object.kid); + if (object.n != null) + message.n = String(object.n); + if (object.e != null) + message.e = String(object.e); + if (object.x != null) + message.x = String(object.x); + if (object.y != null) + message.y = String(object.y); + if (object.crv != null) + message.crv = String(object.crv); return message; }; /** - * Creates a plain object from a SetMaintenancePolicyRequest message. Also converts values to other types if specified. + * Creates a plain object from a Jwk message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @static - * @param {google.container.v1.SetMaintenancePolicyRequest} message SetMaintenancePolicyRequest + * @param {google.container.v1.Jwk} message Jwk * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SetMaintenancePolicyRequest.toObject = function toObject(message, options) { + Jwk.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.projectId = ""; - object.zone = ""; - object.clusterId = ""; - object.maintenancePolicy = 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.maintenancePolicy != null && message.hasOwnProperty("maintenancePolicy")) - object.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.toObject(message.maintenancePolicy, options); - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.kty = ""; + object.alg = ""; + object.use = ""; + object.kid = ""; + object.n = ""; + object.e = ""; + object.x = ""; + object.y = ""; + object.crv = ""; + } + if (message.kty != null && message.hasOwnProperty("kty")) + object.kty = message.kty; + if (message.alg != null && message.hasOwnProperty("alg")) + object.alg = message.alg; + if (message.use != null && message.hasOwnProperty("use")) + object.use = message.use; + if (message.kid != null && message.hasOwnProperty("kid")) + object.kid = message.kid; + if (message.n != null && message.hasOwnProperty("n")) + object.n = message.n; + if (message.e != null && message.hasOwnProperty("e")) + object.e = message.e; + if (message.x != null && message.hasOwnProperty("x")) + object.x = message.x; + if (message.y != null && message.hasOwnProperty("y")) + object.y = message.y; + if (message.crv != null && message.hasOwnProperty("crv")) + object.crv = message.crv; return object; }; /** - * Converts this SetMaintenancePolicyRequest to JSON. + * Converts this Jwk to JSON. * @function toJSON - * @memberof google.container.v1.SetMaintenancePolicyRequest + * @memberof google.container.v1.Jwk * @instance * @returns {Object.} JSON object */ - SetMaintenancePolicyRequest.prototype.toJSON = function toJSON() { + Jwk.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SetMaintenancePolicyRequest; + return Jwk; })(); - v1.StatusCondition = (function() { + v1.GetJSONWebKeysResponse = (function() { /** - * Properties of a StatusCondition. + * Properties of a GetJSONWebKeysResponse. * @memberof google.container.v1 - * @interface IStatusCondition - * @property {google.container.v1.StatusCondition.Code|null} [code] StatusCondition code - * @property {string|null} [message] StatusCondition message + * @interface IGetJSONWebKeysResponse + * @property {Array.|null} [keys] GetJSONWebKeysResponse keys */ /** - * Constructs a new StatusCondition. + * Constructs a new GetJSONWebKeysResponse. * @memberof google.container.v1 - * @classdesc Represents a StatusCondition. - * @implements IStatusCondition + * @classdesc Represents a GetJSONWebKeysResponse. + * @implements IGetJSONWebKeysResponse * @constructor - * @param {google.container.v1.IStatusCondition=} [properties] Properties to set + * @param {google.container.v1.IGetJSONWebKeysResponse=} [properties] Properties to set */ - function StatusCondition(properties) { + function GetJSONWebKeysResponse(properties) { + this.keys = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21470,88 +26476,78 @@ } /** - * StatusCondition code. - * @member {google.container.v1.StatusCondition.Code} code - * @memberof google.container.v1.StatusCondition - * @instance - */ - StatusCondition.prototype.code = 0; - - /** - * StatusCondition message. - * @member {string} message - * @memberof google.container.v1.StatusCondition + * GetJSONWebKeysResponse keys. + * @member {Array.} keys + * @memberof google.container.v1.GetJSONWebKeysResponse * @instance */ - StatusCondition.prototype.message = ""; + GetJSONWebKeysResponse.prototype.keys = $util.emptyArray; /** - * Creates a new StatusCondition instance using the specified properties. + * Creates a new GetJSONWebKeysResponse instance using the specified properties. * @function create - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static - * @param {google.container.v1.IStatusCondition=} [properties] Properties to set - * @returns {google.container.v1.StatusCondition} StatusCondition instance + * @param {google.container.v1.IGetJSONWebKeysResponse=} [properties] Properties to set + * @returns {google.container.v1.GetJSONWebKeysResponse} GetJSONWebKeysResponse instance */ - StatusCondition.create = function create(properties) { - return new StatusCondition(properties); + GetJSONWebKeysResponse.create = function create(properties) { + return new GetJSONWebKeysResponse(properties); }; /** - * Encodes the specified StatusCondition message. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. + * Encodes the specified GetJSONWebKeysResponse message. Does not implicitly {@link google.container.v1.GetJSONWebKeysResponse.verify|verify} messages. * @function encode - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static - * @param {google.container.v1.IStatusCondition} message StatusCondition message or plain object to encode + * @param {google.container.v1.IGetJSONWebKeysResponse} message GetJSONWebKeysResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StatusCondition.encode = function encode(message, writer) { + GetJSONWebKeysResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.keys != null && message.keys.length) + for (var i = 0; i < message.keys.length; ++i) + $root.google.container.v1.Jwk.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified StatusCondition message, length delimited. Does not implicitly {@link google.container.v1.StatusCondition.verify|verify} messages. + * Encodes the specified GetJSONWebKeysResponse message, length delimited. Does not implicitly {@link google.container.v1.GetJSONWebKeysResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static - * @param {google.container.v1.IStatusCondition} message StatusCondition message or plain object to encode + * @param {google.container.v1.IGetJSONWebKeysResponse} message GetJSONWebKeysResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StatusCondition.encodeDelimited = function encodeDelimited(message, writer) { + GetJSONWebKeysResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StatusCondition message from the specified reader or buffer. + * Decodes a GetJSONWebKeysResponse message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.StatusCondition} StatusCondition + * @returns {google.container.v1.GetJSONWebKeysResponse} GetJSONWebKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StatusCondition.decode = function decode(reader, length) { + GetJSONWebKeysResponse.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.StatusCondition(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.GetJSONWebKeysResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.code = reader.int32(); - break; - case 2: - message.message = reader.string(); + if (!(message.keys && message.keys.length)) + message.keys = []; + message.keys.push($root.google.container.v1.Jwk.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -21562,173 +26558,124 @@ }; /** - * Decodes a StatusCondition message from the specified reader or buffer, length delimited. + * Decodes a GetJSONWebKeysResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.StatusCondition} StatusCondition + * @returns {google.container.v1.GetJSONWebKeysResponse} GetJSONWebKeysResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StatusCondition.decodeDelimited = function decodeDelimited(reader) { + GetJSONWebKeysResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StatusCondition message. + * Verifies a GetJSONWebKeysResponse message. * @function verify - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StatusCondition.verify = function verify(message) { + GetJSONWebKeysResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - switch (message.code) { - default: - return "code: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 7: - break; + if (message.keys != null && message.hasOwnProperty("keys")) { + if (!Array.isArray(message.keys)) + return "keys: array expected"; + for (var i = 0; i < message.keys.length; ++i) { + var error = $root.google.container.v1.Jwk.verify(message.keys[i]); + if (error) + return "keys." + error; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + } return 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. * @function fromObject - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static * @param {Object.} object Plain object - * @returns {google.container.v1.StatusCondition} StatusCondition + * @returns {google.container.v1.GetJSONWebKeysResponse} GetJSONWebKeysResponse */ - StatusCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.StatusCondition) + GetJSONWebKeysResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetJSONWebKeysResponse) return object; - var message = new $root.google.container.v1.StatusCondition(); - switch (object.code) { - case "UNKNOWN": - case 0: - message.code = 0; - break; - case "GCE_STOCKOUT": - case 1: - message.code = 1; - break; - case "GKE_SERVICE_ACCOUNT_DELETED": - case 2: - message.code = 2; - break; - case "GCE_QUOTA_EXCEEDED": - case 3: - message.code = 3; - break; - case "SET_BY_OPERATOR": - case 4: - message.code = 4; - break; - case "CLOUD_KMS_KEY_ERROR": - case 7: - message.code = 7; - break; + var message = new $root.google.container.v1.GetJSONWebKeysResponse(); + if (object.keys) { + if (!Array.isArray(object.keys)) + throw TypeError(".google.container.v1.GetJSONWebKeysResponse.keys: array expected"); + message.keys = []; + for (var i = 0; i < object.keys.length; ++i) { + if (typeof object.keys[i] !== "object") + throw TypeError(".google.container.v1.GetJSONWebKeysResponse.keys: object expected"); + message.keys[i] = $root.google.container.v1.Jwk.fromObject(object.keys[i]); + } } - if (object.message != null) - message.message = String(object.message); return message; }; /** - * Creates a plain object from a StatusCondition message. Also converts values to other types if specified. + * Creates a plain object from a GetJSONWebKeysResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @static - * @param {google.container.v1.StatusCondition} message StatusCondition + * @param {google.container.v1.GetJSONWebKeysResponse} message GetJSONWebKeysResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StatusCondition.toObject = function toObject(message, options) { + GetJSONWebKeysResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.code = options.enums === String ? "UNKNOWN" : 0; - object.message = ""; + if (options.arrays || options.defaults) + object.keys = []; + if (message.keys && message.keys.length) { + object.keys = []; + for (var j = 0; j < message.keys.length; ++j) + object.keys[j] = $root.google.container.v1.Jwk.toObject(message.keys[j], options); } - if (message.code != null && message.hasOwnProperty("code")) - object.code = options.enums === String ? $root.google.container.v1.StatusCondition.Code[message.code] : message.code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; return object; }; /** - * Converts this StatusCondition to JSON. + * Converts this GetJSONWebKeysResponse to JSON. * @function toJSON - * @memberof google.container.v1.StatusCondition + * @memberof google.container.v1.GetJSONWebKeysResponse * @instance * @returns {Object.} JSON object */ - StatusCondition.prototype.toJSON = function toJSON() { + GetJSONWebKeysResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Code enum. - * @name google.container.v1.StatusCondition.Code - * @enum {number} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} GCE_STOCKOUT=1 GCE_STOCKOUT value - * @property {number} GKE_SERVICE_ACCOUNT_DELETED=2 GKE_SERVICE_ACCOUNT_DELETED value - * @property {number} GCE_QUOTA_EXCEEDED=3 GCE_QUOTA_EXCEEDED value - * @property {number} SET_BY_OPERATOR=4 SET_BY_OPERATOR value - * @property {number} CLOUD_KMS_KEY_ERROR=7 CLOUD_KMS_KEY_ERROR value - */ - StatusCondition.Code = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "GCE_STOCKOUT"] = 1; - values[valuesById[2] = "GKE_SERVICE_ACCOUNT_DELETED"] = 2; - values[valuesById[3] = "GCE_QUOTA_EXCEEDED"] = 3; - values[valuesById[4] = "SET_BY_OPERATOR"] = 4; - values[valuesById[7] = "CLOUD_KMS_KEY_ERROR"] = 7; - return values; - })(); - - return StatusCondition; + return GetJSONWebKeysResponse; })(); - v1.NetworkConfig = (function() { + v1.ReleaseChannel = (function() { /** - * Properties of a NetworkConfig. + * Properties of a ReleaseChannel. * @memberof google.container.v1 - * @interface INetworkConfig - * @property {string|null} [network] NetworkConfig network - * @property {string|null} [subnetwork] NetworkConfig subnetwork - * @property {boolean|null} [enableIntraNodeVisibility] NetworkConfig enableIntraNodeVisibility + * @interface IReleaseChannel + * @property {google.container.v1.ReleaseChannel.Channel|null} [channel] ReleaseChannel channel */ /** - * Constructs a new NetworkConfig. + * Constructs a new ReleaseChannel. * @memberof google.container.v1 - * @classdesc Represents a NetworkConfig. - * @implements INetworkConfig + * @classdesc Represents a ReleaseChannel. + * @implements IReleaseChannel * @constructor - * @param {google.container.v1.INetworkConfig=} [properties] Properties to set + * @param {google.container.v1.IReleaseChannel=} [properties] Properties to set */ - function NetworkConfig(properties) { + function ReleaseChannel(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -21736,101 +26683,75 @@ } /** - * NetworkConfig network. - * @member {string} network - * @memberof google.container.v1.NetworkConfig - * @instance - */ - NetworkConfig.prototype.network = ""; - - /** - * NetworkConfig subnetwork. - * @member {string} subnetwork - * @memberof google.container.v1.NetworkConfig - * @instance - */ - NetworkConfig.prototype.subnetwork = ""; - - /** - * NetworkConfig enableIntraNodeVisibility. - * @member {boolean} enableIntraNodeVisibility - * @memberof google.container.v1.NetworkConfig + * ReleaseChannel channel. + * @member {google.container.v1.ReleaseChannel.Channel} channel + * @memberof google.container.v1.ReleaseChannel * @instance */ - NetworkConfig.prototype.enableIntraNodeVisibility = false; + ReleaseChannel.prototype.channel = 0; /** - * Creates a new NetworkConfig instance using the specified properties. + * Creates a new ReleaseChannel instance using the specified properties. * @function create - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static - * @param {google.container.v1.INetworkConfig=} [properties] Properties to set - * @returns {google.container.v1.NetworkConfig} NetworkConfig instance + * @param {google.container.v1.IReleaseChannel=} [properties] Properties to set + * @returns {google.container.v1.ReleaseChannel} ReleaseChannel instance */ - NetworkConfig.create = function create(properties) { - return new NetworkConfig(properties); + ReleaseChannel.create = function create(properties) { + return new ReleaseChannel(properties); }; /** - * Encodes the specified NetworkConfig message. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. + * Encodes the specified ReleaseChannel message. Does not implicitly {@link google.container.v1.ReleaseChannel.verify|verify} messages. * @function encode - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static - * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {google.container.v1.IReleaseChannel} message ReleaseChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkConfig.encode = function encode(message, writer) { + ReleaseChannel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.network); - if (message.subnetwork != null && Object.hasOwnProperty.call(message, "subnetwork")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.subnetwork); - if (message.enableIntraNodeVisibility != null && Object.hasOwnProperty.call(message, "enableIntraNodeVisibility")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableIntraNodeVisibility); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.channel); return writer; }; /** - * Encodes the specified NetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NetworkConfig.verify|verify} messages. + * Encodes the specified ReleaseChannel message, length delimited. Does not implicitly {@link google.container.v1.ReleaseChannel.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static - * @param {google.container.v1.INetworkConfig} message NetworkConfig message or plain object to encode + * @param {google.container.v1.IReleaseChannel} message ReleaseChannel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { + ReleaseChannel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NetworkConfig message from the specified reader or buffer. + * Decodes a ReleaseChannel message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @returns {google.container.v1.ReleaseChannel} ReleaseChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkConfig.decode = function decode(reader, length) { + ReleaseChannel.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.NetworkConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ReleaseChannel(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.network = reader.string(); - break; - case 2: - message.subnetwork = reader.string(); - break; - case 5: - message.enableIntraNodeVisibility = reader.bool(); + message.channel = reader.int32(); break; default: reader.skipType(tag & 7); @@ -21841,104 +26762,128 @@ }; /** - * Decodes a NetworkConfig message from the specified reader or buffer, length delimited. + * Decodes a ReleaseChannel message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @returns {google.container.v1.ReleaseChannel} ReleaseChannel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NetworkConfig.decodeDelimited = function decodeDelimited(reader) { + ReleaseChannel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; - /** - * Verifies a NetworkConfig message. - * @function verify - * @memberof google.container.v1.NetworkConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NetworkConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - if (!$util.isString(message.subnetwork)) - return "subnetwork: string expected"; - if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) - if (typeof message.enableIntraNodeVisibility !== "boolean") - return "enableIntraNodeVisibility: boolean expected"; + /** + * Verifies a ReleaseChannel message. + * @function verify + * @memberof google.container.v1.ReleaseChannel + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReleaseChannel.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.channel != null && message.hasOwnProperty("channel")) + switch (message.channel) { + default: + return "channel: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } return 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. * @function fromObject - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static * @param {Object.} object Plain object - * @returns {google.container.v1.NetworkConfig} NetworkConfig + * @returns {google.container.v1.ReleaseChannel} ReleaseChannel */ - NetworkConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.NetworkConfig) + ReleaseChannel.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ReleaseChannel) return object; - var message = new $root.google.container.v1.NetworkConfig(); - if (object.network != null) - message.network = String(object.network); - if (object.subnetwork != null) - message.subnetwork = String(object.subnetwork); - if (object.enableIntraNodeVisibility != null) - message.enableIntraNodeVisibility = Boolean(object.enableIntraNodeVisibility); + var message = new $root.google.container.v1.ReleaseChannel(); + switch (object.channel) { + case "UNSPECIFIED": + case 0: + message.channel = 0; + break; + case "RAPID": + case 1: + message.channel = 1; + break; + case "REGULAR": + case 2: + message.channel = 2; + break; + case "STABLE": + case 3: + message.channel = 3; + break; + } return message; }; /** - * Creates a plain object from a NetworkConfig message. Also converts values to other types if specified. + * Creates a plain object from a ReleaseChannel message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @static - * @param {google.container.v1.NetworkConfig} message NetworkConfig + * @param {google.container.v1.ReleaseChannel} message ReleaseChannel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NetworkConfig.toObject = function toObject(message, options) { + ReleaseChannel.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.network = ""; - object.subnetwork = ""; - object.enableIntraNodeVisibility = false; - } - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.subnetwork != null && message.hasOwnProperty("subnetwork")) - object.subnetwork = message.subnetwork; - if (message.enableIntraNodeVisibility != null && message.hasOwnProperty("enableIntraNodeVisibility")) - object.enableIntraNodeVisibility = message.enableIntraNodeVisibility; + if (options.defaults) + object.channel = options.enums === String ? "UNSPECIFIED" : 0; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = options.enums === String ? $root.google.container.v1.ReleaseChannel.Channel[message.channel] : message.channel; return object; }; /** - * Converts this NetworkConfig to JSON. + * Converts this ReleaseChannel to JSON. * @function toJSON - * @memberof google.container.v1.NetworkConfig + * @memberof google.container.v1.ReleaseChannel * @instance * @returns {Object.} JSON object */ - NetworkConfig.prototype.toJSON = function toJSON() { + ReleaseChannel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return NetworkConfig; + /** + * Channel enum. + * @name google.container.v1.ReleaseChannel.Channel + * @enum {number} + * @property {number} UNSPECIFIED=0 UNSPECIFIED value + * @property {number} RAPID=1 RAPID value + * @property {number} REGULAR=2 REGULAR value + * @property {number} STABLE=3 STABLE value + */ + ReleaseChannel.Channel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UNSPECIFIED"] = 0; + values[valuesById[1] = "RAPID"] = 1; + values[valuesById[2] = "REGULAR"] = 2; + values[valuesById[3] = "STABLE"] = 3; + return values; + })(); + + return ReleaseChannel; })(); v1.IntraNodeVisibilityConfig = (function() { @@ -22143,9 +27088,210 @@ * @classdesc Represents a MaxPodsConstraint. * @implements IMaxPodsConstraint * @constructor - * @param {google.container.v1.IMaxPodsConstraint=} [properties] Properties to set + * @param {google.container.v1.IMaxPodsConstraint=} [properties] Properties to set + */ + function MaxPodsConstraint(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]]; + } + + /** + * MaxPodsConstraint maxPodsPerNode. + * @member {number|Long} maxPodsPerNode + * @memberof google.container.v1.MaxPodsConstraint + * @instance + */ + MaxPodsConstraint.prototype.maxPodsPerNode = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new MaxPodsConstraint instance using the specified properties. + * @function create + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {google.container.v1.IMaxPodsConstraint=} [properties] Properties to set + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint instance + */ + MaxPodsConstraint.create = function create(properties) { + return new MaxPodsConstraint(properties); + }; + + /** + * Encodes the specified MaxPodsConstraint message. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {google.container.v1.IMaxPodsConstraint} message MaxPodsConstraint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaxPodsConstraint.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxPodsPerNode != null && Object.hasOwnProperty.call(message, "maxPodsPerNode")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxPodsPerNode); + return writer; + }; + + /** + * Encodes the specified MaxPodsConstraint message, length delimited. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {google.container.v1.IMaxPodsConstraint} message MaxPodsConstraint message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaxPodsConstraint.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MaxPodsConstraint message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaxPodsConstraint.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.MaxPodsConstraint(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxPodsPerNode = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MaxPodsConstraint message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaxPodsConstraint.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MaxPodsConstraint message. + * @function verify + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MaxPodsConstraint.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) + if (!$util.isInteger(message.maxPodsPerNode) && !(message.maxPodsPerNode && $util.isInteger(message.maxPodsPerNode.low) && $util.isInteger(message.maxPodsPerNode.high))) + return "maxPodsPerNode: integer|Long expected"; + return null; + }; + + /** + * Creates a MaxPodsConstraint message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + */ + MaxPodsConstraint.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaxPodsConstraint) + return object; + var message = new $root.google.container.v1.MaxPodsConstraint(); + if (object.maxPodsPerNode != null) + if ($util.Long) + (message.maxPodsPerNode = $util.Long.fromValue(object.maxPodsPerNode)).unsigned = false; + else if (typeof object.maxPodsPerNode === "string") + message.maxPodsPerNode = parseInt(object.maxPodsPerNode, 10); + else if (typeof object.maxPodsPerNode === "number") + message.maxPodsPerNode = object.maxPodsPerNode; + else if (typeof object.maxPodsPerNode === "object") + message.maxPodsPerNode = new $util.LongBits(object.maxPodsPerNode.low >>> 0, object.maxPodsPerNode.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a MaxPodsConstraint message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {google.container.v1.MaxPodsConstraint} message MaxPodsConstraint + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MaxPodsConstraint.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxPodsPerNode = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxPodsPerNode = options.longs === String ? "0" : 0; + if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) + if (typeof message.maxPodsPerNode === "number") + object.maxPodsPerNode = options.longs === String ? String(message.maxPodsPerNode) : message.maxPodsPerNode; + else + object.maxPodsPerNode = options.longs === String ? $util.Long.prototype.toString.call(message.maxPodsPerNode) : options.longs === Number ? new $util.LongBits(message.maxPodsPerNode.low >>> 0, message.maxPodsPerNode.high >>> 0).toNumber() : message.maxPodsPerNode; + return object; + }; + + /** + * Converts this MaxPodsConstraint to JSON. + * @function toJSON + * @memberof google.container.v1.MaxPodsConstraint + * @instance + * @returns {Object.} JSON object + */ + MaxPodsConstraint.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MaxPodsConstraint; + })(); + + v1.WorkloadIdentityConfig = (function() { + + /** + * Properties of a WorkloadIdentityConfig. + * @memberof google.container.v1 + * @interface IWorkloadIdentityConfig + * @property {string|null} [workloadPool] WorkloadIdentityConfig workloadPool + */ + + /** + * Constructs a new WorkloadIdentityConfig. + * @memberof google.container.v1 + * @classdesc Represents a WorkloadIdentityConfig. + * @implements IWorkloadIdentityConfig + * @constructor + * @param {google.container.v1.IWorkloadIdentityConfig=} [properties] Properties to set */ - function MaxPodsConstraint(properties) { + function WorkloadIdentityConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -22153,75 +27299,75 @@ } /** - * MaxPodsConstraint maxPodsPerNode. - * @member {number|Long} maxPodsPerNode - * @memberof google.container.v1.MaxPodsConstraint + * WorkloadIdentityConfig workloadPool. + * @member {string} workloadPool + * @memberof google.container.v1.WorkloadIdentityConfig * @instance */ - MaxPodsConstraint.prototype.maxPodsPerNode = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + WorkloadIdentityConfig.prototype.workloadPool = ""; /** - * Creates a new MaxPodsConstraint instance using the specified properties. + * Creates a new WorkloadIdentityConfig instance using the specified properties. * @function create - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static - * @param {google.container.v1.IMaxPodsConstraint=} [properties] Properties to set - * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint instance + * @param {google.container.v1.IWorkloadIdentityConfig=} [properties] Properties to set + * @returns {google.container.v1.WorkloadIdentityConfig} WorkloadIdentityConfig instance */ - MaxPodsConstraint.create = function create(properties) { - return new MaxPodsConstraint(properties); + WorkloadIdentityConfig.create = function create(properties) { + return new WorkloadIdentityConfig(properties); }; /** - * Encodes the specified MaxPodsConstraint message. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. + * Encodes the specified WorkloadIdentityConfig message. Does not implicitly {@link google.container.v1.WorkloadIdentityConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static - * @param {google.container.v1.IMaxPodsConstraint} message MaxPodsConstraint message or plain object to encode + * @param {google.container.v1.IWorkloadIdentityConfig} message WorkloadIdentityConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaxPodsConstraint.encode = function encode(message, writer) { + WorkloadIdentityConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.maxPodsPerNode != null && Object.hasOwnProperty.call(message, "maxPodsPerNode")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxPodsPerNode); + if (message.workloadPool != null && Object.hasOwnProperty.call(message, "workloadPool")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.workloadPool); return writer; }; /** - * Encodes the specified MaxPodsConstraint message, length delimited. Does not implicitly {@link google.container.v1.MaxPodsConstraint.verify|verify} messages. + * Encodes the specified WorkloadIdentityConfig message, length delimited. Does not implicitly {@link google.container.v1.WorkloadIdentityConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static - * @param {google.container.v1.IMaxPodsConstraint} message MaxPodsConstraint message or plain object to encode + * @param {google.container.v1.IWorkloadIdentityConfig} message WorkloadIdentityConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MaxPodsConstraint.encodeDelimited = function encodeDelimited(message, writer) { + WorkloadIdentityConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MaxPodsConstraint message from the specified reader or buffer. + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + * @returns {google.container.v1.WorkloadIdentityConfig} WorkloadIdentityConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaxPodsConstraint.decode = function decode(reader, length) { + WorkloadIdentityConfig.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.MaxPodsConstraint(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.WorkloadIdentityConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.maxPodsPerNode = reader.int64(); + case 2: + message.workloadPool = reader.string(); break; default: reader.skipType(tag & 7); @@ -22232,101 +27378,87 @@ }; /** - * Decodes a MaxPodsConstraint message from the specified reader or buffer, length delimited. + * Decodes a WorkloadIdentityConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + * @returns {google.container.v1.WorkloadIdentityConfig} WorkloadIdentityConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MaxPodsConstraint.decodeDelimited = function decodeDelimited(reader) { + WorkloadIdentityConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MaxPodsConstraint message. + * Verifies a WorkloadIdentityConfig message. * @function verify - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MaxPodsConstraint.verify = function verify(message) { + WorkloadIdentityConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) - if (!$util.isInteger(message.maxPodsPerNode) && !(message.maxPodsPerNode && $util.isInteger(message.maxPodsPerNode.low) && $util.isInteger(message.maxPodsPerNode.high))) - return "maxPodsPerNode: integer|Long expected"; + if (message.workloadPool != null && message.hasOwnProperty("workloadPool")) + if (!$util.isString(message.workloadPool)) + return "workloadPool: string expected"; return null; }; /** - * Creates a MaxPodsConstraint message from a plain object. Also converts values to their respective internal types. + * Creates a WorkloadIdentityConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.MaxPodsConstraint} MaxPodsConstraint + * @returns {google.container.v1.WorkloadIdentityConfig} WorkloadIdentityConfig */ - MaxPodsConstraint.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.MaxPodsConstraint) + WorkloadIdentityConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.WorkloadIdentityConfig) return object; - var message = new $root.google.container.v1.MaxPodsConstraint(); - if (object.maxPodsPerNode != null) - if ($util.Long) - (message.maxPodsPerNode = $util.Long.fromValue(object.maxPodsPerNode)).unsigned = false; - else if (typeof object.maxPodsPerNode === "string") - message.maxPodsPerNode = parseInt(object.maxPodsPerNode, 10); - else if (typeof object.maxPodsPerNode === "number") - message.maxPodsPerNode = object.maxPodsPerNode; - else if (typeof object.maxPodsPerNode === "object") - message.maxPodsPerNode = new $util.LongBits(object.maxPodsPerNode.low >>> 0, object.maxPodsPerNode.high >>> 0).toNumber(); + var message = new $root.google.container.v1.WorkloadIdentityConfig(); + if (object.workloadPool != null) + message.workloadPool = String(object.workloadPool); return message; }; /** - * Creates a plain object from a MaxPodsConstraint message. Also converts values to other types if specified. + * Creates a plain object from a WorkloadIdentityConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @static - * @param {google.container.v1.MaxPodsConstraint} message MaxPodsConstraint + * @param {google.container.v1.WorkloadIdentityConfig} message WorkloadIdentityConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MaxPodsConstraint.toObject = function toObject(message, options) { + WorkloadIdentityConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxPodsPerNode = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxPodsPerNode = options.longs === String ? "0" : 0; - if (message.maxPodsPerNode != null && message.hasOwnProperty("maxPodsPerNode")) - if (typeof message.maxPodsPerNode === "number") - object.maxPodsPerNode = options.longs === String ? String(message.maxPodsPerNode) : message.maxPodsPerNode; - else - object.maxPodsPerNode = options.longs === String ? $util.Long.prototype.toString.call(message.maxPodsPerNode) : options.longs === Number ? new $util.LongBits(message.maxPodsPerNode.low >>> 0, message.maxPodsPerNode.high >>> 0).toNumber() : message.maxPodsPerNode; + object.workloadPool = ""; + if (message.workloadPool != null && message.hasOwnProperty("workloadPool")) + object.workloadPool = message.workloadPool; return object; }; /** - * Converts this MaxPodsConstraint to JSON. + * Converts this WorkloadIdentityConfig to JSON. * @function toJSON - * @memberof google.container.v1.MaxPodsConstraint + * @memberof google.container.v1.WorkloadIdentityConfig * @instance * @returns {Object.} JSON object */ - MaxPodsConstraint.prototype.toJSON = function toJSON() { + WorkloadIdentityConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MaxPodsConstraint; + return WorkloadIdentityConfig; })(); v1.DatabaseEncryption = (function() { @@ -23875,24 +29007,211 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ResourceUsageExportConfig.BigQueryDestination = (function() { + ResourceUsageExportConfig.BigQueryDestination = (function() { + + /** + * Properties of a BigQueryDestination. + * @memberof google.container.v1.ResourceUsageExportConfig + * @interface IBigQueryDestination + * @property {string|null} [datasetId] BigQueryDestination datasetId + */ + + /** + * Constructs a new BigQueryDestination. + * @memberof google.container.v1.ResourceUsageExportConfig + * @classdesc Represents a BigQueryDestination. + * @implements IBigQueryDestination + * @constructor + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination=} [properties] Properties to set + */ + function BigQueryDestination(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]]; + } + + /** + * BigQueryDestination datasetId. + * @member {string} datasetId + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @instance + */ + BigQueryDestination.prototype.datasetId = ""; + + /** + * Creates a new BigQueryDestination instance using the specified properties. + * @function create + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination=} [properties] Properties to set + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination instance + */ + BigQueryDestination.create = function create(properties) { + return new BigQueryDestination(properties); + }; + + /** + * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination} message BigQueryDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQueryDestination.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); + return writer; + }; + + /** + * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination} message BigQueryDestination message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BigQueryDestination.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BigQueryDestination message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQueryDestination.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.ResourceUsageExportConfig.BigQueryDestination(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.datasetId = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BigQueryDestination.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BigQueryDestination message. + * @function verify + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BigQueryDestination.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + if (!$util.isString(message.datasetId)) + return "datasetId: string expected"; + return null; + }; + + /** + * Creates a BigQueryDestination message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + */ + BigQueryDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) + return object; + var message = new $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(); + if (object.datasetId != null) + message.datasetId = String(object.datasetId); + return message; + }; + + /** + * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} message BigQueryDestination + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BigQueryDestination.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.datasetId = ""; + if (message.datasetId != null && message.hasOwnProperty("datasetId")) + object.datasetId = message.datasetId; + return object; + }; + + /** + * Converts this BigQueryDestination to JSON. + * @function toJSON + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @instance + * @returns {Object.} JSON object + */ + BigQueryDestination.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BigQueryDestination; + })(); + + ResourceUsageExportConfig.ConsumptionMeteringConfig = (function() { /** - * Properties of a BigQueryDestination. + * Properties of a ConsumptionMeteringConfig. * @memberof google.container.v1.ResourceUsageExportConfig - * @interface IBigQueryDestination - * @property {string|null} [datasetId] BigQueryDestination datasetId + * @interface IConsumptionMeteringConfig + * @property {boolean|null} [enabled] ConsumptionMeteringConfig enabled */ /** - * Constructs a new BigQueryDestination. + * Constructs a new ConsumptionMeteringConfig. * @memberof google.container.v1.ResourceUsageExportConfig - * @classdesc Represents a BigQueryDestination. - * @implements IBigQueryDestination + * @classdesc Represents a ConsumptionMeteringConfig. + * @implements IConsumptionMeteringConfig * @constructor - * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination=} [properties] Properties to set + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig=} [properties] Properties to set */ - function BigQueryDestination(properties) { + function ConsumptionMeteringConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -23900,376 +29219,563 @@ } /** - * BigQueryDestination datasetId. - * @member {string} datasetId - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * ConsumptionMeteringConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig * @instance */ - BigQueryDestination.prototype.datasetId = ""; + ConsumptionMeteringConfig.prototype.enabled = false; /** - * Creates a new BigQueryDestination instance using the specified properties. + * Creates a new ConsumptionMeteringConfig instance using the specified properties. * @function create - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig * @static - * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination=} [properties] Properties to set - * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination instance + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig=} [properties] Properties to set + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig instance */ - BigQueryDestination.create = function create(properties) { - return new BigQueryDestination(properties); + ConsumptionMeteringConfig.create = function create(properties) { + return new ConsumptionMeteringConfig(properties); }; /** - * Encodes the specified BigQueryDestination message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * Encodes the specified ConsumptionMeteringConfig message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig * @static - * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination} message BigQueryDestination message or plain object to encode + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig} message ConsumptionMeteringConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BigQueryDestination.encode = function encode(message, writer) { + ConsumptionMeteringConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datasetId != null && Object.hasOwnProperty.call(message, "datasetId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.datasetId); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; /** - * Encodes the specified BigQueryDestination message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.BigQueryDestination.verify|verify} messages. + * Encodes the specified ConsumptionMeteringConfig message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig * @static - * @param {google.container.v1.ResourceUsageExportConfig.IBigQueryDestination} message BigQueryDestination message or plain object to encode + * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig} message ConsumptionMeteringConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BigQueryDestination.encodeDelimited = function encodeDelimited(message, writer) { + ConsumptionMeteringConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BigQueryDestination message from the specified reader or buffer. + * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BigQueryDestination.decode = function decode(reader, length) { + ConsumptionMeteringConfig.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.ResourceUsageExportConfig.BigQueryDestination(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.datasetId = reader.string(); + message.enabled = reader.bool(); break; default: reader.skipType(tag & 7); break; } } - return message; - }; - - /** - * Decodes a BigQueryDestination message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BigQueryDestination.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return message; + }; + + /** + * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConsumptionMeteringConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConsumptionMeteringConfig message. + * @function verify + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConsumptionMeteringConfig.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; + }; + + /** + * Creates a ConsumptionMeteringConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig + */ + ConsumptionMeteringConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + return object; + var message = new $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a ConsumptionMeteringConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} message ConsumptionMeteringConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConsumptionMeteringConfig.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 ConsumptionMeteringConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @instance + * @returns {Object.} JSON object + */ + ConsumptionMeteringConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ConsumptionMeteringConfig; + })(); + + return ResourceUsageExportConfig; + })(); + + v1.VerticalPodAutoscaling = (function() { + + /** + * Properties of a VerticalPodAutoscaling. + * @memberof google.container.v1 + * @interface IVerticalPodAutoscaling + * @property {boolean|null} [enabled] VerticalPodAutoscaling enabled + */ + + /** + * Constructs a new VerticalPodAutoscaling. + * @memberof google.container.v1 + * @classdesc Represents a VerticalPodAutoscaling. + * @implements IVerticalPodAutoscaling + * @constructor + * @param {google.container.v1.IVerticalPodAutoscaling=} [properties] Properties to set + */ + function VerticalPodAutoscaling(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]]; + } + + /** + * VerticalPodAutoscaling enabled. + * @member {boolean} enabled + * @memberof google.container.v1.VerticalPodAutoscaling + * @instance + */ + VerticalPodAutoscaling.prototype.enabled = false; + + /** + * Creates a new VerticalPodAutoscaling instance using the specified properties. + * @function create + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {google.container.v1.IVerticalPodAutoscaling=} [properties] Properties to set + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling instance + */ + VerticalPodAutoscaling.create = function create(properties) { + return new VerticalPodAutoscaling(properties); + }; + + /** + * Encodes the specified VerticalPodAutoscaling message. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. + * @function encode + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {google.container.v1.IVerticalPodAutoscaling} message VerticalPodAutoscaling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VerticalPodAutoscaling.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 VerticalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {google.container.v1.IVerticalPodAutoscaling} message VerticalPodAutoscaling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VerticalPodAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a VerticalPodAutoscaling message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VerticalPodAutoscaling.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.VerticalPodAutoscaling(); + 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; + }; - /** - * Verifies a BigQueryDestination message. - * @function verify - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BigQueryDestination.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - if (!$util.isString(message.datasetId)) - return "datasetId: string expected"; - return null; - }; + /** + * Decodes a VerticalPodAutoscaling message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VerticalPodAutoscaling.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a BigQueryDestination message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination - * @static - * @param {Object.} object Plain object - * @returns {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} BigQueryDestination - */ - BigQueryDestination.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) - return object; - var message = new $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination(); - if (object.datasetId != null) - message.datasetId = String(object.datasetId); - return message; - }; + /** + * Verifies a VerticalPodAutoscaling message. + * @function verify + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VerticalPodAutoscaling.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; + }; - /** - * Creates a plain object from a BigQueryDestination message. Also converts values to other types if specified. - * @function toObject - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination - * @static - * @param {google.container.v1.ResourceUsageExportConfig.BigQueryDestination} message BigQueryDestination - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - BigQueryDestination.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.datasetId = ""; - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - object.datasetId = message.datasetId; + /** + * Creates a VerticalPodAutoscaling message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + */ + VerticalPodAutoscaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.VerticalPodAutoscaling) return object; - }; + var message = new $root.google.container.v1.VerticalPodAutoscaling(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; - /** - * Converts this BigQueryDestination to JSON. - * @function toJSON - * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination - * @instance - * @returns {Object.} JSON object - */ - BigQueryDestination.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a VerticalPodAutoscaling message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {google.container.v1.VerticalPodAutoscaling} message VerticalPodAutoscaling + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VerticalPodAutoscaling.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; + }; - return BigQueryDestination; - })(); + /** + * Converts this VerticalPodAutoscaling to JSON. + * @function toJSON + * @memberof google.container.v1.VerticalPodAutoscaling + * @instance + * @returns {Object.} JSON object + */ + VerticalPodAutoscaling.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ResourceUsageExportConfig.ConsumptionMeteringConfig = (function() { + return VerticalPodAutoscaling; + })(); - /** - * Properties of a ConsumptionMeteringConfig. - * @memberof google.container.v1.ResourceUsageExportConfig - * @interface IConsumptionMeteringConfig - * @property {boolean|null} [enabled] ConsumptionMeteringConfig enabled - */ + v1.DefaultSnatStatus = (function() { - /** - * Constructs a new ConsumptionMeteringConfig. - * @memberof google.container.v1.ResourceUsageExportConfig - * @classdesc Represents a ConsumptionMeteringConfig. - * @implements IConsumptionMeteringConfig - * @constructor - * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig=} [properties] Properties to set - */ - function ConsumptionMeteringConfig(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]]; - } + /** + * Properties of a DefaultSnatStatus. + * @memberof google.container.v1 + * @interface IDefaultSnatStatus + * @property {boolean|null} [disabled] DefaultSnatStatus disabled + */ - /** - * ConsumptionMeteringConfig enabled. - * @member {boolean} enabled - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @instance - */ - ConsumptionMeteringConfig.prototype.enabled = false; + /** + * Constructs a new DefaultSnatStatus. + * @memberof google.container.v1 + * @classdesc Represents a DefaultSnatStatus. + * @implements IDefaultSnatStatus + * @constructor + * @param {google.container.v1.IDefaultSnatStatus=} [properties] Properties to set + */ + function DefaultSnatStatus(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]]; + } - /** - * Creates a new ConsumptionMeteringConfig instance using the specified properties. - * @function create - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig=} [properties] Properties to set - * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig instance - */ - ConsumptionMeteringConfig.create = function create(properties) { - return new ConsumptionMeteringConfig(properties); - }; + /** + * DefaultSnatStatus disabled. + * @member {boolean} disabled + * @memberof google.container.v1.DefaultSnatStatus + * @instance + */ + DefaultSnatStatus.prototype.disabled = false; - /** - * Encodes the specified ConsumptionMeteringConfig message. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. - * @function encode - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig} message ConsumptionMeteringConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConsumptionMeteringConfig.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; - }; + /** + * Creates a new DefaultSnatStatus instance using the specified properties. + * @function create + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {google.container.v1.IDefaultSnatStatus=} [properties] Properties to set + * @returns {google.container.v1.DefaultSnatStatus} DefaultSnatStatus instance + */ + DefaultSnatStatus.create = function create(properties) { + return new DefaultSnatStatus(properties); + }; + + /** + * Encodes the specified DefaultSnatStatus message. Does not implicitly {@link google.container.v1.DefaultSnatStatus.verify|verify} messages. + * @function encode + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {google.container.v1.IDefaultSnatStatus} message DefaultSnatStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DefaultSnatStatus.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); + return writer; + }; - /** - * Encodes the specified ConsumptionMeteringConfig message, length delimited. Does not implicitly {@link google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {google.container.v1.ResourceUsageExportConfig.IConsumptionMeteringConfig} message ConsumptionMeteringConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConsumptionMeteringConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified DefaultSnatStatus message, length delimited. Does not implicitly {@link google.container.v1.DefaultSnatStatus.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {google.container.v1.IDefaultSnatStatus} message DefaultSnatStatus message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DefaultSnatStatus.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer. - * @function decode - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConsumptionMeteringConfig.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.ResourceUsageExportConfig.ConsumptionMeteringConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a DefaultSnatStatus message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.DefaultSnatStatus} DefaultSnatStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DefaultSnatStatus.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.DefaultSnatStatus(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.disabled = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a ConsumptionMeteringConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConsumptionMeteringConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a ConsumptionMeteringConfig message. - * @function verify - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConsumptionMeteringConfig.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; - }; + /** + * Decodes a DefaultSnatStatus message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.DefaultSnatStatus} DefaultSnatStatus + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DefaultSnatStatus.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ConsumptionMeteringConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {Object.} object Plain object - * @returns {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} ConsumptionMeteringConfig - */ - ConsumptionMeteringConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) - return object; - var message = new $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - return message; - }; + /** + * Verifies a DefaultSnatStatus message. + * @function verify + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DefaultSnatStatus.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"; + return null; + }; - /** - * Creates a plain object from a ConsumptionMeteringConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @static - * @param {google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig} message ConsumptionMeteringConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConsumptionMeteringConfig.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; + /** + * Creates a DefaultSnatStatus message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.DefaultSnatStatus} DefaultSnatStatus + */ + DefaultSnatStatus.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DefaultSnatStatus) return object; - }; + var message = new $root.google.container.v1.DefaultSnatStatus(); + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + return message; + }; - /** - * Converts this ConsumptionMeteringConfig to JSON. - * @function toJSON - * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - * @instance - * @returns {Object.} JSON object - */ - ConsumptionMeteringConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DefaultSnatStatus message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {google.container.v1.DefaultSnatStatus} message DefaultSnatStatus + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DefaultSnatStatus.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; + return object; + }; - return ConsumptionMeteringConfig; - })(); + /** + * Converts this DefaultSnatStatus to JSON. + * @function toJSON + * @memberof google.container.v1.DefaultSnatStatus + * @instance + * @returns {Object.} JSON object + */ + DefaultSnatStatus.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ResourceUsageExportConfig; + return DefaultSnatStatus; })(); - v1.VerticalPodAutoscaling = (function() { + v1.ShieldedNodes = (function() { /** - * Properties of a VerticalPodAutoscaling. + * Properties of a ShieldedNodes. * @memberof google.container.v1 - * @interface IVerticalPodAutoscaling - * @property {boolean|null} [enabled] VerticalPodAutoscaling enabled + * @interface IShieldedNodes + * @property {boolean|null} [enabled] ShieldedNodes enabled */ /** - * Constructs a new VerticalPodAutoscaling. + * Constructs a new ShieldedNodes. * @memberof google.container.v1 - * @classdesc Represents a VerticalPodAutoscaling. - * @implements IVerticalPodAutoscaling + * @classdesc Represents a ShieldedNodes. + * @implements IShieldedNodes * @constructor - * @param {google.container.v1.IVerticalPodAutoscaling=} [properties] Properties to set + * @param {google.container.v1.IShieldedNodes=} [properties] Properties to set */ - function VerticalPodAutoscaling(properties) { + function ShieldedNodes(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24277,35 +29783,35 @@ } /** - * VerticalPodAutoscaling enabled. + * ShieldedNodes enabled. * @member {boolean} enabled - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @instance */ - VerticalPodAutoscaling.prototype.enabled = false; + ShieldedNodes.prototype.enabled = false; /** - * Creates a new VerticalPodAutoscaling instance using the specified properties. + * Creates a new ShieldedNodes instance using the specified properties. * @function create - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static - * @param {google.container.v1.IVerticalPodAutoscaling=} [properties] Properties to set - * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling instance + * @param {google.container.v1.IShieldedNodes=} [properties] Properties to set + * @returns {google.container.v1.ShieldedNodes} ShieldedNodes instance */ - VerticalPodAutoscaling.create = function create(properties) { - return new VerticalPodAutoscaling(properties); + ShieldedNodes.create = function create(properties) { + return new ShieldedNodes(properties); }; /** - * Encodes the specified VerticalPodAutoscaling message. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. + * Encodes the specified ShieldedNodes message. Does not implicitly {@link google.container.v1.ShieldedNodes.verify|verify} messages. * @function encode - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static - * @param {google.container.v1.IVerticalPodAutoscaling} message VerticalPodAutoscaling message or plain object to encode + * @param {google.container.v1.IShieldedNodes} message ShieldedNodes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VerticalPodAutoscaling.encode = function encode(message, writer) { + ShieldedNodes.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) @@ -24314,33 +29820,33 @@ }; /** - * Encodes the specified VerticalPodAutoscaling message, length delimited. Does not implicitly {@link google.container.v1.VerticalPodAutoscaling.verify|verify} messages. + * Encodes the specified ShieldedNodes message, length delimited. Does not implicitly {@link google.container.v1.ShieldedNodes.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static - * @param {google.container.v1.IVerticalPodAutoscaling} message VerticalPodAutoscaling message or plain object to encode + * @param {google.container.v1.IShieldedNodes} message ShieldedNodes message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - VerticalPodAutoscaling.encodeDelimited = function encodeDelimited(message, writer) { + ShieldedNodes.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a VerticalPodAutoscaling message from the specified reader or buffer. + * Decodes a ShieldedNodes message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + * @returns {google.container.v1.ShieldedNodes} ShieldedNodes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VerticalPodAutoscaling.decode = function decode(reader, length) { + ShieldedNodes.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.VerticalPodAutoscaling(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ShieldedNodes(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -24356,30 +29862,30 @@ }; /** - * Decodes a VerticalPodAutoscaling message from the specified reader or buffer, length delimited. + * Decodes a ShieldedNodes message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + * @returns {google.container.v1.ShieldedNodes} ShieldedNodes * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - VerticalPodAutoscaling.decodeDelimited = function decodeDelimited(reader) { + ShieldedNodes.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a VerticalPodAutoscaling message. + * Verifies a ShieldedNodes message. * @function verify - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - VerticalPodAutoscaling.verify = function verify(message) { + ShieldedNodes.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.enabled != null && message.hasOwnProperty("enabled")) @@ -24389,32 +29895,32 @@ }; /** - * Creates a VerticalPodAutoscaling message from a plain object. Also converts values to their respective internal types. + * Creates a ShieldedNodes message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static * @param {Object.} object Plain object - * @returns {google.container.v1.VerticalPodAutoscaling} VerticalPodAutoscaling + * @returns {google.container.v1.ShieldedNodes} ShieldedNodes */ - VerticalPodAutoscaling.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.VerticalPodAutoscaling) + ShieldedNodes.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ShieldedNodes) return object; - var message = new $root.google.container.v1.VerticalPodAutoscaling(); + var message = new $root.google.container.v1.ShieldedNodes(); if (object.enabled != null) message.enabled = Boolean(object.enabled); return message; }; /** - * Creates a plain object from a VerticalPodAutoscaling message. Also converts values to other types if specified. + * Creates a plain object from a ShieldedNodes message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @static - * @param {google.container.v1.VerticalPodAutoscaling} message VerticalPodAutoscaling + * @param {google.container.v1.ShieldedNodes} message ShieldedNodes * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - VerticalPodAutoscaling.toObject = function toObject(message, options) { + ShieldedNodes.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -24426,17 +29932,17 @@ }; /** - * Converts this VerticalPodAutoscaling to JSON. + * Converts this ShieldedNodes to JSON. * @function toJSON - * @memberof google.container.v1.VerticalPodAutoscaling + * @memberof google.container.v1.ShieldedNodes * @instance * @returns {Object.} JSON object */ - VerticalPodAutoscaling.prototype.toJSON = function toJSON() { + ShieldedNodes.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return VerticalPodAutoscaling; + return ShieldedNodes; })(); return v1; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index b57e61dd439..3a45bc4c9eb 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -28,7 +28,23 @@ "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/clusters", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/clusters", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/clusters" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone" + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "GetCluster": { "requestType": "GetClusterRequest", @@ -37,7 +53,23 @@ "(google.api.http).get": "/v1/{name=projects/*/locations/*/clusters/*}", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/clusters/*}", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CreateCluster": { "requestType": "CreateClusterRequest", @@ -48,7 +80,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "parent,cluster" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*}/clusters", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster" + }, + { + "(google.api.method_signature)": "parent,cluster" + } + ] }, "UpdateCluster": { "requestType": "UpdateClusterRequest", @@ -59,7 +109,25 @@ "(google.api.http).additional_bindings.put": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,update" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v1/{name=projects/*/locations/*/clusters/*}", + "body": "*", + "additional_bindings": { + "put": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,update" + }, + { + "(google.api.method_signature)": "name,update" + } + ] }, "UpdateNodePool": { "requestType": "UpdateNodePoolRequest", @@ -69,7 +137,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "put": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update", + "body": "*" + } + } + } + ] }, "SetNodePoolAutoscaling": { "requestType": "SetNodePoolAutoscalingRequest", @@ -79,7 +159,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling", + "body": "*" + } + } + } + ] }, "SetLoggingService": { "requestType": "SetLoggingServiceRequest", @@ -90,7 +182,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,logging_service" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setLogging", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,logging_service" + }, + { + "(google.api.method_signature)": "name,logging_service" + } + ] }, "SetMonitoringService": { "requestType": "SetMonitoringServiceRequest", @@ -101,7 +211,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,monitoring_service" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,monitoring_service" + }, + { + "(google.api.method_signature)": "name,monitoring_service" + } + ] }, "SetAddonsConfig": { "requestType": "SetAddonsConfigRequest", @@ -112,18 +240,58 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,addons_config" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setAddons", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,addons_config" + }, + { + "(google.api.method_signature)": "name,addons_config" + } + ] }, "SetLocations": { "requestType": "SetLocationsRequest", "responseType": "Operation", "options": { + "deprecated": true, "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*}:setLocations", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,locations" - } + }, + "parsedOptions": [ + { + "deprecated": true + }, + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setLocations", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,locations" + }, + { + "(google.api.method_signature)": "name,locations" + } + ] }, "UpdateMaster": { "requestType": "UpdateMasterRequest", @@ -134,7 +302,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,master_version" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:updateMaster", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,master_version" + }, + { + "(google.api.method_signature)": "name,master_version" + } + ] }, "SetMasterAuth": { "requestType": "SetMasterAuthRequest", @@ -144,7 +330,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth", + "body": "*" + } + } + } + ] }, "DeleteCluster": { "requestType": "DeleteClusterRequest", @@ -153,7 +351,23 @@ "(google.api.http).delete": "/v1/{name=projects/*/locations/*/clusters/*}", "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/clusters/*}", + "additional_bindings": { + "delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "ListOperations": { "requestType": "ListOperationsRequest", @@ -162,7 +376,20 @@ "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/operations", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/operations", "(google.api.method_signature)": "project_id,zone" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*}/operations", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/operations" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone" + } + ] }, "GetOperation": { "requestType": "GetOperationRequest", @@ -170,8 +397,24 @@ "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/operations/*}", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}", - "(google.api.method_signature)": "project_id,zone,operation_id" - } + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/operations/*}", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,operation_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CancelOperation": { "requestType": "CancelOperationRequest", @@ -182,7 +425,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/operations/*}:cancel", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,operation_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "GetServerConfig": { "requestType": "GetServerConfigRequest", @@ -191,7 +452,37 @@ "(google.api.http).get": "/v1/{name=projects/*/locations/*}/serverConfig", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/serverconfig", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*}/serverConfig", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/serverconfig" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone" + }, + { + "(google.api.method_signature)": "name" + } + ] + }, + "GetJSONWebKeys": { + "requestType": "GetJSONWebKeysRequest", + "responseType": "GetJSONWebKeysResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/clusters/*}/jwks" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/clusters/*}/jwks" + } + } + ] }, "ListNodePools": { "requestType": "ListNodePoolsRequest", @@ -200,7 +491,23 @@ "(google.api.http).get": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", "(google.api.method_signature)": "parent" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id" + }, + { + "(google.api.method_signature)": "parent" + } + ] }, "GetNodePool": { "requestType": "GetNodePoolRequest", @@ -209,7 +516,23 @@ "(google.api.http).get": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", "(google.api.http).additional_bindings.get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + "additional_bindings": { + "get": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CreateNodePool": { "requestType": "CreateNodePoolRequest", @@ -220,7 +543,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "parent,node_pool" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/clusters/*}/nodePools", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool" + }, + { + "(google.api.method_signature)": "parent,node_pool" + } + ] }, "DeleteNodePool": { "requestType": "DeleteNodePoolRequest", @@ -229,7 +570,23 @@ "(google.api.http).delete": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", "(google.api.http).additional_bindings.delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}", + "additional_bindings": { + "delete": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "RollbackNodePoolUpgrade": { "requestType": "RollbackNodePoolUpgradeRequest", @@ -240,7 +597,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,node_pool_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "SetNodePoolManagement": { "requestType": "SetNodePoolManagementRequest", @@ -250,7 +625,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement", + "body": "*" + } + } + } + ] }, "SetLabels": { "requestType": "SetLabelsRequest", @@ -260,7 +647,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels", + "body": "*" + } + } + } + ] }, "SetLegacyAbac": { "requestType": "SetLegacyAbacRequest", @@ -271,7 +670,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,enabled" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,enabled" + }, + { + "(google.api.method_signature)": "name,enabled" + } + ] }, "StartIPRotation": { "requestType": "StartIPRotationRequest", @@ -282,7 +699,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "CompleteIPRotation": { "requestType": "CompleteIPRotationRequest", @@ -293,7 +728,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id" + }, + { + "(google.api.method_signature)": "name" + } + ] }, "SetNodePoolSize": { "requestType": "SetNodePoolSizeRequest", @@ -303,7 +756,19 @@ "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize", "(google.api.http).additional_bindings.body": "*" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize", + "body": "*" + } + } + } + ] }, "SetNetworkPolicy": { "requestType": "SetNetworkPolicyRequest", @@ -314,7 +779,25 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,network_policy" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,network_policy" + }, + { + "(google.api.method_signature)": "name,network_policy" + } + ] }, "SetMaintenancePolicy": { "requestType": "SetMaintenancePolicyRequest", @@ -325,14 +808,39 @@ "(google.api.http).additional_bindings.post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "name,maintenance_policy" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy", + "body": "*", + "additional_bindings": { + "post": "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy", + "body": "*" + } + } + }, + { + "(google.api.method_signature)": "project_id,zone,cluster_id,maintenance_policy" + }, + { + "(google.api.method_signature)": "name,maintenance_policy" + } + ] }, "ListUsableSubnetworks": { "requestType": "ListUsableSubnetworksRequest", "responseType": "ListUsableSubnetworksResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*}/aggregated/usableSubnetworks" - } + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*}/aggregated/usableSubnetworks" + } + } + ] } } }, @@ -395,14 +903,34 @@ "type": "string", "id": 13 }, + "workloadMetadataConfig": { + "type": "WorkloadMetadataConfig", + "id": 14 + }, "taints": { "rule": "repeated", "type": "NodeTaint", "id": 15 }, + "sandboxConfig": { + "type": "SandboxConfig", + "id": 17 + }, + "nodeGroup": { + "type": "string", + "id": 18 + }, + "reservationAffinity": { + "type": "ReservationAffinity", + "id": 19 + }, "shieldedInstanceConfig": { "type": "ShieldedInstanceConfig", "id": 20 + }, + "bootDiskKmsKey": { + "type": "string", + "id": 23 } } }, @@ -418,6 +946,49 @@ } } }, + "SandboxConfig": { + "fields": { + "type": { + "type": "Type", + "id": 2 + } + }, + "nested": { + "Type": { + "values": { + "UNSPECIFIED": 0, + "GVISOR": 1 + } + } + } + }, + "ReservationAffinity": { + "fields": { + "consumeReservationType": { + "type": "Type", + "id": 1 + }, + "key": { + "type": "string", + "id": 2 + }, + "values": { + "rule": "repeated", + "type": "string", + "id": 3 + } + }, + "nested": { + "Type": { + "values": { + "UNSPECIFIED": 0, + "NO_RESERVATION": 1, + "ANY_RESERVATION": 2, + "SPECIFIC_RESERVATION": 3 + } + } + } + }, "NodeTaint": { "fields": { "key": { @@ -448,11 +1019,17 @@ "fields": { "username": { "type": "string", - "id": 1 + "id": 1, + "options": { + "deprecated": true + } }, "password": { "type": "string", - "id": 2 + "id": 2, + "options": { + "deprecated": true + } }, "clientCertificateConfig": { "type": "ClientCertificateConfig", @@ -504,6 +1081,14 @@ "cloudRunConfig": { "type": "CloudRunConfig", "id": 7 + }, + "dnsCacheConfig": { + "type": "DnsCacheConfig", + "id": 8 + }, + "configConnectorConfig": { + "type": "ConfigConnectorConfig", + "id": 10 } } }, @@ -539,6 +1124,22 @@ } } }, + "DnsCacheConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, + "PrivateClusterMasterGlobalAccessConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "PrivateClusterConfig": { "fields": { "enablePrivateNodes": { @@ -560,6 +1161,14 @@ "publicEndpoint": { "type": "string", "id": 5 + }, + "peeringName": { + "type": "string", + "id": 7 + }, + "masterGlobalAccessConfig": { + "type": "PrivateClusterMasterGlobalAccessConfig", + "id": 8 } } }, @@ -580,6 +1189,27 @@ "disabled": { "type": "bool", "id": 1 + }, + "loadBalancerType": { + "type": "LoadBalancerType", + "id": 3 + } + }, + "nested": { + "LoadBalancerType": { + "values": { + "LOAD_BALANCER_TYPE_UNSPECIFIED": 0, + "LOAD_BALANCER_TYPE_EXTERNAL": 1, + "LOAD_BALANCER_TYPE_INTERNAL": 2 + } + } + } + }, + "ConfigConnectorConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 } } }, @@ -704,6 +1334,10 @@ "tpuIpv4CidrBlock": { "type": "string", "id": 13 + }, + "useRoutes": { + "type": "bool", + "id": 15 } } }, @@ -838,6 +1472,18 @@ "type": "VerticalPodAutoscaling", "id": 39 }, + "shieldedNodes": { + "type": "ShieldedNodes", + "id": 40 + }, + "releaseChannel": { + "type": "ReleaseChannel", + "id": 41 + }, + "workloadIdentityConfig": { + "type": "WorkloadIdentityConfig", + "id": 43 + }, "selfLink": { "type": "string", "id": 100 @@ -878,7 +1524,10 @@ }, "statusMessage": { "type": "string", - "id": 108 + "id": 108, + "options": { + "deprecated": true + } }, "nodeIpv4CidrSize": { "type": "int32", @@ -965,6 +1614,14 @@ "type": "DatabaseEncryption", "id": 46 }, + "desiredWorkloadIdentityConfig": { + "type": "WorkloadIdentityConfig", + "id": 47 + }, + "desiredShieldedNodes": { + "type": "ShieldedNodes", + "id": 48 + }, "desiredNodePoolAutoscaling": { "type": "NodePoolAutoscaling", "id": 9 @@ -998,10 +1655,22 @@ "type": "VerticalPodAutoscaling", "id": 22 }, + "desiredPrivateClusterConfig": { + "type": "PrivateClusterConfig", + "id": 25 + }, "desiredIntraNodeVisibilityConfig": { "type": "IntraNodeVisibilityConfig", "id": 26 }, + "desiredDefaultSnatStatus": { + "type": "DefaultSnatStatus", + "id": 28 + }, + "desiredReleaseChannel": { + "type": "ReleaseChannel", + "id": 31 + }, "desiredMasterVersion": { "type": "string", "id": 100 @@ -1035,7 +1704,10 @@ }, "statusMessage": { "type": "string", - "id": 5 + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } }, "selfLink": { "type": "string", @@ -1057,6 +1729,13 @@ "type": "string", "id": 11 }, + "progress": { + "type": "OperationProgress", + "id": 12, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "clusterConditions": { "rule": "repeated", "type": "StatusCondition", @@ -1101,6 +1780,62 @@ } } }, + "OperationProgress": { + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "status": { + "type": "Operation.Status", + "id": 2 + }, + "metrics": { + "rule": "repeated", + "type": "Metric", + "id": 3 + }, + "stages": { + "rule": "repeated", + "type": "OperationProgress", + "id": 4 + } + }, + "nested": { + "Metric": { + "oneofs": { + "value": { + "oneof": [ + "intValue", + "doubleValue", + "stringValue" + ] + } + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "intValue": { + "type": "int64", + "id": 2 + }, + "doubleValue": { + "type": "double", + "id": 3 + }, + "stringValue": { + "type": "string", + "id": 4 + } + } + } + } + }, "CreateClusterRequest": { "fields": { "projectId": { @@ -1242,6 +1977,19 @@ "name": { "type": "string", "id": 8 + }, + "locations": { + "rule": "repeated", + "type": "string", + "id": 13 + }, + "workloadMetadataConfig": { + "type": "WorkloadMetadataConfig", + "id": 14 + }, + "upgradeSettings": { + "type": "NodePool.UpgradeSettings", + "id": 15 } } }, @@ -1727,6 +2475,30 @@ "rule": "repeated", "type": "string", "id": 6 + }, + "channels": { + "rule": "repeated", + "type": "ReleaseChannelConfig", + "id": 9 + } + }, + "nested": { + "ReleaseChannelConfig": { + "fields": { + "channel": { + "type": "ReleaseChannel.Channel", + "id": 1 + }, + "defaultVersion": { + "type": "string", + "id": 2 + }, + "validVersions": { + "rule": "repeated", + "type": "string", + "id": 4 + } + } } } }, @@ -1881,6 +2653,11 @@ "type": "int32", "id": 3 }, + "locations": { + "rule": "repeated", + "type": "string", + "id": 13 + }, "selfLink": { "type": "string", "id": 100 @@ -1900,7 +2677,10 @@ }, "statusMessage": { "type": "string", - "id": 104 + "id": 104, + "options": { + "deprecated": true + } }, "autoscaling": { "type": "NodePoolAutoscaling", @@ -1922,9 +2702,25 @@ "podIpv4CidrSize": { "type": "int32", "id": 7 + }, + "upgradeSettings": { + "type": "UpgradeSettings", + "id": 107 } }, "nested": { + "UpgradeSettings": { + "fields": { + "maxSurge": { + "type": "int32", + "id": 1 + }, + "maxUnavailable": { + "type": "int32", + "id": 2 + } + } + }, "Status": { "values": { "STATUS_UNSPECIFIED": 0, @@ -2202,6 +2998,34 @@ "serviceAccount": { "type": "string", "id": 2 + }, + "upgradeSettings": { + "type": "NodePool.UpgradeSettings", + "id": 3 + }, + "management": { + "type": "NodeManagement", + "id": 4 + }, + "minCpuPlatform": { + "type": "string", + "id": 5 + }, + "diskSizeGb": { + "type": "int32", + "id": 6 + }, + "diskType": { + "type": "string", + "id": 7 + }, + "shieldedInstanceConfig": { + "type": "ShieldedInstanceConfig", + "id": 8 + }, + "bootDiskKmsKey": { + "type": "string", + "id": 9 } } }, @@ -2395,6 +3219,23 @@ } } }, + "WorkloadMetadataConfig": { + "fields": { + "mode": { + "type": "Mode", + "id": 2 + } + }, + "nested": { + "Mode": { + "values": { + "MODE_UNSPECIFIED": 0, + "GCE_METADATA": 1, + "GKE_METADATA": 2 + } + } + } + }, "SetNetworkPolicyRequest": { "fields": { "projectId": { @@ -2504,6 +3345,130 @@ "enableIntraNodeVisibility": { "type": "bool", "id": 5 + }, + "defaultSnatStatus": { + "type": "DefaultSnatStatus", + "id": 7 + } + } + }, + "GetOpenIDConfigRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1 + } + } + }, + "GetOpenIDConfigResponse": { + "fields": { + "issuer": { + "type": "string", + "id": 1 + }, + "jwksUri": { + "type": "string", + "id": 2 + }, + "responseTypesSupported": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "subjectTypesSupported": { + "rule": "repeated", + "type": "string", + "id": 4 + }, + "idTokenSigningAlgValuesSupported": { + "rule": "repeated", + "type": "string", + "id": 5 + }, + "claimsSupported": { + "rule": "repeated", + "type": "string", + "id": 6 + }, + "grantTypes": { + "rule": "repeated", + "type": "string", + "id": 7 + } + } + }, + "GetJSONWebKeysRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1 + } + } + }, + "Jwk": { + "fields": { + "kty": { + "type": "string", + "id": 1 + }, + "alg": { + "type": "string", + "id": 2 + }, + "use": { + "type": "string", + "id": 3 + }, + "kid": { + "type": "string", + "id": 4 + }, + "n": { + "type": "string", + "id": 5 + }, + "e": { + "type": "string", + "id": 6 + }, + "x": { + "type": "string", + "id": 7 + }, + "y": { + "type": "string", + "id": 8 + }, + "crv": { + "type": "string", + "id": 9 + } + } + }, + "GetJSONWebKeysResponse": { + "fields": { + "keys": { + "rule": "repeated", + "type": "Jwk", + "id": 1 + } + } + }, + "ReleaseChannel": { + "fields": { + "channel": { + "type": "Channel", + "id": 1 + } + }, + "nested": { + "Channel": { + "values": { + "UNSPECIFIED": 0, + "RAPID": 1, + "REGULAR": 2, + "STABLE": 3 + } } } }, @@ -2523,6 +3488,14 @@ } } }, + "WorkloadIdentityConfig": { + "fields": { + "workloadPool": { + "type": "string", + "id": 2 + } + } + }, "DatabaseEncryption": { "fields": { "state": { @@ -2670,6 +3643,22 @@ "id": 1 } } + }, + "DefaultSnatStatus": { + "fields": { + "disabled": { + "type": "bool", + "id": 1 + } + } + }, + "ShieldedNodes": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } } } } diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 0d22fced5ce..cb64682596b 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -227,6 +227,7 @@ export class ClusterManagerClient { 'getOperation', 'cancelOperation', 'getServerConfig', + 'getJSONWebKeys', 'listNodePools', 'getNodePool', 'createNodePool', @@ -361,9 +362,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * 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. * @param {string} request.parent * The parent (project and location) where the clusters will be listed. * Specified in the format `projects/* /locations/*`. @@ -457,9 +458,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to retrieve. * This field has been deprecated and replaced by the name field. @@ -549,7 +550,8 @@ export class ClusterManagerClient { * 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 @@ -567,12 +569,12 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * 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. * @param {google.container.v1.Cluster} request.cluster * 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) * @param {string} request.parent * The parent (project and location) where the cluster will be created. * Specified in the format `projects/* /locations/*`. @@ -665,9 +667,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -765,9 +767,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -792,6 +794,16 @@ export class ClusterManagerClient { * The name (project, location, cluster, node pool) of the node pool to * update. Specified in the format * `projects/* /locations/* /clusters/* /nodePools/*`. + * @param {string[]} request.locations + * 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. + * @param {google.container.v1.WorkloadMetadataConfig} request.workloadMetadataConfig + * The desired workload metadata config for the node pool. + * @param {google.container.v1.NodePool.UpgradeSettings} request.upgradeSettings + * Upgrade settings control disruption and speed of the upgrade. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -885,9 +897,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -997,18 +1009,24 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string} request.loggingService - * 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. * @param {string} request.name * The name (project, location, cluster) of the cluster to set logging. * Specified in the format `projects/* /locations/* /clusters/*`. @@ -1107,9 +1125,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -1117,10 +1135,14 @@ export class ClusterManagerClient { * 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. * @param {string} request.name * The name (project, location, cluster) of the cluster to set monitoring. * Specified in the format `projects/* /locations/* /clusters/*`. @@ -1217,9 +1239,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -1309,6 +1331,9 @@ export class ClusterManagerClient { ): void; /** * 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. * * @param {Object} request * The request object that will be sent. @@ -1318,18 +1343,18 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. * @param {string[]} request.locations * 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. * @param {string} request.name @@ -1424,9 +1449,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -1535,9 +1560,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to upgrade. * This field has been deprecated and replaced by the name field. @@ -1645,9 +1670,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to delete. * This field has been deprecated and replaced by the name field. @@ -1743,8 +1768,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * 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. * @param {string} request.parent * The parent (project and location) where the operations will be listed. * Specified in the format `projects/* /locations/*`. @@ -1838,9 +1864,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.operationId * Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. @@ -1936,8 +1962,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.operationId * Deprecated. The server-assigned `name` of the operation. * This field has been deprecated and replaced by the name field. @@ -2033,8 +2060,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.name * The name (project and location) of the server config to get, * specified in the format `projects/* /locations/*`. @@ -2089,6 +2117,94 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.getServerConfig(request, options, callback); } + getJSONWebKeys( + request: protos.google.container.v1.IGetJSONWebKeysRequest, + options?: gax.CallOptions + ): Promise< + [ + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | undefined, + {} | undefined + ] + >; + getJSONWebKeys( + request: protos.google.container.v1.IGetJSONWebKeysRequest, + options: gax.CallOptions, + callback: Callback< + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, + {} | null | undefined + > + ): void; + getJSONWebKeys( + request: protos.google.container.v1.IGetJSONWebKeysRequest, + callback: Callback< + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, + {} | null | undefined + > + ): void; + /** + * 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. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * The cluster (project, location, cluster id) to get keys for. Specified in + * the format `projects/* /locations/* /clusters/*`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GetJSONWebKeysResponse]{@link google.container.v1.GetJSONWebKeysResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * const [response] = await client.getJSONWebKeys(request); + */ + getJSONWebKeys( + request: protos.google.container.v1.IGetJSONWebKeysRequest, + optionsOrCallback?: + | gax.CallOptions + | Callback< + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.container.v1.IGetJSONWebKeysResponse, + protos.google.container.v1.IGetJSONWebKeysRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: gax.CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as gax.CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers[ + 'x-goog-request-params' + ] = gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.getJSONWebKeys(request, options, callback); + } listNodePools( request: protos.google.container.v1.IListNodePoolsRequest, options?: gax.CallOptions @@ -2127,9 +2243,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. @@ -2225,9 +2341,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -2327,9 +2443,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. @@ -2428,9 +2544,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -2535,9 +2651,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to rollback. * This field has been deprecated and replaced by the name field. @@ -2649,9 +2765,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. @@ -2757,9 +2873,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -2770,7 +2886,7 @@ export class ClusterManagerClient { * 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. * @param {string} request.name * The name (project, location, cluster id) of the cluster to set labels. @@ -2864,9 +2980,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. @@ -2964,9 +3080,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -3064,9 +3180,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -3164,9 +3280,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster to update. * This field has been deprecated and replaced by the name field. @@ -3268,9 +3384,9 @@ export class ClusterManagerClient { * This field has been deprecated and replaced by the name field. * @param {string} request.zone * 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. * @param {string} request.clusterId * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. @@ -3373,8 +3489,8 @@ export class ClusterManagerClient { * number](https://support.google.com/cloud/answer/6158840). * @param {string} request.zone * 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. * @param {string} request.clusterId * Required. The name of the cluster to update. * @param {google.container.v1.MaintenancePolicy} request.maintenancePolicy diff --git a/packages/google-container/src/v1/cluster_manager_client_config.json b/packages/google-container/src/v1/cluster_manager_client_config.json index 369ce70d283..e21140e76f3 100644 --- a/packages/google-container/src/v1/cluster_manager_client_config.json +++ b/packages/google-container/src/v1/cluster_manager_client_config.json @@ -105,6 +105,10 @@ "retry_codes_name": "idempotent", "retry_params_name": "default" }, + "GetJSONWebKeys": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ListNodePools": { "timeout_millis": 20000, "retry_codes_name": "idempotent", diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index b5a544628a3..070d12b79fb 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,22 +4,22 @@ "git": { "name": ".", "remote": "git@github.com:googleapis/nodejs-cloud-container.git", - "sha": "8a18ada1eba87105614f495f005dca0d503e58a9" + "sha": "99ab34786dfd05c667f70f363c58cc7f46ae6be4" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "4c5071b615d96ef9dfd6a63d8429090f1f2872bb", - "internalRef": "327369997" + "sha": "1f8a5144b52f7677dc43c55b21ccaf9e1b425ceb", + "internalRef": "342689216" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "1f1148d3c7a7a52f0c98077f976bd9b3c948ee2b" + "sha": "d5fc0bcf9ea9789c5b0e3154a9e3b29e5cea6116" } } ], @@ -87,14 +87,12 @@ "README.md", "api-extractor.json", "linkinator.config.json", - "package-lock.json.908320379", "protos/google/container/v1/cluster_service.proto", "protos/protos.d.ts", "protos/protos.js", "protos/protos.json", "renovate.json", "samples/README.md", - "samples/package-lock.json.1331714418", "src/index.ts", "src/v1/cluster_manager_client.ts", "src/v1/cluster_manager_client_config.json", diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index e2c923ed86a..4138b023c61 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -2158,6 +2158,118 @@ describe('v1.ClusterManagerClient', () => { }); }); + describe('getJSONWebKeys', () => { + it('invokes getJSONWebKeys without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysResponse() + ); + client.innerApiCalls.getJSONWebKeys = stubSimpleCall(expectedResponse); + const [response] = await client.getJSONWebKeys(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getJSONWebKeys as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes getJSONWebKeys without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysResponse() + ); + client.innerApiCalls.getJSONWebKeys = stubSimpleCallWithCallback( + expectedResponse + ); + const promise = new Promise((resolve, reject) => { + client.getJSONWebKeys( + request, + ( + err?: Error | null, + result?: protos.google.container.v1.IGetJSONWebKeysResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.getJSONWebKeys as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes getJSONWebKeys with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.getJSONWebKeys = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.getJSONWebKeys(request), expectedError); + assert( + (client.innerApiCalls.getJSONWebKeys as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listNodePools', () => { it('invokes listNodePools without error', async () => { const client = new clustermanagerModule.v1.ClusterManagerClient({ From eb37849fec0333b848a4da7774fba13f40ffde39 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 23 Nov 2020 13:33:08 -0800 Subject: [PATCH 261/371] fix(browser): check for fetch on window (#403) --- .../src/v1/cluster_manager_client.ts | 340 +++++++++--------- packages/google-container/synth.metadata | 8 +- 2 files changed, 178 insertions(+), 170 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index cb64682596b..18a32d210b6 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -16,6 +16,7 @@ // ** https://github.com/googleapis/gapic-generator-typescript ** // ** All changes to this file may be overwritten. ** +/* global window */ import * as gax from 'google-gax'; import { Callback, @@ -30,6 +31,11 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +/** + * Client JSON configuration object, loaded from + * `src/v1/cluster_manager_client_config.json`. + * This file defines retry strategy and timeouts for all API methods in this library. + */ import * as gapicConfig from './cluster_manager_client_config.json'; const version = require('../../../package.json').version; @@ -82,9 +88,9 @@ export class ClusterManagerClient { * your project ID will be detected automatically. * @param {string} [options.apiEndpoint] - The domain name of the * API remote host. - * @param {gax.ClientConfig} [options.clientConfig] - client configuration override. - * TODO(@alexander-fenster): link to gax documentation. - * @param {boolean} fallback - Use HTTP fallback mode. + * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. + * Follows the structure of {@link gapicConfig}. + * @param {boolean} [options.fallback] - Use HTTP fallback mode. * In fallback mode, a special browser-compatible transport implementation is used * instead of gRPC transport. In browser context (if the `window` object is defined) * the fallback mode is enabled automatically; set `options.fallback` to `false` @@ -97,7 +103,9 @@ export class ClusterManagerClient { opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; - const fallback = opts?.fallback ?? typeof window !== 'undefined'; + const fallback = + opts?.fallback ?? + (typeof window !== 'undefined' && typeof window?.fetch === 'function'); opts = Object.assign({servicePath, port, clientConfig, fallback}, opts); // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case. @@ -325,7 +333,7 @@ export class ClusterManagerClient { // ------------------- listClusters( request: protos.google.container.v1.IListClustersRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IListClustersResponse, @@ -335,7 +343,7 @@ export class ClusterManagerClient { >; listClusters( request: protos.google.container.v1.IListClustersRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IListClustersResponse, protos.google.container.v1.IListClustersRequest | null | undefined, @@ -382,7 +390,7 @@ export class ClusterManagerClient { listClusters( request: protos.google.container.v1.IListClustersRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IListClustersResponse, protos.google.container.v1.IListClustersRequest | null | undefined, @@ -401,12 +409,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -422,7 +430,7 @@ export class ClusterManagerClient { } getCluster( request: protos.google.container.v1.IGetClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.ICluster, @@ -432,7 +440,7 @@ export class ClusterManagerClient { >; getCluster( request: protos.google.container.v1.IGetClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.ICluster, protos.google.container.v1.IGetClusterRequest | null | undefined, @@ -480,7 +488,7 @@ export class ClusterManagerClient { getCluster( request: protos.google.container.v1.IGetClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.ICluster, protos.google.container.v1.IGetClusterRequest | null | undefined, @@ -499,12 +507,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -520,7 +528,7 @@ export class ClusterManagerClient { } createCluster( request: protos.google.container.v1.ICreateClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -530,7 +538,7 @@ export class ClusterManagerClient { >; createCluster( request: protos.google.container.v1.ICreateClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ICreateClusterRequest | null | undefined, @@ -591,7 +599,7 @@ export class ClusterManagerClient { createCluster( request: protos.google.container.v1.ICreateClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ICreateClusterRequest | null | undefined, @@ -610,12 +618,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -631,7 +639,7 @@ export class ClusterManagerClient { } updateCluster( request: protos.google.container.v1.IUpdateClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -641,7 +649,7 @@ export class ClusterManagerClient { >; updateCluster( request: protos.google.container.v1.IUpdateClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateClusterRequest | null | undefined, @@ -691,7 +699,7 @@ export class ClusterManagerClient { updateCluster( request: protos.google.container.v1.IUpdateClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateClusterRequest | null | undefined, @@ -710,12 +718,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -731,7 +739,7 @@ export class ClusterManagerClient { } updateNodePool( request: protos.google.container.v1.IUpdateNodePoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -741,7 +749,7 @@ export class ClusterManagerClient { >; updateNodePool( request: protos.google.container.v1.IUpdateNodePoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, @@ -817,7 +825,7 @@ export class ClusterManagerClient { updateNodePool( request: protos.google.container.v1.IUpdateNodePoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, @@ -836,12 +844,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -857,7 +865,7 @@ export class ClusterManagerClient { } setNodePoolAutoscaling( request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -867,7 +875,7 @@ export class ClusterManagerClient { >; setNodePoolAutoscaling( request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetNodePoolAutoscalingRequest @@ -925,7 +933,7 @@ export class ClusterManagerClient { setNodePoolAutoscaling( request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetNodePoolAutoscalingRequest @@ -948,12 +956,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -973,7 +981,7 @@ export class ClusterManagerClient { } setLoggingService( request: protos.google.container.v1.ISetLoggingServiceRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -983,7 +991,7 @@ export class ClusterManagerClient { >; setLoggingService( request: protos.google.container.v1.ISetLoggingServiceRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLoggingServiceRequest | null | undefined, @@ -1043,7 +1051,7 @@ export class ClusterManagerClient { setLoggingService( request: protos.google.container.v1.ISetLoggingServiceRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetLoggingServiceRequest @@ -1064,12 +1072,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1085,7 +1093,7 @@ export class ClusterManagerClient { } setMonitoringService( request: protos.google.container.v1.ISetMonitoringServiceRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1095,7 +1103,7 @@ export class ClusterManagerClient { >; setMonitoringService( request: protos.google.container.v1.ISetMonitoringServiceRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetMonitoringServiceRequest @@ -1159,7 +1167,7 @@ export class ClusterManagerClient { setMonitoringService( request: protos.google.container.v1.ISetMonitoringServiceRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetMonitoringServiceRequest @@ -1182,12 +1190,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1203,7 +1211,7 @@ export class ClusterManagerClient { } setAddonsConfig( request: protos.google.container.v1.ISetAddonsConfigRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1213,7 +1221,7 @@ export class ClusterManagerClient { >; setAddonsConfig( request: protos.google.container.v1.ISetAddonsConfigRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, @@ -1264,7 +1272,7 @@ export class ClusterManagerClient { setAddonsConfig( request: protos.google.container.v1.ISetAddonsConfigRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, @@ -1283,12 +1291,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1304,7 +1312,7 @@ export class ClusterManagerClient { } setLocations( request: protos.google.container.v1.ISetLocationsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1314,7 +1322,7 @@ export class ClusterManagerClient { >; setLocations( request: protos.google.container.v1.ISetLocationsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLocationsRequest | null | undefined, @@ -1373,7 +1381,7 @@ export class ClusterManagerClient { setLocations( request: protos.google.container.v1.ISetLocationsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLocationsRequest | null | undefined, @@ -1392,12 +1400,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1413,7 +1421,7 @@ export class ClusterManagerClient { } updateMaster( request: protos.google.container.v1.IUpdateMasterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1423,7 +1431,7 @@ export class ClusterManagerClient { >; updateMaster( request: protos.google.container.v1.IUpdateMasterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateMasterRequest | null | undefined, @@ -1482,7 +1490,7 @@ export class ClusterManagerClient { updateMaster( request: protos.google.container.v1.IUpdateMasterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IUpdateMasterRequest | null | undefined, @@ -1501,12 +1509,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1522,7 +1530,7 @@ export class ClusterManagerClient { } setMasterAuth( request: protos.google.container.v1.ISetMasterAuthRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1532,7 +1540,7 @@ export class ClusterManagerClient { >; setMasterAuth( request: protos.google.container.v1.ISetMasterAuthRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetMasterAuthRequest | null | undefined, @@ -1586,7 +1594,7 @@ export class ClusterManagerClient { setMasterAuth( request: protos.google.container.v1.ISetMasterAuthRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetMasterAuthRequest | null | undefined, @@ -1605,12 +1613,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1626,7 +1634,7 @@ export class ClusterManagerClient { } deleteCluster( request: protos.google.container.v1.IDeleteClusterRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1636,7 +1644,7 @@ export class ClusterManagerClient { >; deleteCluster( request: protos.google.container.v1.IDeleteClusterRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IDeleteClusterRequest | null | undefined, @@ -1692,7 +1700,7 @@ export class ClusterManagerClient { deleteCluster( request: protos.google.container.v1.IDeleteClusterRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IDeleteClusterRequest | null | undefined, @@ -1711,12 +1719,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1732,7 +1740,7 @@ export class ClusterManagerClient { } listOperations( request: protos.google.container.v1.IListOperationsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IListOperationsResponse, @@ -1742,7 +1750,7 @@ export class ClusterManagerClient { >; listOperations( request: protos.google.container.v1.IListOperationsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IListOperationsResponse, protos.google.container.v1.IListOperationsRequest | null | undefined, @@ -1788,7 +1796,7 @@ export class ClusterManagerClient { listOperations( request: protos.google.container.v1.IListOperationsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IListOperationsResponse, protos.google.container.v1.IListOperationsRequest | null | undefined, @@ -1807,12 +1815,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1828,7 +1836,7 @@ export class ClusterManagerClient { } getOperation( request: protos.google.container.v1.IGetOperationRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -1838,7 +1846,7 @@ export class ClusterManagerClient { >; getOperation( request: protos.google.container.v1.IGetOperationRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IGetOperationRequest | null | undefined, @@ -1886,7 +1894,7 @@ export class ClusterManagerClient { getOperation( request: protos.google.container.v1.IGetOperationRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IGetOperationRequest | null | undefined, @@ -1905,12 +1913,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -1926,7 +1934,7 @@ export class ClusterManagerClient { } cancelOperation( request: protos.google.container.v1.ICancelOperationRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.protobuf.IEmpty, @@ -1936,7 +1944,7 @@ export class ClusterManagerClient { >; cancelOperation( request: protos.google.container.v1.ICancelOperationRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.protobuf.IEmpty, protos.google.container.v1.ICancelOperationRequest | null | undefined, @@ -1984,7 +1992,7 @@ export class ClusterManagerClient { cancelOperation( request: protos.google.container.v1.ICancelOperationRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.protobuf.IEmpty, protos.google.container.v1.ICancelOperationRequest | null | undefined, @@ -2003,12 +2011,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2024,7 +2032,7 @@ export class ClusterManagerClient { } getServerConfig( request: protos.google.container.v1.IGetServerConfigRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IServerConfig, @@ -2034,7 +2042,7 @@ export class ClusterManagerClient { >; getServerConfig( request: protos.google.container.v1.IGetServerConfigRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IServerConfig, protos.google.container.v1.IGetServerConfigRequest | null | undefined, @@ -2079,7 +2087,7 @@ export class ClusterManagerClient { getServerConfig( request: protos.google.container.v1.IGetServerConfigRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IServerConfig, protos.google.container.v1.IGetServerConfigRequest | null | undefined, @@ -2098,12 +2106,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2119,7 +2127,7 @@ export class ClusterManagerClient { } getJSONWebKeys( request: protos.google.container.v1.IGetJSONWebKeysRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IGetJSONWebKeysResponse, @@ -2129,7 +2137,7 @@ export class ClusterManagerClient { >; getJSONWebKeys( request: protos.google.container.v1.IGetJSONWebKeysRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IGetJSONWebKeysResponse, protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, @@ -2168,7 +2176,7 @@ export class ClusterManagerClient { getJSONWebKeys( request: protos.google.container.v1.IGetJSONWebKeysRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IGetJSONWebKeysResponse, protos.google.container.v1.IGetJSONWebKeysRequest | null | undefined, @@ -2187,12 +2195,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2207,7 +2215,7 @@ export class ClusterManagerClient { } listNodePools( request: protos.google.container.v1.IListNodePoolsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IListNodePoolsResponse, @@ -2217,7 +2225,7 @@ export class ClusterManagerClient { >; listNodePools( request: protos.google.container.v1.IListNodePoolsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IListNodePoolsResponse, protos.google.container.v1.IListNodePoolsRequest | null | undefined, @@ -2265,7 +2273,7 @@ export class ClusterManagerClient { listNodePools( request: protos.google.container.v1.IListNodePoolsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IListNodePoolsResponse, protos.google.container.v1.IListNodePoolsRequest | null | undefined, @@ -2284,12 +2292,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2305,7 +2313,7 @@ export class ClusterManagerClient { } getNodePool( request: protos.google.container.v1.IGetNodePoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.INodePool, @@ -2315,7 +2323,7 @@ export class ClusterManagerClient { >; getNodePool( request: protos.google.container.v1.IGetNodePoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.INodePool, protos.google.container.v1.IGetNodePoolRequest | null | undefined, @@ -2367,7 +2375,7 @@ export class ClusterManagerClient { getNodePool( request: protos.google.container.v1.IGetNodePoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.INodePool, protos.google.container.v1.IGetNodePoolRequest | null | undefined, @@ -2386,12 +2394,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2407,7 +2415,7 @@ export class ClusterManagerClient { } createNodePool( request: protos.google.container.v1.ICreateNodePoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2417,7 +2425,7 @@ export class ClusterManagerClient { >; createNodePool( request: protos.google.container.v1.ICreateNodePoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ICreateNodePoolRequest | null | undefined, @@ -2468,7 +2476,7 @@ export class ClusterManagerClient { createNodePool( request: protos.google.container.v1.ICreateNodePoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ICreateNodePoolRequest | null | undefined, @@ -2487,12 +2495,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2508,7 +2516,7 @@ export class ClusterManagerClient { } deleteNodePool( request: protos.google.container.v1.IDeleteNodePoolRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2518,7 +2526,7 @@ export class ClusterManagerClient { >; deleteNodePool( request: protos.google.container.v1.IDeleteNodePoolRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, @@ -2570,7 +2578,7 @@ export class ClusterManagerClient { deleteNodePool( request: protos.google.container.v1.IDeleteNodePoolRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, @@ -2589,12 +2597,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2610,7 +2618,7 @@ export class ClusterManagerClient { } rollbackNodePoolUpgrade( request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2620,7 +2628,7 @@ export class ClusterManagerClient { >; rollbackNodePoolUpgrade( request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.IRollbackNodePoolUpgradeRequest @@ -2677,7 +2685,7 @@ export class ClusterManagerClient { rollbackNodePoolUpgrade( request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.IRollbackNodePoolUpgradeRequest @@ -2700,12 +2708,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2725,7 +2733,7 @@ export class ClusterManagerClient { } setNodePoolManagement( request: protos.google.container.v1.ISetNodePoolManagementRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2735,7 +2743,7 @@ export class ClusterManagerClient { >; setNodePoolManagement( request: protos.google.container.v1.ISetNodePoolManagementRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetNodePoolManagementRequest @@ -2793,7 +2801,7 @@ export class ClusterManagerClient { setNodePoolManagement( request: protos.google.container.v1.ISetNodePoolManagementRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetNodePoolManagementRequest @@ -2816,12 +2824,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2837,7 +2845,7 @@ export class ClusterManagerClient { } setLabels( request: protos.google.container.v1.ISetLabelsRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2847,7 +2855,7 @@ export class ClusterManagerClient { >; setLabels( request: protos.google.container.v1.ISetLabelsRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLabelsRequest | null | undefined, @@ -2904,7 +2912,7 @@ export class ClusterManagerClient { setLabels( request: protos.google.container.v1.ISetLabelsRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLabelsRequest | null | undefined, @@ -2923,12 +2931,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -2944,7 +2952,7 @@ export class ClusterManagerClient { } setLegacyAbac( request: protos.google.container.v1.ISetLegacyAbacRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -2954,7 +2962,7 @@ export class ClusterManagerClient { >; setLegacyAbac( request: protos.google.container.v1.ISetLegacyAbacRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, @@ -3004,7 +3012,7 @@ export class ClusterManagerClient { setLegacyAbac( request: protos.google.container.v1.ISetLegacyAbacRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, @@ -3023,12 +3031,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3044,7 +3052,7 @@ export class ClusterManagerClient { } startIPRotation( request: protos.google.container.v1.IStartIPRotationRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -3054,7 +3062,7 @@ export class ClusterManagerClient { >; startIPRotation( request: protos.google.container.v1.IStartIPRotationRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IStartIPRotationRequest | null | undefined, @@ -3104,7 +3112,7 @@ export class ClusterManagerClient { startIPRotation( request: protos.google.container.v1.IStartIPRotationRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.IStartIPRotationRequest | null | undefined, @@ -3123,12 +3131,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3144,7 +3152,7 @@ export class ClusterManagerClient { } completeIPRotation( request: protos.google.container.v1.ICompleteIPRotationRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -3154,7 +3162,7 @@ export class ClusterManagerClient { >; completeIPRotation( request: protos.google.container.v1.ICompleteIPRotationRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ICompleteIPRotationRequest | null | undefined, @@ -3202,7 +3210,7 @@ export class ClusterManagerClient { completeIPRotation( request: protos.google.container.v1.ICompleteIPRotationRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ICompleteIPRotationRequest @@ -3223,12 +3231,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3244,7 +3252,7 @@ export class ClusterManagerClient { } setNodePoolSize( request: protos.google.container.v1.ISetNodePoolSizeRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -3254,7 +3262,7 @@ export class ClusterManagerClient { >; setNodePoolSize( request: protos.google.container.v1.ISetNodePoolSizeRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, @@ -3308,7 +3316,7 @@ export class ClusterManagerClient { setNodePoolSize( request: protos.google.container.v1.ISetNodePoolSizeRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, @@ -3327,12 +3335,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3348,7 +3356,7 @@ export class ClusterManagerClient { } setNetworkPolicy( request: protos.google.container.v1.ISetNetworkPolicyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -3358,7 +3366,7 @@ export class ClusterManagerClient { >; setNetworkPolicy( request: protos.google.container.v1.ISetNetworkPolicyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, protos.google.container.v1.ISetNetworkPolicyRequest | null | undefined, @@ -3408,7 +3416,7 @@ export class ClusterManagerClient { setNetworkPolicy( request: protos.google.container.v1.ISetNetworkPolicyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetNetworkPolicyRequest @@ -3429,12 +3437,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3450,7 +3458,7 @@ export class ClusterManagerClient { } setMaintenancePolicy( request: protos.google.container.v1.ISetMaintenancePolicyRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IOperation, @@ -3460,7 +3468,7 @@ export class ClusterManagerClient { >; setMaintenancePolicy( request: protos.google.container.v1.ISetMaintenancePolicyRequest, - options: gax.CallOptions, + options: CallOptions, callback: Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetMaintenancePolicyRequest @@ -3513,7 +3521,7 @@ export class ClusterManagerClient { setMaintenancePolicy( request: protos.google.container.v1.ISetMaintenancePolicyRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | Callback< protos.google.container.v1.IOperation, | protos.google.container.v1.ISetMaintenancePolicyRequest @@ -3536,12 +3544,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3558,7 +3566,7 @@ export class ClusterManagerClient { listUsableSubnetworks( request: protos.google.container.v1.IListUsableSubnetworksRequest, - options?: gax.CallOptions + options?: CallOptions ): Promise< [ protos.google.container.v1.IUsableSubnetwork[], @@ -3568,7 +3576,7 @@ export class ClusterManagerClient { >; listUsableSubnetworks( request: protos.google.container.v1.IListUsableSubnetworksRequest, - options: gax.CallOptions, + options: CallOptions, callback: PaginationCallback< protos.google.container.v1.IListUsableSubnetworksRequest, | protos.google.container.v1.IListUsableSubnetworksResponse @@ -3624,7 +3632,7 @@ export class ClusterManagerClient { listUsableSubnetworks( request: protos.google.container.v1.IListUsableSubnetworksRequest, optionsOrCallback?: - | gax.CallOptions + | CallOptions | PaginationCallback< protos.google.container.v1.IListUsableSubnetworksRequest, | protos.google.container.v1.IListUsableSubnetworksResponse @@ -3647,12 +3655,12 @@ export class ClusterManagerClient { ] > | void { request = request || {}; - let options: gax.CallOptions; + let options: CallOptions; if (typeof optionsOrCallback === 'function' && callback === undefined) { callback = optionsOrCallback; options = {}; } else { - options = optionsOrCallback as gax.CallOptions; + options = optionsOrCallback as CallOptions; } options = options || {}; options.otherArgs = options.otherArgs || {}; @@ -3700,7 +3708,7 @@ export class ClusterManagerClient { */ listUsableSubnetworksStream( request?: protos.google.container.v1.IListUsableSubnetworksRequest, - options?: gax.CallOptions + options?: CallOptions ): Transform { request = request || {}; options = options || {}; @@ -3760,7 +3768,7 @@ export class ClusterManagerClient { */ listUsableSubnetworksAsync( request?: protos.google.container.v1.IListUsableSubnetworksRequest, - options?: gax.CallOptions + options?: CallOptions ): AsyncIterable { request = request || {}; options = options || {}; diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 070d12b79fb..b864940d189 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -3,16 +3,16 @@ { "git": { "name": ".", - "remote": "git@github.com:googleapis/nodejs-cloud-container.git", - "sha": "99ab34786dfd05c667f70f363c58cc7f46ae6be4" + "remote": "https://github.com/googleapis/nodejs-cloud-container.git", + "sha": "f72f1210f63e1fd9b3dd02e0791b1d024d1cbe07" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1f8a5144b52f7677dc43c55b21ccaf9e1b425ceb", - "internalRef": "342689216" + "sha": "5587028631d4d743fd906c4eb4e4e4649a7ee5ce", + "internalRef": "343187793" } }, { From 0455216e1282180c015b52e26280699993fe5f26 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 25 Nov 2020 08:34:44 -0800 Subject: [PATCH 262/371] docs: spelling correction for "targetting" (#404) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/4c7dd1d3-21d2-4d5c-80cf-c7fc00653dca/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/15013eff642a7e7e855aed5a29e6e83c39beba2a --- packages/google-container/README.md | 2 +- packages/google-container/synth.metadata | 75 +----------------------- 2 files changed, 3 insertions(+), 74 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index c36d37b0eec..0452b0d3be7 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -112,7 +112,7 @@ Our client libraries follow the [Node.js release schedule](https://nodejs.org/en Libraries are compatible with all current _active_ and _maintenance_ versions of Node.js. -Client libraries targetting some end-of-life versions of Node.js are available, and +Client libraries targeting some end-of-life versions of Node.js are available, and can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). The dist-tags follow the naming convention `legacy-(version)`. diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index b864940d189..06fc60bec9c 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "f72f1210f63e1fd9b3dd02e0791b1d024d1cbe07" + "sha": "40f207e3e1ae02f63b9b34c9e957c0caae89c7fb" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d5fc0bcf9ea9789c5b0e3154a9e3b29e5cea6116" + "sha": "15013eff642a7e7e855aed5a29e6e83c39beba2a" } } ], @@ -33,76 +33,5 @@ "generator": "bazel" } } - ], - "generatedFiles": [ - ".eslintignore", - ".eslintrc.json", - ".gitattributes", - ".github/ISSUE_TEMPLATE/bug_report.md", - ".github/ISSUE_TEMPLATE/feature_request.md", - ".github/ISSUE_TEMPLATE/support_request.md", - ".github/PULL_REQUEST_TEMPLATE.md", - ".github/release-please.yml", - ".github/workflows/ci.yaml", - ".gitignore", - ".jsdoc.js", - ".kokoro/.gitattributes", - ".kokoro/common.cfg", - ".kokoro/continuous/node10/common.cfg", - ".kokoro/continuous/node10/docs.cfg", - ".kokoro/continuous/node10/test.cfg", - ".kokoro/continuous/node12/common.cfg", - ".kokoro/continuous/node12/lint.cfg", - ".kokoro/continuous/node12/samples-test.cfg", - ".kokoro/continuous/node12/system-test.cfg", - ".kokoro/continuous/node12/test.cfg", - ".kokoro/docs.sh", - ".kokoro/lint.sh", - ".kokoro/populate-secrets.sh", - ".kokoro/presubmit/node10/common.cfg", - ".kokoro/presubmit/node12/common.cfg", - ".kokoro/presubmit/node12/samples-test.cfg", - ".kokoro/presubmit/node12/system-test.cfg", - ".kokoro/presubmit/node12/test.cfg", - ".kokoro/publish.sh", - ".kokoro/release/docs-devsite.cfg", - ".kokoro/release/docs-devsite.sh", - ".kokoro/release/docs.cfg", - ".kokoro/release/docs.sh", - ".kokoro/release/publish.cfg", - ".kokoro/samples-test.sh", - ".kokoro/system-test.sh", - ".kokoro/test.bat", - ".kokoro/test.sh", - ".kokoro/trampoline.sh", - ".kokoro/trampoline_v2.sh", - ".mocharc.js", - ".nycrc", - ".prettierignore", - ".prettierrc.js", - ".trampolinerc", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.md", - "LICENSE", - "README.md", - "api-extractor.json", - "linkinator.config.json", - "protos/google/container/v1/cluster_service.proto", - "protos/protos.d.ts", - "protos/protos.js", - "protos/protos.json", - "renovate.json", - "samples/README.md", - "src/index.ts", - "src/v1/cluster_manager_client.ts", - "src/v1/cluster_manager_client_config.json", - "src/v1/cluster_manager_proto_list.json", - "src/v1/index.ts", - "system-test/fixtures/sample/src/index.js", - "system-test/fixtures/sample/src/index.ts", - "system-test/install.ts", - "test/gapic_cluster_manager_v1.ts", - "tsconfig.json", - "webpack.config.js" ] } \ No newline at end of file From bb9ab82caddcf3ec1e699a49a36d46653aae6dfa Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2020 19:40:17 +0000 Subject: [PATCH 263/371] chore: release 2.2.0 (#402) :robot: I have created a release \*beep\* \*boop\* --- ## [2.2.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.1.2...v2.2.0) (2020-11-25) ### Features * update GKE v1 API ([#401](https://www.github.com/googleapis/nodejs-cloud-container/issues/401)) ([f72f121](https://www.github.com/googleapis/nodejs-cloud-container/commit/f72f1210f63e1fd9b3dd02e0791b1d024d1cbe07)) ### Bug Fixes * **browser:** check for fetch on window ([#403](https://www.github.com/googleapis/nodejs-cloud-container/issues/403)) ([40f207e](https://www.github.com/googleapis/nodejs-cloud-container/commit/40f207e3e1ae02f63b9b34c9e957c0caae89c7fb)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). --- packages/google-container/CHANGELOG.md | 12 ++++++++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index d8129050c8e..cee189f73c0 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,18 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [2.2.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.1.2...v2.2.0) (2020-11-25) + + +### Features + +* update GKE v1 API ([#401](https://www.github.com/googleapis/nodejs-cloud-container/issues/401)) ([f72f121](https://www.github.com/googleapis/nodejs-cloud-container/commit/f72f1210f63e1fd9b3dd02e0791b1d024d1cbe07)) + + +### Bug Fixes + +* **browser:** check for fetch on window ([#403](https://www.github.com/googleapis/nodejs-cloud-container/issues/403)) ([40f207e](https://www.github.com/googleapis/nodejs-cloud-container/commit/40f207e3e1ae02f63b9b34c9e957c0caae89c7fb)) + ### [2.1.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.1.1...v2.1.2) (2020-11-07) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 50c4df01bce..f5191b6a682 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.1.2", + "version": "2.2.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index faad25e73bb..b2fc5e994c6 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.1.2" + "@google-cloud/container": "^2.2.0" }, "devDependencies": { "chai": "^4.2.0", From 3c2ba63e5b899c77d34d9b56a41725ddb6dcac84 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 4 Dec 2020 08:58:04 -0800 Subject: [PATCH 264/371] chore: generate GAPIC metadata JSON file (#405) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/4dafeee7-014d-47f6-a950-0e8b4e9c606e/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 345596855 Source-Link: https://github.com/googleapis/googleapis/commit/d189e871205fea665a9648f7c4676f027495ccaf --- .../src/v1/gapic_metadata.json | 347 ++++++++++++++++++ packages/google-container/synth.metadata | 6 +- 2 files changed, 350 insertions(+), 3 deletions(-) create mode 100644 packages/google-container/src/v1/gapic_metadata.json diff --git a/packages/google-container/src/v1/gapic_metadata.json b/packages/google-container/src/v1/gapic_metadata.json new file mode 100644 index 00000000000..0c4b40f6523 --- /dev/null +++ b/packages/google-container/src/v1/gapic_metadata.json @@ -0,0 +1,347 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "typescript", + "protoPackage": "google.container.v1", + "libraryPackage": "@google-cloud/container", + "services": { + "ClusterManager": { + "clients": { + "grpc": { + "libraryClient": "ClusterManagerClient", + "rpcs": { + "ListClusters": { + "methods": [ + "listClusters" + ] + }, + "GetCluster": { + "methods": [ + "getCluster" + ] + }, + "CreateCluster": { + "methods": [ + "createCluster" + ] + }, + "UpdateCluster": { + "methods": [ + "updateCluster" + ] + }, + "UpdateNodePool": { + "methods": [ + "updateNodePool" + ] + }, + "SetNodePoolAutoscaling": { + "methods": [ + "setNodePoolAutoscaling" + ] + }, + "SetLoggingService": { + "methods": [ + "setLoggingService" + ] + }, + "SetMonitoringService": { + "methods": [ + "setMonitoringService" + ] + }, + "SetAddonsConfig": { + "methods": [ + "setAddonsConfig" + ] + }, + "SetLocations": { + "methods": [ + "setLocations" + ] + }, + "UpdateMaster": { + "methods": [ + "updateMaster" + ] + }, + "SetMasterAuth": { + "methods": [ + "setMasterAuth" + ] + }, + "DeleteCluster": { + "methods": [ + "deleteCluster" + ] + }, + "ListOperations": { + "methods": [ + "listOperations" + ] + }, + "GetOperation": { + "methods": [ + "getOperation" + ] + }, + "CancelOperation": { + "methods": [ + "cancelOperation" + ] + }, + "GetServerConfig": { + "methods": [ + "getServerConfig" + ] + }, + "GetJSONWebKeys": { + "methods": [ + "getJSONWebKeys" + ] + }, + "ListNodePools": { + "methods": [ + "listNodePools" + ] + }, + "GetNodePool": { + "methods": [ + "getNodePool" + ] + }, + "CreateNodePool": { + "methods": [ + "createNodePool" + ] + }, + "DeleteNodePool": { + "methods": [ + "deleteNodePool" + ] + }, + "RollbackNodePoolUpgrade": { + "methods": [ + "rollbackNodePoolUpgrade" + ] + }, + "SetNodePoolManagement": { + "methods": [ + "setNodePoolManagement" + ] + }, + "SetLabels": { + "methods": [ + "setLabels" + ] + }, + "SetLegacyAbac": { + "methods": [ + "setLegacyAbac" + ] + }, + "StartIPRotation": { + "methods": [ + "startIPRotation" + ] + }, + "CompleteIPRotation": { + "methods": [ + "completeIPRotation" + ] + }, + "SetNodePoolSize": { + "methods": [ + "setNodePoolSize" + ] + }, + "SetNetworkPolicy": { + "methods": [ + "setNetworkPolicy" + ] + }, + "SetMaintenancePolicy": { + "methods": [ + "setMaintenancePolicy" + ] + }, + "ListUsableSubnetworks": { + "methods": [ + "listUsableSubnetworks", + "listUsableSubnetworksStream", + "listUsableSubnetworksAsync" + ] + } + } + }, + "grpc-fallback": { + "libraryClient": "ClusterManagerClient", + "rpcs": { + "ListClusters": { + "methods": [ + "listClusters" + ] + }, + "GetCluster": { + "methods": [ + "getCluster" + ] + }, + "CreateCluster": { + "methods": [ + "createCluster" + ] + }, + "UpdateCluster": { + "methods": [ + "updateCluster" + ] + }, + "UpdateNodePool": { + "methods": [ + "updateNodePool" + ] + }, + "SetNodePoolAutoscaling": { + "methods": [ + "setNodePoolAutoscaling" + ] + }, + "SetLoggingService": { + "methods": [ + "setLoggingService" + ] + }, + "SetMonitoringService": { + "methods": [ + "setMonitoringService" + ] + }, + "SetAddonsConfig": { + "methods": [ + "setAddonsConfig" + ] + }, + "SetLocations": { + "methods": [ + "setLocations" + ] + }, + "UpdateMaster": { + "methods": [ + "updateMaster" + ] + }, + "SetMasterAuth": { + "methods": [ + "setMasterAuth" + ] + }, + "DeleteCluster": { + "methods": [ + "deleteCluster" + ] + }, + "ListOperations": { + "methods": [ + "listOperations" + ] + }, + "GetOperation": { + "methods": [ + "getOperation" + ] + }, + "CancelOperation": { + "methods": [ + "cancelOperation" + ] + }, + "GetServerConfig": { + "methods": [ + "getServerConfig" + ] + }, + "GetJSONWebKeys": { + "methods": [ + "getJSONWebKeys" + ] + }, + "ListNodePools": { + "methods": [ + "listNodePools" + ] + }, + "GetNodePool": { + "methods": [ + "getNodePool" + ] + }, + "CreateNodePool": { + "methods": [ + "createNodePool" + ] + }, + "DeleteNodePool": { + "methods": [ + "deleteNodePool" + ] + }, + "RollbackNodePoolUpgrade": { + "methods": [ + "rollbackNodePoolUpgrade" + ] + }, + "SetNodePoolManagement": { + "methods": [ + "setNodePoolManagement" + ] + }, + "SetLabels": { + "methods": [ + "setLabels" + ] + }, + "SetLegacyAbac": { + "methods": [ + "setLegacyAbac" + ] + }, + "StartIPRotation": { + "methods": [ + "startIPRotation" + ] + }, + "CompleteIPRotation": { + "methods": [ + "completeIPRotation" + ] + }, + "SetNodePoolSize": { + "methods": [ + "setNodePoolSize" + ] + }, + "SetNetworkPolicy": { + "methods": [ + "setNetworkPolicy" + ] + }, + "SetMaintenancePolicy": { + "methods": [ + "setMaintenancePolicy" + ] + }, + "ListUsableSubnetworks": { + "methods": [ + "listUsableSubnetworks", + "listUsableSubnetworksStream", + "listUsableSubnetworksAsync" + ] + } + } + } + } + } + } +} diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 06fc60bec9c..8cf8bfd0c73 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "40f207e3e1ae02f63b9b34c9e957c0caae89c7fb" + "sha": "3b9bbffd47113f49b26a2c30e9409b24118c7273" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5587028631d4d743fd906c4eb4e4e4649a7ee5ce", - "internalRef": "343187793" + "sha": "d189e871205fea665a9648f7c4676f027495ccaf", + "internalRef": "345596855" } }, { From 9031c549f6d643db4afd7ea6bd2f7fdcd4d8b4ae Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 22 Dec 2020 11:46:19 -0800 Subject: [PATCH 265/371] docs: add instructions for authenticating for system tests (#408) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/cacd5a12-e156-415f-94a2-533984f6802a/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/363fe305e9ce34a6cd53951c6ee5f997094b54ee --- packages/google-container/CONTRIBUTING.md | 15 +++++++++++++-- packages/google-container/README.md | 3 +-- packages/google-container/synth.metadata | 4 ++-- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/packages/google-container/CONTRIBUTING.md b/packages/google-container/CONTRIBUTING.md index f6c4cf010e3..3a7fe115511 100644 --- a/packages/google-container/CONTRIBUTING.md +++ b/packages/google-container/CONTRIBUTING.md @@ -37,6 +37,15 @@ accept your pull requests. 1. Title your pull request following [Conventional Commits](https://www.conventionalcommits.org/) styling. 1. Submit a pull request. +### Before you begin + +1. [Select or create a Cloud Platform project][projects]. +1. [Enable billing for your project][billing]. +1. [Enable the Kubernetes Engine Cluster Manager API API][enable_api]. +1. [Set up authentication with a service account][auth] so you can access the + API from your local workstation. + + ## Running the tests 1. [Prepare your environment for Node.js setup][setup]. @@ -51,11 +60,9 @@ accept your pull requests. npm test # Run sample integration tests. - gcloud auth application-default login npm run samples-test # Run all system tests. - gcloud auth application-default login npm run system-test 1. Lint (and maybe fix) any changes: @@ -63,3 +70,7 @@ accept your pull requests. npm run fix [setup]: https://cloud.google.com/nodejs/docs/setup +[projects]: https://console.cloud.google.com/project +[billing]: https://support.google.com/cloud/answer/6293499#enable-billing +[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=container.googleapis.com +[auth]: https://cloud.google.com/docs/authentication/getting-started \ No newline at end of file diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 0452b0d3be7..e2ddec78d40 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -94,8 +94,7 @@ To run commands against the clusters created, you will need to use the ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloud-container/tree/master/samples) directory. The samples' `README.md` -has instructions for running the samples. +Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloud-container/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 8cf8bfd0c73..863047f28a7 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "3b9bbffd47113f49b26a2c30e9409b24118c7273" + "sha": "a0bd9416825cb5e14d967d31795533bc0a00f9d8" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "15013eff642a7e7e855aed5a29e6e83c39beba2a" + "sha": "363fe305e9ce34a6cd53951c6ee5f997094b54ee" } } ], From 1fbb8346e8d564216d8f64cfff6e1dc968f37e46 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 1 Jan 2021 03:00:15 -0800 Subject: [PATCH 266/371] chore: update license headers (#409) --- packages/google-container/.jsdoc.js | 4 ++-- packages/google-container/protos/protos.d.ts | 2 +- packages/google-container/protos/protos.js | 2 +- packages/google-container/src/v1/cluster_manager_client.ts | 2 +- packages/google-container/src/v1/index.ts | 2 +- packages/google-container/synth.metadata | 2 +- .../google-container/system-test/fixtures/sample/src/index.js | 2 +- .../google-container/system-test/fixtures/sample/src/index.ts | 2 +- packages/google-container/system-test/install.ts | 2 +- packages/google-container/test/gapic_cluster_manager_v1.ts | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index cd4bac566a3..e27d85d9a40 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2020 Google LLC', + copyright: 'Copyright 2021 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/container', diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 99d34b4ba85..81999d30e3a 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index d908cb59ddd..55eb5cb7c2e 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 18a32d210b6..a6de3f74c0b 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/src/v1/index.ts b/packages/google-container/src/v1/index.ts index 0c797b4724d..ebf5e7e15c3 100644 --- a/packages/google-container/src/v1/index.ts +++ b/packages/google-container/src/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 863047f28a7..cf1fa950e31 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "a0bd9416825cb5e14d967d31795533bc0a00f9d8" + "sha": "1123efedcf6ff3280656e87f15b94b6a758f98e3" } }, { diff --git a/packages/google-container/system-test/fixtures/sample/src/index.js b/packages/google-container/system-test/fixtures/sample/src/index.js index f2152c69f4a..725fd3171e8 100644 --- a/packages/google-container/system-test/fixtures/sample/src/index.js +++ b/packages/google-container/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/system-test/fixtures/sample/src/index.ts b/packages/google-container/system-test/fixtures/sample/src/index.ts index 2813e3d93c1..1af1a589842 100644 --- a/packages/google-container/system-test/fixtures/sample/src/index.ts +++ b/packages/google-container/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/system-test/install.ts b/packages/google-container/system-test/install.ts index 39d90f771de..d2d61c0396f 100644 --- a/packages/google-container/system-test/install.ts +++ b/packages/google-container/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index 4138b023c61..c9a7b74a817 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 22061b835fe038c487df8a9abf7c6329480b66e9 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 7 Jan 2021 11:28:33 -0800 Subject: [PATCH 267/371] docs: update go link (#410) --- packages/google-container/protos/protos.json | 2 +- packages/google-container/synth.metadata | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 3a45bc4c9eb..b11249447c8 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -3797,7 +3797,7 @@ }, "protobuf": { "options": { - "go_package": "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor", + "go_package": "google.golang.org/protobuf/types/descriptorpb", "java_package": "com.google.protobuf", "java_outer_classname": "DescriptorProtos", "csharp_namespace": "Google.Protobuf.Reflection", diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index cf1fa950e31..06267fa4c84 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "1123efedcf6ff3280656e87f15b94b6a758f98e3" + "sha": "1809825cfabd7bfa0670c594e1b1700f6a3dc9cd" } }, { From 853601be609624e6fbd63a2a953b336b67408c69 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 27 Jan 2021 08:46:09 -0800 Subject: [PATCH 268/371] refactor(nodejs): move build cop to flakybot (#412) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/0e11e365-f1b7-4b92-a9c3-48fa670eb1a0/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/57c23fa5705499a4181095ced81f0ee0933b64f6 --- packages/google-container/synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index 06267fa4c84..d63ebe8be88 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "1809825cfabd7bfa0670c594e1b1700f6a3dc9cd" + "sha": "541d41438ccfc31417e87a7b87c306f90dbde762" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "363fe305e9ce34a6cd53951c6ee5f997094b54ee" + "sha": "57c23fa5705499a4181095ced81f0ee0933b64f6" } } ], From 3f05f2b8b9d6719269d36cf26d8939a2058c6e02 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 2 Feb 2021 17:52:14 -0800 Subject: [PATCH 269/371] chore: update CODEOWNERS config (#413) --- packages/google-container/.repo-metadata.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json index 33fce79d98a..06d1251b95e 100644 --- a/packages/google-container/.repo-metadata.json +++ b/packages/google-container/.repo-metadata.json @@ -9,5 +9,6 @@ "repo": "googleapis/nodejs-cloud-container", "distribution_name": "@google-cloud/container", "api_id": "container.googleapis.com", - "requires_billing": true + "requires_billing": true, + "codeowner_team": "@googleapis/cicd" } From b8cb63bc0d3b3ed13022130b376c51ab6375b0e0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 3 Feb 2021 18:06:14 -0800 Subject: [PATCH 270/371] build: adds UNORDERED_LIST enum (#414) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/b97795fd-83e4-446d-82df-a81e380dba2c/targets - [ ] To automatically regenerate this PR, check this box. --- packages/google-container/protos/protos.d.ts | 3 ++- packages/google-container/protos/protos.js | 7 +++++++ packages/google-container/protos/protos.json | 3 ++- packages/google-container/synth.metadata | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 81999d30e3a..ae69490574f 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -12426,7 +12426,8 @@ export namespace google { REQUIRED = 2, OUTPUT_ONLY = 3, INPUT_ONLY = 4, - IMMUTABLE = 5 + IMMUTABLE = 5, + UNORDERED_LIST = 6 } } diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 55eb5cb7c2e..95643c5bf62 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -30874,6 +30874,7 @@ * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value * @property {number} INPUT_ONLY=4 INPUT_ONLY value * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value */ api.FieldBehavior = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -30883,6 +30884,7 @@ values[valuesById[3] = "OUTPUT_ONLY"] = 3; values[valuesById[4] = "INPUT_ONLY"] = 4; values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; return values; })(); @@ -36330,6 +36332,7 @@ case 3: case 4: case 5: + case 6: break; } } @@ -36425,6 +36428,10 @@ case 5: message[".google.api.fieldBehavior"][i] = 5; break; + case "UNORDERED_LIST": + case 6: + message[".google.api.fieldBehavior"][i] = 6; + break; } } return message; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index b11249447c8..a07661ebc0e 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -3790,7 +3790,8 @@ "REQUIRED": 2, "OUTPUT_ONLY": 3, "INPUT_ONLY": 4, - "IMMUTABLE": 5 + "IMMUTABLE": 5, + "UNORDERED_LIST": 6 } } } diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index d63ebe8be88..d6c1d847532 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "541d41438ccfc31417e87a7b87c306f90dbde762" + "sha": "ac1a6f8526260e39beb1aa7b7dc87e164dbb7da9" } }, { From c6c754a600d10aa3c7785ed014bb6faa10b76474 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 7 Mar 2021 09:00:22 -0800 Subject: [PATCH 271/371] build: update gapic-generator-typescript to v1.2.10. (#416) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/462962a3-9240-4e8b-ac6c-093ca469e60b/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 361273630 Source-Link: https://github.com/googleapis/googleapis/commit/5477122b3e8037a1dc5bc920536158edbd151dc4 --- packages/google-container/synth.metadata | 6 +++--- packages/google-container/webpack.config.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata index d6c1d847532..4eb73cfd394 100644 --- a/packages/google-container/synth.metadata +++ b/packages/google-container/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "ac1a6f8526260e39beb1aa7b7dc87e164dbb7da9" + "sha": "9b68416dfdb23c3a9eb60420480e75d3af82aa80" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d189e871205fea665a9648f7c4676f027495ccaf", - "internalRef": "345596855" + "sha": "5477122b3e8037a1dc5bc920536158edbd151dc4", + "internalRef": "361273630" } }, { diff --git a/packages/google-container/webpack.config.js b/packages/google-container/webpack.config.js index 211748f1ad3..2aff6443489 100644 --- a/packages/google-container/webpack.config.js +++ b/packages/google-container/webpack.config.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 5cbe26f9bebdae9e20a6a727c9b55d240ca6d602 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 23 Mar 2021 17:48:08 +0100 Subject: [PATCH 272/371] chore(deps): update dependency sinon to v10 (#418) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^9.0.1` -> `^10.0.0`](https://renovatebot.com/diffs/npm/sinon/9.2.4/10.0.0) | [![age](https://badges.renovateapi.com/packages/npm/sinon/10.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/10.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/10.0.0/compatibility-slim/9.2.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/10.0.0/confidence-slim/9.2.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sinonjs/sinon ### [`v10.0.0`](https://togithub.com/sinonjs/sinon/blob/master/CHANGELOG.md#​1000--2021-03-22) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v9.2.4...v10.0.0) ================== - Upgrade nise to 4.1.0 - Use [@​sinonjs/eslint-config](https://togithub.com/sinonjs/eslint-config)[@​4](https://togithub.com/4) => Adopts ES2017 => Drops support for IE 11, Legacy Edge and legacy Safari
--- ### Renovate configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index f5191b6a682..9211bba38f6 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -60,7 +60,7 @@ "mocha": "^8.0.0", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", - "sinon": "^9.0.1", + "sinon": "^10.0.0", "ts-loader": "^8.0.0", "typescript": "^3.8.3", "webpack": "^5.0.0", From 4fd013565cb54af022cf07d629315404b2ba5736 Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Thu, 1 Apr 2021 23:52:32 -0700 Subject: [PATCH 273/371] chore: migrate to owl bot (#419) * chore: migrate to owl bot * chore: copy files from googleapis-gen fb91803ccef5d7c695139b22788b309e2197856b * chore: run the post processor --- .../google-container/.github/.OwlBot.yaml | 28 ++++++++++++++ packages/google-container/.repo-metadata.json | 17 +++++---- packages/google-container/synth.metadata | 37 ------------------- packages/google-container/synth.py | 25 ------------- 4 files changed, 37 insertions(+), 70 deletions(-) create mode 100644 packages/google-container/.github/.OwlBot.yaml delete mode 100644 packages/google-container/synth.metadata delete mode 100644 packages/google-container/synth.py diff --git a/packages/google-container/.github/.OwlBot.yaml b/packages/google-container/.github/.OwlBot.yaml new file mode 100644 index 00000000000..46819d3af51 --- /dev/null +++ b/packages/google-container/.github/.OwlBot.yaml @@ -0,0 +1,28 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. +docker: + image: gcr.io/repo-automation-bots/owlbot-nodejs:latest + +deep-remove-regex: + - /owl-bot-staging + +deep-preserve-regex: + - /owl-bot-staging/v1beta1 + +deep-copy-regex: + - source: /google/container/(v.*)/.*-nodejs/(.*) + dest: /owl-bot-staging/$1/$2 + +begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b + diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json index 06d1251b95e..e84aae5490b 100644 --- a/packages/google-container/.repo-metadata.json +++ b/packages/google-container/.repo-metadata.json @@ -1,14 +1,15 @@ { - "name": "container", - "name_pretty": "Kubernetes Engine Cluster Manager API", - "product_documentation": "https://cloud.google.com/kubernetes-engine", - "client_documentation": "https://googleapis.dev/nodejs/container/latest", - "issue_tracker": "https://issuetracker.google.com/savedsearches/559746", - "release_level": "ga", "language": "nodejs", "repo": "googleapis/nodejs-cloud-container", - "distribution_name": "@google-cloud/container", + "name": "container", + "issue_tracker": "https://issuetracker.google.com/savedsearches/559746", + "default_version": "v1", "api_id": "container.googleapis.com", + "distribution_name": "@google-cloud/container", "requires_billing": true, - "codeowner_team": "@googleapis/cicd" + "product_documentation": "https://cloud.google.com/kubernetes-engine", + "codeowner_team": "@googleapis/cicd", + "name_pretty": "Kubernetes Engine Cluster Manager API", + "client_documentation": "https://googleapis.dev/nodejs/container/latest", + "release_level": "ga" } diff --git a/packages/google-container/synth.metadata b/packages/google-container/synth.metadata deleted file mode 100644 index 4eb73cfd394..00000000000 --- a/packages/google-container/synth.metadata +++ /dev/null @@ -1,37 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/nodejs-cloud-container.git", - "sha": "9b68416dfdb23c3a9eb60420480e75d3af82aa80" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "5477122b3e8037a1dc5bc920536158edbd151dc4", - "internalRef": "361273630" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "57c23fa5705499a4181095ced81f0ee0933b64f6" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "container", - "apiVersion": "v1", - "language": "nodejs", - "generator": "bazel" - } - } - ] -} \ No newline at end of file diff --git a/packages/google-container/synth.py b/packages/google-container/synth.py deleted file mode 100644 index cfef6a00848..00000000000 --- a/packages/google-container/synth.py +++ /dev/null @@ -1,25 +0,0 @@ -import synthtool as s -import synthtool.gcp as gcp -import synthtool.languages.node as node -import logging - -logging.basicConfig(level=logging.DEBUG) - -AUTOSYNTH_MULTIPLE_COMMITS = True - -# Run the gapic generator -gapic = gcp.GAPICBazel() -version = 'v1' -library = gapic.node_library('container', version, proto_path=f'google/container/{version}') -s.copy( - library, - excludes=['package.json', 'README.md', 'src/index.ts'], -) - -# Copy templated files -common_templates = gcp.CommonTemplates() -templates = common_templates.node_library( - source_location='build/src', versions=['v1'], default_version='v1') -s.copy(templates) - -node.postprocess_gapic_library() From 54bb4f5a583d53cdd6336192887ac243db0d065a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 14 Apr 2021 23:08:19 +0200 Subject: [PATCH 274/371] chore(deps): update dependency @types/sinon to v10 (#423) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/sinon](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | [`^9.0.0` -> `^10.0.0`](https://renovatebot.com/diffs/npm/@types%2fsinon/9.0.11/10.0.0) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/compatibility-slim/9.0.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fsinon/10.0.0/confidence-slim/9.0.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 9211bba38f6..371940090ea 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -50,7 +50,7 @@ "devDependencies": { "@types/mocha": "^8.0.0", "@types/node": "^12.0.0", - "@types/sinon": "^9.0.0", + "@types/sinon": "^10.0.0", "c8": "^7.0.0", "gts": "^2.0.0", "jsdoc": "^3.6.2", From 887a1954ae704559aa81b0e65c97959866e23e63 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Apr 2021 00:56:26 +0200 Subject: [PATCH 275/371] chore(deps): update dependency ts-loader to v9 (#427) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [ts-loader](https://togithub.com/TypeStrong/ts-loader) | [`^8.0.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/ts-loader/8.1.0/9.0.0) | [![age](https://badges.renovateapi.com/packages/npm/ts-loader/9.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/ts-loader/9.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/ts-loader/9.0.0/compatibility-slim/8.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/ts-loader/9.0.0/confidence-slim/8.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
TypeStrong/ts-loader ### [`v9.0.0`](https://togithub.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md#v900) [Compare Source](https://togithub.com/TypeStrong/ts-loader/compare/v8.1.0...v9.0.0) Breaking changes: - minimum webpack version: 5 - minimum node version: 12 Changes: - [webpack 5 migration](https://togithub.com/TypeStrong/ts-loader/pull/1251) - thanks [@​johnnyreilly](https://togithub.com/johnnyreilly), [@​jonwallsten](https://togithub.com/jonwallsten), [@​sokra](https://togithub.com/sokra), [@​appzuka](https://togithub.com/appzuka), [@​alexander-akait](https://togithub.com/alexander-akait)
--- ### Configuration :date: **Schedule**: "after 9am and before 3pm" (UTC). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 371940090ea..65429469946 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -61,7 +61,7 @@ "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", "sinon": "^10.0.0", - "ts-loader": "^8.0.0", + "ts-loader": "^9.0.0", "typescript": "^3.8.3", "webpack": "^5.0.0", "webpack-cli": "^4.0.0", From 87df4431342f13ac33da6764f3e83167f7ee27ae Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Thu, 6 May 2021 17:48:20 -0700 Subject: [PATCH 276/371] fix(deps): require google-gax v2.12.0 (#431) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 65429469946..5a9b78edbe5 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -45,7 +45,7 @@ "api-documenter": "api-documenter yaml --input-folder=temp" }, "dependencies": { - "google-gax": "^2.9.2" + "google-gax": "^2.12.0" }, "devDependencies": { "@types/mocha": "^8.0.0", From 273cec167153c409654927a980e440bc85606907 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 May 2021 17:00:35 +0000 Subject: [PATCH 277/371] chore: new owl bot post processor docker image (#433) gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f --- packages/google-container/protos/protos.d.ts | 16 +- packages/google-container/protos/protos.js | 32 +- .../src/v1/cluster_manager_client.ts | 383 ++++++++---------- .../test/gapic_cluster_manager_v1.ts | 280 ++++++------- 4 files changed, 320 insertions(+), 391 deletions(-) diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index ae69490574f..4f77acdd234 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -4234,13 +4234,13 @@ export namespace google { public name: string; /** Metric intValue. */ - public intValue: (number|Long|string); + public intValue?: (number|Long|string|null); /** Metric doubleValue. */ - public doubleValue: number; + public doubleValue?: (number|null); /** Metric stringValue. */ - public stringValue: string; + public stringValue?: (string|null); /** Metric value. */ public value?: ("intValue"|"doubleValue"|"stringValue"); @@ -12223,19 +12223,19 @@ export namespace google { public selector: string; /** HttpRule get. */ - public get: string; + public get?: (string|null); /** HttpRule put. */ - public put: string; + public put?: (string|null); /** HttpRule post. */ - public post: string; + public post?: (string|null); /** HttpRule delete. */ - public delete: string; + public delete?: (string|null); /** HttpRule patch. */ - public patch: string; + public patch?: (string|null); /** HttpRule custom. */ public custom?: (google.api.ICustomHttpPattern|null); diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 95643c5bf62..53ef005e9ae 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -10685,27 +10685,27 @@ /** * Metric intValue. - * @member {number|Long} intValue + * @member {number|Long|null|undefined} intValue * @memberof google.container.v1.OperationProgress.Metric * @instance */ - Metric.prototype.intValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Metric.prototype.intValue = null; /** * Metric doubleValue. - * @member {number} doubleValue + * @member {number|null|undefined} doubleValue * @memberof google.container.v1.OperationProgress.Metric * @instance */ - Metric.prototype.doubleValue = 0; + Metric.prototype.doubleValue = null; /** * Metric stringValue. - * @member {string} stringValue + * @member {string|null|undefined} stringValue * @memberof google.container.v1.OperationProgress.Metric * @instance */ - Metric.prototype.stringValue = ""; + Metric.prototype.stringValue = null; // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -30235,43 +30235,43 @@ /** * HttpRule get. - * @member {string} get + * @member {string|null|undefined} get * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.get = ""; + HttpRule.prototype.get = null; /** * HttpRule put. - * @member {string} put + * @member {string|null|undefined} put * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.put = ""; + HttpRule.prototype.put = null; /** * HttpRule post. - * @member {string} post + * @member {string|null|undefined} post * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.post = ""; + HttpRule.prototype.post = null; /** * HttpRule delete. - * @member {string} delete + * @member {string|null|undefined} delete * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype["delete"] = ""; + HttpRule.prototype["delete"] = null; /** * HttpRule patch. - * @member {string} patch + * @member {string|null|undefined} patch * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.patch = ""; + HttpRule.prototype.patch = null; /** * HttpRule custom. diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index a6de3f74c0b..816fa7cb3e3 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -253,13 +253,14 @@ export class ClusterManagerClient { ]; for (const methodName of clusterManagerStubMethods) { const callPromise = this.clusterManagerStub.then( - stub => (...args: Array<{}>) => { - if (this._terminated) { - return Promise.reject('The client has already been closed.'); - } - const func = stub[methodName]; - return func.apply(stub, args); - }, + stub => + (...args: Array<{}>) => { + if (this._terminated) { + return Promise.reject('The client has already been closed.'); + } + const func = stub[methodName]; + return func.apply(stub, args); + }, (err: Error | null | undefined) => () => { throw err; } @@ -419,12 +420,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.listClusters(request, options, callback); } @@ -517,12 +517,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.getCluster(request, options, callback); } @@ -628,12 +627,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.createCluster(request, options, callback); } @@ -728,12 +726,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.updateCluster(request, options, callback); } @@ -854,12 +851,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.updateNodePool(request, options, callback); } @@ -966,12 +962,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setNodePoolAutoscaling( request, @@ -1082,12 +1077,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setLoggingService(request, options, callback); } @@ -1200,12 +1194,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setMonitoringService(request, options, callback); } @@ -1301,12 +1294,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setAddonsConfig(request, options, callback); } @@ -1410,12 +1402,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setLocations(request, options, callback); } @@ -1519,12 +1510,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.updateMaster(request, options, callback); } @@ -1623,12 +1613,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setMasterAuth(request, options, callback); } @@ -1729,12 +1718,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.deleteCluster(request, options, callback); } @@ -1825,12 +1813,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.listOperations(request, options, callback); } @@ -1923,12 +1910,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.getOperation(request, options, callback); } @@ -2021,12 +2007,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.cancelOperation(request, options, callback); } @@ -2116,12 +2101,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.getServerConfig(request, options, callback); } @@ -2205,11 +2189,10 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.getJSONWebKeys(request, options, callback); } @@ -2302,12 +2285,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.listNodePools(request, options, callback); } @@ -2404,12 +2386,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.getNodePool(request, options, callback); } @@ -2505,12 +2486,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.createNodePool(request, options, callback); } @@ -2607,12 +2587,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.deleteNodePool(request, options, callback); } @@ -2718,12 +2697,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.rollbackNodePoolUpgrade( request, @@ -2834,12 +2812,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setNodePoolManagement(request, options, callback); } @@ -2941,12 +2918,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setLabels(request, options, callback); } @@ -3041,12 +3017,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setLegacyAbac(request, options, callback); } @@ -3141,12 +3116,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.startIPRotation(request, options, callback); } @@ -3241,12 +3215,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.completeIPRotation(request, options, callback); } @@ -3345,12 +3318,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setNodePoolSize(request, options, callback); } @@ -3447,12 +3419,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setNetworkPolicy(request, options, callback); } @@ -3554,12 +3525,11 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + project_id: request.projectId || '', + }); this.initialize(); return this.innerApiCalls.setMaintenancePolicy(request, options, callback); } @@ -3665,11 +3635,10 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); this.initialize(); return this.innerApiCalls.listUsableSubnetworks(request, options, callback); } @@ -3714,11 +3683,10 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listUsableSubnetworks.createStream( @@ -3774,17 +3742,16 @@ export class ClusterManagerClient { options = options || {}; options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers[ - 'x-goog-request-params' - ] = gax.routingHeader.fromParams({ - parent: request.parent || '', - }); + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); options = options || {}; const callSettings = new gax.CallSettings(options); this.initialize(); return this.descriptors.page.listUsableSubnetworks.asyncIterate( this.innerApiCalls['listUsableSubnetworks'] as GaxCall, - (request as unknown) as RequestType, + request as unknown as RequestType, callSettings ) as AsyncIterable; } diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index c9a7b74a817..f6c50c3214b 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -28,10 +28,9 @@ import {PassThrough} from 'stream'; import {protobuf} from 'google-gax'; function generateSampleMessage(instance: T) { - const filledObject = (instance.constructor as typeof protobuf.Message).toObject( - instance as protobuf.Message, - {defaults: true} - ); + const filledObject = ( + instance.constructor as typeof protobuf.Message + ).toObject(instance as protobuf.Message, {defaults: true}); return (instance.constructor as typeof protobuf.Message).fromObject( filledObject ) as T; @@ -251,9 +250,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.ListClustersResponse() ); - client.innerApiCalls.listClusters = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listClusters = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listClusters( request, @@ -366,9 +364,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Cluster() ); - client.innerApiCalls.getCluster = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getCluster = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getCluster( request, @@ -481,9 +478,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.createCluster = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.createCluster = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.createCluster( request, @@ -596,9 +592,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.updateCluster = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateCluster = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateCluster( request, @@ -711,9 +706,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.updateNodePool = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateNodePool = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateNodePool( request, @@ -794,9 +788,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setNodePoolAutoscaling = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.setNodePoolAutoscaling = + stubSimpleCall(expectedResponse); const [response] = await client.setNodePoolAutoscaling(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -828,9 +821,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setNodePoolAutoscaling = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setNodePoolAutoscaling = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setNodePoolAutoscaling( request, @@ -946,9 +938,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setLoggingService = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setLoggingService = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setLoggingService( request, @@ -1029,9 +1020,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setMonitoringService = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.setMonitoringService = + stubSimpleCall(expectedResponse); const [response] = await client.setMonitoringService(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -1063,9 +1053,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setMonitoringService = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setMonitoringService = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setMonitoringService( request, @@ -1178,9 +1167,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setAddonsConfig = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setAddonsConfig = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setAddonsConfig( request, @@ -1293,9 +1281,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setLocations = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setLocations = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setLocations( request, @@ -1408,9 +1395,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.updateMaster = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.updateMaster = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.updateMaster( request, @@ -1523,9 +1509,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setMasterAuth = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setMasterAuth = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setMasterAuth( request, @@ -1638,9 +1623,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.deleteCluster = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteCluster = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteCluster( request, @@ -1753,9 +1737,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.ListOperationsResponse() ); - client.innerApiCalls.listOperations = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listOperations = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listOperations( request, @@ -1868,9 +1851,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.getOperation = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getOperation = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getOperation( request, @@ -1983,9 +1965,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); - client.innerApiCalls.cancelOperation = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.cancelOperation = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.cancelOperation( request, @@ -2098,9 +2079,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.ServerConfig() ); - client.innerApiCalls.getServerConfig = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getServerConfig = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getServerConfig( request, @@ -2211,9 +2191,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysResponse() ); - client.innerApiCalls.getJSONWebKeys = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getJSONWebKeys = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getJSONWebKeys( request, @@ -2325,9 +2304,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.ListNodePoolsResponse() ); - client.innerApiCalls.listNodePools = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listNodePools = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listNodePools( request, @@ -2440,9 +2418,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.NodePool() ); - client.innerApiCalls.getNodePool = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.getNodePool = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getNodePool( request, @@ -2555,9 +2532,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.createNodePool = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.createNodePool = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.createNodePool( request, @@ -2670,9 +2646,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.deleteNodePool = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.deleteNodePool = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.deleteNodePool( request, @@ -2753,9 +2728,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.rollbackNodePoolUpgrade = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.rollbackNodePoolUpgrade = + stubSimpleCall(expectedResponse); const [response] = await client.rollbackNodePoolUpgrade(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -2787,9 +2761,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.rollbackNodePoolUpgrade = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.rollbackNodePoolUpgrade = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.rollbackNodePoolUpgrade( request, @@ -2873,9 +2846,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setNodePoolManagement = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.setNodePoolManagement = + stubSimpleCall(expectedResponse); const [response] = await client.setNodePoolManagement(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -2907,9 +2879,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setNodePoolManagement = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setNodePoolManagement = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setNodePoolManagement( request, @@ -3025,9 +2996,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setLabels = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setLabels = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setLabels( request, @@ -3137,9 +3107,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setLegacyAbac = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setLegacyAbac = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setLegacyAbac( request, @@ -3252,9 +3221,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.startIPRotation = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.startIPRotation = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.startIPRotation( request, @@ -3335,9 +3303,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.completeIPRotation = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.completeIPRotation = + stubSimpleCall(expectedResponse); const [response] = await client.completeIPRotation(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -3369,9 +3336,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.completeIPRotation = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.completeIPRotation = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.completeIPRotation( request, @@ -3484,9 +3450,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setNodePoolSize = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setNodePoolSize = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setNodePoolSize( request, @@ -3599,9 +3564,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setNetworkPolicy = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setNetworkPolicy = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setNetworkPolicy( request, @@ -3682,9 +3646,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setMaintenancePolicy = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.setMaintenancePolicy = + stubSimpleCall(expectedResponse); const [response] = await client.setMaintenancePolicy(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -3716,9 +3679,8 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.setMaintenancePolicy = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.setMaintenancePolicy = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.setMaintenancePolicy( request, @@ -3806,9 +3768,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UsableSubnetwork() ), ]; - client.innerApiCalls.listUsableSubnetworks = stubSimpleCall( - expectedResponse - ); + client.innerApiCalls.listUsableSubnetworks = + stubSimpleCall(expectedResponse); const [response] = await client.listUsableSubnetworks(request); assert.deepStrictEqual(response, expectedResponse); assert( @@ -3847,9 +3808,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UsableSubnetwork() ), ]; - client.innerApiCalls.listUsableSubnetworks = stubSimpleCallWithCallback( - expectedResponse - ); + client.innerApiCalls.listUsableSubnetworks = + stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.listUsableSubnetworks( request, @@ -3930,9 +3890,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UsableSubnetwork() ), ]; - client.descriptors.page.listUsableSubnetworks.createStream = stubPageStreamingCall( - expectedResponse - ); + client.descriptors.page.listUsableSubnetworks.createStream = + stubPageStreamingCall(expectedResponse); const stream = client.listUsableSubnetworksStream(request); const promise = new Promise((resolve, reject) => { const responses: protos.google.container.v1.UsableSubnetwork[] = []; @@ -3952,16 +3911,18 @@ describe('v1.ClusterManagerClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listUsableSubnetworks - .createStream as SinonStub) + ( + client.descriptors.page.listUsableSubnetworks + .createStream as SinonStub + ) .getCall(0) .calledWith(client.innerApiCalls.listUsableSubnetworks, request) ); assert.strictEqual( - (client.descriptors.page.listUsableSubnetworks - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listUsableSubnetworks + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -3978,10 +3939,8 @@ describe('v1.ClusterManagerClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUsableSubnetworks.createStream = stubPageStreamingCall( - undefined, - expectedError - ); + client.descriptors.page.listUsableSubnetworks.createStream = + stubPageStreamingCall(undefined, expectedError); const stream = client.listUsableSubnetworksStream(request); const promise = new Promise((resolve, reject) => { const responses: protos.google.container.v1.UsableSubnetwork[] = []; @@ -4000,16 +3959,18 @@ describe('v1.ClusterManagerClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listUsableSubnetworks - .createStream as SinonStub) + ( + client.descriptors.page.listUsableSubnetworks + .createStream as SinonStub + ) .getCall(0) .calledWith(client.innerApiCalls.listUsableSubnetworks, request) ); assert.strictEqual( - (client.descriptors.page.listUsableSubnetworks - .createStream as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listUsableSubnetworks + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -4036,9 +3997,8 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.UsableSubnetwork() ), ]; - client.descriptors.page.listUsableSubnetworks.asyncIterate = stubAsyncIterationCall( - expectedResponse - ); + client.descriptors.page.listUsableSubnetworks.asyncIterate = + stubAsyncIterationCall(expectedResponse); const responses: protos.google.container.v1.IUsableSubnetwork[] = []; const iterable = client.listUsableSubnetworksAsync(request); for await (const resource of iterable) { @@ -4046,15 +4006,17 @@ describe('v1.ClusterManagerClient', () => { } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( - (client.descriptors.page.listUsableSubnetworks - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listUsableSubnetworks + .asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listUsableSubnetworks - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listUsableSubnetworks + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); @@ -4071,10 +4033,8 @@ describe('v1.ClusterManagerClient', () => { request.parent = ''; const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listUsableSubnetworks.asyncIterate = stubAsyncIterationCall( - undefined, - expectedError - ); + client.descriptors.page.listUsableSubnetworks.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); const iterable = client.listUsableSubnetworksAsync(request); await assert.rejects(async () => { const responses: protos.google.container.v1.IUsableSubnetwork[] = []; @@ -4083,15 +4043,17 @@ describe('v1.ClusterManagerClient', () => { } }); assert.deepStrictEqual( - (client.descriptors.page.listUsableSubnetworks - .asyncIterate as SinonStub).getCall(0).args[1], + ( + client.descriptors.page.listUsableSubnetworks + .asyncIterate as SinonStub + ).getCall(0).args[1], request ); assert.strictEqual( - (client.descriptors.page.listUsableSubnetworks - .asyncIterate as SinonStub).getCall(0).args[2].otherArgs.headers[ - 'x-goog-request-params' - ], + ( + client.descriptors.page.listUsableSubnetworks + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); From ee14233b022c1727b5f4b37e9ad8cbc910048f60 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 May 2021 21:58:13 +0000 Subject: [PATCH 278/371] fix: use require() to load JSON protos (#434) The library is regenerated with gapic-generator-typescript v1.3.1. Committer: @alexander-fenster PiperOrigin-RevId: 372468161 Source-Link: https://github.com/googleapis/googleapis/commit/75880c3e6a6aa2597400582848e81bbbfac51dea Source-Link: https://github.com/googleapis/googleapis-gen/commit/77b18044813d4c8c415ff9ea68e76e307eb8e904 --- .../src/v1/cluster_manager_client.ts | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 816fa7cb3e3..664ec0c33e4 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -31,6 +31,7 @@ import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; +import jsonProtos = require('../../protos/protos.json'); /** * Client JSON configuration object, loaded from * `src/v1/cluster_manager_client_config.json`. @@ -144,22 +145,7 @@ export class ClusterManagerClient { clientHeader.push(`${opts.libName}/${opts.libVersion}`); } // Load the applicable protos. - // For Node.js, pass the path to JSON proto file. - // For browsers, pass the JSON content. - - const nodejsProtoPath = path.join( - __dirname, - '..', - '..', - 'protos', - 'protos.json' - ); - this._protos = this._gaxGrpc.loadProto( - opts.fallback - ? // eslint-disable-next-line @typescript-eslint/no-var-requires - require('../../protos/protos.json') - : nodejsProtoPath - ); + this._protos = this._gaxGrpc.loadProtoJSON(jsonProtos); // Some of the methods on this service return "paged" results, // (e.g. 50 results at a time, with tokens to get subsequent From af296bff5753456596e901ddc867e5615b8b27e4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 May 2021 23:12:22 +0000 Subject: [PATCH 279/371] chore: update gapic-generator-typescript to v1.3.2 (#435) Committer: @alexander-fenster PiperOrigin-RevId: 372656503 Source-Link: https://github.com/googleapis/googleapis/commit/6fa858c6489b1bbc505a7d7afe39f2dc45819c38 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d7c95df3ab1ea1b4c22a4542bad4924cc46d1388 --- packages/google-container/src/v1/cluster_manager_client.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 664ec0c33e4..9fb47a63a7a 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -26,7 +26,6 @@ import { PaginationCallback, GaxCall, } from 'google-gax'; -import * as path from 'path'; import {Transform} from 'stream'; import {RequestType} from 'google-gax/build/src/apitypes'; From d14bdf11dde8fdbedc717e9e69d9c22460631323 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 13 May 2021 10:37:57 -0700 Subject: [PATCH 280/371] chore: release 2.2.1 (#432) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-container/CHANGELOG.md | 8 ++++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index cee189f73c0..a89701183cd 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,14 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [2.2.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.2.0...v2.2.1) (2021-05-12) + + +### Bug Fixes + +* **deps:** require google-gax v2.12.0 ([#431](https://www.github.com/googleapis/nodejs-cloud-container/issues/431)) ([cdcce07](https://www.github.com/googleapis/nodejs-cloud-container/commit/cdcce07da06d7ee53b2207b8d9dd2f8e0c59a6d7)) +* use require() to load JSON protos ([#434](https://www.github.com/googleapis/nodejs-cloud-container/issues/434)) ([ce2dd09](https://www.github.com/googleapis/nodejs-cloud-container/commit/ce2dd092d84d165f905f2f912f1fdb382c8b69e5)) + ## [2.2.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.1.2...v2.2.0) (2020-11-25) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 5a9b78edbe5..492035cf562 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.2.0", + "version": "2.2.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index b2fc5e994c6..35b2235b69c 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.2.0" + "@google-cloud/container": "^2.2.1" }, "devDependencies": { "chai": "^4.2.0", From be474a1ec2ed3dcb25885c25c7297b2f3843c3ef Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 21 May 2021 19:06:33 +0200 Subject: [PATCH 281/371] chore(deps): update dependency @types/node to v14 (#439) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | [`^12.0.0` -> `^14.0.0`](https://renovatebot.com/diffs/npm/@types%2fnode/12.20.13/14.17.0) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fnode/14.17.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode/14.17.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode/14.17.0/compatibility-slim/12.20.13)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode/14.17.0/confidence-slim/12.20.13)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 492035cf562..301a63b1c2e 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -49,7 +49,7 @@ }, "devDependencies": { "@types/mocha": "^8.0.0", - "@types/node": "^12.0.0", + "@types/node": "^14.0.0", "@types/sinon": "^10.0.0", "c8": "^7.0.0", "gts": "^2.0.0", From 8b4b77129beaf19ef8092e853ac4b7c0b886cfd1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 25 May 2021 17:56:33 +0200 Subject: [PATCH 282/371] chore(deps): update dependency sinon to v11 (#440) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^10.0.0` -> `^11.0.0`](https://renovatebot.com/diffs/npm/sinon/10.0.0/11.1.0) | [![age](https://badges.renovateapi.com/packages/npm/sinon/11.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/11.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/11.1.0/compatibility-slim/10.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/11.1.0/confidence-slim/10.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sinonjs/sinon ### [`v11.1.0`](https://togithub.com/sinonjs/sinon/blob/master/CHANGELOG.md#​1110--2021-05-25) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v11.0.0...31be9a5d5a4762ef01cb195f29024616dfee9ce8) \================== - Add sinon.promise() implementation ([#​2369](https://togithub.com/sinonjs/sinon/issues/2369)) - Set wrappedMethod on getters/setters ([#​2378](https://togithub.com/sinonjs/sinon/issues/2378)) - \[Docs] Update fake-server usage & descriptions ([#​2365](https://togithub.com/sinonjs/sinon/issues/2365)) - Fake docs improvement ([#​2360](https://togithub.com/sinonjs/sinon/issues/2360)) - Update nise to 5.1.0 (fixed [#​2318](https://togithub.com/sinonjs/sinon/issues/2318)) ### [`v11.0.0`](https://togithub.com/sinonjs/sinon/blob/master/CHANGELOG.md#​1100--2021-05-24) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v10.0.1...v11.0.0) \================== - Explicitly use samsam 6.0.2 with fix for [#​2345](https://togithub.com/sinonjs/sinon/issues/2345) - Update most packages ([#​2371](https://togithub.com/sinonjs/sinon/issues/2371)) - Update compatibility docs ([#​2366](https://togithub.com/sinonjs/sinon/issues/2366)) - Update packages (includes breaking fake-timers change, see [#​2352](https://togithub.com/sinonjs/sinon/issues/2352)) - Warn of potential memory leaks ([#​2357](https://togithub.com/sinonjs/sinon/issues/2357)) - Fix clock test errors ### [`v10.0.1`](https://togithub.com/sinonjs/sinon/blob/master/CHANGELOG.md#​1001--2021-04-08) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v10.0.0...v10.0.1) \================== - Upgrade sinon components (bumps y18n to 4.0.1) - Bump y18n from 4.0.0 to 4.0.1
--- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 301a63b1c2e..c2e9398725d 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -60,7 +60,7 @@ "mocha": "^8.0.0", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", - "sinon": "^10.0.0", + "sinon": "^11.0.0", "ts-loader": "^9.0.0", "typescript": "^3.8.3", "webpack": "^5.0.0", From 82fad8f5f0e410e45cdd8b59f455270d50b1a2f2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 25 May 2021 20:48:31 +0000 Subject: [PATCH 283/371] fix: GoogleAdsError missing using generator version after 1.3.0 (#441) [PR](https://github.com/googleapis/gapic-generator-typescript/pull/878) within updated gapic-generator-typescript version 1.4.0 Committer: @summer-ji-eng PiperOrigin-RevId: 375759421 Source-Link: https://github.com/googleapis/googleapis/commit/95fa72fdd0d69b02d72c33b37d1e4cc66d4b1446 Source-Link: https://github.com/googleapis/googleapis-gen/commit/f40a34377ad488a7c2bc3992b3c8d5faf5a15c46 --- packages/google-container/src/v1/cluster_manager_client.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 9fb47a63a7a..996251dd158 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -139,6 +139,8 @@ export class ClusterManagerClient { } if (!opts.fallback) { clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`); + } else if (opts.fallback === 'rest') { + clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); } if (opts.libName && opts.libVersion) { clientHeader.push(`${opts.libName}/${opts.libVersion}`); From 42268de69e2b4a106b58c07323b580db07656f39 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 25 May 2021 18:16:57 -0400 Subject: [PATCH 284/371] chore: release 2.2.2 (#442) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index a89701183cd..31883494c8a 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [2.2.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.2.1...v2.2.2) (2021-05-25) + + +### Bug Fixes + +* GoogleAdsError missing using generator version after 1.3.0 ([#441](https://www.github.com/googleapis/nodejs-cloud-container/issues/441)) ([03134c0](https://www.github.com/googleapis/nodejs-cloud-container/commit/03134c09b67eaa9cf78b06b413169d5ef3f82f3c)) + ### [2.2.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.2.0...v2.2.1) (2021-05-12) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index c2e9398725d..0cb5dbf73c6 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.2.1", + "version": "2.2.2", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 35b2235b69c..59e99ea472e 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.2.1" + "@google-cloud/container": "^2.2.2" }, "devDependencies": { "chai": "^4.2.0", From 336c98ea6bf7a959d633a348b98efc26e0da9eb5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 10:47:13 -0500 Subject: [PATCH 285/371] feat: support for NodeAutoprovisioning ImageType (#446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: support for NodeAutoprovisioning ImageType PiperOrigin-RevId: 378163331 Source-Link: https://github.com/googleapis/googleapis/commit/e610c3bbc75e66fcfd5d7c46fab225c5978700df Source-Link: https://github.com/googleapis/googleapis-gen/commit/49f69683660cbd5081c0b0d58b61fbfb9161c0e0 * 🦉 Updates from OwlBot Co-authored-by: Owl Bot --- .../google/container/v1/cluster_service.proto | 5 ++++- packages/google-container/protos/protos.d.ts | 6 +++++ packages/google-container/protos/protos.js | 22 +++++++++++++++++++ packages/google-container/protos/protos.json | 4 ++++ 4 files changed, 36 insertions(+), 1 deletion(-) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 040173ec22f..59539587398 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -2764,6 +2764,9 @@ message AutoprovisioningNodePoolDefaults { // see: // https://cloud.google.com/compute/docs/disks/customer-managed-encryption string boot_disk_kms_key = 9; + + // The image type to use for NAP created node. + string image_type = 10; } // Contains information about amount of some resource in the cluster. diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 4f77acdd234..60b8d1c97b7 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -8661,6 +8661,9 @@ export namespace google { /** AutoprovisioningNodePoolDefaults bootDiskKmsKey */ bootDiskKmsKey?: (string|null); + + /** AutoprovisioningNodePoolDefaults imageType */ + imageType?: (string|null); } /** Represents an AutoprovisioningNodePoolDefaults. */ @@ -8699,6 +8702,9 @@ export namespace google { /** AutoprovisioningNodePoolDefaults bootDiskKmsKey. */ public bootDiskKmsKey: string; + /** AutoprovisioningNodePoolDefaults imageType. */ + public imageType: string; + /** * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 53ef005e9ae..82534e09fd7 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -21744,6 +21744,7 @@ * @property {string|null} [diskType] AutoprovisioningNodePoolDefaults diskType * @property {google.container.v1.IShieldedInstanceConfig|null} [shieldedInstanceConfig] AutoprovisioningNodePoolDefaults shieldedInstanceConfig * @property {string|null} [bootDiskKmsKey] AutoprovisioningNodePoolDefaults bootDiskKmsKey + * @property {string|null} [imageType] AutoprovisioningNodePoolDefaults imageType */ /** @@ -21834,6 +21835,14 @@ */ AutoprovisioningNodePoolDefaults.prototype.bootDiskKmsKey = ""; + /** + * AutoprovisioningNodePoolDefaults imageType. + * @member {string} imageType + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @instance + */ + AutoprovisioningNodePoolDefaults.prototype.imageType = ""; + /** * Creates a new AutoprovisioningNodePoolDefaults instance using the specified properties. * @function create @@ -21877,6 +21886,8 @@ $root.google.container.v1.ShieldedInstanceConfig.encode(message.shieldedInstanceConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.bootDiskKmsKey != null && Object.hasOwnProperty.call(message, "bootDiskKmsKey")) writer.uint32(/* id 9, wireType 2 =*/74).string(message.bootDiskKmsKey); + if (message.imageType != null && Object.hasOwnProperty.call(message, "imageType")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.imageType); return writer; }; @@ -21940,6 +21951,9 @@ case 9: message.bootDiskKmsKey = reader.string(); break; + case 10: + message.imageType = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -22012,6 +22026,9 @@ if (message.bootDiskKmsKey != null && message.hasOwnProperty("bootDiskKmsKey")) if (!$util.isString(message.bootDiskKmsKey)) return "bootDiskKmsKey: string expected"; + if (message.imageType != null && message.hasOwnProperty("imageType")) + if (!$util.isString(message.imageType)) + return "imageType: string expected"; return null; }; @@ -22059,6 +22076,8 @@ } if (object.bootDiskKmsKey != null) message.bootDiskKmsKey = String(object.bootDiskKmsKey); + if (object.imageType != null) + message.imageType = String(object.imageType); return message; }; @@ -22086,6 +22105,7 @@ object.diskType = ""; object.shieldedInstanceConfig = null; object.bootDiskKmsKey = ""; + object.imageType = ""; } if (message.oauthScopes && message.oauthScopes.length) { object.oauthScopes = []; @@ -22108,6 +22128,8 @@ object.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.toObject(message.shieldedInstanceConfig, options); if (message.bootDiskKmsKey != null && message.hasOwnProperty("bootDiskKmsKey")) object.bootDiskKmsKey = message.bootDiskKmsKey; + if (message.imageType != null && message.hasOwnProperty("imageType")) + object.imageType = message.imageType; return object; }; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index a07661ebc0e..130ad60a412 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -3026,6 +3026,10 @@ "bootDiskKmsKey": { "type": "string", "id": 9 + }, + "imageType": { + "type": "string", + "id": 10 } } }, From 0b773d8aeff42b691f39716b788915d410a8f9ea Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 9 Jun 2021 09:14:09 -0700 Subject: [PATCH 286/371] chore: release 2.3.0 (#447) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 31883494c8a..948d626bcfc 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [2.3.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.2.2...v2.3.0) (2021-06-09) + + +### Features + +* support for NodeAutoprovisioning ImageType ([#446](https://www.github.com/googleapis/nodejs-cloud-container/issues/446)) ([e826d24](https://www.github.com/googleapis/nodejs-cloud-container/commit/e826d242fdfbc6831c67eb6abf6c0fb0b12b707a)) + ### [2.2.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.2.1...v2.2.2) (2021-05-25) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 0cb5dbf73c6..6f07cd4e401 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.2.2", + "version": "2.3.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 59e99ea472e..1807053be1b 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.2.2" + "@google-cloud/container": "^2.3.0" }, "devDependencies": { "chai": "^4.2.0", From c3bf6bf392bcdd40b038457bfdd73badbc51bbe3 Mon Sep 17 00:00:00 2001 From: Don McCasland Date: Wed, 9 Jun 2021 10:24:22 -0700 Subject: [PATCH 287/371] chore: Update CODEOWNERS to point to anthos-dpe team (#449) * Update CODEOWNERS to point to anthos-dpe team * update repo-metadata.json to point to anthos-dpe team --- packages/google-container/.repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json index e84aae5490b..63c4bb24810 100644 --- a/packages/google-container/.repo-metadata.json +++ b/packages/google-container/.repo-metadata.json @@ -8,7 +8,7 @@ "distribution_name": "@google-cloud/container", "requires_billing": true, "product_documentation": "https://cloud.google.com/kubernetes-engine", - "codeowner_team": "@googleapis/cicd", + "codeowner_team": "@googleapis/anthos-dpe", "name_pretty": "Kubernetes Engine Cluster Manager API", "client_documentation": "https://googleapis.dev/nodejs/container/latest", "release_level": "ga" From 0b462dcd6c3e759dcd0c2dfa8aa92505df03a79c Mon Sep 17 00:00:00 2001 From: "F. Hinkelmann" Date: Thu, 10 Jun 2021 23:02:38 +0200 Subject: [PATCH 288/371] chore(nodejs): remove api-extractor dependencies (#452) --- packages/google-container/package.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 6f07cd4e401..b16c98c4aae 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -40,9 +40,7 @@ "predocs-test": "npm run docs", "prepare": "npm run compile-protos && npm run compile", "prelint": "cd samples; npm link ../; npm install", - "precompile": "gts clean", - "api-extractor": "api-extractor run --local", - "api-documenter": "api-documenter yaml --input-folder=temp" + "precompile": "gts clean" }, "dependencies": { "google-gax": "^2.12.0" @@ -64,8 +62,6 @@ "ts-loader": "^9.0.0", "typescript": "^3.8.3", "webpack": "^5.0.0", - "webpack-cli": "^4.0.0", - "@microsoft/api-documenter": "^7.8.10", - "@microsoft/api-extractor": "^7.8.10" + "webpack-cli": "^4.0.0" } } From 9a7d80233ba73ff986ad9424632e1f813210b1ed Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 25 Jun 2021 09:39:39 -0700 Subject: [PATCH 289/371] fix: make request optional in all cases (#454) Committer: @miraleung PiperOrigin-RevId: 380641501 --- .../src/v1/cluster_manager_client.ts | 134 +++++++++--------- 1 file changed, 70 insertions(+), 64 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 996251dd158..2cc42a7fe07 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -320,7 +320,7 @@ export class ClusterManagerClient { // -- Service calls -- // ------------------- listClusters( - request: protos.google.container.v1.IListClustersRequest, + request?: protos.google.container.v1.IListClustersRequest, options?: CallOptions ): Promise< [ @@ -376,7 +376,7 @@ export class ClusterManagerClient { * const [response] = await client.listClusters(request); */ listClusters( - request: protos.google.container.v1.IListClustersRequest, + request?: protos.google.container.v1.IListClustersRequest, optionsOrCallback?: | CallOptions | Callback< @@ -416,7 +416,7 @@ export class ClusterManagerClient { return this.innerApiCalls.listClusters(request, options, callback); } getCluster( - request: protos.google.container.v1.IGetClusterRequest, + request?: protos.google.container.v1.IGetClusterRequest, options?: CallOptions ): Promise< [ @@ -473,7 +473,7 @@ export class ClusterManagerClient { * const [response] = await client.getCluster(request); */ getCluster( - request: protos.google.container.v1.IGetClusterRequest, + request?: protos.google.container.v1.IGetClusterRequest, optionsOrCallback?: | CallOptions | Callback< @@ -513,7 +513,7 @@ export class ClusterManagerClient { return this.innerApiCalls.getCluster(request, options, callback); } createCluster( - request: protos.google.container.v1.ICreateClusterRequest, + request?: protos.google.container.v1.ICreateClusterRequest, options?: CallOptions ): Promise< [ @@ -583,7 +583,7 @@ export class ClusterManagerClient { * const [response] = await client.createCluster(request); */ createCluster( - request: protos.google.container.v1.ICreateClusterRequest, + request?: protos.google.container.v1.ICreateClusterRequest, optionsOrCallback?: | CallOptions | Callback< @@ -623,7 +623,7 @@ export class ClusterManagerClient { return this.innerApiCalls.createCluster(request, options, callback); } updateCluster( - request: protos.google.container.v1.IUpdateClusterRequest, + request?: protos.google.container.v1.IUpdateClusterRequest, options?: CallOptions ): Promise< [ @@ -682,7 +682,7 @@ export class ClusterManagerClient { * const [response] = await client.updateCluster(request); */ updateCluster( - request: protos.google.container.v1.IUpdateClusterRequest, + request?: protos.google.container.v1.IUpdateClusterRequest, optionsOrCallback?: | CallOptions | Callback< @@ -722,7 +722,7 @@ export class ClusterManagerClient { return this.innerApiCalls.updateCluster(request, options, callback); } updateNodePool( - request: protos.google.container.v1.IUpdateNodePoolRequest, + request?: protos.google.container.v1.IUpdateNodePoolRequest, options?: CallOptions ): Promise< [ @@ -807,7 +807,7 @@ export class ClusterManagerClient { * const [response] = await client.updateNodePool(request); */ updateNodePool( - request: protos.google.container.v1.IUpdateNodePoolRequest, + request?: protos.google.container.v1.IUpdateNodePoolRequest, optionsOrCallback?: | CallOptions | Callback< @@ -847,7 +847,7 @@ export class ClusterManagerClient { return this.innerApiCalls.updateNodePool(request, options, callback); } setNodePoolAutoscaling( - request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, + request?: protos.google.container.v1.ISetNodePoolAutoscalingRequest, options?: CallOptions ): Promise< [ @@ -914,7 +914,7 @@ export class ClusterManagerClient { * const [response] = await client.setNodePoolAutoscaling(request); */ setNodePoolAutoscaling( - request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, + request?: protos.google.container.v1.ISetNodePoolAutoscalingRequest, optionsOrCallback?: | CallOptions | Callback< @@ -962,7 +962,7 @@ export class ClusterManagerClient { ); } setLoggingService( - request: protos.google.container.v1.ISetLoggingServiceRequest, + request?: protos.google.container.v1.ISetLoggingServiceRequest, options?: CallOptions ): Promise< [ @@ -1031,7 +1031,7 @@ export class ClusterManagerClient { * const [response] = await client.setLoggingService(request); */ setLoggingService( - request: protos.google.container.v1.ISetLoggingServiceRequest, + request?: protos.google.container.v1.ISetLoggingServiceRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1073,7 +1073,7 @@ export class ClusterManagerClient { return this.innerApiCalls.setLoggingService(request, options, callback); } setMonitoringService( - request: protos.google.container.v1.ISetMonitoringServiceRequest, + request?: protos.google.container.v1.ISetMonitoringServiceRequest, options?: CallOptions ): Promise< [ @@ -1146,7 +1146,7 @@ export class ClusterManagerClient { * const [response] = await client.setMonitoringService(request); */ setMonitoringService( - request: protos.google.container.v1.ISetMonitoringServiceRequest, + request?: protos.google.container.v1.ISetMonitoringServiceRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1190,7 +1190,7 @@ export class ClusterManagerClient { return this.innerApiCalls.setMonitoringService(request, options, callback); } setAddonsConfig( - request: protos.google.container.v1.ISetAddonsConfigRequest, + request?: protos.google.container.v1.ISetAddonsConfigRequest, options?: CallOptions ): Promise< [ @@ -1250,7 +1250,7 @@ export class ClusterManagerClient { * const [response] = await client.setAddonsConfig(request); */ setAddonsConfig( - request: protos.google.container.v1.ISetAddonsConfigRequest, + request?: protos.google.container.v1.ISetAddonsConfigRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1290,7 +1290,7 @@ export class ClusterManagerClient { return this.innerApiCalls.setAddonsConfig(request, options, callback); } setLocations( - request: protos.google.container.v1.ISetLocationsRequest, + request?: protos.google.container.v1.ISetLocationsRequest, options?: CallOptions ): Promise< [ @@ -1356,9 +1356,10 @@ export class ClusterManagerClient { * for more details and examples. * @example * const [response] = await client.setLocations(request); + * @deprecated SetLocations is deprecated and may be removed in a future version. */ setLocations( - request: protos.google.container.v1.ISetLocationsRequest, + request?: protos.google.container.v1.ISetLocationsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1395,10 +1396,15 @@ export class ClusterManagerClient { project_id: request.projectId || '', }); this.initialize(); + gax.warn( + 'DEP$ClusterManager-$SetLocations', + 'SetLocations is deprecated and may be removed in a future version.', + 'DeprecationWarning' + ); return this.innerApiCalls.setLocations(request, options, callback); } updateMaster( - request: protos.google.container.v1.IUpdateMasterRequest, + request?: protos.google.container.v1.IUpdateMasterRequest, options?: CallOptions ): Promise< [ @@ -1466,7 +1472,7 @@ export class ClusterManagerClient { * const [response] = await client.updateMaster(request); */ updateMaster( - request: protos.google.container.v1.IUpdateMasterRequest, + request?: protos.google.container.v1.IUpdateMasterRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1506,7 +1512,7 @@ export class ClusterManagerClient { return this.innerApiCalls.updateMaster(request, options, callback); } setMasterAuth( - request: protos.google.container.v1.ISetMasterAuthRequest, + request?: protos.google.container.v1.ISetMasterAuthRequest, options?: CallOptions ): Promise< [ @@ -1569,7 +1575,7 @@ export class ClusterManagerClient { * const [response] = await client.setMasterAuth(request); */ setMasterAuth( - request: protos.google.container.v1.ISetMasterAuthRequest, + request?: protos.google.container.v1.ISetMasterAuthRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1609,7 +1615,7 @@ export class ClusterManagerClient { return this.innerApiCalls.setMasterAuth(request, options, callback); } deleteCluster( - request: protos.google.container.v1.IDeleteClusterRequest, + request?: protos.google.container.v1.IDeleteClusterRequest, options?: CallOptions ): Promise< [ @@ -1674,7 +1680,7 @@ export class ClusterManagerClient { * const [response] = await client.deleteCluster(request); */ deleteCluster( - request: protos.google.container.v1.IDeleteClusterRequest, + request?: protos.google.container.v1.IDeleteClusterRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1714,7 +1720,7 @@ export class ClusterManagerClient { return this.innerApiCalls.deleteCluster(request, options, callback); } listOperations( - request: protos.google.container.v1.IListOperationsRequest, + request?: protos.google.container.v1.IListOperationsRequest, options?: CallOptions ): Promise< [ @@ -1769,7 +1775,7 @@ export class ClusterManagerClient { * const [response] = await client.listOperations(request); */ listOperations( - request: protos.google.container.v1.IListOperationsRequest, + request?: protos.google.container.v1.IListOperationsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1809,7 +1815,7 @@ export class ClusterManagerClient { return this.innerApiCalls.listOperations(request, options, callback); } getOperation( - request: protos.google.container.v1.IGetOperationRequest, + request?: protos.google.container.v1.IGetOperationRequest, options?: CallOptions ): Promise< [ @@ -1866,7 +1872,7 @@ export class ClusterManagerClient { * const [response] = await client.getOperation(request); */ getOperation( - request: protos.google.container.v1.IGetOperationRequest, + request?: protos.google.container.v1.IGetOperationRequest, optionsOrCallback?: | CallOptions | Callback< @@ -1906,7 +1912,7 @@ export class ClusterManagerClient { return this.innerApiCalls.getOperation(request, options, callback); } cancelOperation( - request: protos.google.container.v1.ICancelOperationRequest, + request?: protos.google.container.v1.ICancelOperationRequest, options?: CallOptions ): Promise< [ @@ -1963,7 +1969,7 @@ export class ClusterManagerClient { * const [response] = await client.cancelOperation(request); */ cancelOperation( - request: protos.google.container.v1.ICancelOperationRequest, + request?: protos.google.container.v1.ICancelOperationRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2003,7 +2009,7 @@ export class ClusterManagerClient { return this.innerApiCalls.cancelOperation(request, options, callback); } getServerConfig( - request: protos.google.container.v1.IGetServerConfigRequest, + request?: protos.google.container.v1.IGetServerConfigRequest, options?: CallOptions ): Promise< [ @@ -2057,7 +2063,7 @@ export class ClusterManagerClient { * const [response] = await client.getServerConfig(request); */ getServerConfig( - request: protos.google.container.v1.IGetServerConfigRequest, + request?: protos.google.container.v1.IGetServerConfigRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2097,7 +2103,7 @@ export class ClusterManagerClient { return this.innerApiCalls.getServerConfig(request, options, callback); } getJSONWebKeys( - request: protos.google.container.v1.IGetJSONWebKeysRequest, + request?: protos.google.container.v1.IGetJSONWebKeysRequest, options?: CallOptions ): Promise< [ @@ -2145,7 +2151,7 @@ export class ClusterManagerClient { * const [response] = await client.getJSONWebKeys(request); */ getJSONWebKeys( - request: protos.google.container.v1.IGetJSONWebKeysRequest, + request?: protos.google.container.v1.IGetJSONWebKeysRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2184,7 +2190,7 @@ export class ClusterManagerClient { return this.innerApiCalls.getJSONWebKeys(request, options, callback); } listNodePools( - request: protos.google.container.v1.IListNodePoolsRequest, + request?: protos.google.container.v1.IListNodePoolsRequest, options?: CallOptions ): Promise< [ @@ -2241,7 +2247,7 @@ export class ClusterManagerClient { * const [response] = await client.listNodePools(request); */ listNodePools( - request: protos.google.container.v1.IListNodePoolsRequest, + request?: protos.google.container.v1.IListNodePoolsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2281,7 +2287,7 @@ export class ClusterManagerClient { return this.innerApiCalls.listNodePools(request, options, callback); } getNodePool( - request: protos.google.container.v1.IGetNodePoolRequest, + request?: protos.google.container.v1.IGetNodePoolRequest, options?: CallOptions ): Promise< [ @@ -2342,7 +2348,7 @@ export class ClusterManagerClient { * const [response] = await client.getNodePool(request); */ getNodePool( - request: protos.google.container.v1.IGetNodePoolRequest, + request?: protos.google.container.v1.IGetNodePoolRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2382,7 +2388,7 @@ export class ClusterManagerClient { return this.innerApiCalls.getNodePool(request, options, callback); } createNodePool( - request: protos.google.container.v1.ICreateNodePoolRequest, + request?: protos.google.container.v1.ICreateNodePoolRequest, options?: CallOptions ): Promise< [ @@ -2442,7 +2448,7 @@ export class ClusterManagerClient { * const [response] = await client.createNodePool(request); */ createNodePool( - request: protos.google.container.v1.ICreateNodePoolRequest, + request?: protos.google.container.v1.ICreateNodePoolRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2482,7 +2488,7 @@ export class ClusterManagerClient { return this.innerApiCalls.createNodePool(request, options, callback); } deleteNodePool( - request: protos.google.container.v1.IDeleteNodePoolRequest, + request?: protos.google.container.v1.IDeleteNodePoolRequest, options?: CallOptions ): Promise< [ @@ -2543,7 +2549,7 @@ export class ClusterManagerClient { * const [response] = await client.deleteNodePool(request); */ deleteNodePool( - request: protos.google.container.v1.IDeleteNodePoolRequest, + request?: protos.google.container.v1.IDeleteNodePoolRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2583,7 +2589,7 @@ export class ClusterManagerClient { return this.innerApiCalls.deleteNodePool(request, options, callback); } rollbackNodePoolUpgrade( - request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, + request?: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, options?: CallOptions ): Promise< [ @@ -2649,7 +2655,7 @@ export class ClusterManagerClient { * const [response] = await client.rollbackNodePoolUpgrade(request); */ rollbackNodePoolUpgrade( - request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, + request?: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2697,7 +2703,7 @@ export class ClusterManagerClient { ); } setNodePoolManagement( - request: protos.google.container.v1.ISetNodePoolManagementRequest, + request?: protos.google.container.v1.ISetNodePoolManagementRequest, options?: CallOptions ): Promise< [ @@ -2764,7 +2770,7 @@ export class ClusterManagerClient { * const [response] = await client.setNodePoolManagement(request); */ setNodePoolManagement( - request: protos.google.container.v1.ISetNodePoolManagementRequest, + request?: protos.google.container.v1.ISetNodePoolManagementRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2808,7 +2814,7 @@ export class ClusterManagerClient { return this.innerApiCalls.setNodePoolManagement(request, options, callback); } setLabels( - request: protos.google.container.v1.ISetLabelsRequest, + request?: protos.google.container.v1.ISetLabelsRequest, options?: CallOptions ): Promise< [ @@ -2874,7 +2880,7 @@ export class ClusterManagerClient { * const [response] = await client.setLabels(request); */ setLabels( - request: protos.google.container.v1.ISetLabelsRequest, + request?: protos.google.container.v1.ISetLabelsRequest, optionsOrCallback?: | CallOptions | Callback< @@ -2914,7 +2920,7 @@ export class ClusterManagerClient { return this.innerApiCalls.setLabels(request, options, callback); } setLegacyAbac( - request: protos.google.container.v1.ISetLegacyAbacRequest, + request?: protos.google.container.v1.ISetLegacyAbacRequest, options?: CallOptions ): Promise< [ @@ -2973,7 +2979,7 @@ export class ClusterManagerClient { * const [response] = await client.setLegacyAbac(request); */ setLegacyAbac( - request: protos.google.container.v1.ISetLegacyAbacRequest, + request?: protos.google.container.v1.ISetLegacyAbacRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3013,7 +3019,7 @@ export class ClusterManagerClient { return this.innerApiCalls.setLegacyAbac(request, options, callback); } startIPRotation( - request: protos.google.container.v1.IStartIPRotationRequest, + request?: protos.google.container.v1.IStartIPRotationRequest, options?: CallOptions ): Promise< [ @@ -3072,7 +3078,7 @@ export class ClusterManagerClient { * const [response] = await client.startIPRotation(request); */ startIPRotation( - request: protos.google.container.v1.IStartIPRotationRequest, + request?: protos.google.container.v1.IStartIPRotationRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3112,7 +3118,7 @@ export class ClusterManagerClient { return this.innerApiCalls.startIPRotation(request, options, callback); } completeIPRotation( - request: protos.google.container.v1.ICompleteIPRotationRequest, + request?: protos.google.container.v1.ICompleteIPRotationRequest, options?: CallOptions ): Promise< [ @@ -3169,7 +3175,7 @@ export class ClusterManagerClient { * const [response] = await client.completeIPRotation(request); */ completeIPRotation( - request: protos.google.container.v1.ICompleteIPRotationRequest, + request?: protos.google.container.v1.ICompleteIPRotationRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3211,7 +3217,7 @@ export class ClusterManagerClient { return this.innerApiCalls.completeIPRotation(request, options, callback); } setNodePoolSize( - request: protos.google.container.v1.ISetNodePoolSizeRequest, + request?: protos.google.container.v1.ISetNodePoolSizeRequest, options?: CallOptions ): Promise< [ @@ -3274,7 +3280,7 @@ export class ClusterManagerClient { * const [response] = await client.setNodePoolSize(request); */ setNodePoolSize( - request: protos.google.container.v1.ISetNodePoolSizeRequest, + request?: protos.google.container.v1.ISetNodePoolSizeRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3314,7 +3320,7 @@ export class ClusterManagerClient { return this.innerApiCalls.setNodePoolSize(request, options, callback); } setNetworkPolicy( - request: protos.google.container.v1.ISetNetworkPolicyRequest, + request?: protos.google.container.v1.ISetNetworkPolicyRequest, options?: CallOptions ): Promise< [ @@ -3373,7 +3379,7 @@ export class ClusterManagerClient { * const [response] = await client.setNetworkPolicy(request); */ setNetworkPolicy( - request: protos.google.container.v1.ISetNetworkPolicyRequest, + request?: protos.google.container.v1.ISetNetworkPolicyRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3415,7 +3421,7 @@ export class ClusterManagerClient { return this.innerApiCalls.setNetworkPolicy(request, options, callback); } setMaintenancePolicy( - request: protos.google.container.v1.ISetMaintenancePolicyRequest, + request?: protos.google.container.v1.ISetMaintenancePolicyRequest, options?: CallOptions ): Promise< [ @@ -3477,7 +3483,7 @@ export class ClusterManagerClient { * const [response] = await client.setMaintenancePolicy(request); */ setMaintenancePolicy( - request: protos.google.container.v1.ISetMaintenancePolicyRequest, + request?: protos.google.container.v1.ISetMaintenancePolicyRequest, optionsOrCallback?: | CallOptions | Callback< @@ -3522,7 +3528,7 @@ export class ClusterManagerClient { } listUsableSubnetworks( - request: protos.google.container.v1.IListUsableSubnetworksRequest, + request?: protos.google.container.v1.IListUsableSubnetworksRequest, options?: CallOptions ): Promise< [ @@ -3587,7 +3593,7 @@ export class ClusterManagerClient { * for more details and examples. */ listUsableSubnetworks( - request: protos.google.container.v1.IListUsableSubnetworksRequest, + request?: protos.google.container.v1.IListUsableSubnetworksRequest, optionsOrCallback?: | CallOptions | PaginationCallback< From 5249bcb8266c84b4dfae08fe11148ae58871aa16 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 28 Jun 2021 16:50:22 +0000 Subject: [PATCH 290/371] chore: release 2.3.1 (#456) :robot: I have created a release \*beep\* \*boop\* --- ### [2.3.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.3.0...v2.3.1) (2021-06-25) ### Bug Fixes * make request optional in all cases ([#454](https://www.github.com/googleapis/nodejs-cloud-container/issues/454)) ([65ac281](https://www.github.com/googleapis/nodejs-cloud-container/commit/65ac2813d05cf21d234e42a52b73dae2f723de0f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 948d626bcfc..9faf6cce169 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [2.3.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.3.0...v2.3.1) (2021-06-25) + + +### Bug Fixes + +* make request optional in all cases ([#454](https://www.github.com/googleapis/nodejs-cloud-container/issues/454)) ([65ac281](https://www.github.com/googleapis/nodejs-cloud-container/commit/65ac2813d05cf21d234e42a52b73dae2f723de0f)) + ## [2.3.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.2.2...v2.3.0) (2021-06-09) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index b16c98c4aae..daa40fdab56 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.3.0", + "version": "2.3.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 1807053be1b..1a6e7efe699 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.3.0" + "@google-cloud/container": "^2.3.1" }, "devDependencies": { "chai": "^4.2.0", From 79255137a52f08532a282073242ff6737fca42fa Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Wed, 30 Jun 2021 12:20:23 -0400 Subject: [PATCH 291/371] fix(deps): google-gax v2.17.0 with mTLS (#459) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index daa40fdab56..fead07e0136 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -43,7 +43,7 @@ "precompile": "gts clean" }, "dependencies": { - "google-gax": "^2.12.0" + "google-gax": "^2.17.0" }, "devDependencies": { "@types/mocha": "^8.0.0", From dc39f872da3e12a71e53f5bb85219adce1305969 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 30 Jun 2021 12:28:22 -0700 Subject: [PATCH 292/371] chore: release 2.3.2 (#461) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 9faf6cce169..8450acac718 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [2.3.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.3.1...v2.3.2) (2021-06-30) + + +### Bug Fixes + +* **deps:** google-gax v2.17.0 with mTLS ([#459](https://www.github.com/googleapis/nodejs-cloud-container/issues/459)) ([d8ba534](https://www.github.com/googleapis/nodejs-cloud-container/commit/d8ba534408f9573f1da21d337081975fe80f68fa)) + ### [2.3.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.3.0...v2.3.1) (2021-06-25) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index fead07e0136..3e4e9f51f1d 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.3.1", + "version": "2.3.2", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 1a6e7efe699..eca55c59b19 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.3.1" + "@google-cloud/container": "^2.3.2" }, "devDependencies": { "chai": "^4.2.0", From 30c9e66c34a4a1abf898c526f317caaa0196f7ed Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Jul 2021 10:57:09 -0700 Subject: [PATCH 293/371] feat: allow updating security group on existing clusters (#464) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: allow updating security group on existing clusters PiperOrigin-RevId: 383869440 Source-Link: https://github.com/googleapis/googleapis/commit/e2b7a98e29cabf5d7ee3c359939d8028bb1cca49 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5476d7b26768d3d6c3c8c50b6b0fac42213d92c9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../google/container/v1/cluster_service.proto | 3 +++ packages/google-container/protos/protos.d.ts | 6 +++++ packages/google-container/protos/protos.js | 27 +++++++++++++++++++ packages/google-container/protos/protos.json | 4 +++ 4 files changed, 40 insertions(+) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 59539587398..895142cabd1 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -1517,6 +1517,9 @@ message ClusterUpdate { // The desired release channel configuration. ReleaseChannel desired_release_channel = 31; + // The desired authenticator groups config for the cluster. + AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + // The Kubernetes version to change the master to. // // Users may specify either explicit versions offered by diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 60b8d1c97b7..df069a98ecf 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -3747,6 +3747,9 @@ export namespace google { /** ClusterUpdate desiredReleaseChannel */ desiredReleaseChannel?: (google.container.v1.IReleaseChannel|null); + /** ClusterUpdate desiredAuthenticatorGroupsConfig */ + desiredAuthenticatorGroupsConfig?: (google.container.v1.IAuthenticatorGroupsConfig|null); + /** ClusterUpdate desiredMasterVersion */ desiredMasterVersion?: (string|null); } @@ -3820,6 +3823,9 @@ export namespace google { /** ClusterUpdate desiredReleaseChannel. */ public desiredReleaseChannel?: (google.container.v1.IReleaseChannel|null); + /** ClusterUpdate desiredAuthenticatorGroupsConfig. */ + public desiredAuthenticatorGroupsConfig?: (google.container.v1.IAuthenticatorGroupsConfig|null); + /** ClusterUpdate desiredMasterVersion. */ public desiredMasterVersion: string; diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 82534e09fd7..101a66634e0 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -8933,6 +8933,7 @@ * @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 {google.container.v1.IAuthenticatorGroupsConfig|null} [desiredAuthenticatorGroupsConfig] ClusterUpdate desiredAuthenticatorGroupsConfig * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion */ @@ -9112,6 +9113,14 @@ */ ClusterUpdate.prototype.desiredReleaseChannel = null; + /** + * ClusterUpdate desiredAuthenticatorGroupsConfig. + * @member {google.container.v1.IAuthenticatorGroupsConfig|null|undefined} desiredAuthenticatorGroupsConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredAuthenticatorGroupsConfig = null; + /** * ClusterUpdate desiredMasterVersion. * @member {string} desiredMasterVersion @@ -9185,6 +9194,8 @@ $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.desiredAuthenticatorGroupsConfig != null && Object.hasOwnProperty.call(message, "desiredAuthenticatorGroupsConfig")) + $root.google.container.v1.AuthenticatorGroupsConfig.encode(message.desiredAuthenticatorGroupsConfig, writer.uint32(/* id 63, wireType 2 =*/506).fork()).ldelim(); if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); return writer; @@ -9283,6 +9294,9 @@ case 31: message.desiredReleaseChannel = $root.google.container.v1.ReleaseChannel.decode(reader, reader.uint32()); break; + case 63: + message.desiredAuthenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.decode(reader, reader.uint32()); + break; case 100: message.desiredMasterVersion = reader.string(); break; @@ -9413,6 +9427,11 @@ if (error) return "desiredReleaseChannel." + error; } + if (message.desiredAuthenticatorGroupsConfig != null && message.hasOwnProperty("desiredAuthenticatorGroupsConfig")) { + var error = $root.google.container.v1.AuthenticatorGroupsConfig.verify(message.desiredAuthenticatorGroupsConfig); + if (error) + return "desiredAuthenticatorGroupsConfig." + error; + } if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) if (!$util.isString(message.desiredMasterVersion)) return "desiredMasterVersion: string expected"; @@ -9518,6 +9537,11 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredReleaseChannel: object expected"); message.desiredReleaseChannel = $root.google.container.v1.ReleaseChannel.fromObject(object.desiredReleaseChannel); } + if (object.desiredAuthenticatorGroupsConfig != null) { + if (typeof object.desiredAuthenticatorGroupsConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredAuthenticatorGroupsConfig: object expected"); + message.desiredAuthenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.fromObject(object.desiredAuthenticatorGroupsConfig); + } if (object.desiredMasterVersion != null) message.desiredMasterVersion = String(object.desiredMasterVersion); return message; @@ -9558,6 +9582,7 @@ object.desiredDatabaseEncryption = null; object.desiredWorkloadIdentityConfig = null; object.desiredShieldedNodes = null; + object.desiredAuthenticatorGroupsConfig = null; object.desiredMasterVersion = ""; } if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) @@ -9603,6 +9628,8 @@ 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.desiredAuthenticatorGroupsConfig != null && message.hasOwnProperty("desiredAuthenticatorGroupsConfig")) + object.desiredAuthenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.toObject(message.desiredAuthenticatorGroupsConfig, options); if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) object.desiredMasterVersion = message.desiredMasterVersion; return object; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 130ad60a412..9cf722b40f6 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -1671,6 +1671,10 @@ "type": "ReleaseChannel", "id": 31 }, + "desiredAuthenticatorGroupsConfig": { + "type": "AuthenticatorGroupsConfig", + "id": 63 + }, "desiredMasterVersion": { "type": "string", "id": 100 From 0ef5425320deccbf10862f27b3063479b66def0a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 9 Jul 2021 18:02:09 +0000 Subject: [PATCH 294/371] chore: release 2.4.0 (#465) :robot: I have created a release \*beep\* \*boop\* --- ## [2.4.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.3.2...v2.4.0) (2021-07-09) ### Features * allow updating security group on existing clusters ([#464](https://www.github.com/googleapis/nodejs-cloud-container/issues/464)) ([ed09e02](https://www.github.com/googleapis/nodejs-cloud-container/commit/ed09e028126d308cf131f26453fe6c73a73cec6d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 8450acac718..4deee09ffca 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [2.4.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.3.2...v2.4.0) (2021-07-09) + + +### Features + +* allow updating security group on existing clusters ([#464](https://www.github.com/googleapis/nodejs-cloud-container/issues/464)) ([ed09e02](https://www.github.com/googleapis/nodejs-cloud-container/commit/ed09e028126d308cf131f26453fe6c73a73cec6d)) + ### [2.3.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.3.1...v2.3.2) (2021-06-30) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 3e4e9f51f1d..839c1d5e27d 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.3.2", + "version": "2.4.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index eca55c59b19..e50ff1e7e16 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.3.2" + "@google-cloud/container": "^2.4.0" }, "devDependencies": { "chai": "^4.2.0", From 6314930ff84ff38e3f466593df2680954ac76d8b Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 12 Jul 2021 18:34:26 -0400 Subject: [PATCH 295/371] fix(deps): google-gax v2.17.1 (#466) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 839c1d5e27d..c3219c565d2 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -43,7 +43,7 @@ "precompile": "gts clean" }, "dependencies": { - "google-gax": "^2.17.0" + "google-gax": "^2.17.1" }, "devDependencies": { "@types/mocha": "^8.0.0", From 4a42c1b2e2ef572d8c202102d1b303cd664be903 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 12 Jul 2021 23:00:57 +0000 Subject: [PATCH 296/371] chore: release 2.4.1 (#467) :robot: I have created a release \*beep\* \*boop\* --- ### [2.4.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.0...v2.4.1) (2021-07-12) ### Bug Fixes * **deps:** google-gax v2.17.1 ([#466](https://www.github.com/googleapis/nodejs-cloud-container/issues/466)) ([a1b1e2a](https://www.github.com/googleapis/nodejs-cloud-container/commit/a1b1e2a9c38b103fe3caa804230d53a19b854cd4)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 4deee09ffca..c0a21fea030 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [2.4.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.0...v2.4.1) (2021-07-12) + + +### Bug Fixes + +* **deps:** google-gax v2.17.1 ([#466](https://www.github.com/googleapis/nodejs-cloud-container/issues/466)) ([a1b1e2a](https://www.github.com/googleapis/nodejs-cloud-container/commit/a1b1e2a9c38b103fe3caa804230d53a19b854cd4)) + ## [2.4.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.3.2...v2.4.0) (2021-07-09) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index c3219c565d2..15b413fe6da 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.4.0", + "version": "2.4.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index e50ff1e7e16..f16739bac80 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.4.0" + "@google-cloud/container": "^2.4.1" }, "devDependencies": { "chai": "^4.2.0", From 3342ca9751bbc02cd31114120d2fc9ed47c4e5b9 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 16 Jul 2021 19:08:22 +0000 Subject: [PATCH 297/371] fix: Updating WORKSPACE files to use the newest version of the Typescript generator. (#468) Also removing the explicit generator tag for the IAMPolicy mixin for the kms and pubsub APIS as the generator will now read it from the .yaml file. PiperOrigin-RevId: 385101839 Source-Link: https://github.com/googleapis/googleapis/commit/80f404215a9346259db760d80d0671f28c433453 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d3509d2520fb8db862129633f1cf8406d17454e1 --- .../src/v1/cluster_manager_client.ts | 13 +++++++++++-- .../test/gapic_cluster_manager_v1.ts | 6 ++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 2cc42a7fe07..410b672b707 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -48,6 +48,7 @@ const version = require('../../../package.json').version; export class ClusterManagerClient { private _terminated = false; private _opts: ClientOptions; + private _providedCustomServicePath: boolean; private _gaxModule: typeof gax | typeof gax.fallback; private _gaxGrpc: gax.GrpcClient | gax.fallback.GrpcClient; private _protos: {}; @@ -59,6 +60,7 @@ export class ClusterManagerClient { longrunning: {}, batching: {}, }; + warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; clusterManagerStub?: Promise<{[name: string]: Function}>; @@ -101,6 +103,9 @@ export class ClusterManagerClient { const staticMembers = this.constructor as typeof ClusterManagerClient; const servicePath = opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath; + this._providedCustomServicePath = !!( + opts?.servicePath || opts?.apiEndpoint + ); const port = opts?.port || staticMembers.port; const clientConfig = opts?.clientConfig ?? {}; const fallback = @@ -171,6 +176,9 @@ export class ClusterManagerClient { // of calling the API is handled in `google-gax`, with this code // merely providing the destination and request information. this.innerApiCalls = {}; + + // Add a warn function to the client constructor so it can be easily tested. + this.warn = gax.warn; } /** @@ -199,7 +207,8 @@ export class ClusterManagerClient { ) : // eslint-disable-next-line @typescript-eslint/no-explicit-any (this._protos as any).google.container.v1.ClusterManager, - this._opts + this._opts, + this._providedCustomServicePath ) as Promise<{[method: string]: Function}>; // Iterate over each of the methods that the service provides @@ -1396,7 +1405,7 @@ export class ClusterManagerClient { project_id: request.projectId || '', }); this.initialize(); - gax.warn( + this.warn( 'DEP$ClusterManager-$SetLocations', 'SetLocations is deprecated and may be removed in a future version.', 'DeprecationWarning' diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index f6c50c3214b..cae7b4e668f 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -1232,6 +1232,7 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + const stub = sinon.stub(client, 'warn'); client.initialize(); const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() @@ -1251,6 +1252,7 @@ describe('v1.ClusterManagerClient', () => { ); client.innerApiCalls.setLocations = stubSimpleCall(expectedResponse); const [response] = await client.setLocations(request); + assert(stub.calledOnce); assert.deepStrictEqual(response, expectedResponse); assert( (client.innerApiCalls.setLocations as SinonStub) @@ -1264,6 +1266,7 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + const stub = sinon.stub(client, 'warn'); client.initialize(); const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() @@ -1299,6 +1302,7 @@ describe('v1.ClusterManagerClient', () => { ); }); const response = await promise; + assert(stub.calledOnce); assert.deepStrictEqual(response, expectedResponse); assert( (client.innerApiCalls.setLocations as SinonStub) @@ -1312,6 +1316,7 @@ describe('v1.ClusterManagerClient', () => { credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); + const stub = sinon.stub(client, 'warn'); client.initialize(); const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() @@ -1332,6 +1337,7 @@ describe('v1.ClusterManagerClient', () => { expectedError ); await assert.rejects(client.setLocations(request), expectedError); + assert(stub.calledOnce); assert( (client.innerApiCalls.setLocations as SinonStub) .getCall(0) From 6bf1cefe534610d4ef89d0b532d63232bf8209d6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 16 Jul 2021 12:48:12 -0700 Subject: [PATCH 298/371] chore: release 2.4.2 (#469) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index c0a21fea030..8ccca7090b1 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [2.4.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.1...v2.4.2) (2021-07-16) + + +### Bug Fixes + +* Updating WORKSPACE files to use the newest version of the Typescript generator. ([#468](https://www.github.com/googleapis/nodejs-cloud-container/issues/468)) ([2257eff](https://www.github.com/googleapis/nodejs-cloud-container/commit/2257eff6c1d5a50728fecc2fa27881b2addaba68)) + ### [2.4.1](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.0...v2.4.1) (2021-07-12) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 15b413fe6da..4c5b11c814d 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.4.1", + "version": "2.4.2", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index f16739bac80..0c98ef2cac6 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.4.1" + "@google-cloud/container": "^2.4.2" }, "devDependencies": { "chai": "^4.2.0", From d8980ce6ccc46aa23d4f777649a06fc725bdc988 Mon Sep 17 00:00:00 2001 From: "F. Hinkelmann" Date: Wed, 4 Aug 2021 16:04:38 -0400 Subject: [PATCH 299/371] chore(nodejs): update client ref docs link in metadata (#474) --- packages/google-container/.repo-metadata.json | 2 +- packages/google-container/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json index 63c4bb24810..c64de515756 100644 --- a/packages/google-container/.repo-metadata.json +++ b/packages/google-container/.repo-metadata.json @@ -10,6 +10,6 @@ "product_documentation": "https://cloud.google.com/kubernetes-engine", "codeowner_team": "@googleapis/anthos-dpe", "name_pretty": "Kubernetes Engine Cluster Manager API", - "client_documentation": "https://googleapis.dev/nodejs/container/latest", + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/container/latest", "release_level": "ga" } diff --git a/packages/google-container/README.md b/packages/google-container/README.md index e2ddec78d40..43e0a2970d7 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -161,7 +161,7 @@ Apache Version 2.0 See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/master/LICENSE) -[client-docs]: https://googleapis.dev/nodejs/container/latest +[client-docs]: https://cloud.google.com/nodejs/docs/reference/container/latest [product-docs]: https://cloud.google.com/kubernetes-engine [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png [projects]: https://console.cloud.google.com/project From 10a49c327a97addf930d0fbdedd8bd759ff51d14 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Mon, 16 Aug 2021 13:50:15 -0700 Subject: [PATCH 300/371] fix(build): migrate to using main branch (#476) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(build): migrate to using main branch * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- packages/google-container/README.md | 16 ++++++++-------- packages/google-container/samples/README.md | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 43e0a2970d7..6f98973b136 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -6,7 +6,7 @@ [![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/container.svg)](https://www.npmjs.org/package/@google-cloud/container) -[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-cloud-container/master.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-cloud-container) +[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-cloud-container/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-cloud-container) @@ -18,7 +18,7 @@ building and managing container based applications, powered by the open source K A comprehensive list of changes in each version may be found in -[the CHANGELOG](https://github.com/googleapis/nodejs-cloud-container/blob/master/CHANGELOG.md). +[the CHANGELOG](https://github.com/googleapis/nodejs-cloud-container/blob/main/CHANGELOG.md). * [Kubernetes Engine Cluster Manager API Node.js Client API Reference][client-docs] * [Kubernetes Engine Cluster Manager API Documentation][product-docs] @@ -94,11 +94,11 @@ To run commands against the clusters created, you will need to use the ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloud-container/tree/master/samples) directory. Each sample's `README.md` has instructions for running its sample. +Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloud-container/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Quickstart | [source code](https://github.com/googleapis/nodejs-cloud-container/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | @@ -147,19 +147,19 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] ## Contributing -Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-cloud-container/blob/master/CONTRIBUTING.md). +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-cloud-container/blob/main/CONTRIBUTING.md). Please note that this `README.md`, the `samples/README.md`, and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) are generated from a central template. To edit one of these files, make an edit -to its template in this -[directory](https://github.com/googleapis/synthtool/tree/master/synthtool/gcp/templates/node_library). +to its templates in +[directory](https://github.com/googleapis/synthtool). ## License Apache Version 2.0 -See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/master/LICENSE) +See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/main/LICENSE) [client-docs]: https://cloud.google.com/nodejs/docs/reference/container/latest [product-docs]: https://cloud.google.com/kubernetes-engine diff --git a/packages/google-container/samples/README.md b/packages/google-container/samples/README.md index c330b53c7df..e631848e950 100644 --- a/packages/google-container/samples/README.md +++ b/packages/google-container/samples/README.md @@ -34,7 +34,7 @@ Before running the samples, make sure you've followed the steps outlined in ### Quickstart -View the [source code](https://github.com/googleapis/nodejs-cloud-container/blob/master/samples/quickstart.js). +View the [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/quickstart.js). [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) From 8248c1432943b4db223d728faf506ef31d616c34 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 16 Aug 2021 20:58:09 +0000 Subject: [PATCH 301/371] chore: release 2.4.3 (#478) :robot: I have created a release \*beep\* \*boop\* --- ### [2.4.3](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.2...v2.4.3) (2021-08-16) ### Bug Fixes * **build:** migrate to using main branch ([#476](https://www.github.com/googleapis/nodejs-cloud-container/issues/476)) ([7440626](https://www.github.com/googleapis/nodejs-cloud-container/commit/7440626c34f9e7dcc16a6e19a71e5db6eee5b6bf)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 8ccca7090b1..12ad6aa3bdc 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [2.4.3](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.2...v2.4.3) (2021-08-16) + + +### Bug Fixes + +* **build:** migrate to using main branch ([#476](https://www.github.com/googleapis/nodejs-cloud-container/issues/476)) ([7440626](https://www.github.com/googleapis/nodejs-cloud-container/commit/7440626c34f9e7dcc16a6e19a71e5db6eee5b6bf)) + ### [2.4.2](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.1...v2.4.2) (2021-07-16) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 4c5b11c814d..0d35793081b 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.4.2", + "version": "2.4.3", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 0c98ef2cac6..67e06002791 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.4.2" + "@google-cloud/container": "^2.4.3" }, "devDependencies": { "chai": "^4.2.0", From cbf9746ff50262037d3149edf262572b57b74c2f Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 16 Aug 2021 23:22:27 -0400 Subject: [PATCH 302/371] fix(deps): google-gax v2.24.1 (#477) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 0d35793081b..7bf8519795f 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -43,7 +43,7 @@ "precompile": "gts clean" }, "dependencies": { - "google-gax": "^2.17.1" + "google-gax": "^2.24.1" }, "devDependencies": { "@types/mocha": "^8.0.0", From 201b0fb9c77af98aa4d104d9ebcab76091a6c556 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 17 Aug 2021 03:44:40 +0000 Subject: [PATCH 303/371] chore: release 2.4.4 (#479) :robot: I have created a release \*beep\* \*boop\* --- ### [2.4.4](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.3...v2.4.4) (2021-08-17) ### Bug Fixes * **deps:** google-gax v2.24.1 ([#477](https://www.github.com/googleapis/nodejs-cloud-container/issues/477)) ([11bdd83](https://www.github.com/googleapis/nodejs-cloud-container/commit/11bdd83b4c676b9c10608c9f505a10261f2bb939)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 12ad6aa3bdc..fd2ec0b8b1f 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [2.4.4](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.3...v2.4.4) (2021-08-17) + + +### Bug Fixes + +* **deps:** google-gax v2.24.1 ([#477](https://www.github.com/googleapis/nodejs-cloud-container/issues/477)) ([11bdd83](https://www.github.com/googleapis/nodejs-cloud-container/commit/11bdd83b4c676b9c10608c9f505a10261f2bb939)) + ### [2.4.3](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.2...v2.4.3) (2021-08-16) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 7bf8519795f..41ffb85542f 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.4.3", + "version": "2.4.4", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 67e06002791..2ee767e58ff 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.4.3" + "@google-cloud/container": "^2.4.4" }, "devDependencies": { "chai": "^4.2.0", From 9a556f2b1217491ebc315c50c9c651edae335a26 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 18:28:10 +0000 Subject: [PATCH 304/371] feat: turns on self-signed JWT feature flag (#480) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 392067151 Source-Link: https://github.com/googleapis/googleapis/commit/06345f7b95c4b4a3ffe4303f1f2984ccc304b2e0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/95882b37970e41e4cd51b22fa507cfd46dc7c4b6 --- packages/google-container/src/v1/cluster_manager_client.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 410b672b707..9f91cd81536 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -130,6 +130,12 @@ export class ClusterManagerClient { // Save the auth object to the client, for use by other methods. this.auth = this._gaxGrpc.auth as gax.GoogleAuth; + // Set useJWTAccessWithScope on the auth object. + this.auth.useJWTAccessWithScope = true; + + // Set defaultServicePath on the auth object. + this.auth.defaultServicePath = staticMembers.servicePath; + // Set the default scopes in auth client if needed. if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; From 9fbdee0b041433b376380605cd29feb0bf23aa02 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 23 Aug 2021 18:36:11 +0000 Subject: [PATCH 305/371] chore: release 2.5.0 (#481) :robot: I have created a release \*beep\* \*boop\* --- ## [2.5.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.4...v2.5.0) (2021-08-23) ### Features * turns on self-signed JWT feature flag ([#480](https://www.github.com/googleapis/nodejs-cloud-container/issues/480)) ([f7a7887](https://www.github.com/googleapis/nodejs-cloud-container/commit/f7a7887be1168b8f15e6de556df5774d1da42b32)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index fd2ec0b8b1f..f4591882f35 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [2.5.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.4...v2.5.0) (2021-08-23) + + +### Features + +* turns on self-signed JWT feature flag ([#480](https://www.github.com/googleapis/nodejs-cloud-container/issues/480)) ([f7a7887](https://www.github.com/googleapis/nodejs-cloud-container/commit/f7a7887be1168b8f15e6de556df5774d1da42b32)) + ### [2.4.4](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.3...v2.4.4) (2021-08-17) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 41ffb85542f..408ab895dc8 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.4.4", + "version": "2.5.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 2ee767e58ff..170f0773538 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.4.4" + "@google-cloud/container": "^2.5.0" }, "devDependencies": { "chai": "^4.2.0", From ecd4955b9f69df723653000098f68457f053bcdd Mon Sep 17 00:00:00 2001 From: Jeffrey Rennie Date: Tue, 21 Sep 2021 07:14:49 -0700 Subject: [PATCH 306/371] chore: relocate owl bot post processor (#486) chore: relocate owl bot post processor --- packages/google-container/.github/.OwlBot.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/.github/.OwlBot.yaml b/packages/google-container/.github/.OwlBot.yaml index 46819d3af51..b2174b52997 100644 --- a/packages/google-container/.github/.OwlBot.yaml +++ b/packages/google-container/.github/.OwlBot.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. docker: - image: gcr.io/repo-automation-bots/owlbot-nodejs:latest + image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest deep-remove-regex: - /owl-bot-staging From 7f2d49516885d4c284efeeaefdd6e63c2519f673 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 24 Sep 2021 12:26:20 -0700 Subject: [PATCH 307/371] docs(samples): add auto-generated Node samples (#488) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(samples): add auto-generated Node samples build(generator): find protoc based on its bazel location PiperOrigin-RevId: 398604509 Source-Link: https://github.com/googleapis/googleapis/commit/6ef16b9ecf427f387fa88e9b20b9355e64c863f0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8314e1ead3e906dbf2012ced8d92f2bc8dd45c95 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODMxNGUxZWFkM2U5MDZkYmYyMDEyY2VkOGQ5MmYyYmM4ZGQ0NWM5NSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * build: update samples engine Co-authored-by: Owl Bot Co-authored-by: Sofia Leon --- .../v1/cluster_manager.cancel_operation.js | 69 +++++++++++ .../cluster_manager.complete_i_p_rotation.js | 69 +++++++++++ .../v1/cluster_manager.create_cluster.js | 71 +++++++++++ .../v1/cluster_manager.create_node_pool.js | 76 ++++++++++++ .../v1/cluster_manager.delete_cluster.js | 69 +++++++++++ .../v1/cluster_manager.delete_node_pool.js | 75 ++++++++++++ .../v1/cluster_manager.get_cluster.js | 69 +++++++++++ .../cluster_manager.get_j_s_o_n_web_keys.js | 51 ++++++++ .../v1/cluster_manager.get_node_pool.js | 75 ++++++++++++ .../v1/cluster_manager.get_operation.js | 69 +++++++++++ .../v1/cluster_manager.get_server_config.js | 64 ++++++++++ .../v1/cluster_manager.list_clusters.js | 65 +++++++++++ .../v1/cluster_manager.list_node_pools.js | 69 +++++++++++ .../v1/cluster_manager.list_operations.js | 65 +++++++++++ ...cluster_manager.list_usable_subnetworks.js | 72 ++++++++++++ ...ster_manager.rollback_node_pool_upgrade.js | 75 ++++++++++++ .../v1/cluster_manager.set_addons_config.js | 76 ++++++++++++ .../v1/cluster_manager.set_labels.js | 85 ++++++++++++++ .../v1/cluster_manager.set_legacy_abac.js | 75 ++++++++++++ .../v1/cluster_manager.set_locations.js | 80 +++++++++++++ .../v1/cluster_manager.set_logging_service.js | 83 +++++++++++++ .../cluster_manager.set_maintenance_policy.js | 77 ++++++++++++ .../v1/cluster_manager.set_master_auth.js | 80 +++++++++++++ .../cluster_manager.set_monitoring_service.js | 83 +++++++++++++ .../v1/cluster_manager.set_network_policy.js | 75 ++++++++++++ ...uster_manager.set_node_pool_autoscaling.js | 81 +++++++++++++ ...luster_manager.set_node_pool_management.js | 81 +++++++++++++ .../v1/cluster_manager.set_node_pool_size.js | 81 +++++++++++++ .../v1/cluster_manager.start_i_p_rotation.js | 73 ++++++++++++ .../v1/cluster_manager.update_cluster.js | 75 ++++++++++++ .../v1/cluster_manager.update_master.js | 82 +++++++++++++ .../v1/cluster_manager.update_node_pool.js | 110 ++++++++++++++++++ .../google-container/samples/package.json | 2 +- .../src/v1/cluster_manager_client.ts | 6 +- 34 files changed, 2405 insertions(+), 3 deletions(-) create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.get_operation.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.list_operations.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_labels.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_locations.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.update_master.js create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js diff --git a/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js b/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js new file mode 100644 index 00000000000..26cc3ed4cdf --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_CancelOperation_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + */ + // const operationId = 'abc123' + /** + * The name (project, location, operation id) of the operation to cancel. + * Specified in the format `projects/* /locations/* /operations/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function cancelOperation() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.cancelOperation(request); + console.log(response); + } + + cancelOperation(); + // [END container_v1_generated_ClusterManager_CancelOperation_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js new file mode 100644 index 00000000000..b2e2a99d2c9 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_CompleteIPRotation_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * The name (project, location, cluster id) of the cluster to complete IP + * rotation. Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function completeIPRotation() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.completeIPRotation(request); + console.log(response); + } + + completeIPRotation(); + // [END container_v1_generated_ClusterManager_CompleteIPRotation_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js new file mode 100644 index 00000000000..060dc4ad26c --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js @@ -0,0 +1,71 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(cluster) { + // [START container_v1_generated_ClusterManager_CreateCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Required. A [cluster + * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) + */ + // const cluster = '' + /** + * The parent (project and location) where the cluster will be created. + * Specified in the format `projects/* /locations/*`. + */ + // const parent = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function createCluster() { + // Construct request + const request = { + cluster, + }; + + // Run request + const response = await containerClient.createCluster(request); + console.log(response); + } + + createCluster(); + // [END container_v1_generated_ClusterManager_CreateCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js new file mode 100644 index 00000000000..0c2e430a40a --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js @@ -0,0 +1,76 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(nodePool) { + // [START container_v1_generated_ClusterManager_CreateNodePool_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + */ + // const clusterId = 'abc123' + /** + * Required. The node pool to create. + */ + // const nodePool = '' + /** + * The parent (project, location, cluster id) where the node pool will be + * created. Specified in the format + * `projects/* /locations/* /clusters/*`. + */ + // const parent = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function createNodePool() { + // Construct request + const request = { + nodePool, + }; + + // Run request + const response = await containerClient.createNodePool(request); + console.log(response); + } + + createNodePool(); + // [END container_v1_generated_ClusterManager_CreateNodePool_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js new file mode 100644 index 00000000000..f793d16d17f --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_DeleteCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to delete. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * The name (project, location, cluster) of the cluster to delete. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function deleteCluster() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.deleteCluster(request); + console.log(response); + } + + deleteCluster(); + // [END container_v1_generated_ClusterManager_DeleteCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js new file mode 100644 index 00000000000..07c99274410 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_DeleteNodePool_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Deprecated. The name of the node pool to delete. + * This field has been deprecated and replaced by the name field. + */ + // const nodePoolId = 'abc123' + /** + * The name (project, location, cluster, node pool id) of the node pool to + * delete. Specified in the format + * `projects/* /locations/* /clusters/* /nodePools/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function deleteNodePool() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.deleteNodePool(request); + console.log(response); + } + + deleteNodePool(); + // [END container_v1_generated_ClusterManager_DeleteNodePool_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js new file mode 100644 index 00000000000..c2c72e29504 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_GetCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to retrieve. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * The name (project, location, cluster) of the cluster to retrieve. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function getCluster() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.getCluster(request); + console.log(response); + } + + getCluster(); + // [END container_v1_generated_ClusterManager_GetCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js new file mode 100644 index 00000000000..6fff5afc470 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js @@ -0,0 +1,51 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_GetJSONWebKeys_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The cluster (project, location, cluster id) to get keys for. Specified in + * the format `projects/* /locations/* /clusters/*`. + */ + // const parent = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function getJSONWebKeys() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.getJSONWebKeys(request); + console.log(response); + } + + getJSONWebKeys(); + // [END container_v1_generated_ClusterManager_GetJSONWebKeys_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js new file mode 100644 index 00000000000..5ae1c800456 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_GetNodePool_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Deprecated. The name of the node pool. + * This field has been deprecated and replaced by the name field. + */ + // const nodePoolId = 'abc123' + /** + * The name (project, location, cluster, node pool id) of the node pool to + * get. Specified in the format + * `projects/* /locations/* /clusters/* /nodePools/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function getNodePool() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.getNodePool(request); + console.log(response); + } + + getNodePool(); + // [END container_v1_generated_ClusterManager_GetNodePool_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js b/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js new file mode 100644 index 00000000000..a9c1ae101ff --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_GetOperation_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The server-assigned `name` of the operation. + * This field has been deprecated and replaced by the name field. + */ + // const operationId = 'abc123' + /** + * The name (project, location, operation id) of the operation to get. + * Specified in the format `projects/* /locations/* /operations/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function getOperation() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.getOperation(request); + console.log(response); + } + + getOperation(); + // [END container_v1_generated_ClusterManager_GetOperation_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js b/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js new file mode 100644 index 00000000000..2bd8c22a718 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js @@ -0,0 +1,64 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_GetServerConfig_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * The name (project and location) of the server config to get, + * specified in the format `projects/* /locations/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function getServerConfig() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.getServerConfig(request); + console.log(response); + } + + getServerConfig(); + // [END container_v1_generated_ClusterManager_GetServerConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js b/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js new file mode 100644 index 00000000000..4b6b728f6d9 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_ListClusters_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * The parent (project and location) where the clusters will be listed. + * Specified in the format `projects/* /locations/*`. + * Location "-" matches all zones and all regions. + */ + // const parent = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function listClusters() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.listClusters(request); + console.log(response); + } + + listClusters(); + // [END container_v1_generated_ClusterManager_ListClusters_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js new file mode 100644 index 00000000000..7e12ef950a9 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js @@ -0,0 +1,69 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_ListNodePools_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the parent field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the parent field. + */ + // const clusterId = 'abc123' + /** + * The parent (project, location, cluster id) where the node pools will be + * listed. Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const parent = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function listNodePools() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.listNodePools(request); + console.log(response); + } + + listNodePools(); + // [END container_v1_generated_ClusterManager_ListNodePools_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js b/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js new file mode 100644 index 00000000000..96e9c41e2d9 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js @@ -0,0 +1,65 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_ListOperations_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the parent field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * The parent (project and location) where the operations will be listed. + * Specified in the format `projects/* /locations/*`. + * Location "-" matches all zones and all regions. + */ + // const parent = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function listOperations() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.listOperations(request); + console.log(response); + } + + listOperations(); + // [END container_v1_generated_ClusterManager_ListOperations_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js b/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js new file mode 100644 index 00000000000..d5735ffefe0 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js @@ -0,0 +1,72 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_ListUsableSubnetworks_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The parent project where subnetworks are usable. + * Specified in the format `projects/*`. + */ + // const parent = 'abc123' + /** + * Filtering currently only supports equality on the networkProjectId and must + * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + * is the project which owns the listed subnetworks. This defaults to the + * parent project ID. + */ + // const filter = 'abc123' + /** + * The max number of results per page that should be returned. If the number + * of available results is larger than `page_size`, a `next_page_token` is + * returned which can be used to get the next page of results in subsequent + * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + */ + // const pageSize = 1234 + /** + * Specifies a page token to use. Set this to the nextPageToken returned by + * previous list requests to get the next page of results. + */ + // const pageToken = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function listUsableSubnetworks() { + // Construct request + const request = {}; + + // Run request + const iterable = await containerClient.listUsableSubnetworksAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + listUsableSubnetworks(); + // [END container_v1_generated_ClusterManager_ListUsableSubnetworks_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js new file mode 100644 index 00000000000..911ca317e0f --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to rollback. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Deprecated. The name of the node pool to rollback. + * This field has been deprecated and replaced by the name field. + */ + // const nodePoolId = 'abc123' + /** + * The name (project, location, cluster, node pool id) of the node poll to + * rollback upgrade. + * Specified in the format `projects/* /locations/* /clusters/* /nodePools/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function rollbackNodePoolUpgrade() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.rollbackNodePoolUpgrade(request); + console.log(response); + } + + rollbackNodePoolUpgrade(); + // [END container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js b/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js new file mode 100644 index 00000000000..6b11628d188 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js @@ -0,0 +1,76 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(addonsConfig) { + // [START container_v1_generated_ClusterManager_SetAddonsConfig_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Required. The desired configurations for the various addons available to run in the + * cluster. + */ + // const addonsConfig = '' + /** + * The name (project, location, cluster) of the cluster to set addons. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setAddonsConfig() { + // Construct request + const request = { + addonsConfig, + }; + + // Run request + const response = await containerClient.setAddonsConfig(request); + console.log(response); + } + + setAddonsConfig(); + // [END container_v1_generated_ClusterManager_SetAddonsConfig_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js new file mode 100644 index 00000000000..4631137f4f6 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js @@ -0,0 +1,85 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(resourceLabels, labelFingerprint) { + // [START container_v1_generated_ClusterManager_SetLabels_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Required. The labels to set for that cluster. + */ + // const resourceLabels = 1234 + /** + * Required. The fingerprint of the previous set of labels for this resource, + * 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 + * resource to get the latest fingerprint. + */ + // const labelFingerprint = 'abc123' + /** + * The name (project, location, cluster id) of the cluster to set labels. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setLabels() { + // Construct request + const request = { + resourceLabels, + labelFingerprint, + }; + + // Run request + const response = await containerClient.setLabels(request); + console.log(response); + } + + setLabels(); + // [END container_v1_generated_ClusterManager_SetLabels_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js new file mode 100644 index 00000000000..9b06b7d1fae --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(enabled) { + // [START container_v1_generated_ClusterManager_SetLegacyAbac_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Required. Whether ABAC authorization will be enabled in the cluster. + */ + // const enabled = true + /** + * The name (project, location, cluster id) of the cluster to set legacy abac. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setLegacyAbac() { + // Construct request + const request = { + enabled, + }; + + // Run request + const response = await containerClient.setLegacyAbac(request); + console.log(response); + } + + setLegacyAbac(); + // [END container_v1_generated_ClusterManager_SetLegacyAbac_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js b/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js new file mode 100644 index 00000000000..5411cd14435 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js @@ -0,0 +1,80 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(locations) { + // [START container_v1_generated_ClusterManager_SetLocations_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * 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. + * This list must always include the cluster's primary zone. + */ + // const locations = 'abc123' + /** + * The name (project, location, cluster) of the cluster to set locations. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setLocations() { + // Construct request + const request = { + locations, + }; + + // Run request + const response = await containerClient.setLocations(request); + console.log(response); + } + + setLocations(); + // [END container_v1_generated_ClusterManager_SetLocations_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js b/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js new file mode 100644 index 00000000000..742b633e65e --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js @@ -0,0 +1,83 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(loggingService) { + // [START container_v1_generated_ClusterManager_SetLoggingService_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Required. The logging service the cluster should use to write logs. + * Currently available options: + * * `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. + */ + // const loggingService = 'abc123' + /** + * The name (project, location, cluster) of the cluster to set logging. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setLoggingService() { + // Construct request + const request = { + loggingService, + }; + + // Run request + const response = await containerClient.setLoggingService(request); + console.log(response); + } + + setLoggingService(); + // [END container_v1_generated_ClusterManager_SetLoggingService_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js new file mode 100644 index 00000000000..2bc281e2a3d --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(projectId, zone, clusterId, maintenancePolicy) { + // [START container_v1_generated_ClusterManager_SetMaintenancePolicy_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + */ + // const projectId = 'abc123' + /** + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + */ + // const zone = 'abc123' + /** + * Required. The name of the cluster to update. + */ + // const clusterId = 'abc123' + /** + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + */ + // const maintenancePolicy = '' + /** + * The name (project, location, cluster id) of the cluster to set maintenance + * policy. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setMaintenancePolicy() { + // Construct request + const request = { + projectId, + zone, + clusterId, + maintenancePolicy, + }; + + // Run request + const response = await containerClient.setMaintenancePolicy(request); + console.log(response); + } + + setMaintenancePolicy(); + // [END container_v1_generated_ClusterManager_SetMaintenancePolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js b/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js new file mode 100644 index 00000000000..1903cc65971 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js @@ -0,0 +1,80 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(action, update) { + // [START container_v1_generated_ClusterManager_SetMasterAuth_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Required. The exact form of action to be taken on the master auth. + */ + // const action = '' + /** + * Required. A description of the update. + */ + // const update = '' + /** + * The name (project, location, cluster) of the cluster to set auth. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setMasterAuth() { + // Construct request + const request = { + action, + update, + }; + + // Run request + const response = await containerClient.setMasterAuth(request); + console.log(response); + } + + setMasterAuth(); + // [END container_v1_generated_ClusterManager_SetMasterAuth_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js b/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js new file mode 100644 index 00000000000..8ea0ee9125b --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js @@ -0,0 +1,83 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(monitoringService) { + // [START container_v1_generated_ClusterManager_SetMonitoringService_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Required. The monitoring service the cluster should use to write metrics. + * Currently available options: + * * "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. + */ + // const monitoringService = 'abc123' + /** + * The name (project, location, cluster) of the cluster to set monitoring. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setMonitoringService() { + // Construct request + const request = { + monitoringService, + }; + + // Run request + const response = await containerClient.setMonitoringService(request); + console.log(response); + } + + setMonitoringService(); + // [END container_v1_generated_ClusterManager_SetMonitoringService_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js new file mode 100644 index 00000000000..8ca2af01762 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(networkPolicy) { + // [START container_v1_generated_ClusterManager_SetNetworkPolicy_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Required. Configuration options for the NetworkPolicy feature. + */ + // const networkPolicy = '' + /** + * The name (project, location, cluster id) of the cluster to set networking + * policy. Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setNetworkPolicy() { + // Construct request + const request = { + networkPolicy, + }; + + // Run request + const response = await containerClient.setNetworkPolicy(request); + console.log(response); + } + + setNetworkPolicy(); + // [END container_v1_generated_ClusterManager_SetNetworkPolicy_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js new file mode 100644 index 00000000000..4d6b60d478b --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js @@ -0,0 +1,81 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(autoscaling) { + // [START container_v1_generated_ClusterManager_SetNodePoolAutoscaling_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const nodePoolId = 'abc123' + /** + * Required. Autoscaling configuration for the node pool. + */ + // const autoscaling = '' + /** + * The name (project, location, cluster, node pool) of the node pool to set + * autoscaler settings. Specified in the format + * `projects/* /locations/* /clusters/* /nodePools/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setNodePoolAutoscaling() { + // Construct request + const request = { + autoscaling, + }; + + // Run request + const response = await containerClient.setNodePoolAutoscaling(request); + console.log(response); + } + + setNodePoolAutoscaling(); + // [END container_v1_generated_ClusterManager_SetNodePoolAutoscaling_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js new file mode 100644 index 00000000000..ed424b4a5a7 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js @@ -0,0 +1,81 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(management) { + // [START container_v1_generated_ClusterManager_SetNodePoolManagement_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + */ + // const nodePoolId = 'abc123' + /** + * Required. NodeManagement configuration for the node pool. + */ + // const management = '' + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * management properties. Specified in the format + * `projects/* /locations/* /clusters/* /nodePools/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setNodePoolManagement() { + // Construct request + const request = { + management, + }; + + // Run request + const response = await containerClient.setNodePoolManagement(request); + console.log(response); + } + + setNodePoolManagement(); + // [END container_v1_generated_ClusterManager_SetNodePoolManagement_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js new file mode 100644 index 00000000000..6c575a8efc8 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js @@ -0,0 +1,81 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(nodeCount) { + // [START container_v1_generated_ClusterManager_SetNodePoolSize_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to update. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Deprecated. The name of the node pool to update. + * This field has been deprecated and replaced by the name field. + */ + // const nodePoolId = 'abc123' + /** + * Required. The desired node count for the pool. + */ + // const nodeCount = 1234 + /** + * The name (project, location, cluster, node pool id) of the node pool to set + * size. + * Specified in the format `projects/* /locations/* /clusters/* /nodePools/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function setNodePoolSize() { + // Construct request + const request = { + nodeCount, + }; + + // Run request + const response = await containerClient.setNodePoolSize(request); + console.log(response); + } + + setNodePoolSize(); + // [END container_v1_generated_ClusterManager_SetNodePoolSize_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js new file mode 100644 index 00000000000..69f37632535 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js @@ -0,0 +1,73 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_StartIPRotation_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://developers.google.com/console/help/new/#projectnumber). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * The name (project, location, cluster id) of the cluster to start IP + * rotation. Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + /** + * Whether to rotate credentials during IP rotation. + */ + // const rotateCredentials = true + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function startIPRotation() { + // Construct request + const request = {}; + + // Run request + const response = await containerClient.startIPRotation(request); + console.log(response); + } + + startIPRotation(); + // [END container_v1_generated_ClusterManager_StartIPRotation_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js new file mode 100644 index 00000000000..80f583896ca --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js @@ -0,0 +1,75 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(update) { + // [START container_v1_generated_ClusterManager_UpdateCluster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Required. A description of the update. + */ + // const update = '' + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function updateCluster() { + // Construct request + const request = { + update, + }; + + // Run request + const response = await containerClient.updateCluster(request); + console.log(response); + } + + updateCluster(); + // [END container_v1_generated_ClusterManager_UpdateCluster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_master.js b/packages/google-container/samples/generated/v1/cluster_manager.update_master.js new file mode 100644 index 00000000000..1c128b35b59 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_master.js @@ -0,0 +1,82 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(masterVersion) { + // [START container_v1_generated_ClusterManager_UpdateMaster_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Required. The Kubernetes version to change the master to. + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the default Kubernetes version + */ + // const masterVersion = 'abc123' + /** + * The name (project, location, cluster) of the cluster to update. + * Specified in the format `projects/* /locations/* /clusters/*`. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function updateMaster() { + // Construct request + const request = { + masterVersion, + }; + + // Run request + const response = await containerClient.updateMaster(request); + console.log(response); + } + + updateMaster(); + // [END container_v1_generated_ClusterManager_UpdateMaster_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js new file mode 100644 index 00000000000..2e5610af07a --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -0,0 +1,110 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +function main(nodeVersion, imageType) { + // [START container_v1_generated_ClusterManager_UpdateNodePool_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + */ + // const projectId = 'abc123' + /** + * 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. + */ + // const zone = 'abc123' + /** + * Deprecated. The name of the cluster to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const clusterId = 'abc123' + /** + * Deprecated. The name of the node pool to upgrade. + * This field has been deprecated and replaced by the name field. + */ + // const nodePoolId = 'abc123' + /** + * Required. The Kubernetes version to change the nodes to (typically an + * upgrade). + * Users may specify either explicit versions offered by Kubernetes Engine or + * version aliases, which have the following behavior: + * - "latest": picks the highest valid Kubernetes version + * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version + * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version + * - "1.X.Y-gke.N": picks an explicit Kubernetes version + * - "-": picks the Kubernetes master version + */ + // const nodeVersion = 'abc123' + /** + * Required. The desired image type for the node pool. + */ + // const imageType = 'abc123' + /** + * The name (project, location, cluster, node pool) of the node pool to + * update. Specified in the format + * `projects/* /locations/* /clusters/* /nodePools/*`. + */ + // const name = 'abc123' + /** + * 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. + */ + // const locations = 'abc123' + /** + * The desired workload metadata config for the node pool. + */ + // const workloadMetadataConfig = '' + /** + * Upgrade settings control disruption and speed of the upgrade. + */ + // const upgradeSettings = '' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function updateNodePool() { + // Construct request + const request = { + nodeVersion, + imageType, + }; + + // Run request + const response = await containerClient.updateNodePool(request); + console.log(response); + } + + updateNodePool(); + // [END container_v1_generated_ClusterManager_UpdateNodePool_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 170f0773538..c6d0f2848ae 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -3,7 +3,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=8" + "node": ">=10" }, "repository": "googleapis/nodejs-cloud-container", "private": true, diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 9f91cd81536..04a8593cf90 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -3695,7 +3695,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listUsableSubnetworks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listUsableSubnetworks.createStream( this.innerApiCalls.listUsableSubnetworks as gax.GaxCall, @@ -3755,7 +3756,8 @@ export class ClusterManagerClient { parent: request.parent || '', }); options = options || {}; - const callSettings = new gax.CallSettings(options); + const defaultCallSettings = this._defaults['listUsableSubnetworks']; + const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listUsableSubnetworks.asyncIterate( this.innerApiCalls['listUsableSubnetworks'] as GaxCall, From 78c22f2feec0b7cb50e2c23ff5d061bf6fd2453d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 14 Oct 2021 00:46:36 +0000 Subject: [PATCH 308/371] build(node): update deps used during postprocessing (#1243) (#491) --- packages/google-container/protos/protos.d.ts | 3 ++- packages/google-container/protos/protos.js | 7 +++++++ packages/google-container/protos/protos.json | 15 ++++++++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index df069a98ecf..74280206931 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -12439,7 +12439,8 @@ export namespace google { OUTPUT_ONLY = 3, INPUT_ONLY = 4, IMMUTABLE = 5, - UNORDERED_LIST = 6 + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7 } } diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 101a66634e0..3fd12788e1f 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -30924,6 +30924,7 @@ * @property {number} INPUT_ONLY=4 INPUT_ONLY value * @property {number} IMMUTABLE=5 IMMUTABLE value * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value */ api.FieldBehavior = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -30934,6 +30935,7 @@ values[valuesById[4] = "INPUT_ONLY"] = 4; values[valuesById[5] = "IMMUTABLE"] = 5; values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; return values; })(); @@ -36382,6 +36384,7 @@ case 4: case 5: case 6: + case 7: break; } } @@ -36481,6 +36484,10 @@ case 6: message[".google.api.fieldBehavior"][i] = 6; break; + case "NON_EMPTY_DEFAULT": + case 7: + message[".google.api.fieldBehavior"][i] = 7; + break; } } return message; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 9cf722b40f6..44d899be426 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -3799,7 +3799,8 @@ "OUTPUT_ONLY": 3, "INPUT_ONLY": 4, "IMMUTABLE": 5, - "UNORDERED_LIST": 6 + "UNORDERED_LIST": 6, + "NON_EMPTY_DEFAULT": 7 } } } @@ -4365,6 +4366,18 @@ ] ], "reserved": [ + [ + 4, + 4 + ], + [ + 5, + 5 + ], + [ + 6, + 6 + ], [ 8, 8 From 0afb2a92182fddf14ebf5c990b083a5d99114620 Mon Sep 17 00:00:00 2001 From: "F. Hinkelmann" Date: Thu, 21 Oct 2021 11:28:37 -0400 Subject: [PATCH 309/371] chore(cloud-rad): delete api-extractor config (#492) --- packages/google-container/api-extractor.json | 369 ------------------- 1 file changed, 369 deletions(-) delete mode 100644 packages/google-container/api-extractor.json diff --git a/packages/google-container/api-extractor.json b/packages/google-container/api-extractor.json deleted file mode 100644 index de228294b23..00000000000 --- a/packages/google-container/api-extractor.json +++ /dev/null @@ -1,369 +0,0 @@ -/** - * Config file for API Extractor. For more info, please visit: https://api-extractor.com - */ -{ - "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - - /** - * Optionally specifies another JSON config file that this file extends from. This provides a way for - * standard settings to be shared across multiple projects. - * - * If the path starts with "./" or "../", the path is resolved relative to the folder of the file that contains - * the "extends" field. Otherwise, the first path segment is interpreted as an NPM package name, and will be - * resolved using NodeJS require(). - * - * SUPPORTED TOKENS: none - * DEFAULT VALUE: "" - */ - // "extends": "./shared/api-extractor-base.json" - // "extends": "my-package/include/api-extractor-base.json" - - /** - * Determines the "" token that can be used with other config file settings. The project folder - * typically contains the tsconfig.json and package.json config files, but the path is user-defined. - * - * The path is resolved relative to the folder of the config file that contains the setting. - * - * The default value for "projectFolder" is the token "", which means the folder is determined by traversing - * parent folders, starting from the folder containing api-extractor.json, and stopping at the first folder - * that contains a tsconfig.json file. If a tsconfig.json file cannot be found in this way, then an error - * will be reported. - * - * SUPPORTED TOKENS: - * DEFAULT VALUE: "" - */ - // "projectFolder": "..", - - /** - * (REQUIRED) Specifies the .d.ts file to be used as the starting point for analysis. API Extractor - * analyzes the symbols exported by this module. - * - * The file extension must be ".d.ts" and not ".ts". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - */ - "mainEntryPointFilePath": "/protos/protos.d.ts", - - /** - * A list of NPM package names whose exports should be treated as part of this package. - * - * For example, suppose that Webpack is used to generate a distributed bundle for the project "library1", - * and another NPM package "library2" is embedded in this bundle. Some types from library2 may become part - * of the exported API for library1, but by default API Extractor would generate a .d.ts rollup that explicitly - * imports library2. To avoid this, we can specify: - * - * "bundledPackages": [ "library2" ], - * - * This would direct API Extractor to embed those types directly in the .d.ts rollup, as if they had been - * local files for library1. - */ - "bundledPackages": [ ], - - /** - * Determines how the TypeScript compiler engine will be invoked by API Extractor. - */ - "compiler": { - /** - * Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * Note: This setting will be ignored if "overrideTsconfig" is used. - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/tsconfig.json" - */ - // "tsconfigFilePath": "/tsconfig.json", - - /** - * Provides a compiler configuration that will be used instead of reading the tsconfig.json file from disk. - * The object must conform to the TypeScript tsconfig schema: - * - * http://json.schemastore.org/tsconfig - * - * If omitted, then the tsconfig.json file will be read from the "projectFolder". - * - * DEFAULT VALUE: no overrideTsconfig section - */ - // "overrideTsconfig": { - // . . . - // } - - /** - * This option causes the compiler to be invoked with the --skipLibCheck option. This option is not recommended - * and may cause API Extractor to produce incomplete or incorrect declarations, but it may be required when - * dependencies contain declarations that are incompatible with the TypeScript engine that API Extractor uses - * for its analysis. Where possible, the underlying issue should be fixed rather than relying on skipLibCheck. - * - * DEFAULT VALUE: false - */ - // "skipLibCheck": true, - }, - - /** - * Configures how the API report file (*.api.md) will be generated. - */ - "apiReport": { - /** - * (REQUIRED) Whether to generate an API report. - */ - "enabled": true, - - /** - * The filename for the API report files. It will be combined with "reportFolder" or "reportTempFolder" to produce - * a full file path. - * - * The file extension should be ".api.md", and the string should not contain a path separator such as "\" or "/". - * - * SUPPORTED TOKENS: , - * DEFAULT VALUE: ".api.md" - */ - // "reportFileName": ".api.md", - - /** - * Specifies the folder where the API report file is written. The file name portion is determined by - * the "reportFileName" setting. - * - * The API report file is normally tracked by Git. Changes to it can be used to trigger a branch policy, - * e.g. for an API review. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/etc/" - */ - // "reportFolder": "/etc/", - - /** - * Specifies the folder where the temporary report file is written. The file name portion is determined by - * the "reportFileName" setting. - * - * After the temporary file is written to disk, it is compared with the file in the "reportFolder". - * If they are different, a production build will fail. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/temp/" - */ - // "reportTempFolder": "/temp/" - }, - - /** - * Configures how the doc model file (*.api.json) will be generated. - */ - "docModel": { - /** - * (REQUIRED) Whether to generate a doc model file. - */ - "enabled": true, - - /** - * The output path for the doc model file. The file extension should be ".api.json". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/temp/.api.json" - */ - // "apiJsonFilePath": "/temp/.api.json" - }, - - /** - * Configures how the .d.ts rollup file will be generated. - */ - "dtsRollup": { - /** - * (REQUIRED) Whether to generate the .d.ts rollup file. - */ - "enabled": true, - - /** - * Specifies the output path for a .d.ts rollup file to be generated without any trimming. - * This file will include all declarations that are exported by the main entry point. - * - * If the path is an empty string, then this file will not be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "/dist/.d.ts" - */ - // "untrimmedFilePath": "/dist/.d.ts", - - /** - * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "beta" release. - * This file will include only declarations that are marked as "@public" or "@beta". - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "betaTrimmedFilePath": "/dist/-beta.d.ts", - - - /** - * Specifies the output path for a .d.ts rollup file to be generated with trimming for a "public" release. - * This file will include only declarations that are marked as "@public". - * - * If the path is an empty string, then this file will not be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "publicTrimmedFilePath": "/dist/-public.d.ts", - - /** - * When a declaration is trimmed, by default it will be replaced by a code comment such as - * "Excluded from this release type: exampleMember". Set "omitTrimmingComments" to true to remove the - * declaration completely. - * - * DEFAULT VALUE: false - */ - // "omitTrimmingComments": true - }, - - /** - * Configures how the tsdoc-metadata.json file will be generated. - */ - "tsdocMetadata": { - /** - * Whether to generate the tsdoc-metadata.json file. - * - * DEFAULT VALUE: true - */ - // "enabled": true, - - /** - * Specifies where the TSDoc metadata file should be written. - * - * The path is resolved relative to the folder of the config file that contains the setting; to change this, - * prepend a folder token such as "". - * - * The default value is "", which causes the path to be automatically inferred from the "tsdocMetadata", - * "typings" or "main" fields of the project's package.json. If none of these fields are set, the lookup - * falls back to "tsdoc-metadata.json" in the package folder. - * - * SUPPORTED TOKENS: , , - * DEFAULT VALUE: "" - */ - // "tsdocMetadataFilePath": "/dist/tsdoc-metadata.json" - }, - - /** - * Specifies what type of newlines API Extractor should use when writing output files. By default, the output files - * will be written with Windows-style newlines. To use POSIX-style newlines, specify "lf" instead. - * To use the OS's default newline kind, specify "os". - * - * DEFAULT VALUE: "crlf" - */ - // "newlineKind": "crlf", - - /** - * Configures how API Extractor reports error and warning messages produced during analysis. - * - * There are three sources of messages: compiler messages, API Extractor messages, and TSDoc messages. - */ - "messages": { - /** - * Configures handling of diagnostic messages reported by the TypeScript compiler engine while analyzing - * the input .d.ts files. - * - * TypeScript message identifiers start with "TS" followed by an integer. For example: "TS2551" - * - * DEFAULT VALUE: A single "default" entry with logLevel=warning. - */ - "compilerMessageReporting": { - /** - * Configures the default routing for messages that don't match an explicit rule in this table. - */ - "default": { - /** - * Specifies whether the message should be written to the the tool's output log. Note that - * the "addToApiReportFile" property may supersede this option. - * - * Possible values: "error", "warning", "none" - * - * Errors cause the build to fail and return a nonzero exit code. Warnings cause a production build fail - * and return a nonzero exit code. For a non-production build (e.g. when "api-extractor run" includes - * the "--local" option), the warning is displayed but the build will not fail. - * - * DEFAULT VALUE: "warning" - */ - "logLevel": "warning", - - /** - * When addToApiReportFile is true: If API Extractor is configured to write an API report file (.api.md), - * then the message will be written inside that file; otherwise, the message is instead logged according to - * the "logLevel" option. - * - * DEFAULT VALUE: false - */ - // "addToApiReportFile": false - }, - - // "TS2551": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - }, - - /** - * Configures handling of messages reported by API Extractor during its analysis. - * - * API Extractor message identifiers start with "ae-". For example: "ae-extra-release-tag" - * - * DEFAULT VALUE: See api-extractor-defaults.json for the complete table of extractorMessageReporting mappings - */ - "extractorMessageReporting": { - "default": { - "logLevel": "warning", - // "addToApiReportFile": false - }, - - // "ae-extra-release-tag": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - }, - - /** - * Configures handling of messages reported by the TSDoc parser when analyzing code comments. - * - * TSDoc message identifiers start with "tsdoc-". For example: "tsdoc-link-tag-unescaped-text" - * - * DEFAULT VALUE: A single "default" entry with logLevel=warning. - */ - "tsdocMessageReporting": { - "default": { - "logLevel": "warning", - // "addToApiReportFile": false - } - - // "tsdoc-link-tag-unescaped-text": { - // "logLevel": "warning", - // "addToApiReportFile": true - // }, - // - // . . . - } - } - -} From 109ac9d486a3fbff362a979a39c5e166efdafa14 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 26 Oct 2021 23:19:02 +0200 Subject: [PATCH 310/371] chore(deps): update dependency @types/node to v16 (#493) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | [`^14.0.0` -> `^16.0.0`](https://renovatebot.com/diffs/npm/@types%2fnode/14.17.32/16.11.6) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.11.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.11.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.11.6/compatibility-slim/14.17.32)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode/16.11.6/confidence-slim/14.17.32)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 408ab895dc8..990d5a77fd4 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -47,7 +47,7 @@ }, "devDependencies": { "@types/mocha": "^8.0.0", - "@types/node": "^14.0.0", + "@types/node": "^16.0.0", "@types/sinon": "^10.0.0", "c8": "^7.0.0", "gts": "^2.0.0", From 61b89404713e021275ea112d75e9cf79e9fcbf74 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Nov 2021 20:40:37 +0100 Subject: [PATCH 311/371] chore(deps): update dependency sinon to v12 (#494) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^11.0.0` -> `^12.0.0`](https://renovatebot.com/diffs/npm/sinon/11.1.2/12.0.1) | [![age](https://badges.renovateapi.com/packages/npm/sinon/12.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/12.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/12.0.1/compatibility-slim/11.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/12.0.1/confidence-slim/11.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sinonjs/sinon ### [`v12.0.1`](https://togithub.com/sinonjs/sinon/blob/master/CHANGES.md#​1201) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v12.0.0...v12.0.1) - [`3f598221`](https://togithub.com/sinonjs/sinon/commit/3f598221045904681f2b3b3ba1df617ed5e230e3) Fix issue with npm unlink for npm version > 6 (Carl-Erik Kopseng) > 'npm unlink' would implicitly unlink the current dir > until version 7, which requires an argument - [`51417a38`](https://togithub.com/sinonjs/sinon/commit/51417a38111eeeb7cd14338bfb762cc2df487e1b) Fix bundling of cjs module ([#​2412](https://togithub.com/sinonjs/sinon/issues/2412)) (Julian Grinblat) > - Fix bundling of cjs module > > - Run prettier *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2021-11-04.* #### 12.0.0 ### [`v12.0.0`](https://togithub.com/sinonjs/sinon/compare/v11.1.2...v12.0.0) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v11.1.2...v12.0.0)
--- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 990d5a77fd4..508eb01141a 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -58,7 +58,7 @@ "mocha": "^8.0.0", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", - "sinon": "^11.0.0", + "sinon": "^12.0.0", "ts-loader": "^9.0.0", "typescript": "^3.8.3", "webpack": "^5.0.0", From d520990591ac8119f94b2b6be182af86d6387b3f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 10 Nov 2021 15:03:35 -0800 Subject: [PATCH 312/371] docs(samples): add example tags to generated samples (#495) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs(samples): add example tags to generated samples PiperOrigin-RevId: 408439482 Source-Link: https://github.com/googleapis/googleapis/commit/b9f61843dc80c7c285fc34fd3a40aae55082c2b9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/eb888bc214efc7bf43bf4634b470254565a659a5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWI4ODhiYzIxNGVmYzdiZjQzYmY0NjM0YjQ3MDI1NDU2NWE2NTlhNSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../google-container/linkinator.config.json | 2 +- .../v1/cluster_manager.cancel_operation.js | 22 +- .../cluster_manager.complete_i_p_rotation.js | 22 +- .../v1/cluster_manager.create_cluster.js | 23 +- .../v1/cluster_manager.create_node_pool.js | 24 +- .../v1/cluster_manager.delete_cluster.js | 22 +- .../v1/cluster_manager.delete_node_pool.js | 27 +- .../v1/cluster_manager.get_cluster.js | 22 +- .../cluster_manager.get_j_s_o_n_web_keys.js | 4 +- .../v1/cluster_manager.get_node_pool.js | 27 +- .../v1/cluster_manager.get_operation.js | 22 +- .../v1/cluster_manager.get_server_config.js | 17 +- .../v1/cluster_manager.list_clusters.js | 17 +- .../v1/cluster_manager.list_node_pools.js | 22 +- .../v1/cluster_manager.list_operations.js | 17 +- ...cluster_manager.list_usable_subnetworks.js | 4 +- ...ster_manager.rollback_node_pool_upgrade.js | 27 +- .../v1/cluster_manager.set_addons_config.js | 24 +- .../v1/cluster_manager.set_labels.js | 22 +- .../v1/cluster_manager.set_legacy_abac.js | 22 +- .../v1/cluster_manager.set_locations.js | 24 +- .../v1/cluster_manager.set_logging_service.js | 22 +- .../cluster_manager.set_maintenance_policy.js | 12 +- .../v1/cluster_manager.set_master_auth.js | 26 +- .../cluster_manager.set_monitoring_service.js | 22 +- .../v1/cluster_manager.set_network_policy.js | 24 +- ...uster_manager.set_node_pool_autoscaling.js | 29 +- ...luster_manager.set_node_pool_management.js | 29 +- .../v1/cluster_manager.set_node_pool_size.js | 27 +- .../v1/cluster_manager.start_i_p_rotation.js | 22 +- .../v1/cluster_manager.update_cluster.js | 24 +- .../v1/cluster_manager.update_master.js | 22 +- .../v1/cluster_manager.update_node_pool.js | 33 +- .../src/v1/cluster_manager_client.ts | 1952 ++++++++--------- 34 files changed, 1058 insertions(+), 1599 deletions(-) diff --git a/packages/google-container/linkinator.config.json b/packages/google-container/linkinator.config.json index 29a223b6db6..0121dfa684f 100644 --- a/packages/google-container/linkinator.config.json +++ b/packages/google-container/linkinator.config.json @@ -6,5 +6,5 @@ "img.shields.io" ], "silent": true, - "concurrency": 10 + "concurrency": 5 } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js b/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js index 26cc3ed4cdf..5184681b71c 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js @@ -19,24 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - */ - // const operationId = 'abc123' /** * The name (project, location, operation id) of the operation to cancel. * Specified in the format `projects/* /locations/* /operations/*`. @@ -49,7 +31,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function cancelOperation() { + async function callCancelOperation() { // Construct request const request = {}; @@ -58,7 +40,7 @@ function main() { console.log(response); } - cancelOperation(); + callCancelOperation(); // [END container_v1_generated_ClusterManager_CancelOperation_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js index b2e2a99d2c9..f19fb253c35 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js @@ -19,24 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * The name (project, location, cluster id) of the cluster to complete IP * rotation. Specified in the format `projects/* /locations/* /clusters/*`. @@ -49,7 +31,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function completeIPRotation() { + async function callCompleteIPRotation() { // Construct request const request = {}; @@ -58,7 +40,7 @@ function main() { console.log(response); } - completeIPRotation(); + callCompleteIPRotation(); // [END container_v1_generated_ClusterManager_CompleteIPRotation_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js index 060dc4ad26c..6088086d5df 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js @@ -20,23 +20,10 @@ function main(cluster) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the parent field. + * Required. A cluster + * resource (https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - */ - // const cluster = '' + // const cluster = {} /** * The parent (project and location) where the cluster will be created. * Specified in the format `projects/* /locations/*`. @@ -49,7 +36,7 @@ function main(cluster) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function createCluster() { + async function callCreateCluster() { // Construct request const request = { cluster, @@ -60,7 +47,7 @@ function main(cluster) { console.log(response); } - createCluster(); + callCreateCluster(); // [END container_v1_generated_ClusterManager_CreateCluster_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js index 0c2e430a40a..e94aa4b306b 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js @@ -19,28 +19,10 @@ function main(nodePool) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the parent field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - */ - // const clusterId = 'abc123' /** * Required. The node pool to create. */ - // const nodePool = '' + // const nodePool = {} /** * The parent (project, location, cluster id) where the node pool will be * created. Specified in the format @@ -54,7 +36,7 @@ function main(nodePool) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function createNodePool() { + async function callCreateNodePool() { // Construct request const request = { nodePool, @@ -65,7 +47,7 @@ function main(nodePool) { console.log(response); } - createNodePool(); + callCreateNodePool(); // [END container_v1_generated_ClusterManager_CreateNodePool_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js index f793d16d17f..9d4d2834fd2 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js @@ -19,24 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * The name (project, location, cluster) of the cluster to delete. * Specified in the format `projects/* /locations/* /clusters/*`. @@ -49,7 +31,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function deleteCluster() { + async function callDeleteCluster() { // Construct request const request = {}; @@ -58,7 +40,7 @@ function main() { console.log(response); } - deleteCluster(); + callDeleteCluster(); // [END container_v1_generated_ClusterManager_DeleteCluster_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js index 07c99274410..35781cd32ce 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js @@ -19,29 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' - /** - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - */ - // const nodePoolId = 'abc123' /** * The name (project, location, cluster, node pool id) of the node pool to * delete. Specified in the format @@ -55,7 +32,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function deleteNodePool() { + async function callDeleteNodePool() { // Construct request const request = {}; @@ -64,7 +41,7 @@ function main() { console.log(response); } - deleteNodePool(); + callDeleteNodePool(); // [END container_v1_generated_ClusterManager_DeleteNodePool_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js index c2c72e29504..c222704f996 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js @@ -19,24 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * The name (project, location, cluster) of the cluster to retrieve. * Specified in the format `projects/* /locations/* /clusters/*`. @@ -49,7 +31,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function getCluster() { + async function callGetCluster() { // Construct request const request = {}; @@ -58,7 +40,7 @@ function main() { console.log(response); } - getCluster(); + callGetCluster(); // [END container_v1_generated_ClusterManager_GetCluster_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js index 6fff5afc470..7f97ab06c83 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js @@ -31,7 +31,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function getJSONWebKeys() { + async function callGetJSONWebKeys() { // Construct request const request = {}; @@ -40,7 +40,7 @@ function main() { console.log(response); } - getJSONWebKeys(); + callGetJSONWebKeys(); // [END container_v1_generated_ClusterManager_GetJSONWebKeys_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js index 5ae1c800456..69dc29e8ecb 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js @@ -19,29 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' - /** - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - */ - // const nodePoolId = 'abc123' /** * The name (project, location, cluster, node pool id) of the node pool to * get. Specified in the format @@ -55,7 +32,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function getNodePool() { + async function callGetNodePool() { // Construct request const request = {}; @@ -64,7 +41,7 @@ function main() { console.log(response); } - getNodePool(); + callGetNodePool(); // [END container_v1_generated_ClusterManager_GetNodePool_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js b/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js index a9c1ae101ff..e86e9652683 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js @@ -19,24 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - */ - // const operationId = 'abc123' /** * The name (project, location, operation id) of the operation to get. * Specified in the format `projects/* /locations/* /operations/*`. @@ -49,7 +31,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function getOperation() { + async function callGetOperation() { // Construct request const request = {}; @@ -58,7 +40,7 @@ function main() { console.log(response); } - getOperation(); + callGetOperation(); // [END container_v1_generated_ClusterManager_GetOperation_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js b/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js index 2bd8c22a718..712e3bff289 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js @@ -19,19 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' /** * The name (project and location) of the server config to get, * specified in the format `projects/* /locations/*`. @@ -44,7 +31,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function getServerConfig() { + async function callGetServerConfig() { // Construct request const request = {}; @@ -53,7 +40,7 @@ function main() { console.log(response); } - getServerConfig(); + callGetServerConfig(); // [END container_v1_generated_ClusterManager_GetServerConfig_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js b/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js index 4b6b728f6d9..a5f94a2c02f 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js @@ -19,19 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the parent field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' /** * The parent (project and location) where the clusters will be listed. * Specified in the format `projects/* /locations/*`. @@ -45,7 +32,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function listClusters() { + async function callListClusters() { // Construct request const request = {}; @@ -54,7 +41,7 @@ function main() { console.log(response); } - listClusters(); + callListClusters(); // [END container_v1_generated_ClusterManager_ListClusters_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js index 7e12ef950a9..5015319eb44 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js @@ -19,24 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the parent field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - */ - // const clusterId = 'abc123' /** * The parent (project, location, cluster id) where the node pools will be * listed. Specified in the format `projects/* /locations/* /clusters/*`. @@ -49,7 +31,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function listNodePools() { + async function callListNodePools() { // Construct request const request = {}; @@ -58,7 +40,7 @@ function main() { console.log(response); } - listNodePools(); + callListNodePools(); // [END container_v1_generated_ClusterManager_ListNodePools_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js b/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js index 96e9c41e2d9..a8990e65216 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js @@ -19,19 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the parent field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' /** * The parent (project and location) where the operations will be listed. * Specified in the format `projects/* /locations/*`. @@ -45,7 +32,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function listOperations() { + async function callListOperations() { // Construct request const request = {}; @@ -54,7 +41,7 @@ function main() { console.log(response); } - listOperations(); + callListOperations(); // [END container_v1_generated_ClusterManager_ListOperations_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js b/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js index d5735ffefe0..32918bbfd95 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js @@ -50,7 +50,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function listUsableSubnetworks() { + async function callListUsableSubnetworks() { // Construct request const request = {}; @@ -61,7 +61,7 @@ function main() { } } - listUsableSubnetworks(); + callListUsableSubnetworks(); // [END container_v1_generated_ClusterManager_ListUsableSubnetworks_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js index 911ca317e0f..641cfa1c82c 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js @@ -19,29 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' - /** - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - */ - // const nodePoolId = 'abc123' /** * The name (project, location, cluster, node pool id) of the node poll to * rollback upgrade. @@ -55,7 +32,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function rollbackNodePoolUpgrade() { + async function callRollbackNodePoolUpgrade() { // Construct request const request = {}; @@ -64,7 +41,7 @@ function main() { console.log(response); } - rollbackNodePoolUpgrade(); + callRollbackNodePoolUpgrade(); // [END container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js b/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js index 6b11628d188..06e33996bcc 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js @@ -19,29 +19,11 @@ function main(addonsConfig) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * Required. The desired configurations for the various addons available to run in the * cluster. */ - // const addonsConfig = '' + // const addonsConfig = {} /** * The name (project, location, cluster) of the cluster to set addons. * Specified in the format `projects/* /locations/* /clusters/*`. @@ -54,7 +36,7 @@ function main(addonsConfig) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setAddonsConfig() { + async function callSetAddonsConfig() { // Construct request const request = { addonsConfig, @@ -65,7 +47,7 @@ function main(addonsConfig) { console.log(response); } - setAddonsConfig(); + callSetAddonsConfig(); // [END container_v1_generated_ClusterManager_SetAddonsConfig_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js index 4631137f4f6..7ab1f40ec8a 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js @@ -19,24 +19,6 @@ function main(resourceLabels, labelFingerprint) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * Required. The labels to set for that cluster. */ @@ -62,7 +44,7 @@ function main(resourceLabels, labelFingerprint) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setLabels() { + async function callSetLabels() { // Construct request const request = { resourceLabels, @@ -74,7 +56,7 @@ function main(resourceLabels, labelFingerprint) { console.log(response); } - setLabels(); + callSetLabels(); // [END container_v1_generated_ClusterManager_SetLabels_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js index 9b06b7d1fae..00348a18b49 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js @@ -19,24 +19,6 @@ function main(enabled) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * Required. Whether ABAC authorization will be enabled in the cluster. */ @@ -53,7 +35,7 @@ function main(enabled) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setLegacyAbac() { + async function callSetLegacyAbac() { // Construct request const request = { enabled, @@ -64,7 +46,7 @@ function main(enabled) { console.log(response); } - setLegacyAbac(); + callSetLegacyAbac(); // [END container_v1_generated_ClusterManager_SetLegacyAbac_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js b/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js index 5411cd14435..58fb2381cdc 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js @@ -19,27 +19,9 @@ function main(locations) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * 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. @@ -58,7 +40,7 @@ function main(locations) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setLocations() { + async function callSetLocations() { // Construct request const request = { locations, @@ -69,7 +51,7 @@ function main(locations) { console.log(response); } - setLocations(); + callSetLocations(); // [END container_v1_generated_ClusterManager_SetLocations_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js b/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js index 742b633e65e..63d38126a99 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js @@ -19,24 +19,6 @@ function main(loggingService) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * Required. The logging service the cluster should use to write logs. * Currently available options: @@ -61,7 +43,7 @@ function main(loggingService) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setLoggingService() { + async function callSetLoggingService() { // Construct request const request = { loggingService, @@ -72,7 +54,7 @@ function main(loggingService) { console.log(response); } - setLoggingService(); + callSetLoggingService(); // [END container_v1_generated_ClusterManager_SetLoggingService_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js index 2bc281e2a3d..b821de8dd70 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js @@ -20,13 +20,13 @@ function main(projectId, zone, clusterId, maintenancePolicy) { * TODO(developer): Uncomment these variables before running the sample. */ /** - * Required. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * Required. The Google Developers Console project ID or project + * number (https://support.google.com/cloud/answer/6158840). */ // const projectId = 'abc123' /** * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * zone (https://cloud.google.com/compute/docs/zones#available) in which the * cluster resides. */ // const zone = 'abc123' @@ -38,7 +38,7 @@ function main(projectId, zone, clusterId, maintenancePolicy) { * Required. The maintenance policy to be set for the cluster. An empty field * clears the existing maintenance policy. */ - // const maintenancePolicy = '' + // const maintenancePolicy = {} /** * The name (project, location, cluster id) of the cluster to set maintenance * policy. @@ -52,7 +52,7 @@ function main(projectId, zone, clusterId, maintenancePolicy) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setMaintenancePolicy() { + async function callSetMaintenancePolicy() { // Construct request const request = { projectId, @@ -66,7 +66,7 @@ function main(projectId, zone, clusterId, maintenancePolicy) { console.log(response); } - setMaintenancePolicy(); + callSetMaintenancePolicy(); // [END container_v1_generated_ClusterManager_SetMaintenancePolicy_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js b/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js index 1903cc65971..734a4361295 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js @@ -19,32 +19,14 @@ function main(action, update) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * Required. The exact form of action to be taken on the master auth. */ - // const action = '' + // const action = {} /** * Required. A description of the update. */ - // const update = '' + // const update = {} /** * The name (project, location, cluster) of the cluster to set auth. * Specified in the format `projects/* /locations/* /clusters/*`. @@ -57,7 +39,7 @@ function main(action, update) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setMasterAuth() { + async function callSetMasterAuth() { // Construct request const request = { action, @@ -69,7 +51,7 @@ function main(action, update) { console.log(response); } - setMasterAuth(); + callSetMasterAuth(); // [END container_v1_generated_ClusterManager_SetMasterAuth_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js b/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js index 8ea0ee9125b..54f570de4b1 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js @@ -19,24 +19,6 @@ function main(monitoringService) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * Required. The monitoring service the cluster should use to write metrics. * Currently available options: @@ -61,7 +43,7 @@ function main(monitoringService) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setMonitoringService() { + async function callSetMonitoringService() { // Construct request const request = { monitoringService, @@ -72,7 +54,7 @@ function main(monitoringService) { console.log(response); } - setMonitoringService(); + callSetMonitoringService(); // [END container_v1_generated_ClusterManager_SetMonitoringService_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js index 8ca2af01762..f41cbe3a06c 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js @@ -19,28 +19,10 @@ function main(networkPolicy) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * Required. Configuration options for the NetworkPolicy feature. */ - // const networkPolicy = '' + // const networkPolicy = {} /** * The name (project, location, cluster id) of the cluster to set networking * policy. Specified in the format `projects/* /locations/* /clusters/*`. @@ -53,7 +35,7 @@ function main(networkPolicy) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setNetworkPolicy() { + async function callSetNetworkPolicy() { // Construct request const request = { networkPolicy, @@ -64,7 +46,7 @@ function main(networkPolicy) { console.log(response); } - setNetworkPolicy(); + callSetNetworkPolicy(); // [END container_v1_generated_ClusterManager_SetNetworkPolicy_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js index 4d6b60d478b..ec0fabf4117 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js @@ -19,33 +19,10 @@ function main(autoscaling) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const nodePoolId = 'abc123' /** * Required. Autoscaling configuration for the node pool. */ - // const autoscaling = '' + // const autoscaling = {} /** * The name (project, location, cluster, node pool) of the node pool to set * autoscaler settings. Specified in the format @@ -59,7 +36,7 @@ function main(autoscaling) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setNodePoolAutoscaling() { + async function callSetNodePoolAutoscaling() { // Construct request const request = { autoscaling, @@ -70,7 +47,7 @@ function main(autoscaling) { console.log(response); } - setNodePoolAutoscaling(); + callSetNodePoolAutoscaling(); // [END container_v1_generated_ClusterManager_SetNodePoolAutoscaling_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js index ed424b4a5a7..278a0b66921 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js @@ -19,33 +19,10 @@ function main(management) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - */ - // const nodePoolId = 'abc123' /** * Required. NodeManagement configuration for the node pool. */ - // const management = '' + // const management = {} /** * The name (project, location, cluster, node pool id) of the node pool to set * management properties. Specified in the format @@ -59,7 +36,7 @@ function main(management) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setNodePoolManagement() { + async function callSetNodePoolManagement() { // Construct request const request = { management, @@ -70,7 +47,7 @@ function main(management) { console.log(response); } - setNodePoolManagement(); + callSetNodePoolManagement(); // [END container_v1_generated_ClusterManager_SetNodePoolManagement_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js index 6c575a8efc8..ada3fb2edb2 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js @@ -19,29 +19,6 @@ function main(nodeCount) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - */ - // const nodePoolId = 'abc123' /** * Required. The desired node count for the pool. */ @@ -59,7 +36,7 @@ function main(nodeCount) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function setNodePoolSize() { + async function callSetNodePoolSize() { // Construct request const request = { nodeCount, @@ -70,7 +47,7 @@ function main(nodeCount) { console.log(response); } - setNodePoolSize(); + callSetNodePoolSize(); // [END container_v1_generated_ClusterManager_SetNodePoolSize_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js index 69f37632535..03882182f3f 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js @@ -19,24 +19,6 @@ function main() { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * The name (project, location, cluster id) of the cluster to start IP * rotation. Specified in the format `projects/* /locations/* /clusters/*`. @@ -53,7 +35,7 @@ function main() { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function startIPRotation() { + async function callStartIPRotation() { // Construct request const request = {}; @@ -62,7 +44,7 @@ function main() { console.log(response); } - startIPRotation(); + callStartIPRotation(); // [END container_v1_generated_ClusterManager_StartIPRotation_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js index 80f583896ca..57ea0b4b3cc 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js @@ -19,28 +19,10 @@ function main(update) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * Required. A description of the update. */ - // const update = '' + // const update = {} /** * The name (project, location, cluster) of the cluster to update. * Specified in the format `projects/* /locations/* /clusters/*`. @@ -53,7 +35,7 @@ function main(update) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function updateCluster() { + async function callUpdateCluster() { // Construct request const request = { update, @@ -64,7 +46,7 @@ function main(update) { console.log(response); } - updateCluster(); + callUpdateCluster(); // [END container_v1_generated_ClusterManager_UpdateCluster_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_master.js b/packages/google-container/samples/generated/v1/cluster_manager.update_master.js index 1c128b35b59..f843a28246d 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_master.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_master.js @@ -19,24 +19,6 @@ function main(masterVersion) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' /** * Required. The Kubernetes version to change the master to. * Users may specify either explicit versions offered by Kubernetes Engine or @@ -60,7 +42,7 @@ function main(masterVersion) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function updateMaster() { + async function callUpdateMaster() { // Construct request const request = { masterVersion, @@ -71,7 +53,7 @@ function main(masterVersion) { console.log(response); } - updateMaster(); + callUpdateMaster(); // [END container_v1_generated_ClusterManager_UpdateMaster_async] } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index 2e5610af07a..25962a93bf4 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -19,29 +19,6 @@ function main(nodeVersion, imageType) { /** * TODO(developer): Uncomment these variables before running the sample. */ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - */ - // const projectId = 'abc123' - /** - * 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. - */ - // const zone = 'abc123' - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const clusterId = 'abc123' - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - */ - // const nodePoolId = 'abc123' /** * Required. The Kubernetes version to change the nodes to (typically an * upgrade). @@ -66,7 +43,7 @@ function main(nodeVersion, imageType) { // const name = 'abc123' /** * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the + * 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. @@ -75,11 +52,11 @@ function main(nodeVersion, imageType) { /** * The desired workload metadata config for the node pool. */ - // const workloadMetadataConfig = '' + // const workloadMetadataConfig = {} /** * Upgrade settings control disruption and speed of the upgrade. */ - // const upgradeSettings = '' + // const upgradeSettings = {} // Imports the Container library const {ClusterManagerClient} = require('@google-cloud/container').v1; @@ -87,7 +64,7 @@ function main(nodeVersion, imageType) { // Instantiates a client const containerClient = new ClusterManagerClient(); - async function updateNodePool() { + async function callUpdateNodePool() { // Construct request const request = { nodeVersion, @@ -99,7 +76,7 @@ function main(nodeVersion, imageType) { console.log(response); } - updateNodePool(); + callUpdateNodePool(); // [END container_v1_generated_ClusterManager_UpdateNodePool_async] } diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 04a8593cf90..046aade5004 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -334,33 +334,6 @@ export class ClusterManagerClient { // ------------------- // -- Service calls -- // ------------------- - listClusters( - request?: protos.google.container.v1.IListClustersRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IListClustersResponse, - protos.google.container.v1.IListClustersRequest | undefined, - {} | undefined - ] - >; - listClusters( - request: protos.google.container.v1.IListClustersRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IListClustersResponse, - protos.google.container.v1.IListClustersRequest | null | undefined, - {} | null | undefined - > - ): void; - listClusters( - request: protos.google.container.v1.IListClustersRequest, - callback: Callback< - protos.google.container.v1.IListClustersResponse, - protos.google.container.v1.IListClustersRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Lists all clusters owned by a project in either the specified zone or all * zones. @@ -387,9 +360,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.listClusters(request); + * @example include:samples/generated/v1/cluster_manager.list_clusters.js + * region_tag:container_v1_generated_ClusterManager_ListClusters_async */ + listClusters( + request?: protos.google.container.v1.IListClustersRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IListClustersResponse, + protos.google.container.v1.IListClustersRequest | undefined, + {} | undefined + ] + >; + listClusters( + request: protos.google.container.v1.IListClustersRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IListClustersResponse, + protos.google.container.v1.IListClustersRequest | null | undefined, + {} | null | undefined + > + ): void; + listClusters( + request: protos.google.container.v1.IListClustersRequest, + callback: Callback< + protos.google.container.v1.IListClustersResponse, + protos.google.container.v1.IListClustersRequest | null | undefined, + {} | null | undefined + > + ): void; listClusters( request?: protos.google.container.v1.IListClustersRequest, optionsOrCallback?: @@ -430,33 +430,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.listClusters(request, options, callback); } - getCluster( - request?: protos.google.container.v1.IGetClusterRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.ICluster, - protos.google.container.v1.IGetClusterRequest | undefined, - {} | undefined - ] - >; - getCluster( - request: protos.google.container.v1.IGetClusterRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.ICluster, - protos.google.container.v1.IGetClusterRequest | null | undefined, - {} | null | undefined - > - ): void; - getCluster( - request: protos.google.container.v1.IGetClusterRequest, - callback: Callback< - protos.google.container.v1.ICluster, - protos.google.container.v1.IGetClusterRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Gets the details of a specific cluster. * @@ -484,9 +457,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.getCluster(request); + * @example include:samples/generated/v1/cluster_manager.get_cluster.js + * region_tag:container_v1_generated_ClusterManager_GetCluster_async */ + getCluster( + request?: protos.google.container.v1.IGetClusterRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.ICluster, + protos.google.container.v1.IGetClusterRequest | undefined, + {} | undefined + ] + >; + getCluster( + request: protos.google.container.v1.IGetClusterRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.ICluster, + protos.google.container.v1.IGetClusterRequest | null | undefined, + {} | null | undefined + > + ): void; + getCluster( + request: protos.google.container.v1.IGetClusterRequest, + callback: Callback< + protos.google.container.v1.ICluster, + protos.google.container.v1.IGetClusterRequest | null | undefined, + {} | null | undefined + > + ): void; getCluster( request?: protos.google.container.v1.IGetClusterRequest, optionsOrCallback?: @@ -527,33 +527,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.getCluster(request, options, callback); } - createCluster( - request?: protos.google.container.v1.ICreateClusterRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ICreateClusterRequest | undefined, - {} | undefined - ] - >; - createCluster( - request: protos.google.container.v1.ICreateClusterRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ICreateClusterRequest | null | undefined, - {} | null | undefined - > - ): void; - createCluster( - request: protos.google.container.v1.ICreateClusterRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ICreateClusterRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Creates a cluster, consisting of the specified number and type of Google * Compute Engine instances. @@ -594,9 +567,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.createCluster(request); + * @example include:samples/generated/v1/cluster_manager.create_cluster.js + * region_tag:container_v1_generated_ClusterManager_CreateCluster_async */ + createCluster( + request?: protos.google.container.v1.ICreateClusterRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateClusterRequest | undefined, + {} | undefined + ] + >; + createCluster( + request: protos.google.container.v1.ICreateClusterRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateClusterRequest | null | undefined, + {} | null | undefined + > + ): void; + createCluster( + request: protos.google.container.v1.ICreateClusterRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateClusterRequest | null | undefined, + {} | null | undefined + > + ): void; createCluster( request?: protos.google.container.v1.ICreateClusterRequest, optionsOrCallback?: @@ -637,33 +637,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.createCluster(request, options, callback); } - updateCluster( - request?: protos.google.container.v1.IUpdateClusterRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateClusterRequest | undefined, - {} | undefined - ] - >; - updateCluster( - request: protos.google.container.v1.IUpdateClusterRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateClusterRequest | null | undefined, - {} | null | undefined - > - ): void; - updateCluster( - request: protos.google.container.v1.IUpdateClusterRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateClusterRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Updates the settings of a specific cluster. * @@ -693,9 +666,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.updateCluster(request); + * @example include:samples/generated/v1/cluster_manager.update_cluster.js + * region_tag:container_v1_generated_ClusterManager_UpdateCluster_async */ + updateCluster( + request?: protos.google.container.v1.IUpdateClusterRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateClusterRequest | undefined, + {} | undefined + ] + >; + updateCluster( + request: protos.google.container.v1.IUpdateClusterRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateClusterRequest | null | undefined, + {} | null | undefined + > + ): void; + updateCluster( + request: protos.google.container.v1.IUpdateClusterRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateClusterRequest | null | undefined, + {} | null | undefined + > + ): void; updateCluster( request?: protos.google.container.v1.IUpdateClusterRequest, optionsOrCallback?: @@ -736,33 +736,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.updateCluster(request, options, callback); } - updateNodePool( - request?: protos.google.container.v1.IUpdateNodePoolRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateNodePoolRequest | undefined, - {} | undefined - ] - >; - updateNodePool( - request: protos.google.container.v1.IUpdateNodePoolRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, - {} | null | undefined - > - ): void; - updateNodePool( - request: protos.google.container.v1.IUpdateNodePoolRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Updates the version and/or image type for the specified node pool. * @@ -818,23 +791,50 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.updateNodePool(request); + * @example include:samples/generated/v1/cluster_manager.update_node_pool.js + * region_tag:container_v1_generated_ClusterManager_UpdateNodePool_async */ updateNodePool( request?: protos.google.container.v1.IUpdateNodePoolRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, - {} | null | undefined - > + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | undefined, + {} | undefined + ] + >; + updateNodePool( + request: protos.google.container.v1.IUpdateNodePoolRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; + updateNodePool( + request: protos.google.container.v1.IUpdateNodePoolRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; + updateNodePool( + request?: protos.google.container.v1.IUpdateNodePoolRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateNodePoolRequest | null | undefined, + {} | null | undefined + > ): Promise< [ protos.google.container.v1.IOperation, @@ -861,37 +861,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.updateNodePool(request, options, callback); } - setNodePoolAutoscaling( - request?: protos.google.container.v1.ISetNodePoolAutoscalingRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetNodePoolAutoscalingRequest | undefined, - {} | undefined - ] - >; - setNodePoolAutoscaling( - request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - | protos.google.container.v1.ISetNodePoolAutoscalingRequest - | null - | undefined, - {} | null | undefined - > - ): void; - setNodePoolAutoscaling( - request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, - callback: Callback< - protos.google.container.v1.IOperation, - | protos.google.container.v1.ISetNodePoolAutoscalingRequest - | null - | undefined, - {} | null | undefined - > - ): void; /** * Sets the autoscaling settings for the specified node pool. * @@ -925,9 +894,40 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setNodePoolAutoscaling(request); + * @example include:samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js + * region_tag:container_v1_generated_ClusterManager_SetNodePoolAutoscaling_async */ + setNodePoolAutoscaling( + request?: protos.google.container.v1.ISetNodePoolAutoscalingRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolAutoscalingRequest | undefined, + {} | undefined + ] + >; + setNodePoolAutoscaling( + request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolAutoscalingRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setNodePoolAutoscaling( + request: protos.google.container.v1.ISetNodePoolAutoscalingRequest, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolAutoscalingRequest + | null + | undefined, + {} | null | undefined + > + ): void; setNodePoolAutoscaling( request?: protos.google.container.v1.ISetNodePoolAutoscalingRequest, optionsOrCallback?: @@ -976,33 +976,6 @@ export class ClusterManagerClient { callback ); } - setLoggingService( - request?: protos.google.container.v1.ISetLoggingServiceRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLoggingServiceRequest | undefined, - {} | undefined - ] - >; - setLoggingService( - request: protos.google.container.v1.ISetLoggingServiceRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLoggingServiceRequest | null | undefined, - {} | null | undefined - > - ): void; - setLoggingService( - request: protos.google.container.v1.ISetLoggingServiceRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLoggingServiceRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Sets the logging service for a specific cluster. * @@ -1042,9 +1015,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setLoggingService(request); + * @example include:samples/generated/v1/cluster_manager.set_logging_service.js + * region_tag:container_v1_generated_ClusterManager_SetLoggingService_async */ + setLoggingService( + request?: protos.google.container.v1.ISetLoggingServiceRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLoggingServiceRequest | undefined, + {} | undefined + ] + >; + setLoggingService( + request: protos.google.container.v1.ISetLoggingServiceRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLoggingServiceRequest | null | undefined, + {} | null | undefined + > + ): void; + setLoggingService( + request: protos.google.container.v1.ISetLoggingServiceRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLoggingServiceRequest | null | undefined, + {} | null | undefined + > + ): void; setLoggingService( request?: protos.google.container.v1.ISetLoggingServiceRequest, optionsOrCallback?: @@ -1087,37 +1087,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.setLoggingService(request, options, callback); } - setMonitoringService( - request?: protos.google.container.v1.ISetMonitoringServiceRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetMonitoringServiceRequest | undefined, - {} | undefined - ] - >; - setMonitoringService( - request: protos.google.container.v1.ISetMonitoringServiceRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - | protos.google.container.v1.ISetMonitoringServiceRequest - | null - | undefined, - {} | null | undefined - > - ): void; - setMonitoringService( - request: protos.google.container.v1.ISetMonitoringServiceRequest, - callback: Callback< - protos.google.container.v1.IOperation, - | protos.google.container.v1.ISetMonitoringServiceRequest - | null - | undefined, - {} | null | undefined - > - ): void; /** * Sets the monitoring service for a specific cluster. * @@ -1157,9 +1126,40 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setMonitoringService(request); + * @example include:samples/generated/v1/cluster_manager.set_monitoring_service.js + * region_tag:container_v1_generated_ClusterManager_SetMonitoringService_async */ + setMonitoringService( + request?: protos.google.container.v1.ISetMonitoringServiceRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMonitoringServiceRequest | undefined, + {} | undefined + ] + >; + setMonitoringService( + request: protos.google.container.v1.ISetMonitoringServiceRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetMonitoringServiceRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setMonitoringService( + request: protos.google.container.v1.ISetMonitoringServiceRequest, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetMonitoringServiceRequest + | null + | undefined, + {} | null | undefined + > + ): void; setMonitoringService( request?: protos.google.container.v1.ISetMonitoringServiceRequest, optionsOrCallback?: @@ -1204,33 +1204,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.setMonitoringService(request, options, callback); } - setAddonsConfig( - request?: protos.google.container.v1.ISetAddonsConfigRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetAddonsConfigRequest | undefined, - {} | undefined - ] - >; - setAddonsConfig( - request: protos.google.container.v1.ISetAddonsConfigRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, - {} | null | undefined - > - ): void; - setAddonsConfig( - request: protos.google.container.v1.ISetAddonsConfigRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Sets the addons for a specific cluster. * @@ -1261,23 +1234,50 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setAddonsConfig(request); + * @example include:samples/generated/v1/cluster_manager.set_addons_config.js + * region_tag:container_v1_generated_ClusterManager_SetAddonsConfig_async */ setAddonsConfig( request?: protos.google.container.v1.ISetAddonsConfigRequest, - optionsOrCallback?: - | CallOptions - | Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, - {} | null | undefined - >, - callback?: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, - {} | null | undefined - > + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | undefined, + {} | undefined + ] + >; + setAddonsConfig( + request: protos.google.container.v1.ISetAddonsConfigRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, + {} | null | undefined + > + ): void; + setAddonsConfig( + request: protos.google.container.v1.ISetAddonsConfigRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, + {} | null | undefined + > + ): void; + setAddonsConfig( + request?: protos.google.container.v1.ISetAddonsConfigRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetAddonsConfigRequest | null | undefined, + {} | null | undefined + > ): Promise< [ protos.google.container.v1.IOperation, @@ -1304,33 +1304,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.setAddonsConfig(request, options, callback); } - setLocations( - request?: protos.google.container.v1.ISetLocationsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLocationsRequest | undefined, - {} | undefined - ] - >; - setLocations( - request: protos.google.container.v1.ISetLocationsRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLocationsRequest | null | undefined, - {} | null | undefined - > - ): void; - setLocations( - request: protos.google.container.v1.ISetLocationsRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLocationsRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Sets the locations for a specific cluster. * Deprecated. Use @@ -1369,10 +1342,37 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setLocations(request); + * @example include:samples/generated/v1/cluster_manager.set_locations.js + * region_tag:container_v1_generated_ClusterManager_SetLocations_async * @deprecated SetLocations is deprecated and may be removed in a future version. */ + setLocations( + request?: protos.google.container.v1.ISetLocationsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLocationsRequest | undefined, + {} | undefined + ] + >; + setLocations( + request: protos.google.container.v1.ISetLocationsRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLocationsRequest | null | undefined, + {} | null | undefined + > + ): void; + setLocations( + request: protos.google.container.v1.ISetLocationsRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLocationsRequest | null | undefined, + {} | null | undefined + > + ): void; setLocations( request?: protos.google.container.v1.ISetLocationsRequest, optionsOrCallback?: @@ -1418,33 +1418,6 @@ export class ClusterManagerClient { ); return this.innerApiCalls.setLocations(request, options, callback); } - updateMaster( - request?: protos.google.container.v1.IUpdateMasterRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateMasterRequest | undefined, - {} | undefined - ] - >; - updateMaster( - request: protos.google.container.v1.IUpdateMasterRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateMasterRequest | null | undefined, - {} | null | undefined - > - ): void; - updateMaster( - request: protos.google.container.v1.IUpdateMasterRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IUpdateMasterRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Updates the master for a specific cluster. * @@ -1483,9 +1456,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.updateMaster(request); + * @example include:samples/generated/v1/cluster_manager.update_master.js + * region_tag:container_v1_generated_ClusterManager_UpdateMaster_async */ + updateMaster( + request?: protos.google.container.v1.IUpdateMasterRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateMasterRequest | undefined, + {} | undefined + ] + >; + updateMaster( + request: protos.google.container.v1.IUpdateMasterRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateMasterRequest | null | undefined, + {} | null | undefined + > + ): void; + updateMaster( + request: protos.google.container.v1.IUpdateMasterRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IUpdateMasterRequest | null | undefined, + {} | null | undefined + > + ): void; updateMaster( request?: protos.google.container.v1.IUpdateMasterRequest, optionsOrCallback?: @@ -1526,33 +1526,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.updateMaster(request, options, callback); } - setMasterAuth( - request?: protos.google.container.v1.ISetMasterAuthRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetMasterAuthRequest | undefined, - {} | undefined - ] - >; - setMasterAuth( - request: protos.google.container.v1.ISetMasterAuthRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetMasterAuthRequest | null | undefined, - {} | null | undefined - > - ): void; - setMasterAuth( - request: protos.google.container.v1.ISetMasterAuthRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetMasterAuthRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Sets master auth materials. Currently supports changing the admin password * or a specific cluster, either via password generation or explicitly setting @@ -1586,9 +1559,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setMasterAuth(request); + * @example include:samples/generated/v1/cluster_manager.set_master_auth.js + * region_tag:container_v1_generated_ClusterManager_SetMasterAuth_async */ + setMasterAuth( + request?: protos.google.container.v1.ISetMasterAuthRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMasterAuthRequest | undefined, + {} | undefined + ] + >; + setMasterAuth( + request: protos.google.container.v1.ISetMasterAuthRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMasterAuthRequest | null | undefined, + {} | null | undefined + > + ): void; + setMasterAuth( + request: protos.google.container.v1.ISetMasterAuthRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetMasterAuthRequest | null | undefined, + {} | null | undefined + > + ): void; setMasterAuth( request?: protos.google.container.v1.ISetMasterAuthRequest, optionsOrCallback?: @@ -1629,33 +1629,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.setMasterAuth(request, options, callback); } - deleteCluster( - request?: protos.google.container.v1.IDeleteClusterRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.IDeleteClusterRequest | undefined, - {} | undefined - ] - >; - deleteCluster( - request: protos.google.container.v1.IDeleteClusterRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IDeleteClusterRequest | null | undefined, - {} | null | undefined - > - ): void; - deleteCluster( - request: protos.google.container.v1.IDeleteClusterRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IDeleteClusterRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Deletes the cluster, including the Kubernetes endpoint and all worker * nodes. @@ -1691,9 +1664,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.deleteCluster(request); + * @example include:samples/generated/v1/cluster_manager.delete_cluster.js + * region_tag:container_v1_generated_ClusterManager_DeleteCluster_async */ + deleteCluster( + request?: protos.google.container.v1.IDeleteClusterRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteClusterRequest | undefined, + {} | undefined + ] + >; + deleteCluster( + request: protos.google.container.v1.IDeleteClusterRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteClusterRequest | null | undefined, + {} | null | undefined + > + ): void; + deleteCluster( + request: protos.google.container.v1.IDeleteClusterRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteClusterRequest | null | undefined, + {} | null | undefined + > + ): void; deleteCluster( request?: protos.google.container.v1.IDeleteClusterRequest, optionsOrCallback?: @@ -1734,33 +1734,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.deleteCluster(request, options, callback); } - listOperations( - request?: protos.google.container.v1.IListOperationsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IListOperationsResponse, - protos.google.container.v1.IListOperationsRequest | undefined, - {} | undefined - ] - >; - listOperations( - request: protos.google.container.v1.IListOperationsRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IListOperationsResponse, - protos.google.container.v1.IListOperationsRequest | null | undefined, - {} | null | undefined - > - ): void; - listOperations( - request: protos.google.container.v1.IListOperationsRequest, - callback: Callback< - protos.google.container.v1.IListOperationsResponse, - protos.google.container.v1.IListOperationsRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Lists all operations in a project in a specific zone or all zones. * @@ -1786,9 +1759,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.listOperations(request); + * @example include:samples/generated/v1/cluster_manager.list_operations.js + * region_tag:container_v1_generated_ClusterManager_ListOperations_async */ + listOperations( + request?: protos.google.container.v1.IListOperationsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IListOperationsResponse, + protos.google.container.v1.IListOperationsRequest | undefined, + {} | undefined + ] + >; + listOperations( + request: protos.google.container.v1.IListOperationsRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IListOperationsResponse, + protos.google.container.v1.IListOperationsRequest | null | undefined, + {} | null | undefined + > + ): void; + listOperations( + request: protos.google.container.v1.IListOperationsRequest, + callback: Callback< + protos.google.container.v1.IListOperationsResponse, + protos.google.container.v1.IListOperationsRequest | null | undefined, + {} | null | undefined + > + ): void; listOperations( request?: protos.google.container.v1.IListOperationsRequest, optionsOrCallback?: @@ -1829,33 +1829,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.listOperations(request, options, callback); } - getOperation( - request?: protos.google.container.v1.IGetOperationRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.IGetOperationRequest | undefined, - {} | undefined - ] - >; - getOperation( - request: protos.google.container.v1.IGetOperationRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IGetOperationRequest | null | undefined, - {} | null | undefined - > - ): void; - getOperation( - request: protos.google.container.v1.IGetOperationRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IGetOperationRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Gets the specified operation. * @@ -1883,9 +1856,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.getOperation(request); + * @example include:samples/generated/v1/cluster_manager.get_operation.js + * region_tag:container_v1_generated_ClusterManager_GetOperation_async */ + getOperation( + request?: protos.google.container.v1.IGetOperationRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.IGetOperationRequest | undefined, + {} | undefined + ] + >; + getOperation( + request: protos.google.container.v1.IGetOperationRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IGetOperationRequest | null | undefined, + {} | null | undefined + > + ): void; + getOperation( + request: protos.google.container.v1.IGetOperationRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IGetOperationRequest | null | undefined, + {} | null | undefined + > + ): void; getOperation( request?: protos.google.container.v1.IGetOperationRequest, optionsOrCallback?: @@ -1926,33 +1926,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.getOperation(request, options, callback); } - cancelOperation( - request?: protos.google.container.v1.ICancelOperationRequest, - options?: CallOptions - ): Promise< - [ - protos.google.protobuf.IEmpty, - protos.google.container.v1.ICancelOperationRequest | undefined, - {} | undefined - ] - >; - cancelOperation( - request: protos.google.container.v1.ICancelOperationRequest, - options: CallOptions, - callback: Callback< - protos.google.protobuf.IEmpty, - protos.google.container.v1.ICancelOperationRequest | null | undefined, - {} | null | undefined - > - ): void; - cancelOperation( - request: protos.google.container.v1.ICancelOperationRequest, - callback: Callback< - protos.google.protobuf.IEmpty, - protos.google.container.v1.ICancelOperationRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Cancels the specified operation. * @@ -1980,9 +1953,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.cancelOperation(request); + * @example include:samples/generated/v1/cluster_manager.cancel_operation.js + * region_tag:container_v1_generated_ClusterManager_CancelOperation_async */ + cancelOperation( + request?: protos.google.container.v1.ICancelOperationRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICancelOperationRequest | undefined, + {} | undefined + ] + >; + cancelOperation( + request: protos.google.container.v1.ICancelOperationRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICancelOperationRequest | null | undefined, + {} | null | undefined + > + ): void; + cancelOperation( + request: protos.google.container.v1.ICancelOperationRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICancelOperationRequest | null | undefined, + {} | null | undefined + > + ): void; cancelOperation( request?: protos.google.container.v1.ICancelOperationRequest, optionsOrCallback?: @@ -2023,6 +2023,33 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.cancelOperation(request, options, callback); } + /** + * Returns configuration info about the Google Kubernetes Engine service. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Deprecated. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * This field has been deprecated and replaced by the name field. + * @param {string} request.zone + * 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. + * @param {string} request.name + * The name (project and location) of the server config to get, + * specified in the format `projects/* /locations/*`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ServerConfig]{@link google.container.v1.ServerConfig}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/cluster_manager.get_server_config.js + * region_tag:container_v1_generated_ClusterManager_GetServerConfig_async + */ getServerConfig( request?: protos.google.container.v1.IGetServerConfigRequest, options?: CallOptions @@ -2050,33 +2077,6 @@ export class ClusterManagerClient { {} | null | undefined > ): void; - /** - * Returns configuration info about the Google Kubernetes Engine service. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * This field has been deprecated and replaced by the name field. - * @param {string} request.zone - * 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. - * @param {string} request.name - * The name (project and location) of the server config to get, - * specified in the format `projects/* /locations/*`. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ServerConfig]{@link google.container.v1.ServerConfig}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getServerConfig(request); - */ getServerConfig( request?: protos.google.container.v1.IGetServerConfigRequest, optionsOrCallback?: @@ -2117,6 +2117,27 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.getServerConfig(request, options, callback); } + /** + * 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. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * The cluster (project, location, cluster id) to get keys for. Specified in + * the format `projects/* /locations/* /clusters/*`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [GetJSONWebKeysResponse]{@link google.container.v1.GetJSONWebKeysResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js + * region_tag:container_v1_generated_ClusterManager_GetJSONWebKeys_async + */ getJSONWebKeys( request?: protos.google.container.v1.IGetJSONWebKeysRequest, options?: CallOptions @@ -2144,27 +2165,6 @@ export class ClusterManagerClient { {} | null | undefined > ): void; - /** - * 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. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * The cluster (project, location, cluster id) to get keys for. Specified in - * the format `projects/* /locations/* /clusters/*`. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [GetJSONWebKeysResponse]{@link google.container.v1.GetJSONWebKeysResponse}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getJSONWebKeys(request); - */ getJSONWebKeys( request?: protos.google.container.v1.IGetJSONWebKeysRequest, optionsOrCallback?: @@ -2194,43 +2194,16 @@ export class ClusterManagerClient { } else { options = optionsOrCallback as CallOptions; } - options = options || {}; - options.otherArgs = options.otherArgs || {}; - options.otherArgs.headers = options.otherArgs.headers || {}; - options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ - parent: request.parent || '', - }); - this.initialize(); - return this.innerApiCalls.getJSONWebKeys(request, options, callback); - } - listNodePools( - request?: protos.google.container.v1.IListNodePoolsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IListNodePoolsResponse, - protos.google.container.v1.IListNodePoolsRequest | undefined, - {} | undefined - ] - >; - listNodePools( - request: protos.google.container.v1.IListNodePoolsRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IListNodePoolsResponse, - protos.google.container.v1.IListNodePoolsRequest | null | undefined, - {} | null | undefined - > - ): void; - listNodePools( - request: protos.google.container.v1.IListNodePoolsRequest, - callback: Callback< - protos.google.container.v1.IListNodePoolsResponse, - protos.google.container.v1.IListNodePoolsRequest | null | undefined, - {} | null | undefined - > - ): void; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.getJSONWebKeys(request, options, callback); + } /** * Lists the node pools for a cluster. * @@ -2258,9 +2231,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.listNodePools(request); + * @example include:samples/generated/v1/cluster_manager.list_node_pools.js + * region_tag:container_v1_generated_ClusterManager_ListNodePools_async */ + listNodePools( + request?: protos.google.container.v1.IListNodePoolsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IListNodePoolsResponse, + protos.google.container.v1.IListNodePoolsRequest | undefined, + {} | undefined + ] + >; + listNodePools( + request: protos.google.container.v1.IListNodePoolsRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IListNodePoolsResponse, + protos.google.container.v1.IListNodePoolsRequest | null | undefined, + {} | null | undefined + > + ): void; + listNodePools( + request: protos.google.container.v1.IListNodePoolsRequest, + callback: Callback< + protos.google.container.v1.IListNodePoolsResponse, + protos.google.container.v1.IListNodePoolsRequest | null | undefined, + {} | null | undefined + > + ): void; listNodePools( request?: protos.google.container.v1.IListNodePoolsRequest, optionsOrCallback?: @@ -2301,33 +2301,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.listNodePools(request, options, callback); } - getNodePool( - request?: protos.google.container.v1.IGetNodePoolRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.INodePool, - protos.google.container.v1.IGetNodePoolRequest | undefined, - {} | undefined - ] - >; - getNodePool( - request: protos.google.container.v1.IGetNodePoolRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.INodePool, - protos.google.container.v1.IGetNodePoolRequest | null | undefined, - {} | null | undefined - > - ): void; - getNodePool( - request: protos.google.container.v1.IGetNodePoolRequest, - callback: Callback< - protos.google.container.v1.INodePool, - protos.google.container.v1.IGetNodePoolRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Retrieves the requested node pool. * @@ -2359,9 +2332,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.getNodePool(request); + * @example include:samples/generated/v1/cluster_manager.get_node_pool.js + * region_tag:container_v1_generated_ClusterManager_GetNodePool_async */ + getNodePool( + request?: protos.google.container.v1.IGetNodePoolRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.INodePool, + protos.google.container.v1.IGetNodePoolRequest | undefined, + {} | undefined + ] + >; + getNodePool( + request: protos.google.container.v1.IGetNodePoolRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.INodePool, + protos.google.container.v1.IGetNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; + getNodePool( + request: protos.google.container.v1.IGetNodePoolRequest, + callback: Callback< + protos.google.container.v1.INodePool, + protos.google.container.v1.IGetNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; getNodePool( request?: protos.google.container.v1.IGetNodePoolRequest, optionsOrCallback?: @@ -2402,33 +2402,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.getNodePool(request, options, callback); } - createNodePool( - request?: protos.google.container.v1.ICreateNodePoolRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ICreateNodePoolRequest | undefined, - {} | undefined - ] - >; - createNodePool( - request: protos.google.container.v1.ICreateNodePoolRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ICreateNodePoolRequest | null | undefined, - {} | null | undefined - > - ): void; - createNodePool( - request: protos.google.container.v1.ICreateNodePoolRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ICreateNodePoolRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Creates a node pool for a cluster. * @@ -2459,9 +2432,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.createNodePool(request); + * @example include:samples/generated/v1/cluster_manager.create_node_pool.js + * region_tag:container_v1_generated_ClusterManager_CreateNodePool_async */ + createNodePool( + request?: protos.google.container.v1.ICreateNodePoolRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateNodePoolRequest | undefined, + {} | undefined + ] + >; + createNodePool( + request: protos.google.container.v1.ICreateNodePoolRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; + createNodePool( + request: protos.google.container.v1.ICreateNodePoolRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ICreateNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; createNodePool( request?: protos.google.container.v1.ICreateNodePoolRequest, optionsOrCallback?: @@ -2502,33 +2502,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.createNodePool(request, options, callback); } - deleteNodePool( - request?: protos.google.container.v1.IDeleteNodePoolRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.IDeleteNodePoolRequest | undefined, - {} | undefined - ] - >; - deleteNodePool( - request: protos.google.container.v1.IDeleteNodePoolRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, - {} | null | undefined - > - ): void; - deleteNodePool( - request: protos.google.container.v1.IDeleteNodePoolRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Deletes a node pool from a cluster. * @@ -2560,9 +2533,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.deleteNodePool(request); + * @example include:samples/generated/v1/cluster_manager.delete_node_pool.js + * region_tag:container_v1_generated_ClusterManager_DeleteNodePool_async */ + deleteNodePool( + request?: protos.google.container.v1.IDeleteNodePoolRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteNodePoolRequest | undefined, + {} | undefined + ] + >; + deleteNodePool( + request: protos.google.container.v1.IDeleteNodePoolRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; + deleteNodePool( + request: protos.google.container.v1.IDeleteNodePoolRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IDeleteNodePoolRequest | null | undefined, + {} | null | undefined + > + ): void; deleteNodePool( request?: protos.google.container.v1.IDeleteNodePoolRequest, optionsOrCallback?: @@ -2603,37 +2603,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.deleteNodePool(request, options, callback); } - rollbackNodePoolUpgrade( - request?: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.IRollbackNodePoolUpgradeRequest | undefined, - {} | undefined - ] - >; - rollbackNodePoolUpgrade( - request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - | protos.google.container.v1.IRollbackNodePoolUpgradeRequest - | null - | undefined, - {} | null | undefined - > - ): void; - rollbackNodePoolUpgrade( - request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, - callback: Callback< - protos.google.container.v1.IOperation, - | protos.google.container.v1.IRollbackNodePoolUpgradeRequest - | null - | undefined, - {} | null | undefined - > - ): void; /** * Rolls back a previously Aborted or Failed NodePool upgrade. * This makes no changes if the last upgrade successfully completed. @@ -2666,9 +2635,40 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.rollbackNodePoolUpgrade(request); + * @example include:samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js + * region_tag:container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_async */ + rollbackNodePoolUpgrade( + request?: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.IRollbackNodePoolUpgradeRequest | undefined, + {} | undefined + ] + >; + rollbackNodePoolUpgrade( + request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.IRollbackNodePoolUpgradeRequest + | null + | undefined, + {} | null | undefined + > + ): void; + rollbackNodePoolUpgrade( + request: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.IRollbackNodePoolUpgradeRequest + | null + | undefined, + {} | null | undefined + > + ): void; rollbackNodePoolUpgrade( request?: protos.google.container.v1.IRollbackNodePoolUpgradeRequest, optionsOrCallback?: @@ -2717,37 +2717,6 @@ export class ClusterManagerClient { callback ); } - setNodePoolManagement( - request?: protos.google.container.v1.ISetNodePoolManagementRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetNodePoolManagementRequest | undefined, - {} | undefined - ] - >; - setNodePoolManagement( - request: protos.google.container.v1.ISetNodePoolManagementRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - | protos.google.container.v1.ISetNodePoolManagementRequest - | null - | undefined, - {} | null | undefined - > - ): void; - setNodePoolManagement( - request: protos.google.container.v1.ISetNodePoolManagementRequest, - callback: Callback< - protos.google.container.v1.IOperation, - | protos.google.container.v1.ISetNodePoolManagementRequest - | null - | undefined, - {} | null | undefined - > - ): void; /** * Sets the NodeManagement options for a node pool. * @@ -2781,9 +2750,40 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setNodePoolManagement(request); + * @example include:samples/generated/v1/cluster_manager.set_node_pool_management.js + * region_tag:container_v1_generated_ClusterManager_SetNodePoolManagement_async */ + setNodePoolManagement( + request?: protos.google.container.v1.ISetNodePoolManagementRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolManagementRequest | undefined, + {} | undefined + ] + >; + setNodePoolManagement( + request: protos.google.container.v1.ISetNodePoolManagementRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolManagementRequest + | null + | undefined, + {} | null | undefined + > + ): void; + setNodePoolManagement( + request: protos.google.container.v1.ISetNodePoolManagementRequest, + callback: Callback< + protos.google.container.v1.IOperation, + | protos.google.container.v1.ISetNodePoolManagementRequest + | null + | undefined, + {} | null | undefined + > + ): void; setNodePoolManagement( request?: protos.google.container.v1.ISetNodePoolManagementRequest, optionsOrCallback?: @@ -2828,33 +2828,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.setNodePoolManagement(request, options, callback); } - setLabels( - request?: protos.google.container.v1.ISetLabelsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLabelsRequest | undefined, - {} | undefined - ] - >; - setLabels( - request: protos.google.container.v1.ISetLabelsRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLabelsRequest | null | undefined, - {} | null | undefined - > - ): void; - setLabels( - request: protos.google.container.v1.ISetLabelsRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLabelsRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Sets labels on a cluster. * @@ -2891,9 +2864,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setLabels(request); + * @example include:samples/generated/v1/cluster_manager.set_labels.js + * region_tag:container_v1_generated_ClusterManager_SetLabels_async */ + setLabels( + request?: protos.google.container.v1.ISetLabelsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLabelsRequest | undefined, + {} | undefined + ] + >; + setLabels( + request: protos.google.container.v1.ISetLabelsRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLabelsRequest | null | undefined, + {} | null | undefined + > + ): void; + setLabels( + request: protos.google.container.v1.ISetLabelsRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLabelsRequest | null | undefined, + {} | null | undefined + > + ): void; setLabels( request?: protos.google.container.v1.ISetLabelsRequest, optionsOrCallback?: @@ -2934,33 +2934,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.setLabels(request, options, callback); } - setLegacyAbac( - request?: protos.google.container.v1.ISetLegacyAbacRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLegacyAbacRequest | undefined, - {} | undefined - ] - >; - setLegacyAbac( - request: protos.google.container.v1.ISetLegacyAbacRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, - {} | null | undefined - > - ): void; - setLegacyAbac( - request: protos.google.container.v1.ISetLegacyAbacRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Enables or disables the ABAC authorization mechanism on a cluster. * @@ -2990,9 +2963,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setLegacyAbac(request); + * @example include:samples/generated/v1/cluster_manager.set_legacy_abac.js + * region_tag:container_v1_generated_ClusterManager_SetLegacyAbac_async */ + setLegacyAbac( + request?: protos.google.container.v1.ISetLegacyAbacRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLegacyAbacRequest | undefined, + {} | undefined + ] + >; + setLegacyAbac( + request: protos.google.container.v1.ISetLegacyAbacRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, + {} | null | undefined + > + ): void; + setLegacyAbac( + request: protos.google.container.v1.ISetLegacyAbacRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetLegacyAbacRequest | null | undefined, + {} | null | undefined + > + ): void; setLegacyAbac( request?: protos.google.container.v1.ISetLegacyAbacRequest, optionsOrCallback?: @@ -3033,33 +3033,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.setLegacyAbac(request, options, callback); } - startIPRotation( - request?: protos.google.container.v1.IStartIPRotationRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.IStartIPRotationRequest | undefined, - {} | undefined - ] - >; - startIPRotation( - request: protos.google.container.v1.IStartIPRotationRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IStartIPRotationRequest | null | undefined, - {} | null | undefined - > - ): void; - startIPRotation( - request: protos.google.container.v1.IStartIPRotationRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.IStartIPRotationRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Starts master IP rotation. * @@ -3089,9 +3062,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.startIPRotation(request); + * @example include:samples/generated/v1/cluster_manager.start_i_p_rotation.js + * region_tag:container_v1_generated_ClusterManager_StartIPRotation_async */ + startIPRotation( + request?: protos.google.container.v1.IStartIPRotationRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.IStartIPRotationRequest | undefined, + {} | undefined + ] + >; + startIPRotation( + request: protos.google.container.v1.IStartIPRotationRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IStartIPRotationRequest | null | undefined, + {} | null | undefined + > + ): void; + startIPRotation( + request: protos.google.container.v1.IStartIPRotationRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.IStartIPRotationRequest | null | undefined, + {} | null | undefined + > + ): void; startIPRotation( request?: protos.google.container.v1.IStartIPRotationRequest, optionsOrCallback?: @@ -3132,33 +3132,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.startIPRotation(request, options, callback); } - completeIPRotation( - request?: protos.google.container.v1.ICompleteIPRotationRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ICompleteIPRotationRequest | undefined, - {} | undefined - ] - >; - completeIPRotation( - request: protos.google.container.v1.ICompleteIPRotationRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ICompleteIPRotationRequest | null | undefined, - {} | null | undefined - > - ): void; - completeIPRotation( - request: protos.google.container.v1.ICompleteIPRotationRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ICompleteIPRotationRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Completes master IP rotation. * @@ -3186,9 +3159,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.completeIPRotation(request); + * @example include:samples/generated/v1/cluster_manager.complete_i_p_rotation.js + * region_tag:container_v1_generated_ClusterManager_CompleteIPRotation_async */ + completeIPRotation( + request?: protos.google.container.v1.ICompleteIPRotationRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ICompleteIPRotationRequest | undefined, + {} | undefined + ] + >; + completeIPRotation( + request: protos.google.container.v1.ICompleteIPRotationRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ICompleteIPRotationRequest | null | undefined, + {} | null | undefined + > + ): void; + completeIPRotation( + request: protos.google.container.v1.ICompleteIPRotationRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ICompleteIPRotationRequest | null | undefined, + {} | null | undefined + > + ): void; completeIPRotation( request?: protos.google.container.v1.ICompleteIPRotationRequest, optionsOrCallback?: @@ -3231,33 +3231,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.completeIPRotation(request, options, callback); } - setNodePoolSize( - request?: protos.google.container.v1.ISetNodePoolSizeRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetNodePoolSizeRequest | undefined, - {} | undefined - ] - >; - setNodePoolSize( - request: protos.google.container.v1.ISetNodePoolSizeRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, - {} | null | undefined - > - ): void; - setNodePoolSize( - request: protos.google.container.v1.ISetNodePoolSizeRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Sets the size for a specific node pool. * @@ -3291,9 +3264,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setNodePoolSize(request); + * @example include:samples/generated/v1/cluster_manager.set_node_pool_size.js + * region_tag:container_v1_generated_ClusterManager_SetNodePoolSize_async */ + setNodePoolSize( + request?: protos.google.container.v1.ISetNodePoolSizeRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolSizeRequest | undefined, + {} | undefined + ] + >; + setNodePoolSize( + request: protos.google.container.v1.ISetNodePoolSizeRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, + {} | null | undefined + > + ): void; + setNodePoolSize( + request: protos.google.container.v1.ISetNodePoolSizeRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNodePoolSizeRequest | null | undefined, + {} | null | undefined + > + ): void; setNodePoolSize( request?: protos.google.container.v1.ISetNodePoolSizeRequest, optionsOrCallback?: @@ -3334,33 +3334,6 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.setNodePoolSize(request, options, callback); } - setNetworkPolicy( - request?: protos.google.container.v1.ISetNetworkPolicyRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetNetworkPolicyRequest | undefined, - {} | undefined - ] - >; - setNetworkPolicy( - request: protos.google.container.v1.ISetNetworkPolicyRequest, - options: CallOptions, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetNetworkPolicyRequest | null | undefined, - {} | null | undefined - > - ): void; - setNetworkPolicy( - request: protos.google.container.v1.ISetNetworkPolicyRequest, - callback: Callback< - protos.google.container.v1.IOperation, - protos.google.container.v1.ISetNetworkPolicyRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Enables or disables Network Policy for a cluster. * @@ -3390,9 +3363,36 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.setNetworkPolicy(request); + * @example include:samples/generated/v1/cluster_manager.set_network_policy.js + * region_tag:container_v1_generated_ClusterManager_SetNetworkPolicy_async */ + setNetworkPolicy( + request?: protos.google.container.v1.ISetNetworkPolicyRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNetworkPolicyRequest | undefined, + {} | undefined + ] + >; + setNetworkPolicy( + request: protos.google.container.v1.ISetNetworkPolicyRequest, + options: CallOptions, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNetworkPolicyRequest | null | undefined, + {} | null | undefined + > + ): void; + setNetworkPolicy( + request: protos.google.container.v1.ISetNetworkPolicyRequest, + callback: Callback< + protos.google.container.v1.IOperation, + protos.google.container.v1.ISetNetworkPolicyRequest | null | undefined, + {} | null | undefined + > + ): void; setNetworkPolicy( request?: protos.google.container.v1.ISetNetworkPolicyRequest, optionsOrCallback?: @@ -3435,6 +3435,37 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.setNetworkPolicy(request, options, callback); } + /** + * Sets the maintenance policy for a cluster. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.projectId + * Required. The Google Developers Console [project ID or project + * number](https://support.google.com/cloud/answer/6158840). + * @param {string} request.zone + * Required. The name of the Google Compute Engine + * [zone](https://cloud.google.com/compute/docs/zones#available) in which the + * cluster resides. + * @param {string} request.clusterId + * Required. The name of the cluster to update. + * @param {google.container.v1.MaintenancePolicy} request.maintenancePolicy + * Required. The maintenance policy to be set for the cluster. An empty field + * clears the existing maintenance policy. + * @param {string} request.name + * The name (project, location, cluster id) of the cluster to set maintenance + * policy. + * Specified in the format `projects/* /locations/* /clusters/*`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/cluster_manager.set_maintenance_policy.js + * region_tag:container_v1_generated_ClusterManager_SetMaintenancePolicy_async + */ setMaintenancePolicy( request?: protos.google.container.v1.ISetMaintenancePolicyRequest, options?: CallOptions @@ -3466,37 +3497,6 @@ export class ClusterManagerClient { {} | null | undefined > ): void; - /** - * Sets the maintenance policy for a cluster. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.projectId - * Required. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). - * @param {string} request.zone - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * @param {string} request.clusterId - * Required. The name of the cluster to update. - * @param {google.container.v1.MaintenancePolicy} request.maintenancePolicy - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * @param {string} request.name - * The name (project, location, cluster id) of the cluster to set maintenance - * policy. - * Specified in the format `projects/* /locations/* /clusters/*`. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Operation]{@link google.container.v1.Operation}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.setMaintenancePolicy(request); - */ setMaintenancePolicy( request?: protos.google.container.v1.ISetMaintenancePolicyRequest, optionsOrCallback?: @@ -3542,37 +3542,6 @@ export class ClusterManagerClient { return this.innerApiCalls.setMaintenancePolicy(request, options, callback); } - listUsableSubnetworks( - request?: protos.google.container.v1.IListUsableSubnetworksRequest, - options?: CallOptions - ): Promise< - [ - protos.google.container.v1.IUsableSubnetwork[], - protos.google.container.v1.IListUsableSubnetworksRequest | null, - protos.google.container.v1.IListUsableSubnetworksResponse - ] - >; - listUsableSubnetworks( - request: protos.google.container.v1.IListUsableSubnetworksRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.container.v1.IListUsableSubnetworksRequest, - | protos.google.container.v1.IListUsableSubnetworksResponse - | null - | undefined, - protos.google.container.v1.IUsableSubnetwork - > - ): void; - listUsableSubnetworks( - request: protos.google.container.v1.IListUsableSubnetworksRequest, - callback: PaginationCallback< - protos.google.container.v1.IListUsableSubnetworksRequest, - | protos.google.container.v1.IListUsableSubnetworksResponse - | null - | undefined, - protos.google.container.v1.IUsableSubnetwork - > - ): void; /** * Lists subnetworks that are usable for creating clusters in a project. * @@ -3607,6 +3576,37 @@ export class ClusterManagerClient { * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ + listUsableSubnetworks( + request?: protos.google.container.v1.IListUsableSubnetworksRequest, + options?: CallOptions + ): Promise< + [ + protos.google.container.v1.IUsableSubnetwork[], + protos.google.container.v1.IListUsableSubnetworksRequest | null, + protos.google.container.v1.IListUsableSubnetworksResponse + ] + >; + listUsableSubnetworks( + request: protos.google.container.v1.IListUsableSubnetworksRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.container.v1.IListUsableSubnetworksRequest, + | protos.google.container.v1.IListUsableSubnetworksResponse + | null + | undefined, + protos.google.container.v1.IUsableSubnetwork + > + ): void; + listUsableSubnetworks( + request: protos.google.container.v1.IListUsableSubnetworksRequest, + callback: PaginationCallback< + protos.google.container.v1.IListUsableSubnetworksRequest, + | protos.google.container.v1.IListUsableSubnetworksResponse + | null + | undefined, + protos.google.container.v1.IUsableSubnetwork + > + ): void; listUsableSubnetworks( request?: protos.google.container.v1.IListUsableSubnetworksRequest, optionsOrCallback?: @@ -3737,11 +3737,8 @@ export class ClusterManagerClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listUsableSubnetworksAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v1/cluster_manager.list_usable_subnetworks.js + * region_tag:container_v1_generated_ClusterManager_ListUsableSubnetworks_async */ listUsableSubnetworksAsync( request?: protos.google.container.v1.IListUsableSubnetworksRequest, @@ -3755,7 +3752,6 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; const defaultCallSettings = this._defaults['listUsableSubnetworks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); From 45f1be039ab5bde8a8ceb5d7be11fd321b762133 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 9 Dec 2021 17:39:12 -0500 Subject: [PATCH 313/371] feat: add eslintignore for sameple generated code (#1302) (#497) Source-Link: https://github.com/googleapis/synthtool/commit/b80127683923d61d471bf957cf19ae7ba131ff8b Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:ba3f2990fefe465f89834e4c46f847ddb141afa54daa6a1d462928fa679ed143 Co-authored-by: Owl Bot --- packages/google-container/.eslintignore | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/google-container/.eslintignore b/packages/google-container/.eslintignore index 9340ad9b86d..ea5b04aebe6 100644 --- a/packages/google-container/.eslintignore +++ b/packages/google-container/.eslintignore @@ -4,3 +4,4 @@ test/fixtures build/ docs/ protos/ +samples/generated/ From 5b2970ef5f589d3b25163b3c6474fd2a3b142990 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 9 Dec 2021 22:48:22 +0000 Subject: [PATCH 314/371] chore: release 2.6.0 (#498) :robot: I have created a release \*beep\* \*boop\* --- ## [2.6.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.5.0...v2.6.0) (2021-12-09) ### Features * add eslintignore for sameple generated code ([#1302](https://www.github.com/googleapis/nodejs-cloud-container/issues/1302)) ([#497](https://www.github.com/googleapis/nodejs-cloud-container/issues/497)) ([cea38ea](https://www.github.com/googleapis/nodejs-cloud-container/commit/cea38ea9c7b515d133853492ce48de22c843c985)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index f4591882f35..e0e21053523 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [2.6.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.5.0...v2.6.0) (2021-12-09) + + +### Features + +* add eslintignore for sameple generated code ([#1302](https://www.github.com/googleapis/nodejs-cloud-container/issues/1302)) ([#497](https://www.github.com/googleapis/nodejs-cloud-container/issues/497)) ([cea38ea](https://www.github.com/googleapis/nodejs-cloud-container/commit/cea38ea9c7b515d133853492ce48de22c843c985)) + ## [2.5.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.4.4...v2.5.0) (2021-08-23) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 508eb01141a..969dc7c3d93 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.5.0", + "version": "2.6.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index c6d0f2848ae..4e1eb08e4f7 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 10000" }, "dependencies": { - "@google-cloud/container": "^2.5.0" + "@google-cloud/container": "^2.6.0" }, "devDependencies": { "chai": "^4.2.0", From 3ce686f440c49aa4804ee3e3260702d66bc9a0e8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 29 Dec 2021 19:52:27 +0000 Subject: [PATCH 315/371] docs(node): support "stable"/"preview" release level (#1312) (#501) --- packages/google-container/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 6f98973b136..e4f641f00aa 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -141,6 +141,8 @@ are addressed with the highest priority. + + More Information: [Google Cloud Platform Launch Stages][launch_stages] [launch_stages]: https://cloud.google.com/terms/launch-stages From 7b3c55545b4e4043fc808d306618f8269fe08783 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 Dec 2021 23:20:27 +0000 Subject: [PATCH 316/371] docs(badges): tweak badge to use new preview/stable language (#1314) (#502) --- packages/google-container/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index e4f641f00aa..ba3205d382d 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -6,7 +6,6 @@ [![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/container.svg)](https://www.npmjs.org/package/@google-cloud/container) -[![codecov](https://img.shields.io/codecov/c/github/googleapis/nodejs-cloud-container/main.svg?style=flat)](https://codecov.io/gh/googleapis/nodejs-cloud-container) From 8547b75fcaa0665c5a9170dba01a9d156f67f6e4 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 30 Dec 2021 18:54:22 -0500 Subject: [PATCH 317/371] chore: add api_shortname and library_type to repo metadata (#500) Update .repo-metadata.json as required by go/library-data-integrity --- packages/google-container/.repo-metadata.json | 4 +++- packages/google-container/README.md | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json index c64de515756..dbbe64272ec 100644 --- a/packages/google-container/.repo-metadata.json +++ b/packages/google-container/.repo-metadata.json @@ -11,5 +11,7 @@ "codeowner_team": "@googleapis/anthos-dpe", "name_pretty": "Kubernetes Engine Cluster Manager API", "client_documentation": "https://cloud.google.com/nodejs/docs/reference/container/latest", - "release_level": "ga" + "release_level": "stable", + "api_shortname": "container", + "library_type": "GAPIC_AUTO" } diff --git a/packages/google-container/README.md b/packages/google-container/README.md index ba3205d382d..d8e23e1e92d 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -4,7 +4,7 @@ # [Kubernetes Engine Cluster Manager API: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) -[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) +[![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/container.svg)](https://www.npmjs.org/package/@google-cloud/container) @@ -130,10 +130,10 @@ _Legacy Node.js versions are supported as a best effort:_ This library follows [Semantic Versioning](http://semver.org/). -This library is considered to be **General Availability (GA)**. This means it -is stable; the code surface will not change in backwards-incompatible ways + +This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with -an extensive deprecation period. Issues and requests against **GA** libraries +an extensive deprecation period. Issues and requests against **stable** libraries are addressed with the highest priority. @@ -141,7 +141,6 @@ are addressed with the highest priority. - More Information: [Google Cloud Platform Launch Stages][launch_stages] [launch_stages]: https://cloud.google.com/terms/launch-stages From e40c0d1b7c8ab646500805308a815c43f799a665 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 Jan 2022 17:10:11 +0000 Subject: [PATCH 318/371] test(nodejs): remove 15 add 16 (#1322) (#504) --- packages/google-container/protos/protos.d.ts | 2 +- packages/google-container/protos/protos.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 74280206931..4a4409c6229 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 3fd12788e1f..633ee1e4f1c 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From f6fb95dddc8fe4bddf6795078dbe28b07b6b1d54 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 17:17:28 +0100 Subject: [PATCH 319/371] chore(deps): update dependency gts to v3 (#505) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency gts to v3 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Megan O'Keefe <3137106+askmeegs@users.noreply.github.com> --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 969dc7c3d93..5a8925b2e0f 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -50,7 +50,7 @@ "@types/node": "^16.0.0", "@types/sinon": "^10.0.0", "c8": "^7.0.0", - "gts": "^2.0.0", + "gts": "^3.0.0", "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", From 63577b3ea873cb760fca010d3bbeb0fe6106cfc3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 20 Jan 2022 10:39:57 -0500 Subject: [PATCH 320/371] build: update copyright year to 2022 (#507) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): upgrade gapic-generator-java to 2.4.1 PiperOrigin-RevId: 422607515 Source-Link: https://github.com/googleapis/googleapis/commit/ba2ffd6fe6642e28b4fed2ffae217b4c5f084034 Source-Link: https://github.com/googleapis/googleapis-gen/commit/73ba4add239a619da567ffbd4e5730fdd6de04d3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNiYTRhZGQyMzlhNjE5ZGE1NjdmZmJkNGU1NzMwZmRkNmRlMDRkMyJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Megan O'Keefe <3137106+askmeegs@users.noreply.github.com> --- packages/google-container/.jsdoc.js | 4 ++-- .../generated/v1/cluster_manager.cancel_operation.js | 4 +++- .../generated/v1/cluster_manager.complete_i_p_rotation.js | 4 +++- .../samples/generated/v1/cluster_manager.create_cluster.js | 1 + .../generated/v1/cluster_manager.create_node_pool.js | 1 + .../samples/generated/v1/cluster_manager.delete_cluster.js | 4 +++- .../generated/v1/cluster_manager.delete_node_pool.js | 4 +++- .../samples/generated/v1/cluster_manager.get_cluster.js | 4 +++- .../generated/v1/cluster_manager.get_j_s_o_n_web_keys.js | 4 +++- .../samples/generated/v1/cluster_manager.get_node_pool.js | 4 +++- .../samples/generated/v1/cluster_manager.get_operation.js | 4 +++- .../generated/v1/cluster_manager.get_server_config.js | 4 +++- .../samples/generated/v1/cluster_manager.list_clusters.js | 4 +++- .../samples/generated/v1/cluster_manager.list_node_pools.js | 4 +++- .../samples/generated/v1/cluster_manager.list_operations.js | 4 +++- .../generated/v1/cluster_manager.list_usable_subnetworks.js | 6 ++++-- .../v1/cluster_manager.rollback_node_pool_upgrade.js | 4 +++- .../generated/v1/cluster_manager.set_addons_config.js | 1 + .../samples/generated/v1/cluster_manager.set_labels.js | 1 + .../samples/generated/v1/cluster_manager.set_legacy_abac.js | 1 + .../samples/generated/v1/cluster_manager.set_locations.js | 1 + .../generated/v1/cluster_manager.set_logging_service.js | 1 + .../generated/v1/cluster_manager.set_maintenance_policy.js | 1 + .../samples/generated/v1/cluster_manager.set_master_auth.js | 1 + .../generated/v1/cluster_manager.set_monitoring_service.js | 1 + .../generated/v1/cluster_manager.set_network_policy.js | 1 + .../v1/cluster_manager.set_node_pool_autoscaling.js | 1 + .../v1/cluster_manager.set_node_pool_management.js | 1 + .../generated/v1/cluster_manager.set_node_pool_size.js | 1 + .../generated/v1/cluster_manager.start_i_p_rotation.js | 4 +++- .../samples/generated/v1/cluster_manager.update_cluster.js | 1 + .../samples/generated/v1/cluster_manager.update_master.js | 1 + .../generated/v1/cluster_manager.update_node_pool.js | 1 + packages/google-container/src/v1/cluster_manager_client.ts | 2 +- packages/google-container/src/v1/index.ts | 2 +- .../system-test/fixtures/sample/src/index.js | 2 +- .../system-test/fixtures/sample/src/index.ts | 2 +- packages/google-container/system-test/install.ts | 2 +- packages/google-container/test/gapic_cluster_manager_v1.ts | 2 +- 39 files changed, 71 insertions(+), 24 deletions(-) diff --git a/packages/google-container/.jsdoc.js b/packages/google-container/.jsdoc.js index e27d85d9a40..4734dd15f89 100644 --- a/packages/google-container/.jsdoc.js +++ b/packages/google-container/.jsdoc.js @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,7 @@ module.exports = { includePattern: '\\.js$' }, templates: { - copyright: 'Copyright 2021 Google LLC', + copyright: 'Copyright 2022 Google LLC', includeDate: false, sourceFiles: false, systemName: '@google-cloud/container', diff --git a/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js b/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js index 5184681b71c..90e79a4fa0d 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -33,7 +34,8 @@ function main() { async function callCancelOperation() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.cancelOperation(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js index f19fb253c35..d498d65b6c8 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -33,7 +34,8 @@ function main() { async function callCompleteIPRotation() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.completeIPRotation(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js index 6088086d5df..603327087c4 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(cluster) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js index e94aa4b306b..e514be68a5c 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(nodePool) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js index 9d4d2834fd2..5c51486f4ce 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -33,7 +34,8 @@ function main() { async function callDeleteCluster() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.deleteCluster(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js index 35781cd32ce..f50509a60f5 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -34,7 +35,8 @@ function main() { async function callDeleteNodePool() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.deleteNodePool(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js index c222704f996..b47a6f3f4f3 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -33,7 +34,8 @@ function main() { async function callGetCluster() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.getCluster(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js index 7f97ab06c83..a1b3231c090 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -33,7 +34,8 @@ function main() { async function callGetJSONWebKeys() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.getJSONWebKeys(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js index 69dc29e8ecb..4a88d3d7378 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -34,7 +35,8 @@ function main() { async function callGetNodePool() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.getNodePool(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js b/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js index e86e9652683..dc9fe15e56b 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -33,7 +34,8 @@ function main() { async function callGetOperation() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.getOperation(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js b/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js index 712e3bff289..61b4731c7e3 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -33,7 +34,8 @@ function main() { async function callGetServerConfig() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.getServerConfig(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js b/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js index a5f94a2c02f..5e41490ddb7 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -34,7 +35,8 @@ function main() { async function callListClusters() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.listClusters(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js index 5015319eb44..a4b768d8bf9 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -33,7 +34,8 @@ function main() { async function callListNodePools() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.listNodePools(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js b/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js index a8990e65216..64552cfa7e0 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -34,7 +35,8 @@ function main() { async function callListOperations() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.listOperations(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js b/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js index 32918bbfd95..c5fc0bb55b8 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -52,12 +53,13 @@ function main() { async function callListUsableSubnetworks() { // Construct request - const request = {}; + const request = { + }; // Run request const iterable = await containerClient.listUsableSubnetworksAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js index 641cfa1c82c..09cbd2741d4 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -34,7 +35,8 @@ function main() { async function callRollbackNodePoolUpgrade() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.rollbackNodePoolUpgrade(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js b/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js index 06e33996bcc..267a0fabae8 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(addonsConfig) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js index 7ab1f40ec8a..e8c6aa5c6b0 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(resourceLabels, labelFingerprint) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js index 00348a18b49..8b1740c074f 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(enabled) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js b/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js index 58fb2381cdc..dbb19c4bd2e 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(locations) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js b/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js index 63d38126a99..788aeaada6c 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(loggingService) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js index b821de8dd70..17fa0b98b10 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(projectId, zone, clusterId, maintenancePolicy) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js b/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js index 734a4361295..eaa4cb40205 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(action, update) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js b/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js index 54f570de4b1..3c390c8fed9 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(monitoringService) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js index f41cbe3a06c..978506b360a 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(networkPolicy) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js index ec0fabf4117..4dfb03ff8d9 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(autoscaling) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js index 278a0b66921..0c4c835d59c 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(management) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js index ada3fb2edb2..8c00b40cb77 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(nodeCount) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js index 03882182f3f..e4b9493e341 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -37,7 +38,8 @@ function main() { async function callStartIPRotation() { // Construct request - const request = {}; + const request = { + }; // Run request const response = await containerClient.startIPRotation(request); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js index 57ea0b4b3cc..77d44a4ccc8 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(update) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_master.js b/packages/google-container/samples/generated/v1/cluster_manager.update_master.js index f843a28246d..2aa34bc1f65 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_master.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_master.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(masterVersion) { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index 25962a93bf4..413680c3554 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(nodeVersion, imageType) { diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 046aade5004..d8822287493 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/src/v1/index.ts b/packages/google-container/src/v1/index.ts index ebf5e7e15c3..7952088fe56 100644 --- a/packages/google-container/src/v1/index.ts +++ b/packages/google-container/src/v1/index.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/system-test/fixtures/sample/src/index.js b/packages/google-container/system-test/fixtures/sample/src/index.js index 725fd3171e8..91e4ee03e52 100644 --- a/packages/google-container/system-test/fixtures/sample/src/index.js +++ b/packages/google-container/system-test/fixtures/sample/src/index.js @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/system-test/fixtures/sample/src/index.ts b/packages/google-container/system-test/fixtures/sample/src/index.ts index 1af1a589842..374ca54f370 100644 --- a/packages/google-container/system-test/fixtures/sample/src/index.ts +++ b/packages/google-container/system-test/fixtures/sample/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/system-test/install.ts b/packages/google-container/system-test/install.ts index d2d61c0396f..6dd1eaadafa 100644 --- a/packages/google-container/system-test/install.ts +++ b/packages/google-container/system-test/install.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index cae7b4e668f..dec77af5238 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From 9e4b0cdef679b7675a84a22b19eece4d8523a861 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 25 Jan 2022 02:02:37 +0000 Subject: [PATCH 321/371] fix!: revert bad publishing (#510) - [ ] Regenerate this pull request now. This RPC is not supposed to be published at this moment because Java generator cannot support this path template. It will be re-published when the generator is fixed. PiperOrigin-RevId: 423936238 Source-Link: https://github.com/googleapis/googleapis/commit/b0a8651081680a9d907f90c1b8a6c4c318550e51 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1cdff21dad874feaa132a38e5e33f080fd2eb64c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWNkZmYyMWRhZDg3NGZlYWExMzJhMzhlNWUzM2YwODBmZDJlYjY0YyJ9 --- .../google/container/v1/cluster_service.proto | 675 +- packages/google-container/protos/protos.d.ts | 8474 ++++-- packages/google-container/protos/protos.js | 24125 +++++++++++----- packages/google-container/protos/protos.json | 878 +- .../v1/cluster_manager.update_node_pool.js | 16 + .../src/v1/cluster_manager_client.ts | 12 +- 6 files changed, 24684 insertions(+), 9496 deletions(-) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 895142cabd1..c48f0a8a870 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -19,8 +19,12 @@ package google.container.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/wrappers.proto"; +import "google/rpc/code.proto"; +import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.Container.V1"; option go_package = "google.golang.org/genproto/googleapis/container/v1;container"; @@ -29,6 +33,10 @@ option java_outer_classname = "ClusterServiceProto"; option java_package = "com.google.container.v1"; option php_namespace = "Google\\Cloud\\Container\\V1"; option ruby_package = "Google::Cloud::Container::V1"; +option (google.api.resource_definition) = { + type: "pubsub.googleapis.com/Topic" + pattern: "projects/{project}/topics/{topic}" +}; // Google Kubernetes Engine Cluster Manager v1 service ClusterManager { @@ -423,7 +431,9 @@ service ClusterManager { option (google.api.method_signature) = "name"; } - // Sets the size for a specific node pool. + // Sets the size for a specific node pool. The new size will be used for all + // replicas, including future replicas created by modifying + // [NodePool.locations][google.container.v1.NodePool.locations]. rpc SetNodePoolSize(SetNodePoolSizeRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize" @@ -471,6 +481,60 @@ service ClusterManager { } } +// Parameters that can be configured on Linux nodes. +message LinuxNodeConfig { + // The Linux kernel parameters to be applied to the nodes and all pods running + // on the nodes. + // + // The following parameters are supported. + // + // net.core.netdev_max_backlog + // net.core.rmem_max + // net.core.wmem_default + // net.core.wmem_max + // net.core.optmem_max + // net.core.somaxconn + // net.ipv4.tcp_rmem + // net.ipv4.tcp_wmem + // net.ipv4.tcp_tw_reuse + map sysctls = 1; +} + +// Node kubelet configs. +message NodeKubeletConfig { + // Control the CPU management policy on the node. + // See + // https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ + // + // The following values are allowed. + // * "none": the default, which represents the existing scheduling behavior. + // * "static": allows pods with certain resource characteristics to be granted + // increased CPU affinity and exclusivity on the node. + // The default value is 'none' if unspecified. + string cpu_manager_policy = 1; + + // Enable CPU CFS quota enforcement for containers that specify CPU limits. + // + // This option is enabled by default which makes kubelet use CFS quota + // (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to + // enforce container CPU limits. Otherwise, CPU limits will not be enforced at + // all. + // + // Disable this option to mitigate CPU throttling problems while still having + // your pods to be in Guaranteed QoS class by specifying the CPU limits. + // + // The default value is 'true' if unspecified. + google.protobuf.BoolValue cpu_cfs_quota = 2; + + // Set the CPU CFS quota period value 'cpu.cfs_period_us'. + // + // The string must be a sequence of decimal numbers, each with optional + // fraction and a unit suffix, such as "300ms". + // Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". + // The value must be a positive duration. + string cpu_cfs_quota_period = 3; +} + // Parameters that describe the nodes in a cluster. message NodeConfig { // The name of a Google Compute Engine [machine @@ -533,9 +597,6 @@ message NodeConfig { // - "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 // that each value's size must be less than or equal to 32 KB. @@ -623,6 +684,12 @@ message NodeConfig { // Shielded Instance options. ShieldedInstanceConfig shielded_instance_config = 20; + // Parameters that can be configured on Linux nodes. + LinuxNodeConfig linux_node_config = 21; + + // Node kubelet configs. + NodeKubeletConfig kubelet_config = 22; + // // 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 @@ -631,6 +698,67 @@ message NodeConfig { // see: // https://cloud.google.com/compute/docs/disks/customer-managed-encryption string boot_disk_kms_key = 23; + + // Google Container File System (image streaming) configs. + GcfsConfig gcfs_config = 25; + + // Advanced features for the Compute Engine VM. + AdvancedMachineFeatures advanced_machine_features = 26; + + // Enable or disable gvnic in the node pool. + VirtualNIC gvnic = 29; +} + +// Specifies options for controlling advanced machine features. +message AdvancedMachineFeatures { + // The number of threads per physical core. To disable simultaneous + // multithreading (SMT) set this to 1. If unset, the maximum number of threads + // supported per core by the underlying processor is assumed. + optional int64 threads_per_core = 1; +} + +// Parameters for node pool-level network config. +message NodeNetworkConfig { + // Input only. Whether to create a new range for pod IPs in this node pool. + // Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they + // are not specified. + // + // If neither `create_pod_range` or `pod_range` are specified, the + // cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is + // used. + // + // Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + // + // This field cannot be changed after the node pool has been created. + bool create_pod_range = 4 [(google.api.field_behavior) = INPUT_ONLY]; + + // The ID of the secondary range for pod IPs. + // If `create_pod_range` is true, this ID is used for the new range. + // If `create_pod_range` is false, uses an existing secondary range with this + // ID. + // + // Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + // + // This field cannot be changed after the node pool has been created. + string pod_range = 5; + + // The IP address range for pod IPs in this node pool. + // + // Only applicable if `create_pod_range` is true. + // + // Set to blank to have a range chosen with the default size. + // + // Set to /netmask (e.g. `/14`) to have a range chosen with a specific + // netmask. + // + // Set to a + // [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `10.96.0.0/14`) to pick a specific range to use. + // + // Only applicable if `ip_allocation_policy.use_ip_aliases` is true. + // + // This field cannot be changed after the node pool has been created. + string pod_ipv4_cidr_block = 6; } // A set of Shielded Instance options. @@ -666,6 +794,13 @@ message SandboxConfig { Type type = 2; } +// GcfsConfig contains configurations of Google Container File System +// (image streaming). +message GcfsConfig { + // Whether to use GCFS. + bool enabled = 1; +} + // [ReservationAffinity](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) // is the configuration of desired reservation which instances could take // capacity from. @@ -813,6 +948,12 @@ message AddonsConfig { // Configuration for the ConfigConnector add-on, a Kubernetes // extension to manage hosted GCP services through the Kubernetes API ConfigConnectorConfig config_connector_config = 10; + + // Configuration for the Compute Engine Persistent Disk CSI driver. + GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; + + // Configuration for the GCP Filestore CSI driver. + GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -927,6 +1068,18 @@ message ConfigConnectorConfig { bool enabled = 1; } +// Configuration for the Compute Engine PD CSI driver. +message GcePersistentDiskCsiDriverConfig { + // Whether the Compute Engine PD CSI driver is enabled for this cluster. + bool enabled = 1; +} + +// Configuration for the GCP Filestore CSI driver. +message GcpFilestoreCsiDriverConfig { + // Whether the GCP Filestore CSI driver is enabled for this cluster. + bool enabled = 1; +} + // Configuration options for the master authorized networks feature. Enabled // master authorized networks will disallow all external traffic to access // Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -1313,6 +1466,16 @@ message Cluster { // policies. WorkloadIdentityConfig workload_identity_config = 43; + // Configuration for issuance of mTLS keys and certificates to Kubernetes + // pods. + MeshCertificates mesh_certificates = 67; + + // Notification configuration of the cluster. + NotificationConfig notification_config = 49; + + // Configuration of Confidential Nodes + ConfidentialNodes confidential_nodes = 50; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -1407,6 +1570,34 @@ message Cluster { // Which conditions caused the current cluster state. repeated StatusCondition conditions = 118; + + // Autopilot configuration for the cluster. + Autopilot autopilot = 128; + + // Output only. Unique id for the cluster. + string id = 129 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Default NodePool settings for the entire cluster. These settings are + // overridden if specified on the specific NodePool object. + optional NodePoolDefaults node_pool_defaults = 131; + + // Logging configuration for the cluster. + LoggingConfig logging_config = 132; + + // Monitoring configuration for the cluster. + MonitoringConfig monitoring_config = 133; +} + +// Subset of Nodepool message that has defaults. +message NodePoolDefaults { + // Subset of NodeConfig message that has defaults. + NodeConfigDefaults node_config_defaults = 1; +} + +// Subset of NodeConfig message that has defaults. +message NodeConfigDefaults { + // GCFS (Google Container File System, a.k.a Riptide) options. + GcfsConfig gcfs_config = 1; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -1458,9 +1649,16 @@ message ClusterUpdate { // Configuration for Workload Identity. WorkloadIdentityConfig desired_workload_identity_config = 47; + // Configuration for issuance of mTLS keys and certificates to Kubernetes + // pods. + MeshCertificates desired_mesh_certificates = 67; + // Configuration for Shielded Nodes. ShieldedNodes desired_shielded_nodes = 48; + // DNSConfig contains clusterDNS config for this cluster. + DNSConfig desired_dns_config = 53; + // 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 @@ -1517,9 +1715,31 @@ message ClusterUpdate { // The desired release channel configuration. ReleaseChannel desired_release_channel = 31; + // The desired L4 Internal Load Balancer Subsetting configuration. + ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; + + // The desired datapath provider for the cluster. + DatapathProvider desired_datapath_provider = 50; + + // The desired state of IPv6 connectivity to Google Services. + PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; + + // The desired notification configuration. + NotificationConfig desired_notification_config = 55; + // The desired authenticator groups config for the cluster. AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; + // The desired logging configuration. + LoggingConfig desired_logging_config = 64; + + // The desired monitoring configuration. + MonitoringConfig desired_monitoring_config = 65; + + // ServiceExternalIPsConfig specifies the config for the use of Services with + // ExternalIPs field. + ServiceExternalIPsConfig desired_service_external_ips_config = 60; + // The Kubernetes version to change the master to. // // Users may specify either explicit versions offered by @@ -1531,6 +1751,9 @@ message ClusterUpdate { // - "1.X.Y-gke.N": picks an explicit Kubernetes version // - "-": picks the default Kubernetes version string desired_master_version = 100; + + // The desired GCFS config for the cluster + GcfsConfig desired_gcfs_config = 109; } // This operation resource represents operations that may have happened or are @@ -1626,7 +1849,11 @@ message Operation { string detail = 8; // Output only. If an error has occurred, a textual description of the error. - string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Deprecated. Use the field error instead. + string status_message = 5 [ + deprecated = true, + (google.api.field_behavior) = OUTPUT_ONLY + ]; // Server-defined URL for the resource. string self_link = 6; @@ -1653,10 +1880,15 @@ message Operation { OperationProgress progress = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; // Which conditions caused the current cluster state. - repeated StatusCondition cluster_conditions = 13; + // Deprecated. Use field error instead. + repeated StatusCondition cluster_conditions = 13 [deprecated = true]; // Which conditions caused the current node pool state. - repeated StatusCondition nodepool_conditions = 14; + // Deprecated. Use field error instead. + repeated StatusCondition nodepool_conditions = 14 [deprecated = true]; + + // The error result of the operation in case of failure. + google.rpc.Status error = 15; } // Information about operation (or operation stage) progress. @@ -1822,6 +2054,18 @@ message UpdateNodePoolRequest { // Upgrade settings control disruption and speed of the upgrade. NodePool.UpgradeSettings upgrade_settings = 15; + + // Parameters that can be configured on Linux nodes. + LinuxNodeConfig linux_node_config = 19; + + // Node kubelet configs. + NodeKubeletConfig kubelet_config = 20; + + // GCFS config. + GcfsConfig gcfs_config = 22; + + // Enable or disable gvnic on the node pool. + VirtualNIC gvnic = 29; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -2435,6 +2679,10 @@ message NodePool { // and/or removed. repeated string locations = 13; + // Networking configuration for this NodePool. If specified, it overrides the + // cluster-level defaults. + NodeNetworkConfig network_config = 14; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -2538,6 +2786,12 @@ message MaintenanceWindow { // Represents an arbitrary window of time. message TimeWindow { + oneof options { + // MaintenanceExclusionOptions provides maintenance exclusion related + // options. + MaintenanceExclusionOptions maintenance_exclusion_options = 3; + } + // The time that the window first starts. google.protobuf.Timestamp start_time = 1; @@ -2546,6 +2800,30 @@ message TimeWindow { google.protobuf.Timestamp end_time = 2; } +// Represents the Maintenance exclusion option. +message MaintenanceExclusionOptions { + // Scope of exclusion. + enum Scope { + // NO_UPGRADES excludes all upgrades, including patch upgrades and minor + // upgrades across control planes and nodes. This is the default exclusion + // behavior. + NO_UPGRADES = 0; + + // NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only + // patches are allowed. + NO_MINOR_UPGRADES = 1; + + // NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster, + // and also exclude all node pool upgrades. Only control + // plane patches are allowed. + NO_MINOR_OR_NODE_UPGRADES = 2; + } + + // Scope specifies the upgrade scope which upgrades are blocked by the + // exclusion. + Scope scope = 1; +} + // Represents an arbitrary window of time that recurs. message RecurringTimeWindow { // The window of the first recurrence. @@ -2631,8 +2909,7 @@ message SetNodePoolManagementRequest { string name = 7; } -// SetNodePoolSizeRequest sets the size a node -// pool. +// SetNodePoolSizeRequest sets the size of a node pool. message SetNodePoolSizeRequest { // Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). @@ -2702,6 +2979,18 @@ message ListNodePoolsResponse { // the size of the cluster and create/delete // node pools based on the current needs. message ClusterAutoscaling { + // Defines possible options for autoscaling_profile field. + enum AutoscalingProfile { + // No change to autoscaling configuration. + PROFILE_UNSPECIFIED = 0; + + // Prioritize optimizing utilization of resources. + OPTIMIZE_UTILIZATION = 1; + + // Use default (balanced) autoscaling configuration. + BALANCED = 2; + } + // Enables automatic node pool creation and deletion. bool enable_node_autoprovisioning = 1; @@ -2709,6 +2998,9 @@ message ClusterAutoscaling { // amount of resources in the cluster. repeated ResourceLimit resource_limits = 2; + // Defines autoscaling behaviour. + AutoscalingProfile autoscaling_profile = 3; + // AutoprovisioningNodePoolDefaults contains defaults for a node pool // created by NAP. AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; @@ -2791,12 +3083,12 @@ message NodePoolAutoscaling { // Is autoscaling enabled for this node pool. bool enabled = 1; - // Minimum number of nodes in the NodePool. Must be >= 1 and <= - // max_node_count. + // Minimum number of nodes for one location in the NodePool. Must be >= 1 and + // <= max_node_count. int32 min_node_count = 2; - // Maximum number of nodes in the NodePool. Must be >= min_node_count. There - // has to enough quota to scale up the cluster. + // Maximum number of nodes for one location in the NodePool. Must be >= + // min_node_count. There has to be enough quota to scale up the cluster. int32 max_node_count = 3; // Can this node pool be deleted automatically. @@ -2920,6 +3212,11 @@ message AcceleratorConfig { // The accelerator type resource name. List of supported accelerators // [here](https://cloud.google.com/compute/docs/gpus) string accelerator_type = 2; + + // Size of partitions to create on the GPU. Valid values are described in the + // NVIDIA [mig user + // guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). + string gpu_partition_size = 3; } // WorkloadMetadataConfig defines the metadata configuration to expose to @@ -3020,15 +3317,21 @@ message StatusCondition { // Unable to perform an encrypt operation against the CloudKMS key used for // etcd level encryption. - // More codes TBA CLOUD_KMS_KEY_ERROR = 7; + + // Cluster CA is expiring soon. + CA_EXPIRING = 9; } // Machine-friendly representation of the condition - Code code = 1; + // Deprecated. Use canonical_code instead. + Code code = 1 [deprecated = true]; // Human-friendly representation of the condition string message = 2; + + // Canonical code of the condition. + google.rpc.Code canonical_code = 3; } // NetworkConfig reports the relative names of network & subnetwork. @@ -3054,39 +3357,31 @@ message NetworkConfig { // 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; + // Whether L4ILB Subsetting is enabled for this cluster. + bool enable_l4ilb_subsetting = 10; - // Supported response types. - repeated string response_types_supported = 3; + // The desired datapath provider for this cluster. By default, uses the + // IPTables-based kube-proxy implementation. + DatapathProvider datapath_provider = 11; - // Supported subject types. - repeated string subject_types_supported = 4; + // The desired state of IPv6 connectivity to Google Services. + // By default, no private IPv6 access to or from Google Services (all access + // will be via IPv4) + PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - // supported ID Token signing Algorithms. - repeated string id_token_signing_alg_values_supported = 5; + // DNSConfig contains clusterDNS config for this cluster. + DNSConfig dns_config = 13; - // Supported claims. - repeated string claims_supported = 6; + // ServiceExternalIPsConfig specifies if services with externalIPs field are + // blocked or not. + ServiceExternalIPsConfig service_external_ips_config = 15; +} - // Supported grant types. - repeated string grant_types = 7; +// Config to block services with externalIPs field. +message ServiceExternalIPsConfig { + // Whether Services with ExternalIPs field are allowed or not. + bool enabled = 1; } // GetJSONWebKeysRequest gets the public component of the keys used by the @@ -3177,6 +3472,46 @@ message IntraNodeVisibilityConfig { bool enabled = 1; } +// ILBSubsettingConfig contains the desired config of L4 Internal LoadBalancer +// subsetting on this cluster. +message ILBSubsettingConfig { + // Enables l4 ILB subsetting for this cluster. + bool enabled = 1; +} + +// DNSConfig contains the desired set of options for configuring clusterDNS. +message DNSConfig { + // Provider lists the various in-cluster DNS providers. + enum Provider { + // Default value + PROVIDER_UNSPECIFIED = 0; + + // Use GKE default DNS provider(kube-dns) for DNS resolution. + PLATFORM_DEFAULT = 1; + + // Use CloudDNS for DNS resolution. + CLOUD_DNS = 2; + } + + // DNSScope lists the various scopes of access to cluster DNS records. + enum DNSScope { + // Default value, will be inferred as cluster scope. + DNS_SCOPE_UNSPECIFIED = 0; + + // DNS records are accessible from within the VPC. + VPC_SCOPE = 2; + } + + // cluster_dns indicates which in-cluster DNS provider should be used. + Provider cluster_dns = 1; + + // cluster_dns_scope indicates the scope of access to cluster DNS records. + DNSScope cluster_dns_scope = 2; + + // cluster_dns_domain is the suffix used for all cluster service records. + string cluster_dns_domain = 3; +} + // Constraints applied to pods. message MaxPodsConstraint { // Constraint enforced on the max num of pods per node. @@ -3190,6 +3525,20 @@ message WorkloadIdentityConfig { string workload_pool = 2; } +// Configuration for issuance of mTLS keys and certificates to Kubernetes pods. +message MeshCertificates { + // enable_certificates controls issuance of workload mTLS certificates. + // + // If set, the GKE Workload Identity Certificates controller and node agent + // will be deployed in the cluster, which can then be configured by creating a + // WorkloadCertificateConfig Custom Resource. + // + // Requires Workload Identity + // ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] + // must be non-empty). + google.protobuf.BoolValue enable_certificates = 1; +} + // Configuration of etcd encryption. message DatabaseEncryption { // State of etcd encryption. @@ -3356,3 +3705,245 @@ message ShieldedNodes { // Whether Shielded Nodes features are enabled on all nodes in this cluster. bool enabled = 1; } + +// Configuration of gVNIC feature. +message VirtualNIC { + // Whether gVNIC features are enabled in the node pool. + bool enabled = 1; +} + +// PrivateIPv6GoogleAccess controls whether and how the pods can communicate +// with Google Services through gRPC over IPv6. +enum PrivateIPv6GoogleAccess { + // Default value. Same as DISABLED + PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; + + // No private access to or from Google Services + PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; + + // Enables private IPv6 access to Google Services from GKE + PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; + + // Enables priate IPv6 access to and from Google Services + PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; +} + +// The datapath provider selects the implementation of the Kubernetes networking +// model for service resolution and network policy enforcement. +enum DatapathProvider { + // Default value. + DATAPATH_PROVIDER_UNSPECIFIED = 0; + + // Use the IPTables implementation based on kube-proxy. + LEGACY_DATAPATH = 1; + + // Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE + // Dataplane V2 + // documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) + // for more. + ADVANCED_DATAPATH = 2; +} + +// NotificationConfig is the configuration of notifications. +message NotificationConfig { + // Types of notifications currently supported. Can be used to filter what + // notifications are sent. + enum EventType { + // Not set, will be ignored. + EVENT_TYPE_UNSPECIFIED = 0; + + // Corresponds with UpgradeAvailableEvent. + UPGRADE_AVAILABLE_EVENT = 1; + + // Corresponds with UpgradeEvent. + UPGRADE_EVENT = 2; + + // Corresponds with SecurityBulletinEvent. + SECURITY_BULLETIN_EVENT = 3; + } + + // Pub/Sub specific notification config. + message PubSub { + // Enable notifications for Pub/Sub. + bool enabled = 1; + + // The desired Pub/Sub topic to which notifications will be + // sent by GKE. Format is `projects/{project}/topics/{topic}`. + string topic = 2 [(google.api.resource_reference) = { + type: "pubsub.googleapis.com/Topic" + }]; + + // Allows filtering to one or more specific event types. If no filter is + // specified, or if a filter is specified with no event types, all event + // types will be sent + Filter filter = 3; + } + + // Allows filtering to one or more specific event types. If event types are + // present, those and only those event types will be transmitted to the + // cluster. Other types will be skipped. If no filter is specified, or no + // event types are present, all event types will be sent + message Filter { + // Event types to allowlist. + repeated EventType event_type = 1; + } + + // Notification config for Pub/Sub. + PubSub pubsub = 1; +} + +// ConfidentialNodes is configuration for the confidential nodes feature, which +// makes nodes run on confidential VMs. +message ConfidentialNodes { + // Whether Confidential Nodes feature is enabled for all nodes in this + // cluster. + bool enabled = 1; +} + +// UpgradeResourceType is the resource type that is upgrading. It is used +// in upgrade notifications. +enum UpgradeResourceType { + // Default value. This shouldn't be used. + UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; + + // Master / control plane + MASTER = 1; + + // Node pool + NODE_POOL = 2; +} + +// UpgradeEvent is a notification sent to customers by the cluster server when +// a resource is upgrading. +message UpgradeEvent { + // The resource type that is upgrading. + UpgradeResourceType resource_type = 1; + + // The operation associated with this upgrade. + string operation = 2; + + // The time when the operation was started. + google.protobuf.Timestamp operation_start_time = 3; + + // The current version before the upgrade. + string current_version = 4; + + // The target version for the upgrade. + string target_version = 5; + + // Optional relative path to the resource. For example in node pool upgrades, + // the relative path of the node pool. + string resource = 6; +} + +// UpgradeAvailableEvent is a notification sent to customers when a new +// available version is released. +message UpgradeAvailableEvent { + // The release version available for upgrade. + string version = 1; + + // The resource type of the release version. + UpgradeResourceType resource_type = 2; + + // The release channel of the version. If empty, it means a non-channel + // release. + ReleaseChannel release_channel = 3; + + // Optional relative path to the resource. For example, the relative path of + // the node pool. + string resource = 4; +} + +// SecurityBulletinEvent is a notification sent to customers when a security +// bulletin has been posted that they are vulnerable to. +message SecurityBulletinEvent { + // The resource type (node/control plane) that has the vulnerability. Multiple + // notifications (1 notification per resource type) will be sent for a + // vulnerability that affects > 1 resource type. + string resource_type_affected = 1; + + // The ID of the bulletin corresponding to the vulnerability. + string bulletin_id = 2; + + // The CVEs associated with this bulletin. + repeated string cve_ids = 3; + + // The severity of this bulletin as it relates to GKE. + string severity = 4; + + // The URI link to the bulletin on the website for more information. + string bulletin_uri = 5; + + // A brief description of the bulletin. See the bulletin pointed to by the + // bulletin_uri field for an expanded description. + string brief_description = 6; + + // The GKE minor versions affected by this vulnerability. + repeated string affected_supported_minors = 7; + + // The GKE versions where this vulnerability is patched. + repeated string patched_versions = 8; + + // This represents a version selected from the patched_versions field that + // the cluster receiving this notification should most likely want to upgrade + // to based on its current version. Note that if this notification is being + // received by a given cluster, it means that this version is currently + // available as an upgrade target in that cluster's location. + string suggested_upgrade_target = 9; + + // If this field is specified, it means there are manual steps that the user + // must take to make their clusters safe. + bool manual_steps_required = 10; +} + +// Autopilot is the configuration for Autopilot settings on the cluster. +message Autopilot { + // Enable Autopilot + bool enabled = 1; +} + +// LoggingConfig is cluster logging configuration. +message LoggingConfig { + // Logging components configuration + LoggingComponentConfig component_config = 1; +} + +// LoggingComponentConfig is cluster logging component configuration. +message LoggingComponentConfig { + // GKE components exposing logs + enum Component { + // Default value. This shouldn't be used. + COMPONENT_UNSPECIFIED = 0; + + // system components + SYSTEM_COMPONENTS = 1; + + // workloads + WORKLOADS = 2; + } + + // Select components to collect logs. An empty set would disable all logging. + repeated Component enable_components = 1; +} + +// MonitoringConfig is cluster monitoring configuration. +message MonitoringConfig { + // Monitoring components configuration + MonitoringComponentConfig component_config = 1; +} + +// MonitoringComponentConfig is cluster monitoring component configuration. +message MonitoringComponentConfig { + // GKE components exposing metrics + enum Component { + // Default value. This shouldn't be used. + COMPONENT_UNSPECIFIED = 0; + + // system components + SYSTEM_COMPONENTS = 1; + } + + // Select components to collect metrics. An empty set would disable all + // monitoring. + repeated Component enable_components = 1; +} diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 4a4409c6229..55ff72842ed 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -719,6 +719,198 @@ export namespace google { type ListUsableSubnetworksCallback = (error: (Error|null), response?: google.container.v1.ListUsableSubnetworksResponse) => void; } + /** Properties of a LinuxNodeConfig. */ + interface ILinuxNodeConfig { + + /** LinuxNodeConfig sysctls */ + sysctls?: ({ [k: string]: string }|null); + } + + /** Represents a LinuxNodeConfig. */ + class LinuxNodeConfig implements ILinuxNodeConfig { + + /** + * Constructs a new LinuxNodeConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ILinuxNodeConfig); + + /** LinuxNodeConfig sysctls. */ + public sysctls: { [k: string]: string }; + + /** + * Creates a new LinuxNodeConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns LinuxNodeConfig instance + */ + public static create(properties?: google.container.v1.ILinuxNodeConfig): google.container.v1.LinuxNodeConfig; + + /** + * Encodes the specified LinuxNodeConfig message. Does not implicitly {@link google.container.v1.LinuxNodeConfig.verify|verify} messages. + * @param message LinuxNodeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ILinuxNodeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LinuxNodeConfig message, length delimited. Does not implicitly {@link google.container.v1.LinuxNodeConfig.verify|verify} messages. + * @param message LinuxNodeConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ILinuxNodeConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LinuxNodeConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LinuxNodeConfig + * @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.LinuxNodeConfig; + + /** + * Decodes a LinuxNodeConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LinuxNodeConfig + * @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.LinuxNodeConfig; + + /** + * Verifies a LinuxNodeConfig 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 LinuxNodeConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LinuxNodeConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.LinuxNodeConfig; + + /** + * Creates a plain object from a LinuxNodeConfig message. Also converts values to other types if specified. + * @param message LinuxNodeConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.LinuxNodeConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LinuxNodeConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NodeKubeletConfig. */ + interface INodeKubeletConfig { + + /** NodeKubeletConfig cpuManagerPolicy */ + cpuManagerPolicy?: (string|null); + + /** NodeKubeletConfig cpuCfsQuota */ + cpuCfsQuota?: (google.protobuf.IBoolValue|null); + + /** NodeKubeletConfig cpuCfsQuotaPeriod */ + cpuCfsQuotaPeriod?: (string|null); + } + + /** Represents a NodeKubeletConfig. */ + class NodeKubeletConfig implements INodeKubeletConfig { + + /** + * Constructs a new NodeKubeletConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodeKubeletConfig); + + /** NodeKubeletConfig cpuManagerPolicy. */ + public cpuManagerPolicy: string; + + /** NodeKubeletConfig cpuCfsQuota. */ + public cpuCfsQuota?: (google.protobuf.IBoolValue|null); + + /** NodeKubeletConfig cpuCfsQuotaPeriod. */ + public cpuCfsQuotaPeriod: string; + + /** + * Creates a new NodeKubeletConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeKubeletConfig instance + */ + public static create(properties?: google.container.v1.INodeKubeletConfig): google.container.v1.NodeKubeletConfig; + + /** + * Encodes the specified NodeKubeletConfig message. Does not implicitly {@link google.container.v1.NodeKubeletConfig.verify|verify} messages. + * @param message NodeKubeletConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodeKubeletConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodeKubeletConfig message, length delimited. Does not implicitly {@link google.container.v1.NodeKubeletConfig.verify|verify} messages. + * @param message NodeKubeletConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodeKubeletConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeKubeletConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeKubeletConfig + * @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.NodeKubeletConfig; + + /** + * Decodes a NodeKubeletConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeKubeletConfig + * @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.NodeKubeletConfig; + + /** + * Verifies a NodeKubeletConfig 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 NodeKubeletConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeKubeletConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodeKubeletConfig; + + /** + * Creates a plain object from a NodeKubeletConfig message. Also converts values to other types if specified. + * @param message NodeKubeletConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodeKubeletConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodeKubeletConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a NodeConfig. */ interface INodeConfig { @@ -779,8 +971,23 @@ export namespace google { /** NodeConfig shieldedInstanceConfig */ shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null); + /** NodeConfig linuxNodeConfig */ + linuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null); + + /** NodeConfig kubeletConfig */ + kubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + /** NodeConfig bootDiskKmsKey */ bootDiskKmsKey?: (string|null); + + /** NodeConfig gcfsConfig */ + gcfsConfig?: (google.container.v1.IGcfsConfig|null); + + /** NodeConfig advancedMachineFeatures */ + advancedMachineFeatures?: (google.container.v1.IAdvancedMachineFeatures|null); + + /** NodeConfig gvnic */ + gvnic?: (google.container.v1.IVirtualNIC|null); } /** Represents a NodeConfig. */ @@ -849,9 +1056,24 @@ export namespace google { /** NodeConfig shieldedInstanceConfig. */ public shieldedInstanceConfig?: (google.container.v1.IShieldedInstanceConfig|null); + /** NodeConfig linuxNodeConfig. */ + public linuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null); + + /** NodeConfig kubeletConfig. */ + public kubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + /** NodeConfig bootDiskKmsKey. */ public bootDiskKmsKey: string; + /** NodeConfig gcfsConfig. */ + public gcfsConfig?: (google.container.v1.IGcfsConfig|null); + + /** NodeConfig advancedMachineFeatures. */ + public advancedMachineFeatures?: (google.container.v1.IAdvancedMachineFeatures|null); + + /** NodeConfig gvnic. */ + public gvnic?: (google.container.v1.IVirtualNIC|null); + /** * Creates a new NodeConfig instance using the specified properties. * @param [properties] Properties to set @@ -923,6 +1145,201 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an AdvancedMachineFeatures. */ + interface IAdvancedMachineFeatures { + + /** AdvancedMachineFeatures threadsPerCore */ + threadsPerCore?: (number|Long|string|null); + } + + /** Represents an AdvancedMachineFeatures. */ + class AdvancedMachineFeatures implements IAdvancedMachineFeatures { + + /** + * Constructs a new AdvancedMachineFeatures. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IAdvancedMachineFeatures); + + /** AdvancedMachineFeatures threadsPerCore. */ + public threadsPerCore?: (number|Long|string|null); + + /** AdvancedMachineFeatures _threadsPerCore. */ + public _threadsPerCore?: "threadsPerCore"; + + /** + * Creates a new AdvancedMachineFeatures instance using the specified properties. + * @param [properties] Properties to set + * @returns AdvancedMachineFeatures instance + */ + public static create(properties?: google.container.v1.IAdvancedMachineFeatures): google.container.v1.AdvancedMachineFeatures; + + /** + * Encodes the specified AdvancedMachineFeatures message. Does not implicitly {@link google.container.v1.AdvancedMachineFeatures.verify|verify} messages. + * @param message AdvancedMachineFeatures message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IAdvancedMachineFeatures, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified AdvancedMachineFeatures message, length delimited. Does not implicitly {@link google.container.v1.AdvancedMachineFeatures.verify|verify} messages. + * @param message AdvancedMachineFeatures message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IAdvancedMachineFeatures, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an AdvancedMachineFeatures message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AdvancedMachineFeatures + * @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.AdvancedMachineFeatures; + + /** + * Decodes an AdvancedMachineFeatures message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AdvancedMachineFeatures + * @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.AdvancedMachineFeatures; + + /** + * Verifies an AdvancedMachineFeatures 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 AdvancedMachineFeatures message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AdvancedMachineFeatures + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.AdvancedMachineFeatures; + + /** + * Creates a plain object from an AdvancedMachineFeatures message. Also converts values to other types if specified. + * @param message AdvancedMachineFeatures + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.AdvancedMachineFeatures, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AdvancedMachineFeatures to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NodeNetworkConfig. */ + interface INodeNetworkConfig { + + /** NodeNetworkConfig createPodRange */ + createPodRange?: (boolean|null); + + /** NodeNetworkConfig podRange */ + podRange?: (string|null); + + /** NodeNetworkConfig podIpv4CidrBlock */ + podIpv4CidrBlock?: (string|null); + } + + /** Represents a NodeNetworkConfig. */ + class NodeNetworkConfig implements INodeNetworkConfig { + + /** + * Constructs a new NodeNetworkConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodeNetworkConfig); + + /** NodeNetworkConfig createPodRange. */ + public createPodRange: boolean; + + /** NodeNetworkConfig podRange. */ + public podRange: string; + + /** NodeNetworkConfig podIpv4CidrBlock. */ + public podIpv4CidrBlock: string; + + /** + * Creates a new NodeNetworkConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeNetworkConfig instance + */ + public static create(properties?: google.container.v1.INodeNetworkConfig): google.container.v1.NodeNetworkConfig; + + /** + * Encodes the specified NodeNetworkConfig message. Does not implicitly {@link google.container.v1.NodeNetworkConfig.verify|verify} messages. + * @param message NodeNetworkConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodeNetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodeNetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NodeNetworkConfig.verify|verify} messages. + * @param message NodeNetworkConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodeNetworkConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeNetworkConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeNetworkConfig + * @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.NodeNetworkConfig; + + /** + * Decodes a NodeNetworkConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeNetworkConfig + * @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.NodeNetworkConfig; + + /** + * Verifies a NodeNetworkConfig 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 NodeNetworkConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeNetworkConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodeNetworkConfig; + + /** + * Creates a plain object from a NodeNetworkConfig message. Also converts values to other types if specified. + * @param message NodeNetworkConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodeNetworkConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodeNetworkConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a ShieldedInstanceConfig. */ interface IShieldedInstanceConfig { @@ -1118,16 +1535,106 @@ export namespace google { } } - /** Properties of a ReservationAffinity. */ - interface IReservationAffinity { + /** Properties of a GcfsConfig. */ + interface IGcfsConfig { - /** ReservationAffinity consumeReservationType */ - consumeReservationType?: (google.container.v1.ReservationAffinity.Type|keyof typeof google.container.v1.ReservationAffinity.Type|null); + /** GcfsConfig enabled */ + enabled?: (boolean|null); + } - /** ReservationAffinity key */ - key?: (string|null); + /** Represents a GcfsConfig. */ + class GcfsConfig implements IGcfsConfig { - /** ReservationAffinity values */ + /** + * Constructs a new GcfsConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGcfsConfig); + + /** GcfsConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new GcfsConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns GcfsConfig instance + */ + public static create(properties?: google.container.v1.IGcfsConfig): google.container.v1.GcfsConfig; + + /** + * Encodes the specified GcfsConfig message. Does not implicitly {@link google.container.v1.GcfsConfig.verify|verify} messages. + * @param message GcfsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IGcfsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GcfsConfig message, length delimited. Does not implicitly {@link google.container.v1.GcfsConfig.verify|verify} messages. + * @param message GcfsConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IGcfsConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GcfsConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GcfsConfig + * @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.GcfsConfig; + + /** + * Decodes a GcfsConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GcfsConfig + * @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.GcfsConfig; + + /** + * Verifies a GcfsConfig 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 GcfsConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GcfsConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GcfsConfig; + + /** + * Creates a plain object from a GcfsConfig message. Also converts values to other types if specified. + * @param message GcfsConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.GcfsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GcfsConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** 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); } @@ -1577,6 +2084,12 @@ export namespace google { /** AddonsConfig configConnectorConfig */ configConnectorConfig?: (google.container.v1.IConfigConnectorConfig|null); + + /** AddonsConfig gcePersistentDiskCsiDriverConfig */ + gcePersistentDiskCsiDriverConfig?: (google.container.v1.IGcePersistentDiskCsiDriverConfig|null); + + /** AddonsConfig gcpFilestoreCsiDriverConfig */ + gcpFilestoreCsiDriverConfig?: (google.container.v1.IGcpFilestoreCsiDriverConfig|null); } /** Represents an AddonsConfig. */ @@ -1609,6 +2122,12 @@ export namespace google { /** AddonsConfig configConnectorConfig. */ public configConnectorConfig?: (google.container.v1.IConfigConnectorConfig|null); + /** AddonsConfig gcePersistentDiskCsiDriverConfig. */ + public gcePersistentDiskCsiDriverConfig?: (google.container.v1.IGcePersistentDiskCsiDriverConfig|null); + + /** AddonsConfig gcpFilestoreCsiDriverConfig. */ + public gcpFilestoreCsiDriverConfig?: (google.container.v1.IGcpFilestoreCsiDriverConfig|null); + /** * Creates a new AddonsConfig instance using the specified properties. * @param [properties] Properties to set @@ -2638,6 +3157,186 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a GcePersistentDiskCsiDriverConfig. */ + interface IGcePersistentDiskCsiDriverConfig { + + /** GcePersistentDiskCsiDriverConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a GcePersistentDiskCsiDriverConfig. */ + class GcePersistentDiskCsiDriverConfig implements IGcePersistentDiskCsiDriverConfig { + + /** + * Constructs a new GcePersistentDiskCsiDriverConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGcePersistentDiskCsiDriverConfig); + + /** GcePersistentDiskCsiDriverConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new GcePersistentDiskCsiDriverConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns GcePersistentDiskCsiDriverConfig instance + */ + public static create(properties?: google.container.v1.IGcePersistentDiskCsiDriverConfig): google.container.v1.GcePersistentDiskCsiDriverConfig; + + /** + * Encodes the specified GcePersistentDiskCsiDriverConfig message. Does not implicitly {@link google.container.v1.GcePersistentDiskCsiDriverConfig.verify|verify} messages. + * @param message GcePersistentDiskCsiDriverConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IGcePersistentDiskCsiDriverConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GcePersistentDiskCsiDriverConfig message, length delimited. Does not implicitly {@link google.container.v1.GcePersistentDiskCsiDriverConfig.verify|verify} messages. + * @param message GcePersistentDiskCsiDriverConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IGcePersistentDiskCsiDriverConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GcePersistentDiskCsiDriverConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GcePersistentDiskCsiDriverConfig + * @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.GcePersistentDiskCsiDriverConfig; + + /** + * Decodes a GcePersistentDiskCsiDriverConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GcePersistentDiskCsiDriverConfig + * @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.GcePersistentDiskCsiDriverConfig; + + /** + * Verifies a GcePersistentDiskCsiDriverConfig 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 GcePersistentDiskCsiDriverConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GcePersistentDiskCsiDriverConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GcePersistentDiskCsiDriverConfig; + + /** + * Creates a plain object from a GcePersistentDiskCsiDriverConfig message. Also converts values to other types if specified. + * @param message GcePersistentDiskCsiDriverConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.GcePersistentDiskCsiDriverConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GcePersistentDiskCsiDriverConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GcpFilestoreCsiDriverConfig. */ + interface IGcpFilestoreCsiDriverConfig { + + /** GcpFilestoreCsiDriverConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a GcpFilestoreCsiDriverConfig. */ + class GcpFilestoreCsiDriverConfig implements IGcpFilestoreCsiDriverConfig { + + /** + * Constructs a new GcpFilestoreCsiDriverConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGcpFilestoreCsiDriverConfig); + + /** GcpFilestoreCsiDriverConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new GcpFilestoreCsiDriverConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns GcpFilestoreCsiDriverConfig instance + */ + public static create(properties?: google.container.v1.IGcpFilestoreCsiDriverConfig): google.container.v1.GcpFilestoreCsiDriverConfig; + + /** + * Encodes the specified GcpFilestoreCsiDriverConfig message. Does not implicitly {@link google.container.v1.GcpFilestoreCsiDriverConfig.verify|verify} messages. + * @param message GcpFilestoreCsiDriverConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IGcpFilestoreCsiDriverConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GcpFilestoreCsiDriverConfig message, length delimited. Does not implicitly {@link google.container.v1.GcpFilestoreCsiDriverConfig.verify|verify} messages. + * @param message GcpFilestoreCsiDriverConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IGcpFilestoreCsiDriverConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GcpFilestoreCsiDriverConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GcpFilestoreCsiDriverConfig + * @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.GcpFilestoreCsiDriverConfig; + + /** + * Decodes a GcpFilestoreCsiDriverConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GcpFilestoreCsiDriverConfig + * @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.GcpFilestoreCsiDriverConfig; + + /** + * Verifies a GcpFilestoreCsiDriverConfig 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 GcpFilestoreCsiDriverConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GcpFilestoreCsiDriverConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GcpFilestoreCsiDriverConfig; + + /** + * Creates a plain object from a GcpFilestoreCsiDriverConfig message. Also converts values to other types if specified. + * @param message GcpFilestoreCsiDriverConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.GcpFilestoreCsiDriverConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GcpFilestoreCsiDriverConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a MasterAuthorizedNetworksConfig. */ interface IMasterAuthorizedNetworksConfig { @@ -3382,6 +4081,15 @@ export namespace google { /** Cluster workloadIdentityConfig */ workloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null); + /** Cluster meshCertificates */ + meshCertificates?: (google.container.v1.IMeshCertificates|null); + + /** Cluster notificationConfig */ + notificationConfig?: (google.container.v1.INotificationConfig|null); + + /** Cluster confidentialNodes */ + confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** Cluster selfLink */ selfLink?: (string|null); @@ -3435,6 +4143,21 @@ export namespace google { /** Cluster conditions */ conditions?: (google.container.v1.IStatusCondition[]|null); + + /** Cluster autopilot */ + autopilot?: (google.container.v1.IAutopilot|null); + + /** Cluster id */ + id?: (string|null); + + /** Cluster nodePoolDefaults */ + nodePoolDefaults?: (google.container.v1.INodePoolDefaults|null); + + /** Cluster loggingConfig */ + loggingConfig?: (google.container.v1.ILoggingConfig|null); + + /** Cluster monitoringConfig */ + monitoringConfig?: (google.container.v1.IMonitoringConfig|null); } /** Represents a Cluster. */ @@ -3545,6 +4268,15 @@ export namespace google { /** Cluster workloadIdentityConfig. */ public workloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null); + /** Cluster meshCertificates. */ + public meshCertificates?: (google.container.v1.IMeshCertificates|null); + + /** Cluster notificationConfig. */ + public notificationConfig?: (google.container.v1.INotificationConfig|null); + + /** Cluster confidentialNodes. */ + public confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** Cluster selfLink. */ public selfLink: string; @@ -3599,6 +4331,24 @@ export namespace google { /** Cluster conditions. */ public conditions: google.container.v1.IStatusCondition[]; + /** Cluster autopilot. */ + public autopilot?: (google.container.v1.IAutopilot|null); + + /** Cluster id. */ + public id: string; + + /** Cluster nodePoolDefaults. */ + public nodePoolDefaults?: (google.container.v1.INodePoolDefaults|null); + + /** Cluster loggingConfig. */ + public loggingConfig?: (google.container.v1.ILoggingConfig|null); + + /** Cluster monitoringConfig. */ + public monitoringConfig?: (google.container.v1.IMonitoringConfig|null); + + /** Cluster _nodePoolDefaults. */ + public _nodePoolDefaults?: "nodePoolDefaults"; + /** * Creates a new Cluster instance using the specified properties. * @param [properties] Properties to set @@ -3684,38 +4434,224 @@ export namespace google { } } - /** Properties of a ClusterUpdate. */ - interface IClusterUpdate { + /** Properties of a NodePoolDefaults. */ + interface INodePoolDefaults { - /** ClusterUpdate desiredNodeVersion */ - desiredNodeVersion?: (string|null); + /** NodePoolDefaults nodeConfigDefaults */ + nodeConfigDefaults?: (google.container.v1.INodeConfigDefaults|null); + } - /** ClusterUpdate desiredMonitoringService */ - desiredMonitoringService?: (string|null); + /** Represents a NodePoolDefaults. */ + class NodePoolDefaults implements INodePoolDefaults { - /** ClusterUpdate desiredAddonsConfig */ - desiredAddonsConfig?: (google.container.v1.IAddonsConfig|null); + /** + * Constructs a new NodePoolDefaults. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodePoolDefaults); - /** ClusterUpdate desiredNodePoolId */ - desiredNodePoolId?: (string|null); + /** NodePoolDefaults nodeConfigDefaults. */ + public nodeConfigDefaults?: (google.container.v1.INodeConfigDefaults|null); - /** ClusterUpdate desiredImageType */ - desiredImageType?: (string|null); + /** + * Creates a new NodePoolDefaults instance using the specified properties. + * @param [properties] Properties to set + * @returns NodePoolDefaults instance + */ + public static create(properties?: google.container.v1.INodePoolDefaults): google.container.v1.NodePoolDefaults; - /** ClusterUpdate desiredDatabaseEncryption */ - desiredDatabaseEncryption?: (google.container.v1.IDatabaseEncryption|null); + /** + * Encodes the specified NodePoolDefaults message. Does not implicitly {@link google.container.v1.NodePoolDefaults.verify|verify} messages. + * @param message NodePoolDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer; - /** ClusterUpdate desiredWorkloadIdentityConfig */ - desiredWorkloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null); + /** + * Encodes the specified NodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.NodePoolDefaults.verify|verify} messages. + * @param message NodePoolDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodePoolDefaults, writer?: $protobuf.Writer): $protobuf.Writer; - /** ClusterUpdate desiredShieldedNodes */ - desiredShieldedNodes?: (google.container.v1.IShieldedNodes|null); + /** + * Decodes a NodePoolDefaults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodePoolDefaults + * @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.NodePoolDefaults; - /** ClusterUpdate desiredNodePoolAutoscaling */ - desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null); + /** + * Decodes a NodePoolDefaults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodePoolDefaults + * @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.NodePoolDefaults; - /** ClusterUpdate desiredLocations */ - desiredLocations?: (string[]|null); + /** + * Verifies a NodePoolDefaults 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 NodePoolDefaults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodePoolDefaults + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolDefaults; + + /** + * Creates a plain object from a NodePoolDefaults message. Also converts values to other types if specified. + * @param message NodePoolDefaults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodePoolDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodePoolDefaults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NodeConfigDefaults. */ + interface INodeConfigDefaults { + + /** NodeConfigDefaults gcfsConfig */ + gcfsConfig?: (google.container.v1.IGcfsConfig|null); + } + + /** Represents a NodeConfigDefaults. */ + class NodeConfigDefaults implements INodeConfigDefaults { + + /** + * Constructs a new NodeConfigDefaults. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodeConfigDefaults); + + /** NodeConfigDefaults gcfsConfig. */ + public gcfsConfig?: (google.container.v1.IGcfsConfig|null); + + /** + * Creates a new NodeConfigDefaults instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeConfigDefaults instance + */ + public static create(properties?: google.container.v1.INodeConfigDefaults): google.container.v1.NodeConfigDefaults; + + /** + * Encodes the specified NodeConfigDefaults message. Does not implicitly {@link google.container.v1.NodeConfigDefaults.verify|verify} messages. + * @param message NodeConfigDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodeConfigDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodeConfigDefaults message, length delimited. Does not implicitly {@link google.container.v1.NodeConfigDefaults.verify|verify} messages. + * @param message NodeConfigDefaults message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodeConfigDefaults, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeConfigDefaults message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeConfigDefaults + * @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.NodeConfigDefaults; + + /** + * Decodes a NodeConfigDefaults message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeConfigDefaults + * @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.NodeConfigDefaults; + + /** + * Verifies a NodeConfigDefaults 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 NodeConfigDefaults message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeConfigDefaults + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodeConfigDefaults; + + /** + * Creates a plain object from a NodeConfigDefaults message. Also converts values to other types if specified. + * @param message NodeConfigDefaults + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodeConfigDefaults, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodeConfigDefaults to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ClusterUpdate. */ + interface IClusterUpdate { + + /** ClusterUpdate desiredNodeVersion */ + desiredNodeVersion?: (string|null); + + /** ClusterUpdate desiredMonitoringService */ + desiredMonitoringService?: (string|null); + + /** ClusterUpdate desiredAddonsConfig */ + desiredAddonsConfig?: (google.container.v1.IAddonsConfig|null); + + /** ClusterUpdate desiredNodePoolId */ + desiredNodePoolId?: (string|null); + + /** ClusterUpdate desiredImageType */ + desiredImageType?: (string|null); + + /** ClusterUpdate desiredDatabaseEncryption */ + desiredDatabaseEncryption?: (google.container.v1.IDatabaseEncryption|null); + + /** ClusterUpdate desiredWorkloadIdentityConfig */ + desiredWorkloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null); + + /** ClusterUpdate desiredMeshCertificates */ + desiredMeshCertificates?: (google.container.v1.IMeshCertificates|null); + + /** ClusterUpdate desiredShieldedNodes */ + desiredShieldedNodes?: (google.container.v1.IShieldedNodes|null); + + /** ClusterUpdate desiredDnsConfig */ + desiredDnsConfig?: (google.container.v1.IDNSConfig|null); + + /** ClusterUpdate desiredNodePoolAutoscaling */ + desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null); + + /** ClusterUpdate desiredLocations */ + desiredLocations?: (string[]|null); /** ClusterUpdate desiredMasterAuthorizedNetworksConfig */ desiredMasterAuthorizedNetworksConfig?: (google.container.v1.IMasterAuthorizedNetworksConfig|null); @@ -3747,11 +4683,35 @@ export namespace google { /** ClusterUpdate desiredReleaseChannel */ desiredReleaseChannel?: (google.container.v1.IReleaseChannel|null); + /** ClusterUpdate desiredL4ilbSubsettingConfig */ + desiredL4ilbSubsettingConfig?: (google.container.v1.IILBSubsettingConfig|null); + + /** ClusterUpdate desiredDatapathProvider */ + desiredDatapathProvider?: (google.container.v1.DatapathProvider|keyof typeof google.container.v1.DatapathProvider|null); + + /** ClusterUpdate desiredPrivateIpv6GoogleAccess */ + desiredPrivateIpv6GoogleAccess?: (google.container.v1.PrivateIPv6GoogleAccess|keyof typeof google.container.v1.PrivateIPv6GoogleAccess|null); + + /** ClusterUpdate desiredNotificationConfig */ + desiredNotificationConfig?: (google.container.v1.INotificationConfig|null); + /** ClusterUpdate desiredAuthenticatorGroupsConfig */ desiredAuthenticatorGroupsConfig?: (google.container.v1.IAuthenticatorGroupsConfig|null); + /** ClusterUpdate desiredLoggingConfig */ + desiredLoggingConfig?: (google.container.v1.ILoggingConfig|null); + + /** ClusterUpdate desiredMonitoringConfig */ + desiredMonitoringConfig?: (google.container.v1.IMonitoringConfig|null); + + /** ClusterUpdate desiredServiceExternalIpsConfig */ + desiredServiceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null); + /** ClusterUpdate desiredMasterVersion */ desiredMasterVersion?: (string|null); + + /** ClusterUpdate desiredGcfsConfig */ + desiredGcfsConfig?: (google.container.v1.IGcfsConfig|null); } /** Represents a ClusterUpdate. */ @@ -3784,9 +4744,15 @@ export namespace google { /** ClusterUpdate desiredWorkloadIdentityConfig. */ public desiredWorkloadIdentityConfig?: (google.container.v1.IWorkloadIdentityConfig|null); + /** ClusterUpdate desiredMeshCertificates. */ + public desiredMeshCertificates?: (google.container.v1.IMeshCertificates|null); + /** ClusterUpdate desiredShieldedNodes. */ public desiredShieldedNodes?: (google.container.v1.IShieldedNodes|null); + /** ClusterUpdate desiredDnsConfig. */ + public desiredDnsConfig?: (google.container.v1.IDNSConfig|null); + /** ClusterUpdate desiredNodePoolAutoscaling. */ public desiredNodePoolAutoscaling?: (google.container.v1.INodePoolAutoscaling|null); @@ -3823,12 +4789,36 @@ export namespace google { /** ClusterUpdate desiredReleaseChannel. */ public desiredReleaseChannel?: (google.container.v1.IReleaseChannel|null); + /** ClusterUpdate desiredL4ilbSubsettingConfig. */ + public desiredL4ilbSubsettingConfig?: (google.container.v1.IILBSubsettingConfig|null); + + /** ClusterUpdate desiredDatapathProvider. */ + public desiredDatapathProvider: (google.container.v1.DatapathProvider|keyof typeof google.container.v1.DatapathProvider); + + /** ClusterUpdate desiredPrivateIpv6GoogleAccess. */ + public desiredPrivateIpv6GoogleAccess: (google.container.v1.PrivateIPv6GoogleAccess|keyof typeof google.container.v1.PrivateIPv6GoogleAccess); + + /** ClusterUpdate desiredNotificationConfig. */ + public desiredNotificationConfig?: (google.container.v1.INotificationConfig|null); + /** ClusterUpdate desiredAuthenticatorGroupsConfig. */ public desiredAuthenticatorGroupsConfig?: (google.container.v1.IAuthenticatorGroupsConfig|null); + /** ClusterUpdate desiredLoggingConfig. */ + public desiredLoggingConfig?: (google.container.v1.ILoggingConfig|null); + + /** ClusterUpdate desiredMonitoringConfig. */ + public desiredMonitoringConfig?: (google.container.v1.IMonitoringConfig|null); + + /** ClusterUpdate desiredServiceExternalIpsConfig. */ + public desiredServiceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null); + /** ClusterUpdate desiredMasterVersion. */ public desiredMasterVersion: string; + /** ClusterUpdate desiredGcfsConfig. */ + public desiredGcfsConfig?: (google.container.v1.IGcfsConfig|null); + /** * Creates a new ClusterUpdate instance using the specified properties. * @param [properties] Properties to set @@ -3944,6 +4934,9 @@ export namespace google { /** Operation nodepoolConditions */ nodepoolConditions?: (google.container.v1.IStatusCondition[]|null); + + /** Operation error */ + error?: (google.rpc.IStatus|null); } /** Represents an Operation. */ @@ -3997,6 +4990,9 @@ export namespace google { /** Operation nodepoolConditions. */ public nodepoolConditions: google.container.v1.IStatusCondition[]; + /** Operation error. */ + public error?: (google.rpc.IStatus|null); + /** * Creates a new Operation instance using the specified properties. * @param [properties] Properties to set @@ -4685,6 +5681,18 @@ export namespace google { /** UpdateNodePoolRequest upgradeSettings */ upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); + + /** UpdateNodePoolRequest linuxNodeConfig */ + linuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null); + + /** UpdateNodePoolRequest kubeletConfig */ + kubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + + /** UpdateNodePoolRequest gcfsConfig */ + gcfsConfig?: (google.container.v1.IGcfsConfig|null); + + /** UpdateNodePoolRequest gvnic */ + gvnic?: (google.container.v1.IVirtualNIC|null); } /** Represents an UpdateNodePoolRequest. */ @@ -4726,6 +5734,18 @@ export namespace google { /** UpdateNodePoolRequest upgradeSettings. */ public upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); + /** UpdateNodePoolRequest linuxNodeConfig. */ + public linuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null); + + /** UpdateNodePoolRequest kubeletConfig. */ + public kubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + + /** UpdateNodePoolRequest gcfsConfig. */ + public gcfsConfig?: (google.container.v1.IGcfsConfig|null); + + /** UpdateNodePoolRequest gvnic. */ + public gvnic?: (google.container.v1.IVirtualNIC|null); + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @param [properties] Properties to set @@ -7130,6 +8150,9 @@ export namespace google { /** NodePool locations */ locations?: (string[]|null); + /** NodePool networkConfig */ + networkConfig?: (google.container.v1.INodeNetworkConfig|null); + /** NodePool selfLink */ selfLink?: (string|null); @@ -7185,6 +8208,9 @@ export namespace google { /** NodePool locations. */ public locations: string[]; + /** NodePool networkConfig. */ + public networkConfig?: (google.container.v1.INodeNetworkConfig|null); + /** NodePool selfLink. */ public selfLink: string; @@ -7801,6 +8827,9 @@ export namespace google { /** Properties of a TimeWindow. */ interface ITimeWindow { + /** TimeWindow maintenanceExclusionOptions */ + maintenanceExclusionOptions?: (google.container.v1.IMaintenanceExclusionOptions|null); + /** TimeWindow startTime */ startTime?: (google.protobuf.ITimestamp|null); @@ -7817,12 +8846,18 @@ export namespace google { */ constructor(properties?: google.container.v1.ITimeWindow); + /** TimeWindow maintenanceExclusionOptions. */ + public maintenanceExclusionOptions?: (google.container.v1.IMaintenanceExclusionOptions|null); + /** TimeWindow startTime. */ public startTime?: (google.protobuf.ITimestamp|null); /** TimeWindow endTime. */ public endTime?: (google.protobuf.ITimestamp|null); + /** TimeWindow options. */ + public options?: "maintenanceExclusionOptions"; + /** * Creates a new TimeWindow instance using the specified properties. * @param [properties] Properties to set @@ -7894,6 +8929,106 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a MaintenanceExclusionOptions. */ + interface IMaintenanceExclusionOptions { + + /** MaintenanceExclusionOptions scope */ + scope?: (google.container.v1.MaintenanceExclusionOptions.Scope|keyof typeof google.container.v1.MaintenanceExclusionOptions.Scope|null); + } + + /** Represents a MaintenanceExclusionOptions. */ + class MaintenanceExclusionOptions implements IMaintenanceExclusionOptions { + + /** + * Constructs a new MaintenanceExclusionOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IMaintenanceExclusionOptions); + + /** MaintenanceExclusionOptions scope. */ + public scope: (google.container.v1.MaintenanceExclusionOptions.Scope|keyof typeof google.container.v1.MaintenanceExclusionOptions.Scope); + + /** + * Creates a new MaintenanceExclusionOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns MaintenanceExclusionOptions instance + */ + public static create(properties?: google.container.v1.IMaintenanceExclusionOptions): google.container.v1.MaintenanceExclusionOptions; + + /** + * Encodes the specified MaintenanceExclusionOptions message. Does not implicitly {@link google.container.v1.MaintenanceExclusionOptions.verify|verify} messages. + * @param message MaintenanceExclusionOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IMaintenanceExclusionOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MaintenanceExclusionOptions message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceExclusionOptions.verify|verify} messages. + * @param message MaintenanceExclusionOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IMaintenanceExclusionOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MaintenanceExclusionOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MaintenanceExclusionOptions + * @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.MaintenanceExclusionOptions; + + /** + * Decodes a MaintenanceExclusionOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MaintenanceExclusionOptions + * @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.MaintenanceExclusionOptions; + + /** + * Verifies a MaintenanceExclusionOptions 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 MaintenanceExclusionOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MaintenanceExclusionOptions + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.MaintenanceExclusionOptions; + + /** + * Creates a plain object from a MaintenanceExclusionOptions message. Also converts values to other types if specified. + * @param message MaintenanceExclusionOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.MaintenanceExclusionOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MaintenanceExclusionOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace MaintenanceExclusionOptions { + + /** Scope enum. */ + enum Scope { + NO_UPGRADES = 0, + NO_MINOR_UPGRADES = 1, + NO_MINOR_OR_NODE_UPGRADES = 2 + } + } + /** Properties of a RecurringTimeWindow. */ interface IRecurringTimeWindow { @@ -8539,6 +9674,9 @@ export namespace google { /** ClusterAutoscaling resourceLimits */ resourceLimits?: (google.container.v1.IResourceLimit[]|null); + /** ClusterAutoscaling autoscalingProfile */ + autoscalingProfile?: (google.container.v1.ClusterAutoscaling.AutoscalingProfile|keyof typeof google.container.v1.ClusterAutoscaling.AutoscalingProfile|null); + /** ClusterAutoscaling autoprovisioningNodePoolDefaults */ autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null); @@ -8561,6 +9699,9 @@ export namespace google { /** ClusterAutoscaling resourceLimits. */ public resourceLimits: google.container.v1.IResourceLimit[]; + /** ClusterAutoscaling autoscalingProfile. */ + public autoscalingProfile: (google.container.v1.ClusterAutoscaling.AutoscalingProfile|keyof typeof google.container.v1.ClusterAutoscaling.AutoscalingProfile); + /** ClusterAutoscaling autoprovisioningNodePoolDefaults. */ public autoprovisioningNodePoolDefaults?: (google.container.v1.IAutoprovisioningNodePoolDefaults|null); @@ -8638,6 +9779,16 @@ export namespace google { public toJSON(): { [k: string]: any }; } + namespace ClusterAutoscaling { + + /** AutoscalingProfile enum. */ + enum AutoscalingProfile { + PROFILE_UNSPECIFIED = 0, + OPTIMIZE_UTILIZATION = 1, + BALANCED = 2 + } + } + /** Properties of an AutoprovisioningNodePoolDefaults. */ interface IAutoprovisioningNodePoolDefaults { @@ -9456,6 +10607,9 @@ export namespace google { /** AcceleratorConfig acceleratorType */ acceleratorType?: (string|null); + + /** AcceleratorConfig gpuPartitionSize */ + gpuPartitionSize?: (string|null); } /** Represents an AcceleratorConfig. */ @@ -9473,6 +10627,9 @@ export namespace google { /** AcceleratorConfig acceleratorType. */ public acceleratorType: string; + /** AcceleratorConfig gpuPartitionSize. */ + public gpuPartitionSize: string; + /** * Creates a new AcceleratorConfig instance using the specified properties. * @param [properties] Properties to set @@ -9880,6 +11037,9 @@ export namespace google { /** StatusCondition message */ message?: (string|null); + + /** StatusCondition canonicalCode */ + canonicalCode?: (google.rpc.Code|keyof typeof google.rpc.Code|null); } /** Represents a StatusCondition. */ @@ -9897,6 +11057,9 @@ export namespace google { /** StatusCondition message. */ public message: string; + /** StatusCondition canonicalCode. */ + public canonicalCode: (google.rpc.Code|keyof typeof google.rpc.Code); + /** * Creates a new StatusCondition instance using the specified properties. * @param [properties] Properties to set @@ -9977,7 +11140,8 @@ export namespace google { GKE_SERVICE_ACCOUNT_DELETED = 2, GCE_QUOTA_EXCEEDED = 3, SET_BY_OPERATOR = 4, - CLOUD_KMS_KEY_ERROR = 7 + CLOUD_KMS_KEY_ERROR = 7, + CA_EXPIRING = 9 } } @@ -9995,6 +11159,21 @@ export namespace google { /** NetworkConfig defaultSnatStatus */ defaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null); + + /** NetworkConfig enableL4ilbSubsetting */ + enableL4ilbSubsetting?: (boolean|null); + + /** NetworkConfig datapathProvider */ + datapathProvider?: (google.container.v1.DatapathProvider|keyof typeof google.container.v1.DatapathProvider|null); + + /** NetworkConfig privateIpv6GoogleAccess */ + privateIpv6GoogleAccess?: (google.container.v1.PrivateIPv6GoogleAccess|keyof typeof google.container.v1.PrivateIPv6GoogleAccess|null); + + /** NetworkConfig dnsConfig */ + dnsConfig?: (google.container.v1.IDNSConfig|null); + + /** NetworkConfig serviceExternalIpsConfig */ + serviceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null); } /** Represents a NetworkConfig. */ @@ -10018,6 +11197,21 @@ export namespace google { /** NetworkConfig defaultSnatStatus. */ public defaultSnatStatus?: (google.container.v1.IDefaultSnatStatus|null); + /** NetworkConfig enableL4ilbSubsetting. */ + public enableL4ilbSubsetting: boolean; + + /** NetworkConfig datapathProvider. */ + public datapathProvider: (google.container.v1.DatapathProvider|keyof typeof google.container.v1.DatapathProvider); + + /** NetworkConfig privateIpv6GoogleAccess. */ + public privateIpv6GoogleAccess: (google.container.v1.PrivateIPv6GoogleAccess|keyof typeof google.container.v1.PrivateIPv6GoogleAccess); + + /** NetworkConfig dnsConfig. */ + public dnsConfig?: (google.container.v1.IDNSConfig|null); + + /** NetworkConfig serviceExternalIpsConfig. */ + public serviceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null); + /** * Creates a new NetworkConfig instance using the specified properties. * @param [properties] Properties to set @@ -10089,263 +11283,137 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a GetOpenIDConfigRequest. */ - interface IGetOpenIDConfigRequest { + /** Properties of a ServiceExternalIPsConfig. */ + interface IServiceExternalIPsConfig { - /** GetOpenIDConfigRequest parent */ - parent?: (string|null); + /** ServiceExternalIPsConfig enabled */ + enabled?: (boolean|null); } - /** Represents a GetOpenIDConfigRequest. */ - class GetOpenIDConfigRequest implements IGetOpenIDConfigRequest { + /** Represents a ServiceExternalIPsConfig. */ + class ServiceExternalIPsConfig implements IServiceExternalIPsConfig { /** - * Constructs a new GetOpenIDConfigRequest. + * Constructs a new ServiceExternalIPsConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IGetOpenIDConfigRequest); + constructor(properties?: google.container.v1.IServiceExternalIPsConfig); - /** GetOpenIDConfigRequest parent. */ - public parent: string; + /** ServiceExternalIPsConfig enabled. */ + public enabled: boolean; /** - * Creates a new GetOpenIDConfigRequest instance using the specified properties. + * Creates a new ServiceExternalIPsConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GetOpenIDConfigRequest instance + * @returns ServiceExternalIPsConfig instance */ - public static create(properties?: google.container.v1.IGetOpenIDConfigRequest): google.container.v1.GetOpenIDConfigRequest; + public static create(properties?: google.container.v1.IServiceExternalIPsConfig): google.container.v1.ServiceExternalIPsConfig; /** - * 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 + * Encodes the specified ServiceExternalIPsConfig message. Does not implicitly {@link google.container.v1.ServiceExternalIPsConfig.verify|verify} messages. + * @param message ServiceExternalIPsConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IGetOpenIDConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IServiceExternalIPsConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * Encodes the specified ServiceExternalIPsConfig message, length delimited. Does not implicitly {@link google.container.v1.ServiceExternalIPsConfig.verify|verify} messages. + * @param message ServiceExternalIPsConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IGetOpenIDConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IServiceExternalIPsConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer. + * Decodes a ServiceExternalIPsConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetOpenIDConfigRequest + * @returns ServiceExternalIPsConfig * @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.GetOpenIDConfigRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.ServiceExternalIPsConfig; /** - * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a ServiceExternalIPsConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetOpenIDConfigRequest + * @returns ServiceExternalIPsConfig * @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.GetOpenIDConfigRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.ServiceExternalIPsConfig; /** - * Verifies a GetOpenIDConfigRequest message. + * Verifies a ServiceExternalIPsConfig 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 GetOpenIDConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceExternalIPsConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetOpenIDConfigRequest + * @returns ServiceExternalIPsConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.GetOpenIDConfigRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.ServiceExternalIPsConfig; /** - * Creates a plain object from a GetOpenIDConfigRequest message. Also converts values to other types if specified. - * @param message GetOpenIDConfigRequest + * Creates a plain object from a ServiceExternalIPsConfig message. Also converts values to other types if specified. + * @param message ServiceExternalIPsConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.GetOpenIDConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.ServiceExternalIPsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetOpenIDConfigRequest to JSON. + * Converts this ServiceExternalIPsConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetOpenIDConfigResponse. */ - interface IGetOpenIDConfigResponse { - - /** GetOpenIDConfigResponse issuer */ - issuer?: (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); + /** Properties of a GetJSONWebKeysRequest. */ + interface IGetJSONWebKeysRequest { - /** GetOpenIDConfigResponse grantTypes */ - grantTypes?: (string[]|null); + /** GetJSONWebKeysRequest parent */ + parent?: (string|null); } - /** Represents a GetOpenIDConfigResponse. */ - class GetOpenIDConfigResponse implements IGetOpenIDConfigResponse { + /** Represents a GetJSONWebKeysRequest. */ + class GetJSONWebKeysRequest implements IGetJSONWebKeysRequest { /** - * Constructs a new GetOpenIDConfigResponse. + * Constructs a new GetJSONWebKeysRequest. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IGetOpenIDConfigResponse); - - /** GetOpenIDConfigResponse issuer. */ - public issuer: 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[]; + constructor(properties?: google.container.v1.IGetJSONWebKeysRequest); - /** GetOpenIDConfigResponse grantTypes. */ - public grantTypes: string[]; + /** GetJSONWebKeysRequest parent. */ + public parent: string; /** - * Creates a new GetOpenIDConfigResponse instance using the specified properties. + * Creates a new GetJSONWebKeysRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetOpenIDConfigResponse instance + * @returns GetJSONWebKeysRequest instance */ - public static create(properties?: google.container.v1.IGetOpenIDConfigResponse): google.container.v1.GetOpenIDConfigResponse; + public static create(properties?: google.container.v1.IGetJSONWebKeysRequest): google.container.v1.GetJSONWebKeysRequest; /** - * 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 + * 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.IGetOpenIDConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IGetJSONWebKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * 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 + * 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.IGetOpenIDConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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 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.GetOpenIDConfigResponse; - - /** - * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @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.GetOpenIDConfigResponse; - - /** - * 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 a GetOpenIDConfigResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetOpenIDConfigResponse - */ - public static fromObject(object: { [k: string]: any }): google.container.v1.GetOpenIDConfigResponse; - - /** - * 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.GetOpenIDConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this GetOpenIDConfigResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetJSONWebKeysRequest. */ - interface IGetJSONWebKeysRequest { - - /** GetJSONWebKeysRequest parent */ - parent?: (string|null); - } - - /** Represents a GetJSONWebKeysRequest. */ - class GetJSONWebKeysRequest implements IGetJSONWebKeysRequest { - - /** - * Constructs a new GetJSONWebKeysRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.container.v1.IGetJSONWebKeysRequest); - - /** GetJSONWebKeysRequest parent. */ - public parent: string; - - /** - * Creates a new GetJSONWebKeysRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetJSONWebKeysRequest instance - */ - public static create(properties?: google.container.v1.IGetJSONWebKeysRequest): google.container.v1.GetJSONWebKeysRequest; - - /** - * 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.IGetJSONWebKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * 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.IGetJSONWebKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IGetJSONWebKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GetJSONWebKeysRequest message from the specified reader or buffer. @@ -10814,6 +11882,214 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a ILBSubsettingConfig. */ + interface IILBSubsettingConfig { + + /** ILBSubsettingConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a ILBSubsettingConfig. */ + class ILBSubsettingConfig implements IILBSubsettingConfig { + + /** + * Constructs a new ILBSubsettingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IILBSubsettingConfig); + + /** ILBSubsettingConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new ILBSubsettingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ILBSubsettingConfig instance + */ + public static create(properties?: google.container.v1.IILBSubsettingConfig): google.container.v1.ILBSubsettingConfig; + + /** + * Encodes the specified ILBSubsettingConfig message. Does not implicitly {@link google.container.v1.ILBSubsettingConfig.verify|verify} messages. + * @param message ILBSubsettingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IILBSubsettingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ILBSubsettingConfig message, length delimited. Does not implicitly {@link google.container.v1.ILBSubsettingConfig.verify|verify} messages. + * @param message ILBSubsettingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IILBSubsettingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ILBSubsettingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ILBSubsettingConfig + * @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.ILBSubsettingConfig; + + /** + * Decodes a ILBSubsettingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ILBSubsettingConfig + * @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.ILBSubsettingConfig; + + /** + * Verifies a ILBSubsettingConfig 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 ILBSubsettingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ILBSubsettingConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ILBSubsettingConfig; + + /** + * Creates a plain object from a ILBSubsettingConfig message. Also converts values to other types if specified. + * @param message ILBSubsettingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ILBSubsettingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ILBSubsettingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DNSConfig. */ + interface IDNSConfig { + + /** DNSConfig clusterDns */ + clusterDns?: (google.container.v1.DNSConfig.Provider|keyof typeof google.container.v1.DNSConfig.Provider|null); + + /** DNSConfig clusterDnsScope */ + clusterDnsScope?: (google.container.v1.DNSConfig.DNSScope|keyof typeof google.container.v1.DNSConfig.DNSScope|null); + + /** DNSConfig clusterDnsDomain */ + clusterDnsDomain?: (string|null); + } + + /** Represents a DNSConfig. */ + class DNSConfig implements IDNSConfig { + + /** + * Constructs a new DNSConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IDNSConfig); + + /** DNSConfig clusterDns. */ + public clusterDns: (google.container.v1.DNSConfig.Provider|keyof typeof google.container.v1.DNSConfig.Provider); + + /** DNSConfig clusterDnsScope. */ + public clusterDnsScope: (google.container.v1.DNSConfig.DNSScope|keyof typeof google.container.v1.DNSConfig.DNSScope); + + /** DNSConfig clusterDnsDomain. */ + public clusterDnsDomain: string; + + /** + * Creates a new DNSConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns DNSConfig instance + */ + public static create(properties?: google.container.v1.IDNSConfig): google.container.v1.DNSConfig; + + /** + * Encodes the specified DNSConfig message. Does not implicitly {@link google.container.v1.DNSConfig.verify|verify} messages. + * @param message DNSConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IDNSConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DNSConfig message, length delimited. Does not implicitly {@link google.container.v1.DNSConfig.verify|verify} messages. + * @param message DNSConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IDNSConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DNSConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DNSConfig + * @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.DNSConfig; + + /** + * Decodes a DNSConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DNSConfig + * @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.DNSConfig; + + /** + * Verifies a DNSConfig 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 DNSConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DNSConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.DNSConfig; + + /** + * Creates a plain object from a DNSConfig message. Also converts values to other types if specified. + * @param message DNSConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.DNSConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DNSConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DNSConfig { + + /** Provider enum. */ + enum Provider { + PROVIDER_UNSPECIFIED = 0, + PLATFORM_DEFAULT = 1, + CLOUD_DNS = 2 + } + + /** DNSScope enum. */ + enum DNSScope { + DNS_SCOPE_UNSPECIFIED = 0, + VPC_SCOPE = 2 + } + } + /** Properties of a MaxPodsConstraint. */ interface IMaxPodsConstraint { @@ -10994,111 +12270,201 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of a DatabaseEncryption. */ - interface IDatabaseEncryption { - - /** DatabaseEncryption state */ - state?: (google.container.v1.DatabaseEncryption.State|keyof typeof google.container.v1.DatabaseEncryption.State|null); + /** Properties of a MeshCertificates. */ + interface IMeshCertificates { - /** DatabaseEncryption keyName */ - keyName?: (string|null); + /** MeshCertificates enableCertificates */ + enableCertificates?: (google.protobuf.IBoolValue|null); } - /** Represents a DatabaseEncryption. */ - class DatabaseEncryption implements IDatabaseEncryption { + /** Represents a MeshCertificates. */ + class MeshCertificates implements IMeshCertificates { /** - * Constructs a new DatabaseEncryption. + * Constructs a new MeshCertificates. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IDatabaseEncryption); + constructor(properties?: google.container.v1.IMeshCertificates); - /** DatabaseEncryption state. */ - public state: (google.container.v1.DatabaseEncryption.State|keyof typeof google.container.v1.DatabaseEncryption.State); - - /** DatabaseEncryption keyName. */ - public keyName: string; + /** MeshCertificates enableCertificates. */ + public enableCertificates?: (google.protobuf.IBoolValue|null); /** - * Creates a new DatabaseEncryption instance using the specified properties. + * Creates a new MeshCertificates instance using the specified properties. * @param [properties] Properties to set - * @returns DatabaseEncryption instance + * @returns MeshCertificates instance */ - public static create(properties?: google.container.v1.IDatabaseEncryption): google.container.v1.DatabaseEncryption; + public static create(properties?: google.container.v1.IMeshCertificates): google.container.v1.MeshCertificates; /** - * Encodes the specified DatabaseEncryption message. Does not implicitly {@link google.container.v1.DatabaseEncryption.verify|verify} messages. - * @param message DatabaseEncryption message or plain object to encode + * Encodes the specified MeshCertificates message. Does not implicitly {@link google.container.v1.MeshCertificates.verify|verify} messages. + * @param message MeshCertificates message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.container.v1.IDatabaseEncryption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.container.v1.IMeshCertificates, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DatabaseEncryption message, length delimited. Does not implicitly {@link google.container.v1.DatabaseEncryption.verify|verify} messages. - * @param message DatabaseEncryption message or plain object to encode + * Encodes the specified MeshCertificates message, length delimited. Does not implicitly {@link google.container.v1.MeshCertificates.verify|verify} messages. + * @param message MeshCertificates message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.container.v1.IDatabaseEncryption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.container.v1.IMeshCertificates, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DatabaseEncryption message from the specified reader or buffer. + * Decodes a MeshCertificates message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DatabaseEncryption + * @returns MeshCertificates * @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.DatabaseEncryption; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1.MeshCertificates; /** - * Decodes a DatabaseEncryption message from the specified reader or buffer, length delimited. + * Decodes a MeshCertificates message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DatabaseEncryption + * @returns MeshCertificates * @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.DatabaseEncryption; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1.MeshCertificates; /** - * Verifies a DatabaseEncryption message. + * Verifies a MeshCertificates 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 DatabaseEncryption message from a plain object. Also converts values to their respective internal types. + * Creates a MeshCertificates message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DatabaseEncryption + * @returns MeshCertificates */ - public static fromObject(object: { [k: string]: any }): google.container.v1.DatabaseEncryption; + public static fromObject(object: { [k: string]: any }): google.container.v1.MeshCertificates; /** - * Creates a plain object from a DatabaseEncryption message. Also converts values to other types if specified. - * @param message DatabaseEncryption + * Creates a plain object from a MeshCertificates message. Also converts values to other types if specified. + * @param message MeshCertificates * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.container.v1.DatabaseEncryption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.MeshCertificates, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DatabaseEncryption to JSON. + * Converts this MeshCertificates to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace DatabaseEncryption { + /** Properties of a DatabaseEncryption. */ + interface IDatabaseEncryption { - /** State enum. */ - enum State { - UNKNOWN = 0, - ENCRYPTED = 1, - DECRYPTED = 2 - } - } + /** DatabaseEncryption state */ + state?: (google.container.v1.DatabaseEncryption.State|keyof typeof google.container.v1.DatabaseEncryption.State|null); + + /** DatabaseEncryption keyName */ + keyName?: (string|null); + } + + /** Represents a DatabaseEncryption. */ + class DatabaseEncryption implements IDatabaseEncryption { + + /** + * Constructs a new DatabaseEncryption. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IDatabaseEncryption); + + /** DatabaseEncryption state. */ + public state: (google.container.v1.DatabaseEncryption.State|keyof typeof google.container.v1.DatabaseEncryption.State); + + /** DatabaseEncryption keyName. */ + public keyName: string; + + /** + * Creates a new DatabaseEncryption instance using the specified properties. + * @param [properties] Properties to set + * @returns DatabaseEncryption instance + */ + public static create(properties?: google.container.v1.IDatabaseEncryption): google.container.v1.DatabaseEncryption; + + /** + * Encodes the specified DatabaseEncryption message. Does not implicitly {@link google.container.v1.DatabaseEncryption.verify|verify} messages. + * @param message DatabaseEncryption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IDatabaseEncryption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DatabaseEncryption message, length delimited. Does not implicitly {@link google.container.v1.DatabaseEncryption.verify|verify} messages. + * @param message DatabaseEncryption message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IDatabaseEncryption, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DatabaseEncryption message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DatabaseEncryption + * @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.DatabaseEncryption; + + /** + * Decodes a DatabaseEncryption message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DatabaseEncryption + * @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.DatabaseEncryption; + + /** + * Verifies a DatabaseEncryption 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 DatabaseEncryption message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DatabaseEncryption + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.DatabaseEncryption; + + /** + * Creates a plain object from a DatabaseEncryption message. Also converts values to other types if specified. + * @param message DatabaseEncryption + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.DatabaseEncryption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DatabaseEncryption to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace DatabaseEncryption { + + /** State enum. */ + enum State { + UNKNOWN = 0, + ENCRYPTED = 1, + DECRYPTED = 2 + } + } /** Properties of a ListUsableSubnetworksRequest. */ interface IListUsableSubnetworksRequest { @@ -12086,3659 +13452,6275 @@ export namespace google { */ public toJSON(): { [k: string]: any }; } - } - } - /** Namespace api. */ - namespace api { + /** Properties of a VirtualNIC. */ + interface IVirtualNIC { - /** Properties of a Http. */ - interface IHttp { + /** VirtualNIC enabled */ + enabled?: (boolean|null); + } - /** Http rules */ - rules?: (google.api.IHttpRule[]|null); + /** Represents a VirtualNIC. */ + class VirtualNIC implements IVirtualNIC { - /** Http fullyDecodeReservedExpansion */ - fullyDecodeReservedExpansion?: (boolean|null); - } + /** + * Constructs a new VirtualNIC. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IVirtualNIC); - /** Represents a Http. */ - class Http implements IHttp { + /** VirtualNIC enabled. */ + public enabled: boolean; - /** - * Constructs a new Http. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttp); + /** + * Creates a new VirtualNIC instance using the specified properties. + * @param [properties] Properties to set + * @returns VirtualNIC instance + */ + public static create(properties?: google.container.v1.IVirtualNIC): google.container.v1.VirtualNIC; - /** Http rules. */ - public rules: google.api.IHttpRule[]; + /** + * Encodes the specified VirtualNIC message. Does not implicitly {@link google.container.v1.VirtualNIC.verify|verify} messages. + * @param message VirtualNIC message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IVirtualNIC, writer?: $protobuf.Writer): $protobuf.Writer; - /** Http fullyDecodeReservedExpansion. */ - public fullyDecodeReservedExpansion: boolean; + /** + * Encodes the specified VirtualNIC message, length delimited. Does not implicitly {@link google.container.v1.VirtualNIC.verify|verify} messages. + * @param message VirtualNIC message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IVirtualNIC, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Http instance using the specified properties. - * @param [properties] Properties to set - * @returns Http instance - */ - public static create(properties?: google.api.IHttp): google.api.Http; + /** + * Decodes a VirtualNIC message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns VirtualNIC + * @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.VirtualNIC; - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a VirtualNIC message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns VirtualNIC + * @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.VirtualNIC; - /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a VirtualNIC 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); - /** - * Decodes a Http message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Http - * @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.api.Http; + /** + * Creates a VirtualNIC message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns VirtualNIC + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.VirtualNIC; - /** - * Decodes a Http message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Http - * @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.api.Http; + /** + * Creates a plain object from a VirtualNIC message. Also converts values to other types if specified. + * @param message VirtualNIC + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.VirtualNIC, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a Http 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); + /** + * Converts this VirtualNIC to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Http - */ - public static fromObject(object: { [k: string]: any }): google.api.Http; + /** PrivateIPv6GoogleAccess enum. */ + enum PrivateIPv6GoogleAccess { + PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0, + PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1, + PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2, + PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3 + } - /** - * Creates a plain object from a Http message. Also converts values to other types if specified. - * @param message Http - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** DatapathProvider enum. */ + enum DatapathProvider { + DATAPATH_PROVIDER_UNSPECIFIED = 0, + LEGACY_DATAPATH = 1, + ADVANCED_DATAPATH = 2 + } - /** - * Converts this Http to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Properties of a NotificationConfig. */ + interface INotificationConfig { - /** Properties of a HttpRule. */ - interface IHttpRule { + /** NotificationConfig pubsub */ + pubsub?: (google.container.v1.NotificationConfig.IPubSub|null); + } - /** HttpRule selector */ - selector?: (string|null); + /** Represents a NotificationConfig. */ + class NotificationConfig implements INotificationConfig { - /** HttpRule get */ - get?: (string|null); + /** + * Constructs a new NotificationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INotificationConfig); - /** HttpRule put */ - put?: (string|null); + /** NotificationConfig pubsub. */ + public pubsub?: (google.container.v1.NotificationConfig.IPubSub|null); - /** HttpRule post */ - post?: (string|null); + /** + * Creates a new NotificationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NotificationConfig instance + */ + public static create(properties?: google.container.v1.INotificationConfig): google.container.v1.NotificationConfig; - /** HttpRule delete */ - "delete"?: (string|null); + /** + * Encodes the specified NotificationConfig message. Does not implicitly {@link google.container.v1.NotificationConfig.verify|verify} messages. + * @param message NotificationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INotificationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** HttpRule patch */ - patch?: (string|null); + /** + * Encodes the specified NotificationConfig message, length delimited. Does not implicitly {@link google.container.v1.NotificationConfig.verify|verify} messages. + * @param message NotificationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INotificationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NotificationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NotificationConfig + * @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.NotificationConfig; + + /** + * Decodes a NotificationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NotificationConfig + * @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.NotificationConfig; + + /** + * Verifies a NotificationConfig 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 NotificationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NotificationConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NotificationConfig; + + /** + * Creates a plain object from a NotificationConfig message. Also converts values to other types if specified. + * @param message NotificationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NotificationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NotificationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace NotificationConfig { + + /** EventType enum. */ + enum EventType { + EVENT_TYPE_UNSPECIFIED = 0, + UPGRADE_AVAILABLE_EVENT = 1, + UPGRADE_EVENT = 2, + SECURITY_BULLETIN_EVENT = 3 + } + + /** Properties of a PubSub. */ + interface IPubSub { + + /** PubSub enabled */ + enabled?: (boolean|null); + + /** PubSub topic */ + topic?: (string|null); + + /** PubSub filter */ + filter?: (google.container.v1.NotificationConfig.IFilter|null); + } + + /** Represents a PubSub. */ + class PubSub implements IPubSub { + + /** + * Constructs a new PubSub. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.NotificationConfig.IPubSub); + + /** PubSub enabled. */ + public enabled: boolean; + + /** PubSub topic. */ + public topic: string; + + /** PubSub filter. */ + public filter?: (google.container.v1.NotificationConfig.IFilter|null); + + /** + * Creates a new PubSub instance using the specified properties. + * @param [properties] Properties to set + * @returns PubSub instance + */ + public static create(properties?: google.container.v1.NotificationConfig.IPubSub): google.container.v1.NotificationConfig.PubSub; + + /** + * Encodes the specified PubSub message. Does not implicitly {@link google.container.v1.NotificationConfig.PubSub.verify|verify} messages. + * @param message PubSub message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.NotificationConfig.IPubSub, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified PubSub message, length delimited. Does not implicitly {@link google.container.v1.NotificationConfig.PubSub.verify|verify} messages. + * @param message PubSub message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.NotificationConfig.IPubSub, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a PubSub message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PubSub + * @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.NotificationConfig.PubSub; + + /** + * Decodes a PubSub message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PubSub + * @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.NotificationConfig.PubSub; + + /** + * Verifies a PubSub 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 PubSub message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PubSub + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NotificationConfig.PubSub; + + /** + * Creates a plain object from a PubSub message. Also converts values to other types if specified. + * @param message PubSub + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NotificationConfig.PubSub, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this PubSub to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a Filter. */ + interface IFilter { + + /** Filter eventType */ + eventType?: (google.container.v1.NotificationConfig.EventType[]|null); + } + + /** Represents a Filter. */ + class Filter implements IFilter { + + /** + * Constructs a new Filter. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.NotificationConfig.IFilter); + + /** Filter eventType. */ + public eventType: google.container.v1.NotificationConfig.EventType[]; + + /** + * Creates a new Filter instance using the specified properties. + * @param [properties] Properties to set + * @returns Filter instance + */ + public static create(properties?: google.container.v1.NotificationConfig.IFilter): google.container.v1.NotificationConfig.Filter; + + /** + * Encodes the specified Filter message. Does not implicitly {@link google.container.v1.NotificationConfig.Filter.verify|verify} messages. + * @param message Filter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.NotificationConfig.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Filter message, length delimited. Does not implicitly {@link google.container.v1.NotificationConfig.Filter.verify|verify} messages. + * @param message Filter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.NotificationConfig.IFilter, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Filter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Filter + * @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.NotificationConfig.Filter; + + /** + * Decodes a Filter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Filter + * @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.NotificationConfig.Filter; + + /** + * Verifies a Filter 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 Filter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Filter + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NotificationConfig.Filter; + + /** + * Creates a plain object from a Filter message. Also converts values to other types if specified. + * @param message Filter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NotificationConfig.Filter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Filter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Properties of a ConfidentialNodes. */ + interface IConfidentialNodes { + + /** ConfidentialNodes enabled */ + enabled?: (boolean|null); + } + + /** Represents a ConfidentialNodes. */ + class ConfidentialNodes implements IConfidentialNodes { + + /** + * Constructs a new ConfidentialNodes. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IConfidentialNodes); + + /** ConfidentialNodes enabled. */ + public enabled: boolean; + + /** + * Creates a new ConfidentialNodes instance using the specified properties. + * @param [properties] Properties to set + * @returns ConfidentialNodes instance + */ + public static create(properties?: google.container.v1.IConfidentialNodes): google.container.v1.ConfidentialNodes; + + /** + * Encodes the specified ConfidentialNodes message. Does not implicitly {@link google.container.v1.ConfidentialNodes.verify|verify} messages. + * @param message ConfidentialNodes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IConfidentialNodes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConfidentialNodes message, length delimited. Does not implicitly {@link google.container.v1.ConfidentialNodes.verify|verify} messages. + * @param message ConfidentialNodes message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IConfidentialNodes, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConfidentialNodes message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConfidentialNodes + * @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.ConfidentialNodes; + + /** + * Decodes a ConfidentialNodes message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConfidentialNodes + * @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.ConfidentialNodes; + + /** + * Verifies a ConfidentialNodes 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 ConfidentialNodes message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConfidentialNodes + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ConfidentialNodes; + + /** + * Creates a plain object from a ConfidentialNodes message. Also converts values to other types if specified. + * @param message ConfidentialNodes + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ConfidentialNodes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConfidentialNodes to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** UpgradeResourceType enum. */ + enum UpgradeResourceType { + UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0, + MASTER = 1, + NODE_POOL = 2 + } + + /** Properties of an UpgradeEvent. */ + interface IUpgradeEvent { + + /** UpgradeEvent resourceType */ + resourceType?: (google.container.v1.UpgradeResourceType|keyof typeof google.container.v1.UpgradeResourceType|null); + + /** UpgradeEvent operation */ + operation?: (string|null); + + /** UpgradeEvent operationStartTime */ + operationStartTime?: (google.protobuf.ITimestamp|null); + + /** UpgradeEvent currentVersion */ + currentVersion?: (string|null); + + /** UpgradeEvent targetVersion */ + targetVersion?: (string|null); + + /** UpgradeEvent resource */ + resource?: (string|null); + } + + /** Represents an UpgradeEvent. */ + class UpgradeEvent implements IUpgradeEvent { + + /** + * Constructs a new UpgradeEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IUpgradeEvent); + + /** UpgradeEvent resourceType. */ + public resourceType: (google.container.v1.UpgradeResourceType|keyof typeof google.container.v1.UpgradeResourceType); + + /** UpgradeEvent operation. */ + public operation: string; + + /** UpgradeEvent operationStartTime. */ + public operationStartTime?: (google.protobuf.ITimestamp|null); + + /** UpgradeEvent currentVersion. */ + public currentVersion: string; + + /** UpgradeEvent targetVersion. */ + public targetVersion: string; + + /** UpgradeEvent resource. */ + public resource: string; + + /** + * Creates a new UpgradeEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeEvent instance + */ + public static create(properties?: google.container.v1.IUpgradeEvent): google.container.v1.UpgradeEvent; + + /** + * Encodes the specified UpgradeEvent message. Does not implicitly {@link google.container.v1.UpgradeEvent.verify|verify} messages. + * @param message UpgradeEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IUpgradeEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpgradeEvent message, length delimited. Does not implicitly {@link google.container.v1.UpgradeEvent.verify|verify} messages. + * @param message UpgradeEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IUpgradeEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpgradeEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeEvent + * @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.UpgradeEvent; + + /** + * Decodes an UpgradeEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpgradeEvent + * @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.UpgradeEvent; + + /** + * Verifies an UpgradeEvent 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 UpgradeEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeEvent + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.UpgradeEvent; + + /** + * Creates a plain object from an UpgradeEvent message. Also converts values to other types if specified. + * @param message UpgradeEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.UpgradeEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpgradeAvailableEvent. */ + interface IUpgradeAvailableEvent { + + /** UpgradeAvailableEvent version */ + version?: (string|null); + + /** UpgradeAvailableEvent resourceType */ + resourceType?: (google.container.v1.UpgradeResourceType|keyof typeof google.container.v1.UpgradeResourceType|null); + + /** UpgradeAvailableEvent releaseChannel */ + releaseChannel?: (google.container.v1.IReleaseChannel|null); + + /** UpgradeAvailableEvent resource */ + resource?: (string|null); + } + + /** Represents an UpgradeAvailableEvent. */ + class UpgradeAvailableEvent implements IUpgradeAvailableEvent { + + /** + * Constructs a new UpgradeAvailableEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IUpgradeAvailableEvent); + + /** UpgradeAvailableEvent version. */ + public version: string; + + /** UpgradeAvailableEvent resourceType. */ + public resourceType: (google.container.v1.UpgradeResourceType|keyof typeof google.container.v1.UpgradeResourceType); + + /** UpgradeAvailableEvent releaseChannel. */ + public releaseChannel?: (google.container.v1.IReleaseChannel|null); + + /** UpgradeAvailableEvent resource. */ + public resource: string; + + /** + * Creates a new UpgradeAvailableEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns UpgradeAvailableEvent instance + */ + public static create(properties?: google.container.v1.IUpgradeAvailableEvent): google.container.v1.UpgradeAvailableEvent; + + /** + * Encodes the specified UpgradeAvailableEvent message. Does not implicitly {@link google.container.v1.UpgradeAvailableEvent.verify|verify} messages. + * @param message UpgradeAvailableEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IUpgradeAvailableEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpgradeAvailableEvent message, length delimited. Does not implicitly {@link google.container.v1.UpgradeAvailableEvent.verify|verify} messages. + * @param message UpgradeAvailableEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IUpgradeAvailableEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpgradeAvailableEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpgradeAvailableEvent + * @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.UpgradeAvailableEvent; + + /** + * Decodes an UpgradeAvailableEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpgradeAvailableEvent + * @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.UpgradeAvailableEvent; + + /** + * Verifies an UpgradeAvailableEvent 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 UpgradeAvailableEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpgradeAvailableEvent + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.UpgradeAvailableEvent; + + /** + * Creates a plain object from an UpgradeAvailableEvent message. Also converts values to other types if specified. + * @param message UpgradeAvailableEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.UpgradeAvailableEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpgradeAvailableEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a SecurityBulletinEvent. */ + interface ISecurityBulletinEvent { + + /** SecurityBulletinEvent resourceTypeAffected */ + resourceTypeAffected?: (string|null); + + /** SecurityBulletinEvent bulletinId */ + bulletinId?: (string|null); + + /** SecurityBulletinEvent cveIds */ + cveIds?: (string[]|null); + + /** SecurityBulletinEvent severity */ + severity?: (string|null); + + /** SecurityBulletinEvent bulletinUri */ + bulletinUri?: (string|null); + + /** SecurityBulletinEvent briefDescription */ + briefDescription?: (string|null); + + /** SecurityBulletinEvent affectedSupportedMinors */ + affectedSupportedMinors?: (string[]|null); + + /** SecurityBulletinEvent patchedVersions */ + patchedVersions?: (string[]|null); + + /** SecurityBulletinEvent suggestedUpgradeTarget */ + suggestedUpgradeTarget?: (string|null); + + /** SecurityBulletinEvent manualStepsRequired */ + manualStepsRequired?: (boolean|null); + } + + /** Represents a SecurityBulletinEvent. */ + class SecurityBulletinEvent implements ISecurityBulletinEvent { + + /** + * Constructs a new SecurityBulletinEvent. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ISecurityBulletinEvent); + + /** SecurityBulletinEvent resourceTypeAffected. */ + public resourceTypeAffected: string; + + /** SecurityBulletinEvent bulletinId. */ + public bulletinId: string; + + /** SecurityBulletinEvent cveIds. */ + public cveIds: string[]; + + /** SecurityBulletinEvent severity. */ + public severity: string; + + /** SecurityBulletinEvent bulletinUri. */ + public bulletinUri: string; + + /** SecurityBulletinEvent briefDescription. */ + public briefDescription: string; + + /** SecurityBulletinEvent affectedSupportedMinors. */ + public affectedSupportedMinors: string[]; + + /** SecurityBulletinEvent patchedVersions. */ + public patchedVersions: string[]; + + /** SecurityBulletinEvent suggestedUpgradeTarget. */ + public suggestedUpgradeTarget: string; + + /** SecurityBulletinEvent manualStepsRequired. */ + public manualStepsRequired: boolean; + + /** + * Creates a new SecurityBulletinEvent instance using the specified properties. + * @param [properties] Properties to set + * @returns SecurityBulletinEvent instance + */ + public static create(properties?: google.container.v1.ISecurityBulletinEvent): google.container.v1.SecurityBulletinEvent; + + /** + * Encodes the specified SecurityBulletinEvent message. Does not implicitly {@link google.container.v1.SecurityBulletinEvent.verify|verify} messages. + * @param message SecurityBulletinEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ISecurityBulletinEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SecurityBulletinEvent message, length delimited. Does not implicitly {@link google.container.v1.SecurityBulletinEvent.verify|verify} messages. + * @param message SecurityBulletinEvent message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ISecurityBulletinEvent, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SecurityBulletinEvent message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SecurityBulletinEvent + * @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.SecurityBulletinEvent; + + /** + * Decodes a SecurityBulletinEvent message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SecurityBulletinEvent + * @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.SecurityBulletinEvent; + + /** + * Verifies a SecurityBulletinEvent 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 SecurityBulletinEvent message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SecurityBulletinEvent + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.SecurityBulletinEvent; + + /** + * Creates a plain object from a SecurityBulletinEvent message. Also converts values to other types if specified. + * @param message SecurityBulletinEvent + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.SecurityBulletinEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SecurityBulletinEvent to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an Autopilot. */ + interface IAutopilot { + + /** Autopilot enabled */ + enabled?: (boolean|null); + } + + /** Represents an Autopilot. */ + class Autopilot implements IAutopilot { + + /** + * Constructs a new Autopilot. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IAutopilot); + + /** Autopilot enabled. */ + public enabled: boolean; + + /** + * Creates a new Autopilot instance using the specified properties. + * @param [properties] Properties to set + * @returns Autopilot instance + */ + public static create(properties?: google.container.v1.IAutopilot): google.container.v1.Autopilot; + + /** + * Encodes the specified Autopilot message. Does not implicitly {@link google.container.v1.Autopilot.verify|verify} messages. + * @param message Autopilot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IAutopilot, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Autopilot message, length delimited. Does not implicitly {@link google.container.v1.Autopilot.verify|verify} messages. + * @param message Autopilot message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IAutopilot, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Autopilot message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Autopilot + * @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.Autopilot; + + /** + * Decodes an Autopilot message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Autopilot + * @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.Autopilot; + + /** + * Verifies an Autopilot 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 Autopilot message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Autopilot + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.Autopilot; + + /** + * Creates a plain object from an Autopilot message. Also converts values to other types if specified. + * @param message Autopilot + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.Autopilot, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Autopilot to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a LoggingConfig. */ + interface ILoggingConfig { + + /** LoggingConfig componentConfig */ + componentConfig?: (google.container.v1.ILoggingComponentConfig|null); + } + + /** Represents a LoggingConfig. */ + class LoggingConfig implements ILoggingConfig { + + /** + * Constructs a new LoggingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ILoggingConfig); + + /** LoggingConfig componentConfig. */ + public componentConfig?: (google.container.v1.ILoggingComponentConfig|null); + + /** + * Creates a new LoggingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns LoggingConfig instance + */ + public static create(properties?: google.container.v1.ILoggingConfig): google.container.v1.LoggingConfig; + + /** + * Encodes the specified LoggingConfig message. Does not implicitly {@link google.container.v1.LoggingConfig.verify|verify} messages. + * @param message LoggingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ILoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LoggingConfig message, length delimited. Does not implicitly {@link google.container.v1.LoggingConfig.verify|verify} messages. + * @param message LoggingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ILoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LoggingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LoggingConfig + * @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.LoggingConfig; + + /** + * Decodes a LoggingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LoggingConfig + * @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.LoggingConfig; + + /** + * Verifies a LoggingConfig 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 LoggingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LoggingConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.LoggingConfig; + + /** + * Creates a plain object from a LoggingConfig message. Also converts values to other types if specified. + * @param message LoggingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.LoggingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LoggingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a LoggingComponentConfig. */ + interface ILoggingComponentConfig { + + /** LoggingComponentConfig enableComponents */ + enableComponents?: (google.container.v1.LoggingComponentConfig.Component[]|null); + } + + /** Represents a LoggingComponentConfig. */ + class LoggingComponentConfig implements ILoggingComponentConfig { + + /** + * Constructs a new LoggingComponentConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ILoggingComponentConfig); + + /** LoggingComponentConfig enableComponents. */ + public enableComponents: google.container.v1.LoggingComponentConfig.Component[]; + + /** + * Creates a new LoggingComponentConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns LoggingComponentConfig instance + */ + public static create(properties?: google.container.v1.ILoggingComponentConfig): google.container.v1.LoggingComponentConfig; + + /** + * Encodes the specified LoggingComponentConfig message. Does not implicitly {@link google.container.v1.LoggingComponentConfig.verify|verify} messages. + * @param message LoggingComponentConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ILoggingComponentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LoggingComponentConfig message, length delimited. Does not implicitly {@link google.container.v1.LoggingComponentConfig.verify|verify} messages. + * @param message LoggingComponentConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ILoggingComponentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LoggingComponentConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LoggingComponentConfig + * @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.LoggingComponentConfig; + + /** + * Decodes a LoggingComponentConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LoggingComponentConfig + * @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.LoggingComponentConfig; + + /** + * Verifies a LoggingComponentConfig 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 LoggingComponentConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LoggingComponentConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.LoggingComponentConfig; + + /** + * Creates a plain object from a LoggingComponentConfig message. Also converts values to other types if specified. + * @param message LoggingComponentConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.LoggingComponentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LoggingComponentConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace LoggingComponentConfig { + + /** Component enum. */ + enum Component { + COMPONENT_UNSPECIFIED = 0, + SYSTEM_COMPONENTS = 1, + WORKLOADS = 2 + } + } + + /** Properties of a MonitoringConfig. */ + interface IMonitoringConfig { + + /** MonitoringConfig componentConfig */ + componentConfig?: (google.container.v1.IMonitoringComponentConfig|null); + } + + /** Represents a MonitoringConfig. */ + class MonitoringConfig implements IMonitoringConfig { + + /** + * Constructs a new MonitoringConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IMonitoringConfig); + + /** MonitoringConfig componentConfig. */ + public componentConfig?: (google.container.v1.IMonitoringComponentConfig|null); + + /** + * Creates a new MonitoringConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MonitoringConfig instance + */ + public static create(properties?: google.container.v1.IMonitoringConfig): google.container.v1.MonitoringConfig; + + /** + * Encodes the specified MonitoringConfig message. Does not implicitly {@link google.container.v1.MonitoringConfig.verify|verify} messages. + * @param message MonitoringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MonitoringConfig message, length delimited. Does not implicitly {@link google.container.v1.MonitoringConfig.verify|verify} messages. + * @param message MonitoringConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MonitoringConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MonitoringConfig + * @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.MonitoringConfig; + + /** + * Decodes a MonitoringConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MonitoringConfig + * @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.MonitoringConfig; + + /** + * Verifies a MonitoringConfig 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 MonitoringConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MonitoringConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.MonitoringConfig; + + /** + * Creates a plain object from a MonitoringConfig message. Also converts values to other types if specified. + * @param message MonitoringConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.MonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MonitoringConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MonitoringComponentConfig. */ + interface IMonitoringComponentConfig { + + /** MonitoringComponentConfig enableComponents */ + enableComponents?: (google.container.v1.MonitoringComponentConfig.Component[]|null); + } + + /** Represents a MonitoringComponentConfig. */ + class MonitoringComponentConfig implements IMonitoringComponentConfig { + + /** + * Constructs a new MonitoringComponentConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IMonitoringComponentConfig); + + /** MonitoringComponentConfig enableComponents. */ + public enableComponents: google.container.v1.MonitoringComponentConfig.Component[]; + + /** + * Creates a new MonitoringComponentConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns MonitoringComponentConfig instance + */ + public static create(properties?: google.container.v1.IMonitoringComponentConfig): google.container.v1.MonitoringComponentConfig; + + /** + * Encodes the specified MonitoringComponentConfig message. Does not implicitly {@link google.container.v1.MonitoringComponentConfig.verify|verify} messages. + * @param message MonitoringComponentConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IMonitoringComponentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MonitoringComponentConfig message, length delimited. Does not implicitly {@link google.container.v1.MonitoringComponentConfig.verify|verify} messages. + * @param message MonitoringComponentConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IMonitoringComponentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MonitoringComponentConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MonitoringComponentConfig + * @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.MonitoringComponentConfig; + + /** + * Decodes a MonitoringComponentConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MonitoringComponentConfig + * @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.MonitoringComponentConfig; + + /** + * Verifies a MonitoringComponentConfig 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 MonitoringComponentConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MonitoringComponentConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.MonitoringComponentConfig; + + /** + * Creates a plain object from a MonitoringComponentConfig message. Also converts values to other types if specified. + * @param message MonitoringComponentConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.MonitoringComponentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MonitoringComponentConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace MonitoringComponentConfig { + + /** Component enum. */ + enum Component { + COMPONENT_UNSPECIFIED = 0, + SYSTEM_COMPONENTS = 1 + } + } + } + } + + /** Namespace api. */ + namespace api { + + /** Properties of a Http. */ + interface IHttp { + + /** Http rules */ + rules?: (google.api.IHttpRule[]|null); + + /** Http fullyDecodeReservedExpansion */ + fullyDecodeReservedExpansion?: (boolean|null); + } + + /** Represents a Http. */ + class Http implements IHttp { + + /** + * Constructs a new Http. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttp); + + /** Http rules. */ + public rules: google.api.IHttpRule[]; + + /** Http fullyDecodeReservedExpansion. */ + public fullyDecodeReservedExpansion: boolean; + + /** + * Creates a new Http instance using the specified properties. + * @param [properties] Properties to set + * @returns Http instance + */ + public static create(properties?: google.api.IHttp): google.api.Http; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @param message Http message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Http message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Http + * @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.api.Http; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Http + * @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.api.Http; + + /** + * Verifies a Http 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 Http message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Http + */ + public static fromObject(object: { [k: string]: any }): google.api.Http; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @param message Http + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Http to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a HttpRule. */ + interface IHttpRule { + + /** HttpRule selector */ + selector?: (string|null); + + /** HttpRule get */ + get?: (string|null); + + /** HttpRule put */ + put?: (string|null); + + /** HttpRule post */ + post?: (string|null); + + /** HttpRule delete */ + "delete"?: (string|null); + + /** HttpRule patch */ + patch?: (string|null); + + /** HttpRule custom */ + custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body */ + body?: (string|null); + + /** HttpRule responseBody */ + responseBody?: (string|null); + + /** HttpRule additionalBindings */ + additionalBindings?: (google.api.IHttpRule[]|null); + } + + /** Represents a HttpRule. */ + class HttpRule implements IHttpRule { + + /** + * Constructs a new HttpRule. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IHttpRule); + + /** HttpRule selector. */ + public selector: string; + + /** HttpRule get. */ + public get?: (string|null); + + /** HttpRule put. */ + public put?: (string|null); + + /** HttpRule post. */ + public post?: (string|null); + + /** HttpRule delete. */ + public delete?: (string|null); + + /** HttpRule patch. */ + public patch?: (string|null); + + /** HttpRule custom. */ + public custom?: (google.api.ICustomHttpPattern|null); + + /** HttpRule body. */ + public body: string; + + /** HttpRule responseBody. */ + public responseBody: string; + + /** HttpRule additionalBindings. */ + public additionalBindings: google.api.IHttpRule[]; + + /** HttpRule pattern. */ + public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + + /** + * Creates a new HttpRule instance using the specified properties. + * @param [properties] Properties to set + * @returns HttpRule instance + */ + public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @param message HttpRule message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns HttpRule + * @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.api.HttpRule; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns HttpRule + * @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.api.HttpRule; + + /** + * Verifies a HttpRule 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 HttpRule message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns HttpRule + */ + public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @param message HttpRule + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this HttpRule to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CustomHttpPattern. */ + interface ICustomHttpPattern { + + /** CustomHttpPattern kind */ + kind?: (string|null); + + /** CustomHttpPattern path */ + path?: (string|null); + } + + /** Represents a CustomHttpPattern. */ + class CustomHttpPattern implements ICustomHttpPattern { + + /** + * Constructs a new CustomHttpPattern. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.ICustomHttpPattern); + + /** CustomHttpPattern kind. */ + public kind: string; + + /** CustomHttpPattern path. */ + public path: string; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @param [properties] Properties to set + * @returns CustomHttpPattern instance + */ + public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @param message CustomHttpPattern message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CustomHttpPattern + * @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.api.CustomHttpPattern; + + /** + * Verifies a CustomHttpPattern 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 CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CustomHttpPattern + */ + public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @param message CustomHttpPattern + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CustomHttpPattern to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** FieldBehavior enum. */ + enum FieldBehavior { + FIELD_BEHAVIOR_UNSPECIFIED = 0, + OPTIONAL = 1, + REQUIRED = 2, + OUTPUT_ONLY = 3, + INPUT_ONLY = 4, + IMMUTABLE = 5, + UNORDERED_LIST = 6, + NON_EMPTY_DEFAULT = 7 + } + + /** Properties of a ResourceDescriptor. */ + interface IResourceDescriptor { + + /** ResourceDescriptor type */ + type?: (string|null); + + /** ResourceDescriptor pattern */ + pattern?: (string[]|null); + + /** ResourceDescriptor nameField */ + nameField?: (string|null); + + /** ResourceDescriptor history */ + history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null); + + /** ResourceDescriptor plural */ + plural?: (string|null); + + /** ResourceDescriptor singular */ + singular?: (string|null); + + /** ResourceDescriptor style */ + style?: (google.api.ResourceDescriptor.Style[]|null); + } + + /** Represents a ResourceDescriptor. */ + class ResourceDescriptor implements IResourceDescriptor { + + /** + * Constructs a new ResourceDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceDescriptor); + + /** ResourceDescriptor type. */ + public type: string; + + /** ResourceDescriptor pattern. */ + public pattern: string[]; + + /** ResourceDescriptor nameField. */ + public nameField: string; + + /** ResourceDescriptor history. */ + public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History); + + /** ResourceDescriptor plural. */ + public plural: string; + + /** ResourceDescriptor singular. */ + public singular: string; + + /** ResourceDescriptor style. */ + public style: google.api.ResourceDescriptor.Style[]; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceDescriptor instance + */ + public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @param message ResourceDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceDescriptor + * @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.api.ResourceDescriptor; + + /** + * Verifies a ResourceDescriptor 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 ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @param message ResourceDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ResourceDescriptor { + + /** History enum. */ + enum History { + HISTORY_UNSPECIFIED = 0, + ORIGINALLY_SINGLE_PATTERN = 1, + FUTURE_MULTI_PATTERN = 2 + } + + /** Style enum. */ + enum Style { + STYLE_UNSPECIFIED = 0, + DECLARATIVE_FRIENDLY = 1 + } + } + + /** Properties of a ResourceReference. */ + interface IResourceReference { + + /** ResourceReference type */ + type?: (string|null); + + /** ResourceReference childType */ + childType?: (string|null); + } + + /** Represents a ResourceReference. */ + class ResourceReference implements IResourceReference { + + /** + * Constructs a new ResourceReference. + * @param [properties] Properties to set + */ + constructor(properties?: google.api.IResourceReference); + + /** ResourceReference type. */ + public type: string; + + /** ResourceReference childType. */ + public childType: string; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceReference instance + */ + public static create(properties?: google.api.IResourceReference): google.api.ResourceReference; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @param message ResourceReference message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceReference + * @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.api.ResourceReference; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceReference + * @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.api.ResourceReference; + + /** + * Verifies a ResourceReference 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 ResourceReference message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceReference + */ + public static fromObject(object: { [k: string]: any }): google.api.ResourceReference; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @param message ResourceReference + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceReference to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Namespace protobuf. */ + namespace protobuf { + + /** Properties of a FileDescriptorSet. */ + interface IFileDescriptorSet { + + /** FileDescriptorSet file */ + file?: (google.protobuf.IFileDescriptorProto[]|null); + } + + /** Represents a FileDescriptorSet. */ + class FileDescriptorSet implements IFileDescriptorSet { + + /** + * Constructs a new FileDescriptorSet. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorSet); + + /** FileDescriptorSet file. */ + public file: google.protobuf.IFileDescriptorProto[]; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorSet instance + */ + public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @param message FileDescriptorSet message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorSet + * @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.protobuf.FileDescriptorSet; + + /** + * Verifies a FileDescriptorSet 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorSet + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @param message FileDescriptorSet + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorSet to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileDescriptorProto. */ + interface IFileDescriptorProto { - /** HttpRule custom */ - custom?: (google.api.ICustomHttpPattern|null); + /** FileDescriptorProto name */ + name?: (string|null); + + /** FileDescriptorProto package */ + "package"?: (string|null); + + /** FileDescriptorProto dependency */ + dependency?: (string[]|null); + + /** FileDescriptorProto publicDependency */ + publicDependency?: (number[]|null); + + /** FileDescriptorProto weakDependency */ + weakDependency?: (number[]|null); + + /** FileDescriptorProto messageType */ + messageType?: (google.protobuf.IDescriptorProto[]|null); + + /** FileDescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** FileDescriptorProto service */ + service?: (google.protobuf.IServiceDescriptorProto[]|null); + + /** FileDescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** FileDescriptorProto options */ + options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo */ + sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax */ + syntax?: (string|null); + } + + /** Represents a FileDescriptorProto. */ + class FileDescriptorProto implements IFileDescriptorProto { + + /** + * Constructs a new FileDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IFileDescriptorProto); + + /** FileDescriptorProto name. */ + public name: string; + + /** FileDescriptorProto package. */ + public package: string; + + /** FileDescriptorProto dependency. */ + public dependency: string[]; + + /** FileDescriptorProto publicDependency. */ + public publicDependency: number[]; + + /** FileDescriptorProto weakDependency. */ + public weakDependency: number[]; + + /** FileDescriptorProto messageType. */ + public messageType: google.protobuf.IDescriptorProto[]; + + /** FileDescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** FileDescriptorProto service. */ + public service: google.protobuf.IServiceDescriptorProto[]; + + /** FileDescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** FileDescriptorProto options. */ + public options?: (google.protobuf.IFileOptions|null); + + /** FileDescriptorProto sourceCodeInfo. */ + public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + + /** FileDescriptorProto syntax. */ + public syntax: string; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns FileDescriptorProto instance + */ + public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @param message FileDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FileDescriptorProto + * @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.protobuf.FileDescriptorProto; + + /** + * Verifies a FileDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FileDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @param message FileDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FileDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DescriptorProto. */ + interface IDescriptorProto { + + /** DescriptorProto name */ + name?: (string|null); + + /** DescriptorProto field */ + field?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto extension */ + extension?: (google.protobuf.IFieldDescriptorProto[]|null); + + /** DescriptorProto nestedType */ + nestedType?: (google.protobuf.IDescriptorProto[]|null); + + /** DescriptorProto enumType */ + enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + + /** DescriptorProto extensionRange */ + extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); + + /** DescriptorProto oneofDecl */ + oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + + /** DescriptorProto options */ + options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange */ + reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + + /** DescriptorProto reservedName */ + reservedName?: (string[]|null); + } + + /** Represents a DescriptorProto. */ + class DescriptorProto implements IDescriptorProto { + + /** + * Constructs a new DescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDescriptorProto); + + /** DescriptorProto name. */ + public name: string; + + /** DescriptorProto field. */ + public field: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto extension. */ + public extension: google.protobuf.IFieldDescriptorProto[]; + + /** DescriptorProto nestedType. */ + public nestedType: google.protobuf.IDescriptorProto[]; + + /** DescriptorProto enumType. */ + public enumType: google.protobuf.IEnumDescriptorProto[]; + + /** DescriptorProto extensionRange. */ + public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; + + /** DescriptorProto oneofDecl. */ + public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + + /** DescriptorProto options. */ + public options?: (google.protobuf.IMessageOptions|null); + + /** DescriptorProto reservedRange. */ + public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + + /** DescriptorProto reservedName. */ + public reservedName: string[]; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns DescriptorProto instance + */ + public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @param message DescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; - /** HttpRule body */ - body?: (string|null); + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DescriptorProto + * @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.protobuf.DescriptorProto; - /** HttpRule responseBody */ - responseBody?: (string|null); + /** + * Verifies a DescriptorProto 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); - /** HttpRule additionalBindings */ - additionalBindings?: (google.api.IHttpRule[]|null); - } + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @param message DescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Constructs a new HttpRule. - * @param [properties] Properties to set + * Converts this DescriptorProto to JSON. + * @returns JSON object */ - constructor(properties?: google.api.IHttpRule); + public toJSON(): { [k: string]: any }; + } - /** HttpRule selector. */ - public selector: string; + namespace DescriptorProto { - /** HttpRule get. */ - public get?: (string|null); + /** Properties of an ExtensionRange. */ + interface IExtensionRange { - /** HttpRule put. */ - public put?: (string|null); + /** ExtensionRange start */ + start?: (number|null); - /** HttpRule post. */ - public post?: (string|null); + /** ExtensionRange end */ + end?: (number|null); - /** HttpRule delete. */ - public delete?: (string|null); + /** ExtensionRange options */ + options?: (google.protobuf.IExtensionRangeOptions|null); + } - /** HttpRule patch. */ - public patch?: (string|null); + /** Represents an ExtensionRange. */ + class ExtensionRange implements IExtensionRange { + + /** + * Constructs a new ExtensionRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + + /** ExtensionRange start. */ + public start: number; + + /** ExtensionRange end. */ + public end: number; + + /** ExtensionRange options. */ + public options?: (google.protobuf.IExtensionRangeOptions|null); + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ExtensionRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @param message ExtensionRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExtensionRange + * @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.protobuf.DescriptorProto.ExtensionRange; + + /** + * Verifies an ExtensionRange 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 ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExtensionRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @param message ExtensionRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExtensionRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ReservedRange. */ + interface IReservedRange { + + /** ReservedRange start */ + start?: (number|null); + + /** ReservedRange end */ + end?: (number|null); + } + + /** Represents a ReservedRange. */ + class ReservedRange implements IReservedRange { + + /** + * Constructs a new ReservedRange. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + + /** ReservedRange start. */ + public start: number; + + /** ReservedRange end. */ + public end: number; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @param [properties] Properties to set + * @returns ReservedRange instance + */ + public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @param message ReservedRange message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReservedRange + * @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.protobuf.DescriptorProto.ReservedRange; + + /** + * Verifies a ReservedRange 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 ReservedRange message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReservedRange + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @param message ReservedRange + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ReservedRange to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** HttpRule custom. */ - public custom?: (google.api.ICustomHttpPattern|null); + /** Properties of an ExtensionRangeOptions. */ + interface IExtensionRangeOptions { - /** HttpRule body. */ - public body: string; + /** ExtensionRangeOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** HttpRule responseBody. */ - public responseBody: string; + /** Represents an ExtensionRangeOptions. */ + class ExtensionRangeOptions implements IExtensionRangeOptions { - /** HttpRule additionalBindings. */ - public additionalBindings: google.api.IHttpRule[]; + /** + * Constructs a new ExtensionRangeOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IExtensionRangeOptions); - /** HttpRule pattern. */ - public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); + /** ExtensionRangeOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new HttpRule instance using the specified properties. + * Creates a new ExtensionRangeOptions instance using the specified properties. * @param [properties] Properties to set - * @returns HttpRule instance + * @returns ExtensionRangeOptions instance */ - public static create(properties?: google.api.IHttpRule): google.api.HttpRule; + public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @param message ExtensionRangeOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HttpRule message from the specified reader or buffer. + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HttpRule + * @returns ExtensionRangeOptions * @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.api.HttpRule; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions; /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HttpRule + * @returns ExtensionRangeOptions * @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.api.HttpRule; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions; /** - * Verifies a HttpRule message. + * Verifies an ExtensionRangeOptions 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 HttpRule message from a plain object. Also converts values to their respective internal types. + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HttpRule + * @returns ExtensionRangeOptions */ - public static fromObject(object: { [k: string]: any }): google.api.HttpRule; + public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @param message HttpRule + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @param message ExtensionRangeOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HttpRule to JSON. + * Converts this ExtensionRangeOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CustomHttpPattern. */ - interface ICustomHttpPattern { + /** Properties of a FieldDescriptorProto. */ + interface IFieldDescriptorProto { - /** CustomHttpPattern kind */ - kind?: (string|null); + /** FieldDescriptorProto name */ + name?: (string|null); - /** CustomHttpPattern path */ - path?: (string|null); - } + /** FieldDescriptorProto number */ + number?: (number|null); - /** Represents a CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { + /** FieldDescriptorProto label */ + label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); - /** - * Constructs a new CustomHttpPattern. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.ICustomHttpPattern); + /** FieldDescriptorProto type */ + type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); - /** CustomHttpPattern kind. */ - public kind: string; + /** FieldDescriptorProto typeName */ + typeName?: (string|null); - /** CustomHttpPattern path. */ - public path: string; + /** FieldDescriptorProto extendee */ + extendee?: (string|null); - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @param [properties] Properties to set - * @returns CustomHttpPattern instance - */ - public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; + /** FieldDescriptorProto defaultValue */ + defaultValue?: (string|null); - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldDescriptorProto oneofIndex */ + oneofIndex?: (number|null); - /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; + /** FieldDescriptorProto jsonName */ + jsonName?: (string|null); - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CustomHttpPattern - * @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.api.CustomHttpPattern; + /** FieldDescriptorProto options */ + options?: (google.protobuf.IFieldOptions|null); - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CustomHttpPattern - * @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.api.CustomHttpPattern; + /** FieldDescriptorProto proto3Optional */ + proto3Optional?: (boolean|null); + } - /** - * Verifies a CustomHttpPattern 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); + /** Represents a FieldDescriptorProto. */ + class FieldDescriptorProto implements IFieldDescriptorProto { /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CustomHttpPattern + * Constructs a new FieldDescriptorProto. + * @param [properties] Properties to set */ - public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern; + constructor(properties?: google.protobuf.IFieldDescriptorProto); - /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. - * @param message CustomHttpPattern - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** FieldDescriptorProto name. */ + public name: string; - /** - * Converts this CustomHttpPattern to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** FieldDescriptorProto number. */ + public number: number; - /** FieldBehavior enum. */ - enum FieldBehavior { - FIELD_BEHAVIOR_UNSPECIFIED = 0, - OPTIONAL = 1, - REQUIRED = 2, - OUTPUT_ONLY = 3, - INPUT_ONLY = 4, - IMMUTABLE = 5, - UNORDERED_LIST = 6, - NON_EMPTY_DEFAULT = 7 - } - } + /** FieldDescriptorProto label. */ + public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); - /** Namespace protobuf. */ - namespace protobuf { + /** FieldDescriptorProto type. */ + public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); - /** Properties of a FileDescriptorSet. */ - interface IFileDescriptorSet { + /** FieldDescriptorProto typeName. */ + public typeName: string; - /** FileDescriptorSet file */ - file?: (google.protobuf.IFileDescriptorProto[]|null); - } + /** FieldDescriptorProto extendee. */ + public extendee: string; - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { + /** FieldDescriptorProto defaultValue. */ + public defaultValue: string; - /** - * Constructs a new FileDescriptorSet. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorSet); + /** FieldDescriptorProto oneofIndex. */ + public oneofIndex: number; - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; + /** FieldDescriptorProto jsonName. */ + public jsonName: string; + + /** FieldDescriptorProto options. */ + public options?: (google.protobuf.IFieldOptions|null); + + /** FieldDescriptorProto proto3Optional. */ + public proto3Optional: boolean; /** - * Creates a new FileDescriptorSet instance using the specified properties. + * Creates a new FieldDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns FileDescriptorSet instance + * @returns FieldDescriptorProto instance */ - public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; + public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @param message FieldDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. + * Decodes a FieldDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileDescriptorSet + * @returns FieldDescriptorProto * @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.protobuf.FileDescriptorSet; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileDescriptorSet + * @returns FieldDescriptorProto * @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.protobuf.FileDescriptorSet; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto; /** - * Verifies a FileDescriptorSet message. + * Verifies a FieldDescriptorProto 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 FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileDescriptorSet + * @returns FieldDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. - * @param message FileDescriptorSet + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @param message FieldDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileDescriptorSet to JSON. + * Converts this FieldDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FileDescriptorProto. */ - interface IFileDescriptorProto { - - /** FileDescriptorProto name */ - name?: (string|null); - - /** FileDescriptorProto package */ - "package"?: (string|null); - - /** FileDescriptorProto dependency */ - dependency?: (string[]|null); - - /** FileDescriptorProto publicDependency */ - publicDependency?: (number[]|null); - - /** FileDescriptorProto weakDependency */ - weakDependency?: (number[]|null); - - /** FileDescriptorProto messageType */ - messageType?: (google.protobuf.IDescriptorProto[]|null); - - /** FileDescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); + namespace FieldDescriptorProto { - /** FileDescriptorProto service */ - service?: (google.protobuf.IServiceDescriptorProto[]|null); + /** Type enum. */ + enum Type { + TYPE_DOUBLE = 1, + TYPE_FLOAT = 2, + TYPE_INT64 = 3, + TYPE_UINT64 = 4, + TYPE_INT32 = 5, + TYPE_FIXED64 = 6, + TYPE_FIXED32 = 7, + TYPE_BOOL = 8, + TYPE_STRING = 9, + TYPE_GROUP = 10, + TYPE_MESSAGE = 11, + TYPE_BYTES = 12, + TYPE_UINT32 = 13, + TYPE_ENUM = 14, + TYPE_SFIXED32 = 15, + TYPE_SFIXED64 = 16, + TYPE_SINT32 = 17, + TYPE_SINT64 = 18 + } - /** FileDescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); + /** Label enum. */ + enum Label { + LABEL_OPTIONAL = 1, + LABEL_REQUIRED = 2, + LABEL_REPEATED = 3 + } + } - /** FileDescriptorProto options */ - options?: (google.protobuf.IFileOptions|null); + /** Properties of an OneofDescriptorProto. */ + interface IOneofDescriptorProto { - /** FileDescriptorProto sourceCodeInfo */ - sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); + /** OneofDescriptorProto name */ + name?: (string|null); - /** FileDescriptorProto syntax */ - syntax?: (string|null); + /** OneofDescriptorProto options */ + options?: (google.protobuf.IOneofOptions|null); } - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { + /** Represents an OneofDescriptorProto. */ + class OneofDescriptorProto implements IOneofDescriptorProto { /** - * Constructs a new FileDescriptorProto. + * Constructs a new OneofDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFileDescriptorProto); + constructor(properties?: google.protobuf.IOneofDescriptorProto); - /** FileDescriptorProto name. */ + /** OneofDescriptorProto name. */ public name: string; - /** FileDescriptorProto package. */ - public package: string; - - /** FileDescriptorProto dependency. */ - public dependency: string[]; - - /** FileDescriptorProto publicDependency. */ - public publicDependency: number[]; - - /** FileDescriptorProto weakDependency. */ - public weakDependency: number[]; - - /** FileDescriptorProto messageType. */ - public messageType: google.protobuf.IDescriptorProto[]; - - /** FileDescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** FileDescriptorProto service. */ - public service: google.protobuf.IServiceDescriptorProto[]; - - /** FileDescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** FileDescriptorProto options. */ - public options?: (google.protobuf.IFileOptions|null); - - /** FileDescriptorProto sourceCodeInfo. */ - public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - - /** FileDescriptorProto syntax. */ - public syntax: string; + /** OneofDescriptorProto options. */ + public options?: (google.protobuf.IOneofOptions|null); /** - * Creates a new FileDescriptorProto instance using the specified properties. + * Creates a new OneofDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns FileDescriptorProto instance + * @returns OneofDescriptorProto instance */ - public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; + public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @param message OneofDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. + * Decodes an OneofDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileDescriptorProto + * @returns OneofDescriptorProto * @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.protobuf.FileDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileDescriptorProto + * @returns OneofDescriptorProto * @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.protobuf.FileDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto; /** - * Verifies a FileDescriptorProto message. + * Verifies an OneofDescriptorProto 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 FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileDescriptorProto + * @returns OneofDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. - * @param message FileDescriptorProto + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @param message OneofDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileDescriptorProto to JSON. + * Converts this OneofDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DescriptorProto. */ - interface IDescriptorProto { + /** Properties of an EnumDescriptorProto. */ + interface IEnumDescriptorProto { - /** DescriptorProto name */ + /** EnumDescriptorProto name */ name?: (string|null); - /** DescriptorProto field */ - field?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** DescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** DescriptorProto nestedType */ - nestedType?: (google.protobuf.IDescriptorProto[]|null); - - /** DescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - - /** DescriptorProto extensionRange */ - extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); - - /** DescriptorProto oneofDecl */ - oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); + /** EnumDescriptorProto value */ + value?: (google.protobuf.IEnumValueDescriptorProto[]|null); - /** DescriptorProto options */ - options?: (google.protobuf.IMessageOptions|null); + /** EnumDescriptorProto options */ + options?: (google.protobuf.IEnumOptions|null); - /** DescriptorProto reservedRange */ - reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); + /** EnumDescriptorProto reservedRange */ + reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); - /** DescriptorProto reservedName */ + /** EnumDescriptorProto reservedName */ reservedName?: (string[]|null); } - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { + /** Represents an EnumDescriptorProto. */ + class EnumDescriptorProto implements IEnumDescriptorProto { /** - * Constructs a new DescriptorProto. + * Constructs a new EnumDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IDescriptorProto); + constructor(properties?: google.protobuf.IEnumDescriptorProto); - /** DescriptorProto name. */ + /** EnumDescriptorProto name. */ public name: string; - /** DescriptorProto field. */ - public field: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto nestedType. */ - public nestedType: google.protobuf.IDescriptorProto[]; - - /** DescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** DescriptorProto extensionRange. */ - public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; - - /** DescriptorProto oneofDecl. */ - public oneofDecl: google.protobuf.IOneofDescriptorProto[]; + /** EnumDescriptorProto value. */ + public value: google.protobuf.IEnumValueDescriptorProto[]; - /** DescriptorProto options. */ - public options?: (google.protobuf.IMessageOptions|null); + /** EnumDescriptorProto options. */ + public options?: (google.protobuf.IEnumOptions|null); - /** DescriptorProto reservedRange. */ - public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; + /** EnumDescriptorProto reservedRange. */ + public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; - /** DescriptorProto reservedName. */ + /** EnumDescriptorProto reservedName. */ public reservedName: string[]; /** - * Creates a new DescriptorProto instance using the specified properties. + * Creates a new EnumDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns DescriptorProto instance + * @returns EnumDescriptorProto instance */ - public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; + public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * @param message EnumDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DescriptorProto message from the specified reader or buffer. + * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DescriptorProto + * @returns EnumDescriptorProto * @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.protobuf.DescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto; /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DescriptorProto + * @returns EnumDescriptorProto * @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.protobuf.DescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto; /** - * Verifies a DescriptorProto message. + * Verifies an EnumDescriptorProto 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 DescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DescriptorProto + * @returns EnumDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @param message DescriptorProto + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @param message EnumDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DescriptorProto to JSON. + * Converts this EnumDescriptorProto to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace DescriptorProto { + namespace EnumDescriptorProto { - /** Properties of an ExtensionRange. */ - interface IExtensionRange { + /** Properties of an EnumReservedRange. */ + interface IEnumReservedRange { - /** ExtensionRange start */ + /** EnumReservedRange start */ start?: (number|null); - /** ExtensionRange end */ + /** EnumReservedRange end */ end?: (number|null); - - /** ExtensionRange options */ - options?: (google.protobuf.IExtensionRangeOptions|null); } - /** Represents an ExtensionRange. */ - class ExtensionRange implements IExtensionRange { + /** Represents an EnumReservedRange. */ + class EnumReservedRange implements IEnumReservedRange { /** - * Constructs a new ExtensionRange. + * Constructs a new EnumReservedRange. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); + constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); - /** ExtensionRange start. */ + /** EnumReservedRange start. */ public start: number; - /** ExtensionRange end. */ + /** EnumReservedRange end. */ public end: number; - /** ExtensionRange options. */ - public options?: (google.protobuf.IExtensionRangeOptions|null); - /** - * Creates a new ExtensionRange instance using the specified properties. + * Creates a new EnumReservedRange instance using the specified properties. * @param [properties] Properties to set - * @returns ExtensionRange instance + * @returns EnumReservedRange instance */ - public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; + public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @param message EnumReservedRange message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExtensionRange message from the specified reader or buffer. + * Decodes an EnumReservedRange message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExtensionRange + * @returns EnumReservedRange * @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.protobuf.DescriptorProto.ExtensionRange; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange; /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExtensionRange + * @returns EnumReservedRange * @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.protobuf.DescriptorProto.ExtensionRange; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange; /** - * Verifies an ExtensionRange message. + * Verifies an EnumReservedRange 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 ExtensionRange message from a plain object. Also converts values to their respective internal types. + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExtensionRange + * @returns EnumReservedRange */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. - * @param message ExtensionRange + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @param message EnumReservedRange * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExtensionRange to JSON. + * Converts this EnumReservedRange to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a ReservedRange. */ - interface IReservedRange { + /** Properties of an EnumValueDescriptorProto. */ + interface IEnumValueDescriptorProto { - /** ReservedRange start */ - start?: (number|null); + /** EnumValueDescriptorProto name */ + name?: (string|null); - /** ReservedRange end */ - end?: (number|null); - } + /** EnumValueDescriptorProto number */ + number?: (number|null); + + /** EnumValueDescriptorProto options */ + options?: (google.protobuf.IEnumValueOptions|null); + } + + /** Represents an EnumValueDescriptorProto. */ + class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + + /** + * Constructs a new EnumValueDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + + /** EnumValueDescriptorProto name. */ + public name: string; + + /** EnumValueDescriptorProto number. */ + public number: number; + + /** EnumValueDescriptorProto options. */ + public options?: (google.protobuf.IEnumValueOptions|null); + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns EnumValueDescriptorProto instance + */ + public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + + /** + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * @param message EnumValueDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; + + /** + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EnumValueDescriptorProto + * @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.protobuf.EnumValueDescriptorProto; + + /** + * Verifies an EnumValueDescriptorProto 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 EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EnumValueDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + + /** + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * @param message EnumValueDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EnumValueDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ServiceDescriptorProto. */ + interface IServiceDescriptorProto { + + /** ServiceDescriptorProto name */ + name?: (string|null); + + /** ServiceDescriptorProto method */ + method?: (google.protobuf.IMethodDescriptorProto[]|null); + + /** ServiceDescriptorProto options */ + options?: (google.protobuf.IServiceOptions|null); + } + + /** Represents a ServiceDescriptorProto. */ + class ServiceDescriptorProto implements IServiceDescriptorProto { + + /** + * Constructs a new ServiceDescriptorProto. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IServiceDescriptorProto); + + /** ServiceDescriptorProto name. */ + public name: string; + + /** ServiceDescriptorProto method. */ + public method: google.protobuf.IMethodDescriptorProto[]; + + /** ServiceDescriptorProto options. */ + public options?: (google.protobuf.IServiceOptions|null); + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. + * @param [properties] Properties to set + * @returns ServiceDescriptorProto instance + */ + public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; - /** Represents a ReservedRange. */ - class ReservedRange implements IReservedRange { + /** + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new ReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); + /** + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * @param message ServiceDescriptorProto message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - /** ReservedRange start. */ - public start: number; + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; - /** ReservedRange end. */ - public end: number; + /** + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ServiceDescriptorProto + * @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.protobuf.ServiceDescriptorProto; - /** - * Creates a new ReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ReservedRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; + /** + * Verifies a ServiceDescriptorProto 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); - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ServiceDescriptorProto + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; - /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * @param message ServiceDescriptorProto + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReservedRange - * @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.protobuf.DescriptorProto.ReservedRange; + /** + * Converts this ServiceDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ReservedRange - * @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.protobuf.DescriptorProto.ReservedRange; + /** Properties of a MethodDescriptorProto. */ + interface IMethodDescriptorProto { - /** - * Verifies a ReservedRange 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); + /** MethodDescriptorProto name */ + name?: (string|null); - /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ReservedRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange; + /** MethodDescriptorProto inputType */ + inputType?: (string|null); - /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. - * @param message ReservedRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** MethodDescriptorProto outputType */ + outputType?: (string|null); - /** - * Converts this ReservedRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** MethodDescriptorProto options */ + options?: (google.protobuf.IMethodOptions|null); - /** Properties of an ExtensionRangeOptions. */ - interface IExtensionRangeOptions { + /** MethodDescriptorProto clientStreaming */ + clientStreaming?: (boolean|null); - /** ExtensionRangeOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** MethodDescriptorProto serverStreaming */ + serverStreaming?: (boolean|null); } - /** Represents an ExtensionRangeOptions. */ - class ExtensionRangeOptions implements IExtensionRangeOptions { + /** Represents a MethodDescriptorProto. */ + class MethodDescriptorProto implements IMethodDescriptorProto { /** - * Constructs a new ExtensionRangeOptions. + * Constructs a new MethodDescriptorProto. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IExtensionRangeOptions); + constructor(properties?: google.protobuf.IMethodDescriptorProto); - /** ExtensionRangeOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** MethodDescriptorProto name. */ + public name: string; + + /** MethodDescriptorProto inputType. */ + public inputType: string; + + /** MethodDescriptorProto outputType. */ + public outputType: string; + + /** MethodDescriptorProto options. */ + public options?: (google.protobuf.IMethodOptions|null); + + /** MethodDescriptorProto clientStreaming. */ + public clientStreaming: boolean; + + /** MethodDescriptorProto serverStreaming. */ + public serverStreaming: boolean; /** - * Creates a new ExtensionRangeOptions instance using the specified properties. + * Creates a new MethodDescriptorProto instance using the specified properties. * @param [properties] Properties to set - * @returns ExtensionRangeOptions instance + * @returns MethodDescriptorProto instance */ - public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions; + public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @param message ExtensionRangeOptions message or plain object to encode + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. - * @param message ExtensionRangeOptions message or plain object to encode + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * @param message MethodDescriptorProto message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExtensionRangeOptions + * @returns MethodDescriptorProto * @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.protobuf.ExtensionRangeOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExtensionRangeOptions + * @returns MethodDescriptorProto * @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.protobuf.ExtensionRangeOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto; /** - * Verifies an ExtensionRangeOptions message. + * Verifies a MethodDescriptorProto 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 ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExtensionRangeOptions + * @returns MethodDescriptorProto */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. - * @param message ExtensionRangeOptions + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * @param message MethodDescriptorProto * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MethodDescriptorProto to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a FileOptions. */ + interface IFileOptions { + + /** FileOptions javaPackage */ + javaPackage?: (string|null); + + /** FileOptions javaOuterClassname */ + javaOuterClassname?: (string|null); + + /** FileOptions javaMultipleFiles */ + javaMultipleFiles?: (boolean|null); + + /** FileOptions javaGenerateEqualsAndHash */ + javaGenerateEqualsAndHash?: (boolean|null); + + /** FileOptions javaStringCheckUtf8 */ + javaStringCheckUtf8?: (boolean|null); + + /** FileOptions optimizeFor */ + optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); + + /** FileOptions goPackage */ + goPackage?: (string|null); + + /** FileOptions ccGenericServices */ + ccGenericServices?: (boolean|null); - /** - * Converts this ExtensionRangeOptions to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** FileOptions javaGenericServices */ + javaGenericServices?: (boolean|null); - /** Properties of a FieldDescriptorProto. */ - interface IFieldDescriptorProto { + /** FileOptions pyGenericServices */ + pyGenericServices?: (boolean|null); - /** FieldDescriptorProto name */ - name?: (string|null); + /** FileOptions phpGenericServices */ + phpGenericServices?: (boolean|null); - /** FieldDescriptorProto number */ - number?: (number|null); + /** FileOptions deprecated */ + deprecated?: (boolean|null); - /** FieldDescriptorProto label */ - label?: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label|null); + /** FileOptions ccEnableArenas */ + ccEnableArenas?: (boolean|null); - /** FieldDescriptorProto type */ - type?: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type|null); + /** FileOptions objcClassPrefix */ + objcClassPrefix?: (string|null); - /** FieldDescriptorProto typeName */ - typeName?: (string|null); + /** FileOptions csharpNamespace */ + csharpNamespace?: (string|null); - /** FieldDescriptorProto extendee */ - extendee?: (string|null); + /** FileOptions swiftPrefix */ + swiftPrefix?: (string|null); - /** FieldDescriptorProto defaultValue */ - defaultValue?: (string|null); + /** FileOptions phpClassPrefix */ + phpClassPrefix?: (string|null); - /** FieldDescriptorProto oneofIndex */ - oneofIndex?: (number|null); + /** FileOptions phpNamespace */ + phpNamespace?: (string|null); - /** FieldDescriptorProto jsonName */ - jsonName?: (string|null); + /** FileOptions phpMetadataNamespace */ + phpMetadataNamespace?: (string|null); - /** FieldDescriptorProto options */ - options?: (google.protobuf.IFieldOptions|null); + /** FileOptions rubyPackage */ + rubyPackage?: (string|null); - /** FieldDescriptorProto proto3Optional */ - proto3Optional?: (boolean|null); + /** FileOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FileOptions .google.api.resourceDefinition */ + ".google.api.resourceDefinition"?: (google.api.IResourceDescriptor[]|null); } - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { + /** Represents a FileOptions. */ + class FileOptions implements IFileOptions { /** - * Constructs a new FieldDescriptorProto. + * Constructs a new FileOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFieldDescriptorProto); + constructor(properties?: google.protobuf.IFileOptions); - /** FieldDescriptorProto name. */ - public name: string; + /** FileOptions javaPackage. */ + public javaPackage: string; - /** FieldDescriptorProto number. */ - public number: number; + /** FileOptions javaOuterClassname. */ + public javaOuterClassname: string; - /** FieldDescriptorProto label. */ - public label: (google.protobuf.FieldDescriptorProto.Label|keyof typeof google.protobuf.FieldDescriptorProto.Label); + /** FileOptions javaMultipleFiles. */ + public javaMultipleFiles: boolean; - /** FieldDescriptorProto type. */ - public type: (google.protobuf.FieldDescriptorProto.Type|keyof typeof google.protobuf.FieldDescriptorProto.Type); + /** FileOptions javaGenerateEqualsAndHash. */ + public javaGenerateEqualsAndHash: boolean; - /** FieldDescriptorProto typeName. */ - public typeName: string; + /** FileOptions javaStringCheckUtf8. */ + public javaStringCheckUtf8: boolean; - /** FieldDescriptorProto extendee. */ - public extendee: string; + /** FileOptions optimizeFor. */ + public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); - /** FieldDescriptorProto defaultValue. */ - public defaultValue: string; + /** FileOptions goPackage. */ + public goPackage: string; - /** FieldDescriptorProto oneofIndex. */ - public oneofIndex: number; + /** FileOptions ccGenericServices. */ + public ccGenericServices: boolean; - /** FieldDescriptorProto jsonName. */ - public jsonName: string; + /** FileOptions javaGenericServices. */ + public javaGenericServices: boolean; - /** FieldDescriptorProto options. */ - public options?: (google.protobuf.IFieldOptions|null); + /** FileOptions pyGenericServices. */ + public pyGenericServices: boolean; - /** FieldDescriptorProto proto3Optional. */ - public proto3Optional: boolean; + /** FileOptions phpGenericServices. */ + public phpGenericServices: boolean; + + /** FileOptions deprecated. */ + public deprecated: boolean; + + /** FileOptions ccEnableArenas. */ + public ccEnableArenas: boolean; + + /** FileOptions objcClassPrefix. */ + public objcClassPrefix: string; + + /** FileOptions csharpNamespace. */ + public csharpNamespace: string; + + /** FileOptions swiftPrefix. */ + public swiftPrefix: string; + + /** FileOptions phpClassPrefix. */ + public phpClassPrefix: string; + + /** FileOptions phpNamespace. */ + public phpNamespace: string; + + /** FileOptions phpMetadataNamespace. */ + public phpMetadataNamespace: string; + + /** FileOptions rubyPackage. */ + public rubyPackage: string; + + /** FileOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new FieldDescriptorProto instance using the specified properties. + * Creates a new FileOptions instance using the specified properties. * @param [properties] Properties to set - * @returns FieldDescriptorProto instance + * @returns FileOptions instance */ - public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; + public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * @param message FileOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * Decodes a FileOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FieldDescriptorProto + * @returns FileOptions * @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.protobuf.FieldDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FileOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FieldDescriptorProto + * @returns FileOptions * @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.protobuf.FieldDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions; /** - * Verifies a FieldDescriptorProto message. + * Verifies a FileOptions 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 FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FieldDescriptorProto + * @returns FileOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. - * @param message FieldDescriptorProto + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @param message FileOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldDescriptorProto to JSON. + * Converts this FileOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FieldDescriptorProto { - - /** Type enum. */ - enum Type { - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - TYPE_SINT32 = 17, - TYPE_SINT64 = 18 - } + namespace FileOptions { - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 + /** OptimizeMode enum. */ + enum OptimizeMode { + SPEED = 1, + CODE_SIZE = 2, + LITE_RUNTIME = 3 } } - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { + /** Properties of a MessageOptions. */ + interface IMessageOptions { - /** OneofDescriptorProto name */ - name?: (string|null); + /** MessageOptions messageSetWireFormat */ + messageSetWireFormat?: (boolean|null); - /** OneofDescriptorProto options */ - options?: (google.protobuf.IOneofOptions|null); + /** MessageOptions noStandardDescriptorAccessor */ + noStandardDescriptorAccessor?: (boolean|null); + + /** MessageOptions deprecated */ + deprecated?: (boolean|null); + + /** MessageOptions mapEntry */ + mapEntry?: (boolean|null); + + /** MessageOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** MessageOptions .google.api.resource */ + ".google.api.resource"?: (google.api.IResourceDescriptor|null); } - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { + /** Represents a MessageOptions. */ + class MessageOptions implements IMessageOptions { /** - * Constructs a new OneofDescriptorProto. + * Constructs a new MessageOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IOneofDescriptorProto); + constructor(properties?: google.protobuf.IMessageOptions); + + /** MessageOptions messageSetWireFormat. */ + public messageSetWireFormat: boolean; + + /** MessageOptions noStandardDescriptorAccessor. */ + public noStandardDescriptorAccessor: boolean; - /** OneofDescriptorProto name. */ - public name: string; + /** MessageOptions deprecated. */ + public deprecated: boolean; - /** OneofDescriptorProto options. */ - public options?: (google.protobuf.IOneofOptions|null); + /** MessageOptions mapEntry. */ + public mapEntry: boolean; + + /** MessageOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new OneofDescriptorProto instance using the specified properties. + * Creates a new MessageOptions instance using the specified properties. * @param [properties] Properties to set - * @returns OneofDescriptorProto instance + * @returns MessageOptions instance */ - public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; + public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @param message MessageOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * Decodes a MessageOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OneofDescriptorProto + * @returns MessageOptions * @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.protobuf.OneofDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OneofDescriptorProto + * @returns MessageOptions * @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.protobuf.OneofDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions; /** - * Verifies an OneofDescriptorProto message. + * Verifies a MessageOptions 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 OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OneofDescriptorProto + * @returns MessageOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. - * @param message OneofDescriptorProto + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @param message MessageOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OneofDescriptorProto to JSON. + * Converts this MessageOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumDescriptorProto. */ - interface IEnumDescriptorProto { + /** Properties of a FieldOptions. */ + interface IFieldOptions { - /** EnumDescriptorProto name */ - name?: (string|null); + /** FieldOptions ctype */ + ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); - /** EnumDescriptorProto value */ - value?: (google.protobuf.IEnumValueDescriptorProto[]|null); + /** FieldOptions packed */ + packed?: (boolean|null); - /** EnumDescriptorProto options */ - options?: (google.protobuf.IEnumOptions|null); + /** FieldOptions jstype */ + jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); - /** EnumDescriptorProto reservedRange */ - reservedRange?: (google.protobuf.EnumDescriptorProto.IEnumReservedRange[]|null); + /** FieldOptions lazy */ + lazy?: (boolean|null); - /** EnumDescriptorProto reservedName */ - reservedName?: (string[]|null); + /** FieldOptions deprecated */ + deprecated?: (boolean|null); + + /** FieldOptions weak */ + weak?: (boolean|null); + + /** FieldOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + + /** FieldOptions .google.api.fieldBehavior */ + ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); + + /** FieldOptions .google.api.resourceReference */ + ".google.api.resourceReference"?: (google.api.IResourceReference|null); } - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { + /** Represents a FieldOptions. */ + class FieldOptions implements IFieldOptions { /** - * Constructs a new EnumDescriptorProto. + * Constructs a new FieldOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumDescriptorProto); + constructor(properties?: google.protobuf.IFieldOptions); - /** EnumDescriptorProto name. */ - public name: string; + /** FieldOptions ctype. */ + public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; + /** FieldOptions packed. */ + public packed: boolean; - /** EnumDescriptorProto options. */ - public options?: (google.protobuf.IEnumOptions|null); + /** FieldOptions jstype. */ + public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); - /** EnumDescriptorProto reservedRange. */ - public reservedRange: google.protobuf.EnumDescriptorProto.IEnumReservedRange[]; + /** FieldOptions lazy. */ + public lazy: boolean; - /** EnumDescriptorProto reservedName. */ - public reservedName: string[]; + /** FieldOptions deprecated. */ + public deprecated: boolean; + + /** FieldOptions weak. */ + public weak: boolean; + + /** FieldOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new EnumDescriptorProto instance using the specified properties. + * Creates a new FieldOptions instance using the specified properties. * @param [properties] Properties to set - * @returns EnumDescriptorProto instance + * @returns FieldOptions instance */ - public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; + public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * @param message FieldOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * Decodes a FieldOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumDescriptorProto + * @returns FieldOptions * @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.protobuf.EnumDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumDescriptorProto + * @returns FieldOptions * @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.protobuf.EnumDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions; /** - * Verifies an EnumDescriptorProto message. + * Verifies a FieldOptions 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 EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumDescriptorProto + * @returns FieldOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. - * @param message EnumDescriptorProto + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * @param message FieldOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumDescriptorProto to JSON. + * Converts this FieldOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace EnumDescriptorProto { - - /** Properties of an EnumReservedRange. */ - interface IEnumReservedRange { + namespace FieldOptions { - /** EnumReservedRange start */ - start?: (number|null); + /** CType enum. */ + enum CType { + STRING = 0, + CORD = 1, + STRING_PIECE = 2 + } - /** EnumReservedRange end */ - end?: (number|null); + /** JSType enum. */ + enum JSType { + JS_NORMAL = 0, + JS_STRING = 1, + JS_NUMBER = 2 } + } - /** Represents an EnumReservedRange. */ - class EnumReservedRange implements IEnumReservedRange { + /** Properties of an OneofOptions. */ + interface IOneofOptions { - /** - * Constructs a new EnumReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange); + /** OneofOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + } - /** EnumReservedRange start. */ - public start: number; + /** Represents an OneofOptions. */ + class OneofOptions implements IOneofOptions { - /** EnumReservedRange end. */ - public end: number; + /** + * Constructs a new OneofOptions. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IOneofOptions); - /** - * Creates a new EnumReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumReservedRange instance - */ - public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange; + /** OneofOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @param message EnumReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new OneofOptions instance using the specified properties. + * @param [properties] Properties to set + * @returns OneofOptions instance + */ + public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; - /** - * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @param message EnumReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.IEnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * @param message OneofOptions message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes an EnumReservedRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumReservedRange - * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + /** + * Decodes an OneofOptions message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OneofOptions + * @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.protobuf.OneofOptions; - /** - * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EnumReservedRange - * @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.protobuf.EnumDescriptorProto.EnumReservedRange; + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OneofOptions + * @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.protobuf.OneofOptions; - /** - * Verifies an EnumReservedRange 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); + /** + * Verifies an OneofOptions 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 EnumReservedRange message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EnumReservedRange - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange; + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OneofOptions + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; - /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @param message EnumReservedRange - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * @param message OneofOptions + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this EnumReservedRange to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this OneofOptions to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { + /** Properties of an EnumOptions. */ + interface IEnumOptions { - /** EnumValueDescriptorProto name */ - name?: (string|null); + /** EnumOptions allowAlias */ + allowAlias?: (boolean|null); - /** EnumValueDescriptorProto number */ - number?: (number|null); + /** EnumOptions deprecated */ + deprecated?: (boolean|null); - /** EnumValueDescriptorProto options */ - options?: (google.protobuf.IEnumValueOptions|null); + /** EnumOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { + /** Represents an EnumOptions. */ + class EnumOptions implements IEnumOptions { /** - * Constructs a new EnumValueDescriptorProto. + * Constructs a new EnumOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumValueDescriptorProto); + constructor(properties?: google.protobuf.IEnumOptions); - /** EnumValueDescriptorProto name. */ - public name: string; + /** EnumOptions allowAlias. */ + public allowAlias: boolean; - /** EnumValueDescriptorProto number. */ - public number: number; + /** EnumOptions deprecated. */ + public deprecated: boolean; - /** EnumValueDescriptorProto options. */ - public options?: (google.protobuf.IEnumValueOptions|null); + /** EnumOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. + * Creates a new EnumOptions instance using the specified properties. * @param [properties] Properties to set - * @returns EnumValueDescriptorProto instance + * @returns EnumOptions instance */ - public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; + public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * @param message EnumOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * Decodes an EnumOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumValueDescriptorProto + * @returns EnumOptions * @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.protobuf.EnumValueDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumValueDescriptorProto + * @returns EnumOptions * @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.protobuf.EnumValueDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions; /** - * Verifies an EnumValueDescriptorProto message. + * Verifies an EnumOptions 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 EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumValueDescriptorProto + * @returns EnumOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. - * @param message EnumValueDescriptorProto + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * @param message EnumOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumValueDescriptorProto to JSON. + * Converts this EnumOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ServiceDescriptorProto. */ - interface IServiceDescriptorProto { - - /** ServiceDescriptorProto name */ - name?: (string|null); + /** Properties of an EnumValueOptions. */ + interface IEnumValueOptions { - /** ServiceDescriptorProto method */ - method?: (google.protobuf.IMethodDescriptorProto[]|null); + /** EnumValueOptions deprecated */ + deprecated?: (boolean|null); - /** ServiceDescriptorProto options */ - options?: (google.protobuf.IServiceOptions|null); + /** EnumValueOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); } - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { + /** Represents an EnumValueOptions. */ + class EnumValueOptions implements IEnumValueOptions { /** - * Constructs a new ServiceDescriptorProto. + * Constructs a new EnumValueOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IServiceDescriptorProto); - - /** ServiceDescriptorProto name. */ - public name: string; + constructor(properties?: google.protobuf.IEnumValueOptions); - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; + /** EnumValueOptions deprecated. */ + public deprecated: boolean; - /** ServiceDescriptorProto options. */ - public options?: (google.protobuf.IServiceOptions|null); + /** EnumValueOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new ServiceDescriptorProto instance using the specified properties. + * Creates a new EnumValueOptions instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceDescriptorProto instance + * @returns EnumValueOptions instance */ - public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; + public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * @param message EnumValueOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * Decodes an EnumValueOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceDescriptorProto + * @returns EnumValueOptions * @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.protobuf.ServiceDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceDescriptorProto + * @returns EnumValueOptions * @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.protobuf.ServiceDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions; /** - * Verifies a ServiceDescriptorProto message. + * Verifies an EnumValueOptions 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 ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceDescriptorProto + * @returns EnumValueOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. - * @param message ServiceDescriptorProto + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * @param message EnumValueOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceDescriptorProto to JSON. + * Converts this EnumValueOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MethodDescriptorProto. */ - interface IMethodDescriptorProto { - - /** MethodDescriptorProto name */ - name?: (string|null); - - /** MethodDescriptorProto inputType */ - inputType?: (string|null); + /** Properties of a ServiceOptions. */ + interface IServiceOptions { - /** MethodDescriptorProto outputType */ - outputType?: (string|null); + /** ServiceOptions deprecated */ + deprecated?: (boolean|null); - /** MethodDescriptorProto options */ - options?: (google.protobuf.IMethodOptions|null); + /** ServiceOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** MethodDescriptorProto clientStreaming */ - clientStreaming?: (boolean|null); + /** ServiceOptions .google.api.defaultHost */ + ".google.api.defaultHost"?: (string|null); - /** MethodDescriptorProto serverStreaming */ - serverStreaming?: (boolean|null); + /** ServiceOptions .google.api.oauthScopes */ + ".google.api.oauthScopes"?: (string|null); } - /** Represents a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { + /** Represents a ServiceOptions. */ + class ServiceOptions implements IServiceOptions { /** - * Constructs a new MethodDescriptorProto. + * Constructs a new ServiceOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMethodDescriptorProto); - - /** MethodDescriptorProto name. */ - public name: string; - - /** MethodDescriptorProto inputType. */ - public inputType: string; - - /** MethodDescriptorProto outputType. */ - public outputType: string; - - /** MethodDescriptorProto options. */ - public options?: (google.protobuf.IMethodOptions|null); + constructor(properties?: google.protobuf.IServiceOptions); - /** MethodDescriptorProto clientStreaming. */ - public clientStreaming: boolean; + /** ServiceOptions deprecated. */ + public deprecated: boolean; - /** MethodDescriptorProto serverStreaming. */ - public serverStreaming: boolean; + /** ServiceOptions uninterpretedOption. */ + public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new MethodDescriptorProto instance using the specified properties. + * Creates a new ServiceOptions instance using the specified properties. * @param [properties] Properties to set - * @returns MethodDescriptorProto instance + * @returns ServiceOptions instance */ - public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; + public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * @param message ServiceOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * Decodes a ServiceOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MethodDescriptorProto + * @returns ServiceOptions * @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.protobuf.MethodDescriptorProto; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MethodDescriptorProto + * @returns ServiceOptions * @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.protobuf.MethodDescriptorProto; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions; /** - * Verifies a MethodDescriptorProto message. + * Verifies a ServiceOptions 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 MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MethodDescriptorProto + * @returns ServiceOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto; + public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. - * @param message MethodDescriptorProto + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * @param message ServiceOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MethodDescriptorProto to JSON. + * Converts this ServiceOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FileOptions. */ - interface IFileOptions { - - /** FileOptions javaPackage */ - javaPackage?: (string|null); - - /** FileOptions javaOuterClassname */ - javaOuterClassname?: (string|null); - - /** FileOptions javaMultipleFiles */ - javaMultipleFiles?: (boolean|null); - - /** FileOptions javaGenerateEqualsAndHash */ - javaGenerateEqualsAndHash?: (boolean|null); - - /** FileOptions javaStringCheckUtf8 */ - javaStringCheckUtf8?: (boolean|null); - - /** FileOptions optimizeFor */ - optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode|null); - - /** FileOptions goPackage */ - goPackage?: (string|null); - - /** FileOptions ccGenericServices */ - ccGenericServices?: (boolean|null); - - /** FileOptions javaGenericServices */ - javaGenericServices?: (boolean|null); - - /** FileOptions pyGenericServices */ - pyGenericServices?: (boolean|null); - - /** FileOptions phpGenericServices */ - phpGenericServices?: (boolean|null); + /** Properties of a MethodOptions. */ + interface IMethodOptions { - /** FileOptions deprecated */ + /** MethodOptions deprecated */ deprecated?: (boolean|null); - /** FileOptions ccEnableArenas */ - ccEnableArenas?: (boolean|null); - - /** FileOptions objcClassPrefix */ - objcClassPrefix?: (string|null); - - /** FileOptions csharpNamespace */ - csharpNamespace?: (string|null); - - /** FileOptions swiftPrefix */ - swiftPrefix?: (string|null); - - /** FileOptions phpClassPrefix */ - phpClassPrefix?: (string|null); - - /** FileOptions phpNamespace */ - phpNamespace?: (string|null); + /** MethodOptions idempotencyLevel */ + idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); - /** FileOptions phpMetadataNamespace */ - phpMetadataNamespace?: (string|null); + /** MethodOptions uninterpretedOption */ + uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - /** FileOptions rubyPackage */ - rubyPackage?: (string|null); + /** MethodOptions .google.api.http */ + ".google.api.http"?: (google.api.IHttpRule|null); - /** FileOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** MethodOptions .google.api.methodSignature */ + ".google.api.methodSignature"?: (string[]|null); } - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { + /** Represents a MethodOptions. */ + class MethodOptions implements IMethodOptions { /** - * Constructs a new FileOptions. + * Constructs a new MethodOptions. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IFileOptions); - - /** FileOptions javaPackage. */ - public javaPackage: string; - - /** FileOptions javaOuterClassname. */ - public javaOuterClassname: string; - - /** FileOptions javaMultipleFiles. */ - public javaMultipleFiles: boolean; - - /** FileOptions javaGenerateEqualsAndHash. */ - public javaGenerateEqualsAndHash: boolean; - - /** FileOptions javaStringCheckUtf8. */ - public javaStringCheckUtf8: boolean; - - /** FileOptions optimizeFor. */ - public optimizeFor: (google.protobuf.FileOptions.OptimizeMode|keyof typeof google.protobuf.FileOptions.OptimizeMode); - - /** FileOptions goPackage. */ - public goPackage: string; - - /** FileOptions ccGenericServices. */ - public ccGenericServices: boolean; - - /** FileOptions javaGenericServices. */ - public javaGenericServices: boolean; - - /** FileOptions pyGenericServices. */ - public pyGenericServices: boolean; - - /** FileOptions phpGenericServices. */ - public phpGenericServices: boolean; + constructor(properties?: google.protobuf.IMethodOptions); - /** FileOptions deprecated. */ + /** MethodOptions deprecated. */ public deprecated: boolean; - /** FileOptions ccEnableArenas. */ - public ccEnableArenas: boolean; - - /** FileOptions objcClassPrefix. */ - public objcClassPrefix: string; - - /** FileOptions csharpNamespace. */ - public csharpNamespace: string; - - /** FileOptions swiftPrefix. */ - public swiftPrefix: string; - - /** FileOptions phpClassPrefix. */ - public phpClassPrefix: string; - - /** FileOptions phpNamespace. */ - public phpNamespace: string; - - /** FileOptions phpMetadataNamespace. */ - public phpMetadataNamespace: string; - - /** FileOptions rubyPackage. */ - public rubyPackage: string; + /** MethodOptions idempotencyLevel. */ + public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); - /** FileOptions uninterpretedOption. */ + /** MethodOptions uninterpretedOption. */ public uninterpretedOption: google.protobuf.IUninterpretedOption[]; /** - * Creates a new FileOptions instance using the specified properties. + * Creates a new MethodOptions instance using the specified properties. * @param [properties] Properties to set - * @returns FileOptions instance + * @returns MethodOptions instance */ - public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; + public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * @param message MethodOptions message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FileOptions message from the specified reader or buffer. + * Decodes a MethodOptions message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FileOptions + * @returns MethodOptions * @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.protobuf.FileOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions; /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FileOptions + * @returns MethodOptions * @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.protobuf.FileOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions; /** - * Verifies a FileOptions message. + * Verifies a MethodOptions 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 FileOptions message from a plain object. Also converts values to their respective internal types. + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FileOptions + * @returns MethodOptions */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. - * @param message FileOptions + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * @param message MethodOptions * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FileOptions to JSON. + * Converts this MethodOptions to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FileOptions { + namespace MethodOptions { - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3 + /** IdempotencyLevel enum. */ + enum IdempotencyLevel { + IDEMPOTENCY_UNKNOWN = 0, + NO_SIDE_EFFECTS = 1, + IDEMPOTENT = 2 } } - /** Properties of a MessageOptions. */ - interface IMessageOptions { + /** Properties of an UninterpretedOption. */ + interface IUninterpretedOption { - /** MessageOptions messageSetWireFormat */ - messageSetWireFormat?: (boolean|null); + /** UninterpretedOption name */ + name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - /** MessageOptions noStandardDescriptorAccessor */ - noStandardDescriptorAccessor?: (boolean|null); + /** UninterpretedOption identifierValue */ + identifierValue?: (string|null); - /** MessageOptions deprecated */ - deprecated?: (boolean|null); + /** UninterpretedOption positiveIntValue */ + positiveIntValue?: (number|Long|string|null); - /** MessageOptions mapEntry */ - mapEntry?: (boolean|null); + /** UninterpretedOption negativeIntValue */ + negativeIntValue?: (number|Long|string|null); - /** MessageOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** UninterpretedOption doubleValue */ + doubleValue?: (number|null); + + /** UninterpretedOption stringValue */ + stringValue?: (Uint8Array|string|null); + + /** UninterpretedOption aggregateValue */ + aggregateValue?: (string|null); } - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { + /** Represents an UninterpretedOption. */ + class UninterpretedOption implements IUninterpretedOption { /** - * Constructs a new MessageOptions. + * Constructs a new UninterpretedOption. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMessageOptions); + constructor(properties?: google.protobuf.IUninterpretedOption); - /** MessageOptions messageSetWireFormat. */ - public messageSetWireFormat: boolean; + /** UninterpretedOption name. */ + public name: google.protobuf.UninterpretedOption.INamePart[]; - /** MessageOptions noStandardDescriptorAccessor. */ - public noStandardDescriptorAccessor: boolean; + /** UninterpretedOption identifierValue. */ + public identifierValue: string; - /** MessageOptions deprecated. */ - public deprecated: boolean; + /** UninterpretedOption positiveIntValue. */ + public positiveIntValue: (number|Long|string); - /** MessageOptions mapEntry. */ - public mapEntry: boolean; + /** UninterpretedOption negativeIntValue. */ + public negativeIntValue: (number|Long|string); - /** MessageOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** UninterpretedOption doubleValue. */ + public doubleValue: number; + + /** UninterpretedOption stringValue. */ + public stringValue: (Uint8Array|string); + + /** UninterpretedOption aggregateValue. */ + public aggregateValue: string; /** - * Creates a new MessageOptions instance using the specified properties. + * Creates a new UninterpretedOption instance using the specified properties. * @param [properties] Properties to set - * @returns MessageOptions instance + * @returns UninterpretedOption instance */ - public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; + public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * @param message UninterpretedOption message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MessageOptions message from the specified reader or buffer. + * Decodes an UninterpretedOption message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MessageOptions + * @returns UninterpretedOption * @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.protobuf.MessageOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption; /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MessageOptions + * @returns UninterpretedOption * @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.protobuf.MessageOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption; /** - * Verifies a MessageOptions message. + * Verifies an UninterpretedOption 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 MessageOptions message from a plain object. Also converts values to their respective internal types. + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MessageOptions + * @returns UninterpretedOption */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. - * @param message MessageOptions + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * @param message UninterpretedOption * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MessageOptions to JSON. + * Converts this UninterpretedOption to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FieldOptions. */ - interface IFieldOptions { + namespace UninterpretedOption { - /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType|null); + /** Properties of a NamePart. */ + interface INamePart { - /** FieldOptions packed */ - packed?: (boolean|null); + /** NamePart namePart */ + namePart: string; - /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType|null); + /** NamePart isExtension */ + isExtension: boolean; + } - /** FieldOptions lazy */ - lazy?: (boolean|null); + /** Represents a NamePart. */ + class NamePart implements INamePart { - /** FieldOptions deprecated */ - deprecated?: (boolean|null); + /** + * Constructs a new NamePart. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - /** FieldOptions weak */ - weak?: (boolean|null); + /** NamePart namePart. */ + public namePart: string; - /** FieldOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** NamePart isExtension. */ + public isExtension: boolean; - /** FieldOptions .google.api.fieldBehavior */ - ".google.api.fieldBehavior"?: (google.api.FieldBehavior[]|null); - } + /** + * Creates a new NamePart instance using the specified properties. + * @param [properties] Properties to set + * @returns NamePart instance + */ + public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new FieldOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldOptions); + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @param message NamePart message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - /** FieldOptions ctype. */ - public ctype: (google.protobuf.FieldOptions.CType|keyof typeof google.protobuf.FieldOptions.CType); + /** + * Decodes a NamePart message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; - /** FieldOptions packed. */ - public packed: boolean; + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NamePart + * @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.protobuf.UninterpretedOption.NamePart; + + /** + * Verifies a NamePart 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 NamePart message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NamePart + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @param message NamePart + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NamePart to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** FieldOptions jstype. */ - public jstype: (google.protobuf.FieldOptions.JSType|keyof typeof google.protobuf.FieldOptions.JSType); + /** Properties of a SourceCodeInfo. */ + interface ISourceCodeInfo { - /** FieldOptions lazy. */ - public lazy: boolean; + /** SourceCodeInfo location */ + location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + } - /** FieldOptions deprecated. */ - public deprecated: boolean; + /** Represents a SourceCodeInfo. */ + class SourceCodeInfo implements ISourceCodeInfo { - /** FieldOptions weak. */ - public weak: boolean; + /** + * Constructs a new SourceCodeInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.ISourceCodeInfo); - /** FieldOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** SourceCodeInfo location. */ + public location: google.protobuf.SourceCodeInfo.ILocation[]; /** - * Creates a new FieldOptions instance using the specified properties. + * Creates a new SourceCodeInfo instance using the specified properties. * @param [properties] Properties to set - * @returns FieldOptions instance + * @returns SourceCodeInfo instance */ - public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; + public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * @param message SourceCodeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FieldOptions message from the specified reader or buffer. + * Decodes a SourceCodeInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FieldOptions + * @returns SourceCodeInfo * @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.protobuf.FieldOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo; /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FieldOptions + * @returns SourceCodeInfo * @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.protobuf.FieldOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo; /** - * Verifies a FieldOptions message. + * Verifies a SourceCodeInfo 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 FieldOptions message from a plain object. Also converts values to their respective internal types. + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FieldOptions + * @returns SourceCodeInfo */ - public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. - * @param message FieldOptions + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * @param message SourceCodeInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FieldOptions to JSON. + * Converts this SourceCodeInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FieldOptions { + namespace SourceCodeInfo { - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2 + /** Properties of a Location. */ + interface ILocation { + + /** Location path */ + path?: (number[]|null); + + /** Location span */ + span?: (number[]|null); + + /** Location leadingComments */ + leadingComments?: (string|null); + + /** Location trailingComments */ + trailingComments?: (string|null); + + /** Location leadingDetachedComments */ + leadingDetachedComments?: (string[]|null); } - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2 + /** Represents a Location. */ + class Location implements ILocation { + + /** + * Constructs a new Location. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + + /** Location path. */ + public path: number[]; + + /** Location span. */ + public span: number[]; + + /** Location leadingComments. */ + public leadingComments: string; + + /** Location trailingComments. */ + public trailingComments: string; + + /** Location leadingDetachedComments. */ + public leadingDetachedComments: string[]; + + /** + * Creates a new Location instance using the specified properties. + * @param [properties] Properties to set + * @returns Location instance + */ + public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @param message Location message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Location message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Location + * @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.protobuf.SourceCodeInfo.Location; + + /** + * Verifies a Location 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 Location message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Location + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @param message Location + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Location to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } } - /** Properties of an OneofOptions. */ - interface IOneofOptions { + /** Properties of a GeneratedCodeInfo. */ + interface IGeneratedCodeInfo { - /** OneofOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** GeneratedCodeInfo annotation */ + annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); } - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { + /** Represents a GeneratedCodeInfo. */ + class GeneratedCodeInfo implements IGeneratedCodeInfo { /** - * Constructs a new OneofOptions. + * Constructs a new GeneratedCodeInfo. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IOneofOptions); + constructor(properties?: google.protobuf.IGeneratedCodeInfo); - /** OneofOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** GeneratedCodeInfo annotation. */ + public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; /** - * Creates a new OneofOptions instance using the specified properties. + * Creates a new GeneratedCodeInfo instance using the specified properties. * @param [properties] Properties to set - * @returns OneofOptions instance + * @returns GeneratedCodeInfo instance */ - public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; + public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * @param message GeneratedCodeInfo message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an OneofOptions message from the specified reader or buffer. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns OneofOptions + * @returns GeneratedCodeInfo * @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.protobuf.OneofOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo; /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns OneofOptions + * @returns GeneratedCodeInfo * @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.protobuf.OneofOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo; /** - * Verifies an OneofOptions message. + * Verifies a GeneratedCodeInfo 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 OneofOptions message from a plain object. Also converts values to their respective internal types. + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns OneofOptions + * @returns GeneratedCodeInfo */ - public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. - * @param message OneofOptions + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @param message GeneratedCodeInfo * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this OneofOptions to JSON. + * Converts this GeneratedCodeInfo to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumOptions. */ - interface IEnumOptions { + namespace GeneratedCodeInfo { - /** EnumOptions allowAlias */ - allowAlias?: (boolean|null); + /** Properties of an Annotation. */ + interface IAnnotation { - /** EnumOptions deprecated */ - deprecated?: (boolean|null); + /** Annotation path */ + path?: (number[]|null); - /** EnumOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** Annotation sourceFile */ + sourceFile?: (string|null); + + /** Annotation begin */ + begin?: (number|null); + + /** Annotation end */ + end?: (number|null); + } + + /** Represents an Annotation. */ + class Annotation implements IAnnotation { + + /** + * Constructs a new Annotation. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + + /** Annotation path. */ + public path: number[]; + + /** Annotation sourceFile. */ + public sourceFile: string; + + /** Annotation begin. */ + public begin: number; + + /** Annotation end. */ + public end: number; + + /** + * Creates a new Annotation instance using the specified properties. + * @param [properties] Properties to set + * @returns Annotation instance + */ + public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @param message Annotation message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Annotation + * @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.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Verifies an Annotation 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 Annotation message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Annotation + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @param message Annotation + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Annotation to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { + /** Properties of an Empty. */ + interface IEmpty { + } + + /** Represents an Empty. */ + class Empty implements IEmpty { /** - * Constructs a new EnumOptions. + * Constructs a new Empty. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumOptions); - - /** EnumOptions allowAlias. */ - public allowAlias: boolean; - - /** EnumOptions deprecated. */ - public deprecated: boolean; - - /** EnumOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + constructor(properties?: google.protobuf.IEmpty); /** - * Creates a new EnumOptions instance using the specified properties. + * Creates a new Empty instance using the specified properties. * @param [properties] Properties to set - * @returns EnumOptions instance + * @returns Empty instance */ - public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; + public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * @param message Empty message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumOptions message from the specified reader or buffer. + * Decodes an Empty message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumOptions + * @returns Empty * @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.protobuf.EnumOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Empty; /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * Decodes an Empty message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumOptions + * @returns Empty * @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.protobuf.EnumOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Empty; /** - * Verifies an EnumOptions message. + * Verifies an Empty 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 EnumOptions message from a plain object. Also converts values to their respective internal types. + * Creates an Empty message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumOptions + * @returns Empty */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. - * @param message EnumOptions + * Creates a plain object from an Empty message. Also converts values to other types if specified. + * @param message Empty * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumOptions to JSON. + * Converts this Empty to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnumValueOptions. */ - interface IEnumValueOptions { + /** Properties of a Timestamp. */ + interface ITimestamp { - /** EnumValueOptions deprecated */ - deprecated?: (boolean|null); + /** Timestamp seconds */ + seconds?: (number|Long|string|null); - /** EnumValueOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); + /** Timestamp nanos */ + nanos?: (number|null); } - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { + /** Represents a Timestamp. */ + class Timestamp implements ITimestamp { /** - * Constructs a new EnumValueOptions. + * Constructs a new Timestamp. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEnumValueOptions); + constructor(properties?: google.protobuf.ITimestamp); - /** EnumValueOptions deprecated. */ - public deprecated: boolean; + /** Timestamp seconds. */ + public seconds: (number|Long|string); - /** EnumValueOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** Timestamp nanos. */ + public nanos: number; /** - * Creates a new EnumValueOptions instance using the specified properties. + * Creates a new Timestamp instance using the specified properties. * @param [properties] Properties to set - * @returns EnumValueOptions instance + * @returns Timestamp instance */ - public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; + public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * @param message Timestamp message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnumValueOptions message from the specified reader or buffer. + * Decodes a Timestamp message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnumValueOptions + * @returns Timestamp * @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.protobuf.EnumValueOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Timestamp; /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * Decodes a Timestamp message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnumValueOptions + * @returns Timestamp * @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.protobuf.EnumValueOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Timestamp; /** - * Verifies an EnumValueOptions message. + * Verifies a Timestamp 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 EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnumValueOptions + * @returns Timestamp */ - public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. - * @param message EnumValueOptions + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * @param message Timestamp * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnumValueOptions to JSON. + * Converts this Timestamp to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ServiceOptions. */ - interface IServiceOptions { - - /** ServiceOptions deprecated */ - deprecated?: (boolean|null); - - /** ServiceOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - - /** ServiceOptions .google.api.defaultHost */ - ".google.api.defaultHost"?: (string|null); + /** Properties of a DoubleValue. */ + interface IDoubleValue { - /** ServiceOptions .google.api.oauthScopes */ - ".google.api.oauthScopes"?: (string|null); + /** DoubleValue value */ + value?: (number|null); } - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { + /** Represents a DoubleValue. */ + class DoubleValue implements IDoubleValue { /** - * Constructs a new ServiceOptions. + * Constructs a new DoubleValue. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IServiceOptions); - - /** ServiceOptions deprecated. */ - public deprecated: boolean; + constructor(properties?: google.protobuf.IDoubleValue); - /** ServiceOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** DoubleValue value. */ + public value: number; /** - * Creates a new ServiceOptions instance using the specified properties. + * Creates a new DoubleValue instance using the specified properties. * @param [properties] Properties to set - * @returns ServiceOptions instance + * @returns DoubleValue instance */ - public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; + public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue; /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @param message DoubleValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode + * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. + * @param message DoubleValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ServiceOptions message from the specified reader or buffer. + * Decodes a DoubleValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ServiceOptions + * @returns DoubleValue * @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.protobuf.ServiceOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DoubleValue; /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * Decodes a DoubleValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ServiceOptions + * @returns DoubleValue * @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.protobuf.ServiceOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DoubleValue; /** - * Verifies a ServiceOptions message. + * Verifies a DoubleValue 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 ServiceOptions message from a plain object. Also converts values to their respective internal types. + * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ServiceOptions + * @returns DoubleValue */ - public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.DoubleValue; /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. - * @param message ServiceOptions + * Creates a plain object from a DoubleValue message. Also converts values to other types if specified. + * @param message DoubleValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.DoubleValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ServiceOptions to JSON. + * Converts this DoubleValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MethodOptions. */ - interface IMethodOptions { - - /** MethodOptions deprecated */ - deprecated?: (boolean|null); - - /** MethodOptions idempotencyLevel */ - idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel|null); - - /** MethodOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - - /** MethodOptions .google.api.http */ - ".google.api.http"?: (google.api.IHttpRule|null); + /** Properties of a FloatValue. */ + interface IFloatValue { - /** MethodOptions .google.api.methodSignature */ - ".google.api.methodSignature"?: (string[]|null); + /** FloatValue value */ + value?: (number|null); } - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { + /** Represents a FloatValue. */ + class FloatValue implements IFloatValue { /** - * Constructs a new MethodOptions. + * Constructs a new FloatValue. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IMethodOptions); - - /** MethodOptions deprecated. */ - public deprecated: boolean; - - /** MethodOptions idempotencyLevel. */ - public idempotencyLevel: (google.protobuf.MethodOptions.IdempotencyLevel|keyof typeof google.protobuf.MethodOptions.IdempotencyLevel); + constructor(properties?: google.protobuf.IFloatValue); - /** MethodOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; + /** FloatValue value. */ + public value: number; /** - * Creates a new MethodOptions instance using the specified properties. + * Creates a new FloatValue instance using the specified properties. * @param [properties] Properties to set - * @returns MethodOptions instance + * @returns FloatValue instance */ - public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; + public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue; /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @param message FloatValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode + * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. + * @param message FloatValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MethodOptions message from the specified reader or buffer. + * Decodes a FloatValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MethodOptions + * @returns FloatValue * @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.protobuf.MethodOptions; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FloatValue; /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * Decodes a FloatValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MethodOptions + * @returns FloatValue * @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.protobuf.MethodOptions; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FloatValue; /** - * Verifies a MethodOptions message. + * Verifies a FloatValue 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 MethodOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FloatValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MethodOptions + * @returns FloatValue */ - public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions; + public static fromObject(object: { [k: string]: any }): google.protobuf.FloatValue; /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. - * @param message MethodOptions + * Creates a plain object from a FloatValue message. Also converts values to other types if specified. + * @param message FloatValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.FloatValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MethodOptions to JSON. + * Converts this FloatValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace MethodOptions { - - /** IdempotencyLevel enum. */ - enum IdempotencyLevel { - IDEMPOTENCY_UNKNOWN = 0, - NO_SIDE_EFFECTS = 1, - IDEMPOTENT = 2 - } - } - - /** Properties of an UninterpretedOption. */ - interface IUninterpretedOption { - - /** UninterpretedOption name */ - name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - - /** UninterpretedOption identifierValue */ - identifierValue?: (string|null); - - /** UninterpretedOption positiveIntValue */ - positiveIntValue?: (number|Long|string|null); - - /** UninterpretedOption negativeIntValue */ - negativeIntValue?: (number|Long|string|null); - - /** UninterpretedOption doubleValue */ - doubleValue?: (number|null); - - /** UninterpretedOption stringValue */ - stringValue?: (Uint8Array|string|null); + /** Properties of an Int64Value. */ + interface IInt64Value { - /** UninterpretedOption aggregateValue */ - aggregateValue?: (string|null); + /** Int64Value value */ + value?: (number|Long|string|null); } - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { + /** Represents an Int64Value. */ + class Int64Value implements IInt64Value { /** - * Constructs a new UninterpretedOption. + * Constructs a new Int64Value. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IUninterpretedOption); - - /** UninterpretedOption name. */ - public name: google.protobuf.UninterpretedOption.INamePart[]; - - /** UninterpretedOption identifierValue. */ - public identifierValue: string; - - /** UninterpretedOption positiveIntValue. */ - public positiveIntValue: (number|Long|string); - - /** UninterpretedOption negativeIntValue. */ - public negativeIntValue: (number|Long|string); - - /** UninterpretedOption doubleValue. */ - public doubleValue: number; + constructor(properties?: google.protobuf.IInt64Value); - /** UninterpretedOption stringValue. */ - public stringValue: (Uint8Array|string); - - /** UninterpretedOption aggregateValue. */ - public aggregateValue: string; + /** Int64Value value. */ + public value: (number|Long|string); /** - * Creates a new UninterpretedOption instance using the specified properties. + * Creates a new Int64Value instance using the specified properties. * @param [properties] Properties to set - * @returns UninterpretedOption instance + * @returns Int64Value instance */ - public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; + public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value; /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @param message Int64Value message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode + * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. + * @param message Int64Value message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * Decodes an Int64Value message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UninterpretedOption + * @returns Int64Value * @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.protobuf.UninterpretedOption; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int64Value; /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * Decodes an Int64Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UninterpretedOption + * @returns Int64Value * @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.protobuf.UninterpretedOption; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int64Value; /** - * Verifies an UninterpretedOption message. + * Verifies an Int64Value 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 UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * Creates an Int64Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UninterpretedOption + * @returns Int64Value */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption; + public static fromObject(object: { [k: string]: any }): google.protobuf.Int64Value; /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. - * @param message UninterpretedOption + * Creates a plain object from an Int64Value message. Also converts values to other types if specified. + * @param message Int64Value * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Int64Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UninterpretedOption to JSON. + * Converts this Int64Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace UninterpretedOption { - - /** Properties of a NamePart. */ - interface INamePart { - - /** NamePart namePart */ - namePart: string; - - /** NamePart isExtension */ - isExtension: boolean; - } - - /** Represents a NamePart. */ - class NamePart implements INamePart { + /** Properties of a UInt64Value. */ + interface IUInt64Value { - /** - * Constructs a new NamePart. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.UninterpretedOption.INamePart); + /** UInt64Value value */ + value?: (number|Long|string|null); + } - /** NamePart namePart. */ - public namePart: string; + /** Represents a UInt64Value. */ + class UInt64Value implements IUInt64Value { - /** NamePart isExtension. */ - public isExtension: boolean; + /** + * Constructs a new UInt64Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUInt64Value); - /** - * Creates a new NamePart instance using the specified properties. - * @param [properties] Properties to set - * @returns NamePart instance - */ - public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; + /** UInt64Value value. */ + public value: (number|Long|string); - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new UInt64Value instance using the specified properties. + * @param [properties] Properties to set + * @returns UInt64Value instance + */ + public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value; - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @param message UInt64Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a NamePart message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamePart - * @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.protobuf.UninterpretedOption.NamePart; + /** + * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. + * @param message UInt64Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns NamePart - * @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.protobuf.UninterpretedOption.NamePart; + /** + * Decodes a UInt64Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UInt64Value + * @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.protobuf.UInt64Value; - /** - * Verifies a NamePart 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); + /** + * Decodes a UInt64Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UInt64Value + * @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.protobuf.UInt64Value; - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns NamePart - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart; + /** + * Verifies a UInt64Value 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 plain object from a NamePart message. Also converts values to other types if specified. - * @param message NamePart - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UInt64Value + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UInt64Value; - /** - * Converts this NamePart to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a UInt64Value message. Also converts values to other types if specified. + * @param message UInt64Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UInt64Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UInt64Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a SourceCodeInfo. */ - interface ISourceCodeInfo { + /** Properties of an Int32Value. */ + interface IInt32Value { - /** SourceCodeInfo location */ - location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); + /** Int32Value value */ + value?: (number|null); } - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { + /** Represents an Int32Value. */ + class Int32Value implements IInt32Value { /** - * Constructs a new SourceCodeInfo. + * Constructs a new Int32Value. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.ISourceCodeInfo); + constructor(properties?: google.protobuf.IInt32Value); - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; + /** Int32Value value. */ + public value: number; /** - * Creates a new SourceCodeInfo instance using the specified properties. + * Creates a new Int32Value instance using the specified properties. * @param [properties] Properties to set - * @returns SourceCodeInfo instance + * @returns Int32Value instance */ - public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; + public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value; /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @param message Int32Value message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode + * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @param message Int32Value message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. + * Decodes an Int32Value message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SourceCodeInfo + * @returns Int32Value * @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.protobuf.SourceCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Int32Value; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * Decodes an Int32Value message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SourceCodeInfo + * @returns Int32Value * @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.protobuf.SourceCodeInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Int32Value; /** - * Verifies a SourceCodeInfo message. + * Verifies an Int32Value 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 SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates an Int32Value message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SourceCodeInfo + * @returns Int32Value */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.Int32Value; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. - * @param message SourceCodeInfo + * Creates a plain object from an Int32Value message. Also converts values to other types if specified. + * @param message Int32Value * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Int32Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this Int32Value to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SourceCodeInfo { + /** Properties of a UInt32Value. */ + interface IUInt32Value { - /** Properties of a Location. */ - interface ILocation { + /** UInt32Value value */ + value?: (number|null); + } - /** Location path */ - path?: (number[]|null); + /** Represents a UInt32Value. */ + class UInt32Value implements IUInt32Value { - /** Location span */ - span?: (number[]|null); + /** + * Constructs a new UInt32Value. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IUInt32Value); - /** Location leadingComments */ - leadingComments?: (string|null); + /** UInt32Value value. */ + public value: number; - /** Location trailingComments */ - trailingComments?: (string|null); + /** + * Creates a new UInt32Value instance using the specified properties. + * @param [properties] Properties to set + * @returns UInt32Value instance + */ + public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value; - /** Location leadingDetachedComments */ - leadingDetachedComments?: (string[]|null); - } + /** + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @param message UInt32Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a Location. */ - class Location implements ILocation { + /** + * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. + * @param message UInt32Value message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new Location. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); + /** + * Decodes a UInt32Value message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UInt32Value + * @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.protobuf.UInt32Value; - /** Location path. */ - public path: number[]; + /** + * Decodes a UInt32Value message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UInt32Value + * @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.protobuf.UInt32Value; - /** Location span. */ - public span: number[]; + /** + * Verifies a UInt32Value 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); - /** Location leadingComments. */ - public leadingComments: string; + /** + * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UInt32Value + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.UInt32Value; - /** Location trailingComments. */ - public trailingComments: string; + /** + * Creates a plain object from a UInt32Value message. Also converts values to other types if specified. + * @param message UInt32Value + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.UInt32Value, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Location leadingDetachedComments. */ - public leadingDetachedComments: string[]; + /** + * Converts this UInt32Value to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a new Location instance using the specified properties. - * @param [properties] Properties to set - * @returns Location instance - */ - public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; + /** Properties of a BoolValue. */ + interface IBoolValue { - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** BoolValue value */ + value?: (boolean|null); + } - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a BoolValue. */ + class BoolValue implements IBoolValue { - /** - * Decodes a Location message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Location - * @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.protobuf.SourceCodeInfo.Location; + /** + * Constructs a new BoolValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IBoolValue); - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Location - * @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.protobuf.SourceCodeInfo.Location; + /** BoolValue value. */ + public value: boolean; - /** - * Verifies a Location 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 new BoolValue instance using the specified properties. + * @param [properties] Properties to set + * @returns BoolValue instance + */ + public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue; - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Location - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location; + /** + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @param message BoolValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @param message Location - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @param message BoolValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BoolValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BoolValue + * @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.protobuf.BoolValue; + + /** + * Decodes a BoolValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BoolValue + * @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.protobuf.BoolValue; + + /** + * Verifies a BoolValue 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 BoolValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BoolValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.BoolValue; + + /** + * Creates a plain object from a BoolValue message. Also converts values to other types if specified. + * @param message BoolValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.BoolValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this Location to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this BoolValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { + /** Properties of a StringValue. */ + interface IStringValue { - /** GeneratedCodeInfo annotation */ - annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); + /** StringValue value */ + value?: (string|null); } - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { + /** Represents a StringValue. */ + class StringValue implements IStringValue { /** - * Constructs a new GeneratedCodeInfo. + * Constructs a new StringValue. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IGeneratedCodeInfo); + constructor(properties?: google.protobuf.IStringValue); - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; + /** StringValue value. */ + public value: string; /** - * Creates a new GeneratedCodeInfo instance using the specified properties. + * Creates a new StringValue instance using the specified properties. * @param [properties] Properties to set - * @returns GeneratedCodeInfo instance + * @returns StringValue instance */ - public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; + public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @param message StringValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode + * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. + * @param message StringValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes a StringValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GeneratedCodeInfo + * @returns StringValue * @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.protobuf.GeneratedCodeInfo; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.StringValue; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a StringValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GeneratedCodeInfo + * @returns StringValue * @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.protobuf.GeneratedCodeInfo; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.StringValue; /** - * Verifies a GeneratedCodeInfo message. + * Verifies a StringValue 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 GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates a StringValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GeneratedCodeInfo + * @returns StringValue */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo; + public static fromObject(object: { [k: string]: any }): google.protobuf.StringValue; /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. - * @param message GeneratedCodeInfo + * Creates a plain object from a StringValue message. Also converts values to other types if specified. + * @param message StringValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.StringValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this StringValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace GeneratedCodeInfo { - - /** Properties of an Annotation. */ - interface IAnnotation { - - /** Annotation path */ - path?: (number[]|null); - - /** Annotation sourceFile */ - sourceFile?: (string|null); - - /** Annotation begin */ - begin?: (number|null); - - /** Annotation end */ - end?: (number|null); - } + /** Properties of a BytesValue. */ + interface IBytesValue { - /** Represents an Annotation. */ - class Annotation implements IAnnotation { + /** BytesValue value */ + value?: (Uint8Array|string|null); + } - /** - * Constructs a new Annotation. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); + /** Represents a BytesValue. */ + class BytesValue implements IBytesValue { - /** Annotation path. */ - public path: number[]; + /** + * Constructs a new BytesValue. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IBytesValue); - /** Annotation sourceFile. */ - public sourceFile: string; + /** BytesValue value. */ + public value: (Uint8Array|string); - /** Annotation begin. */ - public begin: number; + /** + * Creates a new BytesValue instance using the specified properties. + * @param [properties] Properties to set + * @returns BytesValue instance + */ + public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue; - /** Annotation end. */ - public end: number; + /** + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @param message BytesValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Annotation instance using the specified properties. - * @param [properties] Properties to set - * @returns Annotation instance - */ - public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; + /** + * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. + * @param message BytesValue message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a BytesValue message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BytesValue + * @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.protobuf.BytesValue; - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a BytesValue message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BytesValue + * @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.protobuf.BytesValue; - /** - * Decodes an Annotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Annotation - * @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.protobuf.GeneratedCodeInfo.Annotation; + /** + * Verifies a BytesValue 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); - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Annotation - * @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.protobuf.GeneratedCodeInfo.Annotation; + /** + * Creates a BytesValue message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BytesValue + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.BytesValue; - /** - * Verifies an Annotation 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 plain object from a BytesValue message. Also converts values to other types if specified. + * @param message BytesValue + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.BytesValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Annotation - */ - public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation; + /** + * Converts this BytesValue to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @param message Annotation - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an Any. */ + interface IAny { - /** - * Converts this Annotation to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** Any type_url */ + type_url?: (string|null); - /** Properties of an Empty. */ - interface IEmpty { + /** Any value */ + value?: (Uint8Array|string|null); } - /** Represents an Empty. */ - class Empty implements IEmpty { + /** Represents an Any. */ + class Any implements IAny { /** - * Constructs a new Empty. + * Constructs a new Any. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.IEmpty); + constructor(properties?: google.protobuf.IAny); + + /** Any type_url. */ + public type_url: string; + + /** Any value. */ + public value: (Uint8Array|string); /** - * Creates a new Empty instance using the specified properties. + * Creates a new Any instance using the specified properties. * @param [properties] Properties to set - * @returns Empty instance + * @returns Any instance */ - public static create(properties?: google.protobuf.IEmpty): google.protobuf.Empty; + public static create(properties?: google.protobuf.IAny): google.protobuf.Any; /** - * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. - * @param message Empty message or plain object to encode + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. - * @param message Empty message or plain object to encode + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. + * @param message Any message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IEmpty, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Empty message from the specified reader or buffer. + * Decodes an Any message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Empty + * @returns Any * @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.protobuf.Empty; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.Any; /** - * Decodes an Empty message from the specified reader or buffer, length delimited. + * Decodes an Any message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Empty + * @returns Any * @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.protobuf.Empty; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Any; /** - * Verifies an Empty message. + * Verifies an Any 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 Empty message from a plain object. Also converts values to their respective internal types. + * Creates an Any message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Empty + * @returns Any */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Empty; + public static fromObject(object: { [k: string]: any }): google.protobuf.Any; /** - * Creates a plain object from an Empty message. Also converts values to other types if specified. - * @param message Empty + * Creates a plain object from an Any message. Also converts values to other types if specified. + * @param message Any * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Empty, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.protobuf.Any, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Empty to JSON. + * Converts this Any to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - /** Properties of a Timestamp. */ - interface ITimestamp { + /** Namespace rpc. */ + namespace rpc { + + /** Code enum. */ + enum Code { + OK = 0, + CANCELLED = 1, + UNKNOWN = 2, + INVALID_ARGUMENT = 3, + DEADLINE_EXCEEDED = 4, + NOT_FOUND = 5, + ALREADY_EXISTS = 6, + PERMISSION_DENIED = 7, + UNAUTHENTICATED = 16, + RESOURCE_EXHAUSTED = 8, + FAILED_PRECONDITION = 9, + ABORTED = 10, + OUT_OF_RANGE = 11, + UNIMPLEMENTED = 12, + INTERNAL = 13, + UNAVAILABLE = 14, + DATA_LOSS = 15 + } - /** Timestamp seconds */ - seconds?: (number|Long|string|null); + /** Properties of a Status. */ + interface IStatus { - /** Timestamp nanos */ - nanos?: (number|null); + /** Status code */ + code?: (number|null); + + /** Status message */ + message?: (string|null); + + /** Status details */ + details?: (google.protobuf.IAny[]|null); } - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { + /** Represents a Status. */ + class Status implements IStatus { /** - * Constructs a new Timestamp. + * Constructs a new Status. * @param [properties] Properties to set */ - constructor(properties?: google.protobuf.ITimestamp); + constructor(properties?: google.rpc.IStatus); - /** Timestamp seconds. */ - public seconds: (number|Long|string); + /** Status code. */ + public code: number; - /** Timestamp nanos. */ - public nanos: number; + /** Status message. */ + public message: string; + + /** Status details. */ + public details: google.protobuf.IAny[]; /** - * Creates a new Timestamp instance using the specified properties. + * Creates a new Status instance using the specified properties. * @param [properties] Properties to set - * @returns Timestamp instance + * @returns Status instance */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; + public static create(properties?: google.rpc.IStatus): google.rpc.Status; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode + * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @param message Status message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode + * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages. + * @param message Status message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.rpc.IStatus, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes a Status message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Timestamp + * @returns Status * @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.protobuf.Timestamp; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.rpc.Status; /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * Decodes a Status message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Timestamp + * @returns Status * @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.protobuf.Timestamp; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.rpc.Status; /** - * Verifies a Timestamp message. + * Verifies a Status 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 Timestamp message from a plain object. Also converts values to their respective internal types. + * Creates a Status message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Timestamp + * @returns Status */ - public static fromObject(object: { [k: string]: any }): google.protobuf.Timestamp; + public static fromObject(object: { [k: string]: any }): google.rpc.Status; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. - * @param message Timestamp + * Creates a plain object from a Status message. Also converts values to other types if specified. + * @param message Status * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Timestamp, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.rpc.Status, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Timestamp to JSON. + * Converts this Status to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 633ee1e4f1c..a5a4fe6c00b 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1148,6 +1148,465 @@ return ClusterManager; })(); + v1.LinuxNodeConfig = (function() { + + /** + * Properties of a LinuxNodeConfig. + * @memberof google.container.v1 + * @interface ILinuxNodeConfig + * @property {Object.|null} [sysctls] LinuxNodeConfig sysctls + */ + + /** + * Constructs a new LinuxNodeConfig. + * @memberof google.container.v1 + * @classdesc Represents a LinuxNodeConfig. + * @implements ILinuxNodeConfig + * @constructor + * @param {google.container.v1.ILinuxNodeConfig=} [properties] Properties to set + */ + function LinuxNodeConfig(properties) { + this.sysctls = {}; + 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]]; + } + + /** + * LinuxNodeConfig sysctls. + * @member {Object.} sysctls + * @memberof google.container.v1.LinuxNodeConfig + * @instance + */ + LinuxNodeConfig.prototype.sysctls = $util.emptyObject; + + /** + * Creates a new LinuxNodeConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.LinuxNodeConfig + * @static + * @param {google.container.v1.ILinuxNodeConfig=} [properties] Properties to set + * @returns {google.container.v1.LinuxNodeConfig} LinuxNodeConfig instance + */ + LinuxNodeConfig.create = function create(properties) { + return new LinuxNodeConfig(properties); + }; + + /** + * Encodes the specified LinuxNodeConfig message. Does not implicitly {@link google.container.v1.LinuxNodeConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.LinuxNodeConfig + * @static + * @param {google.container.v1.ILinuxNodeConfig} message LinuxNodeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LinuxNodeConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sysctls != null && Object.hasOwnProperty.call(message, "sysctls")) + for (var keys = Object.keys(message.sysctls), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.sysctls[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified LinuxNodeConfig message, length delimited. Does not implicitly {@link google.container.v1.LinuxNodeConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.LinuxNodeConfig + * @static + * @param {google.container.v1.ILinuxNodeConfig} message LinuxNodeConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LinuxNodeConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LinuxNodeConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.LinuxNodeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.LinuxNodeConfig} LinuxNodeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LinuxNodeConfig.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.LinuxNodeConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (message.sysctls === $util.emptyObject) + message.sysctls = {}; + 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.sysctls[key] = value; + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LinuxNodeConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.LinuxNodeConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.LinuxNodeConfig} LinuxNodeConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LinuxNodeConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LinuxNodeConfig message. + * @function verify + * @memberof google.container.v1.LinuxNodeConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LinuxNodeConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sysctls != null && message.hasOwnProperty("sysctls")) { + if (!$util.isObject(message.sysctls)) + return "sysctls: object expected"; + var key = Object.keys(message.sysctls); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.sysctls[key[i]])) + return "sysctls: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a LinuxNodeConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.LinuxNodeConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.LinuxNodeConfig} LinuxNodeConfig + */ + LinuxNodeConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.LinuxNodeConfig) + return object; + var message = new $root.google.container.v1.LinuxNodeConfig(); + if (object.sysctls) { + if (typeof object.sysctls !== "object") + throw TypeError(".google.container.v1.LinuxNodeConfig.sysctls: object expected"); + message.sysctls = {}; + for (var keys = Object.keys(object.sysctls), i = 0; i < keys.length; ++i) + message.sysctls[keys[i]] = String(object.sysctls[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a LinuxNodeConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.LinuxNodeConfig + * @static + * @param {google.container.v1.LinuxNodeConfig} message LinuxNodeConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LinuxNodeConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.sysctls = {}; + var keys2; + if (message.sysctls && (keys2 = Object.keys(message.sysctls)).length) { + object.sysctls = {}; + for (var j = 0; j < keys2.length; ++j) + object.sysctls[keys2[j]] = message.sysctls[keys2[j]]; + } + return object; + }; + + /** + * Converts this LinuxNodeConfig to JSON. + * @function toJSON + * @memberof google.container.v1.LinuxNodeConfig + * @instance + * @returns {Object.} JSON object + */ + LinuxNodeConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LinuxNodeConfig; + })(); + + v1.NodeKubeletConfig = (function() { + + /** + * Properties of a NodeKubeletConfig. + * @memberof google.container.v1 + * @interface INodeKubeletConfig + * @property {string|null} [cpuManagerPolicy] NodeKubeletConfig cpuManagerPolicy + * @property {google.protobuf.IBoolValue|null} [cpuCfsQuota] NodeKubeletConfig cpuCfsQuota + * @property {string|null} [cpuCfsQuotaPeriod] NodeKubeletConfig cpuCfsQuotaPeriod + */ + + /** + * Constructs a new NodeKubeletConfig. + * @memberof google.container.v1 + * @classdesc Represents a NodeKubeletConfig. + * @implements INodeKubeletConfig + * @constructor + * @param {google.container.v1.INodeKubeletConfig=} [properties] Properties to set + */ + function NodeKubeletConfig(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]]; + } + + /** + * NodeKubeletConfig cpuManagerPolicy. + * @member {string} cpuManagerPolicy + * @memberof google.container.v1.NodeKubeletConfig + * @instance + */ + NodeKubeletConfig.prototype.cpuManagerPolicy = ""; + + /** + * NodeKubeletConfig cpuCfsQuota. + * @member {google.protobuf.IBoolValue|null|undefined} cpuCfsQuota + * @memberof google.container.v1.NodeKubeletConfig + * @instance + */ + NodeKubeletConfig.prototype.cpuCfsQuota = null; + + /** + * NodeKubeletConfig cpuCfsQuotaPeriod. + * @member {string} cpuCfsQuotaPeriod + * @memberof google.container.v1.NodeKubeletConfig + * @instance + */ + NodeKubeletConfig.prototype.cpuCfsQuotaPeriod = ""; + + /** + * Creates a new NodeKubeletConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NodeKubeletConfig + * @static + * @param {google.container.v1.INodeKubeletConfig=} [properties] Properties to set + * @returns {google.container.v1.NodeKubeletConfig} NodeKubeletConfig instance + */ + NodeKubeletConfig.create = function create(properties) { + return new NodeKubeletConfig(properties); + }; + + /** + * Encodes the specified NodeKubeletConfig message. Does not implicitly {@link google.container.v1.NodeKubeletConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodeKubeletConfig + * @static + * @param {google.container.v1.INodeKubeletConfig} message NodeKubeletConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeKubeletConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.cpuManagerPolicy != null && Object.hasOwnProperty.call(message, "cpuManagerPolicy")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.cpuManagerPolicy); + if (message.cpuCfsQuota != null && Object.hasOwnProperty.call(message, "cpuCfsQuota")) + $root.google.protobuf.BoolValue.encode(message.cpuCfsQuota, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.cpuCfsQuotaPeriod != null && Object.hasOwnProperty.call(message, "cpuCfsQuotaPeriod")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cpuCfsQuotaPeriod); + return writer; + }; + + /** + * Encodes the specified NodeKubeletConfig message, length delimited. Does not implicitly {@link google.container.v1.NodeKubeletConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodeKubeletConfig + * @static + * @param {google.container.v1.INodeKubeletConfig} message NodeKubeletConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeKubeletConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeKubeletConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodeKubeletConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodeKubeletConfig} NodeKubeletConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeKubeletConfig.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.NodeKubeletConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.cpuManagerPolicy = reader.string(); + break; + case 2: + message.cpuCfsQuota = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + case 3: + message.cpuCfsQuotaPeriod = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeKubeletConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodeKubeletConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodeKubeletConfig} NodeKubeletConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeKubeletConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeKubeletConfig message. + * @function verify + * @memberof google.container.v1.NodeKubeletConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeKubeletConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.cpuManagerPolicy != null && message.hasOwnProperty("cpuManagerPolicy")) + if (!$util.isString(message.cpuManagerPolicy)) + return "cpuManagerPolicy: string expected"; + if (message.cpuCfsQuota != null && message.hasOwnProperty("cpuCfsQuota")) { + var error = $root.google.protobuf.BoolValue.verify(message.cpuCfsQuota); + if (error) + return "cpuCfsQuota." + error; + } + if (message.cpuCfsQuotaPeriod != null && message.hasOwnProperty("cpuCfsQuotaPeriod")) + if (!$util.isString(message.cpuCfsQuotaPeriod)) + return "cpuCfsQuotaPeriod: string expected"; + return null; + }; + + /** + * Creates a NodeKubeletConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodeKubeletConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodeKubeletConfig} NodeKubeletConfig + */ + NodeKubeletConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeKubeletConfig) + return object; + var message = new $root.google.container.v1.NodeKubeletConfig(); + if (object.cpuManagerPolicy != null) + message.cpuManagerPolicy = String(object.cpuManagerPolicy); + if (object.cpuCfsQuota != null) { + if (typeof object.cpuCfsQuota !== "object") + throw TypeError(".google.container.v1.NodeKubeletConfig.cpuCfsQuota: object expected"); + message.cpuCfsQuota = $root.google.protobuf.BoolValue.fromObject(object.cpuCfsQuota); + } + if (object.cpuCfsQuotaPeriod != null) + message.cpuCfsQuotaPeriod = String(object.cpuCfsQuotaPeriod); + return message; + }; + + /** + * Creates a plain object from a NodeKubeletConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodeKubeletConfig + * @static + * @param {google.container.v1.NodeKubeletConfig} message NodeKubeletConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeKubeletConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.cpuManagerPolicy = ""; + object.cpuCfsQuota = null; + object.cpuCfsQuotaPeriod = ""; + } + if (message.cpuManagerPolicy != null && message.hasOwnProperty("cpuManagerPolicy")) + object.cpuManagerPolicy = message.cpuManagerPolicy; + if (message.cpuCfsQuota != null && message.hasOwnProperty("cpuCfsQuota")) + object.cpuCfsQuota = $root.google.protobuf.BoolValue.toObject(message.cpuCfsQuota, options); + if (message.cpuCfsQuotaPeriod != null && message.hasOwnProperty("cpuCfsQuotaPeriod")) + object.cpuCfsQuotaPeriod = message.cpuCfsQuotaPeriod; + return object; + }; + + /** + * Converts this NodeKubeletConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NodeKubeletConfig + * @instance + * @returns {Object.} JSON object + */ + NodeKubeletConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NodeKubeletConfig; + })(); + v1.NodeConfig = (function() { /** @@ -1173,7 +1632,12 @@ * @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 {google.container.v1.ILinuxNodeConfig|null} [linuxNodeConfig] NodeConfig linuxNodeConfig + * @property {google.container.v1.INodeKubeletConfig|null} [kubeletConfig] NodeConfig kubeletConfig * @property {string|null} [bootDiskKmsKey] NodeConfig bootDiskKmsKey + * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] NodeConfig gcfsConfig + * @property {google.container.v1.IAdvancedMachineFeatures|null} [advancedMachineFeatures] NodeConfig advancedMachineFeatures + * @property {google.container.v1.IVirtualNIC|null} [gvnic] NodeConfig gvnic */ /** @@ -1349,6 +1813,22 @@ */ NodeConfig.prototype.shieldedInstanceConfig = null; + /** + * NodeConfig linuxNodeConfig. + * @member {google.container.v1.ILinuxNodeConfig|null|undefined} linuxNodeConfig + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.linuxNodeConfig = null; + + /** + * NodeConfig kubeletConfig. + * @member {google.container.v1.INodeKubeletConfig|null|undefined} kubeletConfig + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.kubeletConfig = null; + /** * NodeConfig bootDiskKmsKey. * @member {string} bootDiskKmsKey @@ -1357,6 +1837,30 @@ */ NodeConfig.prototype.bootDiskKmsKey = ""; + /** + * NodeConfig gcfsConfig. + * @member {google.container.v1.IGcfsConfig|null|undefined} gcfsConfig + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.gcfsConfig = null; + + /** + * NodeConfig advancedMachineFeatures. + * @member {google.container.v1.IAdvancedMachineFeatures|null|undefined} advancedMachineFeatures + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.advancedMachineFeatures = null; + + /** + * NodeConfig gvnic. + * @member {google.container.v1.IVirtualNIC|null|undefined} gvnic + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.gvnic = null; + /** * Creates a new NodeConfig instance using the specified properties. * @function create @@ -1425,8 +1929,18 @@ $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.linuxNodeConfig != null && Object.hasOwnProperty.call(message, "linuxNodeConfig")) + $root.google.container.v1.LinuxNodeConfig.encode(message.linuxNodeConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.kubeletConfig != null && Object.hasOwnProperty.call(message, "kubeletConfig")) + $root.google.container.v1.NodeKubeletConfig.encode(message.kubeletConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); if (message.bootDiskKmsKey != null && Object.hasOwnProperty.call(message, "bootDiskKmsKey")) writer.uint32(/* id 23, wireType 2 =*/186).string(message.bootDiskKmsKey); + if (message.gcfsConfig != null && Object.hasOwnProperty.call(message, "gcfsConfig")) + $root.google.container.v1.GcfsConfig.encode(message.gcfsConfig, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.advancedMachineFeatures != null && Object.hasOwnProperty.call(message, "advancedMachineFeatures")) + $root.google.container.v1.AdvancedMachineFeatures.encode(message.advancedMachineFeatures, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + if (message.gvnic != null && Object.hasOwnProperty.call(message, "gvnic")) + $root.google.container.v1.VirtualNIC.encode(message.gvnic, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); return writer; }; @@ -1564,9 +2078,24 @@ case 20: message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.decode(reader, reader.uint32()); break; + case 21: + message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.decode(reader, reader.uint32()); + break; + case 22: + message.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); + break; case 23: message.bootDiskKmsKey = reader.string(); break; + case 25: + message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); + break; + case 26: + message.advancedMachineFeatures = $root.google.container.v1.AdvancedMachineFeatures.decode(reader, reader.uint32()); + break; + case 29: + message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -1697,9 +2226,34 @@ if (error) return "shieldedInstanceConfig." + error; } + if (message.linuxNodeConfig != null && message.hasOwnProperty("linuxNodeConfig")) { + var error = $root.google.container.v1.LinuxNodeConfig.verify(message.linuxNodeConfig); + if (error) + return "linuxNodeConfig." + error; + } + if (message.kubeletConfig != null && message.hasOwnProperty("kubeletConfig")) { + var error = $root.google.container.v1.NodeKubeletConfig.verify(message.kubeletConfig); + if (error) + return "kubeletConfig." + error; + } if (message.bootDiskKmsKey != null && message.hasOwnProperty("bootDiskKmsKey")) if (!$util.isString(message.bootDiskKmsKey)) return "bootDiskKmsKey: string expected"; + if (message.gcfsConfig != null && message.hasOwnProperty("gcfsConfig")) { + var error = $root.google.container.v1.GcfsConfig.verify(message.gcfsConfig); + if (error) + return "gcfsConfig." + error; + } + if (message.advancedMachineFeatures != null && message.hasOwnProperty("advancedMachineFeatures")) { + var error = $root.google.container.v1.AdvancedMachineFeatures.verify(message.advancedMachineFeatures); + if (error) + return "advancedMachineFeatures." + error; + } + if (message.gvnic != null && message.hasOwnProperty("gvnic")) { + var error = $root.google.container.v1.VirtualNIC.verify(message.gvnic); + if (error) + return "gvnic." + error; + } return null; }; @@ -1801,8 +2355,33 @@ throw TypeError(".google.container.v1.NodeConfig.shieldedInstanceConfig: object expected"); message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.fromObject(object.shieldedInstanceConfig); } + if (object.linuxNodeConfig != null) { + if (typeof object.linuxNodeConfig !== "object") + throw TypeError(".google.container.v1.NodeConfig.linuxNodeConfig: object expected"); + message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.fromObject(object.linuxNodeConfig); + } + if (object.kubeletConfig != null) { + if (typeof object.kubeletConfig !== "object") + throw TypeError(".google.container.v1.NodeConfig.kubeletConfig: object expected"); + message.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.fromObject(object.kubeletConfig); + } if (object.bootDiskKmsKey != null) message.bootDiskKmsKey = String(object.bootDiskKmsKey); + if (object.gcfsConfig != null) { + if (typeof object.gcfsConfig !== "object") + throw TypeError(".google.container.v1.NodeConfig.gcfsConfig: object expected"); + message.gcfsConfig = $root.google.container.v1.GcfsConfig.fromObject(object.gcfsConfig); + } + if (object.advancedMachineFeatures != null) { + if (typeof object.advancedMachineFeatures !== "object") + throw TypeError(".google.container.v1.NodeConfig.advancedMachineFeatures: object expected"); + message.advancedMachineFeatures = $root.google.container.v1.AdvancedMachineFeatures.fromObject(object.advancedMachineFeatures); + } + if (object.gvnic != null) { + if (typeof object.gvnic !== "object") + throw TypeError(".google.container.v1.NodeConfig.gvnic: object expected"); + message.gvnic = $root.google.container.v1.VirtualNIC.fromObject(object.gvnic); + } return message; }; @@ -1843,7 +2422,12 @@ object.nodeGroup = ""; object.reservationAffinity = null; object.shieldedInstanceConfig = null; + object.linuxNodeConfig = null; + object.kubeletConfig = null; object.bootDiskKmsKey = ""; + object.gcfsConfig = null; + object.advancedMachineFeatures = null; + object.gvnic = null; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -1902,8 +2486,18 @@ 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.linuxNodeConfig != null && message.hasOwnProperty("linuxNodeConfig")) + object.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.toObject(message.linuxNodeConfig, options); + if (message.kubeletConfig != null && message.hasOwnProperty("kubeletConfig")) + object.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.toObject(message.kubeletConfig, options); if (message.bootDiskKmsKey != null && message.hasOwnProperty("bootDiskKmsKey")) object.bootDiskKmsKey = message.bootDiskKmsKey; + if (message.gcfsConfig != null && message.hasOwnProperty("gcfsConfig")) + object.gcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.gcfsConfig, options); + if (message.advancedMachineFeatures != null && message.hasOwnProperty("advancedMachineFeatures")) + object.advancedMachineFeatures = $root.google.container.v1.AdvancedMachineFeatures.toObject(message.advancedMachineFeatures, options); + if (message.gvnic != null && message.hasOwnProperty("gvnic")) + object.gvnic = $root.google.container.v1.VirtualNIC.toObject(message.gvnic, options); return object; }; @@ -1921,6 +2515,453 @@ return NodeConfig; })(); + v1.AdvancedMachineFeatures = (function() { + + /** + * Properties of an AdvancedMachineFeatures. + * @memberof google.container.v1 + * @interface IAdvancedMachineFeatures + * @property {number|Long|null} [threadsPerCore] AdvancedMachineFeatures threadsPerCore + */ + + /** + * Constructs a new AdvancedMachineFeatures. + * @memberof google.container.v1 + * @classdesc Represents an AdvancedMachineFeatures. + * @implements IAdvancedMachineFeatures + * @constructor + * @param {google.container.v1.IAdvancedMachineFeatures=} [properties] Properties to set + */ + function AdvancedMachineFeatures(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]]; + } + + /** + * AdvancedMachineFeatures threadsPerCore. + * @member {number|Long|null|undefined} threadsPerCore + * @memberof google.container.v1.AdvancedMachineFeatures + * @instance + */ + AdvancedMachineFeatures.prototype.threadsPerCore = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AdvancedMachineFeatures _threadsPerCore. + * @member {"threadsPerCore"|undefined} _threadsPerCore + * @memberof google.container.v1.AdvancedMachineFeatures + * @instance + */ + Object.defineProperty(AdvancedMachineFeatures.prototype, "_threadsPerCore", { + get: $util.oneOfGetter($oneOfFields = ["threadsPerCore"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new AdvancedMachineFeatures instance using the specified properties. + * @function create + * @memberof google.container.v1.AdvancedMachineFeatures + * @static + * @param {google.container.v1.IAdvancedMachineFeatures=} [properties] Properties to set + * @returns {google.container.v1.AdvancedMachineFeatures} AdvancedMachineFeatures instance + */ + AdvancedMachineFeatures.create = function create(properties) { + return new AdvancedMachineFeatures(properties); + }; + + /** + * Encodes the specified AdvancedMachineFeatures message. Does not implicitly {@link google.container.v1.AdvancedMachineFeatures.verify|verify} messages. + * @function encode + * @memberof google.container.v1.AdvancedMachineFeatures + * @static + * @param {google.container.v1.IAdvancedMachineFeatures} message AdvancedMachineFeatures message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AdvancedMachineFeatures.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.threadsPerCore != null && Object.hasOwnProperty.call(message, "threadsPerCore")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.threadsPerCore); + return writer; + }; + + /** + * Encodes the specified AdvancedMachineFeatures message, length delimited. Does not implicitly {@link google.container.v1.AdvancedMachineFeatures.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.AdvancedMachineFeatures + * @static + * @param {google.container.v1.IAdvancedMachineFeatures} message AdvancedMachineFeatures message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AdvancedMachineFeatures.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AdvancedMachineFeatures message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.AdvancedMachineFeatures + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.AdvancedMachineFeatures} AdvancedMachineFeatures + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AdvancedMachineFeatures.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.AdvancedMachineFeatures(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.threadsPerCore = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AdvancedMachineFeatures message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.AdvancedMachineFeatures + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.AdvancedMachineFeatures} AdvancedMachineFeatures + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AdvancedMachineFeatures.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AdvancedMachineFeatures message. + * @function verify + * @memberof google.container.v1.AdvancedMachineFeatures + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AdvancedMachineFeatures.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.threadsPerCore != null && message.hasOwnProperty("threadsPerCore")) { + properties._threadsPerCore = 1; + if (!$util.isInteger(message.threadsPerCore) && !(message.threadsPerCore && $util.isInteger(message.threadsPerCore.low) && $util.isInteger(message.threadsPerCore.high))) + return "threadsPerCore: integer|Long expected"; + } + return null; + }; + + /** + * Creates an AdvancedMachineFeatures message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.AdvancedMachineFeatures + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.AdvancedMachineFeatures} AdvancedMachineFeatures + */ + AdvancedMachineFeatures.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.AdvancedMachineFeatures) + return object; + var message = new $root.google.container.v1.AdvancedMachineFeatures(); + if (object.threadsPerCore != null) + if ($util.Long) + (message.threadsPerCore = $util.Long.fromValue(object.threadsPerCore)).unsigned = false; + else if (typeof object.threadsPerCore === "string") + message.threadsPerCore = parseInt(object.threadsPerCore, 10); + else if (typeof object.threadsPerCore === "number") + message.threadsPerCore = object.threadsPerCore; + else if (typeof object.threadsPerCore === "object") + message.threadsPerCore = new $util.LongBits(object.threadsPerCore.low >>> 0, object.threadsPerCore.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from an AdvancedMachineFeatures message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.AdvancedMachineFeatures + * @static + * @param {google.container.v1.AdvancedMachineFeatures} message AdvancedMachineFeatures + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AdvancedMachineFeatures.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.threadsPerCore != null && message.hasOwnProperty("threadsPerCore")) { + if (typeof message.threadsPerCore === "number") + object.threadsPerCore = options.longs === String ? String(message.threadsPerCore) : message.threadsPerCore; + else + object.threadsPerCore = options.longs === String ? $util.Long.prototype.toString.call(message.threadsPerCore) : options.longs === Number ? new $util.LongBits(message.threadsPerCore.low >>> 0, message.threadsPerCore.high >>> 0).toNumber() : message.threadsPerCore; + if (options.oneofs) + object._threadsPerCore = "threadsPerCore"; + } + return object; + }; + + /** + * Converts this AdvancedMachineFeatures to JSON. + * @function toJSON + * @memberof google.container.v1.AdvancedMachineFeatures + * @instance + * @returns {Object.} JSON object + */ + AdvancedMachineFeatures.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AdvancedMachineFeatures; + })(); + + v1.NodeNetworkConfig = (function() { + + /** + * Properties of a NodeNetworkConfig. + * @memberof google.container.v1 + * @interface INodeNetworkConfig + * @property {boolean|null} [createPodRange] NodeNetworkConfig createPodRange + * @property {string|null} [podRange] NodeNetworkConfig podRange + * @property {string|null} [podIpv4CidrBlock] NodeNetworkConfig podIpv4CidrBlock + */ + + /** + * Constructs a new NodeNetworkConfig. + * @memberof google.container.v1 + * @classdesc Represents a NodeNetworkConfig. + * @implements INodeNetworkConfig + * @constructor + * @param {google.container.v1.INodeNetworkConfig=} [properties] Properties to set + */ + function NodeNetworkConfig(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]]; + } + + /** + * NodeNetworkConfig createPodRange. + * @member {boolean} createPodRange + * @memberof google.container.v1.NodeNetworkConfig + * @instance + */ + NodeNetworkConfig.prototype.createPodRange = false; + + /** + * NodeNetworkConfig podRange. + * @member {string} podRange + * @memberof google.container.v1.NodeNetworkConfig + * @instance + */ + NodeNetworkConfig.prototype.podRange = ""; + + /** + * NodeNetworkConfig podIpv4CidrBlock. + * @member {string} podIpv4CidrBlock + * @memberof google.container.v1.NodeNetworkConfig + * @instance + */ + NodeNetworkConfig.prototype.podIpv4CidrBlock = ""; + + /** + * Creates a new NodeNetworkConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NodeNetworkConfig + * @static + * @param {google.container.v1.INodeNetworkConfig=} [properties] Properties to set + * @returns {google.container.v1.NodeNetworkConfig} NodeNetworkConfig instance + */ + NodeNetworkConfig.create = function create(properties) { + return new NodeNetworkConfig(properties); + }; + + /** + * Encodes the specified NodeNetworkConfig message. Does not implicitly {@link google.container.v1.NodeNetworkConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodeNetworkConfig + * @static + * @param {google.container.v1.INodeNetworkConfig} message NodeNetworkConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeNetworkConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.createPodRange != null && Object.hasOwnProperty.call(message, "createPodRange")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.createPodRange); + if (message.podRange != null && Object.hasOwnProperty.call(message, "podRange")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.podRange); + if (message.podIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "podIpv4CidrBlock")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.podIpv4CidrBlock); + return writer; + }; + + /** + * Encodes the specified NodeNetworkConfig message, length delimited. Does not implicitly {@link google.container.v1.NodeNetworkConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodeNetworkConfig + * @static + * @param {google.container.v1.INodeNetworkConfig} message NodeNetworkConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeNetworkConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeNetworkConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodeNetworkConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodeNetworkConfig} NodeNetworkConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeNetworkConfig.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.NodeNetworkConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: + message.createPodRange = reader.bool(); + break; + case 5: + message.podRange = reader.string(); + break; + case 6: + message.podIpv4CidrBlock = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeNetworkConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodeNetworkConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodeNetworkConfig} NodeNetworkConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeNetworkConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeNetworkConfig message. + * @function verify + * @memberof google.container.v1.NodeNetworkConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeNetworkConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.createPodRange != null && message.hasOwnProperty("createPodRange")) + if (typeof message.createPodRange !== "boolean") + return "createPodRange: boolean expected"; + if (message.podRange != null && message.hasOwnProperty("podRange")) + if (!$util.isString(message.podRange)) + return "podRange: string expected"; + if (message.podIpv4CidrBlock != null && message.hasOwnProperty("podIpv4CidrBlock")) + if (!$util.isString(message.podIpv4CidrBlock)) + return "podIpv4CidrBlock: string expected"; + return null; + }; + + /** + * Creates a NodeNetworkConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodeNetworkConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodeNetworkConfig} NodeNetworkConfig + */ + NodeNetworkConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeNetworkConfig) + return object; + var message = new $root.google.container.v1.NodeNetworkConfig(); + if (object.createPodRange != null) + message.createPodRange = Boolean(object.createPodRange); + if (object.podRange != null) + message.podRange = String(object.podRange); + if (object.podIpv4CidrBlock != null) + message.podIpv4CidrBlock = String(object.podIpv4CidrBlock); + return message; + }; + + /** + * Creates a plain object from a NodeNetworkConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodeNetworkConfig + * @static + * @param {google.container.v1.NodeNetworkConfig} message NodeNetworkConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeNetworkConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.createPodRange = false; + object.podRange = ""; + object.podIpv4CidrBlock = ""; + } + if (message.createPodRange != null && message.hasOwnProperty("createPodRange")) + object.createPodRange = message.createPodRange; + if (message.podRange != null && message.hasOwnProperty("podRange")) + object.podRange = message.podRange; + if (message.podIpv4CidrBlock != null && message.hasOwnProperty("podIpv4CidrBlock")) + object.podIpv4CidrBlock = message.podIpv4CidrBlock; + return object; + }; + + /** + * Converts this NodeNetworkConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NodeNetworkConfig + * @instance + * @returns {Object.} JSON object + */ + NodeNetworkConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NodeNetworkConfig; + })(); + v1.ShieldedInstanceConfig = (function() { /** @@ -2345,6 +3386,193 @@ return SandboxConfig; })(); + v1.GcfsConfig = (function() { + + /** + * Properties of a GcfsConfig. + * @memberof google.container.v1 + * @interface IGcfsConfig + * @property {boolean|null} [enabled] GcfsConfig enabled + */ + + /** + * Constructs a new GcfsConfig. + * @memberof google.container.v1 + * @classdesc Represents a GcfsConfig. + * @implements IGcfsConfig + * @constructor + * @param {google.container.v1.IGcfsConfig=} [properties] Properties to set + */ + function GcfsConfig(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]]; + } + + /** + * GcfsConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.GcfsConfig + * @instance + */ + GcfsConfig.prototype.enabled = false; + + /** + * Creates a new GcfsConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.GcfsConfig + * @static + * @param {google.container.v1.IGcfsConfig=} [properties] Properties to set + * @returns {google.container.v1.GcfsConfig} GcfsConfig instance + */ + GcfsConfig.create = function create(properties) { + return new GcfsConfig(properties); + }; + + /** + * Encodes the specified GcfsConfig message. Does not implicitly {@link google.container.v1.GcfsConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GcfsConfig + * @static + * @param {google.container.v1.IGcfsConfig} message GcfsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcfsConfig.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 GcfsConfig message, length delimited. Does not implicitly {@link google.container.v1.GcfsConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GcfsConfig + * @static + * @param {google.container.v1.IGcfsConfig} message GcfsConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcfsConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GcfsConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.GcfsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.GcfsConfig} GcfsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcfsConfig.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.GcfsConfig(); + 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; + }; + + /** + * Decodes a GcfsConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GcfsConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.GcfsConfig} GcfsConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcfsConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcfsConfig message. + * @function verify + * @memberof google.container.v1.GcfsConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcfsConfig.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; + }; + + /** + * Creates a GcfsConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GcfsConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GcfsConfig} GcfsConfig + */ + GcfsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GcfsConfig) + return object; + var message = new $root.google.container.v1.GcfsConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a GcfsConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GcfsConfig + * @static + * @param {google.container.v1.GcfsConfig} message GcfsConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GcfsConfig.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 GcfsConfig to JSON. + * @function toJSON + * @memberof google.container.v1.GcfsConfig + * @instance + * @returns {Object.} JSON object + */ + GcfsConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GcfsConfig; + })(); + v1.ReservationAffinity = (function() { /** @@ -3411,6 +4639,8 @@ * @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 + * @property {google.container.v1.IGcePersistentDiskCsiDriverConfig|null} [gcePersistentDiskCsiDriverConfig] AddonsConfig gcePersistentDiskCsiDriverConfig + * @property {google.container.v1.IGcpFilestoreCsiDriverConfig|null} [gcpFilestoreCsiDriverConfig] AddonsConfig gcpFilestoreCsiDriverConfig */ /** @@ -3484,6 +4714,22 @@ */ AddonsConfig.prototype.configConnectorConfig = null; + /** + * AddonsConfig gcePersistentDiskCsiDriverConfig. + * @member {google.container.v1.IGcePersistentDiskCsiDriverConfig|null|undefined} gcePersistentDiskCsiDriverConfig + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.gcePersistentDiskCsiDriverConfig = null; + + /** + * AddonsConfig gcpFilestoreCsiDriverConfig. + * @member {google.container.v1.IGcpFilestoreCsiDriverConfig|null|undefined} gcpFilestoreCsiDriverConfig + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.gcpFilestoreCsiDriverConfig = null; + /** * Creates a new AddonsConfig instance using the specified properties. * @function create @@ -3522,6 +4768,10 @@ $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(); + if (message.gcePersistentDiskCsiDriverConfig != null && Object.hasOwnProperty.call(message, "gcePersistentDiskCsiDriverConfig")) + $root.google.container.v1.GcePersistentDiskCsiDriverConfig.encode(message.gcePersistentDiskCsiDriverConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.gcpFilestoreCsiDriverConfig != null && Object.hasOwnProperty.call(message, "gcpFilestoreCsiDriverConfig")) + $root.google.container.v1.GcpFilestoreCsiDriverConfig.encode(message.gcpFilestoreCsiDriverConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); return writer; }; @@ -3577,6 +4827,12 @@ case 10: message.configConnectorConfig = $root.google.container.v1.ConfigConnectorConfig.decode(reader, reader.uint32()); break; + case 11: + message.gcePersistentDiskCsiDriverConfig = $root.google.container.v1.GcePersistentDiskCsiDriverConfig.decode(reader, reader.uint32()); + break; + case 14: + message.gcpFilestoreCsiDriverConfig = $root.google.container.v1.GcpFilestoreCsiDriverConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -3647,6 +4903,16 @@ if (error) return "configConnectorConfig." + error; } + if (message.gcePersistentDiskCsiDriverConfig != null && message.hasOwnProperty("gcePersistentDiskCsiDriverConfig")) { + var error = $root.google.container.v1.GcePersistentDiskCsiDriverConfig.verify(message.gcePersistentDiskCsiDriverConfig); + if (error) + return "gcePersistentDiskCsiDriverConfig." + error; + } + if (message.gcpFilestoreCsiDriverConfig != null && message.hasOwnProperty("gcpFilestoreCsiDriverConfig")) { + var error = $root.google.container.v1.GcpFilestoreCsiDriverConfig.verify(message.gcpFilestoreCsiDriverConfig); + if (error) + return "gcpFilestoreCsiDriverConfig." + error; + } return null; }; @@ -3697,6 +4963,16 @@ throw TypeError(".google.container.v1.AddonsConfig.configConnectorConfig: object expected"); message.configConnectorConfig = $root.google.container.v1.ConfigConnectorConfig.fromObject(object.configConnectorConfig); } + if (object.gcePersistentDiskCsiDriverConfig != null) { + if (typeof object.gcePersistentDiskCsiDriverConfig !== "object") + throw TypeError(".google.container.v1.AddonsConfig.gcePersistentDiskCsiDriverConfig: object expected"); + message.gcePersistentDiskCsiDriverConfig = $root.google.container.v1.GcePersistentDiskCsiDriverConfig.fromObject(object.gcePersistentDiskCsiDriverConfig); + } + if (object.gcpFilestoreCsiDriverConfig != null) { + if (typeof object.gcpFilestoreCsiDriverConfig !== "object") + throw TypeError(".google.container.v1.AddonsConfig.gcpFilestoreCsiDriverConfig: object expected"); + message.gcpFilestoreCsiDriverConfig = $root.google.container.v1.GcpFilestoreCsiDriverConfig.fromObject(object.gcpFilestoreCsiDriverConfig); + } return message; }; @@ -3721,6 +4997,8 @@ object.cloudRunConfig = null; object.dnsCacheConfig = null; object.configConnectorConfig = null; + object.gcePersistentDiskCsiDriverConfig = null; + object.gcpFilestoreCsiDriverConfig = null; } if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) object.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.toObject(message.httpLoadBalancing, options); @@ -3736,6 +5014,10 @@ 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); + if (message.gcePersistentDiskCsiDriverConfig != null && message.hasOwnProperty("gcePersistentDiskCsiDriverConfig")) + object.gcePersistentDiskCsiDriverConfig = $root.google.container.v1.GcePersistentDiskCsiDriverConfig.toObject(message.gcePersistentDiskCsiDriverConfig, options); + if (message.gcpFilestoreCsiDriverConfig != null && message.hasOwnProperty("gcpFilestoreCsiDriverConfig")) + object.gcpFilestoreCsiDriverConfig = $root.google.container.v1.GcpFilestoreCsiDriverConfig.toObject(message.gcpFilestoreCsiDriverConfig, options); return object; }; @@ -5841,6 +7123,380 @@ return ConfigConnectorConfig; })(); + v1.GcePersistentDiskCsiDriverConfig = (function() { + + /** + * Properties of a GcePersistentDiskCsiDriverConfig. + * @memberof google.container.v1 + * @interface IGcePersistentDiskCsiDriverConfig + * @property {boolean|null} [enabled] GcePersistentDiskCsiDriverConfig enabled + */ + + /** + * Constructs a new GcePersistentDiskCsiDriverConfig. + * @memberof google.container.v1 + * @classdesc Represents a GcePersistentDiskCsiDriverConfig. + * @implements IGcePersistentDiskCsiDriverConfig + * @constructor + * @param {google.container.v1.IGcePersistentDiskCsiDriverConfig=} [properties] Properties to set + */ + function GcePersistentDiskCsiDriverConfig(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]]; + } + + /** + * GcePersistentDiskCsiDriverConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @instance + */ + GcePersistentDiskCsiDriverConfig.prototype.enabled = false; + + /** + * Creates a new GcePersistentDiskCsiDriverConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @static + * @param {google.container.v1.IGcePersistentDiskCsiDriverConfig=} [properties] Properties to set + * @returns {google.container.v1.GcePersistentDiskCsiDriverConfig} GcePersistentDiskCsiDriverConfig instance + */ + GcePersistentDiskCsiDriverConfig.create = function create(properties) { + return new GcePersistentDiskCsiDriverConfig(properties); + }; + + /** + * Encodes the specified GcePersistentDiskCsiDriverConfig message. Does not implicitly {@link google.container.v1.GcePersistentDiskCsiDriverConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @static + * @param {google.container.v1.IGcePersistentDiskCsiDriverConfig} message GcePersistentDiskCsiDriverConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcePersistentDiskCsiDriverConfig.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 GcePersistentDiskCsiDriverConfig message, length delimited. Does not implicitly {@link google.container.v1.GcePersistentDiskCsiDriverConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @static + * @param {google.container.v1.IGcePersistentDiskCsiDriverConfig} message GcePersistentDiskCsiDriverConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcePersistentDiskCsiDriverConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GcePersistentDiskCsiDriverConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.GcePersistentDiskCsiDriverConfig} GcePersistentDiskCsiDriverConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcePersistentDiskCsiDriverConfig.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.GcePersistentDiskCsiDriverConfig(); + 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; + }; + + /** + * Decodes a GcePersistentDiskCsiDriverConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.GcePersistentDiskCsiDriverConfig} GcePersistentDiskCsiDriverConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcePersistentDiskCsiDriverConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcePersistentDiskCsiDriverConfig message. + * @function verify + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcePersistentDiskCsiDriverConfig.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; + }; + + /** + * Creates a GcePersistentDiskCsiDriverConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GcePersistentDiskCsiDriverConfig} GcePersistentDiskCsiDriverConfig + */ + GcePersistentDiskCsiDriverConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GcePersistentDiskCsiDriverConfig) + return object; + var message = new $root.google.container.v1.GcePersistentDiskCsiDriverConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a GcePersistentDiskCsiDriverConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @static + * @param {google.container.v1.GcePersistentDiskCsiDriverConfig} message GcePersistentDiskCsiDriverConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GcePersistentDiskCsiDriverConfig.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 GcePersistentDiskCsiDriverConfig to JSON. + * @function toJSON + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @instance + * @returns {Object.} JSON object + */ + GcePersistentDiskCsiDriverConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GcePersistentDiskCsiDriverConfig; + })(); + + v1.GcpFilestoreCsiDriverConfig = (function() { + + /** + * Properties of a GcpFilestoreCsiDriverConfig. + * @memberof google.container.v1 + * @interface IGcpFilestoreCsiDriverConfig + * @property {boolean|null} [enabled] GcpFilestoreCsiDriverConfig enabled + */ + + /** + * Constructs a new GcpFilestoreCsiDriverConfig. + * @memberof google.container.v1 + * @classdesc Represents a GcpFilestoreCsiDriverConfig. + * @implements IGcpFilestoreCsiDriverConfig + * @constructor + * @param {google.container.v1.IGcpFilestoreCsiDriverConfig=} [properties] Properties to set + */ + function GcpFilestoreCsiDriverConfig(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]]; + } + + /** + * GcpFilestoreCsiDriverConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @instance + */ + GcpFilestoreCsiDriverConfig.prototype.enabled = false; + + /** + * Creates a new GcpFilestoreCsiDriverConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @static + * @param {google.container.v1.IGcpFilestoreCsiDriverConfig=} [properties] Properties to set + * @returns {google.container.v1.GcpFilestoreCsiDriverConfig} GcpFilestoreCsiDriverConfig instance + */ + GcpFilestoreCsiDriverConfig.create = function create(properties) { + return new GcpFilestoreCsiDriverConfig(properties); + }; + + /** + * Encodes the specified GcpFilestoreCsiDriverConfig message. Does not implicitly {@link google.container.v1.GcpFilestoreCsiDriverConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @static + * @param {google.container.v1.IGcpFilestoreCsiDriverConfig} message GcpFilestoreCsiDriverConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcpFilestoreCsiDriverConfig.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 GcpFilestoreCsiDriverConfig message, length delimited. Does not implicitly {@link google.container.v1.GcpFilestoreCsiDriverConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @static + * @param {google.container.v1.IGcpFilestoreCsiDriverConfig} message GcpFilestoreCsiDriverConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GcpFilestoreCsiDriverConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GcpFilestoreCsiDriverConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.GcpFilestoreCsiDriverConfig} GcpFilestoreCsiDriverConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcpFilestoreCsiDriverConfig.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.GcpFilestoreCsiDriverConfig(); + 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; + }; + + /** + * Decodes a GcpFilestoreCsiDriverConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.GcpFilestoreCsiDriverConfig} GcpFilestoreCsiDriverConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GcpFilestoreCsiDriverConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GcpFilestoreCsiDriverConfig message. + * @function verify + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GcpFilestoreCsiDriverConfig.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; + }; + + /** + * Creates a GcpFilestoreCsiDriverConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GcpFilestoreCsiDriverConfig} GcpFilestoreCsiDriverConfig + */ + GcpFilestoreCsiDriverConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GcpFilestoreCsiDriverConfig) + return object; + var message = new $root.google.container.v1.GcpFilestoreCsiDriverConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a GcpFilestoreCsiDriverConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @static + * @param {google.container.v1.GcpFilestoreCsiDriverConfig} message GcpFilestoreCsiDriverConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GcpFilestoreCsiDriverConfig.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 GcpFilestoreCsiDriverConfig to JSON. + * @function toJSON + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @instance + * @returns {Object.} JSON object + */ + GcpFilestoreCsiDriverConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GcpFilestoreCsiDriverConfig; + })(); + v1.MasterAuthorizedNetworksConfig = (function() { /** @@ -7384,6 +9040,9 @@ * @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 {google.container.v1.IMeshCertificates|null} [meshCertificates] Cluster meshCertificates + * @property {google.container.v1.INotificationConfig|null} [notificationConfig] Cluster notificationConfig + * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] Cluster confidentialNodes * @property {string|null} [selfLink] Cluster selfLink * @property {string|null} [zone] Cluster zone * @property {string|null} [endpoint] Cluster endpoint @@ -7402,6 +9061,11 @@ * @property {boolean|null} [enableTpu] Cluster enableTpu * @property {string|null} [tpuIpv4CidrBlock] Cluster tpuIpv4CidrBlock * @property {Array.|null} [conditions] Cluster conditions + * @property {google.container.v1.IAutopilot|null} [autopilot] Cluster autopilot + * @property {string|null} [id] Cluster id + * @property {google.container.v1.INodePoolDefaults|null} [nodePoolDefaults] Cluster nodePoolDefaults + * @property {google.container.v1.ILoggingConfig|null} [loggingConfig] Cluster loggingConfig + * @property {google.container.v1.IMonitoringConfig|null} [monitoringConfig] Cluster monitoringConfig */ /** @@ -7688,6 +9352,30 @@ */ Cluster.prototype.workloadIdentityConfig = null; + /** + * Cluster meshCertificates. + * @member {google.container.v1.IMeshCertificates|null|undefined} meshCertificates + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.meshCertificates = null; + + /** + * Cluster notificationConfig. + * @member {google.container.v1.INotificationConfig|null|undefined} notificationConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.notificationConfig = null; + + /** + * Cluster confidentialNodes. + * @member {google.container.v1.IConfidentialNodes|null|undefined} confidentialNodes + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.confidentialNodes = null; + /** * Cluster selfLink. * @member {string} selfLink @@ -7832,6 +9520,60 @@ */ Cluster.prototype.conditions = $util.emptyArray; + /** + * Cluster autopilot. + * @member {google.container.v1.IAutopilot|null|undefined} autopilot + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.autopilot = null; + + /** + * Cluster id. + * @member {string} id + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.id = ""; + + /** + * Cluster nodePoolDefaults. + * @member {google.container.v1.INodePoolDefaults|null|undefined} nodePoolDefaults + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.nodePoolDefaults = null; + + /** + * Cluster loggingConfig. + * @member {google.container.v1.ILoggingConfig|null|undefined} loggingConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.loggingConfig = null; + + /** + * Cluster monitoringConfig. + * @member {google.container.v1.IMonitoringConfig|null|undefined} monitoringConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.monitoringConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Cluster _nodePoolDefaults. + * @member {"nodePoolDefaults"|undefined} _nodePoolDefaults + * @memberof google.container.v1.Cluster + * @instance + */ + Object.defineProperty(Cluster.prototype, "_nodePoolDefaults", { + get: $util.oneOfGetter($oneOfFields = ["nodePoolDefaults"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new Cluster instance using the specified properties. * @function create @@ -7925,6 +9667,12 @@ $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.notificationConfig != null && Object.hasOwnProperty.call(message, "notificationConfig")) + $root.google.container.v1.NotificationConfig.encode(message.notificationConfig, writer.uint32(/* id 49, wireType 2 =*/394).fork()).ldelim(); + if (message.confidentialNodes != null && Object.hasOwnProperty.call(message, "confidentialNodes")) + $root.google.container.v1.ConfidentialNodes.encode(message.confidentialNodes, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); + if (message.meshCertificates != null && Object.hasOwnProperty.call(message, "meshCertificates")) + $root.google.container.v1.MeshCertificates.encode(message.meshCertificates, writer.uint32(/* id 67, wireType 2 =*/538).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")) @@ -7963,6 +9711,16 @@ 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.autopilot != null && Object.hasOwnProperty.call(message, "autopilot")) + $root.google.container.v1.Autopilot.encode(message.autopilot, writer.uint32(/* id 128, wireType 2 =*/1026).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 129, wireType 2 =*/1034).string(message.id); + if (message.nodePoolDefaults != null && Object.hasOwnProperty.call(message, "nodePoolDefaults")) + $root.google.container.v1.NodePoolDefaults.encode(message.nodePoolDefaults, writer.uint32(/* id 131, wireType 2 =*/1050).fork()).ldelim(); + if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) + $root.google.container.v1.LoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 132, wireType 2 =*/1058).fork()).ldelim(); + if (message.monitoringConfig != null && Object.hasOwnProperty.call(message, "monitoringConfig")) + $root.google.container.v1.MonitoringConfig.encode(message.monitoringConfig, writer.uint32(/* id 133, wireType 2 =*/1066).fork()).ldelim(); return writer; }; @@ -8119,6 +9877,15 @@ case 43: message.workloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.decode(reader, reader.uint32()); break; + case 67: + message.meshCertificates = $root.google.container.v1.MeshCertificates.decode(reader, reader.uint32()); + break; + case 49: + message.notificationConfig = $root.google.container.v1.NotificationConfig.decode(reader, reader.uint32()); + break; + case 50: + message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); + break; case 100: message.selfLink = reader.string(); break; @@ -8177,6 +9944,21 @@ message.conditions = []; message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); break; + case 128: + message.autopilot = $root.google.container.v1.Autopilot.decode(reader, reader.uint32()); + break; + case 129: + message.id = reader.string(); + break; + case 131: + message.nodePoolDefaults = $root.google.container.v1.NodePoolDefaults.decode(reader, reader.uint32()); + break; + case 132: + message.loggingConfig = $root.google.container.v1.LoggingConfig.decode(reader, reader.uint32()); + break; + case 133: + message.monitoringConfig = $root.google.container.v1.MonitoringConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -8212,6 +9994,7 @@ Cluster.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"; @@ -8366,6 +10149,21 @@ if (error) return "workloadIdentityConfig." + error; } + if (message.meshCertificates != null && message.hasOwnProperty("meshCertificates")) { + var error = $root.google.container.v1.MeshCertificates.verify(message.meshCertificates); + if (error) + return "meshCertificates." + error; + } + if (message.notificationConfig != null && message.hasOwnProperty("notificationConfig")) { + var error = $root.google.container.v1.NotificationConfig.verify(message.notificationConfig); + if (error) + return "notificationConfig." + error; + } + if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) { + var error = $root.google.container.v1.ConfidentialNodes.verify(message.confidentialNodes); + if (error) + return "confidentialNodes." + error; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) if (!$util.isString(message.selfLink)) return "selfLink: string expected"; @@ -8440,6 +10238,32 @@ return "conditions." + error; } } + if (message.autopilot != null && message.hasOwnProperty("autopilot")) { + var error = $root.google.container.v1.Autopilot.verify(message.autopilot); + if (error) + return "autopilot." + error; + } + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.nodePoolDefaults != null && message.hasOwnProperty("nodePoolDefaults")) { + properties._nodePoolDefaults = 1; + { + var error = $root.google.container.v1.NodePoolDefaults.verify(message.nodePoolDefaults); + if (error) + return "nodePoolDefaults." + error; + } + } + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) { + var error = $root.google.container.v1.LoggingConfig.verify(message.loggingConfig); + if (error) + return "loggingConfig." + error; + } + if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) { + var error = $root.google.container.v1.MonitoringConfig.verify(message.monitoringConfig); + if (error) + return "monitoringConfig." + error; + } return null; }; @@ -8599,6 +10423,21 @@ throw TypeError(".google.container.v1.Cluster.workloadIdentityConfig: object expected"); message.workloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.fromObject(object.workloadIdentityConfig); } + if (object.meshCertificates != null) { + if (typeof object.meshCertificates !== "object") + throw TypeError(".google.container.v1.Cluster.meshCertificates: object expected"); + message.meshCertificates = $root.google.container.v1.MeshCertificates.fromObject(object.meshCertificates); + } + if (object.notificationConfig != null) { + if (typeof object.notificationConfig !== "object") + throw TypeError(".google.container.v1.Cluster.notificationConfig: object expected"); + message.notificationConfig = $root.google.container.v1.NotificationConfig.fromObject(object.notificationConfig); + } + if (object.confidentialNodes != null) { + if (typeof object.confidentialNodes !== "object") + throw TypeError(".google.container.v1.Cluster.confidentialNodes: object expected"); + message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.fromObject(object.confidentialNodes); + } if (object.selfLink != null) message.selfLink = String(object.selfLink); if (object.zone != null) @@ -8676,6 +10515,28 @@ message.conditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.conditions[i]); } } + if (object.autopilot != null) { + if (typeof object.autopilot !== "object") + throw TypeError(".google.container.v1.Cluster.autopilot: object expected"); + message.autopilot = $root.google.container.v1.Autopilot.fromObject(object.autopilot); + } + if (object.id != null) + message.id = String(object.id); + if (object.nodePoolDefaults != null) { + if (typeof object.nodePoolDefaults !== "object") + throw TypeError(".google.container.v1.Cluster.nodePoolDefaults: object expected"); + message.nodePoolDefaults = $root.google.container.v1.NodePoolDefaults.fromObject(object.nodePoolDefaults); + } + if (object.loggingConfig != null) { + if (typeof object.loggingConfig !== "object") + throw TypeError(".google.container.v1.Cluster.loggingConfig: object expected"); + message.loggingConfig = $root.google.container.v1.LoggingConfig.fromObject(object.loggingConfig); + } + if (object.monitoringConfig != null) { + if (typeof object.monitoringConfig !== "object") + throw TypeError(".google.container.v1.Cluster.monitoringConfig: object expected"); + message.monitoringConfig = $root.google.container.v1.MonitoringConfig.fromObject(object.monitoringConfig); + } return message; }; @@ -8731,6 +10592,9 @@ object.shieldedNodes = null; object.releaseChannel = null; object.workloadIdentityConfig = null; + object.notificationConfig = null; + object.confidentialNodes = null; + object.meshCertificates = null; object.selfLink = ""; object.zone = ""; object.endpoint = ""; @@ -8747,6 +10611,10 @@ object.location = ""; object.enableTpu = false; object.tpuIpv4CidrBlock = ""; + object.autopilot = null; + object.id = ""; + object.loggingConfig = null; + object.monitoringConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -8824,6 +10692,12 @@ 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.notificationConfig != null && message.hasOwnProperty("notificationConfig")) + object.notificationConfig = $root.google.container.v1.NotificationConfig.toObject(message.notificationConfig, options); + if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) + object.confidentialNodes = $root.google.container.v1.ConfidentialNodes.toObject(message.confidentialNodes, options); + if (message.meshCertificates != null && message.hasOwnProperty("meshCertificates")) + object.meshCertificates = $root.google.container.v1.MeshCertificates.toObject(message.meshCertificates, options); if (message.selfLink != null && message.hasOwnProperty("selfLink")) object.selfLink = message.selfLink; if (message.zone != null && message.hasOwnProperty("zone")) @@ -8866,6 +10740,19 @@ for (var j = 0; j < message.conditions.length; ++j) object.conditions[j] = $root.google.container.v1.StatusCondition.toObject(message.conditions[j], options); } + if (message.autopilot != null && message.hasOwnProperty("autopilot")) + object.autopilot = $root.google.container.v1.Autopilot.toObject(message.autopilot, options); + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.nodePoolDefaults != null && message.hasOwnProperty("nodePoolDefaults")) { + object.nodePoolDefaults = $root.google.container.v1.NodePoolDefaults.toObject(message.nodePoolDefaults, options); + if (options.oneofs) + object._nodePoolDefaults = "nodePoolDefaults"; + } + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) + object.loggingConfig = $root.google.container.v1.LoggingConfig.toObject(message.loggingConfig, options); + if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) + object.monitoringConfig = $root.google.container.v1.MonitoringConfig.toObject(message.monitoringConfig, options); return object; }; @@ -8907,6 +10794,390 @@ return Cluster; })(); + v1.NodePoolDefaults = (function() { + + /** + * Properties of a NodePoolDefaults. + * @memberof google.container.v1 + * @interface INodePoolDefaults + * @property {google.container.v1.INodeConfigDefaults|null} [nodeConfigDefaults] NodePoolDefaults nodeConfigDefaults + */ + + /** + * Constructs a new NodePoolDefaults. + * @memberof google.container.v1 + * @classdesc Represents a NodePoolDefaults. + * @implements INodePoolDefaults + * @constructor + * @param {google.container.v1.INodePoolDefaults=} [properties] Properties to set + */ + function NodePoolDefaults(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]]; + } + + /** + * NodePoolDefaults nodeConfigDefaults. + * @member {google.container.v1.INodeConfigDefaults|null|undefined} nodeConfigDefaults + * @memberof google.container.v1.NodePoolDefaults + * @instance + */ + NodePoolDefaults.prototype.nodeConfigDefaults = null; + + /** + * Creates a new NodePoolDefaults instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {google.container.v1.INodePoolDefaults=} [properties] Properties to set + * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults instance + */ + NodePoolDefaults.create = function create(properties) { + return new NodePoolDefaults(properties); + }; + + /** + * Encodes the specified NodePoolDefaults message. Does not implicitly {@link google.container.v1.NodePoolDefaults.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {google.container.v1.INodePoolDefaults} message NodePoolDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolDefaults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.nodeConfigDefaults != null && Object.hasOwnProperty.call(message, "nodeConfigDefaults")) + $root.google.container.v1.NodeConfigDefaults.encode(message.nodeConfigDefaults, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodePoolDefaults message, length delimited. Does not implicitly {@link google.container.v1.NodePoolDefaults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {google.container.v1.INodePoolDefaults} message NodePoolDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolDefaults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodePoolDefaults message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolDefaults.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.NodePoolDefaults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodePoolDefaults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolDefaults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodePoolDefaults message. + * @function verify + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodePoolDefaults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.nodeConfigDefaults != null && message.hasOwnProperty("nodeConfigDefaults")) { + var error = $root.google.container.v1.NodeConfigDefaults.verify(message.nodeConfigDefaults); + if (error) + return "nodeConfigDefaults." + error; + } + return null; + }; + + /** + * Creates a NodePoolDefaults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePoolDefaults} NodePoolDefaults + */ + NodePoolDefaults.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePoolDefaults) + return object; + var message = new $root.google.container.v1.NodePoolDefaults(); + if (object.nodeConfigDefaults != null) { + if (typeof object.nodeConfigDefaults !== "object") + throw TypeError(".google.container.v1.NodePoolDefaults.nodeConfigDefaults: object expected"); + message.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.fromObject(object.nodeConfigDefaults); + } + return message; + }; + + /** + * Creates a plain object from a NodePoolDefaults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {google.container.v1.NodePoolDefaults} message NodePoolDefaults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodePoolDefaults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.nodeConfigDefaults = null; + if (message.nodeConfigDefaults != null && message.hasOwnProperty("nodeConfigDefaults")) + object.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.toObject(message.nodeConfigDefaults, options); + return object; + }; + + /** + * Converts this NodePoolDefaults to JSON. + * @function toJSON + * @memberof google.container.v1.NodePoolDefaults + * @instance + * @returns {Object.} JSON object + */ + NodePoolDefaults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NodePoolDefaults; + })(); + + v1.NodeConfigDefaults = (function() { + + /** + * Properties of a NodeConfigDefaults. + * @memberof google.container.v1 + * @interface INodeConfigDefaults + * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] NodeConfigDefaults gcfsConfig + */ + + /** + * Constructs a new NodeConfigDefaults. + * @memberof google.container.v1 + * @classdesc Represents a NodeConfigDefaults. + * @implements INodeConfigDefaults + * @constructor + * @param {google.container.v1.INodeConfigDefaults=} [properties] Properties to set + */ + function NodeConfigDefaults(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]]; + } + + /** + * NodeConfigDefaults gcfsConfig. + * @member {google.container.v1.IGcfsConfig|null|undefined} gcfsConfig + * @memberof google.container.v1.NodeConfigDefaults + * @instance + */ + NodeConfigDefaults.prototype.gcfsConfig = null; + + /** + * Creates a new NodeConfigDefaults instance using the specified properties. + * @function create + * @memberof google.container.v1.NodeConfigDefaults + * @static + * @param {google.container.v1.INodeConfigDefaults=} [properties] Properties to set + * @returns {google.container.v1.NodeConfigDefaults} NodeConfigDefaults instance + */ + NodeConfigDefaults.create = function create(properties) { + return new NodeConfigDefaults(properties); + }; + + /** + * Encodes the specified NodeConfigDefaults message. Does not implicitly {@link google.container.v1.NodeConfigDefaults.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodeConfigDefaults + * @static + * @param {google.container.v1.INodeConfigDefaults} message NodeConfigDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeConfigDefaults.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.gcfsConfig != null && Object.hasOwnProperty.call(message, "gcfsConfig")) + $root.google.container.v1.GcfsConfig.encode(message.gcfsConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodeConfigDefaults message, length delimited. Does not implicitly {@link google.container.v1.NodeConfigDefaults.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodeConfigDefaults + * @static + * @param {google.container.v1.INodeConfigDefaults} message NodeConfigDefaults message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeConfigDefaults.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeConfigDefaults message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodeConfigDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodeConfigDefaults} NodeConfigDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeConfigDefaults.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.NodeConfigDefaults(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeConfigDefaults message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodeConfigDefaults + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodeConfigDefaults} NodeConfigDefaults + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeConfigDefaults.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeConfigDefaults message. + * @function verify + * @memberof google.container.v1.NodeConfigDefaults + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeConfigDefaults.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.gcfsConfig != null && message.hasOwnProperty("gcfsConfig")) { + var error = $root.google.container.v1.GcfsConfig.verify(message.gcfsConfig); + if (error) + return "gcfsConfig." + error; + } + return null; + }; + + /** + * Creates a NodeConfigDefaults message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodeConfigDefaults + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodeConfigDefaults} NodeConfigDefaults + */ + NodeConfigDefaults.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeConfigDefaults) + return object; + var message = new $root.google.container.v1.NodeConfigDefaults(); + if (object.gcfsConfig != null) { + if (typeof object.gcfsConfig !== "object") + throw TypeError(".google.container.v1.NodeConfigDefaults.gcfsConfig: object expected"); + message.gcfsConfig = $root.google.container.v1.GcfsConfig.fromObject(object.gcfsConfig); + } + return message; + }; + + /** + * Creates a plain object from a NodeConfigDefaults message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodeConfigDefaults + * @static + * @param {google.container.v1.NodeConfigDefaults} message NodeConfigDefaults + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeConfigDefaults.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.gcfsConfig = null; + if (message.gcfsConfig != null && message.hasOwnProperty("gcfsConfig")) + object.gcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.gcfsConfig, options); + return object; + }; + + /** + * Converts this NodeConfigDefaults to JSON. + * @function toJSON + * @memberof google.container.v1.NodeConfigDefaults + * @instance + * @returns {Object.} JSON object + */ + NodeConfigDefaults.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NodeConfigDefaults; + })(); + v1.ClusterUpdate = (function() { /** @@ -8920,7 +11191,9 @@ * @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.IMeshCertificates|null} [desiredMeshCertificates] ClusterUpdate desiredMeshCertificates * @property {google.container.v1.IShieldedNodes|null} [desiredShieldedNodes] ClusterUpdate desiredShieldedNodes + * @property {google.container.v1.IDNSConfig|null} [desiredDnsConfig] ClusterUpdate desiredDnsConfig * @property {google.container.v1.INodePoolAutoscaling|null} [desiredNodePoolAutoscaling] ClusterUpdate desiredNodePoolAutoscaling * @property {Array.|null} [desiredLocations] ClusterUpdate desiredLocations * @property {google.container.v1.IMasterAuthorizedNetworksConfig|null} [desiredMasterAuthorizedNetworksConfig] ClusterUpdate desiredMasterAuthorizedNetworksConfig @@ -8933,8 +11206,16 @@ * @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 {google.container.v1.IILBSubsettingConfig|null} [desiredL4ilbSubsettingConfig] ClusterUpdate desiredL4ilbSubsettingConfig + * @property {google.container.v1.DatapathProvider|null} [desiredDatapathProvider] ClusterUpdate desiredDatapathProvider + * @property {google.container.v1.PrivateIPv6GoogleAccess|null} [desiredPrivateIpv6GoogleAccess] ClusterUpdate desiredPrivateIpv6GoogleAccess + * @property {google.container.v1.INotificationConfig|null} [desiredNotificationConfig] ClusterUpdate desiredNotificationConfig * @property {google.container.v1.IAuthenticatorGroupsConfig|null} [desiredAuthenticatorGroupsConfig] ClusterUpdate desiredAuthenticatorGroupsConfig + * @property {google.container.v1.ILoggingConfig|null} [desiredLoggingConfig] ClusterUpdate desiredLoggingConfig + * @property {google.container.v1.IMonitoringConfig|null} [desiredMonitoringConfig] ClusterUpdate desiredMonitoringConfig + * @property {google.container.v1.IServiceExternalIPsConfig|null} [desiredServiceExternalIpsConfig] ClusterUpdate desiredServiceExternalIpsConfig * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion + * @property {google.container.v1.IGcfsConfig|null} [desiredGcfsConfig] ClusterUpdate desiredGcfsConfig */ /** @@ -9009,6 +11290,14 @@ */ ClusterUpdate.prototype.desiredWorkloadIdentityConfig = null; + /** + * ClusterUpdate desiredMeshCertificates. + * @member {google.container.v1.IMeshCertificates|null|undefined} desiredMeshCertificates + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredMeshCertificates = null; + /** * ClusterUpdate desiredShieldedNodes. * @member {google.container.v1.IShieldedNodes|null|undefined} desiredShieldedNodes @@ -9017,6 +11306,14 @@ */ ClusterUpdate.prototype.desiredShieldedNodes = null; + /** + * ClusterUpdate desiredDnsConfig. + * @member {google.container.v1.IDNSConfig|null|undefined} desiredDnsConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredDnsConfig = null; + /** * ClusterUpdate desiredNodePoolAutoscaling. * @member {google.container.v1.INodePoolAutoscaling|null|undefined} desiredNodePoolAutoscaling @@ -9113,6 +11410,38 @@ */ ClusterUpdate.prototype.desiredReleaseChannel = null; + /** + * ClusterUpdate desiredL4ilbSubsettingConfig. + * @member {google.container.v1.IILBSubsettingConfig|null|undefined} desiredL4ilbSubsettingConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredL4ilbSubsettingConfig = null; + + /** + * ClusterUpdate desiredDatapathProvider. + * @member {google.container.v1.DatapathProvider} desiredDatapathProvider + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredDatapathProvider = 0; + + /** + * ClusterUpdate desiredPrivateIpv6GoogleAccess. + * @member {google.container.v1.PrivateIPv6GoogleAccess} desiredPrivateIpv6GoogleAccess + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredPrivateIpv6GoogleAccess = 0; + + /** + * ClusterUpdate desiredNotificationConfig. + * @member {google.container.v1.INotificationConfig|null|undefined} desiredNotificationConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredNotificationConfig = null; + /** * ClusterUpdate desiredAuthenticatorGroupsConfig. * @member {google.container.v1.IAuthenticatorGroupsConfig|null|undefined} desiredAuthenticatorGroupsConfig @@ -9121,6 +11450,30 @@ */ ClusterUpdate.prototype.desiredAuthenticatorGroupsConfig = null; + /** + * ClusterUpdate desiredLoggingConfig. + * @member {google.container.v1.ILoggingConfig|null|undefined} desiredLoggingConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredLoggingConfig = null; + + /** + * ClusterUpdate desiredMonitoringConfig. + * @member {google.container.v1.IMonitoringConfig|null|undefined} desiredMonitoringConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredMonitoringConfig = null; + + /** + * ClusterUpdate desiredServiceExternalIpsConfig. + * @member {google.container.v1.IServiceExternalIPsConfig|null|undefined} desiredServiceExternalIpsConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredServiceExternalIpsConfig = null; + /** * ClusterUpdate desiredMasterVersion. * @member {string} desiredMasterVersion @@ -9129,6 +11482,14 @@ */ ClusterUpdate.prototype.desiredMasterVersion = ""; + /** + * ClusterUpdate desiredGcfsConfig. + * @member {google.container.v1.IGcfsConfig|null|undefined} desiredGcfsConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredGcfsConfig = null; + /** * Creates a new ClusterUpdate instance using the specified properties. * @function create @@ -9188,16 +11549,36 @@ $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.desiredL4ilbSubsettingConfig != null && Object.hasOwnProperty.call(message, "desiredL4ilbSubsettingConfig")) + $root.google.container.v1.ILBSubsettingConfig.encode(message.desiredL4ilbSubsettingConfig, writer.uint32(/* id 39, wireType 2 =*/314).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.desiredDatapathProvider != null && Object.hasOwnProperty.call(message, "desiredDatapathProvider")) + writer.uint32(/* id 50, wireType 0 =*/400).int32(message.desiredDatapathProvider); + if (message.desiredPrivateIpv6GoogleAccess != null && Object.hasOwnProperty.call(message, "desiredPrivateIpv6GoogleAccess")) + writer.uint32(/* id 51, wireType 0 =*/408).int32(message.desiredPrivateIpv6GoogleAccess); + if (message.desiredDnsConfig != null && Object.hasOwnProperty.call(message, "desiredDnsConfig")) + $root.google.container.v1.DNSConfig.encode(message.desiredDnsConfig, writer.uint32(/* id 53, wireType 2 =*/426).fork()).ldelim(); + if (message.desiredNotificationConfig != null && Object.hasOwnProperty.call(message, "desiredNotificationConfig")) + $root.google.container.v1.NotificationConfig.encode(message.desiredNotificationConfig, writer.uint32(/* id 55, wireType 2 =*/442).fork()).ldelim(); + if (message.desiredServiceExternalIpsConfig != null && Object.hasOwnProperty.call(message, "desiredServiceExternalIpsConfig")) + $root.google.container.v1.ServiceExternalIPsConfig.encode(message.desiredServiceExternalIpsConfig, writer.uint32(/* id 60, wireType 2 =*/482).fork()).ldelim(); if (message.desiredAuthenticatorGroupsConfig != null && Object.hasOwnProperty.call(message, "desiredAuthenticatorGroupsConfig")) $root.google.container.v1.AuthenticatorGroupsConfig.encode(message.desiredAuthenticatorGroupsConfig, writer.uint32(/* id 63, wireType 2 =*/506).fork()).ldelim(); + if (message.desiredLoggingConfig != null && Object.hasOwnProperty.call(message, "desiredLoggingConfig")) + $root.google.container.v1.LoggingConfig.encode(message.desiredLoggingConfig, writer.uint32(/* id 64, wireType 2 =*/514).fork()).ldelim(); + if (message.desiredMonitoringConfig != null && Object.hasOwnProperty.call(message, "desiredMonitoringConfig")) + $root.google.container.v1.MonitoringConfig.encode(message.desiredMonitoringConfig, writer.uint32(/* id 65, wireType 2 =*/522).fork()).ldelim(); + if (message.desiredMeshCertificates != null && Object.hasOwnProperty.call(message, "desiredMeshCertificates")) + $root.google.container.v1.MeshCertificates.encode(message.desiredMeshCertificates, writer.uint32(/* id 67, wireType 2 =*/538).fork()).ldelim(); if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); + if (message.desiredGcfsConfig != null && Object.hasOwnProperty.call(message, "desiredGcfsConfig")) + $root.google.container.v1.GcfsConfig.encode(message.desiredGcfsConfig, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); return writer; }; @@ -9253,9 +11634,15 @@ case 47: message.desiredWorkloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.decode(reader, reader.uint32()); break; + case 67: + message.desiredMeshCertificates = $root.google.container.v1.MeshCertificates.decode(reader, reader.uint32()); + break; case 48: message.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.decode(reader, reader.uint32()); break; + case 53: + message.desiredDnsConfig = $root.google.container.v1.DNSConfig.decode(reader, reader.uint32()); + break; case 9: message.desiredNodePoolAutoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); break; @@ -9294,12 +11681,36 @@ case 31: message.desiredReleaseChannel = $root.google.container.v1.ReleaseChannel.decode(reader, reader.uint32()); break; + case 39: + message.desiredL4ilbSubsettingConfig = $root.google.container.v1.ILBSubsettingConfig.decode(reader, reader.uint32()); + break; + case 50: + message.desiredDatapathProvider = reader.int32(); + break; + case 51: + message.desiredPrivateIpv6GoogleAccess = reader.int32(); + break; + case 55: + message.desiredNotificationConfig = $root.google.container.v1.NotificationConfig.decode(reader, reader.uint32()); + break; case 63: message.desiredAuthenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.decode(reader, reader.uint32()); break; + case 64: + message.desiredLoggingConfig = $root.google.container.v1.LoggingConfig.decode(reader, reader.uint32()); + break; + case 65: + message.desiredMonitoringConfig = $root.google.container.v1.MonitoringConfig.decode(reader, reader.uint32()); + break; + case 60: + message.desiredServiceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.decode(reader, reader.uint32()); + break; case 100: message.desiredMasterVersion = reader.string(); break; + case 109: + message.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -9362,11 +11773,21 @@ if (error) return "desiredWorkloadIdentityConfig." + error; } + if (message.desiredMeshCertificates != null && message.hasOwnProperty("desiredMeshCertificates")) { + var error = $root.google.container.v1.MeshCertificates.verify(message.desiredMeshCertificates); + if (error) + return "desiredMeshCertificates." + 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.desiredDnsConfig != null && message.hasOwnProperty("desiredDnsConfig")) { + var error = $root.google.container.v1.DNSConfig.verify(message.desiredDnsConfig); + if (error) + return "desiredDnsConfig." + error; + } if (message.desiredNodePoolAutoscaling != null && message.hasOwnProperty("desiredNodePoolAutoscaling")) { var error = $root.google.container.v1.NodePoolAutoscaling.verify(message.desiredNodePoolAutoscaling); if (error) @@ -9427,14 +11848,63 @@ if (error) return "desiredReleaseChannel." + error; } + if (message.desiredL4ilbSubsettingConfig != null && message.hasOwnProperty("desiredL4ilbSubsettingConfig")) { + var error = $root.google.container.v1.ILBSubsettingConfig.verify(message.desiredL4ilbSubsettingConfig); + if (error) + return "desiredL4ilbSubsettingConfig." + error; + } + if (message.desiredDatapathProvider != null && message.hasOwnProperty("desiredDatapathProvider")) + switch (message.desiredDatapathProvider) { + default: + return "desiredDatapathProvider: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.desiredPrivateIpv6GoogleAccess != null && message.hasOwnProperty("desiredPrivateIpv6GoogleAccess")) + switch (message.desiredPrivateIpv6GoogleAccess) { + default: + return "desiredPrivateIpv6GoogleAccess: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.desiredNotificationConfig != null && message.hasOwnProperty("desiredNotificationConfig")) { + var error = $root.google.container.v1.NotificationConfig.verify(message.desiredNotificationConfig); + if (error) + return "desiredNotificationConfig." + error; + } if (message.desiredAuthenticatorGroupsConfig != null && message.hasOwnProperty("desiredAuthenticatorGroupsConfig")) { var error = $root.google.container.v1.AuthenticatorGroupsConfig.verify(message.desiredAuthenticatorGroupsConfig); if (error) return "desiredAuthenticatorGroupsConfig." + error; } + if (message.desiredLoggingConfig != null && message.hasOwnProperty("desiredLoggingConfig")) { + var error = $root.google.container.v1.LoggingConfig.verify(message.desiredLoggingConfig); + if (error) + return "desiredLoggingConfig." + error; + } + if (message.desiredMonitoringConfig != null && message.hasOwnProperty("desiredMonitoringConfig")) { + var error = $root.google.container.v1.MonitoringConfig.verify(message.desiredMonitoringConfig); + if (error) + return "desiredMonitoringConfig." + error; + } + if (message.desiredServiceExternalIpsConfig != null && message.hasOwnProperty("desiredServiceExternalIpsConfig")) { + var error = $root.google.container.v1.ServiceExternalIPsConfig.verify(message.desiredServiceExternalIpsConfig); + if (error) + return "desiredServiceExternalIpsConfig." + error; + } if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) if (!$util.isString(message.desiredMasterVersion)) return "desiredMasterVersion: string expected"; + if (message.desiredGcfsConfig != null && message.hasOwnProperty("desiredGcfsConfig")) { + var error = $root.google.container.v1.GcfsConfig.verify(message.desiredGcfsConfig); + if (error) + return "desiredGcfsConfig." + error; + } return null; }; @@ -9473,11 +11943,21 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredWorkloadIdentityConfig: object expected"); message.desiredWorkloadIdentityConfig = $root.google.container.v1.WorkloadIdentityConfig.fromObject(object.desiredWorkloadIdentityConfig); } + if (object.desiredMeshCertificates != null) { + if (typeof object.desiredMeshCertificates !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredMeshCertificates: object expected"); + message.desiredMeshCertificates = $root.google.container.v1.MeshCertificates.fromObject(object.desiredMeshCertificates); + } 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.desiredDnsConfig != null) { + if (typeof object.desiredDnsConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredDnsConfig: object expected"); + message.desiredDnsConfig = $root.google.container.v1.DNSConfig.fromObject(object.desiredDnsConfig); + } if (object.desiredNodePoolAutoscaling != null) { if (typeof object.desiredNodePoolAutoscaling !== "object") throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoscaling: object expected"); @@ -9537,13 +12017,75 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredReleaseChannel: object expected"); message.desiredReleaseChannel = $root.google.container.v1.ReleaseChannel.fromObject(object.desiredReleaseChannel); } + if (object.desiredL4ilbSubsettingConfig != null) { + if (typeof object.desiredL4ilbSubsettingConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredL4ilbSubsettingConfig: object expected"); + message.desiredL4ilbSubsettingConfig = $root.google.container.v1.ILBSubsettingConfig.fromObject(object.desiredL4ilbSubsettingConfig); + } + switch (object.desiredDatapathProvider) { + case "DATAPATH_PROVIDER_UNSPECIFIED": + case 0: + message.desiredDatapathProvider = 0; + break; + case "LEGACY_DATAPATH": + case 1: + message.desiredDatapathProvider = 1; + break; + case "ADVANCED_DATAPATH": + case 2: + message.desiredDatapathProvider = 2; + break; + } + switch (object.desiredPrivateIpv6GoogleAccess) { + case "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED": + case 0: + message.desiredPrivateIpv6GoogleAccess = 0; + break; + case "PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED": + case 1: + message.desiredPrivateIpv6GoogleAccess = 1; + break; + case "PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE": + case 2: + message.desiredPrivateIpv6GoogleAccess = 2; + break; + case "PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL": + case 3: + message.desiredPrivateIpv6GoogleAccess = 3; + break; + } + if (object.desiredNotificationConfig != null) { + if (typeof object.desiredNotificationConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredNotificationConfig: object expected"); + message.desiredNotificationConfig = $root.google.container.v1.NotificationConfig.fromObject(object.desiredNotificationConfig); + } if (object.desiredAuthenticatorGroupsConfig != null) { if (typeof object.desiredAuthenticatorGroupsConfig !== "object") throw TypeError(".google.container.v1.ClusterUpdate.desiredAuthenticatorGroupsConfig: object expected"); message.desiredAuthenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.fromObject(object.desiredAuthenticatorGroupsConfig); } + if (object.desiredLoggingConfig != null) { + if (typeof object.desiredLoggingConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredLoggingConfig: object expected"); + message.desiredLoggingConfig = $root.google.container.v1.LoggingConfig.fromObject(object.desiredLoggingConfig); + } + if (object.desiredMonitoringConfig != null) { + if (typeof object.desiredMonitoringConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredMonitoringConfig: object expected"); + message.desiredMonitoringConfig = $root.google.container.v1.MonitoringConfig.fromObject(object.desiredMonitoringConfig); + } + if (object.desiredServiceExternalIpsConfig != null) { + if (typeof object.desiredServiceExternalIpsConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredServiceExternalIpsConfig: object expected"); + message.desiredServiceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.fromObject(object.desiredServiceExternalIpsConfig); + } if (object.desiredMasterVersion != null) message.desiredMasterVersion = String(object.desiredMasterVersion); + if (object.desiredGcfsConfig != null) { + if (typeof object.desiredGcfsConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredGcfsConfig: object expected"); + message.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.fromObject(object.desiredGcfsConfig); + } return message; }; @@ -9579,11 +12121,21 @@ object.desiredIntraNodeVisibilityConfig = null; object.desiredDefaultSnatStatus = null; object.desiredReleaseChannel = null; + object.desiredL4ilbSubsettingConfig = null; object.desiredDatabaseEncryption = null; object.desiredWorkloadIdentityConfig = null; object.desiredShieldedNodes = null; + object.desiredDatapathProvider = options.enums === String ? "DATAPATH_PROVIDER_UNSPECIFIED" : 0; + object.desiredPrivateIpv6GoogleAccess = options.enums === String ? "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" : 0; + object.desiredDnsConfig = null; + object.desiredNotificationConfig = null; + object.desiredServiceExternalIpsConfig = null; object.desiredAuthenticatorGroupsConfig = null; + object.desiredLoggingConfig = null; + object.desiredMonitoringConfig = null; + object.desiredMeshCertificates = null; object.desiredMasterVersion = ""; + object.desiredGcfsConfig = null; } if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) object.desiredNodeVersion = message.desiredNodeVersion; @@ -9622,16 +12174,36 @@ 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.desiredL4ilbSubsettingConfig != null && message.hasOwnProperty("desiredL4ilbSubsettingConfig")) + object.desiredL4ilbSubsettingConfig = $root.google.container.v1.ILBSubsettingConfig.toObject(message.desiredL4ilbSubsettingConfig, 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.desiredDatapathProvider != null && message.hasOwnProperty("desiredDatapathProvider")) + object.desiredDatapathProvider = options.enums === String ? $root.google.container.v1.DatapathProvider[message.desiredDatapathProvider] : message.desiredDatapathProvider; + if (message.desiredPrivateIpv6GoogleAccess != null && message.hasOwnProperty("desiredPrivateIpv6GoogleAccess")) + object.desiredPrivateIpv6GoogleAccess = options.enums === String ? $root.google.container.v1.PrivateIPv6GoogleAccess[message.desiredPrivateIpv6GoogleAccess] : message.desiredPrivateIpv6GoogleAccess; + if (message.desiredDnsConfig != null && message.hasOwnProperty("desiredDnsConfig")) + object.desiredDnsConfig = $root.google.container.v1.DNSConfig.toObject(message.desiredDnsConfig, options); + if (message.desiredNotificationConfig != null && message.hasOwnProperty("desiredNotificationConfig")) + object.desiredNotificationConfig = $root.google.container.v1.NotificationConfig.toObject(message.desiredNotificationConfig, options); + if (message.desiredServiceExternalIpsConfig != null && message.hasOwnProperty("desiredServiceExternalIpsConfig")) + object.desiredServiceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.toObject(message.desiredServiceExternalIpsConfig, options); if (message.desiredAuthenticatorGroupsConfig != null && message.hasOwnProperty("desiredAuthenticatorGroupsConfig")) object.desiredAuthenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.toObject(message.desiredAuthenticatorGroupsConfig, options); + if (message.desiredLoggingConfig != null && message.hasOwnProperty("desiredLoggingConfig")) + object.desiredLoggingConfig = $root.google.container.v1.LoggingConfig.toObject(message.desiredLoggingConfig, options); + if (message.desiredMonitoringConfig != null && message.hasOwnProperty("desiredMonitoringConfig")) + object.desiredMonitoringConfig = $root.google.container.v1.MonitoringConfig.toObject(message.desiredMonitoringConfig, options); + if (message.desiredMeshCertificates != null && message.hasOwnProperty("desiredMeshCertificates")) + object.desiredMeshCertificates = $root.google.container.v1.MeshCertificates.toObject(message.desiredMeshCertificates, options); if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) object.desiredMasterVersion = message.desiredMasterVersion; + if (message.desiredGcfsConfig != null && message.hasOwnProperty("desiredGcfsConfig")) + object.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.desiredGcfsConfig, options); return object; }; @@ -9669,6 +12241,7 @@ * @property {google.container.v1.IOperationProgress|null} [progress] Operation progress * @property {Array.|null} [clusterConditions] Operation clusterConditions * @property {Array.|null} [nodepoolConditions] Operation nodepoolConditions + * @property {google.rpc.IStatus|null} [error] Operation error */ /** @@ -9800,6 +12373,14 @@ */ Operation.prototype.nodepoolConditions = $util.emptyArray; + /** + * Operation error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.container.v1.Operation + * @instance + */ + Operation.prototype.error = null; + /** * Creates a new Operation instance using the specified properties. * @function create @@ -9854,6 +12435,8 @@ 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.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); return writer; }; @@ -9934,6 +12517,9 @@ message.nodepoolConditions = []; message.nodepoolConditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); break; + case 15: + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -10053,6 +12639,11 @@ return "nodepoolConditions." + error; } } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } return null; }; @@ -10203,6 +12794,11 @@ message.nodepoolConditions[i] = $root.google.container.v1.StatusCondition.fromObject(object.nodepoolConditions[i]); } } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.container.v1.Operation.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } return message; }; @@ -10236,6 +12832,7 @@ object.startTime = ""; object.endTime = ""; object.progress = null; + object.error = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -10271,6 +12868,8 @@ for (var j = 0; j < message.nodepoolConditions.length; ++j) object.nodepoolConditions[j] = $root.google.container.v1.StatusCondition.toObject(message.nodepoolConditions[j], options); } + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); return object; }; @@ -11782,6 +14381,10 @@ * @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 + * @property {google.container.v1.ILinuxNodeConfig|null} [linuxNodeConfig] UpdateNodePoolRequest linuxNodeConfig + * @property {google.container.v1.INodeKubeletConfig|null} [kubeletConfig] UpdateNodePoolRequest kubeletConfig + * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] UpdateNodePoolRequest gcfsConfig + * @property {google.container.v1.IVirtualNIC|null} [gvnic] UpdateNodePoolRequest gvnic */ /** @@ -11880,6 +14483,38 @@ */ UpdateNodePoolRequest.prototype.upgradeSettings = null; + /** + * UpdateNodePoolRequest linuxNodeConfig. + * @member {google.container.v1.ILinuxNodeConfig|null|undefined} linuxNodeConfig + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.linuxNodeConfig = null; + + /** + * UpdateNodePoolRequest kubeletConfig. + * @member {google.container.v1.INodeKubeletConfig|null|undefined} kubeletConfig + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.kubeletConfig = null; + + /** + * UpdateNodePoolRequest gcfsConfig. + * @member {google.container.v1.IGcfsConfig|null|undefined} gcfsConfig + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.gcfsConfig = null; + + /** + * UpdateNodePoolRequest gvnic. + * @member {google.container.v1.IVirtualNIC|null|undefined} gvnic + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.gvnic = null; + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @function create @@ -11925,6 +14560,14 @@ $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(); + if (message.linuxNodeConfig != null && Object.hasOwnProperty.call(message, "linuxNodeConfig")) + $root.google.container.v1.LinuxNodeConfig.encode(message.linuxNodeConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.kubeletConfig != null && Object.hasOwnProperty.call(message, "kubeletConfig")) + $root.google.container.v1.NodeKubeletConfig.encode(message.kubeletConfig, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.gcfsConfig != null && Object.hasOwnProperty.call(message, "gcfsConfig")) + $root.google.container.v1.GcfsConfig.encode(message.gcfsConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.gvnic != null && Object.hasOwnProperty.call(message, "gvnic")) + $root.google.container.v1.VirtualNIC.encode(message.gvnic, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); return writer; }; @@ -11991,6 +14634,18 @@ case 15: message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); break; + case 19: + message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.decode(reader, reader.uint32()); + break; + case 20: + message.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); + break; + case 22: + message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); + break; + case 29: + message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -12064,6 +14719,26 @@ if (error) return "upgradeSettings." + error; } + if (message.linuxNodeConfig != null && message.hasOwnProperty("linuxNodeConfig")) { + var error = $root.google.container.v1.LinuxNodeConfig.verify(message.linuxNodeConfig); + if (error) + return "linuxNodeConfig." + error; + } + if (message.kubeletConfig != null && message.hasOwnProperty("kubeletConfig")) { + var error = $root.google.container.v1.NodeKubeletConfig.verify(message.kubeletConfig); + if (error) + return "kubeletConfig." + error; + } + if (message.gcfsConfig != null && message.hasOwnProperty("gcfsConfig")) { + var error = $root.google.container.v1.GcfsConfig.verify(message.gcfsConfig); + if (error) + return "gcfsConfig." + error; + } + if (message.gvnic != null && message.hasOwnProperty("gvnic")) { + var error = $root.google.container.v1.VirtualNIC.verify(message.gvnic); + if (error) + return "gvnic." + error; + } return null; }; @@ -12110,6 +14785,26 @@ throw TypeError(".google.container.v1.UpdateNodePoolRequest.upgradeSettings: object expected"); message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.fromObject(object.upgradeSettings); } + if (object.linuxNodeConfig != null) { + if (typeof object.linuxNodeConfig !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.linuxNodeConfig: object expected"); + message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.fromObject(object.linuxNodeConfig); + } + if (object.kubeletConfig != null) { + if (typeof object.kubeletConfig !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.kubeletConfig: object expected"); + message.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.fromObject(object.kubeletConfig); + } + if (object.gcfsConfig != null) { + if (typeof object.gcfsConfig !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.gcfsConfig: object expected"); + message.gcfsConfig = $root.google.container.v1.GcfsConfig.fromObject(object.gcfsConfig); + } + if (object.gvnic != null) { + if (typeof object.gvnic !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.gvnic: object expected"); + message.gvnic = $root.google.container.v1.VirtualNIC.fromObject(object.gvnic); + } return message; }; @@ -12138,6 +14833,10 @@ object.name = ""; object.workloadMetadataConfig = null; object.upgradeSettings = null; + object.linuxNodeConfig = null; + object.kubeletConfig = null; + object.gcfsConfig = null; + object.gvnic = null; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; @@ -12162,6 +14861,14 @@ 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); + if (message.linuxNodeConfig != null && message.hasOwnProperty("linuxNodeConfig")) + object.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.toObject(message.linuxNodeConfig, options); + if (message.kubeletConfig != null && message.hasOwnProperty("kubeletConfig")) + object.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.toObject(message.kubeletConfig, options); + if (message.gcfsConfig != null && message.hasOwnProperty("gcfsConfig")) + object.gcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.gcfsConfig, options); + if (message.gvnic != null && message.hasOwnProperty("gvnic")) + object.gvnic = $root.google.container.v1.VirtualNIC.toObject(message.gvnic, options); return object; }; @@ -17918,6 +20625,7 @@ * @property {google.container.v1.INodeConfig|null} [config] NodePool config * @property {number|null} [initialNodeCount] NodePool initialNodeCount * @property {Array.|null} [locations] NodePool locations + * @property {google.container.v1.INodeNetworkConfig|null} [networkConfig] NodePool networkConfig * @property {string|null} [selfLink] NodePool selfLink * @property {string|null} [version] NodePool version * @property {Array.|null} [instanceGroupUrls] NodePool instanceGroupUrls @@ -17981,6 +20689,14 @@ */ NodePool.prototype.locations = $util.emptyArray; + /** + * NodePool networkConfig. + * @member {google.container.v1.INodeNetworkConfig|null|undefined} networkConfig + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.networkConfig = null; + /** * NodePool selfLink. * @member {string} selfLink @@ -18110,6 +20826,8 @@ 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.networkConfig != null && Object.hasOwnProperty.call(message, "networkConfig")) + $root.google.container.v1.NodeNetworkConfig.encode(message.networkConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.selfLink); if (message.version != null && Object.hasOwnProperty.call(message, "version")) @@ -18174,6 +20892,9 @@ message.locations = []; message.locations.push(reader.string()); break; + case 14: + message.networkConfig = $root.google.container.v1.NodeNetworkConfig.decode(reader, reader.uint32()); + break; case 100: message.selfLink = reader.string(); break; @@ -18264,6 +20985,11 @@ if (!$util.isString(message.locations[i])) return "locations: string[] expected"; } + if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) { + var error = $root.google.container.v1.NodeNetworkConfig.verify(message.networkConfig); + if (error) + return "networkConfig." + error; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) if (!$util.isString(message.selfLink)) return "selfLink: string expected"; @@ -18356,6 +21082,11 @@ for (var i = 0; i < object.locations.length; ++i) message.locations[i] = String(object.locations[i]); } + if (object.networkConfig != null) { + if (typeof object.networkConfig !== "object") + throw TypeError(".google.container.v1.NodePool.networkConfig: object expected"); + message.networkConfig = $root.google.container.v1.NodeNetworkConfig.fromObject(object.networkConfig); + } if (object.selfLink != null) message.selfLink = String(object.selfLink); if (object.version != null) @@ -18460,6 +21191,7 @@ object.management = null; object.maxPodsConstraint = null; object.podIpv4CidrSize = 0; + object.networkConfig = null; object.selfLink = ""; object.version = ""; object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; @@ -18485,6 +21217,8 @@ for (var j = 0; j < message.locations.length; ++j) object.locations[j] = message.locations[j]; } + if (message.networkConfig != null && message.hasOwnProperty("networkConfig")) + object.networkConfig = $root.google.container.v1.NodeNetworkConfig.toObject(message.networkConfig, options); if (message.selfLink != null && message.hasOwnProperty("selfLink")) object.selfLink = message.selfLink; if (message.version != null && message.hasOwnProperty("version")) @@ -19734,6 +22468,7 @@ * Properties of a TimeWindow. * @memberof google.container.v1 * @interface ITimeWindow + * @property {google.container.v1.IMaintenanceExclusionOptions|null} [maintenanceExclusionOptions] TimeWindow maintenanceExclusionOptions * @property {google.protobuf.ITimestamp|null} [startTime] TimeWindow startTime * @property {google.protobuf.ITimestamp|null} [endTime] TimeWindow endTime */ @@ -19753,6 +22488,14 @@ this[keys[i]] = properties[keys[i]]; } + /** + * TimeWindow maintenanceExclusionOptions. + * @member {google.container.v1.IMaintenanceExclusionOptions|null|undefined} maintenanceExclusionOptions + * @memberof google.container.v1.TimeWindow + * @instance + */ + TimeWindow.prototype.maintenanceExclusionOptions = null; + /** * TimeWindow startTime. * @member {google.protobuf.ITimestamp|null|undefined} startTime @@ -19769,6 +22512,20 @@ */ TimeWindow.prototype.endTime = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TimeWindow options. + * @member {"maintenanceExclusionOptions"|undefined} options + * @memberof google.container.v1.TimeWindow + * @instance + */ + Object.defineProperty(TimeWindow.prototype, "options", { + get: $util.oneOfGetter($oneOfFields = ["maintenanceExclusionOptions"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new TimeWindow instance using the specified properties. * @function create @@ -19797,6 +22554,8 @@ $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.maintenanceExclusionOptions != null && Object.hasOwnProperty.call(message, "maintenanceExclusionOptions")) + $root.google.container.v1.MaintenanceExclusionOptions.encode(message.maintenanceExclusionOptions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -19831,6 +22590,9 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 3: + message.maintenanceExclusionOptions = $root.google.container.v1.MaintenanceExclusionOptions.decode(reader, reader.uint32()); + break; case 1: message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; @@ -19872,6 +22634,15 @@ TimeWindow.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; + if (message.maintenanceExclusionOptions != null && message.hasOwnProperty("maintenanceExclusionOptions")) { + properties.options = 1; + { + var error = $root.google.container.v1.MaintenanceExclusionOptions.verify(message.maintenanceExclusionOptions); + if (error) + return "maintenanceExclusionOptions." + error; + } + } if (message.startTime != null && message.hasOwnProperty("startTime")) { var error = $root.google.protobuf.Timestamp.verify(message.startTime); if (error) @@ -19897,6 +22668,11 @@ if (object instanceof $root.google.container.v1.TimeWindow) return object; var message = new $root.google.container.v1.TimeWindow(); + if (object.maintenanceExclusionOptions != null) { + if (typeof object.maintenanceExclusionOptions !== "object") + throw TypeError(".google.container.v1.TimeWindow.maintenanceExclusionOptions: object expected"); + message.maintenanceExclusionOptions = $root.google.container.v1.MaintenanceExclusionOptions.fromObject(object.maintenanceExclusionOptions); + } if (object.startTime != null) { if (typeof object.startTime !== "object") throw TypeError(".google.container.v1.TimeWindow.startTime: object expected"); @@ -19931,6 +22707,11 @@ object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); if (message.endTime != null && message.hasOwnProperty("endTime")) object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.maintenanceExclusionOptions != null && message.hasOwnProperty("maintenanceExclusionOptions")) { + object.maintenanceExclusionOptions = $root.google.container.v1.MaintenanceExclusionOptions.toObject(message.maintenanceExclusionOptions, options); + if (options.oneofs) + object.options = "maintenanceExclusionOptions"; + } return object; }; @@ -19948,6 +22729,227 @@ return TimeWindow; })(); + v1.MaintenanceExclusionOptions = (function() { + + /** + * Properties of a MaintenanceExclusionOptions. + * @memberof google.container.v1 + * @interface IMaintenanceExclusionOptions + * @property {google.container.v1.MaintenanceExclusionOptions.Scope|null} [scope] MaintenanceExclusionOptions scope + */ + + /** + * Constructs a new MaintenanceExclusionOptions. + * @memberof google.container.v1 + * @classdesc Represents a MaintenanceExclusionOptions. + * @implements IMaintenanceExclusionOptions + * @constructor + * @param {google.container.v1.IMaintenanceExclusionOptions=} [properties] Properties to set + */ + function MaintenanceExclusionOptions(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]]; + } + + /** + * MaintenanceExclusionOptions scope. + * @member {google.container.v1.MaintenanceExclusionOptions.Scope} scope + * @memberof google.container.v1.MaintenanceExclusionOptions + * @instance + */ + MaintenanceExclusionOptions.prototype.scope = 0; + + /** + * Creates a new MaintenanceExclusionOptions instance using the specified properties. + * @function create + * @memberof google.container.v1.MaintenanceExclusionOptions + * @static + * @param {google.container.v1.IMaintenanceExclusionOptions=} [properties] Properties to set + * @returns {google.container.v1.MaintenanceExclusionOptions} MaintenanceExclusionOptions instance + */ + MaintenanceExclusionOptions.create = function create(properties) { + return new MaintenanceExclusionOptions(properties); + }; + + /** + * Encodes the specified MaintenanceExclusionOptions message. Does not implicitly {@link google.container.v1.MaintenanceExclusionOptions.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MaintenanceExclusionOptions + * @static + * @param {google.container.v1.IMaintenanceExclusionOptions} message MaintenanceExclusionOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaintenanceExclusionOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.scope); + return writer; + }; + + /** + * Encodes the specified MaintenanceExclusionOptions message, length delimited. Does not implicitly {@link google.container.v1.MaintenanceExclusionOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MaintenanceExclusionOptions + * @static + * @param {google.container.v1.IMaintenanceExclusionOptions} message MaintenanceExclusionOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MaintenanceExclusionOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MaintenanceExclusionOptions message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.MaintenanceExclusionOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.MaintenanceExclusionOptions} MaintenanceExclusionOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaintenanceExclusionOptions.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.MaintenanceExclusionOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.scope = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MaintenanceExclusionOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MaintenanceExclusionOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.MaintenanceExclusionOptions} MaintenanceExclusionOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MaintenanceExclusionOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MaintenanceExclusionOptions message. + * @function verify + * @memberof google.container.v1.MaintenanceExclusionOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MaintenanceExclusionOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.scope != null && message.hasOwnProperty("scope")) + switch (message.scope) { + default: + return "scope: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a MaintenanceExclusionOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.MaintenanceExclusionOptions + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MaintenanceExclusionOptions} MaintenanceExclusionOptions + */ + MaintenanceExclusionOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MaintenanceExclusionOptions) + return object; + var message = new $root.google.container.v1.MaintenanceExclusionOptions(); + switch (object.scope) { + case "NO_UPGRADES": + case 0: + message.scope = 0; + break; + case "NO_MINOR_UPGRADES": + case 1: + message.scope = 1; + break; + case "NO_MINOR_OR_NODE_UPGRADES": + case 2: + message.scope = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a MaintenanceExclusionOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MaintenanceExclusionOptions + * @static + * @param {google.container.v1.MaintenanceExclusionOptions} message MaintenanceExclusionOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MaintenanceExclusionOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.scope = options.enums === String ? "NO_UPGRADES" : 0; + if (message.scope != null && message.hasOwnProperty("scope")) + object.scope = options.enums === String ? $root.google.container.v1.MaintenanceExclusionOptions.Scope[message.scope] : message.scope; + return object; + }; + + /** + * Converts this MaintenanceExclusionOptions to JSON. + * @function toJSON + * @memberof google.container.v1.MaintenanceExclusionOptions + * @instance + * @returns {Object.} JSON object + */ + MaintenanceExclusionOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Scope enum. + * @name google.container.v1.MaintenanceExclusionOptions.Scope + * @enum {number} + * @property {number} NO_UPGRADES=0 NO_UPGRADES value + * @property {number} NO_MINOR_UPGRADES=1 NO_MINOR_UPGRADES value + * @property {number} NO_MINOR_OR_NODE_UPGRADES=2 NO_MINOR_OR_NODE_UPGRADES value + */ + MaintenanceExclusionOptions.Scope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NO_UPGRADES"] = 0; + values[valuesById[1] = "NO_MINOR_UPGRADES"] = 1; + values[valuesById[2] = "NO_MINOR_OR_NODE_UPGRADES"] = 2; + return values; + })(); + + return MaintenanceExclusionOptions; + })(); + v1.RecurringTimeWindow = (function() { /** @@ -21466,6 +24468,7 @@ * @interface IClusterAutoscaling * @property {boolean|null} [enableNodeAutoprovisioning] ClusterAutoscaling enableNodeAutoprovisioning * @property {Array.|null} [resourceLimits] ClusterAutoscaling resourceLimits + * @property {google.container.v1.ClusterAutoscaling.AutoscalingProfile|null} [autoscalingProfile] ClusterAutoscaling autoscalingProfile * @property {google.container.v1.IAutoprovisioningNodePoolDefaults|null} [autoprovisioningNodePoolDefaults] ClusterAutoscaling autoprovisioningNodePoolDefaults * @property {Array.|null} [autoprovisioningLocations] ClusterAutoscaling autoprovisioningLocations */ @@ -21503,6 +24506,14 @@ */ ClusterAutoscaling.prototype.resourceLimits = $util.emptyArray; + /** + * ClusterAutoscaling autoscalingProfile. + * @member {google.container.v1.ClusterAutoscaling.AutoscalingProfile} autoscalingProfile + * @memberof google.container.v1.ClusterAutoscaling + * @instance + */ + ClusterAutoscaling.prototype.autoscalingProfile = 0; + /** * ClusterAutoscaling autoprovisioningNodePoolDefaults. * @member {google.container.v1.IAutoprovisioningNodePoolDefaults|null|undefined} autoprovisioningNodePoolDefaults @@ -21548,6 +24559,8 @@ if (message.resourceLimits != null && message.resourceLimits.length) for (var i = 0; i < message.resourceLimits.length; ++i) $root.google.container.v1.ResourceLimit.encode(message.resourceLimits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.autoscalingProfile != null && Object.hasOwnProperty.call(message, "autoscalingProfile")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.autoscalingProfile); if (message.autoprovisioningNodePoolDefaults != null && Object.hasOwnProperty.call(message, "autoprovisioningNodePoolDefaults")) $root.google.container.v1.AutoprovisioningNodePoolDefaults.encode(message.autoprovisioningNodePoolDefaults, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.autoprovisioningLocations != null && message.autoprovisioningLocations.length) @@ -21595,6 +24608,9 @@ message.resourceLimits = []; message.resourceLimits.push($root.google.container.v1.ResourceLimit.decode(reader, reader.uint32())); break; + case 3: + message.autoscalingProfile = reader.int32(); + break; case 4: message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.decode(reader, reader.uint32()); break; @@ -21650,6 +24666,15 @@ return "resourceLimits." + error; } } + if (message.autoscalingProfile != null && message.hasOwnProperty("autoscalingProfile")) + switch (message.autoscalingProfile) { + default: + return "autoscalingProfile: enum value expected"; + case 0: + case 1: + case 2: + break; + } if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) { var error = $root.google.container.v1.AutoprovisioningNodePoolDefaults.verify(message.autoprovisioningNodePoolDefaults); if (error) @@ -21689,6 +24714,20 @@ message.resourceLimits[i] = $root.google.container.v1.ResourceLimit.fromObject(object.resourceLimits[i]); } } + switch (object.autoscalingProfile) { + case "PROFILE_UNSPECIFIED": + case 0: + message.autoscalingProfile = 0; + break; + case "OPTIMIZE_UTILIZATION": + case 1: + message.autoscalingProfile = 1; + break; + case "BALANCED": + case 2: + message.autoscalingProfile = 2; + break; + } if (object.autoprovisioningNodePoolDefaults != null) { if (typeof object.autoprovisioningNodePoolDefaults !== "object") throw TypeError(".google.container.v1.ClusterAutoscaling.autoprovisioningNodePoolDefaults: object expected"); @@ -21723,6 +24762,7 @@ } if (options.defaults) { object.enableNodeAutoprovisioning = false; + object.autoscalingProfile = options.enums === String ? "PROFILE_UNSPECIFIED" : 0; object.autoprovisioningNodePoolDefaults = null; } if (message.enableNodeAutoprovisioning != null && message.hasOwnProperty("enableNodeAutoprovisioning")) @@ -21732,6 +24772,8 @@ for (var j = 0; j < message.resourceLimits.length; ++j) object.resourceLimits[j] = $root.google.container.v1.ResourceLimit.toObject(message.resourceLimits[j], options); } + if (message.autoscalingProfile != null && message.hasOwnProperty("autoscalingProfile")) + object.autoscalingProfile = options.enums === String ? $root.google.container.v1.ClusterAutoscaling.AutoscalingProfile[message.autoscalingProfile] : message.autoscalingProfile; if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) object.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.toObject(message.autoprovisioningNodePoolDefaults, options); if (message.autoprovisioningLocations && message.autoprovisioningLocations.length) { @@ -21753,6 +24795,22 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * AutoscalingProfile enum. + * @name google.container.v1.ClusterAutoscaling.AutoscalingProfile + * @enum {number} + * @property {number} PROFILE_UNSPECIFIED=0 PROFILE_UNSPECIFIED value + * @property {number} OPTIMIZE_UTILIZATION=1 OPTIMIZE_UTILIZATION value + * @property {number} BALANCED=2 BALANCED value + */ + ClusterAutoscaling.AutoscalingProfile = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROFILE_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIMIZE_UTILIZATION"] = 1; + values[valuesById[2] = "BALANCED"] = 2; + return values; + })(); + return ClusterAutoscaling; })(); @@ -23836,6 +26894,7 @@ * @interface IAcceleratorConfig * @property {number|Long|null} [acceleratorCount] AcceleratorConfig acceleratorCount * @property {string|null} [acceleratorType] AcceleratorConfig acceleratorType + * @property {string|null} [gpuPartitionSize] AcceleratorConfig gpuPartitionSize */ /** @@ -23869,6 +26928,14 @@ */ AcceleratorConfig.prototype.acceleratorType = ""; + /** + * AcceleratorConfig gpuPartitionSize. + * @member {string} gpuPartitionSize + * @memberof google.container.v1.AcceleratorConfig + * @instance + */ + AcceleratorConfig.prototype.gpuPartitionSize = ""; + /** * Creates a new AcceleratorConfig instance using the specified properties. * @function create @@ -23897,6 +26964,8 @@ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.acceleratorCount); if (message.acceleratorType != null && Object.hasOwnProperty.call(message, "acceleratorType")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); + if (message.gpuPartitionSize != null && Object.hasOwnProperty.call(message, "gpuPartitionSize")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.gpuPartitionSize); return writer; }; @@ -23937,6 +27006,9 @@ case 2: message.acceleratorType = reader.string(); break; + case 3: + message.gpuPartitionSize = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -23978,6 +27050,9 @@ if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) if (!$util.isString(message.acceleratorType)) return "acceleratorType: string expected"; + if (message.gpuPartitionSize != null && message.hasOwnProperty("gpuPartitionSize")) + if (!$util.isString(message.gpuPartitionSize)) + return "gpuPartitionSize: string expected"; return null; }; @@ -24004,6 +27079,8 @@ message.acceleratorCount = new $util.LongBits(object.acceleratorCount.low >>> 0, object.acceleratorCount.high >>> 0).toNumber(); if (object.acceleratorType != null) message.acceleratorType = String(object.acceleratorType); + if (object.gpuPartitionSize != null) + message.gpuPartitionSize = String(object.gpuPartitionSize); return message; }; @@ -24027,6 +27104,7 @@ } else object.acceleratorCount = options.longs === String ? "0" : 0; object.acceleratorType = ""; + object.gpuPartitionSize = ""; } if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) if (typeof message.acceleratorCount === "number") @@ -24035,6 +27113,8 @@ object.acceleratorCount = options.longs === String ? $util.Long.prototype.toString.call(message.acceleratorCount) : options.longs === Number ? new $util.LongBits(message.acceleratorCount.low >>> 0, message.acceleratorCount.high >>> 0).toNumber() : message.acceleratorCount; if (message.acceleratorType != null && message.hasOwnProperty("acceleratorType")) object.acceleratorType = message.acceleratorType; + if (message.gpuPartitionSize != null && message.hasOwnProperty("gpuPartitionSize")) + object.gpuPartitionSize = message.gpuPartitionSize; return object; }; @@ -24843,6 +27923,7 @@ * @interface IStatusCondition * @property {google.container.v1.StatusCondition.Code|null} [code] StatusCondition code * @property {string|null} [message] StatusCondition message + * @property {google.rpc.Code|null} [canonicalCode] StatusCondition canonicalCode */ /** @@ -24876,6 +27957,14 @@ */ StatusCondition.prototype.message = ""; + /** + * StatusCondition canonicalCode. + * @member {google.rpc.Code} canonicalCode + * @memberof google.container.v1.StatusCondition + * @instance + */ + StatusCondition.prototype.canonicalCode = 0; + /** * Creates a new StatusCondition instance using the specified properties. * @function create @@ -24904,6 +27993,8 @@ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); if (message.message != null && Object.hasOwnProperty.call(message, "message")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.canonicalCode != null && Object.hasOwnProperty.call(message, "canonicalCode")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.canonicalCode); return writer; }; @@ -24944,6 +28035,9 @@ case 2: message.message = reader.string(); break; + case 3: + message.canonicalCode = reader.int32(); + break; default: reader.skipType(tag & 7); break; @@ -24989,11 +28083,35 @@ case 3: case 4: case 7: + case 9: break; } if (message.message != null && message.hasOwnProperty("message")) if (!$util.isString(message.message)) return "message: string expected"; + if (message.canonicalCode != null && message.hasOwnProperty("canonicalCode")) + switch (message.canonicalCode) { + default: + return "canonicalCode: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 16: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + break; + } return null; }; @@ -25034,9 +28152,83 @@ case 7: message.code = 7; break; + case "CA_EXPIRING": + case 9: + message.code = 9; + break; } if (object.message != null) message.message = String(object.message); + switch (object.canonicalCode) { + case "OK": + case 0: + message.canonicalCode = 0; + break; + case "CANCELLED": + case 1: + message.canonicalCode = 1; + break; + case "UNKNOWN": + case 2: + message.canonicalCode = 2; + break; + case "INVALID_ARGUMENT": + case 3: + message.canonicalCode = 3; + break; + case "DEADLINE_EXCEEDED": + case 4: + message.canonicalCode = 4; + break; + case "NOT_FOUND": + case 5: + message.canonicalCode = 5; + break; + case "ALREADY_EXISTS": + case 6: + message.canonicalCode = 6; + break; + case "PERMISSION_DENIED": + case 7: + message.canonicalCode = 7; + break; + case "UNAUTHENTICATED": + case 16: + message.canonicalCode = 16; + break; + case "RESOURCE_EXHAUSTED": + case 8: + message.canonicalCode = 8; + break; + case "FAILED_PRECONDITION": + case 9: + message.canonicalCode = 9; + break; + case "ABORTED": + case 10: + message.canonicalCode = 10; + break; + case "OUT_OF_RANGE": + case 11: + message.canonicalCode = 11; + break; + case "UNIMPLEMENTED": + case 12: + message.canonicalCode = 12; + break; + case "INTERNAL": + case 13: + message.canonicalCode = 13; + break; + case "UNAVAILABLE": + case 14: + message.canonicalCode = 14; + break; + case "DATA_LOSS": + case 15: + message.canonicalCode = 15; + break; + } return message; }; @@ -25056,11 +28248,14 @@ if (options.defaults) { object.code = options.enums === String ? "UNKNOWN" : 0; object.message = ""; + object.canonicalCode = options.enums === String ? "OK" : 0; } if (message.code != null && message.hasOwnProperty("code")) object.code = options.enums === String ? $root.google.container.v1.StatusCondition.Code[message.code] : message.code; if (message.message != null && message.hasOwnProperty("message")) object.message = message.message; + if (message.canonicalCode != null && message.hasOwnProperty("canonicalCode")) + object.canonicalCode = options.enums === String ? $root.google.rpc.Code[message.canonicalCode] : message.canonicalCode; return object; }; @@ -25085,6 +28280,7 @@ * @property {number} GCE_QUOTA_EXCEEDED=3 GCE_QUOTA_EXCEEDED value * @property {number} SET_BY_OPERATOR=4 SET_BY_OPERATOR value * @property {number} CLOUD_KMS_KEY_ERROR=7 CLOUD_KMS_KEY_ERROR value + * @property {number} CA_EXPIRING=9 CA_EXPIRING value */ StatusCondition.Code = (function() { var valuesById = {}, values = Object.create(valuesById); @@ -25094,6 +28290,7 @@ values[valuesById[3] = "GCE_QUOTA_EXCEEDED"] = 3; values[valuesById[4] = "SET_BY_OPERATOR"] = 4; values[valuesById[7] = "CLOUD_KMS_KEY_ERROR"] = 7; + values[valuesById[9] = "CA_EXPIRING"] = 9; return values; })(); @@ -25110,6 +28307,11 @@ * @property {string|null} [subnetwork] NetworkConfig subnetwork * @property {boolean|null} [enableIntraNodeVisibility] NetworkConfig enableIntraNodeVisibility * @property {google.container.v1.IDefaultSnatStatus|null} [defaultSnatStatus] NetworkConfig defaultSnatStatus + * @property {boolean|null} [enableL4ilbSubsetting] NetworkConfig enableL4ilbSubsetting + * @property {google.container.v1.DatapathProvider|null} [datapathProvider] NetworkConfig datapathProvider + * @property {google.container.v1.PrivateIPv6GoogleAccess|null} [privateIpv6GoogleAccess] NetworkConfig privateIpv6GoogleAccess + * @property {google.container.v1.IDNSConfig|null} [dnsConfig] NetworkConfig dnsConfig + * @property {google.container.v1.IServiceExternalIPsConfig|null} [serviceExternalIpsConfig] NetworkConfig serviceExternalIpsConfig */ /** @@ -25159,6 +28361,46 @@ */ NetworkConfig.prototype.defaultSnatStatus = null; + /** + * NetworkConfig enableL4ilbSubsetting. + * @member {boolean} enableL4ilbSubsetting + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.enableL4ilbSubsetting = false; + + /** + * NetworkConfig datapathProvider. + * @member {google.container.v1.DatapathProvider} datapathProvider + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.datapathProvider = 0; + + /** + * NetworkConfig privateIpv6GoogleAccess. + * @member {google.container.v1.PrivateIPv6GoogleAccess} privateIpv6GoogleAccess + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.privateIpv6GoogleAccess = 0; + + /** + * NetworkConfig dnsConfig. + * @member {google.container.v1.IDNSConfig|null|undefined} dnsConfig + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.dnsConfig = null; + + /** + * NetworkConfig serviceExternalIpsConfig. + * @member {google.container.v1.IServiceExternalIPsConfig|null|undefined} serviceExternalIpsConfig + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.serviceExternalIpsConfig = null; + /** * Creates a new NetworkConfig instance using the specified properties. * @function create @@ -25191,6 +28433,16 @@ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enableIntraNodeVisibility); if (message.defaultSnatStatus != null && Object.hasOwnProperty.call(message, "defaultSnatStatus")) $root.google.container.v1.DefaultSnatStatus.encode(message.defaultSnatStatus, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.enableL4ilbSubsetting != null && Object.hasOwnProperty.call(message, "enableL4ilbSubsetting")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enableL4ilbSubsetting); + if (message.datapathProvider != null && Object.hasOwnProperty.call(message, "datapathProvider")) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.datapathProvider); + if (message.privateIpv6GoogleAccess != null && Object.hasOwnProperty.call(message, "privateIpv6GoogleAccess")) + writer.uint32(/* id 12, wireType 0 =*/96).int32(message.privateIpv6GoogleAccess); + if (message.dnsConfig != null && Object.hasOwnProperty.call(message, "dnsConfig")) + $root.google.container.v1.DNSConfig.encode(message.dnsConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.serviceExternalIpsConfig != null && Object.hasOwnProperty.call(message, "serviceExternalIpsConfig")) + $root.google.container.v1.ServiceExternalIPsConfig.encode(message.serviceExternalIpsConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); return writer; }; @@ -25237,6 +28489,21 @@ case 7: message.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.decode(reader, reader.uint32()); break; + case 10: + message.enableL4ilbSubsetting = reader.bool(); + break; + case 11: + message.datapathProvider = reader.int32(); + break; + case 12: + message.privateIpv6GoogleAccess = reader.int32(); + break; + case 13: + message.dnsConfig = $root.google.container.v1.DNSConfig.decode(reader, reader.uint32()); + break; + case 15: + message.serviceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -25286,6 +28553,38 @@ if (error) return "defaultSnatStatus." + error; } + if (message.enableL4ilbSubsetting != null && message.hasOwnProperty("enableL4ilbSubsetting")) + if (typeof message.enableL4ilbSubsetting !== "boolean") + return "enableL4ilbSubsetting: boolean expected"; + if (message.datapathProvider != null && message.hasOwnProperty("datapathProvider")) + switch (message.datapathProvider) { + default: + return "datapathProvider: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.privateIpv6GoogleAccess != null && message.hasOwnProperty("privateIpv6GoogleAccess")) + switch (message.privateIpv6GoogleAccess) { + default: + return "privateIpv6GoogleAccess: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.dnsConfig != null && message.hasOwnProperty("dnsConfig")) { + var error = $root.google.container.v1.DNSConfig.verify(message.dnsConfig); + if (error) + return "dnsConfig." + error; + } + if (message.serviceExternalIpsConfig != null && message.hasOwnProperty("serviceExternalIpsConfig")) { + var error = $root.google.container.v1.ServiceExternalIPsConfig.verify(message.serviceExternalIpsConfig); + if (error) + return "serviceExternalIpsConfig." + error; + } return null; }; @@ -25312,6 +28611,50 @@ throw TypeError(".google.container.v1.NetworkConfig.defaultSnatStatus: object expected"); message.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.fromObject(object.defaultSnatStatus); } + if (object.enableL4ilbSubsetting != null) + message.enableL4ilbSubsetting = Boolean(object.enableL4ilbSubsetting); + switch (object.datapathProvider) { + case "DATAPATH_PROVIDER_UNSPECIFIED": + case 0: + message.datapathProvider = 0; + break; + case "LEGACY_DATAPATH": + case 1: + message.datapathProvider = 1; + break; + case "ADVANCED_DATAPATH": + case 2: + message.datapathProvider = 2; + break; + } + switch (object.privateIpv6GoogleAccess) { + case "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED": + case 0: + message.privateIpv6GoogleAccess = 0; + break; + case "PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED": + case 1: + message.privateIpv6GoogleAccess = 1; + break; + case "PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE": + case 2: + message.privateIpv6GoogleAccess = 2; + break; + case "PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL": + case 3: + message.privateIpv6GoogleAccess = 3; + break; + } + if (object.dnsConfig != null) { + if (typeof object.dnsConfig !== "object") + throw TypeError(".google.container.v1.NetworkConfig.dnsConfig: object expected"); + message.dnsConfig = $root.google.container.v1.DNSConfig.fromObject(object.dnsConfig); + } + if (object.serviceExternalIpsConfig != null) { + if (typeof object.serviceExternalIpsConfig !== "object") + throw TypeError(".google.container.v1.NetworkConfig.serviceExternalIpsConfig: object expected"); + message.serviceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.fromObject(object.serviceExternalIpsConfig); + } return message; }; @@ -25333,6 +28676,11 @@ object.subnetwork = ""; object.enableIntraNodeVisibility = false; object.defaultSnatStatus = null; + object.enableL4ilbSubsetting = false; + object.datapathProvider = options.enums === String ? "DATAPATH_PROVIDER_UNSPECIFIED" : 0; + object.privateIpv6GoogleAccess = options.enums === String ? "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" : 0; + object.dnsConfig = null; + object.serviceExternalIpsConfig = null; } if (message.network != null && message.hasOwnProperty("network")) object.network = message.network; @@ -25342,6 +28690,16 @@ object.enableIntraNodeVisibility = message.enableIntraNodeVisibility; if (message.defaultSnatStatus != null && message.hasOwnProperty("defaultSnatStatus")) object.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.toObject(message.defaultSnatStatus, options); + if (message.enableL4ilbSubsetting != null && message.hasOwnProperty("enableL4ilbSubsetting")) + object.enableL4ilbSubsetting = message.enableL4ilbSubsetting; + if (message.datapathProvider != null && message.hasOwnProperty("datapathProvider")) + object.datapathProvider = options.enums === String ? $root.google.container.v1.DatapathProvider[message.datapathProvider] : message.datapathProvider; + if (message.privateIpv6GoogleAccess != null && message.hasOwnProperty("privateIpv6GoogleAccess")) + object.privateIpv6GoogleAccess = options.enums === String ? $root.google.container.v1.PrivateIPv6GoogleAccess[message.privateIpv6GoogleAccess] : message.privateIpv6GoogleAccess; + if (message.dnsConfig != null && message.hasOwnProperty("dnsConfig")) + object.dnsConfig = $root.google.container.v1.DNSConfig.toObject(message.dnsConfig, options); + if (message.serviceExternalIpsConfig != null && message.hasOwnProperty("serviceExternalIpsConfig")) + object.serviceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.toObject(message.serviceExternalIpsConfig, options); return object; }; @@ -25359,24 +28717,24 @@ return NetworkConfig; })(); - v1.GetOpenIDConfigRequest = (function() { + v1.ServiceExternalIPsConfig = (function() { /** - * Properties of a GetOpenIDConfigRequest. + * Properties of a ServiceExternalIPsConfig. * @memberof google.container.v1 - * @interface IGetOpenIDConfigRequest - * @property {string|null} [parent] GetOpenIDConfigRequest parent + * @interface IServiceExternalIPsConfig + * @property {boolean|null} [enabled] ServiceExternalIPsConfig enabled */ /** - * Constructs a new GetOpenIDConfigRequest. + * Constructs a new ServiceExternalIPsConfig. * @memberof google.container.v1 - * @classdesc Represents a GetOpenIDConfigRequest. - * @implements IGetOpenIDConfigRequest + * @classdesc Represents a ServiceExternalIPsConfig. + * @implements IServiceExternalIPsConfig * @constructor - * @param {google.container.v1.IGetOpenIDConfigRequest=} [properties] Properties to set + * @param {google.container.v1.IServiceExternalIPsConfig=} [properties] Properties to set */ - function GetOpenIDConfigRequest(properties) { + function ServiceExternalIPsConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -25384,75 +28742,75 @@ } /** - * GetOpenIDConfigRequest parent. - * @member {string} parent - * @memberof google.container.v1.GetOpenIDConfigRequest + * ServiceExternalIPsConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.ServiceExternalIPsConfig * @instance */ - GetOpenIDConfigRequest.prototype.parent = ""; + ServiceExternalIPsConfig.prototype.enabled = false; /** - * Creates a new GetOpenIDConfigRequest instance using the specified properties. + * Creates a new ServiceExternalIPsConfig instance using the specified properties. * @function create - * @memberof google.container.v1.GetOpenIDConfigRequest + * @memberof google.container.v1.ServiceExternalIPsConfig * @static - * @param {google.container.v1.IGetOpenIDConfigRequest=} [properties] Properties to set - * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest instance + * @param {google.container.v1.IServiceExternalIPsConfig=} [properties] Properties to set + * @returns {google.container.v1.ServiceExternalIPsConfig} ServiceExternalIPsConfig instance */ - GetOpenIDConfigRequest.create = function create(properties) { - return new GetOpenIDConfigRequest(properties); + ServiceExternalIPsConfig.create = function create(properties) { + return new ServiceExternalIPsConfig(properties); }; /** - * Encodes the specified GetOpenIDConfigRequest message. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages. + * Encodes the specified ServiceExternalIPsConfig message. Does not implicitly {@link google.container.v1.ServiceExternalIPsConfig.verify|verify} messages. * @function encode - * @memberof google.container.v1.GetOpenIDConfigRequest + * @memberof google.container.v1.ServiceExternalIPsConfig * @static - * @param {google.container.v1.IGetOpenIDConfigRequest} message GetOpenIDConfigRequest message or plain object to encode + * @param {google.container.v1.IServiceExternalIPsConfig} message ServiceExternalIPsConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOpenIDConfigRequest.encode = function encode(message, writer) { + ServiceExternalIPsConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); return writer; }; /** - * Encodes the specified GetOpenIDConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages. + * Encodes the specified ServiceExternalIPsConfig message, length delimited. Does not implicitly {@link google.container.v1.ServiceExternalIPsConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.container.v1.GetOpenIDConfigRequest + * @memberof google.container.v1.ServiceExternalIPsConfig * @static - * @param {google.container.v1.IGetOpenIDConfigRequest} message GetOpenIDConfigRequest message or plain object to encode + * @param {google.container.v1.IServiceExternalIPsConfig} message ServiceExternalIPsConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetOpenIDConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + ServiceExternalIPsConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer. + * Decodes a ServiceExternalIPsConfig message from the specified reader or buffer. * @function decode - * @memberof google.container.v1.GetOpenIDConfigRequest + * @memberof google.container.v1.ServiceExternalIPsConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest + * @returns {google.container.v1.ServiceExternalIPsConfig} ServiceExternalIPsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOpenIDConfigRequest.decode = function decode(reader, length) { + ServiceExternalIPsConfig.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.GetOpenIDConfigRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.container.v1.ServiceExternalIPsConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.enabled = reader.bool(); break; default: reader.skipType(tag & 7); @@ -25463,489 +28821,87 @@ }; /** - * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer, length delimited. + * Decodes a ServiceExternalIPsConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.container.v1.GetOpenIDConfigRequest + * @memberof google.container.v1.ServiceExternalIPsConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest + * @returns {google.container.v1.ServiceExternalIPsConfig} ServiceExternalIPsConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetOpenIDConfigRequest.decodeDelimited = function decodeDelimited(reader) { + ServiceExternalIPsConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetOpenIDConfigRequest message. + * Verifies a ServiceExternalIPsConfig message. * @function verify - * @memberof google.container.v1.GetOpenIDConfigRequest + * @memberof google.container.v1.ServiceExternalIPsConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetOpenIDConfigRequest.verify = function verify(message) { + ServiceExternalIPsConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; return null; }; /** - * Creates a GetOpenIDConfigRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceExternalIPsConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.container.v1.GetOpenIDConfigRequest + * @memberof google.container.v1.ServiceExternalIPsConfig * @static * @param {Object.} object Plain object - * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest + * @returns {google.container.v1.ServiceExternalIPsConfig} ServiceExternalIPsConfig */ - GetOpenIDConfigRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetOpenIDConfigRequest) + ServiceExternalIPsConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ServiceExternalIPsConfig) return object; - var message = new $root.google.container.v1.GetOpenIDConfigRequest(); - if (object.parent != null) - message.parent = String(object.parent); + var message = new $root.google.container.v1.ServiceExternalIPsConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); return message; }; /** - * Creates a plain object from a GetOpenIDConfigRequest message. Also converts values to other types if specified. + * Creates a plain object from a ServiceExternalIPsConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.container.v1.GetOpenIDConfigRequest + * @memberof google.container.v1.ServiceExternalIPsConfig * @static - * @param {google.container.v1.GetOpenIDConfigRequest} message GetOpenIDConfigRequest + * @param {google.container.v1.ServiceExternalIPsConfig} message ServiceExternalIPsConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetOpenIDConfigRequest.toObject = function toObject(message, options) { + ServiceExternalIPsConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - return object; - }; - - /** - * Converts this GetOpenIDConfigRequest to JSON. - * @function toJSON - * @memberof google.container.v1.GetOpenIDConfigRequest - * @instance - * @returns {Object.} JSON object - */ - GetOpenIDConfigRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetOpenIDConfigRequest; - })(); - - v1.GetOpenIDConfigResponse = (function() { - - /** - * Properties of a GetOpenIDConfigResponse. - * @memberof google.container.v1 - * @interface IGetOpenIDConfigResponse - * @property {string|null} [issuer] GetOpenIDConfigResponse issuer - * @property {string|null} [jwksUri] GetOpenIDConfigResponse jwksUri - * @property {Array.|null} [responseTypesSupported] GetOpenIDConfigResponse responseTypesSupported - * @property {Array.|null} [subjectTypesSupported] GetOpenIDConfigResponse subjectTypesSupported - * @property {Array.|null} [idTokenSigningAlgValuesSupported] GetOpenIDConfigResponse idTokenSigningAlgValuesSupported - * @property {Array.|null} [claimsSupported] GetOpenIDConfigResponse claimsSupported - * @property {Array.|null} [grantTypes] GetOpenIDConfigResponse grantTypes - */ - - /** - * Constructs a new GetOpenIDConfigResponse. - * @memberof google.container.v1 - * @classdesc Represents a GetOpenIDConfigResponse. - * @implements IGetOpenIDConfigResponse - * @constructor - * @param {google.container.v1.IGetOpenIDConfigResponse=} [properties] Properties to set - */ - function GetOpenIDConfigResponse(properties) { - this.responseTypesSupported = []; - this.subjectTypesSupported = []; - this.idTokenSigningAlgValuesSupported = []; - this.claimsSupported = []; - this.grantTypes = []; - 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]]; - } - - /** - * GetOpenIDConfigResponse issuer. - * @member {string} issuer - * @memberof google.container.v1.GetOpenIDConfigResponse - * @instance - */ - GetOpenIDConfigResponse.prototype.issuer = ""; - - /** - * GetOpenIDConfigResponse jwksUri. - * @member {string} jwksUri - * @memberof google.container.v1.GetOpenIDConfigResponse - * @instance - */ - GetOpenIDConfigResponse.prototype.jwksUri = ""; - - /** - * GetOpenIDConfigResponse responseTypesSupported. - * @member {Array.} responseTypesSupported - * @memberof google.container.v1.GetOpenIDConfigResponse - * @instance - */ - GetOpenIDConfigResponse.prototype.responseTypesSupported = $util.emptyArray; - - /** - * GetOpenIDConfigResponse subjectTypesSupported. - * @member {Array.} subjectTypesSupported - * @memberof google.container.v1.GetOpenIDConfigResponse - * @instance - */ - GetOpenIDConfigResponse.prototype.subjectTypesSupported = $util.emptyArray; - - /** - * GetOpenIDConfigResponse idTokenSigningAlgValuesSupported. - * @member {Array.} idTokenSigningAlgValuesSupported - * @memberof google.container.v1.GetOpenIDConfigResponse - * @instance - */ - GetOpenIDConfigResponse.prototype.idTokenSigningAlgValuesSupported = $util.emptyArray; - - /** - * GetOpenIDConfigResponse claimsSupported. - * @member {Array.} claimsSupported - * @memberof google.container.v1.GetOpenIDConfigResponse - * @instance - */ - GetOpenIDConfigResponse.prototype.claimsSupported = $util.emptyArray; - - /** - * GetOpenIDConfigResponse grantTypes. - * @member {Array.} grantTypes - * @memberof google.container.v1.GetOpenIDConfigResponse - * @instance - */ - GetOpenIDConfigResponse.prototype.grantTypes = $util.emptyArray; - - /** - * Creates a new GetOpenIDConfigResponse instance using the specified properties. - * @function create - * @memberof google.container.v1.GetOpenIDConfigResponse - * @static - * @param {google.container.v1.IGetOpenIDConfigResponse=} [properties] Properties to set - * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse instance - */ - GetOpenIDConfigResponse.create = function create(properties) { - return new GetOpenIDConfigResponse(properties); - }; - - /** - * Encodes the specified GetOpenIDConfigResponse message. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages. - * @function encode - * @memberof google.container.v1.GetOpenIDConfigResponse - * @static - * @param {google.container.v1.IGetOpenIDConfigResponse} message GetOpenIDConfigResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetOpenIDConfigResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.issuer != null && Object.hasOwnProperty.call(message, "issuer")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.issuer); - if (message.jwksUri != null && Object.hasOwnProperty.call(message, "jwksUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.jwksUri); - if (message.responseTypesSupported != null && message.responseTypesSupported.length) - for (var i = 0; i < message.responseTypesSupported.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.responseTypesSupported[i]); - if (message.subjectTypesSupported != null && message.subjectTypesSupported.length) - for (var i = 0; i < message.subjectTypesSupported.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.subjectTypesSupported[i]); - if (message.idTokenSigningAlgValuesSupported != null && message.idTokenSigningAlgValuesSupported.length) - for (var i = 0; i < message.idTokenSigningAlgValuesSupported.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.idTokenSigningAlgValuesSupported[i]); - if (message.claimsSupported != null && message.claimsSupported.length) - for (var i = 0; i < message.claimsSupported.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.claimsSupported[i]); - if (message.grantTypes != null && message.grantTypes.length) - for (var i = 0; i < message.grantTypes.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.grantTypes[i]); - return writer; - }; - - /** - * Encodes the specified GetOpenIDConfigResponse message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.container.v1.GetOpenIDConfigResponse - * @static - * @param {google.container.v1.IGetOpenIDConfigResponse} message GetOpenIDConfigResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetOpenIDConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer. - * @function decode - * @memberof google.container.v1.GetOpenIDConfigResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetOpenIDConfigResponse.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.GetOpenIDConfigResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.jwksUri = reader.string(); - break; - case 3: - if (!(message.responseTypesSupported && message.responseTypesSupported.length)) - message.responseTypesSupported = []; - message.responseTypesSupported.push(reader.string()); - break; - case 4: - if (!(message.subjectTypesSupported && message.subjectTypesSupported.length)) - message.subjectTypesSupported = []; - message.subjectTypesSupported.push(reader.string()); - break; - case 5: - if (!(message.idTokenSigningAlgValuesSupported && message.idTokenSigningAlgValuesSupported.length)) - message.idTokenSigningAlgValuesSupported = []; - message.idTokenSigningAlgValuesSupported.push(reader.string()); - break; - case 6: - if (!(message.claimsSupported && message.claimsSupported.length)) - message.claimsSupported = []; - message.claimsSupported.push(reader.string()); - break; - case 7: - if (!(message.grantTypes && message.grantTypes.length)) - message.grantTypes = []; - message.grantTypes.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.container.v1.GetOpenIDConfigResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetOpenIDConfigResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetOpenIDConfigResponse message. - * @function verify - * @memberof google.container.v1.GetOpenIDConfigResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetOpenIDConfigResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.issuer != null && message.hasOwnProperty("issuer")) - if (!$util.isString(message.issuer)) - return "issuer: string expected"; - if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) - if (!$util.isString(message.jwksUri)) - return "jwksUri: string expected"; - if (message.responseTypesSupported != null && message.hasOwnProperty("responseTypesSupported")) { - if (!Array.isArray(message.responseTypesSupported)) - return "responseTypesSupported: array expected"; - for (var i = 0; i < message.responseTypesSupported.length; ++i) - if (!$util.isString(message.responseTypesSupported[i])) - return "responseTypesSupported: string[] expected"; - } - if (message.subjectTypesSupported != null && message.hasOwnProperty("subjectTypesSupported")) { - if (!Array.isArray(message.subjectTypesSupported)) - return "subjectTypesSupported: array expected"; - for (var i = 0; i < message.subjectTypesSupported.length; ++i) - if (!$util.isString(message.subjectTypesSupported[i])) - return "subjectTypesSupported: string[] expected"; - } - if (message.idTokenSigningAlgValuesSupported != null && message.hasOwnProperty("idTokenSigningAlgValuesSupported")) { - if (!Array.isArray(message.idTokenSigningAlgValuesSupported)) - return "idTokenSigningAlgValuesSupported: array expected"; - for (var i = 0; i < message.idTokenSigningAlgValuesSupported.length; ++i) - if (!$util.isString(message.idTokenSigningAlgValuesSupported[i])) - return "idTokenSigningAlgValuesSupported: string[] expected"; - } - if (message.claimsSupported != null && message.hasOwnProperty("claimsSupported")) { - if (!Array.isArray(message.claimsSupported)) - return "claimsSupported: array expected"; - for (var i = 0; i < message.claimsSupported.length; ++i) - if (!$util.isString(message.claimsSupported[i])) - return "claimsSupported: string[] expected"; - } - if (message.grantTypes != null && message.hasOwnProperty("grantTypes")) { - if (!Array.isArray(message.grantTypes)) - return "grantTypes: array expected"; - for (var i = 0; i < message.grantTypes.length; ++i) - if (!$util.isString(message.grantTypes[i])) - return "grantTypes: string[] expected"; - } - return null; - }; - - /** - * Creates a GetOpenIDConfigResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.container.v1.GetOpenIDConfigResponse - * @static - * @param {Object.} object Plain object - * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse - */ - GetOpenIDConfigResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.container.v1.GetOpenIDConfigResponse) - return object; - var message = new $root.google.container.v1.GetOpenIDConfigResponse(); - if (object.issuer != null) - message.issuer = String(object.issuer); - if (object.jwksUri != null) - message.jwksUri = String(object.jwksUri); - if (object.responseTypesSupported) { - if (!Array.isArray(object.responseTypesSupported)) - throw TypeError(".google.container.v1.GetOpenIDConfigResponse.responseTypesSupported: array expected"); - message.responseTypesSupported = []; - for (var i = 0; i < object.responseTypesSupported.length; ++i) - message.responseTypesSupported[i] = String(object.responseTypesSupported[i]); - } - if (object.subjectTypesSupported) { - if (!Array.isArray(object.subjectTypesSupported)) - throw TypeError(".google.container.v1.GetOpenIDConfigResponse.subjectTypesSupported: array expected"); - message.subjectTypesSupported = []; - for (var i = 0; i < object.subjectTypesSupported.length; ++i) - message.subjectTypesSupported[i] = String(object.subjectTypesSupported[i]); - } - if (object.idTokenSigningAlgValuesSupported) { - if (!Array.isArray(object.idTokenSigningAlgValuesSupported)) - throw TypeError(".google.container.v1.GetOpenIDConfigResponse.idTokenSigningAlgValuesSupported: array expected"); - message.idTokenSigningAlgValuesSupported = []; - for (var i = 0; i < object.idTokenSigningAlgValuesSupported.length; ++i) - message.idTokenSigningAlgValuesSupported[i] = String(object.idTokenSigningAlgValuesSupported[i]); - } - if (object.claimsSupported) { - if (!Array.isArray(object.claimsSupported)) - throw TypeError(".google.container.v1.GetOpenIDConfigResponse.claimsSupported: array expected"); - message.claimsSupported = []; - for (var i = 0; i < object.claimsSupported.length; ++i) - message.claimsSupported[i] = String(object.claimsSupported[i]); - } - if (object.grantTypes) { - if (!Array.isArray(object.grantTypes)) - throw TypeError(".google.container.v1.GetOpenIDConfigResponse.grantTypes: array expected"); - message.grantTypes = []; - for (var i = 0; i < object.grantTypes.length; ++i) - message.grantTypes[i] = String(object.grantTypes[i]); - } - return message; - }; - - /** - * Creates a plain object from a GetOpenIDConfigResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.container.v1.GetOpenIDConfigResponse - * @static - * @param {google.container.v1.GetOpenIDConfigResponse} message GetOpenIDConfigResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetOpenIDConfigResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.responseTypesSupported = []; - object.subjectTypesSupported = []; - object.idTokenSigningAlgValuesSupported = []; - object.claimsSupported = []; - object.grantTypes = []; - } - if (options.defaults) { - object.issuer = ""; - object.jwksUri = ""; - } - if (message.issuer != null && message.hasOwnProperty("issuer")) - object.issuer = message.issuer; - if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) - object.jwksUri = message.jwksUri; - if (message.responseTypesSupported && message.responseTypesSupported.length) { - object.responseTypesSupported = []; - for (var j = 0; j < message.responseTypesSupported.length; ++j) - object.responseTypesSupported[j] = message.responseTypesSupported[j]; - } - if (message.subjectTypesSupported && message.subjectTypesSupported.length) { - object.subjectTypesSupported = []; - for (var j = 0; j < message.subjectTypesSupported.length; ++j) - object.subjectTypesSupported[j] = message.subjectTypesSupported[j]; - } - if (message.idTokenSigningAlgValuesSupported && message.idTokenSigningAlgValuesSupported.length) { - object.idTokenSigningAlgValuesSupported = []; - for (var j = 0; j < message.idTokenSigningAlgValuesSupported.length; ++j) - object.idTokenSigningAlgValuesSupported[j] = message.idTokenSigningAlgValuesSupported[j]; - } - if (message.claimsSupported && message.claimsSupported.length) { - object.claimsSupported = []; - for (var j = 0; j < message.claimsSupported.length; ++j) - object.claimsSupported[j] = message.claimsSupported[j]; - } - if (message.grantTypes && message.grantTypes.length) { - object.grantTypes = []; - for (var j = 0; j < message.grantTypes.length; ++j) - object.grantTypes[j] = message.grantTypes[j]; - } + object.enabled = false; + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; return object; }; /** - * Converts this GetOpenIDConfigResponse to JSON. + * Converts this ServiceExternalIPsConfig to JSON. * @function toJSON - * @memberof google.container.v1.GetOpenIDConfigResponse + * @memberof google.container.v1.ServiceExternalIPsConfig * @instance * @returns {Object.} JSON object */ - GetOpenIDConfigResponse.prototype.toJSON = function toJSON() { + ServiceExternalIPsConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetOpenIDConfigResponse; + return ServiceExternalIPsConfig; })(); v1.GetJSONWebKeysRequest = (function() { @@ -27122,6 +30078,486 @@ return IntraNodeVisibilityConfig; })(); + v1.ILBSubsettingConfig = (function() { + + /** + * Properties of a ILBSubsettingConfig. + * @memberof google.container.v1 + * @interface IILBSubsettingConfig + * @property {boolean|null} [enabled] ILBSubsettingConfig enabled + */ + + /** + * Constructs a new ILBSubsettingConfig. + * @memberof google.container.v1 + * @classdesc Represents a ILBSubsettingConfig. + * @implements IILBSubsettingConfig + * @constructor + * @param {google.container.v1.IILBSubsettingConfig=} [properties] Properties to set + */ + function ILBSubsettingConfig(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]]; + } + + /** + * ILBSubsettingConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.ILBSubsettingConfig + * @instance + */ + ILBSubsettingConfig.prototype.enabled = false; + + /** + * Creates a new ILBSubsettingConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ILBSubsettingConfig + * @static + * @param {google.container.v1.IILBSubsettingConfig=} [properties] Properties to set + * @returns {google.container.v1.ILBSubsettingConfig} ILBSubsettingConfig instance + */ + ILBSubsettingConfig.create = function create(properties) { + return new ILBSubsettingConfig(properties); + }; + + /** + * Encodes the specified ILBSubsettingConfig message. Does not implicitly {@link google.container.v1.ILBSubsettingConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ILBSubsettingConfig + * @static + * @param {google.container.v1.IILBSubsettingConfig} message ILBSubsettingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ILBSubsettingConfig.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 ILBSubsettingConfig message, length delimited. Does not implicitly {@link google.container.v1.ILBSubsettingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ILBSubsettingConfig + * @static + * @param {google.container.v1.IILBSubsettingConfig} message ILBSubsettingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ILBSubsettingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ILBSubsettingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ILBSubsettingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ILBSubsettingConfig} ILBSubsettingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ILBSubsettingConfig.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.ILBSubsettingConfig(); + 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; + }; + + /** + * Decodes a ILBSubsettingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ILBSubsettingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ILBSubsettingConfig} ILBSubsettingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ILBSubsettingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ILBSubsettingConfig message. + * @function verify + * @memberof google.container.v1.ILBSubsettingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ILBSubsettingConfig.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; + }; + + /** + * Creates a ILBSubsettingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ILBSubsettingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ILBSubsettingConfig} ILBSubsettingConfig + */ + ILBSubsettingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ILBSubsettingConfig) + return object; + var message = new $root.google.container.v1.ILBSubsettingConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a ILBSubsettingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ILBSubsettingConfig + * @static + * @param {google.container.v1.ILBSubsettingConfig} message ILBSubsettingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ILBSubsettingConfig.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 ILBSubsettingConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ILBSubsettingConfig + * @instance + * @returns {Object.} JSON object + */ + ILBSubsettingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ILBSubsettingConfig; + })(); + + v1.DNSConfig = (function() { + + /** + * Properties of a DNSConfig. + * @memberof google.container.v1 + * @interface IDNSConfig + * @property {google.container.v1.DNSConfig.Provider|null} [clusterDns] DNSConfig clusterDns + * @property {google.container.v1.DNSConfig.DNSScope|null} [clusterDnsScope] DNSConfig clusterDnsScope + * @property {string|null} [clusterDnsDomain] DNSConfig clusterDnsDomain + */ + + /** + * Constructs a new DNSConfig. + * @memberof google.container.v1 + * @classdesc Represents a DNSConfig. + * @implements IDNSConfig + * @constructor + * @param {google.container.v1.IDNSConfig=} [properties] Properties to set + */ + function DNSConfig(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]]; + } + + /** + * DNSConfig clusterDns. + * @member {google.container.v1.DNSConfig.Provider} clusterDns + * @memberof google.container.v1.DNSConfig + * @instance + */ + DNSConfig.prototype.clusterDns = 0; + + /** + * DNSConfig clusterDnsScope. + * @member {google.container.v1.DNSConfig.DNSScope} clusterDnsScope + * @memberof google.container.v1.DNSConfig + * @instance + */ + DNSConfig.prototype.clusterDnsScope = 0; + + /** + * DNSConfig clusterDnsDomain. + * @member {string} clusterDnsDomain + * @memberof google.container.v1.DNSConfig + * @instance + */ + DNSConfig.prototype.clusterDnsDomain = ""; + + /** + * Creates a new DNSConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.DNSConfig + * @static + * @param {google.container.v1.IDNSConfig=} [properties] Properties to set + * @returns {google.container.v1.DNSConfig} DNSConfig instance + */ + DNSConfig.create = function create(properties) { + return new DNSConfig(properties); + }; + + /** + * Encodes the specified DNSConfig message. Does not implicitly {@link google.container.v1.DNSConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.DNSConfig + * @static + * @param {google.container.v1.IDNSConfig} message DNSConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DNSConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.clusterDns != null && Object.hasOwnProperty.call(message, "clusterDns")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.clusterDns); + if (message.clusterDnsScope != null && Object.hasOwnProperty.call(message, "clusterDnsScope")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.clusterDnsScope); + if (message.clusterDnsDomain != null && Object.hasOwnProperty.call(message, "clusterDnsDomain")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterDnsDomain); + return writer; + }; + + /** + * Encodes the specified DNSConfig message, length delimited. Does not implicitly {@link google.container.v1.DNSConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.DNSConfig + * @static + * @param {google.container.v1.IDNSConfig} message DNSConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DNSConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DNSConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.DNSConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.DNSConfig} DNSConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DNSConfig.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.DNSConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.clusterDns = reader.int32(); + break; + case 2: + message.clusterDnsScope = reader.int32(); + break; + case 3: + message.clusterDnsDomain = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DNSConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.DNSConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.DNSConfig} DNSConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DNSConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DNSConfig message. + * @function verify + * @memberof google.container.v1.DNSConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DNSConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.clusterDns != null && message.hasOwnProperty("clusterDns")) + switch (message.clusterDns) { + default: + return "clusterDns: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.clusterDnsScope != null && message.hasOwnProperty("clusterDnsScope")) + switch (message.clusterDnsScope) { + default: + return "clusterDnsScope: enum value expected"; + case 0: + case 2: + break; + } + if (message.clusterDnsDomain != null && message.hasOwnProperty("clusterDnsDomain")) + if (!$util.isString(message.clusterDnsDomain)) + return "clusterDnsDomain: string expected"; + return null; + }; + + /** + * Creates a DNSConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.DNSConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.DNSConfig} DNSConfig + */ + DNSConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.DNSConfig) + return object; + var message = new $root.google.container.v1.DNSConfig(); + switch (object.clusterDns) { + case "PROVIDER_UNSPECIFIED": + case 0: + message.clusterDns = 0; + break; + case "PLATFORM_DEFAULT": + case 1: + message.clusterDns = 1; + break; + case "CLOUD_DNS": + case 2: + message.clusterDns = 2; + break; + } + switch (object.clusterDnsScope) { + case "DNS_SCOPE_UNSPECIFIED": + case 0: + message.clusterDnsScope = 0; + break; + case "VPC_SCOPE": + case 2: + message.clusterDnsScope = 2; + break; + } + if (object.clusterDnsDomain != null) + message.clusterDnsDomain = String(object.clusterDnsDomain); + return message; + }; + + /** + * Creates a plain object from a DNSConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.DNSConfig + * @static + * @param {google.container.v1.DNSConfig} message DNSConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DNSConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.clusterDns = options.enums === String ? "PROVIDER_UNSPECIFIED" : 0; + object.clusterDnsScope = options.enums === String ? "DNS_SCOPE_UNSPECIFIED" : 0; + object.clusterDnsDomain = ""; + } + if (message.clusterDns != null && message.hasOwnProperty("clusterDns")) + object.clusterDns = options.enums === String ? $root.google.container.v1.DNSConfig.Provider[message.clusterDns] : message.clusterDns; + if (message.clusterDnsScope != null && message.hasOwnProperty("clusterDnsScope")) + object.clusterDnsScope = options.enums === String ? $root.google.container.v1.DNSConfig.DNSScope[message.clusterDnsScope] : message.clusterDnsScope; + if (message.clusterDnsDomain != null && message.hasOwnProperty("clusterDnsDomain")) + object.clusterDnsDomain = message.clusterDnsDomain; + return object; + }; + + /** + * Converts this DNSConfig to JSON. + * @function toJSON + * @memberof google.container.v1.DNSConfig + * @instance + * @returns {Object.} JSON object + */ + DNSConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Provider enum. + * @name google.container.v1.DNSConfig.Provider + * @enum {number} + * @property {number} PROVIDER_UNSPECIFIED=0 PROVIDER_UNSPECIFIED value + * @property {number} PLATFORM_DEFAULT=1 PLATFORM_DEFAULT value + * @property {number} CLOUD_DNS=2 CLOUD_DNS value + */ + DNSConfig.Provider = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PROVIDER_UNSPECIFIED"] = 0; + values[valuesById[1] = "PLATFORM_DEFAULT"] = 1; + values[valuesById[2] = "CLOUD_DNS"] = 2; + return values; + })(); + + /** + * DNSScope enum. + * @name google.container.v1.DNSConfig.DNSScope + * @enum {number} + * @property {number} DNS_SCOPE_UNSPECIFIED=0 DNS_SCOPE_UNSPECIFIED value + * @property {number} VPC_SCOPE=2 VPC_SCOPE value + */ + DNSConfig.DNSScope = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DNS_SCOPE_UNSPECIFIED"] = 0; + values[valuesById[2] = "VPC_SCOPE"] = 2; + return values; + })(); + + return DNSConfig; + })(); + v1.MaxPodsConstraint = (function() { /** @@ -27510,6 +30946,198 @@ return WorkloadIdentityConfig; })(); + v1.MeshCertificates = (function() { + + /** + * Properties of a MeshCertificates. + * @memberof google.container.v1 + * @interface IMeshCertificates + * @property {google.protobuf.IBoolValue|null} [enableCertificates] MeshCertificates enableCertificates + */ + + /** + * Constructs a new MeshCertificates. + * @memberof google.container.v1 + * @classdesc Represents a MeshCertificates. + * @implements IMeshCertificates + * @constructor + * @param {google.container.v1.IMeshCertificates=} [properties] Properties to set + */ + function MeshCertificates(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]]; + } + + /** + * MeshCertificates enableCertificates. + * @member {google.protobuf.IBoolValue|null|undefined} enableCertificates + * @memberof google.container.v1.MeshCertificates + * @instance + */ + MeshCertificates.prototype.enableCertificates = null; + + /** + * Creates a new MeshCertificates instance using the specified properties. + * @function create + * @memberof google.container.v1.MeshCertificates + * @static + * @param {google.container.v1.IMeshCertificates=} [properties] Properties to set + * @returns {google.container.v1.MeshCertificates} MeshCertificates instance + */ + MeshCertificates.create = function create(properties) { + return new MeshCertificates(properties); + }; + + /** + * Encodes the specified MeshCertificates message. Does not implicitly {@link google.container.v1.MeshCertificates.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MeshCertificates + * @static + * @param {google.container.v1.IMeshCertificates} message MeshCertificates message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MeshCertificates.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enableCertificates != null && Object.hasOwnProperty.call(message, "enableCertificates")) + $root.google.protobuf.BoolValue.encode(message.enableCertificates, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MeshCertificates message, length delimited. Does not implicitly {@link google.container.v1.MeshCertificates.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MeshCertificates + * @static + * @param {google.container.v1.IMeshCertificates} message MeshCertificates message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MeshCertificates.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MeshCertificates message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.MeshCertificates + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.MeshCertificates} MeshCertificates + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MeshCertificates.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.MeshCertificates(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enableCertificates = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MeshCertificates message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MeshCertificates + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.MeshCertificates} MeshCertificates + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MeshCertificates.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MeshCertificates message. + * @function verify + * @memberof google.container.v1.MeshCertificates + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MeshCertificates.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enableCertificates != null && message.hasOwnProperty("enableCertificates")) { + var error = $root.google.protobuf.BoolValue.verify(message.enableCertificates); + if (error) + return "enableCertificates." + error; + } + return null; + }; + + /** + * Creates a MeshCertificates message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.MeshCertificates + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MeshCertificates} MeshCertificates + */ + MeshCertificates.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MeshCertificates) + return object; + var message = new $root.google.container.v1.MeshCertificates(); + if (object.enableCertificates != null) { + if (typeof object.enableCertificates !== "object") + throw TypeError(".google.container.v1.MeshCertificates.enableCertificates: object expected"); + message.enableCertificates = $root.google.protobuf.BoolValue.fromObject(object.enableCertificates); + } + return message; + }; + + /** + * Creates a plain object from a MeshCertificates message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MeshCertificates + * @static + * @param {google.container.v1.MeshCertificates} message MeshCertificates + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MeshCertificates.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.enableCertificates = null; + if (message.enableCertificates != null && message.hasOwnProperty("enableCertificates")) + object.enableCertificates = $root.google.protobuf.BoolValue.toObject(message.enableCertificates, options); + return object; + }; + + /** + * Converts this MeshCertificates to JSON. + * @function toJSON + * @memberof google.container.v1.MeshCertificates + * @instance + * @returns {Object.} JSON object + */ + MeshCertificates.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MeshCertificates; + })(); + v1.DatabaseEncryption = (function() { /** @@ -29994,490 +33622,7763 @@ return ShieldedNodes; })(); - return v1; - })(); + v1.VirtualNIC = (function() { - return container; - })(); + /** + * Properties of a VirtualNIC. + * @memberof google.container.v1 + * @interface IVirtualNIC + * @property {boolean|null} [enabled] VirtualNIC enabled + */ - google.api = (function() { + /** + * Constructs a new VirtualNIC. + * @memberof google.container.v1 + * @classdesc Represents a VirtualNIC. + * @implements IVirtualNIC + * @constructor + * @param {google.container.v1.IVirtualNIC=} [properties] Properties to set + */ + function VirtualNIC(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]]; + } - /** - * Namespace api. - * @memberof google - * @namespace - */ - var api = {}; + /** + * VirtualNIC enabled. + * @member {boolean} enabled + * @memberof google.container.v1.VirtualNIC + * @instance + */ + VirtualNIC.prototype.enabled = false; - api.Http = (function() { + /** + * Creates a new VirtualNIC instance using the specified properties. + * @function create + * @memberof google.container.v1.VirtualNIC + * @static + * @param {google.container.v1.IVirtualNIC=} [properties] Properties to set + * @returns {google.container.v1.VirtualNIC} VirtualNIC instance + */ + VirtualNIC.create = function create(properties) { + return new VirtualNIC(properties); + }; - /** - * Properties of a Http. - * @memberof google.api - * @interface IHttp - * @property {Array.|null} [rules] Http rules - * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion - */ + /** + * Encodes the specified VirtualNIC message. Does not implicitly {@link google.container.v1.VirtualNIC.verify|verify} messages. + * @function encode + * @memberof google.container.v1.VirtualNIC + * @static + * @param {google.container.v1.IVirtualNIC} message VirtualNIC message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VirtualNIC.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; + }; - /** - * Constructs a new Http. - * @memberof google.api - * @classdesc Represents a Http. - * @implements IHttp - * @constructor - * @param {google.api.IHttp=} [properties] Properties to set - */ - function Http(properties) { - this.rules = []; - 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]]; - } + /** + * Encodes the specified VirtualNIC message, length delimited. Does not implicitly {@link google.container.v1.VirtualNIC.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.VirtualNIC + * @static + * @param {google.container.v1.IVirtualNIC} message VirtualNIC message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + VirtualNIC.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Http rules. - * @member {Array.} rules - * @memberof google.api.Http - * @instance - */ - Http.prototype.rules = $util.emptyArray; + /** + * Decodes a VirtualNIC message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.VirtualNIC + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.VirtualNIC} VirtualNIC + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VirtualNIC.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.VirtualNIC(); + 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; + }; - /** - * Http fullyDecodeReservedExpansion. - * @member {boolean} fullyDecodeReservedExpansion - * @memberof google.api.Http - * @instance - */ - Http.prototype.fullyDecodeReservedExpansion = false; + /** + * Decodes a VirtualNIC message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.VirtualNIC + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.VirtualNIC} VirtualNIC + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + VirtualNIC.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new Http instance using the specified properties. - * @function create - * @memberof google.api.Http - * @static - * @param {google.api.IHttp=} [properties] Properties to set - * @returns {google.api.Http} Http instance - */ - Http.create = function create(properties) { - return new Http(properties); - }; + /** + * Verifies a VirtualNIC message. + * @function verify + * @memberof google.container.v1.VirtualNIC + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + VirtualNIC.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; + }; - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encode - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); - return writer; - }; + /** + * Creates a VirtualNIC message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.VirtualNIC + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.VirtualNIC} VirtualNIC + */ + VirtualNIC.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.VirtualNIC) + return object; + var message = new $root.google.container.v1.VirtualNIC(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; - /** - * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encodeDelimited - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a plain object from a VirtualNIC message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.VirtualNIC + * @static + * @param {google.container.v1.VirtualNIC} message VirtualNIC + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + VirtualNIC.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; + }; - /** - * Decodes a Http message from the specified reader or buffer. - * @function decode - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.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.api.Http(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - case 2: - message.fullyDecodeReservedExpansion = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Converts this VirtualNIC to JSON. + * @function toJSON + * @memberof google.container.v1.VirtualNIC + * @instance + * @returns {Object.} JSON object + */ + VirtualNIC.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Decodes a Http message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + return VirtualNIC; + })(); /** - * Verifies a Http message. - * @function verify - * @memberof google.api.Http - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * PrivateIPv6GoogleAccess enum. + * @name google.container.v1.PrivateIPv6GoogleAccess + * @enum {number} + * @property {number} PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED=0 PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED value + * @property {number} PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED=1 PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED value + * @property {number} PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE=2 PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE value + * @property {number} PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL=3 PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL value */ - Http.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) - if (typeof message.fullyDecodeReservedExpansion !== "boolean") - return "fullyDecodeReservedExpansion: boolean expected"; - return null; - }; + v1.PrivateIPv6GoogleAccess = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED"] = 0; + values[valuesById[1] = "PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED"] = 1; + values[valuesById[2] = "PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE"] = 2; + values[valuesById[3] = "PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL"] = 3; + return values; + })(); /** - * Creates a Http message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.api.Http - * @static - * @param {Object.} object Plain object - * @returns {google.api.Http} Http + * DatapathProvider enum. + * @name google.container.v1.DatapathProvider + * @enum {number} + * @property {number} DATAPATH_PROVIDER_UNSPECIFIED=0 DATAPATH_PROVIDER_UNSPECIFIED value + * @property {number} LEGACY_DATAPATH=1 LEGACY_DATAPATH value + * @property {number} ADVANCED_DATAPATH=2 ADVANCED_DATAPATH value */ - Http.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.Http) - return object; - var message = new $root.google.api.Http(); - if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".google.api.Http.rules: array expected"); - message.rules = []; - for (var i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".google.api.Http.rules: object expected"); - message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); - } - } - if (object.fullyDecodeReservedExpansion != null) - message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); - return message; - }; + v1.DatapathProvider = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATAPATH_PROVIDER_UNSPECIFIED"] = 0; + values[valuesById[1] = "LEGACY_DATAPATH"] = 1; + values[valuesById[2] = "ADVANCED_DATAPATH"] = 2; + return values; + })(); - /** - * Creates a plain object from a Http message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.Http - * @static - * @param {google.api.Http} message Http - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Http.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.rules = []; - if (options.defaults) - object.fullyDecodeReservedExpansion = false; - if (message.rules && message.rules.length) { - object.rules = []; - for (var j = 0; j < message.rules.length; ++j) - object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); - } - if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) - object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; - return object; - }; + v1.NotificationConfig = (function() { - /** - * Converts this Http to JSON. - * @function toJSON - * @memberof google.api.Http - * @instance - * @returns {Object.} JSON object - */ - Http.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Properties of a NotificationConfig. + * @memberof google.container.v1 + * @interface INotificationConfig + * @property {google.container.v1.NotificationConfig.IPubSub|null} [pubsub] NotificationConfig pubsub + */ - return Http; - })(); + /** + * Constructs a new NotificationConfig. + * @memberof google.container.v1 + * @classdesc Represents a NotificationConfig. + * @implements INotificationConfig + * @constructor + * @param {google.container.v1.INotificationConfig=} [properties] Properties to set + */ + function NotificationConfig(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]]; + } - api.HttpRule = (function() { + /** + * NotificationConfig pubsub. + * @member {google.container.v1.NotificationConfig.IPubSub|null|undefined} pubsub + * @memberof google.container.v1.NotificationConfig + * @instance + */ + NotificationConfig.prototype.pubsub = null; - /** - * Properties of a HttpRule. - * @memberof google.api - * @interface IHttpRule - * @property {string|null} [selector] HttpRule selector - * @property {string|null} [get] HttpRule get - * @property {string|null} [put] HttpRule put - * @property {string|null} [post] HttpRule post - * @property {string|null} ["delete"] HttpRule delete - * @property {string|null} [patch] HttpRule patch - * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom - * @property {string|null} [body] HttpRule body - * @property {string|null} [responseBody] HttpRule responseBody - * @property {Array.|null} [additionalBindings] HttpRule additionalBindings - */ + /** + * Creates a new NotificationConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NotificationConfig + * @static + * @param {google.container.v1.INotificationConfig=} [properties] Properties to set + * @returns {google.container.v1.NotificationConfig} NotificationConfig instance + */ + NotificationConfig.create = function create(properties) { + return new NotificationConfig(properties); + }; - /** - * Constructs a new HttpRule. - * @memberof google.api - * @classdesc Represents a HttpRule. - * @implements IHttpRule - * @constructor - * @param {google.api.IHttpRule=} [properties] Properties to set - */ - function HttpRule(properties) { - this.additionalBindings = []; - 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]]; - } + /** + * Encodes the specified NotificationConfig message. Does not implicitly {@link google.container.v1.NotificationConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NotificationConfig + * @static + * @param {google.container.v1.INotificationConfig} message NotificationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.pubsub != null && Object.hasOwnProperty.call(message, "pubsub")) + $root.google.container.v1.NotificationConfig.PubSub.encode(message.pubsub, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * HttpRule selector. - * @member {string} selector - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.selector = ""; + /** + * Encodes the specified NotificationConfig message, length delimited. Does not implicitly {@link google.container.v1.NotificationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NotificationConfig + * @static + * @param {google.container.v1.INotificationConfig} message NotificationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NotificationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * HttpRule get. - * @member {string|null|undefined} get - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.get = null; + /** + * Decodes a NotificationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NotificationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NotificationConfig} NotificationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationConfig.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.NotificationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.pubsub = $root.google.container.v1.NotificationConfig.PubSub.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * HttpRule put. - * @member {string|null|undefined} put - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.put = null; + /** + * Decodes a NotificationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NotificationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NotificationConfig} NotificationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NotificationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * HttpRule post. - * @member {string|null|undefined} post - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.post = null; + /** + * Verifies a NotificationConfig message. + * @function verify + * @memberof google.container.v1.NotificationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NotificationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.pubsub != null && message.hasOwnProperty("pubsub")) { + var error = $root.google.container.v1.NotificationConfig.PubSub.verify(message.pubsub); + if (error) + return "pubsub." + error; + } + return null; + }; - /** - * HttpRule delete. - * @member {string|null|undefined} delete - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype["delete"] = null; + /** + * Creates a NotificationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NotificationConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NotificationConfig} NotificationConfig + */ + NotificationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NotificationConfig) + return object; + var message = new $root.google.container.v1.NotificationConfig(); + if (object.pubsub != null) { + if (typeof object.pubsub !== "object") + throw TypeError(".google.container.v1.NotificationConfig.pubsub: object expected"); + message.pubsub = $root.google.container.v1.NotificationConfig.PubSub.fromObject(object.pubsub); + } + return message; + }; - /** - * HttpRule patch. + /** + * Creates a plain object from a NotificationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NotificationConfig + * @static + * @param {google.container.v1.NotificationConfig} message NotificationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NotificationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.pubsub = null; + if (message.pubsub != null && message.hasOwnProperty("pubsub")) + object.pubsub = $root.google.container.v1.NotificationConfig.PubSub.toObject(message.pubsub, options); + return object; + }; + + /** + * Converts this NotificationConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NotificationConfig + * @instance + * @returns {Object.} JSON object + */ + NotificationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * EventType enum. + * @name google.container.v1.NotificationConfig.EventType + * @enum {number} + * @property {number} EVENT_TYPE_UNSPECIFIED=0 EVENT_TYPE_UNSPECIFIED value + * @property {number} UPGRADE_AVAILABLE_EVENT=1 UPGRADE_AVAILABLE_EVENT value + * @property {number} UPGRADE_EVENT=2 UPGRADE_EVENT value + * @property {number} SECURITY_BULLETIN_EVENT=3 SECURITY_BULLETIN_EVENT value + */ + NotificationConfig.EventType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EVENT_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "UPGRADE_AVAILABLE_EVENT"] = 1; + values[valuesById[2] = "UPGRADE_EVENT"] = 2; + values[valuesById[3] = "SECURITY_BULLETIN_EVENT"] = 3; + return values; + })(); + + NotificationConfig.PubSub = (function() { + + /** + * Properties of a PubSub. + * @memberof google.container.v1.NotificationConfig + * @interface IPubSub + * @property {boolean|null} [enabled] PubSub enabled + * @property {string|null} [topic] PubSub topic + * @property {google.container.v1.NotificationConfig.IFilter|null} [filter] PubSub filter + */ + + /** + * Constructs a new PubSub. + * @memberof google.container.v1.NotificationConfig + * @classdesc Represents a PubSub. + * @implements IPubSub + * @constructor + * @param {google.container.v1.NotificationConfig.IPubSub=} [properties] Properties to set + */ + function PubSub(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]]; + } + + /** + * PubSub enabled. + * @member {boolean} enabled + * @memberof google.container.v1.NotificationConfig.PubSub + * @instance + */ + PubSub.prototype.enabled = false; + + /** + * PubSub topic. + * @member {string} topic + * @memberof google.container.v1.NotificationConfig.PubSub + * @instance + */ + PubSub.prototype.topic = ""; + + /** + * PubSub filter. + * @member {google.container.v1.NotificationConfig.IFilter|null|undefined} filter + * @memberof google.container.v1.NotificationConfig.PubSub + * @instance + */ + PubSub.prototype.filter = null; + + /** + * Creates a new PubSub instance using the specified properties. + * @function create + * @memberof google.container.v1.NotificationConfig.PubSub + * @static + * @param {google.container.v1.NotificationConfig.IPubSub=} [properties] Properties to set + * @returns {google.container.v1.NotificationConfig.PubSub} PubSub instance + */ + PubSub.create = function create(properties) { + return new PubSub(properties); + }; + + /** + * Encodes the specified PubSub message. Does not implicitly {@link google.container.v1.NotificationConfig.PubSub.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NotificationConfig.PubSub + * @static + * @param {google.container.v1.NotificationConfig.IPubSub} message PubSub message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PubSub.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.topic != null && Object.hasOwnProperty.call(message, "topic")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.topic); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + $root.google.container.v1.NotificationConfig.Filter.encode(message.filter, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified PubSub message, length delimited. Does not implicitly {@link google.container.v1.NotificationConfig.PubSub.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NotificationConfig.PubSub + * @static + * @param {google.container.v1.NotificationConfig.IPubSub} message PubSub message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PubSub.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PubSub message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NotificationConfig.PubSub + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NotificationConfig.PubSub} PubSub + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PubSub.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.NotificationConfig.PubSub(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enabled = reader.bool(); + break; + case 2: + message.topic = reader.string(); + break; + case 3: + message.filter = $root.google.container.v1.NotificationConfig.Filter.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PubSub message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NotificationConfig.PubSub + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NotificationConfig.PubSub} PubSub + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PubSub.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PubSub message. + * @function verify + * @memberof google.container.v1.NotificationConfig.PubSub + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PubSub.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.topic != null && message.hasOwnProperty("topic")) + if (!$util.isString(message.topic)) + return "topic: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) { + var error = $root.google.container.v1.NotificationConfig.Filter.verify(message.filter); + if (error) + return "filter." + error; + } + return null; + }; + + /** + * Creates a PubSub message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NotificationConfig.PubSub + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NotificationConfig.PubSub} PubSub + */ + PubSub.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NotificationConfig.PubSub) + return object; + var message = new $root.google.container.v1.NotificationConfig.PubSub(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.topic != null) + message.topic = String(object.topic); + if (object.filter != null) { + if (typeof object.filter !== "object") + throw TypeError(".google.container.v1.NotificationConfig.PubSub.filter: object expected"); + message.filter = $root.google.container.v1.NotificationConfig.Filter.fromObject(object.filter); + } + return message; + }; + + /** + * Creates a plain object from a PubSub message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NotificationConfig.PubSub + * @static + * @param {google.container.v1.NotificationConfig.PubSub} message PubSub + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PubSub.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enabled = false; + object.topic = ""; + object.filter = null; + } + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.topic != null && message.hasOwnProperty("topic")) + object.topic = message.topic; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = $root.google.container.v1.NotificationConfig.Filter.toObject(message.filter, options); + return object; + }; + + /** + * Converts this PubSub to JSON. + * @function toJSON + * @memberof google.container.v1.NotificationConfig.PubSub + * @instance + * @returns {Object.} JSON object + */ + PubSub.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PubSub; + })(); + + NotificationConfig.Filter = (function() { + + /** + * Properties of a Filter. + * @memberof google.container.v1.NotificationConfig + * @interface IFilter + * @property {Array.|null} [eventType] Filter eventType + */ + + /** + * Constructs a new Filter. + * @memberof google.container.v1.NotificationConfig + * @classdesc Represents a Filter. + * @implements IFilter + * @constructor + * @param {google.container.v1.NotificationConfig.IFilter=} [properties] Properties to set + */ + function Filter(properties) { + this.eventType = []; + 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]]; + } + + /** + * Filter eventType. + * @member {Array.} eventType + * @memberof google.container.v1.NotificationConfig.Filter + * @instance + */ + Filter.prototype.eventType = $util.emptyArray; + + /** + * Creates a new Filter instance using the specified properties. + * @function create + * @memberof google.container.v1.NotificationConfig.Filter + * @static + * @param {google.container.v1.NotificationConfig.IFilter=} [properties] Properties to set + * @returns {google.container.v1.NotificationConfig.Filter} Filter instance + */ + Filter.create = function create(properties) { + return new Filter(properties); + }; + + /** + * Encodes the specified Filter message. Does not implicitly {@link google.container.v1.NotificationConfig.Filter.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NotificationConfig.Filter + * @static + * @param {google.container.v1.NotificationConfig.IFilter} message Filter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Filter.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.eventType != null && message.eventType.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.eventType.length; ++i) + writer.int32(message.eventType[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified Filter message, length delimited. Does not implicitly {@link google.container.v1.NotificationConfig.Filter.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NotificationConfig.Filter + * @static + * @param {google.container.v1.NotificationConfig.IFilter} message Filter message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Filter.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Filter message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NotificationConfig.Filter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NotificationConfig.Filter} Filter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Filter.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.NotificationConfig.Filter(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.eventType && message.eventType.length)) + message.eventType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.eventType.push(reader.int32()); + } else + message.eventType.push(reader.int32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Filter message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NotificationConfig.Filter + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NotificationConfig.Filter} Filter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Filter.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Filter message. + * @function verify + * @memberof google.container.v1.NotificationConfig.Filter + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Filter.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.eventType != null && message.hasOwnProperty("eventType")) { + if (!Array.isArray(message.eventType)) + return "eventType: array expected"; + for (var i = 0; i < message.eventType.length; ++i) + switch (message.eventType[i]) { + default: + return "eventType: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + } + return null; + }; + + /** + * Creates a Filter message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NotificationConfig.Filter + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NotificationConfig.Filter} Filter + */ + Filter.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NotificationConfig.Filter) + return object; + var message = new $root.google.container.v1.NotificationConfig.Filter(); + if (object.eventType) { + if (!Array.isArray(object.eventType)) + throw TypeError(".google.container.v1.NotificationConfig.Filter.eventType: array expected"); + message.eventType = []; + for (var i = 0; i < object.eventType.length; ++i) + switch (object.eventType[i]) { + default: + case "EVENT_TYPE_UNSPECIFIED": + case 0: + message.eventType[i] = 0; + break; + case "UPGRADE_AVAILABLE_EVENT": + case 1: + message.eventType[i] = 1; + break; + case "UPGRADE_EVENT": + case 2: + message.eventType[i] = 2; + break; + case "SECURITY_BULLETIN_EVENT": + case 3: + message.eventType[i] = 3; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a Filter message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NotificationConfig.Filter + * @static + * @param {google.container.v1.NotificationConfig.Filter} message Filter + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Filter.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.eventType = []; + if (message.eventType && message.eventType.length) { + object.eventType = []; + for (var j = 0; j < message.eventType.length; ++j) + object.eventType[j] = options.enums === String ? $root.google.container.v1.NotificationConfig.EventType[message.eventType[j]] : message.eventType[j]; + } + return object; + }; + + /** + * Converts this Filter to JSON. + * @function toJSON + * @memberof google.container.v1.NotificationConfig.Filter + * @instance + * @returns {Object.} JSON object + */ + Filter.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Filter; + })(); + + return NotificationConfig; + })(); + + v1.ConfidentialNodes = (function() { + + /** + * Properties of a ConfidentialNodes. + * @memberof google.container.v1 + * @interface IConfidentialNodes + * @property {boolean|null} [enabled] ConfidentialNodes enabled + */ + + /** + * Constructs a new ConfidentialNodes. + * @memberof google.container.v1 + * @classdesc Represents a ConfidentialNodes. + * @implements IConfidentialNodes + * @constructor + * @param {google.container.v1.IConfidentialNodes=} [properties] Properties to set + */ + function ConfidentialNodes(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]]; + } + + /** + * ConfidentialNodes enabled. + * @member {boolean} enabled + * @memberof google.container.v1.ConfidentialNodes + * @instance + */ + ConfidentialNodes.prototype.enabled = false; + + /** + * Creates a new ConfidentialNodes instance using the specified properties. + * @function create + * @memberof google.container.v1.ConfidentialNodes + * @static + * @param {google.container.v1.IConfidentialNodes=} [properties] Properties to set + * @returns {google.container.v1.ConfidentialNodes} ConfidentialNodes instance + */ + ConfidentialNodes.create = function create(properties) { + return new ConfidentialNodes(properties); + }; + + /** + * Encodes the specified ConfidentialNodes message. Does not implicitly {@link google.container.v1.ConfidentialNodes.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ConfidentialNodes + * @static + * @param {google.container.v1.IConfidentialNodes} message ConfidentialNodes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfidentialNodes.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 ConfidentialNodes message, length delimited. Does not implicitly {@link google.container.v1.ConfidentialNodes.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ConfidentialNodes + * @static + * @param {google.container.v1.IConfidentialNodes} message ConfidentialNodes message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConfidentialNodes.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ConfidentialNodes message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ConfidentialNodes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ConfidentialNodes} ConfidentialNodes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfidentialNodes.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.ConfidentialNodes(); + 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; + }; + + /** + * Decodes a ConfidentialNodes message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ConfidentialNodes + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ConfidentialNodes} ConfidentialNodes + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConfidentialNodes.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ConfidentialNodes message. + * @function verify + * @memberof google.container.v1.ConfidentialNodes + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConfidentialNodes.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; + }; + + /** + * Creates a ConfidentialNodes message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ConfidentialNodes + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ConfidentialNodes} ConfidentialNodes + */ + ConfidentialNodes.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ConfidentialNodes) + return object; + var message = new $root.google.container.v1.ConfidentialNodes(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a ConfidentialNodes message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ConfidentialNodes + * @static + * @param {google.container.v1.ConfidentialNodes} message ConfidentialNodes + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConfidentialNodes.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 ConfidentialNodes to JSON. + * @function toJSON + * @memberof google.container.v1.ConfidentialNodes + * @instance + * @returns {Object.} JSON object + */ + ConfidentialNodes.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ConfidentialNodes; + })(); + + /** + * UpgradeResourceType enum. + * @name google.container.v1.UpgradeResourceType + * @enum {number} + * @property {number} UPGRADE_RESOURCE_TYPE_UNSPECIFIED=0 UPGRADE_RESOURCE_TYPE_UNSPECIFIED value + * @property {number} MASTER=1 MASTER value + * @property {number} NODE_POOL=2 NODE_POOL value + */ + v1.UpgradeResourceType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "UPGRADE_RESOURCE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MASTER"] = 1; + values[valuesById[2] = "NODE_POOL"] = 2; + return values; + })(); + + v1.UpgradeEvent = (function() { + + /** + * Properties of an UpgradeEvent. + * @memberof google.container.v1 + * @interface IUpgradeEvent + * @property {google.container.v1.UpgradeResourceType|null} [resourceType] UpgradeEvent resourceType + * @property {string|null} [operation] UpgradeEvent operation + * @property {google.protobuf.ITimestamp|null} [operationStartTime] UpgradeEvent operationStartTime + * @property {string|null} [currentVersion] UpgradeEvent currentVersion + * @property {string|null} [targetVersion] UpgradeEvent targetVersion + * @property {string|null} [resource] UpgradeEvent resource + */ + + /** + * Constructs a new UpgradeEvent. + * @memberof google.container.v1 + * @classdesc Represents an UpgradeEvent. + * @implements IUpgradeEvent + * @constructor + * @param {google.container.v1.IUpgradeEvent=} [properties] Properties to set + */ + function UpgradeEvent(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]]; + } + + /** + * UpgradeEvent resourceType. + * @member {google.container.v1.UpgradeResourceType} resourceType + * @memberof google.container.v1.UpgradeEvent + * @instance + */ + UpgradeEvent.prototype.resourceType = 0; + + /** + * UpgradeEvent operation. + * @member {string} operation + * @memberof google.container.v1.UpgradeEvent + * @instance + */ + UpgradeEvent.prototype.operation = ""; + + /** + * UpgradeEvent operationStartTime. + * @member {google.protobuf.ITimestamp|null|undefined} operationStartTime + * @memberof google.container.v1.UpgradeEvent + * @instance + */ + UpgradeEvent.prototype.operationStartTime = null; + + /** + * UpgradeEvent currentVersion. + * @member {string} currentVersion + * @memberof google.container.v1.UpgradeEvent + * @instance + */ + UpgradeEvent.prototype.currentVersion = ""; + + /** + * UpgradeEvent targetVersion. + * @member {string} targetVersion + * @memberof google.container.v1.UpgradeEvent + * @instance + */ + UpgradeEvent.prototype.targetVersion = ""; + + /** + * UpgradeEvent resource. + * @member {string} resource + * @memberof google.container.v1.UpgradeEvent + * @instance + */ + UpgradeEvent.prototype.resource = ""; + + /** + * Creates a new UpgradeEvent instance using the specified properties. + * @function create + * @memberof google.container.v1.UpgradeEvent + * @static + * @param {google.container.v1.IUpgradeEvent=} [properties] Properties to set + * @returns {google.container.v1.UpgradeEvent} UpgradeEvent instance + */ + UpgradeEvent.create = function create(properties) { + return new UpgradeEvent(properties); + }; + + /** + * Encodes the specified UpgradeEvent message. Does not implicitly {@link google.container.v1.UpgradeEvent.verify|verify} messages. + * @function encode + * @memberof google.container.v1.UpgradeEvent + * @static + * @param {google.container.v1.IUpgradeEvent} message UpgradeEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpgradeEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); + if (message.operation != null && Object.hasOwnProperty.call(message, "operation")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.operation); + if (message.operationStartTime != null && Object.hasOwnProperty.call(message, "operationStartTime")) + $root.google.protobuf.Timestamp.encode(message.operationStartTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.currentVersion != null && Object.hasOwnProperty.call(message, "currentVersion")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.currentVersion); + if (message.targetVersion != null && Object.hasOwnProperty.call(message, "targetVersion")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.targetVersion); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.resource); + return writer; + }; + + /** + * Encodes the specified UpgradeEvent message, length delimited. Does not implicitly {@link google.container.v1.UpgradeEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.UpgradeEvent + * @static + * @param {google.container.v1.IUpgradeEvent} message UpgradeEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpgradeEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpgradeEvent message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.UpgradeEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.UpgradeEvent} UpgradeEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpgradeEvent.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.UpgradeEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceType = reader.int32(); + break; + case 2: + message.operation = reader.string(); + break; + case 3: + message.operationStartTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.currentVersion = reader.string(); + break; + case 5: + message.targetVersion = reader.string(); + break; + case 6: + message.resource = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpgradeEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.UpgradeEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.UpgradeEvent} UpgradeEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpgradeEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpgradeEvent message. + * @function verify + * @memberof google.container.v1.UpgradeEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpgradeEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.operation != null && message.hasOwnProperty("operation")) + if (!$util.isString(message.operation)) + return "operation: string expected"; + if (message.operationStartTime != null && message.hasOwnProperty("operationStartTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.operationStartTime); + if (error) + return "operationStartTime." + error; + } + if (message.currentVersion != null && message.hasOwnProperty("currentVersion")) + if (!$util.isString(message.currentVersion)) + return "currentVersion: string expected"; + if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) + if (!$util.isString(message.targetVersion)) + return "targetVersion: string expected"; + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates an UpgradeEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.UpgradeEvent + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.UpgradeEvent} UpgradeEvent + */ + UpgradeEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UpgradeEvent) + return object; + var message = new $root.google.container.v1.UpgradeEvent(); + switch (object.resourceType) { + case "UPGRADE_RESOURCE_TYPE_UNSPECIFIED": + case 0: + message.resourceType = 0; + break; + case "MASTER": + case 1: + message.resourceType = 1; + break; + case "NODE_POOL": + case 2: + message.resourceType = 2; + break; + } + if (object.operation != null) + message.operation = String(object.operation); + if (object.operationStartTime != null) { + if (typeof object.operationStartTime !== "object") + throw TypeError(".google.container.v1.UpgradeEvent.operationStartTime: object expected"); + message.operationStartTime = $root.google.protobuf.Timestamp.fromObject(object.operationStartTime); + } + if (object.currentVersion != null) + message.currentVersion = String(object.currentVersion); + if (object.targetVersion != null) + message.targetVersion = String(object.targetVersion); + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from an UpgradeEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.UpgradeEvent + * @static + * @param {google.container.v1.UpgradeEvent} message UpgradeEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpgradeEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.resourceType = options.enums === String ? "UPGRADE_RESOURCE_TYPE_UNSPECIFIED" : 0; + object.operation = ""; + object.operationStartTime = null; + object.currentVersion = ""; + object.targetVersion = ""; + object.resource = ""; + } + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = options.enums === String ? $root.google.container.v1.UpgradeResourceType[message.resourceType] : message.resourceType; + if (message.operation != null && message.hasOwnProperty("operation")) + object.operation = message.operation; + if (message.operationStartTime != null && message.hasOwnProperty("operationStartTime")) + object.operationStartTime = $root.google.protobuf.Timestamp.toObject(message.operationStartTime, options); + if (message.currentVersion != null && message.hasOwnProperty("currentVersion")) + object.currentVersion = message.currentVersion; + if (message.targetVersion != null && message.hasOwnProperty("targetVersion")) + object.targetVersion = message.targetVersion; + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + return object; + }; + + /** + * Converts this UpgradeEvent to JSON. + * @function toJSON + * @memberof google.container.v1.UpgradeEvent + * @instance + * @returns {Object.} JSON object + */ + UpgradeEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpgradeEvent; + })(); + + v1.UpgradeAvailableEvent = (function() { + + /** + * Properties of an UpgradeAvailableEvent. + * @memberof google.container.v1 + * @interface IUpgradeAvailableEvent + * @property {string|null} [version] UpgradeAvailableEvent version + * @property {google.container.v1.UpgradeResourceType|null} [resourceType] UpgradeAvailableEvent resourceType + * @property {google.container.v1.IReleaseChannel|null} [releaseChannel] UpgradeAvailableEvent releaseChannel + * @property {string|null} [resource] UpgradeAvailableEvent resource + */ + + /** + * Constructs a new UpgradeAvailableEvent. + * @memberof google.container.v1 + * @classdesc Represents an UpgradeAvailableEvent. + * @implements IUpgradeAvailableEvent + * @constructor + * @param {google.container.v1.IUpgradeAvailableEvent=} [properties] Properties to set + */ + function UpgradeAvailableEvent(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]]; + } + + /** + * UpgradeAvailableEvent version. + * @member {string} version + * @memberof google.container.v1.UpgradeAvailableEvent + * @instance + */ + UpgradeAvailableEvent.prototype.version = ""; + + /** + * UpgradeAvailableEvent resourceType. + * @member {google.container.v1.UpgradeResourceType} resourceType + * @memberof google.container.v1.UpgradeAvailableEvent + * @instance + */ + UpgradeAvailableEvent.prototype.resourceType = 0; + + /** + * UpgradeAvailableEvent releaseChannel. + * @member {google.container.v1.IReleaseChannel|null|undefined} releaseChannel + * @memberof google.container.v1.UpgradeAvailableEvent + * @instance + */ + UpgradeAvailableEvent.prototype.releaseChannel = null; + + /** + * UpgradeAvailableEvent resource. + * @member {string} resource + * @memberof google.container.v1.UpgradeAvailableEvent + * @instance + */ + UpgradeAvailableEvent.prototype.resource = ""; + + /** + * Creates a new UpgradeAvailableEvent instance using the specified properties. + * @function create + * @memberof google.container.v1.UpgradeAvailableEvent + * @static + * @param {google.container.v1.IUpgradeAvailableEvent=} [properties] Properties to set + * @returns {google.container.v1.UpgradeAvailableEvent} UpgradeAvailableEvent instance + */ + UpgradeAvailableEvent.create = function create(properties) { + return new UpgradeAvailableEvent(properties); + }; + + /** + * Encodes the specified UpgradeAvailableEvent message. Does not implicitly {@link google.container.v1.UpgradeAvailableEvent.verify|verify} messages. + * @function encode + * @memberof google.container.v1.UpgradeAvailableEvent + * @static + * @param {google.container.v1.IUpgradeAvailableEvent} message UpgradeAvailableEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpgradeAvailableEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, "version")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.version); + if (message.resourceType != null && Object.hasOwnProperty.call(message, "resourceType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.resourceType); + if (message.releaseChannel != null && Object.hasOwnProperty.call(message, "releaseChannel")) + $root.google.container.v1.ReleaseChannel.encode(message.releaseChannel, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.resource != null && Object.hasOwnProperty.call(message, "resource")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.resource); + return writer; + }; + + /** + * Encodes the specified UpgradeAvailableEvent message, length delimited. Does not implicitly {@link google.container.v1.UpgradeAvailableEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.UpgradeAvailableEvent + * @static + * @param {google.container.v1.IUpgradeAvailableEvent} message UpgradeAvailableEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpgradeAvailableEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpgradeAvailableEvent message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.UpgradeAvailableEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.UpgradeAvailableEvent} UpgradeAvailableEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpgradeAvailableEvent.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.UpgradeAvailableEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.version = reader.string(); + break; + case 2: + message.resourceType = reader.int32(); + break; + case 3: + message.releaseChannel = $root.google.container.v1.ReleaseChannel.decode(reader, reader.uint32()); + break; + case 4: + message.resource = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpgradeAvailableEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.UpgradeAvailableEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.UpgradeAvailableEvent} UpgradeAvailableEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpgradeAvailableEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpgradeAvailableEvent message. + * @function verify + * @memberof google.container.v1.UpgradeAvailableEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpgradeAvailableEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.version != null && message.hasOwnProperty("version")) + if (!$util.isString(message.version)) + return "version: string expected"; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + switch (message.resourceType) { + default: + return "resourceType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel")) { + var error = $root.google.container.v1.ReleaseChannel.verify(message.releaseChannel); + if (error) + return "releaseChannel." + error; + } + if (message.resource != null && message.hasOwnProperty("resource")) + if (!$util.isString(message.resource)) + return "resource: string expected"; + return null; + }; + + /** + * Creates an UpgradeAvailableEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.UpgradeAvailableEvent + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.UpgradeAvailableEvent} UpgradeAvailableEvent + */ + UpgradeAvailableEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.UpgradeAvailableEvent) + return object; + var message = new $root.google.container.v1.UpgradeAvailableEvent(); + if (object.version != null) + message.version = String(object.version); + switch (object.resourceType) { + case "UPGRADE_RESOURCE_TYPE_UNSPECIFIED": + case 0: + message.resourceType = 0; + break; + case "MASTER": + case 1: + message.resourceType = 1; + break; + case "NODE_POOL": + case 2: + message.resourceType = 2; + break; + } + if (object.releaseChannel != null) { + if (typeof object.releaseChannel !== "object") + throw TypeError(".google.container.v1.UpgradeAvailableEvent.releaseChannel: object expected"); + message.releaseChannel = $root.google.container.v1.ReleaseChannel.fromObject(object.releaseChannel); + } + if (object.resource != null) + message.resource = String(object.resource); + return message; + }; + + /** + * Creates a plain object from an UpgradeAvailableEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.UpgradeAvailableEvent + * @static + * @param {google.container.v1.UpgradeAvailableEvent} message UpgradeAvailableEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpgradeAvailableEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.version = ""; + object.resourceType = options.enums === String ? "UPGRADE_RESOURCE_TYPE_UNSPECIFIED" : 0; + object.releaseChannel = null; + object.resource = ""; + } + if (message.version != null && message.hasOwnProperty("version")) + object.version = message.version; + if (message.resourceType != null && message.hasOwnProperty("resourceType")) + object.resourceType = options.enums === String ? $root.google.container.v1.UpgradeResourceType[message.resourceType] : message.resourceType; + if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel")) + object.releaseChannel = $root.google.container.v1.ReleaseChannel.toObject(message.releaseChannel, options); + if (message.resource != null && message.hasOwnProperty("resource")) + object.resource = message.resource; + return object; + }; + + /** + * Converts this UpgradeAvailableEvent to JSON. + * @function toJSON + * @memberof google.container.v1.UpgradeAvailableEvent + * @instance + * @returns {Object.} JSON object + */ + UpgradeAvailableEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpgradeAvailableEvent; + })(); + + v1.SecurityBulletinEvent = (function() { + + /** + * Properties of a SecurityBulletinEvent. + * @memberof google.container.v1 + * @interface ISecurityBulletinEvent + * @property {string|null} [resourceTypeAffected] SecurityBulletinEvent resourceTypeAffected + * @property {string|null} [bulletinId] SecurityBulletinEvent bulletinId + * @property {Array.|null} [cveIds] SecurityBulletinEvent cveIds + * @property {string|null} [severity] SecurityBulletinEvent severity + * @property {string|null} [bulletinUri] SecurityBulletinEvent bulletinUri + * @property {string|null} [briefDescription] SecurityBulletinEvent briefDescription + * @property {Array.|null} [affectedSupportedMinors] SecurityBulletinEvent affectedSupportedMinors + * @property {Array.|null} [patchedVersions] SecurityBulletinEvent patchedVersions + * @property {string|null} [suggestedUpgradeTarget] SecurityBulletinEvent suggestedUpgradeTarget + * @property {boolean|null} [manualStepsRequired] SecurityBulletinEvent manualStepsRequired + */ + + /** + * Constructs a new SecurityBulletinEvent. + * @memberof google.container.v1 + * @classdesc Represents a SecurityBulletinEvent. + * @implements ISecurityBulletinEvent + * @constructor + * @param {google.container.v1.ISecurityBulletinEvent=} [properties] Properties to set + */ + function SecurityBulletinEvent(properties) { + this.cveIds = []; + this.affectedSupportedMinors = []; + this.patchedVersions = []; + 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]]; + } + + /** + * SecurityBulletinEvent resourceTypeAffected. + * @member {string} resourceTypeAffected + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + */ + SecurityBulletinEvent.prototype.resourceTypeAffected = ""; + + /** + * SecurityBulletinEvent bulletinId. + * @member {string} bulletinId + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + */ + SecurityBulletinEvent.prototype.bulletinId = ""; + + /** + * SecurityBulletinEvent cveIds. + * @member {Array.} cveIds + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + */ + SecurityBulletinEvent.prototype.cveIds = $util.emptyArray; + + /** + * SecurityBulletinEvent severity. + * @member {string} severity + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + */ + SecurityBulletinEvent.prototype.severity = ""; + + /** + * SecurityBulletinEvent bulletinUri. + * @member {string} bulletinUri + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + */ + SecurityBulletinEvent.prototype.bulletinUri = ""; + + /** + * SecurityBulletinEvent briefDescription. + * @member {string} briefDescription + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + */ + SecurityBulletinEvent.prototype.briefDescription = ""; + + /** + * SecurityBulletinEvent affectedSupportedMinors. + * @member {Array.} affectedSupportedMinors + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + */ + SecurityBulletinEvent.prototype.affectedSupportedMinors = $util.emptyArray; + + /** + * SecurityBulletinEvent patchedVersions. + * @member {Array.} patchedVersions + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + */ + SecurityBulletinEvent.prototype.patchedVersions = $util.emptyArray; + + /** + * SecurityBulletinEvent suggestedUpgradeTarget. + * @member {string} suggestedUpgradeTarget + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + */ + SecurityBulletinEvent.prototype.suggestedUpgradeTarget = ""; + + /** + * SecurityBulletinEvent manualStepsRequired. + * @member {boolean} manualStepsRequired + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + */ + SecurityBulletinEvent.prototype.manualStepsRequired = false; + + /** + * Creates a new SecurityBulletinEvent instance using the specified properties. + * @function create + * @memberof google.container.v1.SecurityBulletinEvent + * @static + * @param {google.container.v1.ISecurityBulletinEvent=} [properties] Properties to set + * @returns {google.container.v1.SecurityBulletinEvent} SecurityBulletinEvent instance + */ + SecurityBulletinEvent.create = function create(properties) { + return new SecurityBulletinEvent(properties); + }; + + /** + * Encodes the specified SecurityBulletinEvent message. Does not implicitly {@link google.container.v1.SecurityBulletinEvent.verify|verify} messages. + * @function encode + * @memberof google.container.v1.SecurityBulletinEvent + * @static + * @param {google.container.v1.ISecurityBulletinEvent} message SecurityBulletinEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityBulletinEvent.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.resourceTypeAffected != null && Object.hasOwnProperty.call(message, "resourceTypeAffected")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.resourceTypeAffected); + if (message.bulletinId != null && Object.hasOwnProperty.call(message, "bulletinId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.bulletinId); + if (message.cveIds != null && message.cveIds.length) + for (var i = 0; i < message.cveIds.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.cveIds[i]); + if (message.severity != null && Object.hasOwnProperty.call(message, "severity")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.severity); + if (message.bulletinUri != null && Object.hasOwnProperty.call(message, "bulletinUri")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.bulletinUri); + if (message.briefDescription != null && Object.hasOwnProperty.call(message, "briefDescription")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.briefDescription); + if (message.affectedSupportedMinors != null && message.affectedSupportedMinors.length) + for (var i = 0; i < message.affectedSupportedMinors.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.affectedSupportedMinors[i]); + if (message.patchedVersions != null && message.patchedVersions.length) + for (var i = 0; i < message.patchedVersions.length; ++i) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.patchedVersions[i]); + if (message.suggestedUpgradeTarget != null && Object.hasOwnProperty.call(message, "suggestedUpgradeTarget")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.suggestedUpgradeTarget); + if (message.manualStepsRequired != null && Object.hasOwnProperty.call(message, "manualStepsRequired")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.manualStepsRequired); + return writer; + }; + + /** + * Encodes the specified SecurityBulletinEvent message, length delimited. Does not implicitly {@link google.container.v1.SecurityBulletinEvent.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.SecurityBulletinEvent + * @static + * @param {google.container.v1.ISecurityBulletinEvent} message SecurityBulletinEvent message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SecurityBulletinEvent.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SecurityBulletinEvent message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.SecurityBulletinEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.SecurityBulletinEvent} SecurityBulletinEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityBulletinEvent.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.SecurityBulletinEvent(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.resourceTypeAffected = reader.string(); + break; + case 2: + message.bulletinId = reader.string(); + break; + case 3: + if (!(message.cveIds && message.cveIds.length)) + message.cveIds = []; + message.cveIds.push(reader.string()); + break; + case 4: + message.severity = reader.string(); + break; + case 5: + message.bulletinUri = reader.string(); + break; + case 6: + message.briefDescription = reader.string(); + break; + case 7: + if (!(message.affectedSupportedMinors && message.affectedSupportedMinors.length)) + message.affectedSupportedMinors = []; + message.affectedSupportedMinors.push(reader.string()); + break; + case 8: + if (!(message.patchedVersions && message.patchedVersions.length)) + message.patchedVersions = []; + message.patchedVersions.push(reader.string()); + break; + case 9: + message.suggestedUpgradeTarget = reader.string(); + break; + case 10: + message.manualStepsRequired = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SecurityBulletinEvent message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.SecurityBulletinEvent + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.SecurityBulletinEvent} SecurityBulletinEvent + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SecurityBulletinEvent.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SecurityBulletinEvent message. + * @function verify + * @memberof google.container.v1.SecurityBulletinEvent + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SecurityBulletinEvent.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.resourceTypeAffected != null && message.hasOwnProperty("resourceTypeAffected")) + if (!$util.isString(message.resourceTypeAffected)) + return "resourceTypeAffected: string expected"; + if (message.bulletinId != null && message.hasOwnProperty("bulletinId")) + if (!$util.isString(message.bulletinId)) + return "bulletinId: string expected"; + if (message.cveIds != null && message.hasOwnProperty("cveIds")) { + if (!Array.isArray(message.cveIds)) + return "cveIds: array expected"; + for (var i = 0; i < message.cveIds.length; ++i) + if (!$util.isString(message.cveIds[i])) + return "cveIds: string[] expected"; + } + if (message.severity != null && message.hasOwnProperty("severity")) + if (!$util.isString(message.severity)) + return "severity: string expected"; + if (message.bulletinUri != null && message.hasOwnProperty("bulletinUri")) + if (!$util.isString(message.bulletinUri)) + return "bulletinUri: string expected"; + if (message.briefDescription != null && message.hasOwnProperty("briefDescription")) + if (!$util.isString(message.briefDescription)) + return "briefDescription: string expected"; + if (message.affectedSupportedMinors != null && message.hasOwnProperty("affectedSupportedMinors")) { + if (!Array.isArray(message.affectedSupportedMinors)) + return "affectedSupportedMinors: array expected"; + for (var i = 0; i < message.affectedSupportedMinors.length; ++i) + if (!$util.isString(message.affectedSupportedMinors[i])) + return "affectedSupportedMinors: string[] expected"; + } + if (message.patchedVersions != null && message.hasOwnProperty("patchedVersions")) { + if (!Array.isArray(message.patchedVersions)) + return "patchedVersions: array expected"; + for (var i = 0; i < message.patchedVersions.length; ++i) + if (!$util.isString(message.patchedVersions[i])) + return "patchedVersions: string[] expected"; + } + if (message.suggestedUpgradeTarget != null && message.hasOwnProperty("suggestedUpgradeTarget")) + if (!$util.isString(message.suggestedUpgradeTarget)) + return "suggestedUpgradeTarget: string expected"; + if (message.manualStepsRequired != null && message.hasOwnProperty("manualStepsRequired")) + if (typeof message.manualStepsRequired !== "boolean") + return "manualStepsRequired: boolean expected"; + return null; + }; + + /** + * Creates a SecurityBulletinEvent message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.SecurityBulletinEvent + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.SecurityBulletinEvent} SecurityBulletinEvent + */ + SecurityBulletinEvent.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.SecurityBulletinEvent) + return object; + var message = new $root.google.container.v1.SecurityBulletinEvent(); + if (object.resourceTypeAffected != null) + message.resourceTypeAffected = String(object.resourceTypeAffected); + if (object.bulletinId != null) + message.bulletinId = String(object.bulletinId); + if (object.cveIds) { + if (!Array.isArray(object.cveIds)) + throw TypeError(".google.container.v1.SecurityBulletinEvent.cveIds: array expected"); + message.cveIds = []; + for (var i = 0; i < object.cveIds.length; ++i) + message.cveIds[i] = String(object.cveIds[i]); + } + if (object.severity != null) + message.severity = String(object.severity); + if (object.bulletinUri != null) + message.bulletinUri = String(object.bulletinUri); + if (object.briefDescription != null) + message.briefDescription = String(object.briefDescription); + if (object.affectedSupportedMinors) { + if (!Array.isArray(object.affectedSupportedMinors)) + throw TypeError(".google.container.v1.SecurityBulletinEvent.affectedSupportedMinors: array expected"); + message.affectedSupportedMinors = []; + for (var i = 0; i < object.affectedSupportedMinors.length; ++i) + message.affectedSupportedMinors[i] = String(object.affectedSupportedMinors[i]); + } + if (object.patchedVersions) { + if (!Array.isArray(object.patchedVersions)) + throw TypeError(".google.container.v1.SecurityBulletinEvent.patchedVersions: array expected"); + message.patchedVersions = []; + for (var i = 0; i < object.patchedVersions.length; ++i) + message.patchedVersions[i] = String(object.patchedVersions[i]); + } + if (object.suggestedUpgradeTarget != null) + message.suggestedUpgradeTarget = String(object.suggestedUpgradeTarget); + if (object.manualStepsRequired != null) + message.manualStepsRequired = Boolean(object.manualStepsRequired); + return message; + }; + + /** + * Creates a plain object from a SecurityBulletinEvent message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.SecurityBulletinEvent + * @static + * @param {google.container.v1.SecurityBulletinEvent} message SecurityBulletinEvent + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SecurityBulletinEvent.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.cveIds = []; + object.affectedSupportedMinors = []; + object.patchedVersions = []; + } + if (options.defaults) { + object.resourceTypeAffected = ""; + object.bulletinId = ""; + object.severity = ""; + object.bulletinUri = ""; + object.briefDescription = ""; + object.suggestedUpgradeTarget = ""; + object.manualStepsRequired = false; + } + if (message.resourceTypeAffected != null && message.hasOwnProperty("resourceTypeAffected")) + object.resourceTypeAffected = message.resourceTypeAffected; + if (message.bulletinId != null && message.hasOwnProperty("bulletinId")) + object.bulletinId = message.bulletinId; + if (message.cveIds && message.cveIds.length) { + object.cveIds = []; + for (var j = 0; j < message.cveIds.length; ++j) + object.cveIds[j] = message.cveIds[j]; + } + if (message.severity != null && message.hasOwnProperty("severity")) + object.severity = message.severity; + if (message.bulletinUri != null && message.hasOwnProperty("bulletinUri")) + object.bulletinUri = message.bulletinUri; + if (message.briefDescription != null && message.hasOwnProperty("briefDescription")) + object.briefDescription = message.briefDescription; + if (message.affectedSupportedMinors && message.affectedSupportedMinors.length) { + object.affectedSupportedMinors = []; + for (var j = 0; j < message.affectedSupportedMinors.length; ++j) + object.affectedSupportedMinors[j] = message.affectedSupportedMinors[j]; + } + if (message.patchedVersions && message.patchedVersions.length) { + object.patchedVersions = []; + for (var j = 0; j < message.patchedVersions.length; ++j) + object.patchedVersions[j] = message.patchedVersions[j]; + } + if (message.suggestedUpgradeTarget != null && message.hasOwnProperty("suggestedUpgradeTarget")) + object.suggestedUpgradeTarget = message.suggestedUpgradeTarget; + if (message.manualStepsRequired != null && message.hasOwnProperty("manualStepsRequired")) + object.manualStepsRequired = message.manualStepsRequired; + return object; + }; + + /** + * Converts this SecurityBulletinEvent to JSON. + * @function toJSON + * @memberof google.container.v1.SecurityBulletinEvent + * @instance + * @returns {Object.} JSON object + */ + SecurityBulletinEvent.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SecurityBulletinEvent; + })(); + + v1.Autopilot = (function() { + + /** + * Properties of an Autopilot. + * @memberof google.container.v1 + * @interface IAutopilot + * @property {boolean|null} [enabled] Autopilot enabled + */ + + /** + * Constructs a new Autopilot. + * @memberof google.container.v1 + * @classdesc Represents an Autopilot. + * @implements IAutopilot + * @constructor + * @param {google.container.v1.IAutopilot=} [properties] Properties to set + */ + function Autopilot(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]]; + } + + /** + * Autopilot enabled. + * @member {boolean} enabled + * @memberof google.container.v1.Autopilot + * @instance + */ + Autopilot.prototype.enabled = false; + + /** + * Creates a new Autopilot instance using the specified properties. + * @function create + * @memberof google.container.v1.Autopilot + * @static + * @param {google.container.v1.IAutopilot=} [properties] Properties to set + * @returns {google.container.v1.Autopilot} Autopilot instance + */ + Autopilot.create = function create(properties) { + return new Autopilot(properties); + }; + + /** + * Encodes the specified Autopilot message. Does not implicitly {@link google.container.v1.Autopilot.verify|verify} messages. + * @function encode + * @memberof google.container.v1.Autopilot + * @static + * @param {google.container.v1.IAutopilot} message Autopilot message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Autopilot.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 Autopilot message, length delimited. Does not implicitly {@link google.container.v1.Autopilot.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.Autopilot + * @static + * @param {google.container.v1.IAutopilot} message Autopilot message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Autopilot.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Autopilot message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.Autopilot + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.Autopilot} Autopilot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Autopilot.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.Autopilot(); + 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; + }; + + /** + * Decodes an Autopilot message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.Autopilot + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.Autopilot} Autopilot + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Autopilot.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Autopilot message. + * @function verify + * @memberof google.container.v1.Autopilot + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Autopilot.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; + }; + + /** + * Creates an Autopilot message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.Autopilot + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.Autopilot} Autopilot + */ + Autopilot.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.Autopilot) + return object; + var message = new $root.google.container.v1.Autopilot(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from an Autopilot message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.Autopilot + * @static + * @param {google.container.v1.Autopilot} message Autopilot + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Autopilot.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 Autopilot to JSON. + * @function toJSON + * @memberof google.container.v1.Autopilot + * @instance + * @returns {Object.} JSON object + */ + Autopilot.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Autopilot; + })(); + + v1.LoggingConfig = (function() { + + /** + * Properties of a LoggingConfig. + * @memberof google.container.v1 + * @interface ILoggingConfig + * @property {google.container.v1.ILoggingComponentConfig|null} [componentConfig] LoggingConfig componentConfig + */ + + /** + * Constructs a new LoggingConfig. + * @memberof google.container.v1 + * @classdesc Represents a LoggingConfig. + * @implements ILoggingConfig + * @constructor + * @param {google.container.v1.ILoggingConfig=} [properties] Properties to set + */ + function LoggingConfig(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]]; + } + + /** + * LoggingConfig componentConfig. + * @member {google.container.v1.ILoggingComponentConfig|null|undefined} componentConfig + * @memberof google.container.v1.LoggingConfig + * @instance + */ + LoggingConfig.prototype.componentConfig = null; + + /** + * Creates a new LoggingConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.LoggingConfig + * @static + * @param {google.container.v1.ILoggingConfig=} [properties] Properties to set + * @returns {google.container.v1.LoggingConfig} LoggingConfig instance + */ + LoggingConfig.create = function create(properties) { + return new LoggingConfig(properties); + }; + + /** + * Encodes the specified LoggingConfig message. Does not implicitly {@link google.container.v1.LoggingConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.LoggingConfig + * @static + * @param {google.container.v1.ILoggingConfig} message LoggingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.componentConfig != null && Object.hasOwnProperty.call(message, "componentConfig")) + $root.google.container.v1.LoggingComponentConfig.encode(message.componentConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified LoggingConfig message, length delimited. Does not implicitly {@link google.container.v1.LoggingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.LoggingConfig + * @static + * @param {google.container.v1.ILoggingConfig} message LoggingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LoggingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.LoggingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.LoggingConfig} LoggingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingConfig.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.LoggingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.componentConfig = $root.google.container.v1.LoggingComponentConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LoggingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.LoggingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.LoggingConfig} LoggingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LoggingConfig message. + * @function verify + * @memberof google.container.v1.LoggingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LoggingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.componentConfig != null && message.hasOwnProperty("componentConfig")) { + var error = $root.google.container.v1.LoggingComponentConfig.verify(message.componentConfig); + if (error) + return "componentConfig." + error; + } + return null; + }; + + /** + * Creates a LoggingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.LoggingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.LoggingConfig} LoggingConfig + */ + LoggingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.LoggingConfig) + return object; + var message = new $root.google.container.v1.LoggingConfig(); + if (object.componentConfig != null) { + if (typeof object.componentConfig !== "object") + throw TypeError(".google.container.v1.LoggingConfig.componentConfig: object expected"); + message.componentConfig = $root.google.container.v1.LoggingComponentConfig.fromObject(object.componentConfig); + } + return message; + }; + + /** + * Creates a plain object from a LoggingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.LoggingConfig + * @static + * @param {google.container.v1.LoggingConfig} message LoggingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LoggingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.componentConfig = null; + if (message.componentConfig != null && message.hasOwnProperty("componentConfig")) + object.componentConfig = $root.google.container.v1.LoggingComponentConfig.toObject(message.componentConfig, options); + return object; + }; + + /** + * Converts this LoggingConfig to JSON. + * @function toJSON + * @memberof google.container.v1.LoggingConfig + * @instance + * @returns {Object.} JSON object + */ + LoggingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return LoggingConfig; + })(); + + v1.LoggingComponentConfig = (function() { + + /** + * Properties of a LoggingComponentConfig. + * @memberof google.container.v1 + * @interface ILoggingComponentConfig + * @property {Array.|null} [enableComponents] LoggingComponentConfig enableComponents + */ + + /** + * Constructs a new LoggingComponentConfig. + * @memberof google.container.v1 + * @classdesc Represents a LoggingComponentConfig. + * @implements ILoggingComponentConfig + * @constructor + * @param {google.container.v1.ILoggingComponentConfig=} [properties] Properties to set + */ + function LoggingComponentConfig(properties) { + this.enableComponents = []; + 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]]; + } + + /** + * LoggingComponentConfig enableComponents. + * @member {Array.} enableComponents + * @memberof google.container.v1.LoggingComponentConfig + * @instance + */ + LoggingComponentConfig.prototype.enableComponents = $util.emptyArray; + + /** + * Creates a new LoggingComponentConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.LoggingComponentConfig + * @static + * @param {google.container.v1.ILoggingComponentConfig=} [properties] Properties to set + * @returns {google.container.v1.LoggingComponentConfig} LoggingComponentConfig instance + */ + LoggingComponentConfig.create = function create(properties) { + return new LoggingComponentConfig(properties); + }; + + /** + * Encodes the specified LoggingComponentConfig message. Does not implicitly {@link google.container.v1.LoggingComponentConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.LoggingComponentConfig + * @static + * @param {google.container.v1.ILoggingComponentConfig} message LoggingComponentConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingComponentConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enableComponents != null && message.enableComponents.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.enableComponents.length; ++i) + writer.int32(message.enableComponents[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified LoggingComponentConfig message, length delimited. Does not implicitly {@link google.container.v1.LoggingComponentConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.LoggingComponentConfig + * @static + * @param {google.container.v1.ILoggingComponentConfig} message LoggingComponentConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingComponentConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LoggingComponentConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.LoggingComponentConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.LoggingComponentConfig} LoggingComponentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingComponentConfig.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.LoggingComponentConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.enableComponents && message.enableComponents.length)) + message.enableComponents = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.enableComponents.push(reader.int32()); + } else + message.enableComponents.push(reader.int32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LoggingComponentConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.LoggingComponentConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.LoggingComponentConfig} LoggingComponentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingComponentConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LoggingComponentConfig message. + * @function verify + * @memberof google.container.v1.LoggingComponentConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LoggingComponentConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enableComponents != null && message.hasOwnProperty("enableComponents")) { + if (!Array.isArray(message.enableComponents)) + return "enableComponents: array expected"; + for (var i = 0; i < message.enableComponents.length; ++i) + switch (message.enableComponents[i]) { + default: + return "enableComponents: enum value[] expected"; + case 0: + case 1: + case 2: + break; + } + } + return null; + }; + + /** + * Creates a LoggingComponentConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.LoggingComponentConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.LoggingComponentConfig} LoggingComponentConfig + */ + LoggingComponentConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.LoggingComponentConfig) + return object; + var message = new $root.google.container.v1.LoggingComponentConfig(); + if (object.enableComponents) { + if (!Array.isArray(object.enableComponents)) + throw TypeError(".google.container.v1.LoggingComponentConfig.enableComponents: array expected"); + message.enableComponents = []; + for (var i = 0; i < object.enableComponents.length; ++i) + switch (object.enableComponents[i]) { + default: + case "COMPONENT_UNSPECIFIED": + case 0: + message.enableComponents[i] = 0; + break; + case "SYSTEM_COMPONENTS": + case 1: + message.enableComponents[i] = 1; + break; + case "WORKLOADS": + case 2: + message.enableComponents[i] = 2; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a LoggingComponentConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.LoggingComponentConfig + * @static + * @param {google.container.v1.LoggingComponentConfig} message LoggingComponentConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LoggingComponentConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.enableComponents = []; + if (message.enableComponents && message.enableComponents.length) { + object.enableComponents = []; + for (var j = 0; j < message.enableComponents.length; ++j) + object.enableComponents[j] = options.enums === String ? $root.google.container.v1.LoggingComponentConfig.Component[message.enableComponents[j]] : message.enableComponents[j]; + } + return object; + }; + + /** + * Converts this LoggingComponentConfig to JSON. + * @function toJSON + * @memberof google.container.v1.LoggingComponentConfig + * @instance + * @returns {Object.} JSON object + */ + LoggingComponentConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Component enum. + * @name google.container.v1.LoggingComponentConfig.Component + * @enum {number} + * @property {number} COMPONENT_UNSPECIFIED=0 COMPONENT_UNSPECIFIED value + * @property {number} SYSTEM_COMPONENTS=1 SYSTEM_COMPONENTS value + * @property {number} WORKLOADS=2 WORKLOADS value + */ + LoggingComponentConfig.Component = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COMPONENT_UNSPECIFIED"] = 0; + values[valuesById[1] = "SYSTEM_COMPONENTS"] = 1; + values[valuesById[2] = "WORKLOADS"] = 2; + return values; + })(); + + return LoggingComponentConfig; + })(); + + v1.MonitoringConfig = (function() { + + /** + * Properties of a MonitoringConfig. + * @memberof google.container.v1 + * @interface IMonitoringConfig + * @property {google.container.v1.IMonitoringComponentConfig|null} [componentConfig] MonitoringConfig componentConfig + */ + + /** + * Constructs a new MonitoringConfig. + * @memberof google.container.v1 + * @classdesc Represents a MonitoringConfig. + * @implements IMonitoringConfig + * @constructor + * @param {google.container.v1.IMonitoringConfig=} [properties] Properties to set + */ + function MonitoringConfig(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]]; + } + + /** + * MonitoringConfig componentConfig. + * @member {google.container.v1.IMonitoringComponentConfig|null|undefined} componentConfig + * @memberof google.container.v1.MonitoringConfig + * @instance + */ + MonitoringConfig.prototype.componentConfig = null; + + /** + * Creates a new MonitoringConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.MonitoringConfig + * @static + * @param {google.container.v1.IMonitoringConfig=} [properties] Properties to set + * @returns {google.container.v1.MonitoringConfig} MonitoringConfig instance + */ + MonitoringConfig.create = function create(properties) { + return new MonitoringConfig(properties); + }; + + /** + * Encodes the specified MonitoringConfig message. Does not implicitly {@link google.container.v1.MonitoringConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MonitoringConfig + * @static + * @param {google.container.v1.IMonitoringConfig} message MonitoringConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MonitoringConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.componentConfig != null && Object.hasOwnProperty.call(message, "componentConfig")) + $root.google.container.v1.MonitoringComponentConfig.encode(message.componentConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified MonitoringConfig message, length delimited. Does not implicitly {@link google.container.v1.MonitoringConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MonitoringConfig + * @static + * @param {google.container.v1.IMonitoringConfig} message MonitoringConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MonitoringConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MonitoringConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.MonitoringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.MonitoringConfig} MonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MonitoringConfig.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.MonitoringConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.componentConfig = $root.google.container.v1.MonitoringComponentConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MonitoringConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MonitoringConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.MonitoringConfig} MonitoringConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MonitoringConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MonitoringConfig message. + * @function verify + * @memberof google.container.v1.MonitoringConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MonitoringConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.componentConfig != null && message.hasOwnProperty("componentConfig")) { + var error = $root.google.container.v1.MonitoringComponentConfig.verify(message.componentConfig); + if (error) + return "componentConfig." + error; + } + return null; + }; + + /** + * Creates a MonitoringConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.MonitoringConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MonitoringConfig} MonitoringConfig + */ + MonitoringConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MonitoringConfig) + return object; + var message = new $root.google.container.v1.MonitoringConfig(); + if (object.componentConfig != null) { + if (typeof object.componentConfig !== "object") + throw TypeError(".google.container.v1.MonitoringConfig.componentConfig: object expected"); + message.componentConfig = $root.google.container.v1.MonitoringComponentConfig.fromObject(object.componentConfig); + } + return message; + }; + + /** + * Creates a plain object from a MonitoringConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MonitoringConfig + * @static + * @param {google.container.v1.MonitoringConfig} message MonitoringConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MonitoringConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.componentConfig = null; + if (message.componentConfig != null && message.hasOwnProperty("componentConfig")) + object.componentConfig = $root.google.container.v1.MonitoringComponentConfig.toObject(message.componentConfig, options); + return object; + }; + + /** + * Converts this MonitoringConfig to JSON. + * @function toJSON + * @memberof google.container.v1.MonitoringConfig + * @instance + * @returns {Object.} JSON object + */ + MonitoringConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MonitoringConfig; + })(); + + v1.MonitoringComponentConfig = (function() { + + /** + * Properties of a MonitoringComponentConfig. + * @memberof google.container.v1 + * @interface IMonitoringComponentConfig + * @property {Array.|null} [enableComponents] MonitoringComponentConfig enableComponents + */ + + /** + * Constructs a new MonitoringComponentConfig. + * @memberof google.container.v1 + * @classdesc Represents a MonitoringComponentConfig. + * @implements IMonitoringComponentConfig + * @constructor + * @param {google.container.v1.IMonitoringComponentConfig=} [properties] Properties to set + */ + function MonitoringComponentConfig(properties) { + this.enableComponents = []; + 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]]; + } + + /** + * MonitoringComponentConfig enableComponents. + * @member {Array.} enableComponents + * @memberof google.container.v1.MonitoringComponentConfig + * @instance + */ + MonitoringComponentConfig.prototype.enableComponents = $util.emptyArray; + + /** + * Creates a new MonitoringComponentConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {google.container.v1.IMonitoringComponentConfig=} [properties] Properties to set + * @returns {google.container.v1.MonitoringComponentConfig} MonitoringComponentConfig instance + */ + MonitoringComponentConfig.create = function create(properties) { + return new MonitoringComponentConfig(properties); + }; + + /** + * Encodes the specified MonitoringComponentConfig message. Does not implicitly {@link google.container.v1.MonitoringComponentConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {google.container.v1.IMonitoringComponentConfig} message MonitoringComponentConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MonitoringComponentConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enableComponents != null && message.enableComponents.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.enableComponents.length; ++i) + writer.int32(message.enableComponents[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified MonitoringComponentConfig message, length delimited. Does not implicitly {@link google.container.v1.MonitoringComponentConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {google.container.v1.IMonitoringComponentConfig} message MonitoringComponentConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MonitoringComponentConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MonitoringComponentConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.MonitoringComponentConfig} MonitoringComponentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MonitoringComponentConfig.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.MonitoringComponentConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.enableComponents && message.enableComponents.length)) + message.enableComponents = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.enableComponents.push(reader.int32()); + } else + message.enableComponents.push(reader.int32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MonitoringComponentConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.MonitoringComponentConfig} MonitoringComponentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MonitoringComponentConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MonitoringComponentConfig message. + * @function verify + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MonitoringComponentConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enableComponents != null && message.hasOwnProperty("enableComponents")) { + if (!Array.isArray(message.enableComponents)) + return "enableComponents: array expected"; + for (var i = 0; i < message.enableComponents.length; ++i) + switch (message.enableComponents[i]) { + default: + return "enableComponents: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a MonitoringComponentConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.MonitoringComponentConfig} MonitoringComponentConfig + */ + MonitoringComponentConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.MonitoringComponentConfig) + return object; + var message = new $root.google.container.v1.MonitoringComponentConfig(); + if (object.enableComponents) { + if (!Array.isArray(object.enableComponents)) + throw TypeError(".google.container.v1.MonitoringComponentConfig.enableComponents: array expected"); + message.enableComponents = []; + for (var i = 0; i < object.enableComponents.length; ++i) + switch (object.enableComponents[i]) { + default: + case "COMPONENT_UNSPECIFIED": + case 0: + message.enableComponents[i] = 0; + break; + case "SYSTEM_COMPONENTS": + case 1: + message.enableComponents[i] = 1; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a MonitoringComponentConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {google.container.v1.MonitoringComponentConfig} message MonitoringComponentConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MonitoringComponentConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.enableComponents = []; + if (message.enableComponents && message.enableComponents.length) { + object.enableComponents = []; + for (var j = 0; j < message.enableComponents.length; ++j) + object.enableComponents[j] = options.enums === String ? $root.google.container.v1.MonitoringComponentConfig.Component[message.enableComponents[j]] : message.enableComponents[j]; + } + return object; + }; + + /** + * Converts this MonitoringComponentConfig to JSON. + * @function toJSON + * @memberof google.container.v1.MonitoringComponentConfig + * @instance + * @returns {Object.} JSON object + */ + MonitoringComponentConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Component enum. + * @name google.container.v1.MonitoringComponentConfig.Component + * @enum {number} + * @property {number} COMPONENT_UNSPECIFIED=0 COMPONENT_UNSPECIFIED value + * @property {number} SYSTEM_COMPONENTS=1 SYSTEM_COMPONENTS value + */ + MonitoringComponentConfig.Component = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "COMPONENT_UNSPECIFIED"] = 0; + values[valuesById[1] = "SYSTEM_COMPONENTS"] = 1; + return values; + })(); + + return MonitoringComponentConfig; + })(); + + return v1; + })(); + + return container; + })(); + + google.api = (function() { + + /** + * Namespace api. + * @memberof google + * @namespace + */ + var api = {}; + + api.Http = (function() { + + /** + * Properties of a Http. + * @memberof google.api + * @interface IHttp + * @property {Array.|null} [rules] Http rules + * @property {boolean|null} [fullyDecodeReservedExpansion] Http fullyDecodeReservedExpansion + */ + + /** + * Constructs a new Http. + * @memberof google.api + * @classdesc Represents a Http. + * @implements IHttp + * @constructor + * @param {google.api.IHttp=} [properties] Properties to set + */ + function Http(properties) { + this.rules = []; + 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]]; + } + + /** + * Http rules. + * @member {Array.} rules + * @memberof google.api.Http + * @instance + */ + Http.prototype.rules = $util.emptyArray; + + /** + * Http fullyDecodeReservedExpansion. + * @member {boolean} fullyDecodeReservedExpansion + * @memberof google.api.Http + * @instance + */ + Http.prototype.fullyDecodeReservedExpansion = false; + + /** + * Creates a new Http instance using the specified properties. + * @function create + * @memberof google.api.Http + * @static + * @param {google.api.IHttp=} [properties] Properties to set + * @returns {google.api.Http} Http instance + */ + Http.create = function create(properties) { + return new Http(properties); + }; + + /** + * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encode + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.rules != null && message.rules.length) + for (var i = 0; i < message.rules.length; ++i) + $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.fullyDecodeReservedExpansion != null && Object.hasOwnProperty.call(message, "fullyDecodeReservedExpansion")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullyDecodeReservedExpansion); + return writer; + }; + + /** + * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.Http + * @static + * @param {google.api.IHttp} message Http message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Http.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Http message from the specified reader or buffer. + * @function decode + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.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.api.Http(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + case 2: + message.fullyDecodeReservedExpansion = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Http message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.Http + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.Http} Http + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Http.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Http message. + * @function verify + * @memberof google.api.Http + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Http.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.rules != null && message.hasOwnProperty("rules")) { + if (!Array.isArray(message.rules)) + return "rules: array expected"; + for (var i = 0; i < message.rules.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.rules[i]); + if (error) + return "rules." + error; + } + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + if (typeof message.fullyDecodeReservedExpansion !== "boolean") + return "fullyDecodeReservedExpansion: boolean expected"; + return null; + }; + + /** + * Creates a Http message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.Http + * @static + * @param {Object.} object Plain object + * @returns {google.api.Http} Http + */ + Http.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.Http) + return object; + var message = new $root.google.api.Http(); + if (object.rules) { + if (!Array.isArray(object.rules)) + throw TypeError(".google.api.Http.rules: array expected"); + message.rules = []; + for (var i = 0; i < object.rules.length; ++i) { + if (typeof object.rules[i] !== "object") + throw TypeError(".google.api.Http.rules: object expected"); + message.rules[i] = $root.google.api.HttpRule.fromObject(object.rules[i]); + } + } + if (object.fullyDecodeReservedExpansion != null) + message.fullyDecodeReservedExpansion = Boolean(object.fullyDecodeReservedExpansion); + return message; + }; + + /** + * Creates a plain object from a Http message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.Http + * @static + * @param {google.api.Http} message Http + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Http.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.rules = []; + if (options.defaults) + object.fullyDecodeReservedExpansion = false; + if (message.rules && message.rules.length) { + object.rules = []; + for (var j = 0; j < message.rules.length; ++j) + object.rules[j] = $root.google.api.HttpRule.toObject(message.rules[j], options); + } + if (message.fullyDecodeReservedExpansion != null && message.hasOwnProperty("fullyDecodeReservedExpansion")) + object.fullyDecodeReservedExpansion = message.fullyDecodeReservedExpansion; + return object; + }; + + /** + * Converts this Http to JSON. + * @function toJSON + * @memberof google.api.Http + * @instance + * @returns {Object.} JSON object + */ + Http.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Http; + })(); + + api.HttpRule = (function() { + + /** + * Properties of a HttpRule. + * @memberof google.api + * @interface IHttpRule + * @property {string|null} [selector] HttpRule selector + * @property {string|null} [get] HttpRule get + * @property {string|null} [put] HttpRule put + * @property {string|null} [post] HttpRule post + * @property {string|null} ["delete"] HttpRule delete + * @property {string|null} [patch] HttpRule patch + * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom + * @property {string|null} [body] HttpRule body + * @property {string|null} [responseBody] HttpRule responseBody + * @property {Array.|null} [additionalBindings] HttpRule additionalBindings + */ + + /** + * Constructs a new HttpRule. + * @memberof google.api + * @classdesc Represents a HttpRule. + * @implements IHttpRule + * @constructor + * @param {google.api.IHttpRule=} [properties] Properties to set + */ + function HttpRule(properties) { + this.additionalBindings = []; + 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]]; + } + + /** + * HttpRule selector. + * @member {string} selector + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.selector = ""; + + /** + * HttpRule get. + * @member {string|null|undefined} get + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.get = null; + + /** + * HttpRule put. + * @member {string|null|undefined} put + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.put = null; + + /** + * HttpRule post. + * @member {string|null|undefined} post + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.post = null; + + /** + * HttpRule delete. + * @member {string|null|undefined} delete + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype["delete"] = null; + + /** + * HttpRule patch. * @member {string|null|undefined} patch * @memberof google.api.HttpRule * @instance */ - HttpRule.prototype.patch = null; + HttpRule.prototype.patch = null; + + /** + * HttpRule custom. + * @member {google.api.ICustomHttpPattern|null|undefined} custom + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.custom = null; + + /** + * HttpRule body. + * @member {string} body + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.body = ""; + + /** + * HttpRule responseBody. + * @member {string} responseBody + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.responseBody = ""; + + /** + * HttpRule additionalBindings. + * @member {Array.} additionalBindings + * @memberof google.api.HttpRule + * @instance + */ + HttpRule.prototype.additionalBindings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * HttpRule pattern. + * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern + * @memberof google.api.HttpRule + * @instance + */ + Object.defineProperty(HttpRule.prototype, "pattern", { + get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new HttpRule instance using the specified properties. + * @function create + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule=} [properties] Properties to set + * @returns {google.api.HttpRule} HttpRule instance + */ + HttpRule.create = function create(properties) { + return new HttpRule(properties); + }; + + /** + * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encode + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); + if (message.get != null && Object.hasOwnProperty.call(message, "get")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); + if (message.put != null && Object.hasOwnProperty.call(message, "put")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); + if (message.post != null && Object.hasOwnProperty.call(message, "post")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); + if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); + if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); + if (message.body != null && Object.hasOwnProperty.call(message, "body")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); + if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) + $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.additionalBindings != null && message.additionalBindings.length) + for (var i = 0; i < message.additionalBindings.length; ++i) + $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + return writer; + }; + + /** + * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer. + * @function decode + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.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.api.HttpRule(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.selector = reader.string(); + break; + case 2: + message.get = reader.string(); + break; + case 3: + message.put = reader.string(); + break; + case 4: + message.post = reader.string(); + break; + case 5: + message["delete"] = reader.string(); + break; + case 6: + message.patch = reader.string(); + break; + case 8: + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + case 7: + message.body = reader.string(); + break; + case 12: + message.responseBody = reader.string(); + break; + case 11: + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.HttpRule + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.HttpRule} HttpRule + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HttpRule.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a HttpRule message. + * @function verify + * @memberof google.api.HttpRule + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HttpRule.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.selector != null && message.hasOwnProperty("selector")) + if (!$util.isString(message.selector)) + return "selector: string expected"; + if (message.get != null && message.hasOwnProperty("get")) { + properties.pattern = 1; + if (!$util.isString(message.get)) + return "get: string expected"; + } + if (message.put != null && message.hasOwnProperty("put")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.put)) + return "put: string expected"; + } + if (message.post != null && message.hasOwnProperty("post")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.post)) + return "post: string expected"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message["delete"])) + return "delete: string expected"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + if (!$util.isString(message.patch)) + return "patch: string expected"; + } + if (message.custom != null && message.hasOwnProperty("custom")) { + if (properties.pattern === 1) + return "pattern: multiple values"; + properties.pattern = 1; + { + var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (error) + return "custom." + error; + } + } + if (message.body != null && message.hasOwnProperty("body")) + if (!$util.isString(message.body)) + return "body: string expected"; + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + if (!$util.isString(message.responseBody)) + return "responseBody: string expected"; + if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { + if (!Array.isArray(message.additionalBindings)) + return "additionalBindings: array expected"; + for (var i = 0; i < message.additionalBindings.length; ++i) { + var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (error) + return "additionalBindings." + error; + } + } + return null; + }; + + /** + * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.HttpRule + * @static + * @param {Object.} object Plain object + * @returns {google.api.HttpRule} HttpRule + */ + HttpRule.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.HttpRule) + return object; + var message = new $root.google.api.HttpRule(); + if (object.selector != null) + message.selector = String(object.selector); + if (object.get != null) + message.get = String(object.get); + if (object.put != null) + message.put = String(object.put); + if (object.post != null) + message.post = String(object.post); + if (object["delete"] != null) + message["delete"] = String(object["delete"]); + if (object.patch != null) + message.patch = String(object.patch); + if (object.custom != null) { + if (typeof object.custom !== "object") + throw TypeError(".google.api.HttpRule.custom: object expected"); + message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + } + if (object.body != null) + message.body = String(object.body); + if (object.responseBody != null) + message.responseBody = String(object.responseBody); + if (object.additionalBindings) { + if (!Array.isArray(object.additionalBindings)) + throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); + message.additionalBindings = []; + for (var i = 0; i < object.additionalBindings.length; ++i) { + if (typeof object.additionalBindings[i] !== "object") + throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); + message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a HttpRule message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.HttpRule + * @static + * @param {google.api.HttpRule} message HttpRule + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HttpRule.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.additionalBindings = []; + if (options.defaults) { + object.selector = ""; + object.body = ""; + object.responseBody = ""; + } + if (message.selector != null && message.hasOwnProperty("selector")) + object.selector = message.selector; + if (message.get != null && message.hasOwnProperty("get")) { + object.get = message.get; + if (options.oneofs) + object.pattern = "get"; + } + if (message.put != null && message.hasOwnProperty("put")) { + object.put = message.put; + if (options.oneofs) + object.pattern = "put"; + } + if (message.post != null && message.hasOwnProperty("post")) { + object.post = message.post; + if (options.oneofs) + object.pattern = "post"; + } + if (message["delete"] != null && message.hasOwnProperty("delete")) { + object["delete"] = message["delete"]; + if (options.oneofs) + object.pattern = "delete"; + } + if (message.patch != null && message.hasOwnProperty("patch")) { + object.patch = message.patch; + if (options.oneofs) + object.pattern = "patch"; + } + if (message.body != null && message.hasOwnProperty("body")) + object.body = message.body; + if (message.custom != null && message.hasOwnProperty("custom")) { + object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); + if (options.oneofs) + object.pattern = "custom"; + } + if (message.additionalBindings && message.additionalBindings.length) { + object.additionalBindings = []; + for (var j = 0; j < message.additionalBindings.length; ++j) + object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); + } + if (message.responseBody != null && message.hasOwnProperty("responseBody")) + object.responseBody = message.responseBody; + return object; + }; + + /** + * Converts this HttpRule to JSON. + * @function toJSON + * @memberof google.api.HttpRule + * @instance + * @returns {Object.} JSON object + */ + HttpRule.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return HttpRule; + })(); + + api.CustomHttpPattern = (function() { + + /** + * Properties of a CustomHttpPattern. + * @memberof google.api + * @interface ICustomHttpPattern + * @property {string|null} [kind] CustomHttpPattern kind + * @property {string|null} [path] CustomHttpPattern path + */ + + /** + * Constructs a new CustomHttpPattern. + * @memberof google.api + * @classdesc Represents a CustomHttpPattern. + * @implements ICustomHttpPattern + * @constructor + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + */ + function CustomHttpPattern(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]]; + } + + /** + * CustomHttpPattern kind. + * @member {string} kind + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.kind = ""; + + /** + * CustomHttpPattern path. + * @member {string} path + * @memberof google.api.CustomHttpPattern + * @instance + */ + CustomHttpPattern.prototype.path = ""; + + /** + * Creates a new CustomHttpPattern instance using the specified properties. + * @function create + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + */ + CustomHttpPattern.create = function create(properties) { + return new CustomHttpPattern(properties); + }; + + /** + * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encode + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); + if (message.path != null && Object.hasOwnProperty.call(message, "path")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + return writer; + }; + + /** + * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer. + * @function decode + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.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.api.CustomHttpPattern(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.kind = reader.string(); + break; + case 2: + message.path = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.CustomHttpPattern + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CustomHttpPattern message. + * @function verify + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CustomHttpPattern.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.kind != null && message.hasOwnProperty("kind")) + if (!$util.isString(message.kind)) + return "kind: string expected"; + if (message.path != null && message.hasOwnProperty("path")) + if (!$util.isString(message.path)) + return "path: string expected"; + return null; + }; + + /** + * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {Object.} object Plain object + * @returns {google.api.CustomHttpPattern} CustomHttpPattern + */ + CustomHttpPattern.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.CustomHttpPattern) + return object; + var message = new $root.google.api.CustomHttpPattern(); + if (object.kind != null) + message.kind = String(object.kind); + if (object.path != null) + message.path = String(object.path); + return message; + }; + + /** + * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.CustomHttpPattern + * @static + * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CustomHttpPattern.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.kind = ""; + object.path = ""; + } + if (message.kind != null && message.hasOwnProperty("kind")) + object.kind = message.kind; + if (message.path != null && message.hasOwnProperty("path")) + object.path = message.path; + return object; + }; + + /** + * Converts this CustomHttpPattern to JSON. + * @function toJSON + * @memberof google.api.CustomHttpPattern + * @instance + * @returns {Object.} JSON object + */ + CustomHttpPattern.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CustomHttpPattern; + })(); + + /** + * FieldBehavior enum. + * @name google.api.FieldBehavior + * @enum {number} + * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value + * @property {number} OPTIONAL=1 OPTIONAL value + * @property {number} REQUIRED=2 REQUIRED value + * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value + * @property {number} INPUT_ONLY=4 INPUT_ONLY value + * @property {number} IMMUTABLE=5 IMMUTABLE value + * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value + * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value + */ + api.FieldBehavior = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; + values[valuesById[1] = "OPTIONAL"] = 1; + values[valuesById[2] = "REQUIRED"] = 2; + values[valuesById[3] = "OUTPUT_ONLY"] = 3; + values[valuesById[4] = "INPUT_ONLY"] = 4; + values[valuesById[5] = "IMMUTABLE"] = 5; + values[valuesById[6] = "UNORDERED_LIST"] = 6; + values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; + return values; + })(); + + api.ResourceDescriptor = (function() { + + /** + * Properties of a ResourceDescriptor. + * @memberof google.api + * @interface IResourceDescriptor + * @property {string|null} [type] ResourceDescriptor type + * @property {Array.|null} [pattern] ResourceDescriptor pattern + * @property {string|null} [nameField] ResourceDescriptor nameField + * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history + * @property {string|null} [plural] ResourceDescriptor plural + * @property {string|null} [singular] ResourceDescriptor singular + * @property {Array.|null} [style] ResourceDescriptor style + */ + + /** + * Constructs a new ResourceDescriptor. + * @memberof google.api + * @classdesc Represents a ResourceDescriptor. + * @implements IResourceDescriptor + * @constructor + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + */ + function ResourceDescriptor(properties) { + this.pattern = []; + this.style = []; + 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]]; + } + + /** + * ResourceDescriptor type. + * @member {string} type + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.type = ""; + + /** + * ResourceDescriptor pattern. + * @member {Array.} pattern + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.pattern = $util.emptyArray; + + /** + * ResourceDescriptor nameField. + * @member {string} nameField + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.nameField = ""; + + /** + * ResourceDescriptor history. + * @member {google.api.ResourceDescriptor.History} history + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.history = 0; + + /** + * ResourceDescriptor plural. + * @member {string} plural + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.plural = ""; + + /** + * ResourceDescriptor singular. + * @member {string} singular + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.singular = ""; + + /** + * ResourceDescriptor style. + * @member {Array.} style + * @memberof google.api.ResourceDescriptor + * @instance + */ + ResourceDescriptor.prototype.style = $util.emptyArray; + + /** + * Creates a new ResourceDescriptor instance using the specified properties. + * @function create + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor=} [properties] Properties to set + * @returns {google.api.ResourceDescriptor} ResourceDescriptor instance + */ + ResourceDescriptor.create = function create(properties) { + return new ResourceDescriptor(properties); + }; + + /** + * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.pattern != null && message.pattern.length) + for (var i = 0; i < message.pattern.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern[i]); + if (message.nameField != null && Object.hasOwnProperty.call(message, "nameField")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); + if (message.history != null && Object.hasOwnProperty.call(message, "history")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); + if (message.plural != null && Object.hasOwnProperty.call(message, "plural")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); + if (message.singular != null && Object.hasOwnProperty.call(message, "singular")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); + if (message.style != null && message.style.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.style.length; ++i) + writer.int32(message.style[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.IResourceDescriptor} message ResourceDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.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.api.ResourceDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + case 3: + message.nameField = reader.string(); + break; + case 4: + message.history = reader.int32(); + break; + case 5: + message.plural = reader.string(); + break; + case 6: + message.singular = reader.string(); + break; + case 10: + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else + message.style.push(reader.int32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceDescriptor message. + * @function verify + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.pattern != null && message.hasOwnProperty("pattern")) { + if (!Array.isArray(message.pattern)) + return "pattern: array expected"; + for (var i = 0; i < message.pattern.length; ++i) + if (!$util.isString(message.pattern[i])) + return "pattern: string[] expected"; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + if (!$util.isString(message.nameField)) + return "nameField: string expected"; + if (message.history != null && message.hasOwnProperty("history")) + switch (message.history) { + default: + return "history: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.plural != null && message.hasOwnProperty("plural")) + if (!$util.isString(message.plural)) + return "plural: string expected"; + if (message.singular != null && message.hasOwnProperty("singular")) + if (!$util.isString(message.singular)) + return "singular: string expected"; + if (message.style != null && message.hasOwnProperty("style")) { + if (!Array.isArray(message.style)) + return "style: array expected"; + for (var i = 0; i < message.style.length; ++i) + switch (message.style[i]) { + default: + return "style: enum value[] expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceDescriptor} ResourceDescriptor + */ + ResourceDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceDescriptor) + return object; + var message = new $root.google.api.ResourceDescriptor(); + if (object.type != null) + message.type = String(object.type); + if (object.pattern) { + if (!Array.isArray(object.pattern)) + throw TypeError(".google.api.ResourceDescriptor.pattern: array expected"); + message.pattern = []; + for (var i = 0; i < object.pattern.length; ++i) + message.pattern[i] = String(object.pattern[i]); + } + if (object.nameField != null) + message.nameField = String(object.nameField); + switch (object.history) { + case "HISTORY_UNSPECIFIED": + case 0: + message.history = 0; + break; + case "ORIGINALLY_SINGLE_PATTERN": + case 1: + message.history = 1; + break; + case "FUTURE_MULTI_PATTERN": + case 2: + message.history = 2; + break; + } + if (object.plural != null) + message.plural = String(object.plural); + if (object.singular != null) + message.singular = String(object.singular); + if (object.style) { + if (!Array.isArray(object.style)) + throw TypeError(".google.api.ResourceDescriptor.style: array expected"); + message.style = []; + for (var i = 0; i < object.style.length; ++i) + switch (object.style[i]) { + default: + case "STYLE_UNSPECIFIED": + case 0: + message.style[i] = 0; + break; + case "DECLARATIVE_FRIENDLY": + case 1: + message.style[i] = 1; + break; + } + } + return message; + }; + + /** + * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceDescriptor + * @static + * @param {google.api.ResourceDescriptor} message ResourceDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.pattern = []; + object.style = []; + } + if (options.defaults) { + object.type = ""; + object.nameField = ""; + object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; + object.plural = ""; + object.singular = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.pattern && message.pattern.length) { + object.pattern = []; + for (var j = 0; j < message.pattern.length; ++j) + object.pattern[j] = message.pattern[j]; + } + if (message.nameField != null && message.hasOwnProperty("nameField")) + object.nameField = message.nameField; + if (message.history != null && message.hasOwnProperty("history")) + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history; + if (message.plural != null && message.hasOwnProperty("plural")) + object.plural = message.plural; + if (message.singular != null && message.hasOwnProperty("singular")) + object.singular = message.singular; + if (message.style && message.style.length) { + object.style = []; + for (var j = 0; j < message.style.length; ++j) + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + } + return object; + }; + + /** + * Converts this ResourceDescriptor to JSON. + * @function toJSON + * @memberof google.api.ResourceDescriptor + * @instance + * @returns {Object.} JSON object + */ + ResourceDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * History enum. + * @name google.api.ResourceDescriptor.History + * @enum {number} + * @property {number} HISTORY_UNSPECIFIED=0 HISTORY_UNSPECIFIED value + * @property {number} ORIGINALLY_SINGLE_PATTERN=1 ORIGINALLY_SINGLE_PATTERN value + * @property {number} FUTURE_MULTI_PATTERN=2 FUTURE_MULTI_PATTERN value + */ + ResourceDescriptor.History = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "HISTORY_UNSPECIFIED"] = 0; + values[valuesById[1] = "ORIGINALLY_SINGLE_PATTERN"] = 1; + values[valuesById[2] = "FUTURE_MULTI_PATTERN"] = 2; + return values; + })(); + + /** + * Style enum. + * @name google.api.ResourceDescriptor.Style + * @enum {number} + * @property {number} STYLE_UNSPECIFIED=0 STYLE_UNSPECIFIED value + * @property {number} DECLARATIVE_FRIENDLY=1 DECLARATIVE_FRIENDLY value + */ + ResourceDescriptor.Style = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STYLE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DECLARATIVE_FRIENDLY"] = 1; + return values; + })(); + + return ResourceDescriptor; + })(); + + api.ResourceReference = (function() { + + /** + * Properties of a ResourceReference. + * @memberof google.api + * @interface IResourceReference + * @property {string|null} [type] ResourceReference type + * @property {string|null} [childType] ResourceReference childType + */ + + /** + * Constructs a new ResourceReference. + * @memberof google.api + * @classdesc Represents a ResourceReference. + * @implements IResourceReference + * @constructor + * @param {google.api.IResourceReference=} [properties] Properties to set + */ + function ResourceReference(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]]; + } + + /** + * ResourceReference type. + * @member {string} type + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.type = ""; + + /** + * ResourceReference childType. + * @member {string} childType + * @memberof google.api.ResourceReference + * @instance + */ + ResourceReference.prototype.childType = ""; + + /** + * Creates a new ResourceReference instance using the specified properties. + * @function create + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference=} [properties] Properties to set + * @returns {google.api.ResourceReference} ResourceReference instance + */ + ResourceReference.create = function create(properties) { + return new ResourceReference(properties); + }; + + /** + * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encode + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); + if (message.childType != null && Object.hasOwnProperty.call(message, "childType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.childType); + return writer; + }; + + /** + * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages. + * @function encodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {google.api.IResourceReference} message ResourceReference message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceReference.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer. + * @function decode + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.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.api.ResourceReference(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.type = reader.string(); + break; + case 2: + message.childType = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceReference message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.api.ResourceReference + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.api.ResourceReference} ResourceReference + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceReference.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceReference message. + * @function verify + * @memberof google.api.ResourceReference + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceReference.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.type != null && message.hasOwnProperty("type")) + if (!$util.isString(message.type)) + return "type: string expected"; + if (message.childType != null && message.hasOwnProperty("childType")) + if (!$util.isString(message.childType)) + return "childType: string expected"; + return null; + }; + + /** + * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.api.ResourceReference + * @static + * @param {Object.} object Plain object + * @returns {google.api.ResourceReference} ResourceReference + */ + ResourceReference.fromObject = function fromObject(object) { + if (object instanceof $root.google.api.ResourceReference) + return object; + var message = new $root.google.api.ResourceReference(); + if (object.type != null) + message.type = String(object.type); + if (object.childType != null) + message.childType = String(object.childType); + return message; + }; + + /** + * Creates a plain object from a ResourceReference message. Also converts values to other types if specified. + * @function toObject + * @memberof google.api.ResourceReference + * @static + * @param {google.api.ResourceReference} message ResourceReference + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceReference.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type = ""; + object.childType = ""; + } + if (message.type != null && message.hasOwnProperty("type")) + object.type = message.type; + if (message.childType != null && message.hasOwnProperty("childType")) + object.childType = message.childType; + return object; + }; + + /** + * Converts this ResourceReference to JSON. + * @function toJSON + * @memberof google.api.ResourceReference + * @instance + * @returns {Object.} JSON object + */ + ResourceReference.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ResourceReference; + })(); + + return api; + })(); + + google.protobuf = (function() { + + /** + * Namespace protobuf. + * @memberof google + * @namespace + */ + var protobuf = {}; + + protobuf.FileDescriptorSet = (function() { + + /** + * Properties of a FileDescriptorSet. + * @memberof google.protobuf + * @interface IFileDescriptorSet + * @property {Array.|null} [file] FileDescriptorSet file + */ + + /** + * Constructs a new FileDescriptorSet. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorSet. + * @implements IFileDescriptorSet + * @constructor + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + */ + function FileDescriptorSet(properties) { + this.file = []; + 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]]; + } + + /** + * FileDescriptorSet file. + * @member {Array.} file + * @memberof google.protobuf.FileDescriptorSet + * @instance + */ + FileDescriptorSet.prototype.file = $util.emptyArray; + + /** + * Creates a new FileDescriptorSet instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + */ + FileDescriptorSet.create = function create(properties) { + return new FileDescriptorSet(properties); + }; + + /** + * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.file != null && message.file.length) + for (var i = 0; i < message.file.length; ++i) + $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.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.protobuf.FileDescriptorSet(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorSet message. + * @function verify + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorSet.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.file != null && message.hasOwnProperty("file")) { + if (!Array.isArray(message.file)) + return "file: array expected"; + for (var i = 0; i < message.file.length; ++i) { + var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (error) + return "file." + error; + } + } + return null; + }; + + /** + * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + */ + FileDescriptorSet.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorSet) + return object; + var message = new $root.google.protobuf.FileDescriptorSet(); + if (object.file) { + if (!Array.isArray(object.file)) + throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + message.file = []; + for (var i = 0; i < object.file.length; ++i) { + if (typeof object.file[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorSet.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.file = []; + if (message.file && message.file.length) { + object.file = []; + for (var j = 0; j < message.file.length; ++j) + object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + } + return object; + }; + + /** + * Converts this FileDescriptorSet to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorSet + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorSet.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FileDescriptorSet; + })(); + + protobuf.FileDescriptorProto = (function() { + + /** + * Properties of a FileDescriptorProto. + * @memberof google.protobuf + * @interface IFileDescriptorProto + * @property {string|null} [name] FileDescriptorProto name + * @property {string|null} ["package"] FileDescriptorProto package + * @property {Array.|null} [dependency] FileDescriptorProto dependency + * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency + * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency + * @property {Array.|null} [messageType] FileDescriptorProto messageType + * @property {Array.|null} [enumType] FileDescriptorProto enumType + * @property {Array.|null} [service] FileDescriptorProto service + * @property {Array.|null} [extension] FileDescriptorProto extension + * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options + * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo + * @property {string|null} [syntax] FileDescriptorProto syntax + */ + + /** + * Constructs a new FileDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FileDescriptorProto. + * @implements IFileDescriptorProto + * @constructor + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + */ + function FileDescriptorProto(properties) { + this.dependency = []; + this.publicDependency = []; + this.weakDependency = []; + this.messageType = []; + this.enumType = []; + this.service = []; + this.extension = []; + 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]]; + } + + /** + * FileDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.name = ""; + + /** + * FileDescriptorProto package. + * @member {string} package + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype["package"] = ""; + + /** + * FileDescriptorProto dependency. + * @member {Array.} dependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.dependency = $util.emptyArray; + + /** + * FileDescriptorProto publicDependency. + * @member {Array.} publicDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.publicDependency = $util.emptyArray; + + /** + * FileDescriptorProto weakDependency. + * @member {Array.} weakDependency + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.weakDependency = $util.emptyArray; + + /** + * FileDescriptorProto messageType. + * @member {Array.} messageType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.messageType = $util.emptyArray; + + /** + * FileDescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * FileDescriptorProto service. + * @member {Array.} service + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.service = $util.emptyArray; + + /** + * FileDescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.extension = $util.emptyArray; + + /** + * FileDescriptorProto options. + * @member {google.protobuf.IFileOptions|null|undefined} options + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.options = null; + + /** + * FileDescriptorProto sourceCodeInfo. + * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.sourceCodeInfo = null; + + /** + * FileDescriptorProto syntax. + * @member {string} syntax + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.syntax = ""; + + /** + * Creates a new FileDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + */ + FileDescriptorProto.create = function create(properties) { + return new FileDescriptorProto(properties); + }; + + /** + * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.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["package"] != null && Object.hasOwnProperty.call(message, "package")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); + if (message.dependency != null && message.dependency.length) + for (var i = 0; i < message.dependency.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); + if (message.messageType != null && message.messageType.length) + for (var i = 0; i < message.messageType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.service != null && message.service.length) + for (var i = 0; i < message.service.length; ++i) + $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) + $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.publicDependency != null && message.publicDependency.length) + for (var i = 0; i < message.publicDependency.length; ++i) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); + if (message.weakDependency != null && message.weakDependency.length) + for (var i = 0; i < message.weakDependency.length; ++i) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); + if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + return writer; + }; + + /** + * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.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.protobuf.FileDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message["package"] = reader.string(); + break; + case 3: + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + case 10: + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else + message.publicDependency.push(reader.int32()); + break; + case 11: + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else + message.weakDependency.push(reader.int32()); + break; + case 4: + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 8: + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + case 9: + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + case 12: + message.syntax = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FileDescriptorProto message. + * @function verify + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FileDescriptorProto.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["package"] != null && message.hasOwnProperty("package")) + if (!$util.isString(message["package"])) + return "package: string expected"; + if (message.dependency != null && message.hasOwnProperty("dependency")) { + if (!Array.isArray(message.dependency)) + return "dependency: array expected"; + for (var i = 0; i < message.dependency.length; ++i) + if (!$util.isString(message.dependency[i])) + return "dependency: string[] expected"; + } + if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { + if (!Array.isArray(message.publicDependency)) + return "publicDependency: array expected"; + for (var i = 0; i < message.publicDependency.length; ++i) + if (!$util.isInteger(message.publicDependency[i])) + return "publicDependency: integer[] expected"; + } + if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { + if (!Array.isArray(message.weakDependency)) + return "weakDependency: array expected"; + for (var i = 0; i < message.weakDependency.length; ++i) + if (!$util.isInteger(message.weakDependency[i])) + return "weakDependency: integer[] expected"; + } + if (message.messageType != null && message.hasOwnProperty("messageType")) { + if (!Array.isArray(message.messageType)) + return "messageType: array expected"; + for (var i = 0; i < message.messageType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); + if (error) + return "messageType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.service != null && message.hasOwnProperty("service")) { + if (!Array.isArray(message.service)) + return "service: array expected"; + for (var i = 0; i < message.service.length; ++i) { + var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); + if (error) + return "service." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FileOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { + var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); + if (error) + return "sourceCodeInfo." + error; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + if (!$util.isString(message.syntax)) + return "syntax: string expected"; + return null; + }; + + /** + * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + */ + FileDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileDescriptorProto) + return object; + var message = new $root.google.protobuf.FileDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object["package"] != null) + message["package"] = String(object["package"]); + if (object.dependency) { + if (!Array.isArray(object.dependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + message.dependency = []; + for (var i = 0; i < object.dependency.length; ++i) + message.dependency[i] = String(object.dependency[i]); + } + if (object.publicDependency) { + if (!Array.isArray(object.publicDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + message.publicDependency = []; + for (var i = 0; i < object.publicDependency.length; ++i) + message.publicDependency[i] = object.publicDependency[i] | 0; + } + if (object.weakDependency) { + if (!Array.isArray(object.weakDependency)) + throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + message.weakDependency = []; + for (var i = 0; i < object.weakDependency.length; ++i) + message.weakDependency[i] = object.weakDependency[i] | 0; + } + if (object.messageType) { + if (!Array.isArray(object.messageType)) + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + message.messageType = []; + for (var i = 0; i < object.messageType.length; ++i) { + if (typeof object.messageType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.service) { + if (!Array.isArray(object.service)) + throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + message.service = []; + for (var i = 0; i < object.service.length; ++i) { + if (typeof object.service[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FileOptions.fromObject(object.options); + } + if (object.sourceCodeInfo != null) { + if (typeof object.sourceCodeInfo !== "object") + throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + } + if (object.syntax != null) + message.syntax = String(object.syntax); + return message; + }; + + /** + * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.dependency = []; + object.messageType = []; + object.enumType = []; + object.service = []; + object.extension = []; + object.publicDependency = []; + object.weakDependency = []; + } + if (options.defaults) { + object.name = ""; + object["package"] = ""; + object.options = null; + object.sourceCodeInfo = null; + object.syntax = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message["package"] != null && message.hasOwnProperty("package")) + object["package"] = message["package"]; + if (message.dependency && message.dependency.length) { + object.dependency = []; + for (var j = 0; j < message.dependency.length; ++j) + object.dependency[j] = message.dependency[j]; + } + if (message.messageType && message.messageType.length) { + object.messageType = []; + for (var j = 0; j < message.messageType.length; ++j) + object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.service && message.service.length) { + object.service = []; + for (var j = 0; j < message.service.length; ++j) + object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); + if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) + object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); + if (message.publicDependency && message.publicDependency.length) { + object.publicDependency = []; + for (var j = 0; j < message.publicDependency.length; ++j) + object.publicDependency[j] = message.publicDependency[j]; + } + if (message.weakDependency && message.weakDependency.length) { + object.weakDependency = []; + for (var j = 0; j < message.weakDependency.length; ++j) + object.weakDependency[j] = message.weakDependency[j]; + } + if (message.syntax != null && message.hasOwnProperty("syntax")) + object.syntax = message.syntax; + return object; + }; + + /** + * Converts this FileDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FileDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FileDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FileDescriptorProto; + })(); + + protobuf.DescriptorProto = (function() { + + /** + * Properties of a DescriptorProto. + * @memberof google.protobuf + * @interface IDescriptorProto + * @property {string|null} [name] DescriptorProto name + * @property {Array.|null} [field] DescriptorProto field + * @property {Array.|null} [extension] DescriptorProto extension + * @property {Array.|null} [nestedType] DescriptorProto nestedType + * @property {Array.|null} [enumType] DescriptorProto enumType + * @property {Array.|null} [extensionRange] DescriptorProto extensionRange + * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl + * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options + * @property {Array.|null} [reservedRange] DescriptorProto reservedRange + * @property {Array.|null} [reservedName] DescriptorProto reservedName + */ + + /** + * Constructs a new DescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a DescriptorProto. + * @implements IDescriptorProto + * @constructor + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + */ + function DescriptorProto(properties) { + this.field = []; + this.extension = []; + this.nestedType = []; + this.enumType = []; + this.extensionRange = []; + this.oneofDecl = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * DescriptorProto name. + * @member {string} name + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.name = ""; + + /** + * DescriptorProto field. + * @member {Array.} field + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.field = $util.emptyArray; + + /** + * DescriptorProto extension. + * @member {Array.} extension + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extension = $util.emptyArray; + + /** + * DescriptorProto nestedType. + * @member {Array.} nestedType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.nestedType = $util.emptyArray; + + /** + * DescriptorProto enumType. + * @member {Array.} enumType + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.enumType = $util.emptyArray; + + /** + * DescriptorProto extensionRange. + * @member {Array.} extensionRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.extensionRange = $util.emptyArray; + + /** + * DescriptorProto oneofDecl. + * @member {Array.} oneofDecl + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.oneofDecl = $util.emptyArray; + + /** + * DescriptorProto options. + * @member {google.protobuf.IMessageOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.options = null; + + /** + * DescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedRange = $util.emptyArray; + + /** + * DescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.DescriptorProto + * @instance + */ + DescriptorProto.prototype.reservedName = $util.emptyArray; + + /** + * Creates a new DescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + */ + DescriptorProto.create = function create(properties) { + return new DescriptorProto(properties); + }; + + /** + * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.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.field != null && message.field.length) + for (var i = 0; i < message.field.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.nestedType != null && message.nestedType.length) + for (var i = 0; i < message.nestedType.length; ++i) + $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.enumType != null && message.enumType.length) + for (var i = 0; i < message.enumType.length; ++i) + $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.extensionRange != null && message.extensionRange.length) + for (var i = 0; i < message.extensionRange.length; ++i) + $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.extension != null && message.extension.length) + for (var i = 0; i < message.extension.length; ++i) + $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.oneofDecl != null && message.oneofDecl.length) + for (var i = 0; i < message.oneofDecl.length; ++i) + $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + return writer; + }; + + /** + * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.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.protobuf.DescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 6: + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + case 4: + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + case 5: + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + case 8: + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + case 7: + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + case 10: + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DescriptorProto message. + * @function verify + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DescriptorProto.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.field != null && message.hasOwnProperty("field")) { + if (!Array.isArray(message.field)) + return "field: array expected"; + for (var i = 0; i < message.field.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); + if (error) + return "field." + error; + } + } + if (message.extension != null && message.hasOwnProperty("extension")) { + if (!Array.isArray(message.extension)) + return "extension: array expected"; + for (var i = 0; i < message.extension.length; ++i) { + var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); + if (error) + return "extension." + error; + } + } + if (message.nestedType != null && message.hasOwnProperty("nestedType")) { + if (!Array.isArray(message.nestedType)) + return "nestedType: array expected"; + for (var i = 0; i < message.nestedType.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); + if (error) + return "nestedType." + error; + } + } + if (message.enumType != null && message.hasOwnProperty("enumType")) { + if (!Array.isArray(message.enumType)) + return "enumType: array expected"; + for (var i = 0; i < message.enumType.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); + if (error) + return "enumType." + error; + } + } + if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { + if (!Array.isArray(message.extensionRange)) + return "extensionRange: array expected"; + for (var i = 0; i < message.extensionRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); + if (error) + return "extensionRange." + error; + } + } + if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { + if (!Array.isArray(message.oneofDecl)) + return "oneofDecl: array expected"; + for (var i = 0; i < message.oneofDecl.length; ++i) { + var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (error) + return "oneofDecl." + error; + } + } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.MessageOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (error) + return "reservedRange." + error; + } + } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } + return null; + }; + + /** + * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto} DescriptorProto + */ + DescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto) + return object; + var message = new $root.google.protobuf.DescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.field) { + if (!Array.isArray(object.field)) + throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + message.field = []; + for (var i = 0; i < object.field.length; ++i) { + if (typeof object.field[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); + } + } + if (object.extension) { + if (!Array.isArray(object.extension)) + throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + message.extension = []; + for (var i = 0; i < object.extension.length; ++i) { + if (typeof object.extension[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); + } + } + if (object.nestedType) { + if (!Array.isArray(object.nestedType)) + throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + message.nestedType = []; + for (var i = 0; i < object.nestedType.length; ++i) { + if (typeof object.nestedType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); + } + } + if (object.enumType) { + if (!Array.isArray(object.enumType)) + throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + message.enumType = []; + for (var i = 0; i < object.enumType.length; ++i) { + if (typeof object.enumType[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); + } + } + if (object.extensionRange) { + if (!Array.isArray(object.extensionRange)) + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + message.extensionRange = []; + for (var i = 0; i < object.extensionRange.length; ++i) { + if (typeof object.extensionRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); + } + } + if (object.oneofDecl) { + if (!Array.isArray(object.oneofDecl)) + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + message.oneofDecl = []; + for (var i = 0; i < object.oneofDecl.length; ++i) { + if (typeof object.oneofDecl[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); + } + } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto + * @static + * @param {google.protobuf.DescriptorProto} message DescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.field = []; + object.nestedType = []; + object.enumType = []; + object.extensionRange = []; + object.extension = []; + object.oneofDecl = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.field && message.field.length) { + object.field = []; + for (var j = 0; j < message.field.length; ++j) + object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); + } + if (message.nestedType && message.nestedType.length) { + object.nestedType = []; + for (var j = 0; j < message.nestedType.length; ++j) + object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); + } + if (message.enumType && message.enumType.length) { + object.enumType = []; + for (var j = 0; j < message.enumType.length; ++j) + object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); + } + if (message.extensionRange && message.extensionRange.length) { + object.extensionRange = []; + for (var j = 0; j < message.extensionRange.length; ++j) + object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); + } + if (message.extension && message.extension.length) { + object.extension = []; + for (var j = 0; j < message.extension.length; ++j) + object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); + if (message.oneofDecl && message.oneofDecl.length) { + object.oneofDecl = []; + for (var j = 0; j < message.oneofDecl.length; ++j) + object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); + } + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this DescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto + * @instance + * @returns {Object.} JSON object + */ + DescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + DescriptorProto.ExtensionRange = (function() { + + /** + * Properties of an ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @interface IExtensionRange + * @property {number|null} [start] ExtensionRange start + * @property {number|null} [end] ExtensionRange end + * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options + */ + + /** + * Constructs a new ExtensionRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents an ExtensionRange. + * @implements IExtensionRange + * @constructor + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + */ + function ExtensionRange(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]]; + } + + /** + * ExtensionRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.start = 0; + + /** + * ExtensionRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.end = 0; + + /** + * ExtensionRange options. + * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + */ + ExtensionRange.prototype.options = null; + + /** + * Creates a new ExtensionRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance + */ + ExtensionRange.create = function create(properties) { + return new ExtensionRange(properties); + }; + + /** + * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.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.protobuf.DescriptorProto.ExtensionRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange + */ + ExtensionRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + object.options = null; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this ExtensionRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @instance + * @returns {Object.} JSON object + */ + ExtensionRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExtensionRange; + })(); + + DescriptorProto.ReservedRange = (function() { + + /** + * Properties of a ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @interface IReservedRange + * @property {number|null} [start] ReservedRange start + * @property {number|null} [end] ReservedRange end + */ + + /** + * Constructs a new ReservedRange. + * @memberof google.protobuf.DescriptorProto + * @classdesc Represents a ReservedRange. + * @implements IReservedRange + * @constructor + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + */ + function ReservedRange(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]]; + } + + /** + * ReservedRange start. + * @member {number} start + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.start = 0; + + /** + * ReservedRange end. + * @member {number} end + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + */ + ReservedRange.prototype.end = 0; + + /** + * Creates a new ReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance + */ + ReservedRange.create = function create(properties) { + return new ReservedRange(properties); + }; + + /** + * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.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.protobuf.DescriptorProto.ReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ReservedRange message. + * @function verify + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange + */ + ReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) + return object; + var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; + } + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; + + /** + * Converts this ReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @instance + * @returns {Object.} JSON object + */ + ReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ReservedRange; + })(); + + return DescriptorProto; + })(); + + protobuf.ExtensionRangeOptions = (function() { + + /** + * Properties of an ExtensionRangeOptions. + * @memberof google.protobuf + * @interface IExtensionRangeOptions + * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + */ + + /** + * Constructs a new ExtensionRangeOptions. + * @memberof google.protobuf + * @classdesc Represents an ExtensionRangeOptions. + * @implements IExtensionRangeOptions + * @constructor + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + */ + function ExtensionRangeOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } + + /** + * ExtensionRangeOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + */ + ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new ExtensionRangeOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + */ + ExtensionRangeOptions.create = function create(properties) { + return new ExtensionRangeOptions(properties); + }; + + /** + * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.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.protobuf.ExtensionRangeOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExtensionRangeOptions message. + * @function verify + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExtensionRangeOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + */ + ExtensionRangeOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + return object; + var message = new $root.google.protobuf.ExtensionRangeOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExtensionRangeOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + return object; + }; + + /** + * Converts this ExtensionRangeOptions to JSON. + * @function toJSON + * @memberof google.protobuf.ExtensionRangeOptions + * @instance + * @returns {Object.} JSON object + */ + ExtensionRangeOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExtensionRangeOptions; + })(); + + protobuf.FieldDescriptorProto = (function() { + + /** + * Properties of a FieldDescriptorProto. + * @memberof google.protobuf + * @interface IFieldDescriptorProto + * @property {string|null} [name] FieldDescriptorProto name + * @property {number|null} [number] FieldDescriptorProto number + * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label + * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type + * @property {string|null} [typeName] FieldDescriptorProto typeName + * @property {string|null} [extendee] FieldDescriptorProto extendee + * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue + * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex + * @property {string|null} [jsonName] FieldDescriptorProto jsonName + * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options + * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + */ + + /** + * Constructs a new FieldDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents a FieldDescriptorProto. + * @implements IFieldDescriptorProto + * @constructor + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + */ + function FieldDescriptorProto(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]]; + } + + /** + * FieldDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.name = ""; + + /** + * FieldDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.number = 0; + + /** + * FieldDescriptorProto label. + * @member {google.protobuf.FieldDescriptorProto.Label} label + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.label = 1; + + /** + * FieldDescriptorProto type. + * @member {google.protobuf.FieldDescriptorProto.Type} type + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.type = 1; + + /** + * FieldDescriptorProto typeName. + * @member {string} typeName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.typeName = ""; + + /** + * FieldDescriptorProto extendee. + * @member {string} extendee + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.extendee = ""; + + /** + * FieldDescriptorProto defaultValue. + * @member {string} defaultValue + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.defaultValue = ""; + + /** + * FieldDescriptorProto oneofIndex. + * @member {number} oneofIndex + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.oneofIndex = 0; + + /** + * FieldDescriptorProto jsonName. + * @member {string} jsonName + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.jsonName = ""; + + /** + * FieldDescriptorProto options. + * @member {google.protobuf.IFieldOptions|null|undefined} options + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.options = null; + + /** + * FieldDescriptorProto proto3Optional. + * @member {boolean} proto3Optional + * @memberof google.protobuf.FieldDescriptorProto + * @instance + */ + FieldDescriptorProto.prototype.proto3Optional = false; + + /** + * Creates a new FieldDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + */ + FieldDescriptorProto.create = function create(properties) { + return new FieldDescriptorProto(properties); + }; + + /** + * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.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.extendee != null && Object.hasOwnProperty.call(message, "extendee")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); + if (message.label != null && Object.hasOwnProperty.call(message, "label")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); + if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); + if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); + if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + return writer; + }; + + /** + * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.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.protobuf.FieldDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 3: + message.number = reader.int32(); + break; + case 4: + message.label = reader.int32(); + break; + case 5: + message.type = reader.int32(); + break; + case 6: + message.typeName = reader.string(); + break; + case 2: + message.extendee = reader.string(); + break; + case 7: + message.defaultValue = reader.string(); + break; + case 9: + message.oneofIndex = reader.int32(); + break; + case 10: + message.jsonName = reader.string(); + break; + case 8: + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + case 17: + message.proto3Optional = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FieldDescriptorProto message. + * @function verify + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FieldDescriptorProto.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.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.label != null && message.hasOwnProperty("label")) + switch (message.label) { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + break; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + 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: + case 17: + case 18: + break; + } + if (message.typeName != null && message.hasOwnProperty("typeName")) + if (!$util.isString(message.typeName)) + return "typeName: string expected"; + if (message.extendee != null && message.hasOwnProperty("extendee")) + if (!$util.isString(message.extendee)) + return "extendee: string expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + if (!$util.isInteger(message.oneofIndex)) + return "oneofIndex: integer expected"; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + if (!$util.isString(message.jsonName)) + return "jsonName: string expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.FieldOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + if (typeof message.proto3Optional !== "boolean") + return "proto3Optional: boolean expected"; + return null; + }; + + /** + * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + */ + FieldDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldDescriptorProto) + return object; + var message = new $root.google.protobuf.FieldDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + switch (object.label) { + case "LABEL_OPTIONAL": + case 1: + message.label = 1; + break; + case "LABEL_REQUIRED": + case 2: + message.label = 2; + break; + case "LABEL_REPEATED": + case 3: + message.label = 3; + break; + } + switch (object.type) { + case "TYPE_DOUBLE": + case 1: + message.type = 1; + break; + case "TYPE_FLOAT": + case 2: + message.type = 2; + break; + case "TYPE_INT64": + case 3: + message.type = 3; + break; + case "TYPE_UINT64": + case 4: + message.type = 4; + break; + case "TYPE_INT32": + case 5: + message.type = 5; + break; + case "TYPE_FIXED64": + case 6: + message.type = 6; + break; + case "TYPE_FIXED32": + case 7: + message.type = 7; + break; + case "TYPE_BOOL": + case 8: + message.type = 8; + break; + case "TYPE_STRING": + case 9: + message.type = 9; + break; + case "TYPE_GROUP": + case 10: + message.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + message.type = 11; + break; + case "TYPE_BYTES": + case 12: + message.type = 12; + break; + case "TYPE_UINT32": + case 13: + message.type = 13; + break; + case "TYPE_ENUM": + case 14: + message.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + message.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + message.type = 16; + break; + case "TYPE_SINT32": + case 17: + message.type = 17; + break; + case "TYPE_SINT64": + case 18: + message.type = 18; + break; + } + if (object.typeName != null) + message.typeName = String(object.typeName); + if (object.extendee != null) + message.extendee = String(object.extendee); + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + if (object.oneofIndex != null) + message.oneofIndex = object.oneofIndex | 0; + if (object.jsonName != null) + message.jsonName = String(object.jsonName); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + } + if (object.proto3Optional != null) + message.proto3Optional = Boolean(object.proto3Optional); + return message; + }; + + /** + * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FieldDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.extendee = ""; + object.number = 0; + object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; + object.type = options.enums === String ? "TYPE_DOUBLE" : 1; + object.typeName = ""; + object.defaultValue = ""; + object.options = null; + object.oneofIndex = 0; + object.jsonName = ""; + object.proto3Optional = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.extendee != null && message.hasOwnProperty("extendee")) + object.extendee = message.extendee; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.label != null && message.hasOwnProperty("label")) + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + if (message.typeName != null && message.hasOwnProperty("typeName")) + object.typeName = message.typeName; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) + object.defaultValue = message.defaultValue; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); + if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) + object.oneofIndex = message.oneofIndex; + if (message.jsonName != null && message.hasOwnProperty("jsonName")) + object.jsonName = message.jsonName; + if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) + object.proto3Optional = message.proto3Optional; + return object; + }; + + /** + * Converts this FieldDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.FieldDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + FieldDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; /** - * HttpRule custom. - * @member {google.api.ICustomHttpPattern|null|undefined} custom - * @memberof google.api.HttpRule + * Type enum. + * @name google.protobuf.FieldDescriptorProto.Type + * @enum {number} + * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value + * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value + * @property {number} TYPE_INT64=3 TYPE_INT64 value + * @property {number} TYPE_UINT64=4 TYPE_UINT64 value + * @property {number} TYPE_INT32=5 TYPE_INT32 value + * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value + * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value + * @property {number} TYPE_BOOL=8 TYPE_BOOL value + * @property {number} TYPE_STRING=9 TYPE_STRING value + * @property {number} TYPE_GROUP=10 TYPE_GROUP value + * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value + * @property {number} TYPE_BYTES=12 TYPE_BYTES value + * @property {number} TYPE_UINT32=13 TYPE_UINT32 value + * @property {number} TYPE_ENUM=14 TYPE_ENUM value + * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value + * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value + * @property {number} TYPE_SINT32=17 TYPE_SINT32 value + * @property {number} TYPE_SINT64=18 TYPE_SINT64 value + */ + FieldDescriptorProto.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "TYPE_DOUBLE"] = 1; + values[valuesById[2] = "TYPE_FLOAT"] = 2; + values[valuesById[3] = "TYPE_INT64"] = 3; + values[valuesById[4] = "TYPE_UINT64"] = 4; + values[valuesById[5] = "TYPE_INT32"] = 5; + values[valuesById[6] = "TYPE_FIXED64"] = 6; + values[valuesById[7] = "TYPE_FIXED32"] = 7; + values[valuesById[8] = "TYPE_BOOL"] = 8; + values[valuesById[9] = "TYPE_STRING"] = 9; + values[valuesById[10] = "TYPE_GROUP"] = 10; + values[valuesById[11] = "TYPE_MESSAGE"] = 11; + values[valuesById[12] = "TYPE_BYTES"] = 12; + values[valuesById[13] = "TYPE_UINT32"] = 13; + values[valuesById[14] = "TYPE_ENUM"] = 14; + values[valuesById[15] = "TYPE_SFIXED32"] = 15; + values[valuesById[16] = "TYPE_SFIXED64"] = 16; + values[valuesById[17] = "TYPE_SINT32"] = 17; + values[valuesById[18] = "TYPE_SINT64"] = 18; + return values; + })(); + + /** + * Label enum. + * @name google.protobuf.FieldDescriptorProto.Label + * @enum {number} + * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value + * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value + * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value + */ + FieldDescriptorProto.Label = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "LABEL_OPTIONAL"] = 1; + values[valuesById[2] = "LABEL_REQUIRED"] = 2; + values[valuesById[3] = "LABEL_REPEATED"] = 3; + return values; + })(); + + return FieldDescriptorProto; + })(); + + protobuf.OneofDescriptorProto = (function() { + + /** + * Properties of an OneofDescriptorProto. + * @memberof google.protobuf + * @interface IOneofDescriptorProto + * @property {string|null} [name] OneofDescriptorProto name + * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + */ + + /** + * Constructs a new OneofDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an OneofDescriptorProto. + * @implements IOneofDescriptorProto + * @constructor + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + */ + function OneofDescriptorProto(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]]; + } + + /** + * OneofDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.OneofDescriptorProto * @instance */ - HttpRule.prototype.custom = null; + OneofDescriptorProto.prototype.name = ""; /** - * HttpRule body. - * @member {string} body - * @memberof google.api.HttpRule + * OneofDescriptorProto options. + * @member {google.protobuf.IOneofOptions|null|undefined} options + * @memberof google.protobuf.OneofDescriptorProto * @instance */ - HttpRule.prototype.body = ""; + OneofDescriptorProto.prototype.options = null; /** - * HttpRule responseBody. - * @member {string} responseBody - * @memberof google.api.HttpRule + * Creates a new OneofDescriptorProto instance using the specified properties. + * @function create + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + */ + OneofDescriptorProto.create = function create(properties) { + return new OneofDescriptorProto(properties); + }; + + /** + * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.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.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.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.protobuf.OneofDescriptorProto(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofDescriptorProto message. + * @function verify + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofDescriptorProto.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.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.OneofOptions.verify(message.options); + if (error) + return "options." + error; + } + return null; + }; + + /** + * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + */ + OneofDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofDescriptorProto) + return object; + var message = new $root.google.protobuf.OneofDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + } + return message; + }; + + /** + * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OneofDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); + return object; + }; + + /** + * Converts this OneofDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.OneofDescriptorProto * @instance + * @returns {Object.} JSON object */ - HttpRule.prototype.responseBody = ""; + OneofDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return OneofDescriptorProto; + })(); + + protobuf.EnumDescriptorProto = (function() { /** - * HttpRule additionalBindings. - * @member {Array.} additionalBindings - * @memberof google.api.HttpRule + * Properties of an EnumDescriptorProto. + * @memberof google.protobuf + * @interface IEnumDescriptorProto + * @property {string|null} [name] EnumDescriptorProto name + * @property {Array.|null} [value] EnumDescriptorProto value + * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options + * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange + * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + */ + + /** + * Constructs a new EnumDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumDescriptorProto. + * @implements IEnumDescriptorProto + * @constructor + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + */ + function EnumDescriptorProto(properties) { + this.value = []; + this.reservedRange = []; + this.reservedName = []; + 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]]; + } + + /** + * EnumDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.name = ""; + + /** + * EnumDescriptorProto value. + * @member {Array.} value + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.value = $util.emptyArray; + + /** + * EnumDescriptorProto options. + * @member {google.protobuf.IEnumOptions|null|undefined} options + * @memberof google.protobuf.EnumDescriptorProto + * @instance + */ + EnumDescriptorProto.prototype.options = null; + + /** + * EnumDescriptorProto reservedRange. + * @member {Array.} reservedRange + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - HttpRule.prototype.additionalBindings = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; /** - * HttpRule pattern. - * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern - * @memberof google.api.HttpRule + * EnumDescriptorProto reservedName. + * @member {Array.} reservedName + * @memberof google.protobuf.EnumDescriptorProto * @instance */ - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), - set: $util.oneOfSetter($oneOfFields) - }); + EnumDescriptorProto.prototype.reservedName = $util.emptyArray; /** - * Creates a new HttpRule instance using the specified properties. + * Creates a new EnumDescriptorProto instance using the specified properties. * @function create - * @memberof google.api.HttpRule + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.api.IHttpRule=} [properties] Properties to set - * @returns {google.api.HttpRule} HttpRule instance + * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance */ - HttpRule.create = function create(properties) { - return new HttpRule(properties); + EnumDescriptorProto.create = function create(properties) { + return new EnumDescriptorProto(properties); }; /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.api.HttpRule + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpRule.encode = function encode(message, writer) { + EnumDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.selector != null && Object.hasOwnProperty.call(message, "selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && Object.hasOwnProperty.call(message, "get")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && Object.hasOwnProperty.call(message, "put")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && Object.hasOwnProperty.call(message, "post")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && Object.hasOwnProperty.call(message, "body")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && Object.hasOwnProperty.call(message, "custom")) - $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.additionalBindings != null && message.additionalBindings.length) - for (var i = 0; i < message.additionalBindings.length; ++i) - $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.responseBody != null && Object.hasOwnProperty.call(message, "responseBody")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.responseBody); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && message.value.length) + for (var i = 0; i < message.value.length; ++i) + $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.reservedRange != null && message.reservedRange.length) + for (var i = 0; i < message.reservedRange.length; ++i) + $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.reservedName != null && message.reservedName.length) + for (var i = 0; i < message.reservedName.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); return writer; }; /** - * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. + * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.HttpRule + * @memberof google.protobuf.EnumDescriptorProto * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode + * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HttpRule.encodeDelimited = function encodeDelimited(message, writer) { + EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HttpRule message from the specified reader or buffer. + * Decodes an EnumDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.api.HttpRule + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpRule.decode = function decode(reader, length) { + EnumDescriptorProto.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.api.HttpRule(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.selector = reader.string(); + message.name = reader.string(); break; case 2: - message.get = reader.string(); + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); break; case 3: - message.put = reader.string(); + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); break; case 4: - message.post = reader.string(); + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); break; case 5: - message["delete"] = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.responseBody = reader.string(); - break; - case 11: - if (!(message.additionalBindings && message.additionalBindings.length)) - message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -30488,240 +41389,405 @@ }; /** - * Decodes a HttpRule message from the specified reader or buffer, length delimited. + * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.HttpRule + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HttpRule.decodeDelimited = function decodeDelimited(reader) { + EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HttpRule message. + * Verifies an EnumDescriptorProto message. * @function verify - * @memberof google.api.HttpRule + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HttpRule.verify = function verify(message) { + EnumDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.get != null && message.hasOwnProperty("get")) { - properties.pattern = 1; - if (!$util.isString(message.get)) - return "get: string expected"; - } - if (message.put != null && message.hasOwnProperty("put")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.put)) - return "put: string expected"; - } - if (message.post != null && message.hasOwnProperty("post")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.post)) - return "post: string expected"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message["delete"])) - return "delete: string expected"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.patch)) - return "patch: string expected"; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - { - var error = $root.google.api.CustomHttpPattern.verify(message.custom); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + if (!Array.isArray(message.value)) + return "value: array expected"; + for (var i = 0; i < message.value.length; ++i) { + var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); if (error) - return "custom." + error; + return "value." + error; } } - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - if (message.responseBody != null && message.hasOwnProperty("responseBody")) - if (!$util.isString(message.responseBody)) - return "responseBody: string expected"; - if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { - if (!Array.isArray(message.additionalBindings)) - return "additionalBindings: array expected"; - for (var i = 0; i < message.additionalBindings.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumOptions.verify(message.options); + if (error) + return "options." + error; + } + if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { + if (!Array.isArray(message.reservedRange)) + return "reservedRange: array expected"; + for (var i = 0; i < message.reservedRange.length; ++i) { + var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); if (error) - return "additionalBindings." + error; + return "reservedRange." + error; } } + if (message.reservedName != null && message.hasOwnProperty("reservedName")) { + if (!Array.isArray(message.reservedName)) + return "reservedName: array expected"; + for (var i = 0; i < message.reservedName.length; ++i) + if (!$util.isString(message.reservedName[i])) + return "reservedName: string[] expected"; + } return null; }; /** - * Creates a HttpRule message from a plain object. Also converts values to their respective internal types. + * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.HttpRule + * @memberof google.protobuf.EnumDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.api.HttpRule} HttpRule + * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto */ - HttpRule.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.HttpRule) + EnumDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto) return object; - var message = new $root.google.api.HttpRule(); - if (object.selector != null) - message.selector = String(object.selector); - if (object.get != null) - message.get = String(object.get); - if (object.put != null) - message.put = String(object.put); - if (object.post != null) - message.post = String(object.post); - if (object["delete"] != null) - message["delete"] = String(object["delete"]); - if (object.patch != null) - message.patch = String(object.patch); - if (object.custom != null) { - if (typeof object.custom !== "object") - throw TypeError(".google.api.HttpRule.custom: object expected"); - message.custom = $root.google.api.CustomHttpPattern.fromObject(object.custom); + var message = new $root.google.protobuf.EnumDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.value) { + if (!Array.isArray(object.value)) + throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + message.value = []; + for (var i = 0; i < object.value.length; ++i) { + if (typeof object.value[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); + } } - if (object.body != null) - message.body = String(object.body); - if (object.responseBody != null) - message.responseBody = String(object.responseBody); - if (object.additionalBindings) { - if (!Array.isArray(object.additionalBindings)) - throw TypeError(".google.api.HttpRule.additionalBindings: array expected"); - message.additionalBindings = []; - for (var i = 0; i < object.additionalBindings.length; ++i) { - if (typeof object.additionalBindings[i] !== "object") - throw TypeError(".google.api.HttpRule.additionalBindings: object expected"); - message.additionalBindings[i] = $root.google.api.HttpRule.fromObject(object.additionalBindings[i]); + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); + } + if (object.reservedRange) { + if (!Array.isArray(object.reservedRange)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + message.reservedRange = []; + for (var i = 0; i < object.reservedRange.length; ++i) { + if (typeof object.reservedRange[i] !== "object") + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + } + } + if (object.reservedName) { + if (!Array.isArray(object.reservedName)) + throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + message.reservedName = []; + for (var i = 0; i < object.reservedName.length; ++i) + message.reservedName[i] = String(object.reservedName[i]); + } + return message; + }; + + /** + * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumDescriptorProto.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.value = []; + object.reservedRange = []; + object.reservedName = []; + } + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value && message.value.length) { + object.value = []; + for (var j = 0; j < message.value.length; ++j) + object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); + } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); + if (message.reservedRange && message.reservedRange.length) { + object.reservedRange = []; + for (var j = 0; j < message.reservedRange.length; ++j) + object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); + } + if (message.reservedName && message.reservedName.length) { + object.reservedName = []; + for (var j = 0; j < message.reservedName.length; ++j) + object.reservedName[j] = message.reservedName[j]; + } + return object; + }; + + /** + * Converts this EnumDescriptorProto to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto + * @instance + * @returns {Object.} JSON object + */ + EnumDescriptorProto.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + EnumDescriptorProto.EnumReservedRange = (function() { + + /** + * Properties of an EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @interface IEnumReservedRange + * @property {number|null} [start] EnumReservedRange start + * @property {number|null} [end] EnumReservedRange end + */ + + /** + * Constructs a new EnumReservedRange. + * @memberof google.protobuf.EnumDescriptorProto + * @classdesc Represents an EnumReservedRange. + * @implements IEnumReservedRange + * @constructor + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + */ + function EnumReservedRange(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]]; + } + + /** + * EnumReservedRange start. + * @member {number} start + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.start = 0; + + /** + * EnumReservedRange end. + * @member {number} end + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + */ + EnumReservedRange.prototype.end = 0; + + /** + * Creates a new EnumReservedRange instance using the specified properties. + * @function create + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance + */ + EnumReservedRange.create = function create(properties) { + return new EnumReservedRange(properties); + }; + + /** + * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, "start")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); + return writer; + }; + + /** + * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.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.protobuf.EnumDescriptorProto.EnumReservedRange(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.start = reader.int32(); + break; + case 2: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EnumReservedRange message. + * @function verify + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EnumReservedRange.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.start != null && message.hasOwnProperty("start")) + if (!$util.isInteger(message.start)) + return "start: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange + */ + EnumReservedRange.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) + return object; + var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); + if (object.start != null) + message.start = object.start | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; + + /** + * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EnumReservedRange.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.start = 0; + object.end = 0; } - } - return message; - }; + if (message.start != null && message.hasOwnProperty("start")) + object.start = message.start; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; - /** - * Creates a plain object from a HttpRule message. Also converts values to other types if specified. - * @function toObject - * @memberof google.api.HttpRule - * @static - * @param {google.api.HttpRule} message HttpRule - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - HttpRule.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.additionalBindings = []; - if (options.defaults) { - object.selector = ""; - object.body = ""; - object.responseBody = ""; - } - if (message.selector != null && message.hasOwnProperty("selector")) - object.selector = message.selector; - if (message.get != null && message.hasOwnProperty("get")) { - object.get = message.get; - if (options.oneofs) - object.pattern = "get"; - } - if (message.put != null && message.hasOwnProperty("put")) { - object.put = message.put; - if (options.oneofs) - object.pattern = "put"; - } - if (message.post != null && message.hasOwnProperty("post")) { - object.post = message.post; - if (options.oneofs) - object.pattern = "post"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - object["delete"] = message["delete"]; - if (options.oneofs) - object.pattern = "delete"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - object.patch = message.patch; - if (options.oneofs) - object.pattern = "patch"; - } - if (message.body != null && message.hasOwnProperty("body")) - object.body = message.body; - if (message.custom != null && message.hasOwnProperty("custom")) { - object.custom = $root.google.api.CustomHttpPattern.toObject(message.custom, options); - if (options.oneofs) - object.pattern = "custom"; - } - if (message.additionalBindings && message.additionalBindings.length) { - object.additionalBindings = []; - for (var j = 0; j < message.additionalBindings.length; ++j) - object.additionalBindings[j] = $root.google.api.HttpRule.toObject(message.additionalBindings[j], options); - } - if (message.responseBody != null && message.hasOwnProperty("responseBody")) - object.responseBody = message.responseBody; - return object; - }; + /** + * Converts this EnumReservedRange to JSON. + * @function toJSON + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @instance + * @returns {Object.} JSON object + */ + EnumReservedRange.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this HttpRule to JSON. - * @function toJSON - * @memberof google.api.HttpRule - * @instance - * @returns {Object.} JSON object - */ - HttpRule.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return EnumReservedRange; + })(); - return HttpRule; + return EnumDescriptorProto; })(); - api.CustomHttpPattern = (function() { + protobuf.EnumValueDescriptorProto = (function() { /** - * Properties of a CustomHttpPattern. - * @memberof google.api - * @interface ICustomHttpPattern - * @property {string|null} [kind] CustomHttpPattern kind - * @property {string|null} [path] CustomHttpPattern path + * Properties of an EnumValueDescriptorProto. + * @memberof google.protobuf + * @interface IEnumValueDescriptorProto + * @property {string|null} [name] EnumValueDescriptorProto name + * @property {number|null} [number] EnumValueDescriptorProto number + * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options */ /** - * Constructs a new CustomHttpPattern. - * @memberof google.api - * @classdesc Represents a CustomHttpPattern. - * @implements ICustomHttpPattern + * Constructs a new EnumValueDescriptorProto. + * @memberof google.protobuf + * @classdesc Represents an EnumValueDescriptorProto. + * @implements IEnumValueDescriptorProto * @constructor - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set */ - function CustomHttpPattern(properties) { + function EnumValueDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30729,88 +41795,101 @@ } /** - * CustomHttpPattern kind. - * @member {string} kind - * @memberof google.api.CustomHttpPattern + * EnumValueDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - CustomHttpPattern.prototype.kind = ""; + EnumValueDescriptorProto.prototype.name = ""; /** - * CustomHttpPattern path. - * @member {string} path - * @memberof google.api.CustomHttpPattern + * EnumValueDescriptorProto number. + * @member {number} number + * @memberof google.protobuf.EnumValueDescriptorProto * @instance */ - CustomHttpPattern.prototype.path = ""; + EnumValueDescriptorProto.prototype.number = 0; /** - * Creates a new CustomHttpPattern instance using the specified properties. + * EnumValueDescriptorProto options. + * @member {google.protobuf.IEnumValueOptions|null|undefined} options + * @memberof google.protobuf.EnumValueDescriptorProto + * @instance + */ + EnumValueDescriptorProto.prototype.options = null; + + /** + * Creates a new EnumValueDescriptorProto instance using the specified properties. * @function create - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance + * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance */ - CustomHttpPattern.create = function create(properties) { - return new CustomHttpPattern(properties); + EnumValueDescriptorProto.create = function create(properties) { + return new EnumValueDescriptorProto(properties); }; /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encode = function encode(message, writer) { + EnumValueDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.kind != null && Object.hasOwnProperty.call(message, "kind")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.number != null && Object.hasOwnProperty.call(message, "number")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. + * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode + * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomHttpPattern.encodeDelimited = function encodeDelimited(message, writer) { + EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decode = function decode(reader, length) { + EnumValueDescriptorProto.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.api.CustomHttpPattern(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.kind = reader.string(); + message.name = reader.string(); break; case 2: - message.path = reader.string(); + message.number = reader.int32(); + break; + case 3: + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -30821,155 +41900,132 @@ }; /** - * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited. + * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomHttpPattern.decodeDelimited = function decodeDelimited(reader) { + EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CustomHttpPattern message. + * Verifies an EnumValueDescriptorProto message. * @function verify - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomHttpPattern.verify = function verify(message) { + EnumValueDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - if (!$util.isString(message.kind)) - return "kind: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.number != null && message.hasOwnProperty("number")) + if (!$util.isInteger(message.number)) + return "number: integer expected"; + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.EnumValueOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.EnumValueDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.api.CustomHttpPattern} CustomHttpPattern + * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto */ - CustomHttpPattern.fromObject = function fromObject(object) { - if (object instanceof $root.google.api.CustomHttpPattern) + EnumValueDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) return object; - var message = new $root.google.api.CustomHttpPattern(); - if (object.kind != null) - message.kind = String(object.kind); - if (object.path != null) - message.path = String(object.path); + var message = new $root.google.protobuf.EnumValueDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.number != null) + message.number = object.number | 0; + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified. + * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.EnumValueDescriptorProto * @static - * @param {google.api.CustomHttpPattern} message CustomHttpPattern + * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomHttpPattern.toObject = function toObject(message, options) { + EnumValueDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.kind = ""; - object.path = ""; + object.name = ""; + object.number = 0; + object.options = null; } - if (message.kind != null && message.hasOwnProperty("kind")) - object.kind = message.kind; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.number != null && message.hasOwnProperty("number")) + object.number = message.number; + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); return object; }; /** - * Converts this CustomHttpPattern to JSON. + * Converts this EnumValueDescriptorProto to JSON. * @function toJSON - * @memberof google.api.CustomHttpPattern + * @memberof google.protobuf.EnumValueDescriptorProto * @instance * @returns {Object.} JSON object */ - CustomHttpPattern.prototype.toJSON = function toJSON() { + EnumValueDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CustomHttpPattern; - })(); - - /** - * FieldBehavior enum. - * @name google.api.FieldBehavior - * @enum {number} - * @property {number} FIELD_BEHAVIOR_UNSPECIFIED=0 FIELD_BEHAVIOR_UNSPECIFIED value - * @property {number} OPTIONAL=1 OPTIONAL value - * @property {number} REQUIRED=2 REQUIRED value - * @property {number} OUTPUT_ONLY=3 OUTPUT_ONLY value - * @property {number} INPUT_ONLY=4 INPUT_ONLY value - * @property {number} IMMUTABLE=5 IMMUTABLE value - * @property {number} UNORDERED_LIST=6 UNORDERED_LIST value - * @property {number} NON_EMPTY_DEFAULT=7 NON_EMPTY_DEFAULT value - */ - api.FieldBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FIELD_BEHAVIOR_UNSPECIFIED"] = 0; - values[valuesById[1] = "OPTIONAL"] = 1; - values[valuesById[2] = "REQUIRED"] = 2; - values[valuesById[3] = "OUTPUT_ONLY"] = 3; - values[valuesById[4] = "INPUT_ONLY"] = 4; - values[valuesById[5] = "IMMUTABLE"] = 5; - values[valuesById[6] = "UNORDERED_LIST"] = 6; - values[valuesById[7] = "NON_EMPTY_DEFAULT"] = 7; - return values; + return EnumValueDescriptorProto; })(); - return api; - })(); - - google.protobuf = (function() { - - /** - * Namespace protobuf. - * @memberof google - * @namespace - */ - var protobuf = {}; - - protobuf.FileDescriptorSet = (function() { + protobuf.ServiceDescriptorProto = (function() { /** - * Properties of a FileDescriptorSet. + * Properties of a ServiceDescriptorProto. * @memberof google.protobuf - * @interface IFileDescriptorSet - * @property {Array.|null} [file] FileDescriptorSet file + * @interface IServiceDescriptorProto + * @property {string|null} [name] ServiceDescriptorProto name + * @property {Array.|null} [method] ServiceDescriptorProto method + * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options */ /** - * Constructs a new FileDescriptorSet. + * Constructs a new ServiceDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a FileDescriptorSet. - * @implements IFileDescriptorSet + * @classdesc Represents a ServiceDescriptorProto. + * @implements IServiceDescriptorProto * @constructor - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set */ - function FileDescriptorSet(properties) { - this.file = []; + function ServiceDescriptorProto(properties) { + this.method = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -30977,78 +42033,104 @@ } /** - * FileDescriptorSet file. - * @member {Array.} file - * @memberof google.protobuf.FileDescriptorSet + * ServiceDescriptorProto name. + * @member {string} name + * @memberof google.protobuf.ServiceDescriptorProto * @instance */ - FileDescriptorSet.prototype.file = $util.emptyArray; + ServiceDescriptorProto.prototype.name = ""; /** - * Creates a new FileDescriptorSet instance using the specified properties. + * ServiceDescriptorProto method. + * @member {Array.} method + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.method = $util.emptyArray; + + /** + * ServiceDescriptorProto options. + * @member {google.protobuf.IServiceOptions|null|undefined} options + * @memberof google.protobuf.ServiceDescriptorProto + * @instance + */ + ServiceDescriptorProto.prototype.options = null; + + /** + * Creates a new ServiceDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance + * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance */ - FileDescriptorSet.create = function create(properties) { - return new FileDescriptorSet(properties); + ServiceDescriptorProto.create = function create(properties) { + return new ServiceDescriptorProto(properties); }; /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorSet.encode = function encode(message, writer) { + ServiceDescriptorProto.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.file != null && message.file.length) - for (var i = 0; i < message.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.method != null && message.method.length) + for (var i = 0; i < message.method.length; ++i) + $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.options != null && Object.hasOwnProperty.call(message, "options")) + $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. + * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode + * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorSet.encodeDelimited = function encodeDelimited(message, writer) { + ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorSet.decode = function decode(reader, length) { + ServiceDescriptorProto.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.protobuf.FileDescriptorSet(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + message.name = reader.string(); + break; + case 2: + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + case 3: + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -31059,142 +42141,152 @@ }; /** - * Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited. + * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorSet.decodeDelimited = function decodeDelimited(reader) { + ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileDescriptorSet message. + * Verifies a ServiceDescriptorProto message. * @function verify - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileDescriptorSet.verify = function verify(message) { + ServiceDescriptorProto.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.file != null && message.hasOwnProperty("file")) { - if (!Array.isArray(message.file)) - return "file: array expected"; - for (var i = 0; i < message.file.length; ++i) { - var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.method != null && message.hasOwnProperty("method")) { + if (!Array.isArray(message.method)) + return "method: array expected"; + for (var i = 0; i < message.method.length; ++i) { + var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); if (error) - return "file." + error; + return "method." + error; } } + if (message.options != null && message.hasOwnProperty("options")) { + var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (error) + return "options." + error; + } return null; }; /** - * Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.protobuf.ServiceDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - */ - FileDescriptorSet.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorSet) - return object; - var message = new $root.google.protobuf.FileDescriptorSet(); - if (object.file) { - if (!Array.isArray(object.file)) - throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); - message.file = []; - for (var i = 0; i < object.file.length; ++i) { - if (typeof object.file[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); - message.file[i] = $root.google.protobuf.FileDescriptorProto.fromObject(object.file[i]); + * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + */ + ServiceDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + return object; + var message = new $root.google.protobuf.ServiceDescriptorProto(); + if (object.name != null) + message.name = String(object.name); + if (object.method) { + if (!Array.isArray(object.method)) + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + message.method = []; + for (var i = 0; i < object.method.length; ++i) { + if (typeof object.method[i] !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); } } + if (object.options != null) { + if (typeof object.options !== "object") + throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + } return message; }; /** - * Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified. + * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.protobuf.ServiceDescriptorProto * @static - * @param {google.protobuf.FileDescriptorSet} message FileDescriptorSet + * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileDescriptorSet.toObject = function toObject(message, options) { + ServiceDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.file = []; - if (message.file && message.file.length) { - object.file = []; - for (var j = 0; j < message.file.length; ++j) - object.file[j] = $root.google.protobuf.FileDescriptorProto.toObject(message.file[j], options); + object.method = []; + if (options.defaults) { + object.name = ""; + object.options = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.method && message.method.length) { + object.method = []; + for (var j = 0; j < message.method.length; ++j) + object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); } + if (message.options != null && message.hasOwnProperty("options")) + object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); return object; }; /** - * Converts this FileDescriptorSet to JSON. + * Converts this ServiceDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.FileDescriptorSet + * @memberof google.protobuf.ServiceDescriptorProto * @instance * @returns {Object.} JSON object */ - FileDescriptorSet.prototype.toJSON = function toJSON() { + ServiceDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FileDescriptorSet; + return ServiceDescriptorProto; })(); - protobuf.FileDescriptorProto = (function() { + protobuf.MethodDescriptorProto = (function() { /** - * Properties of a FileDescriptorProto. + * Properties of a MethodDescriptorProto. * @memberof google.protobuf - * @interface IFileDescriptorProto - * @property {string|null} [name] FileDescriptorProto name - * @property {string|null} ["package"] FileDescriptorProto package - * @property {Array.|null} [dependency] FileDescriptorProto dependency - * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency - * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency - * @property {Array.|null} [messageType] FileDescriptorProto messageType - * @property {Array.|null} [enumType] FileDescriptorProto enumType - * @property {Array.|null} [service] FileDescriptorProto service - * @property {Array.|null} [extension] FileDescriptorProto extension - * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options - * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo - * @property {string|null} [syntax] FileDescriptorProto syntax + * @interface IMethodDescriptorProto + * @property {string|null} [name] MethodDescriptorProto name + * @property {string|null} [inputType] MethodDescriptorProto inputType + * @property {string|null} [outputType] MethodDescriptorProto outputType + * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options + * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming + * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming */ /** - * Constructs a new FileDescriptorProto. + * Constructs a new MethodDescriptorProto. * @memberof google.protobuf - * @classdesc Represents a FileDescriptorProto. - * @implements IFileDescriptorProto + * @classdesc Represents a MethodDescriptorProto. + * @implements IMethodDescriptorProto * @constructor - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set */ - function FileDescriptorProto(properties) { - this.dependency = []; - this.publicDependency = []; - this.weakDependency = []; - this.messageType = []; - this.enumType = []; - this.service = []; - this.extension = []; + function MethodDescriptorProto(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31202,187 +42294,120 @@ } /** - * FileDescriptorProto name. + * MethodDescriptorProto name. * @member {string} name - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.name = ""; - - /** - * FileDescriptorProto package. - * @member {string} package - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype["package"] = ""; - - /** - * FileDescriptorProto dependency. - * @member {Array.} dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.dependency = $util.emptyArray; - - /** - * FileDescriptorProto publicDependency. - * @member {Array.} publicDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.publicDependency = $util.emptyArray; - - /** - * FileDescriptorProto weakDependency. - * @member {Array.} weakDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.weakDependency = $util.emptyArray; - - /** - * FileDescriptorProto messageType. - * @member {Array.} messageType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.messageType = $util.emptyArray; - - /** - * FileDescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - FileDescriptorProto.prototype.enumType = $util.emptyArray; + MethodDescriptorProto.prototype.name = ""; /** - * FileDescriptorProto service. - * @member {Array.} service - * @memberof google.protobuf.FileDescriptorProto + * MethodDescriptorProto inputType. + * @member {string} inputType + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - FileDescriptorProto.prototype.service = $util.emptyArray; + MethodDescriptorProto.prototype.inputType = ""; /** - * FileDescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.FileDescriptorProto + * MethodDescriptorProto outputType. + * @member {string} outputType + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - FileDescriptorProto.prototype.extension = $util.emptyArray; + MethodDescriptorProto.prototype.outputType = ""; /** - * FileDescriptorProto options. - * @member {google.protobuf.IFileOptions|null|undefined} options - * @memberof google.protobuf.FileDescriptorProto + * MethodDescriptorProto options. + * @member {google.protobuf.IMethodOptions|null|undefined} options + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - FileDescriptorProto.prototype.options = null; + MethodDescriptorProto.prototype.options = null; /** - * FileDescriptorProto sourceCodeInfo. - * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo - * @memberof google.protobuf.FileDescriptorProto + * MethodDescriptorProto clientStreaming. + * @member {boolean} clientStreaming + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - FileDescriptorProto.prototype.sourceCodeInfo = null; + MethodDescriptorProto.prototype.clientStreaming = false; /** - * FileDescriptorProto syntax. - * @member {string} syntax - * @memberof google.protobuf.FileDescriptorProto + * MethodDescriptorProto serverStreaming. + * @member {boolean} serverStreaming + * @memberof google.protobuf.MethodDescriptorProto * @instance */ - FileDescriptorProto.prototype.syntax = ""; + MethodDescriptorProto.prototype.serverStreaming = false; /** - * Creates a new FileDescriptorProto instance using the specified properties. + * Creates a new MethodDescriptorProto instance using the specified properties. * @function create - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance + * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance */ - FileDescriptorProto.create = function create(properties) { - return new FileDescriptorProto(properties); + MethodDescriptorProto.create = function create(properties) { + return new MethodDescriptorProto(properties); }; /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorProto.encode = function encode(message, writer) { + MethodDescriptorProto.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["package"] != null && Object.hasOwnProperty.call(message, "package")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); - if (message.dependency != null && message.dependency.length) - for (var i = 0; i < message.dependency.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); - if (message.messageType != null && message.messageType.length) - for (var i = 0; i < message.messageType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.service != null && message.service.length) - for (var i = 0; i < message.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.inputType != null && Object.hasOwnProperty.call(message, "inputType")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); + if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && Object.hasOwnProperty.call(message, "sourceCodeInfo")) - $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.publicDependency != null && message.publicDependency.length) - for (var i = 0; i < message.publicDependency.length; ++i) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); - if (message.weakDependency != null && message.weakDependency.length) - for (var i = 0; i < message.weakDependency.length; ++i) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); + if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) + writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); return writer; }; /** - * Encodes the specified FileDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. + * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode + * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. + * Decodes a MethodDescriptorProto message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorProto.decode = function decode(reader, length) { + MethodDescriptorProto.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.protobuf.FileDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -31390,61 +42415,19 @@ message.name = reader.string(); break; case 2: - message["package"] = reader.string(); + message.inputType = reader.string(); break; case 3: - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - case 10: - if (!(message.publicDependency && message.publicDependency.length)) - message.publicDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.publicDependency.push(reader.int32()); - } else - message.publicDependency.push(reader.int32()); - break; - case 11: - if (!(message.weakDependency && message.weakDependency.length)) - message.weakDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.weakDependency.push(reader.int32()); - } else - message.weakDependency.push(reader.int32()); + message.outputType = reader.string(); break; case 4: - if (!(message.messageType && message.messageType.length)) - message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); break; case 5: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + message.clientStreaming = reader.bool(); break; case 6: - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); + message.serverStreaming = reader.bool(); break; default: reader.skipType(tag & 7); @@ -31455,329 +42438,176 @@ }; /** - * Decodes a FileDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FileDescriptorProto message. + * Verifies a MethodDescriptorProto message. * @function verify - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FileDescriptorProto.verify = function verify(message) { + MethodDescriptorProto.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["package"] != null && message.hasOwnProperty("package")) - if (!$util.isString(message["package"])) - return "package: string expected"; - if (message.dependency != null && message.hasOwnProperty("dependency")) { - if (!Array.isArray(message.dependency)) - return "dependency: array expected"; - for (var i = 0; i < message.dependency.length; ++i) - if (!$util.isString(message.dependency[i])) - return "dependency: string[] expected"; - } - if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { - if (!Array.isArray(message.publicDependency)) - return "publicDependency: array expected"; - for (var i = 0; i < message.publicDependency.length; ++i) - if (!$util.isInteger(message.publicDependency[i])) - return "publicDependency: integer[] expected"; - } - if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { - if (!Array.isArray(message.weakDependency)) - return "weakDependency: array expected"; - for (var i = 0; i < message.weakDependency.length; ++i) - if (!$util.isInteger(message.weakDependency[i])) - return "weakDependency: integer[] expected"; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) { - if (!Array.isArray(message.messageType)) - return "messageType: array expected"; - for (var i = 0; i < message.messageType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); - if (error) - return "messageType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.service != null && message.hasOwnProperty("service")) { - if (!Array.isArray(message.service)) - return "service: array expected"; - for (var i = 0; i < message.service.length; ++i) { - var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); - if (error) - return "service." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } + if (message.inputType != null && message.hasOwnProperty("inputType")) + if (!$util.isString(message.inputType)) + return "inputType: string expected"; + if (message.outputType != null && message.hasOwnProperty("outputType")) + if (!$util.isString(message.outputType)) + return "outputType: string expected"; if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FileOptions.verify(message.options); + var error = $root.google.protobuf.MethodOptions.verify(message.options); if (error) return "options." + error; } - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { - var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); - if (error) - return "sourceCodeInfo." + error; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - if (!$util.isString(message.syntax)) - return "syntax: string expected"; + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + if (typeof message.clientStreaming !== "boolean") + return "clientStreaming: boolean expected"; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + if (typeof message.serverStreaming !== "boolean") + return "serverStreaming: boolean expected"; return null; }; /** - * Creates a FileDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.MethodDescriptorProto * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto + * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto */ - FileDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileDescriptorProto) + MethodDescriptorProto.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodDescriptorProto) return object; - var message = new $root.google.protobuf.FileDescriptorProto(); + var message = new $root.google.protobuf.MethodDescriptorProto(); if (object.name != null) message.name = String(object.name); - if (object["package"] != null) - message["package"] = String(object["package"]); - if (object.dependency) { - if (!Array.isArray(object.dependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); - message.dependency = []; - for (var i = 0; i < object.dependency.length; ++i) - message.dependency[i] = String(object.dependency[i]); - } - if (object.publicDependency) { - if (!Array.isArray(object.publicDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); - message.publicDependency = []; - for (var i = 0; i < object.publicDependency.length; ++i) - message.publicDependency[i] = object.publicDependency[i] | 0; - } - if (object.weakDependency) { - if (!Array.isArray(object.weakDependency)) - throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); - message.weakDependency = []; - for (var i = 0; i < object.weakDependency.length; ++i) - message.weakDependency[i] = object.weakDependency[i] | 0; - } - if (object.messageType) { - if (!Array.isArray(object.messageType)) - throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); - message.messageType = []; - for (var i = 0; i < object.messageType.length; ++i) { - if (typeof object.messageType[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); - message.messageType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.messageType[i]); - } - } - if (object.enumType) { - if (!Array.isArray(object.enumType)) - throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); - message.enumType = []; - for (var i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); - } - } - if (object.service) { - if (!Array.isArray(object.service)) - throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); - message.service = []; - for (var i = 0; i < object.service.length; ++i) { - if (typeof object.service[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); - message.service[i] = $root.google.protobuf.ServiceDescriptorProto.fromObject(object.service[i]); - } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); - } - } + if (object.inputType != null) + message.inputType = String(object.inputType); + if (object.outputType != null) + message.outputType = String(object.outputType); if (object.options != null) { if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FileOptions.fromObject(object.options); - } - if (object.sourceCodeInfo != null) { - if (typeof object.sourceCodeInfo !== "object") - throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.fromObject(object.sourceCodeInfo); + throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); } - if (object.syntax != null) - message.syntax = String(object.syntax); + if (object.clientStreaming != null) + message.clientStreaming = Boolean(object.clientStreaming); + if (object.serverStreaming != null) + message.serverStreaming = Boolean(object.serverStreaming); return message; }; /** - * Creates a plain object from a FileDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.MethodDescriptorProto * @static - * @param {google.protobuf.FileDescriptorProto} message FileDescriptorProto + * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileDescriptorProto.toObject = function toObject(message, options) { + MethodDescriptorProto.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.dependency = []; - object.messageType = []; - object.enumType = []; - object.service = []; - object.extension = []; - object.publicDependency = []; - object.weakDependency = []; - } if (options.defaults) { object.name = ""; - object["package"] = ""; + object.inputType = ""; + object.outputType = ""; object.options = null; - object.sourceCodeInfo = null; - object.syntax = ""; + object.clientStreaming = false; + object.serverStreaming = false; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message["package"] != null && message.hasOwnProperty("package")) - object["package"] = message["package"]; - if (message.dependency && message.dependency.length) { - object.dependency = []; - for (var j = 0; j < message.dependency.length; ++j) - object.dependency[j] = message.dependency[j]; - } - if (message.messageType && message.messageType.length) { - object.messageType = []; - for (var j = 0; j < message.messageType.length; ++j) - object.messageType[j] = $root.google.protobuf.DescriptorProto.toObject(message.messageType[j], options); - } - if (message.enumType && message.enumType.length) { - object.enumType = []; - for (var j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); - } - if (message.service && message.service.length) { - object.service = []; - for (var j = 0; j < message.service.length; ++j) - object.service[j] = $root.google.protobuf.ServiceDescriptorProto.toObject(message.service[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } + if (message.inputType != null && message.hasOwnProperty("inputType")) + object.inputType = message.inputType; + if (message.outputType != null && message.hasOwnProperty("outputType")) + object.outputType = message.outputType; if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FileOptions.toObject(message.options, options); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) - object.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.toObject(message.sourceCodeInfo, options); - if (message.publicDependency && message.publicDependency.length) { - object.publicDependency = []; - for (var j = 0; j < message.publicDependency.length; ++j) - object.publicDependency[j] = message.publicDependency[j]; - } - if (message.weakDependency && message.weakDependency.length) { - object.weakDependency = []; - for (var j = 0; j < message.weakDependency.length; ++j) - object.weakDependency[j] = message.weakDependency[j]; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - object.syntax = message.syntax; + object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); + if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) + object.clientStreaming = message.clientStreaming; + if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) + object.serverStreaming = message.serverStreaming; return object; }; /** - * Converts this FileDescriptorProto to JSON. + * Converts this MethodDescriptorProto to JSON. * @function toJSON - * @memberof google.protobuf.FileDescriptorProto + * @memberof google.protobuf.MethodDescriptorProto * @instance * @returns {Object.} JSON object */ - FileDescriptorProto.prototype.toJSON = function toJSON() { + MethodDescriptorProto.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FileDescriptorProto; + return MethodDescriptorProto; })(); - protobuf.DescriptorProto = (function() { + protobuf.FileOptions = (function() { /** - * Properties of a DescriptorProto. + * Properties of a FileOptions. * @memberof google.protobuf - * @interface IDescriptorProto - * @property {string|null} [name] DescriptorProto name - * @property {Array.|null} [field] DescriptorProto field - * @property {Array.|null} [extension] DescriptorProto extension - * @property {Array.|null} [nestedType] DescriptorProto nestedType - * @property {Array.|null} [enumType] DescriptorProto enumType - * @property {Array.|null} [extensionRange] DescriptorProto extensionRange - * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl - * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options - * @property {Array.|null} [reservedRange] DescriptorProto reservedRange - * @property {Array.|null} [reservedName] DescriptorProto reservedName + * @interface IFileOptions + * @property {string|null} [javaPackage] FileOptions javaPackage + * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname + * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles + * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash + * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 + * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor + * @property {string|null} [goPackage] FileOptions goPackage + * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices + * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices + * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices + * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices + * @property {boolean|null} [deprecated] FileOptions deprecated + * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas + * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix + * @property {string|null} [csharpNamespace] FileOptions csharpNamespace + * @property {string|null} [swiftPrefix] FileOptions swiftPrefix + * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix + * @property {string|null} [phpNamespace] FileOptions phpNamespace + * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace + * @property {string|null} [rubyPackage] FileOptions rubyPackage + * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @property {Array.|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition */ /** - * Constructs a new DescriptorProto. + * Constructs a new FileOptions. * @memberof google.protobuf - * @classdesc Represents a DescriptorProto. - * @implements IDescriptorProto + * @classdesc Represents a FileOptions. + * @implements IFileOptions * @constructor - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IFileOptions=} [properties] Properties to set */ - function DescriptorProto(properties) { - this.field = []; - this.extension = []; - this.nestedType = []; - this.enumType = []; - this.extensionRange = []; - this.oneofDecl = []; - this.reservedRange = []; - this.reservedName = []; + function FileOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.resourceDefinition"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -31785,216 +42615,354 @@ } /** - * DescriptorProto name. - * @member {string} name - * @memberof google.protobuf.DescriptorProto + * FileOptions javaPackage. + * @member {string} javaPackage + * @memberof google.protobuf.FileOptions * @instance */ - DescriptorProto.prototype.name = ""; + FileOptions.prototype.javaPackage = ""; /** - * DescriptorProto field. - * @member {Array.} field - * @memberof google.protobuf.DescriptorProto + * FileOptions javaOuterClassname. + * @member {string} javaOuterClassname + * @memberof google.protobuf.FileOptions * @instance */ - DescriptorProto.prototype.field = $util.emptyArray; + FileOptions.prototype.javaOuterClassname = ""; /** - * DescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.DescriptorProto + * FileOptions javaMultipleFiles. + * @member {boolean} javaMultipleFiles + * @memberof google.protobuf.FileOptions * @instance */ - DescriptorProto.prototype.extension = $util.emptyArray; + FileOptions.prototype.javaMultipleFiles = false; /** - * DescriptorProto nestedType. - * @member {Array.} nestedType - * @memberof google.protobuf.DescriptorProto + * FileOptions javaGenerateEqualsAndHash. + * @member {boolean} javaGenerateEqualsAndHash + * @memberof google.protobuf.FileOptions * @instance */ - DescriptorProto.prototype.nestedType = $util.emptyArray; + FileOptions.prototype.javaGenerateEqualsAndHash = false; /** - * DescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.DescriptorProto + * FileOptions javaStringCheckUtf8. + * @member {boolean} javaStringCheckUtf8 + * @memberof google.protobuf.FileOptions * @instance */ - DescriptorProto.prototype.enumType = $util.emptyArray; + FileOptions.prototype.javaStringCheckUtf8 = false; /** - * DescriptorProto extensionRange. - * @member {Array.} extensionRange - * @memberof google.protobuf.DescriptorProto + * FileOptions optimizeFor. + * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor + * @memberof google.protobuf.FileOptions * @instance */ - DescriptorProto.prototype.extensionRange = $util.emptyArray; + FileOptions.prototype.optimizeFor = 1; /** - * DescriptorProto oneofDecl. - * @member {Array.} oneofDecl - * @memberof google.protobuf.DescriptorProto + * FileOptions goPackage. + * @member {string} goPackage + * @memberof google.protobuf.FileOptions * @instance */ - DescriptorProto.prototype.oneofDecl = $util.emptyArray; + FileOptions.prototype.goPackage = ""; /** - * DescriptorProto options. - * @member {google.protobuf.IMessageOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto + * FileOptions ccGenericServices. + * @member {boolean} ccGenericServices + * @memberof google.protobuf.FileOptions * @instance */ - DescriptorProto.prototype.options = null; + FileOptions.prototype.ccGenericServices = false; /** - * DescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.DescriptorProto + * FileOptions javaGenericServices. + * @member {boolean} javaGenericServices + * @memberof google.protobuf.FileOptions * @instance */ - DescriptorProto.prototype.reservedRange = $util.emptyArray; + FileOptions.prototype.javaGenericServices = false; /** - * DescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.DescriptorProto + * FileOptions pyGenericServices. + * @member {boolean} pyGenericServices + * @memberof google.protobuf.FileOptions * @instance */ - DescriptorProto.prototype.reservedName = $util.emptyArray; + FileOptions.prototype.pyGenericServices = false; /** - * Creates a new DescriptorProto instance using the specified properties. + * FileOptions phpGenericServices. + * @member {boolean} phpGenericServices + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpGenericServices = false; + + /** + * FileOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.deprecated = false; + + /** + * FileOptions ccEnableArenas. + * @member {boolean} ccEnableArenas + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.ccEnableArenas = true; + + /** + * FileOptions objcClassPrefix. + * @member {string} objcClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.objcClassPrefix = ""; + + /** + * FileOptions csharpNamespace. + * @member {string} csharpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.csharpNamespace = ""; + + /** + * FileOptions swiftPrefix. + * @member {string} swiftPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.swiftPrefix = ""; + + /** + * FileOptions phpClassPrefix. + * @member {string} phpClassPrefix + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpClassPrefix = ""; + + /** + * FileOptions phpNamespace. + * @member {string} phpNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpNamespace = ""; + + /** + * FileOptions phpMetadataNamespace. + * @member {string} phpMetadataNamespace + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.phpMetadataNamespace = ""; + + /** + * FileOptions rubyPackage. + * @member {string} rubyPackage + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.rubyPackage = ""; + + /** + * FileOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * FileOptions .google.api.resourceDefinition. + * @member {Array.} .google.api.resourceDefinition + * @memberof google.protobuf.FileOptions + * @instance + */ + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; + + /** + * Creates a new FileOptions instance using the specified properties. * @function create - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto} DescriptorProto instance + * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @returns {google.protobuf.FileOptions} FileOptions instance */ - DescriptorProto.create = function create(properties) { - return new DescriptorProto(properties); + FileOptions.create = function create(properties) { + return new FileOptions(properties); }; /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptorProto.encode = function encode(message, writer) { + FileOptions.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.field != null && message.field.length) - for (var i = 0; i < message.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nestedType != null && message.nestedType.length) - for (var i = 0; i < message.nestedType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.extensionRange != null && message.extensionRange.length) - for (var i = 0; i < message.extensionRange.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.oneofDecl != null && message.oneofDecl.length) - for (var i = 0; i < message.oneofDecl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); + if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); + if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); + if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) + writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); + if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); + if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); + if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) + writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); + if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); + if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) + writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); + if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) + writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); + if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) + writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); + if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) + writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); + if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) + writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); + if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) + writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); + if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) + writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); + if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) + writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); + if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) + writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); + if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) + writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); + if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) + writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); + if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) + writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); return writer; }; /** - * Encodes the specified DescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. + * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.FileOptions * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode + * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + FileOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DescriptorProto message from the specified reader or buffer. + * Decodes a FileOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.FileOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DescriptorProto.decode = function decode(reader, length) { + FileOptions.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.protobuf.DescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.javaPackage = reader.string(); break; - case 2: - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + case 8: + message.javaOuterClassname = reader.string(); break; - case 6: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + case 10: + message.javaMultipleFiles = reader.bool(); break; - case 3: - if (!(message.nestedType && message.nestedType.length)) - message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + case 20: + message.javaGenerateEqualsAndHash = reader.bool(); break; - case 4: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + case 27: + message.javaStringCheckUtf8 = reader.bool(); break; - case 5: - if (!(message.extensionRange && message.extensionRange.length)) - message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + case 9: + message.optimizeFor = reader.int32(); break; - case 8: - if (!(message.oneofDecl && message.oneofDecl.length)) - message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + case 11: + message.goPackage = reader.string(); break; - case 7: - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + case 16: + message.ccGenericServices = reader.bool(); break; - case 9: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + case 17: + message.javaGenericServices = reader.bool(); break; - case 10: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); + case 18: + message.pyGenericServices = reader.bool(); + break; + case 42: + message.phpGenericServices = reader.bool(); + break; + case 23: + message.deprecated = reader.bool(); + break; + case 31: + message.ccEnableArenas = reader.bool(); + break; + case 36: + message.objcClassPrefix = reader.string(); + break; + case 37: + message.csharpNamespace = reader.string(); + break; + case 39: + message.swiftPrefix = reader.string(); + break; + case 40: + message.phpClassPrefix = reader.string(); + break; + case 41: + message.phpNamespace = reader.string(); + break; + case 44: + message.phpMetadataNamespace = reader.string(); + break; + case 45: + message.rubyPackage = reader.string(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 1053: + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -32005,766 +42973,681 @@ }; /** - * Decodes a DescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a FileOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.FileOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {google.protobuf.FileOptions} FileOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DescriptorProto.decodeDelimited = function decodeDelimited(reader) { + FileOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DescriptorProto message. + * Verifies a FileOptions message. * @function verify - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.FileOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DescriptorProto.verify = function verify(message) { + FileOptions.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.field != null && message.hasOwnProperty("field")) { - if (!Array.isArray(message.field)) - return "field: array expected"; - for (var i = 0; i < message.field.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); - if (error) - return "field." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.nestedType != null && message.hasOwnProperty("nestedType")) { - if (!Array.isArray(message.nestedType)) - return "nestedType: array expected"; - for (var i = 0; i < message.nestedType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); - if (error) - return "nestedType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { - if (!Array.isArray(message.extensionRange)) - return "extensionRange: array expected"; - for (var i = 0; i < message.extensionRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); - if (error) - return "extensionRange." + error; + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + if (!$util.isString(message.javaPackage)) + return "javaPackage: string expected"; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + if (!$util.isString(message.javaOuterClassname)) + return "javaOuterClassname: string expected"; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + if (typeof message.javaMultipleFiles !== "boolean") + return "javaMultipleFiles: boolean expected"; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + if (typeof message.javaGenerateEqualsAndHash !== "boolean") + return "javaGenerateEqualsAndHash: boolean expected"; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + if (typeof message.javaStringCheckUtf8 !== "boolean") + return "javaStringCheckUtf8: boolean expected"; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + switch (message.optimizeFor) { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + break; } - } - if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { - if (!Array.isArray(message.oneofDecl)) - return "oneofDecl: array expected"; - for (var i = 0; i < message.oneofDecl.length; ++i) { - var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + if (!$util.isString(message.goPackage)) + return "goPackage: string expected"; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + if (typeof message.ccGenericServices !== "boolean") + return "ccGenericServices: boolean expected"; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + if (typeof message.javaGenericServices !== "boolean") + return "javaGenericServices: boolean expected"; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + if (typeof message.pyGenericServices !== "boolean") + return "pyGenericServices: boolean expected"; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + if (typeof message.phpGenericServices !== "boolean") + return "phpGenericServices: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + if (typeof message.ccEnableArenas !== "boolean") + return "ccEnableArenas: boolean expected"; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + if (!$util.isString(message.objcClassPrefix)) + return "objcClassPrefix: string expected"; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + if (!$util.isString(message.csharpNamespace)) + return "csharpNamespace: string expected"; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + if (!$util.isString(message.swiftPrefix)) + return "swiftPrefix: string expected"; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + if (!$util.isString(message.phpClassPrefix)) + return "phpClassPrefix: string expected"; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + if (!$util.isString(message.phpNamespace)) + return "phpNamespace: string expected"; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + if (!$util.isString(message.phpMetadataNamespace)) + return "phpMetadataNamespace: string expected"; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + if (!$util.isString(message.rubyPackage)) + return "rubyPackage: string expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) - return "oneofDecl." + error; + return "uninterpretedOption." + error; } } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MessageOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { + if (!Array.isArray(message[".google.api.resourceDefinition"])) + return ".google.api.resourceDefinition: array expected"; + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); if (error) - return "reservedRange." + error; + return ".google.api.resourceDefinition." + error; } } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; - } return null; }; /** - * Creates a DescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.DescriptorProto + * @memberof google.protobuf.FileOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto} DescriptorProto + * @returns {google.protobuf.FileOptions} FileOptions */ - DescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto) + FileOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FileOptions) return object; - var message = new $root.google.protobuf.DescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.field) { - if (!Array.isArray(object.field)) - throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); - message.field = []; - for (var i = 0; i < object.field.length; ++i) { - if (typeof object.field[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); - message.field[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.field[i]); - } - } - if (object.extension) { - if (!Array.isArray(object.extension)) - throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); - message.extension = []; - for (var i = 0; i < object.extension.length; ++i) { - if (typeof object.extension[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); - message.extension[i] = $root.google.protobuf.FieldDescriptorProto.fromObject(object.extension[i]); - } - } - if (object.nestedType) { - if (!Array.isArray(object.nestedType)) - throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); - message.nestedType = []; - for (var i = 0; i < object.nestedType.length; ++i) { - if (typeof object.nestedType[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); - message.nestedType[i] = $root.google.protobuf.DescriptorProto.fromObject(object.nestedType[i]); - } - } - if (object.enumType) { - if (!Array.isArray(object.enumType)) - throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); - message.enumType = []; - for (var i = 0; i < object.enumType.length; ++i) { - if (typeof object.enumType[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); - message.enumType[i] = $root.google.protobuf.EnumDescriptorProto.fromObject(object.enumType[i]); - } - } - if (object.extensionRange) { - if (!Array.isArray(object.extensionRange)) - throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); - message.extensionRange = []; - for (var i = 0; i < object.extensionRange.length; ++i) { - if (typeof object.extensionRange[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); - message.extensionRange[i] = $root.google.protobuf.DescriptorProto.ExtensionRange.fromObject(object.extensionRange[i]); - } - } - if (object.oneofDecl) { - if (!Array.isArray(object.oneofDecl)) - throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); - message.oneofDecl = []; - for (var i = 0; i < object.oneofDecl.length; ++i) { - if (typeof object.oneofDecl[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); - message.oneofDecl[i] = $root.google.protobuf.OneofDescriptorProto.fromObject(object.oneofDecl[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MessageOptions.fromObject(object.options); - } - if (object.reservedRange) { - if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); - message.reservedRange = []; - for (var i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.DescriptorProto.ReservedRange.fromObject(object.reservedRange[i]); - } - } - if (object.reservedName) { - if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); - message.reservedName = []; - for (var i = 0; i < object.reservedName.length; ++i) - message.reservedName[i] = String(object.reservedName[i]); - } - return message; - }; - - /** - * Creates a plain object from a DescriptorProto message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.DescriptorProto} message DescriptorProto - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DescriptorProto.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.field = []; - object.nestedType = []; - object.enumType = []; - object.extensionRange = []; - object.extension = []; - object.oneofDecl = []; - object.reservedRange = []; - object.reservedName = []; - } - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.field && message.field.length) { - object.field = []; - for (var j = 0; j < message.field.length; ++j) - object.field[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.field[j], options); - } - if (message.nestedType && message.nestedType.length) { - object.nestedType = []; - for (var j = 0; j < message.nestedType.length; ++j) - object.nestedType[j] = $root.google.protobuf.DescriptorProto.toObject(message.nestedType[j], options); - } - if (message.enumType && message.enumType.length) { - object.enumType = []; - for (var j = 0; j < message.enumType.length; ++j) - object.enumType[j] = $root.google.protobuf.EnumDescriptorProto.toObject(message.enumType[j], options); - } - if (message.extensionRange && message.extensionRange.length) { - object.extensionRange = []; - for (var j = 0; j < message.extensionRange.length; ++j) - object.extensionRange[j] = $root.google.protobuf.DescriptorProto.ExtensionRange.toObject(message.extensionRange[j], options); - } - if (message.extension && message.extension.length) { - object.extension = []; - for (var j = 0; j < message.extension.length; ++j) - object.extension[j] = $root.google.protobuf.FieldDescriptorProto.toObject(message.extension[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MessageOptions.toObject(message.options, options); - if (message.oneofDecl && message.oneofDecl.length) { - object.oneofDecl = []; - for (var j = 0; j < message.oneofDecl.length; ++j) - object.oneofDecl[j] = $root.google.protobuf.OneofDescriptorProto.toObject(message.oneofDecl[j], options); - } - if (message.reservedRange && message.reservedRange.length) { - object.reservedRange = []; - for (var j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.DescriptorProto.ReservedRange.toObject(message.reservedRange[j], options); - } - if (message.reservedName && message.reservedName.length) { - object.reservedName = []; - for (var j = 0; j < message.reservedName.length; ++j) - object.reservedName[j] = message.reservedName[j]; - } - return object; - }; - - /** - * Converts this DescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto - * @instance - * @returns {Object.} JSON object - */ - DescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - DescriptorProto.ExtensionRange = (function() { - - /** - * Properties of an ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @interface IExtensionRange - * @property {number|null} [start] ExtensionRange start - * @property {number|null} [end] ExtensionRange end - * @property {google.protobuf.IExtensionRangeOptions|null} [options] ExtensionRange options - */ - - /** - * Constructs a new ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents an ExtensionRange. - * @implements IExtensionRange - * @constructor - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - */ - function ExtensionRange(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]]; + var message = new $root.google.protobuf.FileOptions(); + if (object.javaPackage != null) + message.javaPackage = String(object.javaPackage); + if (object.javaOuterClassname != null) + message.javaOuterClassname = String(object.javaOuterClassname); + if (object.javaMultipleFiles != null) + message.javaMultipleFiles = Boolean(object.javaMultipleFiles); + if (object.javaGenerateEqualsAndHash != null) + message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); + if (object.javaStringCheckUtf8 != null) + message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); + switch (object.optimizeFor) { + case "SPEED": + case 1: + message.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + message.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + message.optimizeFor = 3; + break; } - - /** - * ExtensionRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.start = 0; - - /** - * ExtensionRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.end = 0; - - /** - * ExtensionRange options. - * @member {google.protobuf.IExtensionRangeOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.options = null; - - /** - * Creates a new ExtensionRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance - */ - ExtensionRange.create = function create(properties) { - return new ExtensionRange(properties); - }; - - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ExtensionRangeOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ExtensionRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.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.protobuf.DescriptorProto.ExtensionRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } + if (object.goPackage != null) + message.goPackage = String(object.goPackage); + if (object.ccGenericServices != null) + message.ccGenericServices = Boolean(object.ccGenericServices); + if (object.javaGenericServices != null) + message.javaGenericServices = Boolean(object.javaGenericServices); + if (object.pyGenericServices != null) + message.pyGenericServices = Boolean(object.pyGenericServices); + if (object.phpGenericServices != null) + message.phpGenericServices = Boolean(object.phpGenericServices); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.ccEnableArenas != null) + message.ccEnableArenas = Boolean(object.ccEnableArenas); + if (object.objcClassPrefix != null) + message.objcClassPrefix = String(object.objcClassPrefix); + if (object.csharpNamespace != null) + message.csharpNamespace = String(object.csharpNamespace); + if (object.swiftPrefix != null) + message.swiftPrefix = String(object.swiftPrefix); + if (object.phpClassPrefix != null) + message.phpClassPrefix = String(object.phpClassPrefix); + if (object.phpNamespace != null) + message.phpNamespace = String(object.phpNamespace); + if (object.phpMetadataNamespace != null) + message.phpMetadataNamespace = String(object.phpMetadataNamespace); + if (object.rubyPackage != null) + message.rubyPackage = String(object.rubyPackage); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } - return message; - }; + } + if (object[".google.api.resourceDefinition"]) { + if (!Array.isArray(object[".google.api.resourceDefinition"])) + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); + message[".google.api.resourceDefinition"] = []; + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { + if (typeof object[".google.api.resourceDefinition"][i] !== "object") + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); + } + } + return message; + }; - /** - * Decodes an ExtensionRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.FileOptions + * @static + * @param {google.protobuf.FileOptions} message FileOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FileOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.resourceDefinition"] = []; + } + if (options.defaults) { + object.javaPackage = ""; + object.javaOuterClassname = ""; + object.optimizeFor = options.enums === String ? "SPEED" : 1; + object.javaMultipleFiles = false; + object.goPackage = ""; + object.ccGenericServices = false; + object.javaGenericServices = false; + object.pyGenericServices = false; + object.javaGenerateEqualsAndHash = false; + object.deprecated = false; + object.javaStringCheckUtf8 = false; + object.ccEnableArenas = true; + object.objcClassPrefix = ""; + object.csharpNamespace = ""; + object.swiftPrefix = ""; + object.phpClassPrefix = ""; + object.phpNamespace = ""; + object.phpGenericServices = false; + object.phpMetadataNamespace = ""; + object.rubyPackage = ""; + } + if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) + object.javaPackage = message.javaPackage; + if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) + object.javaOuterClassname = message.javaOuterClassname; + if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) + object.javaMultipleFiles = message.javaMultipleFiles; + if (message.goPackage != null && message.hasOwnProperty("goPackage")) + object.goPackage = message.goPackage; + if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) + object.ccGenericServices = message.ccGenericServices; + if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) + object.javaGenericServices = message.javaGenericServices; + if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) + object.pyGenericServices = message.pyGenericServices; + if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) + object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) + object.javaStringCheckUtf8 = message.javaStringCheckUtf8; + if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) + object.ccEnableArenas = message.ccEnableArenas; + if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) + object.objcClassPrefix = message.objcClassPrefix; + if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) + object.csharpNamespace = message.csharpNamespace; + if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) + object.swiftPrefix = message.swiftPrefix; + if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) + object.phpClassPrefix = message.phpClassPrefix; + if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) + object.phpNamespace = message.phpNamespace; + if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) + object.phpGenericServices = message.phpGenericServices; + if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) + object.phpMetadataNamespace = message.phpMetadataNamespace; + if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) + object.rubyPackage = message.rubyPackage; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { + object[".google.api.resourceDefinition"] = []; + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); + } + return object; + }; - /** - * Verifies an ExtensionRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtensionRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ExtensionRangeOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; + /** + * Converts this FileOptions to JSON. + * @function toJSON + * @memberof google.protobuf.FileOptions + * @instance + * @returns {Object.} JSON object + */ + FileOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates an ExtensionRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - */ - ExtensionRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ExtensionRange) - return object; - var message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); - message.options = $root.google.protobuf.ExtensionRangeOptions.fromObject(object.options); - } - return message; - }; + /** + * OptimizeMode enum. + * @name google.protobuf.FileOptions.OptimizeMode + * @enum {number} + * @property {number} SPEED=1 SPEED value + * @property {number} CODE_SIZE=2 CODE_SIZE value + * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value + */ + FileOptions.OptimizeMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[1] = "SPEED"] = 1; + values[valuesById[2] = "CODE_SIZE"] = 2; + values[valuesById[3] = "LITE_RUNTIME"] = 3; + return values; + })(); - /** - * Creates a plain object from an ExtensionRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.ExtensionRange} message ExtensionRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExtensionRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - object.options = null; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ExtensionRangeOptions.toObject(message.options, options); - return object; - }; + return FileOptions; + })(); - /** - * Converts this ExtensionRange to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - * @returns {Object.} JSON object - */ - ExtensionRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + protobuf.MessageOptions = (function() { - return ExtensionRange; - })(); + /** + * Properties of a MessageOptions. + * @memberof google.protobuf + * @interface IMessageOptions + * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat + * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor + * @property {boolean|null} [deprecated] MessageOptions deprecated + * @property {boolean|null} [mapEntry] MessageOptions mapEntry + * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource + */ - DescriptorProto.ReservedRange = (function() { + /** + * Constructs a new MessageOptions. + * @memberof google.protobuf + * @classdesc Represents a MessageOptions. + * @implements IMessageOptions + * @constructor + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + */ + function MessageOptions(properties) { + this.uninterpretedOption = []; + 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]]; + } - /** - * Properties of a ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @interface IReservedRange - * @property {number|null} [start] ReservedRange start - * @property {number|null} [end] ReservedRange end - */ + /** + * MessageOptions messageSetWireFormat. + * @member {boolean} messageSetWireFormat + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.messageSetWireFormat = false; - /** - * Constructs a new ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents a ReservedRange. - * @implements IReservedRange - * @constructor - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - */ - function ReservedRange(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]]; - } + /** + * MessageOptions noStandardDescriptorAccessor. + * @member {boolean} noStandardDescriptorAccessor + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.noStandardDescriptorAccessor = false; - /** - * ReservedRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.start = 0; + /** + * MessageOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.deprecated = false; - /** - * ReservedRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.end = 0; + /** + * MessageOptions mapEntry. + * @member {boolean} mapEntry + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.mapEntry = false; - /** - * Creates a new ReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance - */ - ReservedRange.create = function create(properties) { - return new ReservedRange(properties); - }; + /** + * MessageOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype.uninterpretedOption = $util.emptyArray; - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; + /** + * MessageOptions .google.api.resource. + * @member {google.api.IResourceDescriptor|null|undefined} .google.api.resource + * @memberof google.protobuf.MessageOptions + * @instance + */ + MessageOptions.prototype[".google.api.resource"] = null; - /** - * Encodes the specified ReservedRange message, length delimited. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new MessageOptions instance using the specified properties. + * @function create + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @returns {google.protobuf.MessageOptions} MessageOptions instance + */ + MessageOptions.create = function create(properties) { + return new MessageOptions(properties); + }; - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.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.protobuf.DescriptorProto.ReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encode + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); + if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.resource"] != null && Object.hasOwnProperty.call(message, ".google.api.resource")) + $root.google.api.ResourceDescriptor.encode(message[".google.api.resource"], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); + return writer; + }; - /** - * Decodes a ReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Verifies a ReservedRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; + /** + * Decodes a MessageOptions message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.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.protobuf.MessageOptions(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.messageSetWireFormat = reader.bool(); + break; + case 2: + message.noStandardDescriptorAccessor = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 7: + message.mapEntry = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 1053: + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a ReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - */ - ReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.DescriptorProto.ReservedRange) - return object; - var message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; + /** + * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.MessageOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.MessageOptions} MessageOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MessageOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a ReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.ReservedRange} message ReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ReservedRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; + /** + * Verifies a MessageOptions message. + * @function verify + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MessageOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + if (typeof message.messageSetWireFormat !== "boolean") + return "messageSetWireFormat: boolean expected"; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + if (typeof message.noStandardDescriptorAccessor !== "boolean") + return "noStandardDescriptorAccessor: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + if (typeof message.mapEntry !== "boolean") + return "mapEntry: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) { + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resource"]); + if (error) + return ".google.api.resource." + error; + } + return null; + }; + + /** + * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.MessageOptions} MessageOptions + */ + MessageOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MessageOptions) return object; - }; + var message = new $root.google.protobuf.MessageOptions(); + if (object.messageSetWireFormat != null) + message.messageSetWireFormat = Boolean(object.messageSetWireFormat); + if (object.noStandardDescriptorAccessor != null) + message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.mapEntry != null) + message.mapEntry = Boolean(object.mapEntry); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } + } + if (object[".google.api.resource"] != null) { + if (typeof object[".google.api.resource"] !== "object") + throw TypeError(".google.protobuf.MessageOptions..google.api.resource: object expected"); + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resource"]); + } + return message; + }; - /** - * Converts this ReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - * @returns {Object.} JSON object - */ - ReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.MessageOptions + * @static + * @param {google.protobuf.MessageOptions} message MessageOptions + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MessageOptions.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) { + object.messageSetWireFormat = false; + object.noStandardDescriptorAccessor = false; + object.deprecated = false; + object.mapEntry = false; + object[".google.api.resource"] = null; + } + if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) + object.messageSetWireFormat = message.messageSetWireFormat; + if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) + object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) + object.mapEntry = message.mapEntry; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.resource"] != null && message.hasOwnProperty(".google.api.resource")) + object[".google.api.resource"] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resource"], options); + return object; + }; - return ReservedRange; - })(); + /** + * Converts this MessageOptions to JSON. + * @function toJSON + * @memberof google.protobuf.MessageOptions + * @instance + * @returns {Object.} JSON object + */ + MessageOptions.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return DescriptorProto; + return MessageOptions; })(); - protobuf.ExtensionRangeOptions = (function() { + protobuf.FieldOptions = (function() { /** - * Properties of an ExtensionRangeOptions. + * Properties of a FieldOptions. * @memberof google.protobuf - * @interface IExtensionRangeOptions - * @property {Array.|null} [uninterpretedOption] ExtensionRangeOptions uninterpretedOption + * @interface IFieldOptions + * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype + * @property {boolean|null} [packed] FieldOptions packed + * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype + * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [deprecated] FieldOptions deprecated + * @property {boolean|null} [weak] FieldOptions weak + * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption + * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference */ /** - * Constructs a new ExtensionRangeOptions. + * Constructs a new FieldOptions. * @memberof google.protobuf - * @classdesc Represents an ExtensionRangeOptions. - * @implements IExtensionRangeOptions + * @classdesc Represents a FieldOptions. + * @implements IFieldOptions * @constructor - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set */ - function ExtensionRangeOptions(properties) { + function FieldOptions(properties) { this.uninterpretedOption = []; + this[".google.api.fieldBehavior"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32772,79 +43655,194 @@ } /** - * ExtensionRangeOptions uninterpretedOption. + * FieldOptions ctype. + * @member {google.protobuf.FieldOptions.CType} ctype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.ctype = 0; + + /** + * FieldOptions packed. + * @member {boolean} packed + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.packed = false; + + /** + * FieldOptions jstype. + * @member {google.protobuf.FieldOptions.JSType} jstype + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.jstype = 0; + + /** + * FieldOptions lazy. + * @member {boolean} lazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.lazy = false; + + /** + * FieldOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.deprecated = false; + + /** + * FieldOptions weak. + * @member {boolean} weak + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.weak = false; + + /** + * FieldOptions uninterpretedOption. * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.FieldOptions * @instance */ - ExtensionRangeOptions.prototype.uninterpretedOption = $util.emptyArray; + FieldOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * Creates a new ExtensionRangeOptions instance using the specified properties. + * FieldOptions .google.api.fieldBehavior. + * @member {Array.} .google.api.fieldBehavior + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; + + /** + * FieldOptions .google.api.resourceReference. + * @member {google.api.IResourceReference|null|undefined} .google.api.resourceReference + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype[".google.api.resourceReference"] = null; + + /** + * Creates a new FieldOptions instance using the specified properties. * @function create - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.IExtensionRangeOptions=} [properties] Properties to set - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions instance + * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @returns {google.protobuf.FieldOptions} FieldOptions instance */ - ExtensionRangeOptions.create = function create(properties) { - return new ExtensionRangeOptions(properties); + FieldOptions.create = function create(properties) { + return new FieldOptions(properties); }; /** - * Encodes the specified ExtensionRangeOptions message. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRangeOptions.encode = function encode(message, writer) { + FieldOptions.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); + if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); + if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); + if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { + writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + writer.int32(message[".google.api.fieldBehavior"][i]); + writer.ldelim(); + } + if (message[".google.api.resourceReference"] != null && Object.hasOwnProperty.call(message, ".google.api.resourceReference")) + $root.google.api.ResourceReference.encode(message[".google.api.resourceReference"], writer.uint32(/* id 1055, wireType 2 =*/8442).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly {@link google.protobuf.ExtensionRangeOptions.verify|verify} messages. + * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.IExtensionRangeOptions} message ExtensionRangeOptions message or plain object to encode + * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExtensionRangeOptions.encodeDelimited = function encodeDelimited(message, writer) { + FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer. + * Decodes a FieldOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRangeOptions.decode = function decode(reader, length) { + FieldOptions.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.protobuf.ExtensionRangeOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.ctype = reader.int32(); + break; + case 2: + message.packed = reader.bool(); + break; + case 6: + message.jstype = reader.int32(); + break; + case 5: + message.lazy = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 10: + message.weak = reader.bool(); + break; case 999: if (!(message.uninterpretedOption && message.uninterpretedOption.length)) message.uninterpretedOption = []; message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; + case 1052: + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else + message[".google.api.fieldBehavior"].push(reader.int32()); + break; + case 1055: + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -32854,32 +43852,62 @@ }; /** - * Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited. + * Decodes a FieldOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.FieldOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @returns {google.protobuf.FieldOptions} FieldOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExtensionRangeOptions.decodeDelimited = function decodeDelimited(reader) { + FieldOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExtensionRangeOptions message. + * Verifies a FieldOptions message. * @function verify - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.FieldOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExtensionRangeOptions.verify = function verify(message) { + FieldOptions.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.ctype != null && message.hasOwnProperty("ctype")) + switch (message.ctype) { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.packed != null && message.hasOwnProperty("packed")) + if (typeof message.packed !== "boolean") + return "packed: boolean expected"; + if (message.jstype != null && message.hasOwnProperty("jstype")) + switch (message.jstype) { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.lazy != null && message.hasOwnProperty("lazy")) + if (typeof message.lazy !== "boolean") + return "lazy: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.weak != null && message.hasOwnProperty("weak")) + if (typeof message.weak !== "boolean") + return "weak: boolean expected"; if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { if (!Array.isArray(message.uninterpretedOption)) return "uninterpretedOption: array expected"; @@ -32889,99 +43917,257 @@ return "uninterpretedOption." + error; } } + if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { + if (!Array.isArray(message[".google.api.fieldBehavior"])) + return ".google.api.fieldBehavior: array expected"; + for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) + switch (message[".google.api.fieldBehavior"][i]) { + default: + return ".google.api.fieldBehavior: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) { + var error = $root.google.api.ResourceReference.verify(message[".google.api.resourceReference"]); + if (error) + return ".google.api.resourceReference." + error; + } return null; }; /** - * Creates an ExtensionRangeOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.FieldOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ExtensionRangeOptions} ExtensionRangeOptions + * @returns {google.protobuf.FieldOptions} FieldOptions */ - ExtensionRangeOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ExtensionRangeOptions) + FieldOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FieldOptions) return object; - var message = new $root.google.protobuf.ExtensionRangeOptions(); + var message = new $root.google.protobuf.FieldOptions(); + switch (object.ctype) { + case "STRING": + case 0: + message.ctype = 0; + break; + case "CORD": + case 1: + message.ctype = 1; + break; + case "STRING_PIECE": + case 2: + message.ctype = 2; + break; + } + if (object.packed != null) + message.packed = Boolean(object.packed); + switch (object.jstype) { + case "JS_NORMAL": + case 0: + message.jstype = 0; + break; + case "JS_STRING": + case 1: + message.jstype = 1; + break; + case "JS_NUMBER": + case 2: + message.jstype = 2; + break; + } + if (object.lazy != null) + message.lazy = Boolean(object.lazy); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.weak != null) + message.weak = Boolean(object.weak); if (object.uninterpretedOption) { if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); message.uninterpretedOption = []; for (var i = 0; i < object.uninterpretedOption.length; ++i) { if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } + if (object[".google.api.fieldBehavior"]) { + if (!Array.isArray(object[".google.api.fieldBehavior"])) + throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); + message[".google.api.fieldBehavior"] = []; + for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) + switch (object[".google.api.fieldBehavior"][i]) { + default: + case "FIELD_BEHAVIOR_UNSPECIFIED": + case 0: + message[".google.api.fieldBehavior"][i] = 0; + break; + case "OPTIONAL": + case 1: + message[".google.api.fieldBehavior"][i] = 1; + break; + case "REQUIRED": + case 2: + message[".google.api.fieldBehavior"][i] = 2; + break; + case "OUTPUT_ONLY": + case 3: + message[".google.api.fieldBehavior"][i] = 3; + break; + case "INPUT_ONLY": + case 4: + message[".google.api.fieldBehavior"][i] = 4; + break; + case "IMMUTABLE": + case 5: + message[".google.api.fieldBehavior"][i] = 5; + break; + case "UNORDERED_LIST": + case 6: + message[".google.api.fieldBehavior"][i] = 6; + break; + case "NON_EMPTY_DEFAULT": + case 7: + message[".google.api.fieldBehavior"][i] = 7; + break; + } + } + if (object[".google.api.resourceReference"] != null) { + if (typeof object[".google.api.resourceReference"] !== "object") + throw TypeError(".google.protobuf.FieldOptions..google.api.resourceReference: object expected"); + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.fromObject(object[".google.api.resourceReference"]); + } return message; }; /** - * Creates a plain object from an ExtensionRangeOptions message. Also converts values to other types if specified. + * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.FieldOptions * @static - * @param {google.protobuf.ExtensionRangeOptions} message ExtensionRangeOptions + * @param {google.protobuf.FieldOptions} message FieldOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExtensionRangeOptions.toObject = function toObject(message, options) { + FieldOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.uninterpretedOption = []; + object[".google.api.fieldBehavior"] = []; + } + if (options.defaults) { + object.ctype = options.enums === String ? "STRING" : 0; + object.packed = false; + object.deprecated = false; + object.lazy = false; + object.jstype = options.enums === String ? "JS_NORMAL" : 0; + object.weak = false; + object[".google.api.resourceReference"] = null; + } + if (message.ctype != null && message.hasOwnProperty("ctype")) + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + if (message.packed != null && message.hasOwnProperty("packed")) + object.packed = message.packed; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.lazy != null && message.hasOwnProperty("lazy")) + object.lazy = message.lazy; + if (message.jstype != null && message.hasOwnProperty("jstype")) + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + if (message.weak != null && message.hasOwnProperty("weak")) + object.weak = message.weak; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } + if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { + object[".google.api.fieldBehavior"] = []; + for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + } + if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) + object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); return object; }; /** - * Converts this ExtensionRangeOptions to JSON. + * Converts this FieldOptions to JSON. * @function toJSON - * @memberof google.protobuf.ExtensionRangeOptions + * @memberof google.protobuf.FieldOptions * @instance * @returns {Object.} JSON object */ - ExtensionRangeOptions.prototype.toJSON = function toJSON() { + FieldOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExtensionRangeOptions; + /** + * CType enum. + * @name google.protobuf.FieldOptions.CType + * @enum {number} + * @property {number} STRING=0 STRING value + * @property {number} CORD=1 CORD value + * @property {number} STRING_PIECE=2 STRING_PIECE value + */ + FieldOptions.CType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STRING"] = 0; + values[valuesById[1] = "CORD"] = 1; + values[valuesById[2] = "STRING_PIECE"] = 2; + return values; + })(); + + /** + * JSType enum. + * @name google.protobuf.FieldOptions.JSType + * @enum {number} + * @property {number} JS_NORMAL=0 JS_NORMAL value + * @property {number} JS_STRING=1 JS_STRING value + * @property {number} JS_NUMBER=2 JS_NUMBER value + */ + FieldOptions.JSType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "JS_NORMAL"] = 0; + values[valuesById[1] = "JS_STRING"] = 1; + values[valuesById[2] = "JS_NUMBER"] = 2; + return values; + })(); + + return FieldOptions; })(); - protobuf.FieldDescriptorProto = (function() { + protobuf.OneofOptions = (function() { /** - * Properties of a FieldDescriptorProto. + * Properties of an OneofOptions. * @memberof google.protobuf - * @interface IFieldDescriptorProto - * @property {string|null} [name] FieldDescriptorProto name - * @property {number|null} [number] FieldDescriptorProto number - * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label - * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type - * @property {string|null} [typeName] FieldDescriptorProto typeName - * @property {string|null} [extendee] FieldDescriptorProto extendee - * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue - * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex - * @property {string|null} [jsonName] FieldDescriptorProto jsonName - * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - * @property {boolean|null} [proto3Optional] FieldDescriptorProto proto3Optional + * @interface IOneofOptions + * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption */ /** - * Constructs a new FieldDescriptorProto. + * Constructs a new OneofOptions. * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto + * @classdesc Represents an OneofOptions. + * @implements IOneofOptions * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set */ - function FieldDescriptorProto(properties) { + function OneofOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -32989,576 +44175,209 @@ } /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.name = ""; - - /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.number = 0; - - /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.label = 1; - - /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type = 1; - - /** - * FieldDescriptorProto typeName. - * @member {string} typeName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.typeName = ""; - - /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.extendee = ""; - - /** - * FieldDescriptorProto defaultValue. - * @member {string} defaultValue - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.defaultValue = ""; - - /** - * FieldDescriptorProto oneofIndex. - * @member {number} oneofIndex - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.oneofIndex = 0; - - /** - * FieldDescriptorProto jsonName. - * @member {string} jsonName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.jsonName = ""; - - /** - * FieldDescriptorProto options. - * @member {google.protobuf.IFieldOptions|null|undefined} options - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.options = null; - - /** - * FieldDescriptorProto proto3Optional. - * @member {boolean} proto3Optional - * @memberof google.protobuf.FieldDescriptorProto + * OneofOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.OneofOptions * @instance */ - FieldDescriptorProto.prototype.proto3Optional = false; + OneofOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * Creates a new FieldDescriptorProto instance using the specified properties. + * Creates a new OneofOptions instance using the specified properties. * @function create - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance + * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @returns {google.protobuf.OneofOptions} OneofOptions instance */ - FieldDescriptorProto.create = function create(properties) { - return new FieldDescriptorProto(properties); + OneofOptions.create = function create(properties) { + return new OneofOptions(properties); }; /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.encode = function encode(message, writer) { + OneofOptions.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.extendee != null && Object.hasOwnProperty.call(message, "extendee")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && Object.hasOwnProperty.call(message, "typeName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && Object.hasOwnProperty.call(message, "oneofIndex")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && Object.hasOwnProperty.call(message, "jsonName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); - if (message.proto3Optional != null && Object.hasOwnProperty.call(message, "proto3Optional")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.proto3Optional); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified FieldDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. + * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode + * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. + * Decodes an OneofOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.OneofOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto + * @returns {google.protobuf.OneofOptions} OneofOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldDescriptorProto.decode = function decode(reader, length) { + OneofOptions.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.protobuf.FieldDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = reader.int32(); - break; - case 5: - message.type = reader.int32(); - break; - case 6: - message.typeName = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.defaultValue = reader.string(); - break; - case 9: - message.oneofIndex = reader.int32(); - break; - case 10: - message.jsonName = reader.string(); - break; - case 8: - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; - case 17: - message.proto3Optional = reader.bool(); + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FieldDescriptorProto message. - * @function verify - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldDescriptorProto.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.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - switch (message.label) { - default: - return "label: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - 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: - case 17: - case 18: - break; - } - if (message.typeName != null && message.hasOwnProperty("typeName")) - if (!$util.isString(message.typeName)) - return "typeName: string expected"; - if (message.extendee != null && message.hasOwnProperty("extendee")) - if (!$util.isString(message.extendee)) - return "extendee: string expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - if (!$util.isString(message.defaultValue)) - return "defaultValue: string expected"; - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - if (!$util.isInteger(message.oneofIndex)) - return "oneofIndex: integer expected"; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - if (!$util.isString(message.jsonName)) - return "jsonName: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FieldOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - if (typeof message.proto3Optional !== "boolean") - return "proto3Optional: boolean expected"; - return null; - }; - - /** - * Creates a FieldDescriptorProto message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - */ - FieldDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldDescriptorProto) - return object; - var message = new $root.google.protobuf.FieldDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - switch (object.label) { - case "LABEL_OPTIONAL": - case 1: - message.label = 1; - break; - case "LABEL_REQUIRED": - case 2: - message.label = 2; - break; - case "LABEL_REPEATED": - case 3: - message.label = 3; - break; - } - switch (object.type) { - case "TYPE_DOUBLE": - case 1: - message.type = 1; - break; - case "TYPE_FLOAT": - case 2: - message.type = 2; - break; - case "TYPE_INT64": - case 3: - message.type = 3; - break; - case "TYPE_UINT64": - case 4: - message.type = 4; - break; - case "TYPE_INT32": - case 5: - message.type = 5; - break; - case "TYPE_FIXED64": - case 6: - message.type = 6; - break; - case "TYPE_FIXED32": - case 7: - message.type = 7; - break; - case "TYPE_BOOL": - case 8: - message.type = 8; - break; - case "TYPE_STRING": - case 9: - message.type = 9; - break; - case "TYPE_GROUP": - case 10: - message.type = 10; - break; - case "TYPE_MESSAGE": - case 11: - message.type = 11; - break; - case "TYPE_BYTES": - case 12: - message.type = 12; - break; - case "TYPE_UINT32": - case 13: - message.type = 13; - break; - case "TYPE_ENUM": - case 14: - message.type = 14; - break; - case "TYPE_SFIXED32": - case 15: - message.type = 15; - break; - case "TYPE_SFIXED64": - case 16: - message.type = 16; - break; - case "TYPE_SINT32": - case 17: - message.type = 17; - break; - case "TYPE_SINT64": - case 18: - message.type = 18; - break; + break; + } } - if (object.typeName != null) - message.typeName = String(object.typeName); - if (object.extendee != null) - message.extendee = String(object.extendee); - if (object.defaultValue != null) - message.defaultValue = String(object.defaultValue); - if (object.oneofIndex != null) - message.oneofIndex = object.oneofIndex | 0; - if (object.jsonName != null) - message.jsonName = String(object.jsonName); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.FieldOptions.fromObject(object.options); + return message; + }; + + /** + * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.OneofOptions + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.OneofOptions} OneofOptions + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OneofOptions.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OneofOptions message. + * @function verify + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OneofOptions.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } + } + return null; + }; + + /** + * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.OneofOptions + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.OneofOptions} OneofOptions + */ + OneofOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.OneofOptions) + return object; + var message = new $root.google.protobuf.OneofOptions(); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } } - if (object.proto3Optional != null) - message.proto3Optional = Boolean(object.proto3Optional); return message; }; /** - * Creates a plain object from a FieldDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.OneofOptions * @static - * @param {google.protobuf.FieldDescriptorProto} message FieldDescriptorProto + * @param {google.protobuf.OneofOptions} message OneofOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldDescriptorProto.toObject = function toObject(message, options) { + OneofOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.extendee = ""; - object.number = 0; - object.label = options.enums === String ? "LABEL_OPTIONAL" : 1; - object.type = options.enums === String ? "TYPE_DOUBLE" : 1; - object.typeName = ""; - object.defaultValue = ""; - object.options = null; - object.oneofIndex = 0; - object.jsonName = ""; - object.proto3Optional = false; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.extendee != null && message.hasOwnProperty("extendee")) - object.extendee = message.extendee; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.label != null && message.hasOwnProperty("label")) - object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; - if (message.typeName != null && message.hasOwnProperty("typeName")) - object.typeName = message.typeName; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - object.defaultValue = message.defaultValue; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.FieldOptions.toObject(message.options, options); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - object.oneofIndex = message.oneofIndex; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - object.jsonName = message.jsonName; - if (message.proto3Optional != null && message.hasOwnProperty("proto3Optional")) - object.proto3Optional = message.proto3Optional; return object; }; /** - * Converts this FieldDescriptorProto to JSON. + * Converts this OneofOptions to JSON. * @function toJSON - * @memberof google.protobuf.FieldDescriptorProto + * @memberof google.protobuf.OneofOptions * @instance * @returns {Object.} JSON object */ - FieldDescriptorProto.prototype.toJSON = function toJSON() { + OneofOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Type enum. - * @name google.protobuf.FieldDescriptorProto.Type - * @enum {number} - * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value - * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value - * @property {number} TYPE_INT64=3 TYPE_INT64 value - * @property {number} TYPE_UINT64=4 TYPE_UINT64 value - * @property {number} TYPE_INT32=5 TYPE_INT32 value - * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value - * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value - * @property {number} TYPE_BOOL=8 TYPE_BOOL value - * @property {number} TYPE_STRING=9 TYPE_STRING value - * @property {number} TYPE_GROUP=10 TYPE_GROUP value - * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value - * @property {number} TYPE_BYTES=12 TYPE_BYTES value - * @property {number} TYPE_UINT32=13 TYPE_UINT32 value - * @property {number} TYPE_ENUM=14 TYPE_ENUM value - * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value - * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value - * @property {number} TYPE_SINT32=17 TYPE_SINT32 value - * @property {number} TYPE_SINT64=18 TYPE_SINT64 value - */ - FieldDescriptorProto.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "TYPE_DOUBLE"] = 1; - values[valuesById[2] = "TYPE_FLOAT"] = 2; - values[valuesById[3] = "TYPE_INT64"] = 3; - values[valuesById[4] = "TYPE_UINT64"] = 4; - values[valuesById[5] = "TYPE_INT32"] = 5; - values[valuesById[6] = "TYPE_FIXED64"] = 6; - values[valuesById[7] = "TYPE_FIXED32"] = 7; - values[valuesById[8] = "TYPE_BOOL"] = 8; - values[valuesById[9] = "TYPE_STRING"] = 9; - values[valuesById[10] = "TYPE_GROUP"] = 10; - values[valuesById[11] = "TYPE_MESSAGE"] = 11; - values[valuesById[12] = "TYPE_BYTES"] = 12; - values[valuesById[13] = "TYPE_UINT32"] = 13; - values[valuesById[14] = "TYPE_ENUM"] = 14; - values[valuesById[15] = "TYPE_SFIXED32"] = 15; - values[valuesById[16] = "TYPE_SFIXED64"] = 16; - values[valuesById[17] = "TYPE_SINT32"] = 17; - values[valuesById[18] = "TYPE_SINT64"] = 18; - return values; - })(); - - /** - * Label enum. - * @name google.protobuf.FieldDescriptorProto.Label - * @enum {number} - * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value - * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value - */ - FieldDescriptorProto.Label = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; - values[valuesById[3] = "LABEL_REPEATED"] = 3; - return values; - })(); - - return FieldDescriptorProto; + return OneofOptions; })(); - protobuf.OneofDescriptorProto = (function() { + protobuf.EnumOptions = (function() { /** - * Properties of an OneofDescriptorProto. + * Properties of an EnumOptions. * @memberof google.protobuf - * @interface IOneofDescriptorProto - * @property {string|null} [name] OneofDescriptorProto name - * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options + * @interface IEnumOptions + * @property {boolean|null} [allowAlias] EnumOptions allowAlias + * @property {boolean|null} [deprecated] EnumOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption */ /** - * Constructs a new OneofDescriptorProto. + * Constructs a new EnumOptions. * @memberof google.protobuf - * @classdesc Represents an OneofDescriptorProto. - * @implements IOneofDescriptorProto + * @classdesc Represents an EnumOptions. + * @implements IEnumOptions * @constructor - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set */ - function OneofDescriptorProto(properties) { + function EnumOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33566,88 +44385,104 @@ } /** - * OneofDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.OneofDescriptorProto + * EnumOptions allowAlias. + * @member {boolean} allowAlias + * @memberof google.protobuf.EnumOptions * @instance */ - OneofDescriptorProto.prototype.name = ""; + EnumOptions.prototype.allowAlias = false; /** - * OneofDescriptorProto options. - * @member {google.protobuf.IOneofOptions|null|undefined} options - * @memberof google.protobuf.OneofDescriptorProto + * EnumOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumOptions * @instance */ - OneofDescriptorProto.prototype.options = null; + EnumOptions.prototype.deprecated = false; /** - * Creates a new OneofDescriptorProto instance using the specified properties. + * EnumOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumOptions + * @instance + */ + EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + + /** + * Creates a new EnumOptions instance using the specified properties. * @function create - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance + * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumOptions} EnumOptions instance */ - OneofDescriptorProto.create = function create(properties) { - return new OneofDescriptorProto(properties); + EnumOptions.create = function create(properties) { + return new EnumOptions(properties); }; /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofDescriptorProto.encode = function encode(message, writer) { + EnumOptions.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.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified OneofDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. + * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode + * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. + * Decodes an EnumOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.EnumOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @returns {google.protobuf.EnumOptions} EnumOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofDescriptorProto.decode = function decode(reader, length) { + EnumOptions.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.protobuf.OneofDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; case 2: - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + message.allowAlias = reader.bool(); + break; + case 3: + message.deprecated = reader.bool(); + break; + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -33658,128 +44493,144 @@ }; /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EnumOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.EnumOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @returns {google.protobuf.EnumOptions} EnumOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + EnumOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OneofDescriptorProto message. + * Verifies an EnumOptions message. * @function verify - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.EnumOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OneofDescriptorProto.verify = function verify(message) { + EnumOptions.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.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.OneofOptions.verify(message.options); - if (error) - return "options." + error; + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + if (typeof message.allowAlias !== "boolean") + return "allowAlias: boolean expected"; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } } return null; }; /** - * Creates an OneofDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.EnumOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto + * @returns {google.protobuf.EnumOptions} EnumOptions */ - OneofDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofDescriptorProto) + EnumOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumOptions) return object; - var message = new $root.google.protobuf.OneofDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.OneofOptions.fromObject(object.options); + var message = new $root.google.protobuf.EnumOptions(); + if (object.allowAlias != null) + message.allowAlias = Boolean(object.allowAlias); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } } return message; }; /** - * Creates a plain object from an OneofDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.EnumOptions * @static - * @param {google.protobuf.OneofDescriptorProto} message OneofDescriptorProto + * @param {google.protobuf.EnumOptions} message EnumOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneofDescriptorProto.toObject = function toObject(message, options) { + EnumOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; if (options.defaults) { - object.name = ""; - object.options = null; + object.allowAlias = false; + object.deprecated = false; + } + if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) + object.allowAlias = message.allowAlias; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.OneofOptions.toObject(message.options, options); return object; }; /** - * Converts this OneofDescriptorProto to JSON. + * Converts this EnumOptions to JSON. * @function toJSON - * @memberof google.protobuf.OneofDescriptorProto + * @memberof google.protobuf.EnumOptions * @instance * @returns {Object.} JSON object */ - OneofDescriptorProto.prototype.toJSON = function toJSON() { + EnumOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OneofDescriptorProto; + return EnumOptions; })(); - protobuf.EnumDescriptorProto = (function() { + protobuf.EnumValueOptions = (function() { /** - * Properties of an EnumDescriptorProto. + * Properties of an EnumValueOptions. * @memberof google.protobuf - * @interface IEnumDescriptorProto - * @property {string|null} [name] EnumDescriptorProto name - * @property {Array.|null} [value] EnumDescriptorProto value - * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options - * @property {Array.|null} [reservedRange] EnumDescriptorProto reservedRange - * @property {Array.|null} [reservedName] EnumDescriptorProto reservedName + * @interface IEnumValueOptions + * @property {boolean|null} [deprecated] EnumValueOptions deprecated + * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption */ /** - * Constructs a new EnumDescriptorProto. + * Constructs a new EnumValueOptions. * @memberof google.protobuf - * @classdesc Represents an EnumDescriptorProto. - * @implements IEnumDescriptorProto + * @classdesc Represents an EnumValueOptions. + * @implements IEnumValueOptions * @constructor - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set */ - function EnumDescriptorProto(properties) { - this.value = []; - this.reservedRange = []; - this.reservedName = []; + function EnumValueOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -33787,136 +44638,91 @@ } /** - * EnumDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.name = ""; - - /** - * EnumDescriptorProto value. - * @member {Array.} value - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.value = $util.emptyArray; - - /** - * EnumDescriptorProto options. - * @member {google.protobuf.IEnumOptions|null|undefined} options - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.options = null; - - /** - * EnumDescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.EnumDescriptorProto + * EnumValueOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.EnumValueOptions * @instance */ - EnumDescriptorProto.prototype.reservedRange = $util.emptyArray; + EnumValueOptions.prototype.deprecated = false; /** - * EnumDescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.EnumDescriptorProto + * EnumValueOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.EnumValueOptions * @instance */ - EnumDescriptorProto.prototype.reservedName = $util.emptyArray; + EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * Creates a new EnumDescriptorProto instance using the specified properties. + * Creates a new EnumValueOptions instance using the specified properties. * @function create - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance + * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance */ - EnumDescriptorProto.create = function create(properties) { - return new EnumDescriptorProto(properties); + EnumValueOptions.create = function create(properties) { + return new EnumValueOptions(properties); }; /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encode = function encode(message, writer) { + EnumValueOptions.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.value != null && message.value.length) - for (var i = 0; i < message.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.reservedName[i]); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnumDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. + * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode + * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. + * Decodes an EnumValueOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decode = function decode(reader, length) { + EnumValueOptions.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.protobuf.EnumDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + message.deprecated = reader.bool(); break; - case 5: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -33927,405 +44733,137 @@ }; /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumDescriptorProto message. + * Verifies an EnumValueOptions message. * @function verify - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumDescriptorProto.verify = function verify(message) { + EnumValueOptions.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.value != null && message.hasOwnProperty("value")) { - if (!Array.isArray(message.value)) - return "value: array expected"; - for (var i = 0; i < message.value.length; ++i) { - var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); - if (error) - return "value." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(message.reservedRange[i]); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) - return "reservedRange." + error; + return "uninterpretedOption." + error; } } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; - } return null; }; /** - * Creates an EnumDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto + * @returns {google.protobuf.EnumValueOptions} EnumValueOptions */ - EnumDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto) + EnumValueOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.EnumValueOptions) return object; - var message = new $root.google.protobuf.EnumDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.value) { - if (!Array.isArray(object.value)) - throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); - message.value = []; - for (var i = 0; i < object.value.length; ++i) { - if (typeof object.value[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); - message.value[i] = $root.google.protobuf.EnumValueDescriptorProto.fromObject(object.value[i]); - } - } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumOptions.fromObject(object.options); - } - if (object.reservedRange) { - if (!Array.isArray(object.reservedRange)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); - message.reservedRange = []; - for (var i = 0; i < object.reservedRange.length; ++i) { - if (typeof object.reservedRange[i] !== "object") - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); - message.reservedRange[i] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(object.reservedRange[i]); + var message = new $root.google.protobuf.EnumValueOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } - if (object.reservedName) { - if (!Array.isArray(object.reservedName)) - throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); - message.reservedName = []; - for (var i = 0; i < object.reservedName.length; ++i) - message.reservedName[i] = String(object.reservedName[i]); - } return message; }; /** - * Creates a plain object from an EnumDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @static - * @param {google.protobuf.EnumDescriptorProto} message EnumDescriptorProto + * @param {google.protobuf.EnumValueOptions} message EnumValueOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumDescriptorProto.toObject = function toObject(message, options) { + EnumValueOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.value = []; - object.reservedRange = []; - object.reservedName = []; - } - if (options.defaults) { - object.name = ""; - object.options = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value && message.value.length) { - object.value = []; - for (var j = 0; j < message.value.length; ++j) - object.value[j] = $root.google.protobuf.EnumValueDescriptorProto.toObject(message.value[j], options); - } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumOptions.toObject(message.options, options); - if (message.reservedRange && message.reservedRange.length) { - object.reservedRange = []; - for (var j = 0; j < message.reservedRange.length; ++j) - object.reservedRange[j] = $root.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(message.reservedRange[j], options); - } - if (message.reservedName && message.reservedName.length) { - object.reservedName = []; - for (var j = 0; j < message.reservedName.length; ++j) - object.reservedName[j] = message.reservedName[j]; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; + if (options.defaults) + object.deprecated = false; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } return object; }; /** - * Converts this EnumDescriptorProto to JSON. + * Converts this EnumValueOptions to JSON. * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto + * @memberof google.protobuf.EnumValueOptions * @instance * @returns {Object.} JSON object */ - EnumDescriptorProto.prototype.toJSON = function toJSON() { + EnumValueOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - EnumDescriptorProto.EnumReservedRange = (function() { - - /** - * Properties of an EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @interface IEnumReservedRange - * @property {number|null} [start] EnumReservedRange start - * @property {number|null} [end] EnumReservedRange end - */ - - /** - * Constructs a new EnumReservedRange. - * @memberof google.protobuf.EnumDescriptorProto - * @classdesc Represents an EnumReservedRange. - * @implements IEnumReservedRange - * @constructor - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - */ - function EnumReservedRange(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]]; - } - - /** - * EnumReservedRange start. - * @member {number} start - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.start = 0; - - /** - * EnumReservedRange end. - * @member {number} end - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - */ - EnumReservedRange.prototype.end = 0; - - /** - * Creates a new EnumReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange instance - */ - EnumReservedRange.create = function create(properties) { - return new EnumReservedRange(properties); - }; - - /** - * Encodes the specified EnumReservedRange message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Encodes the specified EnumReservedRange message, length delimited. Does not implicitly {@link google.protobuf.EnumDescriptorProto.EnumReservedRange.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.IEnumReservedRange} message EnumReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumReservedRange.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.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.protobuf.EnumDescriptorProto.EnumReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EnumReservedRange message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumReservedRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EnumReservedRange message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - /** - * Creates an EnumReservedRange message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.EnumDescriptorProto.EnumReservedRange} EnumReservedRange - */ - EnumReservedRange.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumDescriptorProto.EnumReservedRange) - return object; - var message = new $root.google.protobuf.EnumDescriptorProto.EnumReservedRange(); - if (object.start != null) - message.start = object.start | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; - - /** - * Creates a plain object from an EnumReservedRange message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @static - * @param {google.protobuf.EnumDescriptorProto.EnumReservedRange} message EnumReservedRange - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EnumReservedRange.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.start = 0; - object.end = 0; - } - if (message.start != null && message.hasOwnProperty("start")) - object.start = message.start; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - return object; - }; - - /** - * Converts this EnumReservedRange to JSON. - * @function toJSON - * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange - * @instance - * @returns {Object.} JSON object - */ - EnumReservedRange.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EnumReservedRange; - })(); - - return EnumDescriptorProto; + return EnumValueOptions; })(); - protobuf.EnumValueDescriptorProto = (function() { + protobuf.ServiceOptions = (function() { /** - * Properties of an EnumValueDescriptorProto. + * Properties of a ServiceOptions. * @memberof google.protobuf - * @interface IEnumValueDescriptorProto - * @property {string|null} [name] EnumValueDescriptorProto name - * @property {number|null} [number] EnumValueDescriptorProto number - * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options + * @interface IServiceOptions + * @property {boolean|null} [deprecated] ServiceOptions deprecated + * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption + * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost + * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes */ /** - * Constructs a new EnumValueDescriptorProto. + * Constructs a new ServiceOptions. * @memberof google.protobuf - * @classdesc Represents an EnumValueDescriptorProto. - * @implements IEnumValueDescriptorProto + * @classdesc Represents a ServiceOptions. + * @implements IServiceOptions * @constructor - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set */ - function EnumValueDescriptorProto(properties) { + function ServiceOptions(properties) { + this.uninterpretedOption = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34333,101 +44871,117 @@ } /** - * EnumValueDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumValueDescriptorProto + * ServiceOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.ServiceOptions * @instance */ - EnumValueDescriptorProto.prototype.name = ""; + ServiceOptions.prototype.deprecated = false; /** - * EnumValueDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.EnumValueDescriptorProto + * ServiceOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.ServiceOptions * @instance */ - EnumValueDescriptorProto.prototype.number = 0; + ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * EnumValueDescriptorProto options. - * @member {google.protobuf.IEnumValueOptions|null|undefined} options - * @memberof google.protobuf.EnumValueDescriptorProto + * ServiceOptions .google.api.defaultHost. + * @member {string} .google.api.defaultHost + * @memberof google.protobuf.ServiceOptions * @instance */ - EnumValueDescriptorProto.prototype.options = null; + ServiceOptions.prototype[".google.api.defaultHost"] = ""; /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. + * ServiceOptions .google.api.oauthScopes. + * @member {string} .google.api.oauthScopes + * @memberof google.protobuf.ServiceOptions + * @instance + */ + ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + + /** + * Creates a new ServiceOptions instance using the specified properties. * @function create - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance + * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @returns {google.protobuf.ServiceOptions} ServiceOptions instance */ - EnumValueDescriptorProto.create = function create(properties) { - return new EnumValueDescriptorProto(properties); + ServiceOptions.create = function create(properties) { + return new ServiceOptions(properties); }; /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueDescriptorProto.encode = function encode(message, writer) { + ServiceOptions.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.number != null && Object.hasOwnProperty.call(message, "number")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) + writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); + if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) + writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); return writer; }; /** - * Encodes the specified EnumValueDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. + * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode + * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. + * Decodes a ServiceOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.ServiceOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {google.protobuf.ServiceOptions} ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueDescriptorProto.decode = function decode(reader, length) { + ServiceOptions.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.protobuf.EnumValueDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); + case 33: + message.deprecated = reader.bool(); break; - case 2: - message.number = reader.int32(); + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); break; - case 3: - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + case 1049: + message[".google.api.defaultHost"] = reader.string(); + break; + case 1050: + message[".google.api.oauthScopes"] = reader.string(); break; default: reader.skipType(tag & 7); @@ -34438,132 +44992,156 @@ }; /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.ServiceOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {google.protobuf.ServiceOptions} ServiceOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + ServiceOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumValueDescriptorProto message. + * Verifies a ServiceOptions message. * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.ServiceOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumValueDescriptorProto.verify = function verify(message) { + ServiceOptions.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.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumValueOptions.verify(message.options); - if (error) - return "options." + error; + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (error) + return "uninterpretedOption." + error; + } } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + if (!$util.isString(message[".google.api.defaultHost"])) + return ".google.api.defaultHost: string expected"; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + if (!$util.isString(message[".google.api.oauthScopes"])) + return ".google.api.oauthScopes: string expected"; return null; }; /** - * Creates an EnumValueDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.ServiceOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto + * @returns {google.protobuf.ServiceOptions} ServiceOptions */ - EnumValueDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueDescriptorProto) + ServiceOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.ServiceOptions) return object; - var message = new $root.google.protobuf.EnumValueDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.number != null) - message.number = object.number | 0; - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.EnumValueOptions.fromObject(object.options); + var message = new $root.google.protobuf.ServiceOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + } } + if (object[".google.api.defaultHost"] != null) + message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); + if (object[".google.api.oauthScopes"] != null) + message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); return message; }; /** - * Creates a plain object from an EnumValueDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.ServiceOptions * @static - * @param {google.protobuf.EnumValueDescriptorProto} message EnumValueDescriptorProto + * @param {google.protobuf.ServiceOptions} message ServiceOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueDescriptorProto.toObject = function toObject(message, options) { + ServiceOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.uninterpretedOption = []; if (options.defaults) { - object.name = ""; - object.number = 0; - object.options = null; + object.deprecated = false; + object[".google.api.defaultHost"] = ""; + object[".google.api.oauthScopes"] = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.number != null && message.hasOwnProperty("number")) - object.number = message.number; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.EnumValueOptions.toObject(message.options, options); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + } + if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) + object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; + if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) + object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; return object; }; /** - * Converts this EnumValueDescriptorProto to JSON. + * Converts this ServiceOptions to JSON. * @function toJSON - * @memberof google.protobuf.EnumValueDescriptorProto + * @memberof google.protobuf.ServiceOptions * @instance * @returns {Object.} JSON object */ - EnumValueDescriptorProto.prototype.toJSON = function toJSON() { + ServiceOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumValueDescriptorProto; + return ServiceOptions; })(); - protobuf.ServiceDescriptorProto = (function() { + protobuf.MethodOptions = (function() { /** - * Properties of a ServiceDescriptorProto. + * Properties of a MethodOptions. * @memberof google.protobuf - * @interface IServiceDescriptorProto - * @property {string|null} [name] ServiceDescriptorProto name - * @property {Array.|null} [method] ServiceDescriptorProto method - * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options + * @interface IMethodOptions + * @property {boolean|null} [deprecated] MethodOptions deprecated + * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel + * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption + * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http + * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature */ /** - * Constructs a new ServiceDescriptorProto. + * Constructs a new MethodOptions. * @memberof google.protobuf - * @classdesc Represents a ServiceDescriptorProto. - * @implements IServiceDescriptorProto + * @classdesc Represents a MethodOptions. + * @implements IMethodOptions * @constructor - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set */ - function ServiceDescriptorProto(properties) { - this.method = []; + function MethodOptions(properties) { + this.uninterpretedOption = []; + this[".google.api.methodSignature"] = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34571,104 +45149,133 @@ } /** - * ServiceDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.ServiceDescriptorProto + * MethodOptions deprecated. + * @member {boolean} deprecated + * @memberof google.protobuf.MethodOptions * @instance */ - ServiceDescriptorProto.prototype.name = ""; + MethodOptions.prototype.deprecated = false; /** - * ServiceDescriptorProto method. - * @member {Array.} method - * @memberof google.protobuf.ServiceDescriptorProto + * MethodOptions idempotencyLevel. + * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel + * @memberof google.protobuf.MethodOptions * @instance */ - ServiceDescriptorProto.prototype.method = $util.emptyArray; + MethodOptions.prototype.idempotencyLevel = 0; /** - * ServiceDescriptorProto options. - * @member {google.protobuf.IServiceOptions|null|undefined} options - * @memberof google.protobuf.ServiceDescriptorProto + * MethodOptions uninterpretedOption. + * @member {Array.} uninterpretedOption + * @memberof google.protobuf.MethodOptions * @instance */ - ServiceDescriptorProto.prototype.options = null; + MethodOptions.prototype.uninterpretedOption = $util.emptyArray; /** - * Creates a new ServiceDescriptorProto instance using the specified properties. + * MethodOptions .google.api.http. + * @member {google.api.IHttpRule|null|undefined} .google.api.http + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.http"] = null; + + /** + * MethodOptions .google.api.methodSignature. + * @member {Array.} .google.api.methodSignature + * @memberof google.protobuf.MethodOptions + * @instance + */ + MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + + /** + * Creates a new MethodOptions instance using the specified properties. * @function create - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance + * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @returns {google.protobuf.MethodOptions} MethodOptions instance */ - ServiceDescriptorProto.create = function create(properties) { - return new ServiceDescriptorProto(properties); + MethodOptions.create = function create(properties) { + return new MethodOptions(properties); }; /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encode = function encode(message, writer) { + MethodOptions.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.method != null && message.method.length) - for (var i = 0; i < message.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) + writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); + if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) + writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); + if (message.uninterpretedOption != null && message.uninterpretedOption.length) + for (var i = 0; i < message.uninterpretedOption.length; ++i) + $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); + if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) + $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); return writer; }; /** - * Encodes the specified ServiceDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. + * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode + * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. + * Decodes a MethodOptions message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.MethodOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.MethodOptions} MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decode = function decode(reader, length) { + MethodOptions.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.protobuf.ServiceDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); + case 33: + message.deprecated = reader.bool(); break; - case 2: - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + case 34: + message.idempotencyLevel = reader.int32(); break; - case 3: - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + case 999: + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + case 72295728: + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + case 1051: + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); break; default: reader.skipType(tag & 7); @@ -34679,152 +45286,217 @@ }; /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes a MethodOptions message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.MethodOptions * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.MethodOptions} MethodOptions * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + MethodOptions.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceDescriptorProto message. + * Verifies a MethodOptions message. * @function verify - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceDescriptorProto.verify = function verify(message) { + MethodOptions.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.method != null && message.hasOwnProperty("method")) { - if (!Array.isArray(message.method)) - return "method: array expected"; - for (var i = 0; i < message.method.length; ++i) { - var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + if (typeof message.deprecated !== "boolean") + return "deprecated: boolean expected"; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + switch (message.idempotencyLevel) { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { + if (!Array.isArray(message.uninterpretedOption)) + return "uninterpretedOption: array expected"; + for (var i = 0; i < message.uninterpretedOption.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); if (error) - return "method." + error; + return "uninterpretedOption." + error; } } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ServiceOptions.verify(message.options); + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { + var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); if (error) - return "options." + error; + return ".google.api.http." + error; + } + if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { + if (!Array.isArray(message[".google.api.methodSignature"])) + return ".google.api.methodSignature: array expected"; + for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) + if (!$util.isString(message[".google.api.methodSignature"][i])) + return ".google.api.methodSignature: string[] expected"; } return null; }; /** - * Creates a ServiceDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.MethodOptions * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto + * @returns {google.protobuf.MethodOptions} MethodOptions */ - ServiceDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceDescriptorProto) + MethodOptions.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.MethodOptions) return object; - var message = new $root.google.protobuf.ServiceDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.method) { - if (!Array.isArray(object.method)) - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); - message.method = []; - for (var i = 0; i < object.method.length; ++i) { - if (typeof object.method[i] !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); - message.method[i] = $root.google.protobuf.MethodDescriptorProto.fromObject(object.method[i]); + var message = new $root.google.protobuf.MethodOptions(); + if (object.deprecated != null) + message.deprecated = Boolean(object.deprecated); + switch (object.idempotencyLevel) { + case "IDEMPOTENCY_UNKNOWN": + case 0: + message.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + message.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + message.idempotencyLevel = 2; + break; + } + if (object.uninterpretedOption) { + if (!Array.isArray(object.uninterpretedOption)) + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + message.uninterpretedOption = []; + for (var i = 0; i < object.uninterpretedOption.length; ++i) { + if (typeof object.uninterpretedOption[i] !== "object") + throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); } } - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.ServiceOptions.fromObject(object.options); + if (object[".google.api.http"] != null) { + if (typeof object[".google.api.http"] !== "object") + throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); + message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); + } + if (object[".google.api.methodSignature"]) { + if (!Array.isArray(object[".google.api.methodSignature"])) + throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); + message[".google.api.methodSignature"] = []; + for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) + message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); } return message; }; /** - * Creates a plain object from a ServiceDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.MethodOptions * @static - * @param {google.protobuf.ServiceDescriptorProto} message ServiceDescriptorProto + * @param {google.protobuf.MethodOptions} message MethodOptions * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceDescriptorProto.toObject = function toObject(message, options) { + MethodOptions.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.method = []; + if (options.arrays || options.defaults) { + object.uninterpretedOption = []; + object[".google.api.methodSignature"] = []; + } if (options.defaults) { - object.name = ""; - object.options = null; + object.deprecated = false; + object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; + object[".google.api.http"] = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.method && message.method.length) { - object.method = []; - for (var j = 0; j < message.method.length; ++j) - object.method[j] = $root.google.protobuf.MethodDescriptorProto.toObject(message.method[j], options); + if (message.deprecated != null && message.hasOwnProperty("deprecated")) + object.deprecated = message.deprecated; + if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + if (message.uninterpretedOption && message.uninterpretedOption.length) { + object.uninterpretedOption = []; + for (var j = 0; j < message.uninterpretedOption.length; ++j) + object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); } - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.ServiceOptions.toObject(message.options, options); + if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { + object[".google.api.methodSignature"] = []; + for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) + object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; + } + if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) + object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); return object; }; /** - * Converts this ServiceDescriptorProto to JSON. + * Converts this MethodOptions to JSON. * @function toJSON - * @memberof google.protobuf.ServiceDescriptorProto + * @memberof google.protobuf.MethodOptions * @instance * @returns {Object.} JSON object */ - ServiceDescriptorProto.prototype.toJSON = function toJSON() { + MethodOptions.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServiceDescriptorProto; + /** + * IdempotencyLevel enum. + * @name google.protobuf.MethodOptions.IdempotencyLevel + * @enum {number} + * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value + * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value + * @property {number} IDEMPOTENT=2 IDEMPOTENT value + */ + MethodOptions.IdempotencyLevel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; + values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; + values[valuesById[2] = "IDEMPOTENT"] = 2; + return values; + })(); + + return MethodOptions; })(); - protobuf.MethodDescriptorProto = (function() { + protobuf.UninterpretedOption = (function() { /** - * Properties of a MethodDescriptorProto. + * Properties of an UninterpretedOption. * @memberof google.protobuf - * @interface IMethodDescriptorProto - * @property {string|null} [name] MethodDescriptorProto name - * @property {string|null} [inputType] MethodDescriptorProto inputType - * @property {string|null} [outputType] MethodDescriptorProto outputType - * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options - * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming - * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming + * @interface IUninterpretedOption + * @property {Array.|null} [name] UninterpretedOption name + * @property {string|null} [identifierValue] UninterpretedOption identifierValue + * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue + * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue + * @property {number|null} [doubleValue] UninterpretedOption doubleValue + * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue + * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue */ /** - * Constructs a new MethodDescriptorProto. + * Constructs a new UninterpretedOption. * @memberof google.protobuf - * @classdesc Represents a MethodDescriptorProto. - * @implements IMethodDescriptorProto + * @classdesc Represents an UninterpretedOption. + * @implements IUninterpretedOption * @constructor - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set */ - function MethodDescriptorProto(properties) { + function UninterpretedOption(properties) { + this.name = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -34832,140 +45504,156 @@ } /** - * MethodDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.MethodDescriptorProto + * UninterpretedOption name. + * @member {Array.} name + * @memberof google.protobuf.UninterpretedOption + * @instance + */ + UninterpretedOption.prototype.name = $util.emptyArray; + + /** + * UninterpretedOption identifierValue. + * @member {string} identifierValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - MethodDescriptorProto.prototype.name = ""; + UninterpretedOption.prototype.identifierValue = ""; /** - * MethodDescriptorProto inputType. - * @member {string} inputType - * @memberof google.protobuf.MethodDescriptorProto + * UninterpretedOption positiveIntValue. + * @member {number|Long} positiveIntValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - MethodDescriptorProto.prototype.inputType = ""; + UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * MethodDescriptorProto outputType. - * @member {string} outputType - * @memberof google.protobuf.MethodDescriptorProto + * UninterpretedOption negativeIntValue. + * @member {number|Long} negativeIntValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - MethodDescriptorProto.prototype.outputType = ""; + UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * MethodDescriptorProto options. - * @member {google.protobuf.IMethodOptions|null|undefined} options - * @memberof google.protobuf.MethodDescriptorProto + * UninterpretedOption doubleValue. + * @member {number} doubleValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - MethodDescriptorProto.prototype.options = null; + UninterpretedOption.prototype.doubleValue = 0; /** - * MethodDescriptorProto clientStreaming. - * @member {boolean} clientStreaming - * @memberof google.protobuf.MethodDescriptorProto + * UninterpretedOption stringValue. + * @member {Uint8Array} stringValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - MethodDescriptorProto.prototype.clientStreaming = false; + UninterpretedOption.prototype.stringValue = $util.newBuffer([]); /** - * MethodDescriptorProto serverStreaming. - * @member {boolean} serverStreaming - * @memberof google.protobuf.MethodDescriptorProto + * UninterpretedOption aggregateValue. + * @member {string} aggregateValue + * @memberof google.protobuf.UninterpretedOption * @instance */ - MethodDescriptorProto.prototype.serverStreaming = false; + UninterpretedOption.prototype.aggregateValue = ""; /** - * Creates a new MethodDescriptorProto instance using the specified properties. + * Creates a new UninterpretedOption instance using the specified properties. * @function create - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance + * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance */ - MethodDescriptorProto.create = function create(properties) { - return new MethodDescriptorProto(properties); + UninterpretedOption.create = function create(properties) { + return new UninterpretedOption(properties); }; /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. * @function encode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encode = function encode(message, writer) { + UninterpretedOption.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.inputType != null && Object.hasOwnProperty.call(message, "inputType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && Object.hasOwnProperty.call(message, "outputType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); - if (message.options != null && Object.hasOwnProperty.call(message, "options")) - $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && Object.hasOwnProperty.call(message, "clientStreaming")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && Object.hasOwnProperty.call(message, "serverStreaming")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); + if (message.name != null && message.name.length) + for (var i = 0; i < message.name.length; ++i) + $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); + if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) + writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); + if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); + if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); return writer; }; /** - * Encodes the specified MethodDescriptorProto message, length delimited. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. + * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode + * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodDescriptorProto.encodeDelimited = function encodeDelimited(message, writer) { + UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. + * Decodes an UninterpretedOption message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.UninterpretedOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decode = function decode(reader, length) { + UninterpretedOption.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.protobuf.MethodDescriptorProto(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; case 2: - message.inputType = reader.string(); + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); break; case 3: - message.outputType = reader.string(); + message.identifierValue = reader.string(); break; case 4: - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + message.positiveIntValue = reader.uint64(); break; case 5: - message.clientStreaming = reader.bool(); + message.negativeIntValue = reader.int64(); break; case 6: - message.serverStreaming = reader.bool(); + message.doubleValue = reader.double(); + break; + case 7: + message.stringValue = reader.bytes(); + break; + case 8: + message.aggregateValue = reader.string(); break; default: reader.skipType(tag & 7); @@ -34976,174 +45664,422 @@ }; /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer, length delimited. + * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.UninterpretedOption * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodDescriptorProto.decodeDelimited = function decodeDelimited(reader) { + UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MethodDescriptorProto message. + * Verifies an UninterpretedOption message. * @function verify - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.UninterpretedOption * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MethodDescriptorProto.verify = function verify(message) { + UninterpretedOption.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.inputType != null && message.hasOwnProperty("inputType")) - if (!$util.isString(message.inputType)) - return "inputType: string expected"; - if (message.outputType != null && message.hasOwnProperty("outputType")) - if (!$util.isString(message.outputType)) - return "outputType: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MethodOptions.verify(message.options); - if (error) - return "options." + error; + if (message.name != null && message.hasOwnProperty("name")) { + if (!Array.isArray(message.name)) + return "name: array expected"; + for (var i = 0; i < message.name.length; ++i) { + var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); + if (error) + return "name." + error; + } } - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - if (typeof message.clientStreaming !== "boolean") - return "clientStreaming: boolean expected"; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - if (typeof message.serverStreaming !== "boolean") - return "serverStreaming: boolean expected"; + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + if (!$util.isString(message.identifierValue)) + return "identifierValue: string expected"; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) + return "positiveIntValue: integer|Long expected"; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) + return "negativeIntValue: integer|Long expected"; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) + return "stringValue: buffer expected"; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + if (!$util.isString(message.aggregateValue)) + return "aggregateValue: string expected"; return null; }; /** - * Creates a MethodDescriptorProto message from a plain object. Also converts values to their respective internal types. + * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.UninterpretedOption * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto + * @returns {google.protobuf.UninterpretedOption} UninterpretedOption */ - MethodDescriptorProto.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodDescriptorProto) + UninterpretedOption.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption) return object; - var message = new $root.google.protobuf.MethodDescriptorProto(); - if (object.name != null) - message.name = String(object.name); - if (object.inputType != null) - message.inputType = String(object.inputType); - if (object.outputType != null) - message.outputType = String(object.outputType); - if (object.options != null) { - if (typeof object.options !== "object") - throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); - message.options = $root.google.protobuf.MethodOptions.fromObject(object.options); + var message = new $root.google.protobuf.UninterpretedOption(); + if (object.name) { + if (!Array.isArray(object.name)) + throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + message.name = []; + for (var i = 0; i < object.name.length; ++i) { + if (typeof object.name[i] !== "object") + throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); + } } - if (object.clientStreaming != null) - message.clientStreaming = Boolean(object.clientStreaming); - if (object.serverStreaming != null) - message.serverStreaming = Boolean(object.serverStreaming); + if (object.identifierValue != null) + message.identifierValue = String(object.identifierValue); + if (object.positiveIntValue != null) + if ($util.Long) + (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; + else if (typeof object.positiveIntValue === "string") + message.positiveIntValue = parseInt(object.positiveIntValue, 10); + else if (typeof object.positiveIntValue === "number") + message.positiveIntValue = object.positiveIntValue; + else if (typeof object.positiveIntValue === "object") + message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); + if (object.negativeIntValue != null) + if ($util.Long) + (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; + else if (typeof object.negativeIntValue === "string") + message.negativeIntValue = parseInt(object.negativeIntValue, 10); + else if (typeof object.negativeIntValue === "number") + message.negativeIntValue = object.negativeIntValue; + else if (typeof object.negativeIntValue === "object") + message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.stringValue != null) + if (typeof object.stringValue === "string") + $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); + else if (object.stringValue.length) + message.stringValue = object.stringValue; + if (object.aggregateValue != null) + message.aggregateValue = String(object.aggregateValue); return message; }; /** - * Creates a plain object from a MethodDescriptorProto message. Also converts values to other types if specified. + * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MethodDescriptorProto + * @memberof google.protobuf.UninterpretedOption * @static - * @param {google.protobuf.MethodDescriptorProto} message MethodDescriptorProto + * @param {google.protobuf.UninterpretedOption} message UninterpretedOption * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MethodDescriptorProto.toObject = function toObject(message, options) { + UninterpretedOption.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.name = []; if (options.defaults) { - object.name = ""; - object.inputType = ""; - object.outputType = ""; - object.options = null; - object.clientStreaming = false; - object.serverStreaming = false; + object.identifierValue = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.positiveIntValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.negativeIntValue = options.longs === String ? "0" : 0; + object.doubleValue = 0; + if (options.bytes === String) + object.stringValue = ""; + else { + object.stringValue = []; + if (options.bytes !== Array) + object.stringValue = $util.newBuffer(object.stringValue); + } + object.aggregateValue = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.inputType != null && message.hasOwnProperty("inputType")) - object.inputType = message.inputType; - if (message.outputType != null && message.hasOwnProperty("outputType")) - object.outputType = message.outputType; - if (message.options != null && message.hasOwnProperty("options")) - object.options = $root.google.protobuf.MethodOptions.toObject(message.options, options); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - object.clientStreaming = message.clientStreaming; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - object.serverStreaming = message.serverStreaming; + if (message.name && message.name.length) { + object.name = []; + for (var j = 0; j < message.name.length; ++j) + object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); + } + if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) + object.identifierValue = message.identifierValue; + if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) + if (typeof message.positiveIntValue === "number") + object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; + else + object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; + if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) + if (typeof message.negativeIntValue === "number") + object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; + else + object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) + object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; + if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) + object.aggregateValue = message.aggregateValue; return object; }; - /** - * Converts this MethodDescriptorProto to JSON. - * @function toJSON - * @memberof google.protobuf.MethodDescriptorProto - * @instance - * @returns {Object.} JSON object - */ - MethodDescriptorProto.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this UninterpretedOption to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption + * @instance + * @returns {Object.} JSON object + */ + UninterpretedOption.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + UninterpretedOption.NamePart = (function() { + + /** + * Properties of a NamePart. + * @memberof google.protobuf.UninterpretedOption + * @interface INamePart + * @property {string} namePart NamePart namePart + * @property {boolean} isExtension NamePart isExtension + */ + + /** + * Constructs a new NamePart. + * @memberof google.protobuf.UninterpretedOption + * @classdesc Represents a NamePart. + * @implements INamePart + * @constructor + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + */ + function NamePart(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]]; + } + + /** + * NamePart namePart. + * @member {string} namePart + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.namePart = ""; + + /** + * NamePart isExtension. + * @member {boolean} isExtension + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + */ + NamePart.prototype.isExtension = false; + + /** + * Creates a new NamePart instance using the specified properties. + * @function create + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance + */ + NamePart.create = function create(properties) { + return new NamePart(properties); + }; + + /** + * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); + return writer; + }; + + /** + * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NamePart.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NamePart message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.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.protobuf.UninterpretedOption.NamePart(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namePart = reader.string(); + break; + case 2: + message.isExtension = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + if (!message.hasOwnProperty("namePart")) + throw $util.ProtocolError("missing required 'namePart'", { instance: message }); + if (!message.hasOwnProperty("isExtension")) + throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); + return message; + }; + + /** + * Decodes a NamePart message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NamePart.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NamePart message. + * @function verify + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NamePart.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (!$util.isString(message.namePart)) + return "namePart: string expected"; + if (typeof message.isExtension !== "boolean") + return "isExtension: boolean expected"; + return null; + }; + + /** + * Creates a NamePart message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart + */ + NamePart.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) + return object; + var message = new $root.google.protobuf.UninterpretedOption.NamePart(); + if (object.namePart != null) + message.namePart = String(object.namePart); + if (object.isExtension != null) + message.isExtension = Boolean(object.isExtension); + return message; + }; + + /** + * Creates a plain object from a NamePart message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NamePart.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.namePart = ""; + object.isExtension = false; + } + if (message.namePart != null && message.hasOwnProperty("namePart")) + object.namePart = message.namePart; + if (message.isExtension != null && message.hasOwnProperty("isExtension")) + object.isExtension = message.isExtension; + return object; + }; + + /** + * Converts this NamePart to JSON. + * @function toJSON + * @memberof google.protobuf.UninterpretedOption.NamePart + * @instance + * @returns {Object.} JSON object + */ + NamePart.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return MethodDescriptorProto; + return NamePart; + })(); + + return UninterpretedOption; })(); - protobuf.FileOptions = (function() { + protobuf.SourceCodeInfo = (function() { /** - * Properties of a FileOptions. + * Properties of a SourceCodeInfo. * @memberof google.protobuf - * @interface IFileOptions - * @property {string|null} [javaPackage] FileOptions javaPackage - * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname - * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles - * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash - * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 - * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor - * @property {string|null} [goPackage] FileOptions goPackage - * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices - * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices - * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices - * @property {boolean|null} [phpGenericServices] FileOptions phpGenericServices - * @property {boolean|null} [deprecated] FileOptions deprecated - * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas - * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix - * @property {string|null} [csharpNamespace] FileOptions csharpNamespace - * @property {string|null} [swiftPrefix] FileOptions swiftPrefix - * @property {string|null} [phpClassPrefix] FileOptions phpClassPrefix - * @property {string|null} [phpNamespace] FileOptions phpNamespace - * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace - * @property {string|null} [rubyPackage] FileOptions rubyPackage - * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption + * @interface ISourceCodeInfo + * @property {Array.|null} [location] SourceCodeInfo location */ /** - * Constructs a new FileOptions. + * Constructs a new SourceCodeInfo. * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions + * @classdesc Represents a SourceCodeInfo. + * @implements ISourceCodeInfo * @constructor - * @param {google.protobuf.IFileOptions=} [properties] Properties to set + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set */ - function FileOptions(properties) { - this.uninterpretedOption = []; + function SourceCodeInfo(properties) { + this.location = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35151,667 +46087,549 @@ } /** - * FileOptions javaPackage. - * @member {string} javaPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaPackage = ""; - - /** - * FileOptions javaOuterClassname. - * @member {string} javaOuterClassname - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaOuterClassname = ""; - - /** - * FileOptions javaMultipleFiles. - * @member {boolean} javaMultipleFiles - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaMultipleFiles = false; - - /** - * FileOptions javaGenerateEqualsAndHash. - * @member {boolean} javaGenerateEqualsAndHash - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenerateEqualsAndHash = false; - - /** - * FileOptions javaStringCheckUtf8. - * @member {boolean} javaStringCheckUtf8 - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaStringCheckUtf8 = false; - - /** - * FileOptions optimizeFor. - * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.optimizeFor = 1; - - /** - * FileOptions goPackage. - * @member {string} goPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.goPackage = ""; - - /** - * FileOptions ccGenericServices. - * @member {boolean} ccGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccGenericServices = false; - - /** - * FileOptions javaGenericServices. - * @member {boolean} javaGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenericServices = false; - - /** - * FileOptions pyGenericServices. - * @member {boolean} pyGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.pyGenericServices = false; - - /** - * FileOptions phpGenericServices. - * @member {boolean} phpGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpGenericServices = false; - - /** - * FileOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.deprecated = false; - - /** - * FileOptions ccEnableArenas. - * @member {boolean} ccEnableArenas - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccEnableArenas = true; - - /** - * FileOptions objcClassPrefix. - * @member {string} objcClassPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.objcClassPrefix = ""; - - /** - * FileOptions csharpNamespace. - * @member {string} csharpNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.csharpNamespace = ""; - - /** - * FileOptions swiftPrefix. - * @member {string} swiftPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.swiftPrefix = ""; - - /** - * FileOptions phpClassPrefix. - * @member {string} phpClassPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpClassPrefix = ""; - - /** - * FileOptions phpNamespace. - * @member {string} phpNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpNamespace = ""; - - /** - * FileOptions phpMetadataNamespace. - * @member {string} phpMetadataNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.phpMetadataNamespace = ""; - - /** - * FileOptions rubyPackage. - * @member {string} rubyPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.rubyPackage = ""; - - /** - * FileOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FileOptions + * SourceCodeInfo location. + * @member {Array.} location + * @memberof google.protobuf.SourceCodeInfo * @instance */ - FileOptions.prototype.uninterpretedOption = $util.emptyArray; + SourceCodeInfo.prototype.location = $util.emptyArray; /** - * Creates a new FileOptions instance using the specified properties. + * Creates a new SourceCodeInfo instance using the specified properties. * @function create - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - * @returns {google.protobuf.FileOptions} FileOptions instance + * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance */ - FileOptions.create = function create(properties) { - return new FileOptions(properties); + SourceCodeInfo.create = function create(properties) { + return new SourceCodeInfo(properties); }; /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. * @function encode - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileOptions.encode = function encode(message, writer) { + SourceCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.javaPackage != null && Object.hasOwnProperty.call(message, "javaPackage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && Object.hasOwnProperty.call(message, "javaOuterClassname")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && Object.hasOwnProperty.call(message, "optimizeFor")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && Object.hasOwnProperty.call(message, "javaMultipleFiles")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && Object.hasOwnProperty.call(message, "goPackage")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && Object.hasOwnProperty.call(message, "ccGenericServices")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && Object.hasOwnProperty.call(message, "javaGenericServices")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && Object.hasOwnProperty.call(message, "pyGenericServices")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && Object.hasOwnProperty.call(message, "javaGenerateEqualsAndHash")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && Object.hasOwnProperty.call(message, "javaStringCheckUtf8")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && Object.hasOwnProperty.call(message, "ccEnableArenas")) - writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && Object.hasOwnProperty.call(message, "objcClassPrefix")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && Object.hasOwnProperty.call(message, "csharpNamespace")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.swiftPrefix != null && Object.hasOwnProperty.call(message, "swiftPrefix")) - writer.uint32(/* id 39, wireType 2 =*/314).string(message.swiftPrefix); - if (message.phpClassPrefix != null && Object.hasOwnProperty.call(message, "phpClassPrefix")) - writer.uint32(/* id 40, wireType 2 =*/322).string(message.phpClassPrefix); - if (message.phpNamespace != null && Object.hasOwnProperty.call(message, "phpNamespace")) - writer.uint32(/* id 41, wireType 2 =*/330).string(message.phpNamespace); - if (message.phpGenericServices != null && Object.hasOwnProperty.call(message, "phpGenericServices")) - writer.uint32(/* id 42, wireType 0 =*/336).bool(message.phpGenericServices); - if (message.phpMetadataNamespace != null && Object.hasOwnProperty.call(message, "phpMetadataNamespace")) - writer.uint32(/* id 44, wireType 2 =*/354).string(message.phpMetadataNamespace); - if (message.rubyPackage != null && Object.hasOwnProperty.call(message, "rubyPackage")) - writer.uint32(/* id 45, wireType 2 =*/362).string(message.rubyPackage); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.location != null && message.location.length) + for (var i = 0; i < message.location.length; ++i) + $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FileOptions message, length delimited. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. + * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode + * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FileOptions.encodeDelimited = function encodeDelimited(message, writer) { + SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FileOptions message from the specified reader or buffer. + * Decodes a SourceCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.SourceCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FileOptions.decode = function decode(reader, length) { + SourceCodeInfo.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.protobuf.FileOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.javaPackage = reader.string(); - break; - case 8: - message.javaOuterClassname = reader.string(); - break; - case 10: - message.javaMultipleFiles = reader.bool(); - break; - case 20: - message.javaGenerateEqualsAndHash = reader.bool(); - break; - case 27: - message.javaStringCheckUtf8 = reader.bool(); - break; - case 9: - message.optimizeFor = reader.int32(); - break; - case 11: - message.goPackage = reader.string(); - break; - case 16: - message.ccGenericServices = reader.bool(); - break; - case 17: - message.javaGenericServices = reader.bool(); - break; - case 18: - message.pyGenericServices = reader.bool(); - break; - case 42: - message.phpGenericServices = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.ccEnableArenas = reader.bool(); - break; - case 36: - message.objcClassPrefix = reader.string(); - break; - case 37: - message.csharpNamespace = reader.string(); - break; - case 39: - message.swiftPrefix = reader.string(); - break; - case 40: - message.phpClassPrefix = reader.string(); - break; - case 41: - message.phpNamespace = reader.string(); - break; - case 44: - message.phpMetadataNamespace = reader.string(); - break; - case 45: - message.rubyPackage = reader.string(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FileOptions message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.FileOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FileOptions message. - * @function verify - * @memberof google.protobuf.FileOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - if (!$util.isString(message.javaPackage)) - return "javaPackage: string expected"; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - if (!$util.isString(message.javaOuterClassname)) - return "javaOuterClassname: string expected"; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - if (typeof message.javaMultipleFiles !== "boolean") - return "javaMultipleFiles: boolean expected"; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - if (typeof message.javaGenerateEqualsAndHash !== "boolean") - return "javaGenerateEqualsAndHash: boolean expected"; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - if (typeof message.javaStringCheckUtf8 !== "boolean") - return "javaStringCheckUtf8: boolean expected"; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - switch (message.optimizeFor) { - default: - return "optimizeFor: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - if (!$util.isString(message.goPackage)) - return "goPackage: string expected"; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - if (typeof message.ccGenericServices !== "boolean") - return "ccGenericServices: boolean expected"; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - if (typeof message.javaGenericServices !== "boolean") - return "javaGenericServices: boolean expected"; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - if (typeof message.pyGenericServices !== "boolean") - return "pyGenericServices: boolean expected"; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - if (typeof message.phpGenericServices !== "boolean") - return "phpGenericServices: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - if (typeof message.ccEnableArenas !== "boolean") - return "ccEnableArenas: boolean expected"; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - if (!$util.isString(message.objcClassPrefix)) - return "objcClassPrefix: string expected"; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - if (!$util.isString(message.csharpNamespace)) - return "csharpNamespace: string expected"; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - if (!$util.isString(message.swiftPrefix)) - return "swiftPrefix: string expected"; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - if (!$util.isString(message.phpClassPrefix)) - return "phpClassPrefix: string expected"; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - if (!$util.isString(message.phpNamespace)) - return "phpNamespace: string expected"; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - if (!$util.isString(message.phpMetadataNamespace)) - return "phpMetadataNamespace: string expected"; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - if (!$util.isString(message.rubyPackage)) - return "rubyPackage: string expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SourceCodeInfo message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SourceCodeInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.location != null && message.hasOwnProperty("location")) { + if (!Array.isArray(message.location)) + return "location: array expected"; + for (var i = 0; i < message.location.length; ++i) { + var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); if (error) - return "uninterpretedOption." + error; + return "location." + error; } } return null; }; /** - * Creates a FileOptions message from a plain object. Also converts values to their respective internal types. + * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.SourceCodeInfo * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FileOptions} FileOptions + * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo */ - FileOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FileOptions) + SourceCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo) return object; - var message = new $root.google.protobuf.FileOptions(); - if (object.javaPackage != null) - message.javaPackage = String(object.javaPackage); - if (object.javaOuterClassname != null) - message.javaOuterClassname = String(object.javaOuterClassname); - if (object.javaMultipleFiles != null) - message.javaMultipleFiles = Boolean(object.javaMultipleFiles); - if (object.javaGenerateEqualsAndHash != null) - message.javaGenerateEqualsAndHash = Boolean(object.javaGenerateEqualsAndHash); - if (object.javaStringCheckUtf8 != null) - message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); - switch (object.optimizeFor) { - case "SPEED": - case 1: - message.optimizeFor = 1; - break; - case "CODE_SIZE": - case 2: - message.optimizeFor = 2; - break; - case "LITE_RUNTIME": - case 3: - message.optimizeFor = 3; - break; - } - if (object.goPackage != null) - message.goPackage = String(object.goPackage); - if (object.ccGenericServices != null) - message.ccGenericServices = Boolean(object.ccGenericServices); - if (object.javaGenericServices != null) - message.javaGenericServices = Boolean(object.javaGenericServices); - if (object.pyGenericServices != null) - message.pyGenericServices = Boolean(object.pyGenericServices); - if (object.phpGenericServices != null) - message.phpGenericServices = Boolean(object.phpGenericServices); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.ccEnableArenas != null) - message.ccEnableArenas = Boolean(object.ccEnableArenas); - if (object.objcClassPrefix != null) - message.objcClassPrefix = String(object.objcClassPrefix); - if (object.csharpNamespace != null) - message.csharpNamespace = String(object.csharpNamespace); - if (object.swiftPrefix != null) - message.swiftPrefix = String(object.swiftPrefix); - if (object.phpClassPrefix != null) - message.phpClassPrefix = String(object.phpClassPrefix); - if (object.phpNamespace != null) - message.phpNamespace = String(object.phpNamespace); - if (object.phpMetadataNamespace != null) - message.phpMetadataNamespace = String(object.phpMetadataNamespace); - if (object.rubyPackage != null) - message.rubyPackage = String(object.rubyPackage); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + var message = new $root.google.protobuf.SourceCodeInfo(); + if (object.location) { + if (!Array.isArray(object.location)) + throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + message.location = []; + for (var i = 0; i < object.location.length; ++i) { + if (typeof object.location[i] !== "object") + throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); } } return message; }; /** - * Creates a plain object from a FileOptions message. Also converts values to other types if specified. + * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FileOptions + * @memberof google.protobuf.SourceCodeInfo * @static - * @param {google.protobuf.FileOptions} message FileOptions + * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FileOptions.toObject = function toObject(message, options) { + SourceCodeInfo.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.javaPackage = ""; - object.javaOuterClassname = ""; - object.optimizeFor = options.enums === String ? "SPEED" : 1; - object.javaMultipleFiles = false; - object.goPackage = ""; - object.ccGenericServices = false; - object.javaGenericServices = false; - object.pyGenericServices = false; - object.javaGenerateEqualsAndHash = false; - object.deprecated = false; - object.javaStringCheckUtf8 = false; - object.ccEnableArenas = true; - object.objcClassPrefix = ""; - object.csharpNamespace = ""; - object.swiftPrefix = ""; - object.phpClassPrefix = ""; - object.phpNamespace = ""; - object.phpGenericServices = false; - object.phpMetadataNamespace = ""; - object.rubyPackage = ""; - } - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - object.javaPackage = message.javaPackage; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - object.javaOuterClassname = message.javaOuterClassname; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - object.javaMultipleFiles = message.javaMultipleFiles; - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - object.goPackage = message.goPackage; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - object.ccGenericServices = message.ccGenericServices; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - object.javaGenericServices = message.javaGenericServices; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - object.pyGenericServices = message.pyGenericServices; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - object.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - object.javaStringCheckUtf8 = message.javaStringCheckUtf8; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - object.ccEnableArenas = message.ccEnableArenas; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - object.objcClassPrefix = message.objcClassPrefix; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - object.csharpNamespace = message.csharpNamespace; - if (message.swiftPrefix != null && message.hasOwnProperty("swiftPrefix")) - object.swiftPrefix = message.swiftPrefix; - if (message.phpClassPrefix != null && message.hasOwnProperty("phpClassPrefix")) - object.phpClassPrefix = message.phpClassPrefix; - if (message.phpNamespace != null && message.hasOwnProperty("phpNamespace")) - object.phpNamespace = message.phpNamespace; - if (message.phpGenericServices != null && message.hasOwnProperty("phpGenericServices")) - object.phpGenericServices = message.phpGenericServices; - if (message.phpMetadataNamespace != null && message.hasOwnProperty("phpMetadataNamespace")) - object.phpMetadataNamespace = message.phpMetadataNamespace; - if (message.rubyPackage != null && message.hasOwnProperty("rubyPackage")) - object.rubyPackage = message.rubyPackage; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + object.location = []; + if (message.location && message.location.length) { + object.location = []; + for (var j = 0; j < message.location.length; ++j) + object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); } return object; }; - /** - * Converts this FileOptions to JSON. - * @function toJSON - * @memberof google.protobuf.FileOptions - * @instance - * @returns {Object.} JSON object - */ - FileOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this SourceCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo + * @instance + * @returns {Object.} JSON object + */ + SourceCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + SourceCodeInfo.Location = (function() { + + /** + * Properties of a Location. + * @memberof google.protobuf.SourceCodeInfo + * @interface ILocation + * @property {Array.|null} [path] Location path + * @property {Array.|null} [span] Location span + * @property {string|null} [leadingComments] Location leadingComments + * @property {string|null} [trailingComments] Location trailingComments + * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments + */ + + /** + * Constructs a new Location. + * @memberof google.protobuf.SourceCodeInfo + * @classdesc Represents a Location. + * @implements ILocation + * @constructor + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + */ + function Location(properties) { + this.path = []; + this.span = []; + this.leadingDetachedComments = []; + 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]]; + } + + /** + * Location path. + * @member {Array.} path + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.path = $util.emptyArray; + + /** + * Location span. + * @member {Array.} span + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.span = $util.emptyArray; + + /** + * Location leadingComments. + * @member {string} leadingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingComments = ""; + + /** + * Location trailingComments. + * @member {string} trailingComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.trailingComments = ""; + + /** + * Location leadingDetachedComments. + * @member {Array.} leadingDetachedComments + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + */ + Location.prototype.leadingDetachedComments = $util.emptyArray; + + /** + * Creates a new Location instance using the specified properties. + * @function create + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set + * @returns {google.protobuf.SourceCodeInfo.Location} Location instance + */ + Location.create = function create(properties) { + return new Location(properties); + }; + + /** + * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.span != null && message.span.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.span.length; ++i) + writer.int32(message.span[i]); + writer.ldelim(); + } + if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); + if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); + if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); + return writer; + }; + + /** + * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Location.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Location message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.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.protobuf.SourceCodeInfo.Location(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else + message.span.push(reader.int32()); + break; + case 3: + message.leadingComments = reader.string(); + break; + case 4: + message.trailingComments = reader.string(); + break; + case 6: + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Location message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.SourceCodeInfo.Location} Location + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Location.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Location message. + * @function verify + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Location.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.span != null && message.hasOwnProperty("span")) { + if (!Array.isArray(message.span)) + return "span: array expected"; + for (var i = 0; i < message.span.length; ++i) + if (!$util.isInteger(message.span[i])) + return "span: integer[] expected"; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + if (!$util.isString(message.leadingComments)) + return "leadingComments: string expected"; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + if (!$util.isString(message.trailingComments)) + return "trailingComments: string expected"; + if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { + if (!Array.isArray(message.leadingDetachedComments)) + return "leadingDetachedComments: array expected"; + for (var i = 0; i < message.leadingDetachedComments.length; ++i) + if (!$util.isString(message.leadingDetachedComments[i])) + return "leadingDetachedComments: string[] expected"; + } + return null; + }; + + /** + * Creates a Location message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.SourceCodeInfo.Location} Location + */ + Location.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) + return object; + var message = new $root.google.protobuf.SourceCodeInfo.Location(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; + } + if (object.span) { + if (!Array.isArray(object.span)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + message.span = []; + for (var i = 0; i < object.span.length; ++i) + message.span[i] = object.span[i] | 0; + } + if (object.leadingComments != null) + message.leadingComments = String(object.leadingComments); + if (object.trailingComments != null) + message.trailingComments = String(object.trailingComments); + if (object.leadingDetachedComments) { + if (!Array.isArray(object.leadingDetachedComments)) + throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + message.leadingDetachedComments = []; + for (var i = 0; i < object.leadingDetachedComments.length; ++i) + message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); + } + return message; + }; + + /** + * Creates a plain object from a Location message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {google.protobuf.SourceCodeInfo.Location} message Location + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Location.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.path = []; + object.span = []; + object.leadingDetachedComments = []; + } + if (options.defaults) { + object.leadingComments = ""; + object.trailingComments = ""; + } + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.span && message.span.length) { + object.span = []; + for (var j = 0; j < message.span.length; ++j) + object.span[j] = message.span[j]; + } + if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) + object.leadingComments = message.leadingComments; + if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) + object.trailingComments = message.trailingComments; + if (message.leadingDetachedComments && message.leadingDetachedComments.length) { + object.leadingDetachedComments = []; + for (var j = 0; j < message.leadingDetachedComments.length; ++j) + object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; + } + return object; + }; + + /** + * Converts this Location to JSON. + * @function toJSON + * @memberof google.protobuf.SourceCodeInfo.Location + * @instance + * @returns {Object.} JSON object + */ + Location.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * OptimizeMode enum. - * @name google.protobuf.FileOptions.OptimizeMode - * @enum {number} - * @property {number} SPEED=1 SPEED value - * @property {number} CODE_SIZE=2 CODE_SIZE value - * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value - */ - FileOptions.OptimizeMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "SPEED"] = 1; - values[valuesById[2] = "CODE_SIZE"] = 2; - values[valuesById[3] = "LITE_RUNTIME"] = 3; - return values; + return Location; })(); - return FileOptions; + return SourceCodeInfo; })(); - protobuf.MessageOptions = (function() { + protobuf.GeneratedCodeInfo = (function() { /** - * Properties of a MessageOptions. + * Properties of a GeneratedCodeInfo. * @memberof google.protobuf - * @interface IMessageOptions - * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat - * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor - * @property {boolean|null} [deprecated] MessageOptions deprecated - * @property {boolean|null} [mapEntry] MessageOptions mapEntry - * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption + * @interface IGeneratedCodeInfo + * @property {Array.|null} [annotation] GeneratedCodeInfo annotation */ /** - * Constructs a new MessageOptions. + * Constructs a new GeneratedCodeInfo. * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions + * @classdesc Represents a GeneratedCodeInfo. + * @implements IGeneratedCodeInfo * @constructor - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set */ - function MessageOptions(properties) { - this.uninterpretedOption = []; + function GeneratedCodeInfo(properties) { + this.annotation = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -35819,130 +46637,78 @@ } /** - * MessageOptions messageSetWireFormat. - * @member {boolean} messageSetWireFormat - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.messageSetWireFormat = false; - - /** - * MessageOptions noStandardDescriptorAccessor. - * @member {boolean} noStandardDescriptorAccessor - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.noStandardDescriptorAccessor = false; - - /** - * MessageOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecated = false; - - /** - * MessageOptions mapEntry. - * @member {boolean} mapEntry - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.mapEntry = false; - - /** - * MessageOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MessageOptions + * GeneratedCodeInfo annotation. + * @member {Array.} annotation + * @memberof google.protobuf.GeneratedCodeInfo * @instance */ - MessageOptions.prototype.uninterpretedOption = $util.emptyArray; + GeneratedCodeInfo.prototype.annotation = $util.emptyArray; /** - * Creates a new MessageOptions instance using the specified properties. + * Creates a new GeneratedCodeInfo instance using the specified properties. * @function create - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - * @returns {google.protobuf.MessageOptions} MessageOptions instance + * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance */ - MessageOptions.create = function create(properties) { - return new MessageOptions(properties); + GeneratedCodeInfo.create = function create(properties) { + return new GeneratedCodeInfo(properties); }; /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encode - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageOptions.encode = function encode(message, writer) { + GeneratedCodeInfo.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.messageSetWireFormat != null && Object.hasOwnProperty.call(message, "messageSetWireFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && Object.hasOwnProperty.call(message, "noStandardDescriptorAccessor")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.annotation != null && message.annotation.length) + for (var i = 0; i < message.annotation.length; ++i) + $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified MessageOptions message, length delimited. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. + * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode + * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MessageOptions.encodeDelimited = function encodeDelimited(message, writer) { + GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MessageOptions message from the specified reader or buffer. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.decode = function decode(reader, length) { + GeneratedCodeInfo.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.protobuf.MessageOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.messageSetWireFormat = reader.bool(); - break; - case 2: - message.noStandardDescriptorAccessor = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.mapEntry = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -35953,167 +46719,402 @@ }; /** - * Decodes a MessageOptions message from the specified reader or buffer, length delimited. + * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MessageOptions} MessageOptions + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MessageOptions.decodeDelimited = function decodeDelimited(reader) { + GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MessageOptions message. + * Verifies a GeneratedCodeInfo message. * @function verify - * @memberof google.protobuf.MessageOptions + * @memberof google.protobuf.GeneratedCodeInfo * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MessageOptions.verify = function verify(message) { + GeneratedCodeInfo.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - if (typeof message.messageSetWireFormat !== "boolean") - return "messageSetWireFormat: boolean expected"; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - if (typeof message.noStandardDescriptorAccessor !== "boolean") - return "noStandardDescriptorAccessor: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - if (typeof message.mapEntry !== "boolean") - return "mapEntry: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); + if (message.annotation != null && message.hasOwnProperty("annotation")) { + if (!Array.isArray(message.annotation)) + return "annotation: array expected"; + for (var i = 0; i < message.annotation.length; ++i) { + var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); if (error) - return "uninterpretedOption." + error; + return "annotation." + error; + } + } + return null; + }; + + /** + * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + */ + GeneratedCodeInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo(); + if (object.annotation) { + if (!Array.isArray(object.annotation)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + message.annotation = []; + for (var i = 0; i < object.annotation.length; ++i) { + if (typeof object.annotation[i] !== "object") + throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GeneratedCodeInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.annotation = []; + if (message.annotation && message.annotation.length) { + object.annotation = []; + for (var j = 0; j < message.annotation.length; ++j) + object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); + } + return object; + }; + + /** + * Converts this GeneratedCodeInfo to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo + * @instance + * @returns {Object.} JSON object + */ + GeneratedCodeInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + GeneratedCodeInfo.Annotation = (function() { + + /** + * Properties of an Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @interface IAnnotation + * @property {Array.|null} [path] Annotation path + * @property {string|null} [sourceFile] Annotation sourceFile + * @property {number|null} [begin] Annotation begin + * @property {number|null} [end] Annotation end + */ + + /** + * Constructs a new Annotation. + * @memberof google.protobuf.GeneratedCodeInfo + * @classdesc Represents an Annotation. + * @implements IAnnotation + * @constructor + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + */ + function Annotation(properties) { + this.path = []; + 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]]; + } + + /** + * Annotation path. + * @member {Array.} path + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.path = $util.emptyArray; + + /** + * Annotation sourceFile. + * @member {string} sourceFile + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.sourceFile = ""; + + /** + * Annotation begin. + * @member {number} begin + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.begin = 0; + + /** + * Annotation end. + * @member {number} end + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.end = 0; + + /** + * Creates a new Annotation instance using the specified properties. + * @function create + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance + */ + Annotation.create = function create(properties) { + return new Annotation(properties); + }; + + /** + * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.path != null && message.path.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.path.length; ++i) + writer.int32(message.path[i]); + writer.ldelim(); + } + if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); + if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); + if (message.end != null && Object.hasOwnProperty.call(message, "end")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + return writer; + }; + + /** + * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Annotation.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Annotation message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.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.protobuf.GeneratedCodeInfo.Annotation(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else + message.path.push(reader.int32()); + break; + case 2: + message.sourceFile = reader.string(); + break; + case 3: + message.begin = reader.int32(); + break; + case 4: + message.end = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Annotation message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Annotation.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Annotation message. + * @function verify + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Annotation.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.path != null && message.hasOwnProperty("path")) { + if (!Array.isArray(message.path)) + return "path: array expected"; + for (var i = 0; i < message.path.length; ++i) + if (!$util.isInteger(message.path[i])) + return "path: integer[] expected"; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + if (!$util.isString(message.sourceFile)) + return "sourceFile: string expected"; + if (message.begin != null && message.hasOwnProperty("begin")) + if (!$util.isInteger(message.begin)) + return "begin: integer expected"; + if (message.end != null && message.hasOwnProperty("end")) + if (!$util.isInteger(message.end)) + return "end: integer expected"; + return null; + }; + + /** + * Creates an Annotation message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation + */ + Annotation.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) + return object; + var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); + if (object.path) { + if (!Array.isArray(object.path)) + throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + message.path = []; + for (var i = 0; i < object.path.length; ++i) + message.path[i] = object.path[i] | 0; } - } - return null; - }; + if (object.sourceFile != null) + message.sourceFile = String(object.sourceFile); + if (object.begin != null) + message.begin = object.begin | 0; + if (object.end != null) + message.end = object.end | 0; + return message; + }; - /** - * Creates a MessageOptions message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.MessageOptions - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.MessageOptions} MessageOptions - */ - MessageOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MessageOptions) - return object; - var message = new $root.google.protobuf.MessageOptions(); - if (object.messageSetWireFormat != null) - message.messageSetWireFormat = Boolean(object.messageSetWireFormat); - if (object.noStandardDescriptorAccessor != null) - message.noStandardDescriptorAccessor = Boolean(object.noStandardDescriptorAccessor); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.mapEntry != null) - message.mapEntry = Boolean(object.mapEntry); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); + /** + * Creates a plain object from an Annotation message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Annotation.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.path = []; + if (options.defaults) { + object.sourceFile = ""; + object.begin = 0; + object.end = 0; } - } - return message; - }; + if (message.path && message.path.length) { + object.path = []; + for (var j = 0; j < message.path.length; ++j) + object.path[j] = message.path[j]; + } + if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) + object.sourceFile = message.sourceFile; + if (message.begin != null && message.hasOwnProperty("begin")) + object.begin = message.begin; + if (message.end != null && message.hasOwnProperty("end")) + object.end = message.end; + return object; + }; - /** - * Creates a plain object from a MessageOptions message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.MessageOptions} message MessageOptions - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MessageOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.messageSetWireFormat = false; - object.noStandardDescriptorAccessor = false; - object.deprecated = false; - object.mapEntry = false; - } - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - object.messageSetWireFormat = message.messageSetWireFormat; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - object.noStandardDescriptorAccessor = message.noStandardDescriptorAccessor; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - object.mapEntry = message.mapEntry; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - return object; - }; + /** + * Converts this Annotation to JSON. + * @function toJSON + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + * @returns {Object.} JSON object + */ + Annotation.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this MessageOptions to JSON. - * @function toJSON - * @memberof google.protobuf.MessageOptions - * @instance - * @returns {Object.} JSON object - */ - MessageOptions.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return Annotation; + })(); - return MessageOptions; + return GeneratedCodeInfo; })(); - protobuf.FieldOptions = (function() { + protobuf.Empty = (function() { /** - * Properties of a FieldOptions. + * Properties of an Empty. * @memberof google.protobuf - * @interface IFieldOptions - * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype - * @property {boolean|null} [packed] FieldOptions packed - * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype - * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [deprecated] FieldOptions deprecated - * @property {boolean|null} [weak] FieldOptions weak - * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption - * @property {Array.|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior + * @interface IEmpty */ /** - * Constructs a new FieldOptions. + * Constructs a new Empty. * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions + * @classdesc Represents an Empty. + * @implements IEmpty * @constructor - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set + * @param {google.protobuf.IEmpty=} [properties] Properties to set */ - function FieldOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.fieldBehavior"] = []; + function Empty(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36121,181 +47122,63 @@ } /** - * FieldOptions ctype. - * @member {google.protobuf.FieldOptions.CType} ctype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.ctype = 0; - - /** - * FieldOptions packed. - * @member {boolean} packed - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.packed = false; - - /** - * FieldOptions jstype. - * @member {google.protobuf.FieldOptions.JSType} jstype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.jstype = 0; - - /** - * FieldOptions lazy. - * @member {boolean} lazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.lazy = false; - - /** - * FieldOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.deprecated = false; - - /** - * FieldOptions weak. - * @member {boolean} weak - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.weak = false; - - /** - * FieldOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * FieldOptions .google.api.fieldBehavior. - * @member {Array.} .google.api.fieldBehavior - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype[".google.api.fieldBehavior"] = $util.emptyArray; - - /** - * Creates a new FieldOptions instance using the specified properties. + * Creates a new Empty instance using the specified properties. * @function create - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.Empty * @static - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions} FieldOptions instance + * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @returns {google.protobuf.Empty} Empty instance */ - FieldOptions.create = function create(properties) { - return new FieldOptions(properties); + Empty.create = function create(properties) { + return new Empty(properties); }; /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. * @function encode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.Empty * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encode = function encode(message, writer) { + Empty.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ctype != null && Object.hasOwnProperty.call(message, "ctype")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && Object.hasOwnProperty.call(message, "packed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && Object.hasOwnProperty.call(message, "lazy")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && Object.hasOwnProperty.call(message, "jstype")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.fieldBehavior"] != null && message[".google.api.fieldBehavior"].length) { - writer.uint32(/* id 1052, wireType 2 =*/8418).fork(); - for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) - writer.int32(message[".google.api.fieldBehavior"][i]); - writer.ldelim(); - } return writer; }; /** - * Encodes the specified FieldOptions message, length delimited. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. + * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.Empty * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode + * @param {google.protobuf.IEmpty} message Empty message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FieldOptions.encodeDelimited = function encodeDelimited(message, writer) { + Empty.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FieldOptions message from the specified reader or buffer. + * Decodes an Empty message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.Empty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.Empty} Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.decode = function decode(reader, length) { + Empty.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.protobuf.FieldOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.ctype = reader.int32(); - break; - case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1052: - if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) - message[".google.api.fieldBehavior"] = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message[".google.api.fieldBehavior"].push(reader.int32()); - } else - message[".google.api.fieldBehavior"].push(reader.int32()); - break; default: reader.skipType(tag & 7); break; @@ -36305,309 +47188,95 @@ }; /** - * Decodes a FieldOptions message from the specified reader or buffer, length delimited. + * Decodes an Empty message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.Empty * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.Empty} Empty * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FieldOptions.decodeDelimited = function decodeDelimited(reader) { + Empty.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FieldOptions message. + * Verifies an Empty message. * @function verify - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.Empty * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FieldOptions.verify = function verify(message) { + Empty.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.ctype != null && message.hasOwnProperty("ctype")) - switch (message.ctype) { - default: - return "ctype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.packed != null && message.hasOwnProperty("packed")) - if (typeof message.packed !== "boolean") - return "packed: boolean expected"; - if (message.jstype != null && message.hasOwnProperty("jstype")) - switch (message.jstype) { - default: - return "jstype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.lazy != null && message.hasOwnProperty("lazy")) - if (typeof message.lazy !== "boolean") - return "lazy: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.weak != null && message.hasOwnProperty("weak")) - if (typeof message.weak !== "boolean") - return "weak: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.fieldBehavior"] != null && message.hasOwnProperty(".google.api.fieldBehavior")) { - if (!Array.isArray(message[".google.api.fieldBehavior"])) - return ".google.api.fieldBehavior: array expected"; - for (var i = 0; i < message[".google.api.fieldBehavior"].length; ++i) - switch (message[".google.api.fieldBehavior"][i]) { - default: - return ".google.api.fieldBehavior: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - } return null; }; /** - * Creates a FieldOptions message from a plain object. Also converts values to their respective internal types. + * Creates an Empty message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.Empty * @static * @param {Object.} object Plain object - * @returns {google.protobuf.FieldOptions} FieldOptions + * @returns {google.protobuf.Empty} Empty */ - FieldOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.FieldOptions) + Empty.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Empty) return object; - var message = new $root.google.protobuf.FieldOptions(); - switch (object.ctype) { - case "STRING": - case 0: - message.ctype = 0; - break; - case "CORD": - case 1: - message.ctype = 1; - break; - case "STRING_PIECE": - case 2: - message.ctype = 2; - break; - } - if (object.packed != null) - message.packed = Boolean(object.packed); - switch (object.jstype) { - case "JS_NORMAL": - case 0: - message.jstype = 0; - break; - case "JS_STRING": - case 1: - message.jstype = 1; - break; - case "JS_NUMBER": - case 2: - message.jstype = 2; - break; - } - if (object.lazy != null) - message.lazy = Boolean(object.lazy); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.weak != null) - message.weak = Boolean(object.weak); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.fieldBehavior"]) { - if (!Array.isArray(object[".google.api.fieldBehavior"])) - throw TypeError(".google.protobuf.FieldOptions..google.api.fieldBehavior: array expected"); - message[".google.api.fieldBehavior"] = []; - for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) - switch (object[".google.api.fieldBehavior"][i]) { - default: - case "FIELD_BEHAVIOR_UNSPECIFIED": - case 0: - message[".google.api.fieldBehavior"][i] = 0; - break; - case "OPTIONAL": - case 1: - message[".google.api.fieldBehavior"][i] = 1; - break; - case "REQUIRED": - case 2: - message[".google.api.fieldBehavior"][i] = 2; - break; - case "OUTPUT_ONLY": - case 3: - message[".google.api.fieldBehavior"][i] = 3; - break; - case "INPUT_ONLY": - case 4: - message[".google.api.fieldBehavior"][i] = 4; - break; - case "IMMUTABLE": - case 5: - message[".google.api.fieldBehavior"][i] = 5; - break; - case "UNORDERED_LIST": - case 6: - message[".google.api.fieldBehavior"][i] = 6; - break; - case "NON_EMPTY_DEFAULT": - case 7: - message[".google.api.fieldBehavior"][i] = 7; - break; - } - } - return message; + return new $root.google.protobuf.Empty(); }; /** - * Creates a plain object from a FieldOptions message. Also converts values to other types if specified. + * Creates a plain object from an Empty message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.Empty * @static - * @param {google.protobuf.FieldOptions} message FieldOptions + * @param {google.protobuf.Empty} message Empty * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FieldOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.fieldBehavior"] = []; - } - if (options.defaults) { - object.ctype = options.enums === String ? "STRING" : 0; - object.packed = false; - object.deprecated = false; - object.lazy = false; - object.jstype = options.enums === String ? "JS_NORMAL" : 0; - object.weak = false; - } - if (message.ctype != null && message.hasOwnProperty("ctype")) - object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; - if (message.packed != null && message.hasOwnProperty("packed")) - object.packed = message.packed; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.lazy != null && message.hasOwnProperty("lazy")) - object.lazy = message.lazy; - if (message.jstype != null && message.hasOwnProperty("jstype")) - object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; - if (message.weak != null && message.hasOwnProperty("weak")) - object.weak = message.weak; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { - object[".google.api.fieldBehavior"] = []; - for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) - object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; - } - return object; + Empty.toObject = function toObject() { + return {}; }; /** - * Converts this FieldOptions to JSON. + * Converts this Empty to JSON. * @function toJSON - * @memberof google.protobuf.FieldOptions + * @memberof google.protobuf.Empty * @instance * @returns {Object.} JSON object */ - FieldOptions.prototype.toJSON = function toJSON() { + Empty.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * CType enum. - * @name google.protobuf.FieldOptions.CType - * @enum {number} - * @property {number} STRING=0 STRING value - * @property {number} CORD=1 CORD value - * @property {number} STRING_PIECE=2 STRING_PIECE value - */ - FieldOptions.CType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STRING"] = 0; - values[valuesById[1] = "CORD"] = 1; - values[valuesById[2] = "STRING_PIECE"] = 2; - return values; - })(); - - /** - * JSType enum. - * @name google.protobuf.FieldOptions.JSType - * @enum {number} - * @property {number} JS_NORMAL=0 JS_NORMAL value - * @property {number} JS_STRING=1 JS_STRING value - * @property {number} JS_NUMBER=2 JS_NUMBER value - */ - FieldOptions.JSType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JS_NORMAL"] = 0; - values[valuesById[1] = "JS_STRING"] = 1; - values[valuesById[2] = "JS_NUMBER"] = 2; - return values; - })(); - - return FieldOptions; + return Empty; })(); - protobuf.OneofOptions = (function() { + protobuf.Timestamp = (function() { /** - * Properties of an OneofOptions. + * Properties of a Timestamp. * @memberof google.protobuf - * @interface IOneofOptions - * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption + * @interface ITimestamp + * @property {number|Long|null} [seconds] Timestamp seconds + * @property {number|null} [nanos] Timestamp nanos */ /** - * Constructs a new OneofOptions. + * Constructs a new Timestamp. * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions + * @classdesc Represents a Timestamp. + * @implements ITimestamp * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set + * @param {google.protobuf.ITimestamp=} [properties] Properties to set */ - function OneofOptions(properties) { - this.uninterpretedOption = []; + function Timestamp(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36615,78 +47284,88 @@ } /** - * OneofOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.OneofOptions + * Timestamp seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Timestamp * @instance */ - OneofOptions.prototype.uninterpretedOption = $util.emptyArray; + Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new OneofOptions instance using the specified properties. + * Timestamp nanos. + * @member {number} nanos + * @memberof google.protobuf.Timestamp + * @instance + */ + Timestamp.prototype.nanos = 0; + + /** + * Creates a new Timestamp instance using the specified properties. * @function create - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.Timestamp * @static - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - * @returns {google.protobuf.OneofOptions} OneofOptions instance + * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @returns {google.protobuf.Timestamp} Timestamp instance */ - OneofOptions.create = function create(properties) { - return new OneofOptions(properties); + Timestamp.create = function create(properties) { + return new Timestamp(properties); }; /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. * @function encode - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.Timestamp * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encode = function encode(message, writer) { + Timestamp.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); return writer; }; /** - * Encodes the specified OneofOptions message, length delimited. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. + * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.Timestamp * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode + * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OneofOptions.encodeDelimited = function encodeDelimited(message, writer) { + Timestamp.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OneofOptions message from the specified reader or buffer. + * Decodes a Timestamp message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.Timestamp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.Timestamp} Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofOptions.decode = function decode(reader, length) { + Timestamp.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.protobuf.OneofOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); break; default: reader.skipType(tag & 7); @@ -36697,127 +47376,130 @@ }; /** - * Decodes an OneofOptions message from the specified reader or buffer, length delimited. + * Decodes a Timestamp message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.Timestamp * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.Timestamp} Timestamp * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OneofOptions.decodeDelimited = function decodeDelimited(reader) { + Timestamp.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OneofOptions message. + * Verifies a Timestamp message. * @function verify - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.Timestamp * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OneofOptions.verify = function verify(message) { + Timestamp.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; return null; }; /** - * Creates an OneofOptions message from a plain object. Also converts values to their respective internal types. + * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.Timestamp * @static * @param {Object.} object Plain object - * @returns {google.protobuf.OneofOptions} OneofOptions + * @returns {google.protobuf.Timestamp} Timestamp */ - OneofOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.OneofOptions) + Timestamp.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Timestamp) return object; - var message = new $root.google.protobuf.OneofOptions(); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } + var message = new $root.google.protobuf.Timestamp(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; return message; }; /** - * Creates a plain object from an OneofOptions message. Also converts values to other types if specified. + * Creates a plain object from a Timestamp message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.Timestamp * @static - * @param {google.protobuf.OneofOptions} message OneofOptions + * @param {google.protobuf.Timestamp} message Timestamp * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OneofOptions.toObject = function toObject(message, options) { + Timestamp.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; return object; }; /** - * Converts this OneofOptions to JSON. + * Converts this Timestamp to JSON. * @function toJSON - * @memberof google.protobuf.OneofOptions + * @memberof google.protobuf.Timestamp * @instance * @returns {Object.} JSON object */ - OneofOptions.prototype.toJSON = function toJSON() { + Timestamp.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return OneofOptions; + return Timestamp; })(); - protobuf.EnumOptions = (function() { + protobuf.DoubleValue = (function() { /** - * Properties of an EnumOptions. + * Properties of a DoubleValue. * @memberof google.protobuf - * @interface IEnumOptions - * @property {boolean|null} [allowAlias] EnumOptions allowAlias - * @property {boolean|null} [deprecated] EnumOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption + * @interface IDoubleValue + * @property {number|null} [value] DoubleValue value */ /** - * Constructs a new EnumOptions. + * Constructs a new DoubleValue. * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions + * @classdesc Represents a DoubleValue. + * @implements IDoubleValue * @constructor - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set */ - function EnumOptions(properties) { - this.uninterpretedOption = []; + function DoubleValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -36825,104 +47507,75 @@ } /** - * EnumOptions allowAlias. - * @member {boolean} allowAlias - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.allowAlias = false; - - /** - * EnumOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.deprecated = false; - - /** - * EnumOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumOptions + * DoubleValue value. + * @member {number} value + * @memberof google.protobuf.DoubleValue * @instance */ - EnumOptions.prototype.uninterpretedOption = $util.emptyArray; + DoubleValue.prototype.value = 0; /** - * Creates a new EnumOptions instance using the specified properties. + * Creates a new DoubleValue instance using the specified properties. * @function create - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.DoubleValue * @static - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumOptions} EnumOptions instance + * @param {google.protobuf.IDoubleValue=} [properties] Properties to set + * @returns {google.protobuf.DoubleValue} DoubleValue instance */ - EnumOptions.create = function create(properties) { - return new EnumOptions(properties); + DoubleValue.create = function create(properties) { + return new DoubleValue(properties); }; /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.DoubleValue * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumOptions.encode = function encode(message, writer) { + DoubleValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.allowAlias != null && Object.hasOwnProperty.call(message, "allowAlias")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); return writer; }; /** - * Encodes the specified EnumOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. + * Encodes the specified DoubleValue message, length delimited. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.DoubleValue * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode + * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumOptions.encodeDelimited = function encodeDelimited(message, writer) { + DoubleValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumOptions message from the specified reader or buffer. + * Decodes a DoubleValue message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.DoubleValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions + * @returns {google.protobuf.DoubleValue} DoubleValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumOptions.decode = function decode(reader, length) { + DoubleValue.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.protobuf.EnumOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DoubleValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.allowAlias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + case 1: + message.value = reader.double(); break; default: reader.skipType(tag & 7); @@ -36933,144 +47586,107 @@ }; /** - * Decodes an EnumOptions message from the specified reader or buffer, length delimited. + * Decodes a DoubleValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.DoubleValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumOptions} EnumOptions + * @returns {google.protobuf.DoubleValue} DoubleValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumOptions.decodeDelimited = function decodeDelimited(reader) { + DoubleValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumOptions message. + * Verifies a DoubleValue message. * @function verify - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.DoubleValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumOptions.verify = function verify(message) { + DoubleValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - if (typeof message.allowAlias !== "boolean") - return "allowAlias: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; return null; }; /** - * Creates an EnumOptions message from a plain object. Also converts values to their respective internal types. + * Creates a DoubleValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.DoubleValue * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumOptions} EnumOptions + * @returns {google.protobuf.DoubleValue} DoubleValue */ - EnumOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumOptions) + DoubleValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.DoubleValue) return object; - var message = new $root.google.protobuf.EnumOptions(); - if (object.allowAlias != null) - message.allowAlias = Boolean(object.allowAlias); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } + var message = new $root.google.protobuf.DoubleValue(); + if (object.value != null) + message.value = Number(object.value); return message; }; /** - * Creates a plain object from an EnumOptions message. Also converts values to other types if specified. + * Creates a plain object from a DoubleValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.DoubleValue * @static - * @param {google.protobuf.EnumOptions} message EnumOptions + * @param {google.protobuf.DoubleValue} message DoubleValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumOptions.toObject = function toObject(message, options) { + DoubleValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.allowAlias = false; - object.deprecated = false; - } - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - object.allowAlias = message.allowAlias; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; return object; }; /** - * Converts this EnumOptions to JSON. + * Converts this DoubleValue to JSON. * @function toJSON - * @memberof google.protobuf.EnumOptions + * @memberof google.protobuf.DoubleValue * @instance * @returns {Object.} JSON object */ - EnumOptions.prototype.toJSON = function toJSON() { + DoubleValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumOptions; + return DoubleValue; })(); - protobuf.EnumValueOptions = (function() { + protobuf.FloatValue = (function() { /** - * Properties of an EnumValueOptions. + * Properties of a FloatValue. * @memberof google.protobuf - * @interface IEnumValueOptions - * @property {boolean|null} [deprecated] EnumValueOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption + * @interface IFloatValue + * @property {number|null} [value] FloatValue value */ /** - * Constructs a new EnumValueOptions. + * Constructs a new FloatValue. * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions + * @classdesc Represents a FloatValue. + * @implements IFloatValue * @constructor - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set + * @param {google.protobuf.IFloatValue=} [properties] Properties to set */ - function EnumValueOptions(properties) { - this.uninterpretedOption = []; + function FloatValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37078,91 +47694,75 @@ } /** - * EnumValueOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.deprecated = false; - - /** - * EnumValueOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumValueOptions + * FloatValue value. + * @member {number} value + * @memberof google.protobuf.FloatValue * @instance */ - EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; + FloatValue.prototype.value = 0; /** - * Creates a new EnumValueOptions instance using the specified properties. + * Creates a new FloatValue instance using the specified properties. * @function create - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FloatValue * @static - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance + * @param {google.protobuf.IFloatValue=} [properties] Properties to set + * @returns {google.protobuf.FloatValue} FloatValue instance */ - EnumValueOptions.create = function create(properties) { - return new EnumValueOptions(properties); + FloatValue.create = function create(properties) { + return new FloatValue(properties); }; /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. * @function encode - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FloatValue * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueOptions.encode = function encode(message, writer) { + FloatValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.value); return writer; }; /** - * Encodes the specified EnumValueOptions message, length delimited. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. + * Encodes the specified FloatValue message, length delimited. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FloatValue * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode + * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnumValueOptions.encodeDelimited = function encodeDelimited(message, writer) { + FloatValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnumValueOptions message from the specified reader or buffer. + * Decodes a FloatValue message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FloatValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.FloatValue} FloatValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueOptions.decode = function decode(reader, length) { + FloatValue.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.protobuf.EnumValueOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FloatValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + message.value = reader.float(); break; default: reader.skipType(tag & 7); @@ -37173,137 +47773,107 @@ }; /** - * Decodes an EnumValueOptions message from the specified reader or buffer, length delimited. + * Decodes a FloatValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FloatValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.FloatValue} FloatValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnumValueOptions.decodeDelimited = function decodeDelimited(reader) { + FloatValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnumValueOptions message. + * Verifies a FloatValue message. * @function verify - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FloatValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnumValueOptions.verify = function verify(message) { + FloatValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; return null; }; /** - * Creates an EnumValueOptions message from a plain object. Also converts values to their respective internal types. + * Creates a FloatValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FloatValue * @static * @param {Object.} object Plain object - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions + * @returns {google.protobuf.FloatValue} FloatValue */ - EnumValueOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.EnumValueOptions) + FloatValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.FloatValue) return object; - var message = new $root.google.protobuf.EnumValueOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } + var message = new $root.google.protobuf.FloatValue(); + if (object.value != null) + message.value = Number(object.value); return message; }; /** - * Creates a plain object from an EnumValueOptions message. Also converts values to other types if specified. + * Creates a plain object from a FloatValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FloatValue * @static - * @param {google.protobuf.EnumValueOptions} message EnumValueOptions + * @param {google.protobuf.FloatValue} message FloatValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnumValueOptions.toObject = function toObject(message, options) { + FloatValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; if (options.defaults) - object.deprecated = false; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; return object; }; /** - * Converts this EnumValueOptions to JSON. + * Converts this FloatValue to JSON. * @function toJSON - * @memberof google.protobuf.EnumValueOptions + * @memberof google.protobuf.FloatValue * @instance * @returns {Object.} JSON object */ - EnumValueOptions.prototype.toJSON = function toJSON() { + FloatValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnumValueOptions; + return FloatValue; })(); - protobuf.ServiceOptions = (function() { + protobuf.Int64Value = (function() { /** - * Properties of a ServiceOptions. + * Properties of an Int64Value. * @memberof google.protobuf - * @interface IServiceOptions - * @property {boolean|null} [deprecated] ServiceOptions deprecated - * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption - * @property {string|null} [".google.api.defaultHost"] ServiceOptions .google.api.defaultHost - * @property {string|null} [".google.api.oauthScopes"] ServiceOptions .google.api.oauthScopes + * @interface IInt64Value + * @property {number|Long|null} [value] Int64Value value */ /** - * Constructs a new ServiceOptions. + * Constructs a new Int64Value. * @memberof google.protobuf - * @classdesc Represents a ServiceOptions. - * @implements IServiceOptions + * @classdesc Represents an Int64Value. + * @implements IInt64Value * @constructor - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set + * @param {google.protobuf.IInt64Value=} [properties] Properties to set */ - function ServiceOptions(properties) { - this.uninterpretedOption = []; + function Int64Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37311,117 +47881,75 @@ } /** - * ServiceOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.deprecated = false; - - /** - * ServiceOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * ServiceOptions .google.api.defaultHost. - * @member {string} .google.api.defaultHost - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype[".google.api.defaultHost"] = ""; - - /** - * ServiceOptions .google.api.oauthScopes. - * @member {string} .google.api.oauthScopes - * @memberof google.protobuf.ServiceOptions + * Int64Value value. + * @member {number|Long} value + * @memberof google.protobuf.Int64Value * @instance */ - ServiceOptions.prototype[".google.api.oauthScopes"] = ""; + Int64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ServiceOptions instance using the specified properties. + * Creates a new Int64Value instance using the specified properties. * @function create - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Int64Value * @static - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - * @returns {google.protobuf.ServiceOptions} ServiceOptions instance + * @param {google.protobuf.IInt64Value=} [properties] Properties to set + * @returns {google.protobuf.Int64Value} Int64Value instance */ - ServiceOptions.create = function create(properties) { - return new ServiceOptions(properties); + Int64Value.create = function create(properties) { + return new Int64Value(properties); }; /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. * @function encode - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Int64Value * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceOptions.encode = function encode(message, writer) { + Int64Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.defaultHost"] != null && Object.hasOwnProperty.call(message, ".google.api.defaultHost")) - writer.uint32(/* id 1049, wireType 2 =*/8394).string(message[".google.api.defaultHost"]); - if (message[".google.api.oauthScopes"] != null && Object.hasOwnProperty.call(message, ".google.api.oauthScopes")) - writer.uint32(/* id 1050, wireType 2 =*/8402).string(message[".google.api.oauthScopes"]); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.value); return writer; }; /** - * Encodes the specified ServiceOptions message, length delimited. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. + * Encodes the specified Int64Value message, length delimited. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Int64Value * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode + * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ServiceOptions.encodeDelimited = function encodeDelimited(message, writer) { + Int64Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ServiceOptions message from the specified reader or buffer. + * Decodes an Int64Value message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Int64Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @returns {google.protobuf.Int64Value} Int64Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceOptions.decode = function decode(reader, length) { + Int64Value.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.protobuf.ServiceOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int64Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1049: - message[".google.api.defaultHost"] = reader.string(); - break; - case 1050: - message[".google.api.oauthScopes"] = reader.string(); + case 1: + message.value = reader.int64(); break; default: reader.skipType(tag & 7); @@ -37432,156 +47960,121 @@ }; /** - * Decodes a ServiceOptions message from the specified reader or buffer, length delimited. + * Decodes an Int64Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Int64Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @returns {google.protobuf.Int64Value} Int64Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ServiceOptions.decodeDelimited = function decodeDelimited(reader) { + Int64Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ServiceOptions message. + * Verifies an Int64Value message. * @function verify - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Int64Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ServiceOptions.verify = function verify(message) { + Int64Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) - if (!$util.isString(message[".google.api.defaultHost"])) - return ".google.api.defaultHost: string expected"; - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) - if (!$util.isString(message[".google.api.oauthScopes"])) - return ".google.api.oauthScopes: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; return null; }; /** - * Creates a ServiceOptions message from a plain object. Also converts values to their respective internal types. + * Creates an Int64Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Int64Value * @static * @param {Object.} object Plain object - * @returns {google.protobuf.ServiceOptions} ServiceOptions + * @returns {google.protobuf.Int64Value} Int64Value */ - ServiceOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ServiceOptions) + Int64Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Int64Value) return object; - var message = new $root.google.protobuf.ServiceOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.defaultHost"] != null) - message[".google.api.defaultHost"] = String(object[".google.api.defaultHost"]); - if (object[".google.api.oauthScopes"] != null) - message[".google.api.oauthScopes"] = String(object[".google.api.oauthScopes"]); + var message = new $root.google.protobuf.Int64Value(); + if (object.value != null) + if ($util.Long) + (message.value = $util.Long.fromValue(object.value)).unsigned = false; + else if (typeof object.value === "string") + message.value = parseInt(object.value, 10); + else if (typeof object.value === "number") + message.value = object.value; + else if (typeof object.value === "object") + message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a ServiceOptions message. Also converts values to other types if specified. + * Creates a plain object from an Int64Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Int64Value * @static - * @param {google.protobuf.ServiceOptions} message ServiceOptions + * @param {google.protobuf.Int64Value} message Int64Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ServiceOptions.toObject = function toObject(message, options) { + Int64Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.uninterpretedOption = []; - if (options.defaults) { - object.deprecated = false; - object[".google.api.defaultHost"] = ""; - object[".google.api.oauthScopes"] = ""; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.defaultHost"] != null && message.hasOwnProperty(".google.api.defaultHost")) - object[".google.api.defaultHost"] = message[".google.api.defaultHost"]; - if (message[".google.api.oauthScopes"] != null && message.hasOwnProperty(".google.api.oauthScopes")) - object[".google.api.oauthScopes"] = message[".google.api.oauthScopes"]; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.value = options.longs === String ? "0" : 0; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value === "number") + object.value = options.longs === String ? String(message.value) : message.value; + else + object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber() : message.value; return object; }; /** - * Converts this ServiceOptions to JSON. + * Converts this Int64Value to JSON. * @function toJSON - * @memberof google.protobuf.ServiceOptions + * @memberof google.protobuf.Int64Value * @instance * @returns {Object.} JSON object */ - ServiceOptions.prototype.toJSON = function toJSON() { + Int64Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ServiceOptions; + return Int64Value; })(); - protobuf.MethodOptions = (function() { + protobuf.UInt64Value = (function() { /** - * Properties of a MethodOptions. + * Properties of a UInt64Value. * @memberof google.protobuf - * @interface IMethodOptions - * @property {boolean|null} [deprecated] MethodOptions deprecated - * @property {google.protobuf.MethodOptions.IdempotencyLevel|null} [idempotencyLevel] MethodOptions idempotencyLevel - * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption - * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http - * @property {Array.|null} [".google.api.methodSignature"] MethodOptions .google.api.methodSignature + * @interface IUInt64Value + * @property {number|Long|null} [value] UInt64Value value */ /** - * Constructs a new MethodOptions. + * Constructs a new UInt64Value. * @memberof google.protobuf - * @classdesc Represents a MethodOptions. - * @implements IMethodOptions + * @classdesc Represents a UInt64Value. + * @implements IUInt64Value * @constructor - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set */ - function MethodOptions(properties) { - this.uninterpretedOption = []; - this[".google.api.methodSignature"] = []; + function UInt64Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37589,133 +48082,75 @@ } /** - * MethodOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.deprecated = false; - - /** - * MethodOptions idempotencyLevel. - * @member {google.protobuf.MethodOptions.IdempotencyLevel} idempotencyLevel - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.idempotencyLevel = 0; - - /** - * MethodOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * MethodOptions .google.api.http. - * @member {google.api.IHttpRule|null|undefined} .google.api.http - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype[".google.api.http"] = null; - - /** - * MethodOptions .google.api.methodSignature. - * @member {Array.} .google.api.methodSignature - * @memberof google.protobuf.MethodOptions + * UInt64Value value. + * @member {number|Long} value + * @memberof google.protobuf.UInt64Value * @instance */ - MethodOptions.prototype[".google.api.methodSignature"] = $util.emptyArray; + UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; /** - * Creates a new MethodOptions instance using the specified properties. + * Creates a new UInt64Value instance using the specified properties. * @function create - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.UInt64Value * @static - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - * @returns {google.protobuf.MethodOptions} MethodOptions instance + * @param {google.protobuf.IUInt64Value=} [properties] Properties to set + * @returns {google.protobuf.UInt64Value} UInt64Value instance */ - MethodOptions.create = function create(properties) { - return new MethodOptions(properties); + UInt64Value.create = function create(properties) { + return new UInt64Value(properties); }; /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. * @function encode - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.UInt64Value * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodOptions.encode = function encode(message, writer) { + UInt64Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.idempotencyLevel != null && Object.hasOwnProperty.call(message, "idempotencyLevel")) - writer.uint32(/* id 34, wireType 0 =*/272).int32(message.idempotencyLevel); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.methodSignature"] != null && message[".google.api.methodSignature"].length) - for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) - writer.uint32(/* id 1051, wireType 2 =*/8410).string(message[".google.api.methodSignature"][i]); - if (message[".google.api.http"] != null && Object.hasOwnProperty.call(message, ".google.api.http")) - $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value); return writer; }; /** - * Encodes the specified MethodOptions message, length delimited. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. + * Encodes the specified UInt64Value message, length delimited. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.UInt64Value * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode + * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MethodOptions.encodeDelimited = function encodeDelimited(message, writer) { + UInt64Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MethodOptions message from the specified reader or buffer. + * Decodes a UInt64Value message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.UInt64Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodOptions} MethodOptions + * @returns {google.protobuf.UInt64Value} UInt64Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodOptions.decode = function decode(reader, length) { + UInt64Value.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.protobuf.MethodOptions(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt64Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 34: - message.idempotencyLevel = reader.int32(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 72295728: - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); - break; - case 1051: - if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) - message[".google.api.methodSignature"] = []; - message[".google.api.methodSignature"].push(reader.string()); + case 1: + message.value = reader.uint64(); break; default: reader.skipType(tag & 7); @@ -37726,217 +48161,121 @@ }; /** - * Decodes a MethodOptions message from the specified reader or buffer, length delimited. + * Decodes a UInt64Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.UInt64Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.MethodOptions} MethodOptions + * @returns {google.protobuf.UInt64Value} UInt64Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MethodOptions.decodeDelimited = function decodeDelimited(reader) { + UInt64Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MethodOptions message. + * Verifies a UInt64Value message. * @function verify - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.UInt64Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MethodOptions.verify = function verify(message) { + UInt64Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - switch (message.idempotencyLevel) { - default: - return "idempotencyLevel: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { - var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); - if (error) - return ".google.api.http." + error; - } - if (message[".google.api.methodSignature"] != null && message.hasOwnProperty(".google.api.methodSignature")) { - if (!Array.isArray(message[".google.api.methodSignature"])) - return ".google.api.methodSignature: array expected"; - for (var i = 0; i < message[".google.api.methodSignature"].length; ++i) - if (!$util.isString(message[".google.api.methodSignature"][i])) - return ".google.api.methodSignature: string[] expected"; - } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) + return "value: integer|Long expected"; return null; }; /** - * Creates a MethodOptions message from a plain object. Also converts values to their respective internal types. + * Creates a UInt64Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.UInt64Value * @static * @param {Object.} object Plain object - * @returns {google.protobuf.MethodOptions} MethodOptions + * @returns {google.protobuf.UInt64Value} UInt64Value */ - MethodOptions.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.MethodOptions) + UInt64Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UInt64Value) return object; - var message = new $root.google.protobuf.MethodOptions(); - if (object.deprecated != null) - message.deprecated = Boolean(object.deprecated); - switch (object.idempotencyLevel) { - case "IDEMPOTENCY_UNKNOWN": - case 0: - message.idempotencyLevel = 0; - break; - case "NO_SIDE_EFFECTS": - case 1: - message.idempotencyLevel = 1; - break; - case "IDEMPOTENT": - case 2: - message.idempotencyLevel = 2; - break; - } - if (object.uninterpretedOption) { - if (!Array.isArray(object.uninterpretedOption)) - throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); - message.uninterpretedOption = []; - for (var i = 0; i < object.uninterpretedOption.length; ++i) { - if (typeof object.uninterpretedOption[i] !== "object") - throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); - message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); - } - } - if (object[".google.api.http"] != null) { - if (typeof object[".google.api.http"] !== "object") - throw TypeError(".google.protobuf.MethodOptions..google.api.http: object expected"); - message[".google.api.http"] = $root.google.api.HttpRule.fromObject(object[".google.api.http"]); - } - if (object[".google.api.methodSignature"]) { - if (!Array.isArray(object[".google.api.methodSignature"])) - throw TypeError(".google.protobuf.MethodOptions..google.api.methodSignature: array expected"); - message[".google.api.methodSignature"] = []; - for (var i = 0; i < object[".google.api.methodSignature"].length; ++i) - message[".google.api.methodSignature"][i] = String(object[".google.api.methodSignature"][i]); - } + var message = new $root.google.protobuf.UInt64Value(); + if (object.value != null) + if ($util.Long) + (message.value = $util.Long.fromValue(object.value)).unsigned = true; + else if (typeof object.value === "string") + message.value = parseInt(object.value, 10); + else if (typeof object.value === "number") + message.value = object.value; + else if (typeof object.value === "object") + message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(true); return message; }; /** - * Creates a plain object from a MethodOptions message. Also converts values to other types if specified. + * Creates a plain object from a UInt64Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.UInt64Value * @static - * @param {google.protobuf.MethodOptions} message MethodOptions + * @param {google.protobuf.UInt64Value} message UInt64Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MethodOptions.toObject = function toObject(message, options) { + UInt64Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.uninterpretedOption = []; - object[".google.api.methodSignature"] = []; - } - if (options.defaults) { - object.deprecated = false; - object.idempotencyLevel = options.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0; - object[".google.api.http"] = null; - } - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - object.deprecated = message.deprecated; - if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; - if (message.uninterpretedOption && message.uninterpretedOption.length) { - object.uninterpretedOption = []; - for (var j = 0; j < message.uninterpretedOption.length; ++j) - object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); - } - if (message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length) { - object[".google.api.methodSignature"] = []; - for (var j = 0; j < message[".google.api.methodSignature"].length; ++j) - object[".google.api.methodSignature"][j] = message[".google.api.methodSignature"][j]; - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) - object[".google.api.http"] = $root.google.api.HttpRule.toObject(message[".google.api.http"], options); + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, true); + object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.value = options.longs === String ? "0" : 0; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value === "number") + object.value = options.longs === String ? String(message.value) : message.value; + else + object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber(true) : message.value; return object; }; /** - * Converts this MethodOptions to JSON. + * Converts this UInt64Value to JSON. * @function toJSON - * @memberof google.protobuf.MethodOptions + * @memberof google.protobuf.UInt64Value * @instance * @returns {Object.} JSON object */ - MethodOptions.prototype.toJSON = function toJSON() { + UInt64Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * IdempotencyLevel enum. - * @name google.protobuf.MethodOptions.IdempotencyLevel - * @enum {number} - * @property {number} IDEMPOTENCY_UNKNOWN=0 IDEMPOTENCY_UNKNOWN value - * @property {number} NO_SIDE_EFFECTS=1 NO_SIDE_EFFECTS value - * @property {number} IDEMPOTENT=2 IDEMPOTENT value - */ - MethodOptions.IdempotencyLevel = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "IDEMPOTENCY_UNKNOWN"] = 0; - values[valuesById[1] = "NO_SIDE_EFFECTS"] = 1; - values[valuesById[2] = "IDEMPOTENT"] = 2; - return values; - })(); - - return MethodOptions; + return UInt64Value; })(); - protobuf.UninterpretedOption = (function() { + protobuf.Int32Value = (function() { /** - * Properties of an UninterpretedOption. + * Properties of an Int32Value. * @memberof google.protobuf - * @interface IUninterpretedOption - * @property {Array.|null} [name] UninterpretedOption name - * @property {string|null} [identifierValue] UninterpretedOption identifierValue - * @property {number|Long|null} [positiveIntValue] UninterpretedOption positiveIntValue - * @property {number|Long|null} [negativeIntValue] UninterpretedOption negativeIntValue - * @property {number|null} [doubleValue] UninterpretedOption doubleValue - * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue - * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue + * @interface IInt32Value + * @property {number|null} [value] Int32Value value */ /** - * Constructs a new UninterpretedOption. + * Constructs a new Int32Value. * @memberof google.protobuf - * @classdesc Represents an UninterpretedOption. - * @implements IUninterpretedOption + * @classdesc Represents an Int32Value. + * @implements IInt32Value * @constructor - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set + * @param {google.protobuf.IInt32Value=} [properties] Properties to set */ - function UninterpretedOption(properties) { - this.name = []; + function Int32Value(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -37944,156 +48283,262 @@ } /** - * UninterpretedOption name. - * @member {Array.} name - * @memberof google.protobuf.UninterpretedOption + * Int32Value value. + * @member {number} value + * @memberof google.protobuf.Int32Value * @instance */ - UninterpretedOption.prototype.name = $util.emptyArray; + Int32Value.prototype.value = 0; /** - * UninterpretedOption identifierValue. - * @member {string} identifierValue - * @memberof google.protobuf.UninterpretedOption - * @instance + * Creates a new Int32Value instance using the specified properties. + * @function create + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value=} [properties] Properties to set + * @returns {google.protobuf.Int32Value} Int32Value instance */ - UninterpretedOption.prototype.identifierValue = ""; + Int32Value.create = function create(properties) { + return new Int32Value(properties); + }; /** - * UninterpretedOption positiveIntValue. - * @member {number|Long} positiveIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance + * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int32Value.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.value); + return writer; + }; + + /** + * Encodes the specified Int32Value message, length delimited. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Int32Value.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an Int32Value message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Int32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Int32Value} Int32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int32Value.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.protobuf.Int32Value(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an Int32Value message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Int32Value + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Int32Value} Int32Value + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Int32Value.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an Int32Value message. + * @function verify + * @memberof google.protobuf.Int32Value + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Int32Value.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; + return null; + }; + + /** + * Creates an Int32Value message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Int32Value + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Int32Value} Int32Value + */ + Int32Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Int32Value) + return object; + var message = new $root.google.protobuf.Int32Value(); + if (object.value != null) + message.value = object.value | 0; + return message; + }; + + /** + * Creates a plain object from an Int32Value message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Int32Value + * @static + * @param {google.protobuf.Int32Value} message Int32Value + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + Int32Value.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; /** - * UninterpretedOption negativeIntValue. - * @member {number|Long} negativeIntValue - * @memberof google.protobuf.UninterpretedOption + * Converts this Int32Value to JSON. + * @function toJSON + * @memberof google.protobuf.Int32Value * @instance + * @returns {Object.} JSON object */ - UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Int32Value.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Int32Value; + })(); + + protobuf.UInt32Value = (function() { /** - * UninterpretedOption doubleValue. - * @member {number} doubleValue - * @memberof google.protobuf.UninterpretedOption - * @instance + * Properties of a UInt32Value. + * @memberof google.protobuf + * @interface IUInt32Value + * @property {number|null} [value] UInt32Value value */ - UninterpretedOption.prototype.doubleValue = 0; /** - * UninterpretedOption stringValue. - * @member {Uint8Array} stringValue - * @memberof google.protobuf.UninterpretedOption - * @instance + * Constructs a new UInt32Value. + * @memberof google.protobuf + * @classdesc Represents a UInt32Value. + * @implements IUInt32Value + * @constructor + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set */ - UninterpretedOption.prototype.stringValue = $util.newBuffer([]); + function UInt32Value(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]]; + } /** - * UninterpretedOption aggregateValue. - * @member {string} aggregateValue - * @memberof google.protobuf.UninterpretedOption + * UInt32Value value. + * @member {number} value + * @memberof google.protobuf.UInt32Value * @instance */ - UninterpretedOption.prototype.aggregateValue = ""; + UInt32Value.prototype.value = 0; /** - * Creates a new UninterpretedOption instance using the specified properties. + * Creates a new UInt32Value instance using the specified properties. * @function create - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.UInt32Value * @static - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance + * @param {google.protobuf.IUInt32Value=} [properties] Properties to set + * @returns {google.protobuf.UInt32Value} UInt32Value instance */ - UninterpretedOption.create = function create(properties) { - return new UninterpretedOption(properties); + UInt32Value.create = function create(properties) { + return new UInt32Value(properties); }; /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. * @function encode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.UInt32Value * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encode = function encode(message, writer) { + UInt32Value.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && message.name.length) - for (var i = 0; i < message.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && Object.hasOwnProperty.call(message, "identifierValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && Object.hasOwnProperty.call(message, "positiveIntValue")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && Object.hasOwnProperty.call(message, "negativeIntValue")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && Object.hasOwnProperty.call(message, "aggregateValue")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); return writer; }; /** - * Encodes the specified UninterpretedOption message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. + * Encodes the specified UInt32Value message, length delimited. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.UInt32Value * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode + * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UninterpretedOption.encodeDelimited = function encodeDelimited(message, writer) { + UInt32Value.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer. + * Decodes a UInt32Value message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.UInt32Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.UInt32Value} UInt32Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decode = function decode(reader, length) { + UInt32Value.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.protobuf.UninterpretedOption(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt32Value(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); - break; - case 3: - message.identifierValue = reader.string(); - break; - case 4: - message.positiveIntValue = reader.uint64(); - break; - case 5: - message.negativeIntValue = reader.int64(); - break; - case 6: - message.doubleValue = reader.double(); - break; - case 7: - message.stringValue = reader.bytes(); - break; - case 8: - message.aggregateValue = reader.string(); + case 1: + message.value = reader.uint32(); break; default: reader.skipType(tag & 7); @@ -38104,422 +48549,294 @@ }; /** - * Decodes an UninterpretedOption message from the specified reader or buffer, length delimited. + * Decodes a UInt32Value message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.UInt32Value * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.UInt32Value} UInt32Value * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UninterpretedOption.decodeDelimited = function decodeDelimited(reader) { + UInt32Value.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UninterpretedOption message. + * Verifies a UInt32Value message. * @function verify - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.UInt32Value * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UninterpretedOption.verify = function verify(message) { + UInt32Value.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) { - if (!Array.isArray(message.name)) - return "name: array expected"; - for (var i = 0; i < message.name.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); - if (error) - return "name." + error; - } - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - if (!$util.isString(message.identifierValue)) - return "identifierValue: string expected"; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) - return "positiveIntValue: integer|Long expected"; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) - return "negativeIntValue: integer|Long expected"; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) - return "stringValue: buffer expected"; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - if (!$util.isString(message.aggregateValue)) - return "aggregateValue: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isInteger(message.value)) + return "value: integer expected"; return null; }; /** - * Creates an UninterpretedOption message from a plain object. Also converts values to their respective internal types. + * Creates a UInt32Value message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.UInt32Value * @static * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption + * @returns {google.protobuf.UInt32Value} UInt32Value */ - UninterpretedOption.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption) + UInt32Value.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.UInt32Value) return object; - var message = new $root.google.protobuf.UninterpretedOption(); - if (object.name) { - if (!Array.isArray(object.name)) - throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); - message.name = []; - for (var i = 0; i < object.name.length; ++i) { - if (typeof object.name[i] !== "object") - throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); - message.name[i] = $root.google.protobuf.UninterpretedOption.NamePart.fromObject(object.name[i]); - } - } - if (object.identifierValue != null) - message.identifierValue = String(object.identifierValue); - if (object.positiveIntValue != null) - if ($util.Long) - (message.positiveIntValue = $util.Long.fromValue(object.positiveIntValue)).unsigned = true; - else if (typeof object.positiveIntValue === "string") - message.positiveIntValue = parseInt(object.positiveIntValue, 10); - else if (typeof object.positiveIntValue === "number") - message.positiveIntValue = object.positiveIntValue; - else if (typeof object.positiveIntValue === "object") - message.positiveIntValue = new $util.LongBits(object.positiveIntValue.low >>> 0, object.positiveIntValue.high >>> 0).toNumber(true); - if (object.negativeIntValue != null) - if ($util.Long) - (message.negativeIntValue = $util.Long.fromValue(object.negativeIntValue)).unsigned = false; - else if (typeof object.negativeIntValue === "string") - message.negativeIntValue = parseInt(object.negativeIntValue, 10); - else if (typeof object.negativeIntValue === "number") - message.negativeIntValue = object.negativeIntValue; - else if (typeof object.negativeIntValue === "object") - message.negativeIntValue = new $util.LongBits(object.negativeIntValue.low >>> 0, object.negativeIntValue.high >>> 0).toNumber(); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.stringValue != null) - if (typeof object.stringValue === "string") - $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); - else if (object.stringValue.length) - message.stringValue = object.stringValue; - if (object.aggregateValue != null) - message.aggregateValue = String(object.aggregateValue); + var message = new $root.google.protobuf.UInt32Value(); + if (object.value != null) + message.value = object.value >>> 0; return message; }; /** - * Creates a plain object from an UninterpretedOption message. Also converts values to other types if specified. + * Creates a plain object from a UInt32Value message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.UInt32Value * @static - * @param {google.protobuf.UninterpretedOption} message UninterpretedOption + * @param {google.protobuf.UInt32Value} message UInt32Value * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UninterpretedOption.toObject = function toObject(message, options) { + UInt32Value.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.name = []; - if (options.defaults) { - object.identifierValue = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, true); - object.positiveIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.positiveIntValue = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.negativeIntValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.negativeIntValue = options.longs === String ? "0" : 0; - object.doubleValue = 0; - if (options.bytes === String) - object.stringValue = ""; - else { - object.stringValue = []; - if (options.bytes !== Array) - object.stringValue = $util.newBuffer(object.stringValue); - } - object.aggregateValue = ""; - } - if (message.name && message.name.length) { - object.name = []; - for (var j = 0; j < message.name.length; ++j) - object.name[j] = $root.google.protobuf.UninterpretedOption.NamePart.toObject(message.name[j], options); - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - object.identifierValue = message.identifierValue; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (typeof message.positiveIntValue === "number") - object.positiveIntValue = options.longs === String ? String(message.positiveIntValue) : message.positiveIntValue; - else - object.positiveIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.positiveIntValue) : options.longs === Number ? new $util.LongBits(message.positiveIntValue.low >>> 0, message.positiveIntValue.high >>> 0).toNumber(true) : message.positiveIntValue; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (typeof message.negativeIntValue === "number") - object.negativeIntValue = options.longs === String ? String(message.negativeIntValue) : message.negativeIntValue; - else - object.negativeIntValue = options.longs === String ? $util.Long.prototype.toString.call(message.negativeIntValue) : options.longs === Number ? new $util.LongBits(message.negativeIntValue.low >>> 0, message.negativeIntValue.high >>> 0).toNumber() : message.negativeIntValue; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - object.stringValue = options.bytes === String ? $util.base64.encode(message.stringValue, 0, message.stringValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.stringValue) : message.stringValue; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - object.aggregateValue = message.aggregateValue; + if (options.defaults) + object.value = 0; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this UninterpretedOption to JSON. + * Converts this UInt32Value to JSON. * @function toJSON - * @memberof google.protobuf.UninterpretedOption + * @memberof google.protobuf.UInt32Value * @instance * @returns {Object.} JSON object */ - UninterpretedOption.prototype.toJSON = function toJSON() { + UInt32Value.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - UninterpretedOption.NamePart = (function() { + return UInt32Value; + })(); - /** - * Properties of a NamePart. - * @memberof google.protobuf.UninterpretedOption - * @interface INamePart - * @property {string} namePart NamePart namePart - * @property {boolean} isExtension NamePart isExtension - */ + protobuf.BoolValue = (function() { - /** - * Constructs a new NamePart. - * @memberof google.protobuf.UninterpretedOption - * @classdesc Represents a NamePart. - * @implements INamePart - * @constructor - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - */ - function NamePart(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]]; - } + /** + * Properties of a BoolValue. + * @memberof google.protobuf + * @interface IBoolValue + * @property {boolean|null} [value] BoolValue value + */ - /** - * NamePart namePart. - * @member {string} namePart - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.namePart = ""; + /** + * Constructs a new BoolValue. + * @memberof google.protobuf + * @classdesc Represents a BoolValue. + * @implements IBoolValue + * @constructor + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + */ + function BoolValue(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]]; + } - /** - * NamePart isExtension. - * @member {boolean} isExtension - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.isExtension = false; + /** + * BoolValue value. + * @member {boolean} value + * @memberof google.protobuf.BoolValue + * @instance + */ + BoolValue.prototype.value = false; - /** - * Creates a new NamePart instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance - */ - NamePart.create = function create(properties) { - return new NamePart(properties); - }; + /** + * Creates a new BoolValue instance using the specified properties. + * @function create + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue=} [properties] Properties to set + * @returns {google.protobuf.BoolValue} BoolValue instance + */ + BoolValue.create = function create(properties) { + return new BoolValue(properties); + }; - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); - return writer; - }; + /** + * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @function encode + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BoolValue.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value); + return writer; + }; - /** - * Encodes the specified NamePart message, length delimited. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified BoolValue message, length delimited. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BoolValue.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a NamePart message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.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.protobuf.UninterpretedOption.NamePart(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.namePart = reader.string(); - break; - case 2: - message.isExtension = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Decodes a BoolValue message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.BoolValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.BoolValue} BoolValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BoolValue.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.protobuf.BoolValue(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; } - if (!message.hasOwnProperty("namePart")) - throw $util.ProtocolError("missing required 'namePart'", { instance: message }); - if (!message.hasOwnProperty("isExtension")) - throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); - return message; - }; - - /** - * Decodes a NamePart message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a NamePart message. - * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamePart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (!$util.isString(message.namePart)) - return "namePart: string expected"; - if (typeof message.isExtension !== "boolean") - return "isExtension: boolean expected"; - return null; - }; + } + return message; + }; - /** - * Creates a NamePart message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - */ - NamePart.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.UninterpretedOption.NamePart) - return object; - var message = new $root.google.protobuf.UninterpretedOption.NamePart(); - if (object.namePart != null) - message.namePart = String(object.namePart); - if (object.isExtension != null) - message.isExtension = Boolean(object.isExtension); - return message; - }; + /** + * Decodes a BoolValue message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.BoolValue + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.BoolValue} BoolValue + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BoolValue.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a plain object from a NamePart message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.NamePart} message NamePart - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - NamePart.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.namePart = ""; - object.isExtension = false; - } - if (message.namePart != null && message.hasOwnProperty("namePart")) - object.namePart = message.namePart; - if (message.isExtension != null && message.hasOwnProperty("isExtension")) - object.isExtension = message.isExtension; - return object; - }; + /** + * Verifies a BoolValue message. + * @function verify + * @memberof google.protobuf.BoolValue + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BoolValue.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "boolean") + return "value: boolean expected"; + return null; + }; - /** - * Converts this NamePart to JSON. - * @function toJSON - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - * @returns {Object.} JSON object - */ - NamePart.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a BoolValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.BoolValue + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.BoolValue} BoolValue + */ + BoolValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.BoolValue) + return object; + var message = new $root.google.protobuf.BoolValue(); + if (object.value != null) + message.value = Boolean(object.value); + return message; + }; - return NamePart; - })(); + /** + * Creates a plain object from a BoolValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.BoolValue + * @static + * @param {google.protobuf.BoolValue} message BoolValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BoolValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.value = false; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; + return object; + }; - return UninterpretedOption; + /** + * Converts this BoolValue to JSON. + * @function toJSON + * @memberof google.protobuf.BoolValue + * @instance + * @returns {Object.} JSON object + */ + BoolValue.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BoolValue; })(); - protobuf.SourceCodeInfo = (function() { + protobuf.StringValue = (function() { /** - * Properties of a SourceCodeInfo. + * Properties of a StringValue. * @memberof google.protobuf - * @interface ISourceCodeInfo - * @property {Array.|null} [location] SourceCodeInfo location + * @interface IStringValue + * @property {string|null} [value] StringValue value */ /** - * Constructs a new SourceCodeInfo. + * Constructs a new StringValue. * @memberof google.protobuf - * @classdesc Represents a SourceCodeInfo. - * @implements ISourceCodeInfo + * @classdesc Represents a StringValue. + * @implements IStringValue * @constructor - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set + * @param {google.protobuf.IStringValue=} [properties] Properties to set */ - function SourceCodeInfo(properties) { - this.location = []; + function StringValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -38527,78 +48844,75 @@ } /** - * SourceCodeInfo location. - * @member {Array.} location - * @memberof google.protobuf.SourceCodeInfo + * StringValue value. + * @member {string} value + * @memberof google.protobuf.StringValue * @instance */ - SourceCodeInfo.prototype.location = $util.emptyArray; + StringValue.prototype.value = ""; /** - * Creates a new SourceCodeInfo instance using the specified properties. + * Creates a new StringValue instance using the specified properties. * @function create - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.StringValue * @static - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance + * @param {google.protobuf.IStringValue=} [properties] Properties to set + * @returns {google.protobuf.StringValue} StringValue instance */ - SourceCodeInfo.create = function create(properties) { - return new SourceCodeInfo(properties); + StringValue.create = function create(properties) { + return new StringValue(properties); }; /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. * @function encode - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.StringValue * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encode = function encode(message, writer) { + StringValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.location != null && message.location.length) - for (var i = 0; i < message.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); return writer; }; /** - * Encodes the specified SourceCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. + * Encodes the specified StringValue message, length delimited. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.StringValue * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode + * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SourceCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + StringValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. + * Decodes a StringValue message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.StringValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.StringValue} StringValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decode = function decode(reader, length) { + StringValue.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.protobuf.SourceCodeInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.StringValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + message.value = reader.string(); break; default: reader.skipType(tag & 7); @@ -38609,467 +48923,107 @@ }; /** - * Decodes a SourceCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a StringValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.StringValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.StringValue} StringValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SourceCodeInfo.decodeDelimited = function decodeDelimited(reader) { + StringValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SourceCodeInfo message. + * Verifies a StringValue message. * @function verify - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.StringValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SourceCodeInfo.verify = function verify(message) { + StringValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - if (!Array.isArray(message.location)) - return "location: array expected"; - for (var i = 0; i < message.location.length; ++i) { - var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); - if (error) - return "location." + error; - } - } + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; /** - * Creates a SourceCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates a StringValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.StringValue * @static * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo + * @returns {google.protobuf.StringValue} StringValue */ - SourceCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo) + StringValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.StringValue) return object; - var message = new $root.google.protobuf.SourceCodeInfo(); - if (object.location) { - if (!Array.isArray(object.location)) - throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); - message.location = []; - for (var i = 0; i < object.location.length; ++i) { - if (typeof object.location[i] !== "object") - throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); - message.location[i] = $root.google.protobuf.SourceCodeInfo.Location.fromObject(object.location[i]); - } - } + var message = new $root.google.protobuf.StringValue(); + if (object.value != null) + message.value = String(object.value); return message; }; /** - * Creates a plain object from a SourceCodeInfo message. Also converts values to other types if specified. + * Creates a plain object from a StringValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.StringValue * @static - * @param {google.protobuf.SourceCodeInfo} message SourceCodeInfo + * @param {google.protobuf.StringValue} message StringValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SourceCodeInfo.toObject = function toObject(message, options) { + StringValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.location = []; - if (message.location && message.location.length) { - object.location = []; - for (var j = 0; j < message.location.length; ++j) - object.location[j] = $root.google.protobuf.SourceCodeInfo.Location.toObject(message.location[j], options); - } + if (options.defaults) + object.value = ""; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this SourceCodeInfo to JSON. + * Converts this StringValue to JSON. * @function toJSON - * @memberof google.protobuf.SourceCodeInfo + * @memberof google.protobuf.StringValue * @instance * @returns {Object.} JSON object */ - SourceCodeInfo.prototype.toJSON = function toJSON() { + StringValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - SourceCodeInfo.Location = (function() { - - /** - * Properties of a Location. - * @memberof google.protobuf.SourceCodeInfo - * @interface ILocation - * @property {Array.|null} [path] Location path - * @property {Array.|null} [span] Location span - * @property {string|null} [leadingComments] Location leadingComments - * @property {string|null} [trailingComments] Location trailingComments - * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments - */ - - /** - * Constructs a new Location. - * @memberof google.protobuf.SourceCodeInfo - * @classdesc Represents a Location. - * @implements ILocation - * @constructor - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - */ - function Location(properties) { - this.path = []; - this.span = []; - this.leadingDetachedComments = []; - 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]]; - } - - /** - * Location path. - * @member {Array.} path - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.path = $util.emptyArray; - - /** - * Location span. - * @member {Array.} span - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.span = $util.emptyArray; - - /** - * Location leadingComments. - * @member {string} leadingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingComments = ""; - - /** - * Location trailingComments. - * @member {string} trailingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.trailingComments = ""; - - /** - * Location leadingDetachedComments. - * @member {Array.} leadingDetachedComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingDetachedComments = $util.emptyArray; - - /** - * Creates a new Location instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo.Location} Location instance - */ - Location.create = function create(properties) { - return new Location(properties); - }; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.span != null && message.span.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.span.length; ++i) - writer.int32(message.span[i]); - writer.ldelim(); - } - if (message.leadingComments != null && Object.hasOwnProperty.call(message, "leadingComments")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && Object.hasOwnProperty.call(message, "trailingComments")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); - if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); - return writer; - }; - - /** - * Encodes the specified Location message, length delimited. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Location message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.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.protobuf.SourceCodeInfo.Location(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - case 3: - message.leadingComments = reader.string(); - break; - case 4: - message.trailingComments = reader.string(); - break; - case 6: - if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) - message.leadingDetachedComments = []; - message.leadingDetachedComments.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Location message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Location message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Location.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.span != null && message.hasOwnProperty("span")) { - if (!Array.isArray(message.span)) - return "span: array expected"; - for (var i = 0; i < message.span.length; ++i) - if (!$util.isInteger(message.span[i])) - return "span: integer[] expected"; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - if (!$util.isString(message.leadingComments)) - return "leadingComments: string expected"; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - if (!$util.isString(message.trailingComments)) - return "trailingComments: string expected"; - if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { - if (!Array.isArray(message.leadingDetachedComments)) - return "leadingDetachedComments: array expected"; - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - if (!$util.isString(message.leadingDetachedComments[i])) - return "leadingDetachedComments: string[] expected"; - } - return null; - }; - - /** - * Creates a Location message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.SourceCodeInfo.Location} Location - */ - Location.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.SourceCodeInfo.Location) - return object; - var message = new $root.google.protobuf.SourceCodeInfo.Location(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.span) { - if (!Array.isArray(object.span)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); - message.span = []; - for (var i = 0; i < object.span.length; ++i) - message.span[i] = object.span[i] | 0; - } - if (object.leadingComments != null) - message.leadingComments = String(object.leadingComments); - if (object.trailingComments != null) - message.trailingComments = String(object.trailingComments); - if (object.leadingDetachedComments) { - if (!Array.isArray(object.leadingDetachedComments)) - throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); - message.leadingDetachedComments = []; - for (var i = 0; i < object.leadingDetachedComments.length; ++i) - message.leadingDetachedComments[i] = String(object.leadingDetachedComments[i]); - } - return message; - }; - - /** - * Creates a plain object from a Location message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.Location} message Location - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Location.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) { - object.path = []; - object.span = []; - object.leadingDetachedComments = []; - } - if (options.defaults) { - object.leadingComments = ""; - object.trailingComments = ""; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.span && message.span.length) { - object.span = []; - for (var j = 0; j < message.span.length; ++j) - object.span[j] = message.span[j]; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - object.leadingComments = message.leadingComments; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - object.trailingComments = message.trailingComments; - if (message.leadingDetachedComments && message.leadingDetachedComments.length) { - object.leadingDetachedComments = []; - for (var j = 0; j < message.leadingDetachedComments.length; ++j) - object.leadingDetachedComments[j] = message.leadingDetachedComments[j]; - } - return object; - }; - - /** - * Converts this Location to JSON. - * @function toJSON - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - * @returns {Object.} JSON object - */ - Location.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Location; - })(); - - return SourceCodeInfo; + return StringValue; })(); - protobuf.GeneratedCodeInfo = (function() { + protobuf.BytesValue = (function() { /** - * Properties of a GeneratedCodeInfo. + * Properties of a BytesValue. * @memberof google.protobuf - * @interface IGeneratedCodeInfo - * @property {Array.|null} [annotation] GeneratedCodeInfo annotation + * @interface IBytesValue + * @property {Uint8Array|null} [value] BytesValue value */ /** - * Constructs a new GeneratedCodeInfo. + * Constructs a new BytesValue. * @memberof google.protobuf - * @classdesc Represents a GeneratedCodeInfo. - * @implements IGeneratedCodeInfo + * @classdesc Represents a BytesValue. + * @implements IBytesValue * @constructor - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set + * @param {google.protobuf.IBytesValue=} [properties] Properties to set */ - function GeneratedCodeInfo(properties) { - this.annotation = []; + function BytesValue(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39077,78 +49031,75 @@ } /** - * GeneratedCodeInfo annotation. - * @member {Array.} annotation - * @memberof google.protobuf.GeneratedCodeInfo + * BytesValue value. + * @member {Uint8Array} value + * @memberof google.protobuf.BytesValue * @instance */ - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; + BytesValue.prototype.value = $util.newBuffer([]); /** - * Creates a new GeneratedCodeInfo instance using the specified properties. + * Creates a new BytesValue instance using the specified properties. * @function create - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.BytesValue * @static - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance + * @param {google.protobuf.IBytesValue=} [properties] Properties to set + * @returns {google.protobuf.BytesValue} BytesValue instance */ - GeneratedCodeInfo.create = function create(properties) { - return new GeneratedCodeInfo(properties); + BytesValue.create = function create(properties) { + return new BytesValue(properties); }; /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. * @function encode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.BytesValue * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encode = function encode(message, writer) { + BytesValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.annotation != null && message.annotation.length) - for (var i = 0; i < message.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); return writer; }; /** - * Encodes the specified GeneratedCodeInfo message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. + * Encodes the specified BytesValue message, length delimited. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.BytesValue * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode + * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GeneratedCodeInfo.encodeDelimited = function encodeDelimited(message, writer) { + BytesValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. + * Decodes a BytesValue message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.BytesValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.BytesValue} BytesValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decode = function decode(reader, length) { + BytesValue.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.protobuf.GeneratedCodeInfo(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BytesValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + message.value = reader.bytes(); break; default: reader.skipType(tag & 7); @@ -39159,402 +49110,117 @@ }; /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer, length delimited. + * Decodes a BytesValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.BytesValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.BytesValue} BytesValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GeneratedCodeInfo.decodeDelimited = function decodeDelimited(reader) { + BytesValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GeneratedCodeInfo message. + * Verifies a BytesValue message. * @function verify - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.BytesValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GeneratedCodeInfo.verify = function verify(message) { + BytesValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.annotation != null && message.hasOwnProperty("annotation")) { - if (!Array.isArray(message.annotation)) - return "annotation: array expected"; - for (var i = 0; i < message.annotation.length; ++i) { - var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); - if (error) - return "annotation." + error; - } - } + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates a GeneratedCodeInfo message from a plain object. Also converts values to their respective internal types. + * Creates a BytesValue message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.BytesValue * @static * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo + * @returns {google.protobuf.BytesValue} BytesValue */ - GeneratedCodeInfo.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo) + BytesValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.BytesValue) return object; - var message = new $root.google.protobuf.GeneratedCodeInfo(); - if (object.annotation) { - if (!Array.isArray(object.annotation)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); - message.annotation = []; - for (var i = 0; i < object.annotation.length; ++i) { - if (typeof object.annotation[i] !== "object") - throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); - message.annotation[i] = $root.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(object.annotation[i]); - } - } + var message = new $root.google.protobuf.BytesValue(); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; return message; }; /** - * Creates a plain object from a GeneratedCodeInfo message. Also converts values to other types if specified. + * Creates a plain object from a BytesValue message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.BytesValue * @static - * @param {google.protobuf.GeneratedCodeInfo} message GeneratedCodeInfo + * @param {google.protobuf.BytesValue} message BytesValue * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GeneratedCodeInfo.toObject = function toObject(message, options) { + BytesValue.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.annotation = []; - if (message.annotation && message.annotation.length) { - object.annotation = []; - for (var j = 0; j < message.annotation.length; ++j) - object.annotation[j] = $root.google.protobuf.GeneratedCodeInfo.Annotation.toObject(message.annotation[j], options); - } + if (options.defaults) + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; return object; }; /** - * Converts this GeneratedCodeInfo to JSON. + * Converts this BytesValue to JSON. * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo + * @memberof google.protobuf.BytesValue * @instance * @returns {Object.} JSON object */ - GeneratedCodeInfo.prototype.toJSON = function toJSON() { + BytesValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - GeneratedCodeInfo.Annotation = (function() { - - /** - * Properties of an Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @interface IAnnotation - * @property {Array.|null} [path] Annotation path - * @property {string|null} [sourceFile] Annotation sourceFile - * @property {number|null} [begin] Annotation begin - * @property {number|null} [end] Annotation end - */ - - /** - * Constructs a new Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @classdesc Represents an Annotation. - * @implements IAnnotation - * @constructor - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - */ - function Annotation(properties) { - this.path = []; - 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]]; - } - - /** - * Annotation path. - * @member {Array.} path - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.path = $util.emptyArray; - - /** - * Annotation sourceFile. - * @member {string} sourceFile - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.sourceFile = ""; - - /** - * Annotation begin. - * @member {number} begin - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.begin = 0; - - /** - * Annotation end. - * @member {number} end - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.end = 0; - - /** - * Creates a new Annotation instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance - */ - Annotation.create = function create(properties) { - return new Annotation(properties); - }; - - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.sourceFile != null && Object.hasOwnProperty.call(message, "sourceFile")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && Object.hasOwnProperty.call(message, "begin")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); - return writer; - }; - - /** - * Encodes the specified Annotation message, length delimited. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an Annotation message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.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.protobuf.GeneratedCodeInfo.Annotation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - message.sourceFile = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an Annotation message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an Annotation message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - if (!$util.isString(message.sourceFile)) - return "sourceFile: string expected"; - if (message.begin != null && message.hasOwnProperty("begin")) - if (!$util.isInteger(message.begin)) - return "begin: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - /** - * Creates an Annotation message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} object Plain object - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - */ - Annotation.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.GeneratedCodeInfo.Annotation) - return object; - var message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - if (object.path) { - if (!Array.isArray(object.path)) - throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); - message.path = []; - for (var i = 0; i < object.path.length; ++i) - message.path[i] = object.path[i] | 0; - } - if (object.sourceFile != null) - message.sourceFile = String(object.sourceFile); - if (object.begin != null) - message.begin = object.begin | 0; - if (object.end != null) - message.end = object.end | 0; - return message; - }; - - /** - * Creates a plain object from an Annotation message. Also converts values to other types if specified. - * @function toObject - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.Annotation} message Annotation - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Annotation.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.path = []; - if (options.defaults) { - object.sourceFile = ""; - object.begin = 0; - object.end = 0; - } - if (message.path && message.path.length) { - object.path = []; - for (var j = 0; j < message.path.length; ++j) - object.path[j] = message.path[j]; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - object.sourceFile = message.sourceFile; - if (message.begin != null && message.hasOwnProperty("begin")) - object.begin = message.begin; - if (message.end != null && message.hasOwnProperty("end")) - object.end = message.end; - return object; - }; - - /** - * Converts this Annotation to JSON. - * @function toJSON - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - * @returns {Object.} JSON object - */ - Annotation.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Annotation; - })(); - - return GeneratedCodeInfo; + return BytesValue; })(); - protobuf.Empty = (function() { + protobuf.Any = (function() { /** - * Properties of an Empty. + * Properties of an Any. * @memberof google.protobuf - * @interface IEmpty + * @interface IAny + * @property {string|null} [type_url] Any type_url + * @property {Uint8Array|null} [value] Any value */ /** - * Constructs a new Empty. + * Constructs a new Any. * @memberof google.protobuf - * @classdesc Represents an Empty. - * @implements IEmpty + * @classdesc Represents an Any. + * @implements IAny * @constructor - * @param {google.protobuf.IEmpty=} [properties] Properties to set + * @param {google.protobuf.IAny=} [properties] Properties to set */ - function Empty(properties) { + function Any(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39562,63 +49228,89 @@ } /** - * Creates a new Empty instance using the specified properties. + * Any type_url. + * @member {string} type_url + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.type_url = ""; + + /** + * Any value. + * @member {Uint8Array} value + * @memberof google.protobuf.Any + * @instance + */ + Any.prototype.value = $util.newBuffer([]); + + /** + * Creates a new Any instance using the specified properties. * @function create - * @memberof google.protobuf.Empty + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.IEmpty=} [properties] Properties to set - * @returns {google.protobuf.Empty} Empty instance + * @param {google.protobuf.IAny=} [properties] Properties to set + * @returns {google.protobuf.Any} Any instance */ - Empty.create = function create(properties) { - return new Empty(properties); + Any.create = function create(properties) { + return new Any(properties); }; /** - * Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. * @function encode - * @memberof google.protobuf.Empty + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {google.protobuf.IAny} message Any message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Empty.encode = function encode(message, writer) { + Any.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); return writer; }; /** - * Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages. + * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Empty + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.IEmpty} message Empty message or plain object to encode + * @param {google.protobuf.IAny} message Any message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Empty.encodeDelimited = function encodeDelimited(message, writer) { + Any.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Empty message from the specified reader or buffer. + * Decodes an Any message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Empty + * @memberof google.protobuf.Any * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Empty} Empty + * @returns {google.protobuf.Any} Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Empty.decode = function decode(reader, length) { + Any.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.protobuf.Empty(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.type_url = reader.string(); + break; + case 2: + message.value = reader.bytes(); + break; default: reader.skipType(tag & 7); break; @@ -39628,95 +49320,184 @@ }; /** - * Decodes an Empty message from the specified reader or buffer, length delimited. + * Decodes an Any message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Empty + * @memberof google.protobuf.Any * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Empty} Empty + * @returns {google.protobuf.Any} Any * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Empty.decodeDelimited = function decodeDelimited(reader) { + Any.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Empty message. + * Verifies an Any message. * @function verify - * @memberof google.protobuf.Empty + * @memberof google.protobuf.Any * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Empty.verify = function verify(message) { + Any.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.type_url != null && message.hasOwnProperty("type_url")) + if (!$util.isString(message.type_url)) + return "type_url: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) + return "value: buffer expected"; return null; }; /** - * Creates an Empty message from a plain object. Also converts values to their respective internal types. + * Creates an Any message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Empty + * @memberof google.protobuf.Any * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Empty} Empty + * @returns {google.protobuf.Any} Any */ - Empty.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Empty) + Any.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Any) return object; - return new $root.google.protobuf.Empty(); + var message = new $root.google.protobuf.Any(); + if (object.type_url != null) + message.type_url = String(object.type_url); + if (object.value != null) + if (typeof object.value === "string") + $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); + else if (object.value.length) + message.value = object.value; + return message; }; /** - * Creates a plain object from an Empty message. Also converts values to other types if specified. + * Creates a plain object from an Any message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Empty + * @memberof google.protobuf.Any * @static - * @param {google.protobuf.Empty} message Empty + * @param {google.protobuf.Any} message Any * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Empty.toObject = function toObject() { - return {}; + Any.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.type_url = ""; + if (options.bytes === String) + object.value = ""; + else { + object.value = []; + if (options.bytes !== Array) + object.value = $util.newBuffer(object.value); + } + } + if (message.type_url != null && message.hasOwnProperty("type_url")) + object.type_url = message.type_url; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; + return object; }; /** - * Converts this Empty to JSON. + * Converts this Any to JSON. * @function toJSON - * @memberof google.protobuf.Empty + * @memberof google.protobuf.Any * @instance * @returns {Object.} JSON object */ - Empty.prototype.toJSON = function toJSON() { + Any.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Empty; + return Any; })(); - protobuf.Timestamp = (function() { + return protobuf; + })(); + + google.rpc = (function() { + + /** + * Namespace rpc. + * @memberof google + * @namespace + */ + var rpc = {}; + + /** + * Code enum. + * @name google.rpc.Code + * @enum {number} + * @property {number} OK=0 OK value + * @property {number} CANCELLED=1 CANCELLED value + * @property {number} UNKNOWN=2 UNKNOWN value + * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value + * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value + * @property {number} NOT_FOUND=5 NOT_FOUND value + * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value + * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value + * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value + * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value + * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value + * @property {number} ABORTED=10 ABORTED value + * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value + * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value + * @property {number} INTERNAL=13 INTERNAL value + * @property {number} UNAVAILABLE=14 UNAVAILABLE value + * @property {number} DATA_LOSS=15 DATA_LOSS value + */ + rpc.Code = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OK"] = 0; + values[valuesById[1] = "CANCELLED"] = 1; + values[valuesById[2] = "UNKNOWN"] = 2; + values[valuesById[3] = "INVALID_ARGUMENT"] = 3; + values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4; + values[valuesById[5] = "NOT_FOUND"] = 5; + values[valuesById[6] = "ALREADY_EXISTS"] = 6; + values[valuesById[7] = "PERMISSION_DENIED"] = 7; + values[valuesById[16] = "UNAUTHENTICATED"] = 16; + values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8; + values[valuesById[9] = "FAILED_PRECONDITION"] = 9; + values[valuesById[10] = "ABORTED"] = 10; + values[valuesById[11] = "OUT_OF_RANGE"] = 11; + values[valuesById[12] = "UNIMPLEMENTED"] = 12; + values[valuesById[13] = "INTERNAL"] = 13; + values[valuesById[14] = "UNAVAILABLE"] = 14; + values[valuesById[15] = "DATA_LOSS"] = 15; + return values; + })(); + + rpc.Status = (function() { /** - * Properties of a Timestamp. - * @memberof google.protobuf - * @interface ITimestamp - * @property {number|Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos + * Properties of a Status. + * @memberof google.rpc + * @interface IStatus + * @property {number|null} [code] Status code + * @property {string|null} [message] Status message + * @property {Array.|null} [details] Status details */ /** - * Constructs a new Timestamp. - * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp + * Constructs a new Status. + * @memberof google.rpc + * @classdesc Represents a Status. + * @implements IStatus * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set + * @param {google.rpc.IStatus=} [properties] Properties to set */ - function Timestamp(properties) { + function Status(properties) { + this.details = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -39724,88 +49505,104 @@ } /** - * Timestamp seconds. - * @member {number|Long} seconds - * @memberof google.protobuf.Timestamp + * Status code. + * @member {number} code + * @memberof google.rpc.Status * @instance */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Status.prototype.code = 0; /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp + * Status message. + * @member {string} message + * @memberof google.rpc.Status * @instance */ - Timestamp.prototype.nanos = 0; + Status.prototype.message = ""; /** - * Creates a new Timestamp instance using the specified properties. + * Status details. + * @member {Array.} details + * @memberof google.rpc.Status + * @instance + */ + Status.prototype.details = $util.emptyArray; + + /** + * Creates a new Status instance using the specified properties. * @function create - * @memberof google.protobuf.Timestamp + * @memberof google.rpc.Status * @static - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - * @returns {google.protobuf.Timestamp} Timestamp instance + * @param {google.rpc.IStatus=} [properties] Properties to set + * @returns {google.rpc.Status} Status instance */ - Timestamp.create = function create(properties) { - return new Timestamp(properties); + Status.create = function create(properties) { + return new Status(properties); }; /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified Status message. Does not implicitly {@link google.rpc.Status.verify|verify} messages. * @function encode - * @memberof google.protobuf.Timestamp + * @memberof google.rpc.Status * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.rpc.IStatus} message Status message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Timestamp.encode = function encode(message, writer) { + Status.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + if (message.code != null && Object.hasOwnProperty.call(message, "code")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, "message")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (message.details != null && message.details.length) + for (var i = 0; i < message.details.length; ++i) + $root.google.protobuf.Any.encode(message.details[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. + * Encodes the specified Status message, length delimited. Does not implicitly {@link google.rpc.Status.verify|verify} messages. * @function encodeDelimited - * @memberof google.protobuf.Timestamp + * @memberof google.rpc.Status * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode + * @param {google.rpc.IStatus} message Status message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Timestamp.encodeDelimited = function encodeDelimited(message, writer) { + Status.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Timestamp message from the specified reader or buffer. + * Decodes a Status message from the specified reader or buffer. * @function decode - * @memberof google.protobuf.Timestamp + * @memberof google.rpc.Status * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.rpc.Status} Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Timestamp.decode = function decode(reader, length) { + Status.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.protobuf.Timestamp(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.rpc.Status(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.seconds = reader.int64(); + message.code = reader.int32(); break; case 2: - message.nanos = reader.int32(); + message.message = reader.string(); + break; + case 3: + if (!(message.details && message.details.length)) + message.details = []; + message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -39816,113 +49613,125 @@ }; /** - * Decodes a Timestamp message from the specified reader or buffer, length delimited. + * Decodes a Status message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.protobuf.Timestamp + * @memberof google.rpc.Status * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.rpc.Status} Status * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Timestamp.decodeDelimited = function decodeDelimited(reader) { + Status.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Timestamp message. + * Verifies a Status message. * @function verify - * @memberof google.protobuf.Timestamp + * @memberof google.rpc.Status * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Timestamp.verify = function verify(message) { + Status.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; + if (message.code != null && message.hasOwnProperty("code")) + if (!$util.isInteger(message.code)) + return "code: integer expected"; + if (message.message != null && message.hasOwnProperty("message")) + if (!$util.isString(message.message)) + return "message: string expected"; + if (message.details != null && message.hasOwnProperty("details")) { + if (!Array.isArray(message.details)) + return "details: array expected"; + for (var i = 0; i < message.details.length; ++i) { + var error = $root.google.protobuf.Any.verify(message.details[i]); + if (error) + return "details." + error; + } + } return null; }; /** - * Creates a Timestamp message from a plain object. Also converts values to their respective internal types. + * Creates a Status message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.protobuf.Timestamp + * @memberof google.rpc.Status * @static * @param {Object.} object Plain object - * @returns {google.protobuf.Timestamp} Timestamp + * @returns {google.rpc.Status} Status */ - Timestamp.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Timestamp) + Status.fromObject = function fromObject(object) { + if (object instanceof $root.google.rpc.Status) return object; - var message = new $root.google.protobuf.Timestamp(); - if (object.seconds != null) - if ($util.Long) - (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; - else if (typeof object.seconds === "string") - message.seconds = parseInt(object.seconds, 10); - else if (typeof object.seconds === "number") - message.seconds = object.seconds; - else if (typeof object.seconds === "object") - message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); - if (object.nanos != null) - message.nanos = object.nanos | 0; + var message = new $root.google.rpc.Status(); + if (object.code != null) + message.code = object.code | 0; + if (object.message != null) + message.message = String(object.message); + if (object.details) { + if (!Array.isArray(object.details)) + throw TypeError(".google.rpc.Status.details: array expected"); + message.details = []; + for (var i = 0; i < object.details.length; ++i) { + if (typeof object.details[i] !== "object") + throw TypeError(".google.rpc.Status.details: object expected"); + message.details[i] = $root.google.protobuf.Any.fromObject(object.details[i]); + } + } return message; }; /** - * Creates a plain object from a Timestamp message. Also converts values to other types if specified. + * Creates a plain object from a Status message. Also converts values to other types if specified. * @function toObject - * @memberof google.protobuf.Timestamp + * @memberof google.rpc.Status * @static - * @param {google.protobuf.Timestamp} message Timestamp + * @param {google.rpc.Status} message Status * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Timestamp.toObject = function toObject(message, options) { + Status.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.details = []; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.seconds = options.longs === String ? "0" : 0; - object.nanos = 0; + object.code = 0; + object.message = ""; + } + if (message.code != null && message.hasOwnProperty("code")) + object.code = message.code; + if (message.message != null && message.hasOwnProperty("message")) + object.message = message.message; + if (message.details && message.details.length) { + object.details = []; + for (var j = 0; j < message.details.length; ++j) + object.details[j] = $root.google.protobuf.Any.toObject(message.details[j], options); } - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (typeof message.seconds === "number") - object.seconds = options.longs === String ? String(message.seconds) : message.seconds; - else - object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; - if (message.nanos != null && message.hasOwnProperty("nanos")) - object.nanos = message.nanos; return object; }; /** - * Converts this Timestamp to JSON. + * Converts this Status to JSON. * @function toJSON - * @memberof google.protobuf.Timestamp + * @memberof google.rpc.Status * @instance * @returns {Object.} JSON object */ - Timestamp.prototype.toJSON = function toJSON() { + Status.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Timestamp; + return Status; })(); - return protobuf; + return rpc; })(); return google; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 44d899be426..f0a20e700cd 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -12,7 +12,9 @@ "java_outer_classname": "ClusterServiceProto", "java_package": "com.google.container.v1", "php_namespace": "Google\\Cloud\\Container\\V1", - "ruby_package": "Google::Cloud::Container::V1" + "ruby_package": "Google::Cloud::Container::V1", + "(google.api.resource_definition).type": "pubsub.googleapis.com/Topic", + "(google.api.resource_definition).pattern": "projects/{project}/topics/{topic}" }, "nested": { "ClusterManager": { @@ -844,6 +846,31 @@ } } }, + "LinuxNodeConfig": { + "fields": { + "sysctls": { + "keyType": "string", + "type": "string", + "id": 1 + } + } + }, + "NodeKubeletConfig": { + "fields": { + "cpuManagerPolicy": { + "type": "string", + "id": 1 + }, + "cpuCfsQuota": { + "type": "google.protobuf.BoolValue", + "id": 2 + }, + "cpuCfsQuotaPeriod": { + "type": "string", + "id": 3 + } + } + }, "NodeConfig": { "fields": { "machineType": { @@ -928,9 +955,66 @@ "type": "ShieldedInstanceConfig", "id": 20 }, + "linuxNodeConfig": { + "type": "LinuxNodeConfig", + "id": 21 + }, + "kubeletConfig": { + "type": "NodeKubeletConfig", + "id": 22 + }, "bootDiskKmsKey": { "type": "string", "id": 23 + }, + "gcfsConfig": { + "type": "GcfsConfig", + "id": 25 + }, + "advancedMachineFeatures": { + "type": "AdvancedMachineFeatures", + "id": 26 + }, + "gvnic": { + "type": "VirtualNIC", + "id": 29 + } + } + }, + "AdvancedMachineFeatures": { + "oneofs": { + "_threadsPerCore": { + "oneof": [ + "threadsPerCore" + ] + } + }, + "fields": { + "threadsPerCore": { + "type": "int64", + "id": 1, + "options": { + "proto3_optional": true + } + } + } + }, + "NodeNetworkConfig": { + "fields": { + "createPodRange": { + "type": "bool", + "id": 4, + "options": { + "(google.api.field_behavior)": "INPUT_ONLY" + } + }, + "podRange": { + "type": "string", + "id": 5 + }, + "podIpv4CidrBlock": { + "type": "string", + "id": 6 } } }, @@ -962,6 +1046,14 @@ } } }, + "GcfsConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "ReservationAffinity": { "fields": { "consumeReservationType": { @@ -1089,6 +1181,14 @@ "configConnectorConfig": { "type": "ConfigConnectorConfig", "id": 10 + }, + "gcePersistentDiskCsiDriverConfig": { + "type": "GcePersistentDiskCsiDriverConfig", + "id": 11 + }, + "gcpFilestoreCsiDriverConfig": { + "type": "GcpFilestoreCsiDriverConfig", + "id": 14 } } }, @@ -1213,6 +1313,22 @@ } } }, + "GcePersistentDiskCsiDriverConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, + "GcpFilestoreCsiDriverConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "MasterAuthorizedNetworksConfig": { "fields": { "enabled": { @@ -1342,6 +1458,13 @@ } }, "Cluster": { + "oneofs": { + "_nodePoolDefaults": { + "oneof": [ + "nodePoolDefaults" + ] + } + }, "fields": { "name": { "type": "string", @@ -1484,6 +1607,18 @@ "type": "WorkloadIdentityConfig", "id": 43 }, + "meshCertificates": { + "type": "MeshCertificates", + "id": 67 + }, + "notificationConfig": { + "type": "NotificationConfig", + "id": 49 + }, + "confidentialNodes": { + "type": "ConfidentialNodes", + "id": 50 + }, "selfLink": { "type": "string", "id": 100 @@ -1572,6 +1707,32 @@ "rule": "repeated", "type": "StatusCondition", "id": 118 + }, + "autopilot": { + "type": "Autopilot", + "id": 128 + }, + "id": { + "type": "string", + "id": 129, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "nodePoolDefaults": { + "type": "NodePoolDefaults", + "id": 131, + "options": { + "proto3_optional": true + } + }, + "loggingConfig": { + "type": "LoggingConfig", + "id": 132 + }, + "monitoringConfig": { + "type": "MonitoringConfig", + "id": 133 } }, "nested": { @@ -1588,6 +1749,22 @@ } } }, + "NodePoolDefaults": { + "fields": { + "nodeConfigDefaults": { + "type": "NodeConfigDefaults", + "id": 1 + } + } + }, + "NodeConfigDefaults": { + "fields": { + "gcfsConfig": { + "type": "GcfsConfig", + "id": 1 + } + } + }, "ClusterUpdate": { "fields": { "desiredNodeVersion": { @@ -1618,10 +1795,18 @@ "type": "WorkloadIdentityConfig", "id": 47 }, + "desiredMeshCertificates": { + "type": "MeshCertificates", + "id": 67 + }, "desiredShieldedNodes": { "type": "ShieldedNodes", "id": 48 }, + "desiredDnsConfig": { + "type": "DNSConfig", + "id": 53 + }, "desiredNodePoolAutoscaling": { "type": "NodePoolAutoscaling", "id": 9 @@ -1671,13 +1856,45 @@ "type": "ReleaseChannel", "id": 31 }, + "desiredL4ilbSubsettingConfig": { + "type": "ILBSubsettingConfig", + "id": 39 + }, + "desiredDatapathProvider": { + "type": "DatapathProvider", + "id": 50 + }, + "desiredPrivateIpv6GoogleAccess": { + "type": "PrivateIPv6GoogleAccess", + "id": 51 + }, + "desiredNotificationConfig": { + "type": "NotificationConfig", + "id": 55 + }, "desiredAuthenticatorGroupsConfig": { "type": "AuthenticatorGroupsConfig", "id": 63 }, + "desiredLoggingConfig": { + "type": "LoggingConfig", + "id": 64 + }, + "desiredMonitoringConfig": { + "type": "MonitoringConfig", + "id": 65 + }, + "desiredServiceExternalIpsConfig": { + "type": "ServiceExternalIPsConfig", + "id": 60 + }, "desiredMasterVersion": { "type": "string", "id": 100 + }, + "desiredGcfsConfig": { + "type": "GcfsConfig", + "id": 109 } } }, @@ -1710,6 +1927,7 @@ "type": "string", "id": 5, "options": { + "deprecated": true, "(google.api.field_behavior)": "OUTPUT_ONLY" } }, @@ -1743,12 +1961,22 @@ "clusterConditions": { "rule": "repeated", "type": "StatusCondition", - "id": 13 + "id": 13, + "options": { + "deprecated": true + } }, "nodepoolConditions": { "rule": "repeated", "type": "StatusCondition", - "id": 14 + "id": 14, + "options": { + "deprecated": true + } + }, + "error": { + "type": "google.rpc.Status", + "id": 15 } }, "nested": { @@ -1994,6 +2222,22 @@ "upgradeSettings": { "type": "NodePool.UpgradeSettings", "id": 15 + }, + "linuxNodeConfig": { + "type": "LinuxNodeConfig", + "id": 19 + }, + "kubeletConfig": { + "type": "NodeKubeletConfig", + "id": 20 + }, + "gcfsConfig": { + "type": "GcfsConfig", + "id": 22 + }, + "gvnic": { + "type": "VirtualNIC", + "id": 29 } } }, @@ -2662,6 +2906,10 @@ "type": "string", "id": 13 }, + "networkConfig": { + "type": "NodeNetworkConfig", + "id": 14 + }, "selfLink": { "type": "string", "id": 100 @@ -2804,7 +3052,18 @@ } }, "TimeWindow": { + "oneofs": { + "options": { + "oneof": [ + "maintenanceExclusionOptions" + ] + } + }, "fields": { + "maintenanceExclusionOptions": { + "type": "MaintenanceExclusionOptions", + "id": 3 + }, "startTime": { "type": "google.protobuf.Timestamp", "id": 1 @@ -2815,6 +3074,23 @@ } } }, + "MaintenanceExclusionOptions": { + "fields": { + "scope": { + "type": "Scope", + "id": 1 + } + }, + "nested": { + "Scope": { + "values": { + "NO_UPGRADES": 0, + "NO_MINOR_UPGRADES": 1, + "NO_MINOR_OR_NODE_UPGRADES": 2 + } + } + } + }, "RecurringTimeWindow": { "fields": { "window": { @@ -2981,6 +3257,10 @@ "type": "ResourceLimit", "id": 2 }, + "autoscalingProfile": { + "type": "AutoscalingProfile", + "id": 3 + }, "autoprovisioningNodePoolDefaults": { "type": "AutoprovisioningNodePoolDefaults", "id": 4 @@ -2990,6 +3270,15 @@ "type": "string", "id": 5 } + }, + "nested": { + "AutoscalingProfile": { + "values": { + "PROFILE_UNSPECIFIED": 0, + "OPTIMIZE_UTILIZATION": 1, + "BALANCED": 2 + } + } } }, "AutoprovisioningNodePoolDefaults": { @@ -3224,6 +3513,10 @@ "acceleratorType": { "type": "string", "id": 2 + }, + "gpuPartitionSize": { + "type": "string", + "id": 3 } } }, @@ -3320,11 +3613,18 @@ "fields": { "code": { "type": "Code", - "id": 1 + "id": 1, + "options": { + "deprecated": true + } }, "message": { "type": "string", "id": 2 + }, + "canonicalCode": { + "type": "google.rpc.Code", + "id": 3 } }, "nested": { @@ -3335,7 +3635,8 @@ "GKE_SERVICE_ACCOUNT_DELETED": 2, "GCE_QUOTA_EXCEEDED": 3, "SET_BY_OPERATOR": 4, - "CLOUD_KMS_KEY_ERROR": 7 + "CLOUD_KMS_KEY_ERROR": 7, + "CA_EXPIRING": 9 } } } @@ -3357,51 +3658,34 @@ "defaultSnatStatus": { "type": "DefaultSnatStatus", "id": 7 - } - } - }, - "GetOpenIDConfigRequest": { - "fields": { - "parent": { - "type": "string", - "id": 1 - } - } - }, - "GetOpenIDConfigResponse": { - "fields": { - "issuer": { - "type": "string", - "id": 1 - }, - "jwksUri": { - "type": "string", - "id": 2 }, - "responseTypesSupported": { - "rule": "repeated", - "type": "string", - "id": 3 + "enableL4ilbSubsetting": { + "type": "bool", + "id": 10 }, - "subjectTypesSupported": { - "rule": "repeated", - "type": "string", - "id": 4 + "datapathProvider": { + "type": "DatapathProvider", + "id": 11 }, - "idTokenSigningAlgValuesSupported": { - "rule": "repeated", - "type": "string", - "id": 5 + "privateIpv6GoogleAccess": { + "type": "PrivateIPv6GoogleAccess", + "id": 12 }, - "claimsSupported": { - "rule": "repeated", - "type": "string", - "id": 6 + "dnsConfig": { + "type": "DNSConfig", + "id": 13 }, - "grantTypes": { - "rule": "repeated", - "type": "string", - "id": 7 + "serviceExternalIpsConfig": { + "type": "ServiceExternalIPsConfig", + "id": 15 + } + } + }, + "ServiceExternalIPsConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 } } }, @@ -3488,6 +3772,45 @@ } } }, + "ILBSubsettingConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, + "DNSConfig": { + "fields": { + "clusterDns": { + "type": "Provider", + "id": 1 + }, + "clusterDnsScope": { + "type": "DNSScope", + "id": 2 + }, + "clusterDnsDomain": { + "type": "string", + "id": 3 + } + }, + "nested": { + "Provider": { + "values": { + "PROVIDER_UNSPECIFIED": 0, + "PLATFORM_DEFAULT": 1, + "CLOUD_DNS": 2 + } + }, + "DNSScope": { + "values": { + "DNS_SCOPE_UNSPECIFIED": 0, + "VPC_SCOPE": 2 + } + } + } + }, "MaxPodsConstraint": { "fields": { "maxPodsPerNode": { @@ -3504,6 +3827,14 @@ } } }, + "MeshCertificates": { + "fields": { + "enableCertificates": { + "type": "google.protobuf.BoolValue", + "id": 1 + } + } + }, "DatabaseEncryption": { "fields": { "state": { @@ -3667,16 +3998,254 @@ "id": 1 } } - } - } - } + }, + "VirtualNIC": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, + "PrivateIPv6GoogleAccess": { + "values": { + "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED": 0, + "PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED": 1, + "PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE": 2, + "PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL": 3 + } + }, + "DatapathProvider": { + "values": { + "DATAPATH_PROVIDER_UNSPECIFIED": 0, + "LEGACY_DATAPATH": 1, + "ADVANCED_DATAPATH": 2 + } + }, + "NotificationConfig": { + "fields": { + "pubsub": { + "type": "PubSub", + "id": 1 + } + }, + "nested": { + "EventType": { + "values": { + "EVENT_TYPE_UNSPECIFIED": 0, + "UPGRADE_AVAILABLE_EVENT": 1, + "UPGRADE_EVENT": 2, + "SECURITY_BULLETIN_EVENT": 3 + } + }, + "PubSub": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + }, + "topic": { + "type": "string", + "id": 2, + "options": { + "(google.api.resource_reference).type": "pubsub.googleapis.com/Topic" + } + }, + "filter": { + "type": "Filter", + "id": 3 + } + } + }, + "Filter": { + "fields": { + "eventType": { + "rule": "repeated", + "type": "EventType", + "id": 1 + } + } + } + } + }, + "ConfidentialNodes": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, + "UpgradeResourceType": { + "values": { + "UPGRADE_RESOURCE_TYPE_UNSPECIFIED": 0, + "MASTER": 1, + "NODE_POOL": 2 + } + }, + "UpgradeEvent": { + "fields": { + "resourceType": { + "type": "UpgradeResourceType", + "id": 1 + }, + "operation": { + "type": "string", + "id": 2 + }, + "operationStartTime": { + "type": "google.protobuf.Timestamp", + "id": 3 + }, + "currentVersion": { + "type": "string", + "id": 4 + }, + "targetVersion": { + "type": "string", + "id": 5 + }, + "resource": { + "type": "string", + "id": 6 + } + } + }, + "UpgradeAvailableEvent": { + "fields": { + "version": { + "type": "string", + "id": 1 + }, + "resourceType": { + "type": "UpgradeResourceType", + "id": 2 + }, + "releaseChannel": { + "type": "ReleaseChannel", + "id": 3 + }, + "resource": { + "type": "string", + "id": 4 + } + } + }, + "SecurityBulletinEvent": { + "fields": { + "resourceTypeAffected": { + "type": "string", + "id": 1 + }, + "bulletinId": { + "type": "string", + "id": 2 + }, + "cveIds": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "severity": { + "type": "string", + "id": 4 + }, + "bulletinUri": { + "type": "string", + "id": 5 + }, + "briefDescription": { + "type": "string", + "id": 6 + }, + "affectedSupportedMinors": { + "rule": "repeated", + "type": "string", + "id": 7 + }, + "patchedVersions": { + "rule": "repeated", + "type": "string", + "id": 8 + }, + "suggestedUpgradeTarget": { + "type": "string", + "id": 9 + }, + "manualStepsRequired": { + "type": "bool", + "id": 10 + } + } + }, + "Autopilot": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, + "LoggingConfig": { + "fields": { + "componentConfig": { + "type": "LoggingComponentConfig", + "id": 1 + } + } + }, + "LoggingComponentConfig": { + "fields": { + "enableComponents": { + "rule": "repeated", + "type": "Component", + "id": 1 + } + }, + "nested": { + "Component": { + "values": { + "COMPONENT_UNSPECIFIED": 0, + "SYSTEM_COMPONENTS": 1, + "WORKLOADS": 2 + } + } + } + }, + "MonitoringConfig": { + "fields": { + "componentConfig": { + "type": "MonitoringComponentConfig", + "id": 1 + } + } + }, + "MonitoringComponentConfig": { + "fields": { + "enableComponents": { + "rule": "repeated", + "type": "Component", + "id": 1 + } + }, + "nested": { + "Component": { + "values": { + "COMPONENT_UNSPECIFIED": 0, + "SYSTEM_COMPONENTS": 1 + } + } + } + } + } + } } }, "api": { "options": { "go_package": "google.golang.org/genproto/googleapis/api/annotations;annotations", "java_multiple_files": true, - "java_outer_classname": "FieldBehaviorProto", + "java_outer_classname": "ResourceProto", "java_package": "com.google.api", "objc_class_prefix": "GAPI", "cc_enable_arenas": true @@ -3802,6 +4371,83 @@ "UNORDERED_LIST": 6, "NON_EMPTY_DEFAULT": 7 } + }, + "resourceReference": { + "type": "google.api.ResourceReference", + "id": 1055, + "extend": "google.protobuf.FieldOptions" + }, + "resourceDefinition": { + "rule": "repeated", + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.FileOptions" + }, + "resource": { + "type": "google.api.ResourceDescriptor", + "id": 1053, + "extend": "google.protobuf.MessageOptions" + }, + "ResourceDescriptor": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "pattern": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "nameField": { + "type": "string", + "id": 3 + }, + "history": { + "type": "History", + "id": 4 + }, + "plural": { + "type": "string", + "id": 5 + }, + "singular": { + "type": "string", + "id": 6 + }, + "style": { + "rule": "repeated", + "type": "Style", + "id": 10 + } + }, + "nested": { + "History": { + "values": { + "HISTORY_UNSPECIFIED": 0, + "ORIGINALLY_SINGLE_PATTERN": 1, + "FUTURE_MULTI_PATTERN": 2 + } + }, + "Style": { + "values": { + "STYLE_UNSPECIFIED": 0, + "DECLARATIVE_FRIENDLY": 1 + } + } + } + }, + "ResourceReference": { + "fields": { + "type": { + "type": "string", + "id": 1 + }, + "childType": { + "type": "string", + "id": 2 + } + } } } }, @@ -4726,6 +5372,140 @@ "id": 2 } } + }, + "DoubleValue": { + "fields": { + "value": { + "type": "double", + "id": 1 + } + } + }, + "FloatValue": { + "fields": { + "value": { + "type": "float", + "id": 1 + } + } + }, + "Int64Value": { + "fields": { + "value": { + "type": "int64", + "id": 1 + } + } + }, + "UInt64Value": { + "fields": { + "value": { + "type": "uint64", + "id": 1 + } + } + }, + "Int32Value": { + "fields": { + "value": { + "type": "int32", + "id": 1 + } + } + }, + "UInt32Value": { + "fields": { + "value": { + "type": "uint32", + "id": 1 + } + } + }, + "BoolValue": { + "fields": { + "value": { + "type": "bool", + "id": 1 + } + } + }, + "StringValue": { + "fields": { + "value": { + "type": "string", + "id": 1 + } + } + }, + "BytesValue": { + "fields": { + "value": { + "type": "bytes", + "id": 1 + } + } + }, + "Any": { + "fields": { + "type_url": { + "type": "string", + "id": 1 + }, + "value": { + "type": "bytes", + "id": 2 + } + } + } + } + }, + "rpc": { + "options": { + "go_package": "google.golang.org/genproto/googleapis/rpc/status;status", + "java_multiple_files": true, + "java_outer_classname": "StatusProto", + "java_package": "com.google.rpc", + "objc_class_prefix": "RPC", + "cc_enable_arenas": true + }, + "nested": { + "Code": { + "values": { + "OK": 0, + "CANCELLED": 1, + "UNKNOWN": 2, + "INVALID_ARGUMENT": 3, + "DEADLINE_EXCEEDED": 4, + "NOT_FOUND": 5, + "ALREADY_EXISTS": 6, + "PERMISSION_DENIED": 7, + "UNAUTHENTICATED": 16, + "RESOURCE_EXHAUSTED": 8, + "FAILED_PRECONDITION": 9, + "ABORTED": 10, + "OUT_OF_RANGE": 11, + "UNIMPLEMENTED": 12, + "INTERNAL": 13, + "UNAVAILABLE": 14, + "DATA_LOSS": 15 + } + }, + "Status": { + "fields": { + "code": { + "type": "int32", + "id": 1 + }, + "message": { + "type": "string", + "id": 2 + }, + "details": { + "rule": "repeated", + "type": "google.protobuf.Any", + "id": 3 + } + } } } } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index 413680c3554..b2707cd61e1 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -58,6 +58,22 @@ function main(nodeVersion, imageType) { * Upgrade settings control disruption and speed of the upgrade. */ // const upgradeSettings = {} + /** + * Parameters that can be configured on Linux nodes. + */ + // const linuxNodeConfig = {} + /** + * Node kubelet configs. + */ + // const kubeletConfig = {} + /** + * GCFS config. + */ + // const gcfsConfig = {} + /** + * Enable or disable gvnic on the node pool. + */ + // const gvnic = {} // Imports the Container library const {ClusterManagerClient} = require('@google-cloud/container').v1; diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index d8822287493..ec0952d5f86 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -784,6 +784,14 @@ export class ClusterManagerClient { * The desired workload metadata config for the node pool. * @param {google.container.v1.NodePool.UpgradeSettings} request.upgradeSettings * Upgrade settings control disruption and speed of the upgrade. + * @param {google.container.v1.LinuxNodeConfig} request.linuxNodeConfig + * Parameters that can be configured on Linux nodes. + * @param {google.container.v1.NodeKubeletConfig} request.kubeletConfig + * Node kubelet configs. + * @param {google.container.v1.GcfsConfig} request.gcfsConfig + * GCFS config. + * @param {google.container.v1.VirtualNIC} request.gvnic + * Enable or disable gvnic on the node pool. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3232,7 +3240,9 @@ export class ClusterManagerClient { return this.innerApiCalls.completeIPRotation(request, options, callback); } /** - * Sets the size for a specific node pool. + * Sets the size for a specific node pool. The new size will be used for all + * replicas, including future replicas created by modifying + * {@link google.container.v1.NodePool.locations|NodePool.locations}. * * @param {Object} request * The request object that will be sent. From 80d64c6c954e1a9ef0f50011759835b1a31939fa Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 25 Jan 2022 16:47:00 -0500 Subject: [PATCH 322/371] fix: reverting unintentional breaking change: GetOpenIdConfigRequest, GetOpenIdConfigResponse (#512) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: reverting unintentional breaking change: GetOpenIdConfigRequest, GetOpenIdConfigResponse PiperOrigin-RevId: 424115592 Source-Link: https://github.com/googleapis/googleapis/commit/853e8a29cecd0816c8b003b299032c3a5168ef8b Source-Link: https://github.com/googleapis/googleapis-gen/commit/8e17f77fb9e4843845bf0ee1d466dcee001cc2c4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGUxN2Y3N2ZiOWU0ODQzODQ1YmYwZWUxZDQ2NmRjZWUwMDFjYzJjNCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../google/container/v1/cluster_service.proto | 33 + packages/google-container/protos/protos.d.ts | 216 +++++++ packages/google-container/protos/protos.js | 589 ++++++++++++++++++ packages/google-container/protos/protos.json | 45 ++ 4 files changed, 883 insertions(+) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index c48f0a8a870..6dc6eeca633 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -3384,6 +3384,39 @@ message ServiceExternalIPsConfig { bool enabled = 1; } +// 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 name) 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 diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 55ff72842ed..dea8887c9ac 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -11373,6 +11373,222 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a GetOpenIDConfigRequest. */ + interface IGetOpenIDConfigRequest { + + /** GetOpenIDConfigRequest parent */ + parent?: (string|null); + } + + /** Represents a GetOpenIDConfigRequest. */ + class GetOpenIDConfigRequest implements IGetOpenIDConfigRequest { + + /** + * Constructs a new GetOpenIDConfigRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGetOpenIDConfigRequest); + + /** GetOpenIDConfigRequest parent. */ + public parent: string; + + /** + * Creates a new GetOpenIDConfigRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetOpenIDConfigRequest instance + */ + public static create(properties?: google.container.v1.IGetOpenIDConfigRequest): google.container.v1.GetOpenIDConfigRequest; + + /** + * 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.IGetOpenIDConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.IGetOpenIDConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.GetOpenIDConfigRequest; + + /** + * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.GetOpenIDConfigRequest; + + /** + * 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 GetOpenIDConfigRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetOpenIDConfigRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GetOpenIDConfigRequest; + + /** + * 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.GetOpenIDConfigRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetOpenIDConfigRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetOpenIDConfigResponse. */ + interface IGetOpenIDConfigResponse { + + /** GetOpenIDConfigResponse issuer */ + issuer?: (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 a GetOpenIDConfigResponse. */ + class GetOpenIDConfigResponse implements IGetOpenIDConfigResponse { + + /** + * Constructs a new GetOpenIDConfigResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGetOpenIDConfigResponse); + + /** GetOpenIDConfigResponse issuer. */ + public issuer: 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 GetOpenIDConfigResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns GetOpenIDConfigResponse instance + */ + public static create(properties?: google.container.v1.IGetOpenIDConfigResponse): google.container.v1.GetOpenIDConfigResponse; + + /** + * 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.IGetOpenIDConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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.IGetOpenIDConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.GetOpenIDConfigResponse; + + /** + * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.GetOpenIDConfigResponse; + + /** + * 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 a GetOpenIDConfigResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetOpenIDConfigResponse + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GetOpenIDConfigResponse; + + /** + * 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.GetOpenIDConfigResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetOpenIDConfigResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a GetJSONWebKeysRequest. */ interface IGetJSONWebKeysRequest { diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index a5a4fe6c00b..fe7c4728972 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -28904,6 +28904,595 @@ return ServiceExternalIPsConfig; })(); + v1.GetOpenIDConfigRequest = (function() { + + /** + * Properties of a GetOpenIDConfigRequest. + * @memberof google.container.v1 + * @interface IGetOpenIDConfigRequest + * @property {string|null} [parent] GetOpenIDConfigRequest parent + */ + + /** + * Constructs a new GetOpenIDConfigRequest. + * @memberof google.container.v1 + * @classdesc Represents a GetOpenIDConfigRequest. + * @implements IGetOpenIDConfigRequest + * @constructor + * @param {google.container.v1.IGetOpenIDConfigRequest=} [properties] Properties to set + */ + function GetOpenIDConfigRequest(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]]; + } + + /** + * GetOpenIDConfigRequest parent. + * @member {string} parent + * @memberof google.container.v1.GetOpenIDConfigRequest + * @instance + */ + GetOpenIDConfigRequest.prototype.parent = ""; + + /** + * Creates a new GetOpenIDConfigRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.GetOpenIDConfigRequest + * @static + * @param {google.container.v1.IGetOpenIDConfigRequest=} [properties] Properties to set + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest instance + */ + GetOpenIDConfigRequest.create = function create(properties) { + return new GetOpenIDConfigRequest(properties); + }; + + /** + * Encodes the specified GetOpenIDConfigRequest message. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GetOpenIDConfigRequest + * @static + * @param {google.container.v1.IGetOpenIDConfigRequest} message GetOpenIDConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetOpenIDConfigRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + return writer; + }; + + /** + * Encodes the specified GetOpenIDConfigRequest message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GetOpenIDConfigRequest + * @static + * @param {google.container.v1.IGetOpenIDConfigRequest} message GetOpenIDConfigRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetOpenIDConfigRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.GetOpenIDConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetOpenIDConfigRequest.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.GetOpenIDConfigRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetOpenIDConfigRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GetOpenIDConfigRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetOpenIDConfigRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetOpenIDConfigRequest message. + * @function verify + * @memberof google.container.v1.GetOpenIDConfigRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetOpenIDConfigRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + return null; + }; + + /** + * Creates a GetOpenIDConfigRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GetOpenIDConfigRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GetOpenIDConfigRequest} GetOpenIDConfigRequest + */ + GetOpenIDConfigRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetOpenIDConfigRequest) + return object; + var message = new $root.google.container.v1.GetOpenIDConfigRequest(); + if (object.parent != null) + message.parent = String(object.parent); + return message; + }; + + /** + * Creates a plain object from a GetOpenIDConfigRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GetOpenIDConfigRequest + * @static + * @param {google.container.v1.GetOpenIDConfigRequest} message GetOpenIDConfigRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetOpenIDConfigRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + return object; + }; + + /** + * Converts this GetOpenIDConfigRequest to JSON. + * @function toJSON + * @memberof google.container.v1.GetOpenIDConfigRequest + * @instance + * @returns {Object.} JSON object + */ + GetOpenIDConfigRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetOpenIDConfigRequest; + })(); + + v1.GetOpenIDConfigResponse = (function() { + + /** + * Properties of a GetOpenIDConfigResponse. + * @memberof google.container.v1 + * @interface IGetOpenIDConfigResponse + * @property {string|null} [issuer] GetOpenIDConfigResponse issuer + * @property {string|null} [jwksUri] GetOpenIDConfigResponse jwksUri + * @property {Array.|null} [responseTypesSupported] GetOpenIDConfigResponse responseTypesSupported + * @property {Array.|null} [subjectTypesSupported] GetOpenIDConfigResponse subjectTypesSupported + * @property {Array.|null} [idTokenSigningAlgValuesSupported] GetOpenIDConfigResponse idTokenSigningAlgValuesSupported + * @property {Array.|null} [claimsSupported] GetOpenIDConfigResponse claimsSupported + * @property {Array.|null} [grantTypes] GetOpenIDConfigResponse grantTypes + */ + + /** + * Constructs a new GetOpenIDConfigResponse. + * @memberof google.container.v1 + * @classdesc Represents a GetOpenIDConfigResponse. + * @implements IGetOpenIDConfigResponse + * @constructor + * @param {google.container.v1.IGetOpenIDConfigResponse=} [properties] Properties to set + */ + function GetOpenIDConfigResponse(properties) { + this.responseTypesSupported = []; + this.subjectTypesSupported = []; + this.idTokenSigningAlgValuesSupported = []; + this.claimsSupported = []; + this.grantTypes = []; + 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]]; + } + + /** + * GetOpenIDConfigResponse issuer. + * @member {string} issuer + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.issuer = ""; + + /** + * GetOpenIDConfigResponse jwksUri. + * @member {string} jwksUri + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.jwksUri = ""; + + /** + * GetOpenIDConfigResponse responseTypesSupported. + * @member {Array.} responseTypesSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.responseTypesSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse subjectTypesSupported. + * @member {Array.} subjectTypesSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.subjectTypesSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse idTokenSigningAlgValuesSupported. + * @member {Array.} idTokenSigningAlgValuesSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.idTokenSigningAlgValuesSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse claimsSupported. + * @member {Array.} claimsSupported + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.claimsSupported = $util.emptyArray; + + /** + * GetOpenIDConfigResponse grantTypes. + * @member {Array.} grantTypes + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + */ + GetOpenIDConfigResponse.prototype.grantTypes = $util.emptyArray; + + /** + * Creates a new GetOpenIDConfigResponse instance using the specified properties. + * @function create + * @memberof google.container.v1.GetOpenIDConfigResponse + * @static + * @param {google.container.v1.IGetOpenIDConfigResponse=} [properties] Properties to set + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse instance + */ + GetOpenIDConfigResponse.create = function create(properties) { + return new GetOpenIDConfigResponse(properties); + }; + + /** + * Encodes the specified GetOpenIDConfigResponse message. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GetOpenIDConfigResponse + * @static + * @param {google.container.v1.IGetOpenIDConfigResponse} message GetOpenIDConfigResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetOpenIDConfigResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.issuer != null && Object.hasOwnProperty.call(message, "issuer")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.issuer); + if (message.jwksUri != null && Object.hasOwnProperty.call(message, "jwksUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.jwksUri); + if (message.responseTypesSupported != null && message.responseTypesSupported.length) + for (var i = 0; i < message.responseTypesSupported.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.responseTypesSupported[i]); + if (message.subjectTypesSupported != null && message.subjectTypesSupported.length) + for (var i = 0; i < message.subjectTypesSupported.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.subjectTypesSupported[i]); + if (message.idTokenSigningAlgValuesSupported != null && message.idTokenSigningAlgValuesSupported.length) + for (var i = 0; i < message.idTokenSigningAlgValuesSupported.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.idTokenSigningAlgValuesSupported[i]); + if (message.claimsSupported != null && message.claimsSupported.length) + for (var i = 0; i < message.claimsSupported.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.claimsSupported[i]); + if (message.grantTypes != null && message.grantTypes.length) + for (var i = 0; i < message.grantTypes.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.grantTypes[i]); + return writer; + }; + + /** + * Encodes the specified GetOpenIDConfigResponse message, length delimited. Does not implicitly {@link google.container.v1.GetOpenIDConfigResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GetOpenIDConfigResponse + * @static + * @param {google.container.v1.IGetOpenIDConfigResponse} message GetOpenIDConfigResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetOpenIDConfigResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.GetOpenIDConfigResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetOpenIDConfigResponse.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.GetOpenIDConfigResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.issuer = reader.string(); + break; + case 2: + message.jwksUri = reader.string(); + break; + case 3: + if (!(message.responseTypesSupported && message.responseTypesSupported.length)) + message.responseTypesSupported = []; + message.responseTypesSupported.push(reader.string()); + break; + case 4: + if (!(message.subjectTypesSupported && message.subjectTypesSupported.length)) + message.subjectTypesSupported = []; + message.subjectTypesSupported.push(reader.string()); + break; + case 5: + if (!(message.idTokenSigningAlgValuesSupported && message.idTokenSigningAlgValuesSupported.length)) + message.idTokenSigningAlgValuesSupported = []; + message.idTokenSigningAlgValuesSupported.push(reader.string()); + break; + case 6: + if (!(message.claimsSupported && message.claimsSupported.length)) + message.claimsSupported = []; + message.claimsSupported.push(reader.string()); + break; + case 7: + if (!(message.grantTypes && message.grantTypes.length)) + message.grantTypes = []; + message.grantTypes.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetOpenIDConfigResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GetOpenIDConfigResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetOpenIDConfigResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetOpenIDConfigResponse message. + * @function verify + * @memberof google.container.v1.GetOpenIDConfigResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetOpenIDConfigResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.issuer != null && message.hasOwnProperty("issuer")) + if (!$util.isString(message.issuer)) + return "issuer: string expected"; + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + if (!$util.isString(message.jwksUri)) + return "jwksUri: string expected"; + if (message.responseTypesSupported != null && message.hasOwnProperty("responseTypesSupported")) { + if (!Array.isArray(message.responseTypesSupported)) + return "responseTypesSupported: array expected"; + for (var i = 0; i < message.responseTypesSupported.length; ++i) + if (!$util.isString(message.responseTypesSupported[i])) + return "responseTypesSupported: string[] expected"; + } + if (message.subjectTypesSupported != null && message.hasOwnProperty("subjectTypesSupported")) { + if (!Array.isArray(message.subjectTypesSupported)) + return "subjectTypesSupported: array expected"; + for (var i = 0; i < message.subjectTypesSupported.length; ++i) + if (!$util.isString(message.subjectTypesSupported[i])) + return "subjectTypesSupported: string[] expected"; + } + if (message.idTokenSigningAlgValuesSupported != null && message.hasOwnProperty("idTokenSigningAlgValuesSupported")) { + if (!Array.isArray(message.idTokenSigningAlgValuesSupported)) + return "idTokenSigningAlgValuesSupported: array expected"; + for (var i = 0; i < message.idTokenSigningAlgValuesSupported.length; ++i) + if (!$util.isString(message.idTokenSigningAlgValuesSupported[i])) + return "idTokenSigningAlgValuesSupported: string[] expected"; + } + if (message.claimsSupported != null && message.hasOwnProperty("claimsSupported")) { + if (!Array.isArray(message.claimsSupported)) + return "claimsSupported: array expected"; + for (var i = 0; i < message.claimsSupported.length; ++i) + if (!$util.isString(message.claimsSupported[i])) + return "claimsSupported: string[] expected"; + } + if (message.grantTypes != null && message.hasOwnProperty("grantTypes")) { + if (!Array.isArray(message.grantTypes)) + return "grantTypes: array expected"; + for (var i = 0; i < message.grantTypes.length; ++i) + if (!$util.isString(message.grantTypes[i])) + return "grantTypes: string[] expected"; + } + return null; + }; + + /** + * Creates a GetOpenIDConfigResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GetOpenIDConfigResponse + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GetOpenIDConfigResponse} GetOpenIDConfigResponse + */ + GetOpenIDConfigResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GetOpenIDConfigResponse) + return object; + var message = new $root.google.container.v1.GetOpenIDConfigResponse(); + if (object.issuer != null) + message.issuer = String(object.issuer); + if (object.jwksUri != null) + message.jwksUri = String(object.jwksUri); + if (object.responseTypesSupported) { + if (!Array.isArray(object.responseTypesSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.responseTypesSupported: array expected"); + message.responseTypesSupported = []; + for (var i = 0; i < object.responseTypesSupported.length; ++i) + message.responseTypesSupported[i] = String(object.responseTypesSupported[i]); + } + if (object.subjectTypesSupported) { + if (!Array.isArray(object.subjectTypesSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.subjectTypesSupported: array expected"); + message.subjectTypesSupported = []; + for (var i = 0; i < object.subjectTypesSupported.length; ++i) + message.subjectTypesSupported[i] = String(object.subjectTypesSupported[i]); + } + if (object.idTokenSigningAlgValuesSupported) { + if (!Array.isArray(object.idTokenSigningAlgValuesSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.idTokenSigningAlgValuesSupported: array expected"); + message.idTokenSigningAlgValuesSupported = []; + for (var i = 0; i < object.idTokenSigningAlgValuesSupported.length; ++i) + message.idTokenSigningAlgValuesSupported[i] = String(object.idTokenSigningAlgValuesSupported[i]); + } + if (object.claimsSupported) { + if (!Array.isArray(object.claimsSupported)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.claimsSupported: array expected"); + message.claimsSupported = []; + for (var i = 0; i < object.claimsSupported.length; ++i) + message.claimsSupported[i] = String(object.claimsSupported[i]); + } + if (object.grantTypes) { + if (!Array.isArray(object.grantTypes)) + throw TypeError(".google.container.v1.GetOpenIDConfigResponse.grantTypes: array expected"); + message.grantTypes = []; + for (var i = 0; i < object.grantTypes.length; ++i) + message.grantTypes[i] = String(object.grantTypes[i]); + } + return message; + }; + + /** + * Creates a plain object from a GetOpenIDConfigResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GetOpenIDConfigResponse + * @static + * @param {google.container.v1.GetOpenIDConfigResponse} message GetOpenIDConfigResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetOpenIDConfigResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.responseTypesSupported = []; + object.subjectTypesSupported = []; + object.idTokenSigningAlgValuesSupported = []; + object.claimsSupported = []; + object.grantTypes = []; + } + if (options.defaults) { + object.issuer = ""; + object.jwksUri = ""; + } + if (message.issuer != null && message.hasOwnProperty("issuer")) + object.issuer = message.issuer; + if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) + object.jwksUri = message.jwksUri; + if (message.responseTypesSupported && message.responseTypesSupported.length) { + object.responseTypesSupported = []; + for (var j = 0; j < message.responseTypesSupported.length; ++j) + object.responseTypesSupported[j] = message.responseTypesSupported[j]; + } + if (message.subjectTypesSupported && message.subjectTypesSupported.length) { + object.subjectTypesSupported = []; + for (var j = 0; j < message.subjectTypesSupported.length; ++j) + object.subjectTypesSupported[j] = message.subjectTypesSupported[j]; + } + if (message.idTokenSigningAlgValuesSupported && message.idTokenSigningAlgValuesSupported.length) { + object.idTokenSigningAlgValuesSupported = []; + for (var j = 0; j < message.idTokenSigningAlgValuesSupported.length; ++j) + object.idTokenSigningAlgValuesSupported[j] = message.idTokenSigningAlgValuesSupported[j]; + } + if (message.claimsSupported && message.claimsSupported.length) { + object.claimsSupported = []; + for (var j = 0; j < message.claimsSupported.length; ++j) + object.claimsSupported[j] = message.claimsSupported[j]; + } + if (message.grantTypes && message.grantTypes.length) { + object.grantTypes = []; + for (var j = 0; j < message.grantTypes.length; ++j) + object.grantTypes[j] = message.grantTypes[j]; + } + return object; + }; + + /** + * Converts this GetOpenIDConfigResponse to JSON. + * @function toJSON + * @memberof google.container.v1.GetOpenIDConfigResponse + * @instance + * @returns {Object.} JSON object + */ + GetOpenIDConfigResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetOpenIDConfigResponse; + })(); + v1.GetJSONWebKeysRequest = (function() { /** diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index f0a20e700cd..a69746c8e07 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -3689,6 +3689,51 @@ } } }, + "GetOpenIDConfigRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1 + } + } + }, + "GetOpenIDConfigResponse": { + "fields": { + "issuer": { + "type": "string", + "id": 1 + }, + "jwksUri": { + "type": "string", + "id": 2 + }, + "responseTypesSupported": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "subjectTypesSupported": { + "rule": "repeated", + "type": "string", + "id": 4 + }, + "idTokenSigningAlgValuesSupported": { + "rule": "repeated", + "type": "string", + "id": 5 + }, + "claimsSupported": { + "rule": "repeated", + "type": "string", + "id": 6 + }, + "grantTypes": { + "rule": "repeated", + "type": "string", + "id": 7 + } + } + }, "GetJSONWebKeysRequest": { "fields": { "parent": { From 35fcdf590ee333a06c533a2a655680ba4905116f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 26 Jan 2022 19:56:14 +0000 Subject: [PATCH 323/371] chore: update v2.12.0 gapic-generator-typescript (#513) - [ ] Regenerate this pull request now. Committer: @summer-ji-eng PiperOrigin-RevId: 424244721 Source-Link: https://github.com/googleapis/googleapis/commit/4b6b01f507ebc3df95fdf8e1d76b0ae0ae33e52c Source-Link: https://github.com/googleapis/googleapis-gen/commit/8ac83fba606d008c7e8a42e7d55b6596ec4be35f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGFjODNmYmE2MDZkMDA4YzdlOGE0MmU3ZDU1YjY1OTZlYzRiZTM1ZiJ9 --- packages/google-container/linkinator.config.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/google-container/linkinator.config.json b/packages/google-container/linkinator.config.json index 0121dfa684f..befd23c8633 100644 --- a/packages/google-container/linkinator.config.json +++ b/packages/google-container/linkinator.config.json @@ -3,8 +3,14 @@ "skip": [ "https://codecov.io/gh/googleapis/", "www.googleapis.com", - "img.shields.io" + "img.shields.io", + "https://console.cloud.google.com/cloudshell", + "https://support.google.com" ], "silent": true, - "concurrency": 5 + "concurrency": 5, + "retry": true, + "retryErrors": true, + "retryErrorsCount": 5, + "retryErrorsJitter": 3000 } From c57208eb0d325fce7ab89d9a1855a0a2db78e204 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 31 Jan 2022 23:30:41 +0100 Subject: [PATCH 324/371] chore(deps): update dependency sinon to v13 (#515) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^12.0.0` -> `^13.0.0`](https://renovatebot.com/diffs/npm/sinon/12.0.1/13.0.0) | [![age](https://badges.renovateapi.com/packages/npm/sinon/13.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/13.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/13.0.0/compatibility-slim/12.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/13.0.0/confidence-slim/12.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sinonjs/sinon ### [`v13.0.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#​1300) [Compare Source](https://togithub.com/sinonjs/sinon/compare/v12.0.1...v13.0.0) - [`cf3d6c0c`](https://togithub.com/sinonjs/sinon/commit/cf3d6c0cd9689c0ee673b3daa8bf9abd70304392) Upgrade packages ([#​2431](https://togithub.com/sinonjs/sinon/issues/2431)) (Carl-Erik Kopseng) > - Update all @​sinonjs/ packages > > - Upgrade to fake-timers 9 > > - chore: ensure always using latest LTS release - [`41710467`](https://togithub.com/sinonjs/sinon/commit/417104670d575e96a1b645ea40ce763afa76fb1b) Adjust deploy scripts to archive old releases in a separate branch, move existing releases out of master ([#​2426](https://togithub.com/sinonjs/sinon/issues/2426)) (Joel Bradshaw) > Co-authored-by: Carl-Erik Kopseng - [`c80a7266`](https://togithub.com/sinonjs/sinon/commit/c80a72660e89d88b08275eff1028ecb9e26fd8e9) Bump node-fetch from 2.6.1 to 2.6.7 ([#​2430](https://togithub.com/sinonjs/sinon/issues/2430)) (dependabot\[bot]) > Co-authored-by: dependabot\[bot] <49699333+dependabot\[bot][@​users](https://togithub.com/users).noreply.github.com> - [`a00f14a9`](https://togithub.com/sinonjs/sinon/commit/a00f14a97dbe8c65afa89674e16ad73fc7d2fdc0) Add explicit export for `./*` ([#​2413](https://togithub.com/sinonjs/sinon/issues/2413)) (なつき) - [`b82ca7ad`](https://togithub.com/sinonjs/sinon/commit/b82ca7ad9b1add59007771f65a18ee34415de8ca) Bump cached-path-relative from 1.0.2 to 1.1.0 ([#​2428](https://togithub.com/sinonjs/sinon/issues/2428)) (dependabot\[bot]) - [`a9ea1427`](https://togithub.com/sinonjs/sinon/commit/a9ea142716c094ef3c432ecc4089f8207b8dd8b6) Add documentation for assert.calledOnceWithMatch ([#​2424](https://togithub.com/sinonjs/sinon/issues/2424)) (Mathias Schreck) - [`1d5ab86b`](https://togithub.com/sinonjs/sinon/commit/1d5ab86ba60e50dd69593ffed2bffd4b8faa0d38) Be more general in stripping off stack frames to fix Firefox tests ([#​2425](https://togithub.com/sinonjs/sinon/issues/2425)) (Joel Bradshaw) - [`56b06129`](https://togithub.com/sinonjs/sinon/commit/56b06129e223eae690265c37b1113067e2b31bdc) Check call count type ([#​2410](https://togithub.com/sinonjs/sinon/issues/2410)) (Joel Bradshaw) - [`7863e2df`](https://togithub.com/sinonjs/sinon/commit/7863e2dfdbda79e0a32e42af09e6539fc2f2b80f) Fix [#​2414](https://togithub.com/sinonjs/sinon/issues/2414): make Sinon available on homepage (Carl-Erik Kopseng) - [`fabaabdd`](https://togithub.com/sinonjs/sinon/commit/fabaabdda82f39a7f5b75b55bd56cf77b1cd4a8f) Bump nokogiri from 1.11.4 to 1.13.1 ([#​2423](https://togithub.com/sinonjs/sinon/issues/2423)) (dependabot\[bot]) - [`dbc0fbd2`](https://togithub.com/sinonjs/sinon/commit/dbc0fbd263c8419fa47f9c3b20cf47890a242d21) Bump shelljs from 0.8.4 to 0.8.5 ([#​2422](https://togithub.com/sinonjs/sinon/issues/2422)) (dependabot\[bot]) - [`fb8b3d72`](https://togithub.com/sinonjs/sinon/commit/fb8b3d72a85dc8fb0547f859baf3f03a22a039f7) Run Prettier (Carl-Erik Kopseng) - [`12a45939`](https://togithub.com/sinonjs/sinon/commit/12a45939e9b047b6d3663fe55f2eb383ec63c4e1) Fix 2377: Throw error when trying to stub non-configurable or non-writable properties ([#​2417](https://togithub.com/sinonjs/sinon/issues/2417)) (Stuart Dotson) > Fixes issue [#​2377](https://togithub.com/sinonjs/sinon/issues/2377) by throwing an error when trying to stub non-configurable or non-writable properties *Released by [Carl-Erik Kopseng](https://togithub.com/fatso83) on 2022-01-28.*
--- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 5a8925b2e0f..d04e82fe427 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -58,7 +58,7 @@ "mocha": "^8.0.0", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", - "sinon": "^12.0.0", + "sinon": "^13.0.0", "ts-loader": "^9.0.0", "typescript": "^3.8.3", "webpack": "^5.0.0", From 2a5bc89b4dfa2ebb362cf609e37b26729a404360 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 22:04:46 +0000 Subject: [PATCH 325/371] docs(nodejs): version support policy edits (#1346) (#517) --- packages/google-container/README.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index d8e23e1e92d..24c0bd9b0d2 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -109,21 +109,21 @@ also contains samples. Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). Libraries are compatible with all current _active_ and _maintenance_ versions of Node.js. +If you are using an end-of-life version of Node.js, we recommend that you update +as soon as possible to an actively supported LTS version. -Client libraries targeting some end-of-life versions of Node.js are available, and -can be installed via npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). -The dist-tags follow the naming convention `legacy-(version)`. - -_Legacy Node.js versions are supported as a best effort:_ +Google's client libraries support legacy versions of Node.js runtimes on a +best-efforts basis with the following warnings: -* Legacy versions will not be tested in continuous integration. -* Some security patches may not be able to be backported. -* Dependencies will not be kept up-to-date, and features will not be backported. +* Legacy versions are not tested in continuous integration. +* Some security patches and features cannot be backported. +* Dependencies cannot be kept up-to-date. -#### Legacy tags available - -* `legacy-8`: install client libraries from this dist-tag for versions - compatible with Node.js 8. +Client libraries targeting some end-of-life versions of Node.js are available, and +can be installed through npm [dist-tags](https://docs.npmjs.com/cli/dist-tag). +The dist-tags follow the naming convention `legacy-(version)`. +For example, `npm install @google-cloud/container@legacy-8` installs client libraries +for versions compatible with Node.js 8. ## Versioning From 3efeae850c016beaa7681f3976288a44116b1b3c Mon Sep 17 00:00:00 2001 From: Shabir Mohamed Abdul Samadh <7249208+Shabirmean@users.noreply.github.com> Date: Thu, 17 Feb 2022 15:57:07 -0500 Subject: [PATCH 326/371] docs(samples): add usage samples to show handling of LRO response Operation (#519) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * improvements: add samples * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * test: add tests for the samples * fix: merge conflict * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * cleanup: rearrange region tags * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: replace beforeEach with before * fix: failing test cases * cleanup: rearrange code lines * test: fix the timeout and race issues in tests * cleanup: rename fn * fix: mocha test definition * cleanup: change console log * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: failing test due package * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: linting errors * fix: add netowkr as arg * lint: fix test js * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * test: add ci network to test * cleanup: ammend as per PR comments * cleanup: remove unused dep * fix: test case * doc: add explanation to the test util file * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * doc: fix typos * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * lint: fix errors * fix: move after block Co-authored-by: Owl Bot --- packages/google-container/README.md | 39 +++++++++++-------- packages/google-container/samples/README.md | 36 +++++++++++++++++ .../google-container/samples/package.json | 5 ++- .../google-container/samples/quickstart.js | 5 ++- 4 files changed, 64 insertions(+), 21 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index 24c0bd9b0d2..d452abe9fad 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -60,24 +60,27 @@ npm install @google-cloud/container ### Using the client library ```javascript -const container = require('@google-cloud/container'); - -// Create the Cluster Manager Client -const client = new container.v1.ClusterManagerClient(); - -async function quickstart() { - const zone = 'us-central1-a'; - const projectId = await client.getProjectId(); - const request = { - projectId: projectId, - zone: zone, - }; - - const [response] = await client.listClusters(request); - console.log('Clusters:'); - console.log(response); +async function main() { + const container = require('@google-cloud/container'); + + // Create the Cluster Manager Client + const client = new container.v1.ClusterManagerClient(); + + async function quickstart() { + const zone = 'us-central1-a'; + const projectId = await client.getProjectId(); + const request = { + projectId: projectId, + zone: zone, + }; + + const [response] = await client.listClusters(request); + console.log('Clusters: ', response); + } + quickstart(); } -quickstart(); + +main().catch(console.error); ``` @@ -97,6 +100,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloud-conta | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | +| Create_cluster | [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/create_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/create_cluster.js,samples/README.md) | +| Delete_cluster | [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/delete_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/delete_cluster.js,samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | diff --git a/packages/google-container/samples/README.md b/packages/google-container/samples/README.md index e631848e950..8dd59b09c5d 100644 --- a/packages/google-container/samples/README.md +++ b/packages/google-container/samples/README.md @@ -15,6 +15,8 @@ building and managing container based applications, powered by the open source K * [Before you begin](#before-you-begin) * [Samples](#samples) + * [Create_cluster](#create_cluster) + * [Delete_cluster](#delete_cluster) * [Quickstart](#quickstart) ## Before you begin @@ -32,6 +34,40 @@ Before running the samples, make sure you've followed the steps outlined in +### Create_cluster + +View the [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/create_cluster.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/create_cluster.js,samples/README.md) + +__Usage:__ + + +`node samples/create_cluster.js` + + +----- + + + + +### Delete_cluster + +View the [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/delete_cluster.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/delete_cluster.js,samples/README.md) + +__Usage:__ + + +`node samples/delete_cluster.js` + + +----- + + + + ### Quickstart View the [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/quickstart.js). diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 4e1eb08e4f7..7f1ddd546ad 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -11,10 +11,11 @@ "*.js" ], "scripts": { - "test": "mocha system-test --timeout 10000" + "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^2.6.0" + "@google-cloud/container": "^2.6.0", + "uuid": "^8.3.2" }, "devDependencies": { "chai": "^4.2.0", diff --git a/packages/google-container/samples/quickstart.js b/packages/google-container/samples/quickstart.js index 2ce32840aa7..b623e7de43e 100644 --- a/packages/google-container/samples/quickstart.js +++ b/packages/google-container/samples/quickstart.js @@ -14,6 +14,7 @@ 'use strict'; +// [START gke_list_cluster] async function main() { // [START container_quickstart] const container = require('@google-cloud/container'); @@ -30,11 +31,11 @@ async function main() { }; const [response] = await client.listClusters(request); - console.log('Clusters:'); - console.log(response); + console.log('Clusters: ', response); } quickstart(); // [END container_quickstart] } main().catch(console.error); +// [END gke_list_cluster] From 8b228a7076131063cc4775915759cec88543d99b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 18 Feb 2022 02:00:52 +0000 Subject: [PATCH 327/371] docs(samples): include metadata file, add exclusions for samples to handwritten libraries (#520) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 429395631 Source-Link: https://github.com/googleapis/googleapis/commit/84594b35af0c38efcd6967e8179d801702ad96ff Source-Link: https://github.com/googleapis/googleapis-gen/commit/ed74f970fd82914874e6b27b04763cfa66bafe9b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9 docs(samples): include metadata file, add exclusions for samples to handwritten libraries PiperOrigin-RevId: 429395631 Source-Link: https://github.com/googleapis/googleapis/commit/84594b35af0c38efcd6967e8179d801702ad96ff Source-Link: https://github.com/googleapis/googleapis-gen/commit/ed74f970fd82914874e6b27b04763cfa66bafe9b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWQ3NGY5NzBmZDgyOTE0ODc0ZTZiMjdiMDQ3NjNjZmE2NmJhZmU5YiJ9 --- .../v1/cluster_manager.cancel_operation.js | 9 +- .../cluster_manager.complete_i_p_rotation.js | 9 +- .../v1/cluster_manager.create_cluster.js | 9 +- .../v1/cluster_manager.create_node_pool.js | 9 +- .../v1/cluster_manager.delete_cluster.js | 9 +- .../v1/cluster_manager.delete_node_pool.js | 9 +- .../v1/cluster_manager.get_cluster.js | 9 +- .../cluster_manager.get_j_s_o_n_web_keys.js | 9 +- .../v1/cluster_manager.get_node_pool.js | 9 +- .../v1/cluster_manager.get_operation.js | 9 +- .../v1/cluster_manager.get_server_config.js | 9 +- .../v1/cluster_manager.list_clusters.js | 9 +- .../v1/cluster_manager.list_node_pools.js | 9 +- .../v1/cluster_manager.list_operations.js | 9 +- ...cluster_manager.list_usable_subnetworks.js | 9 +- ...ster_manager.rollback_node_pool_upgrade.js | 9 +- .../v1/cluster_manager.set_addons_config.js | 9 +- .../v1/cluster_manager.set_labels.js | 9 +- .../v1/cluster_manager.set_legacy_abac.js | 9 +- .../v1/cluster_manager.set_locations.js | 9 +- .../v1/cluster_manager.set_logging_service.js | 9 +- .../cluster_manager.set_maintenance_policy.js | 9 +- .../v1/cluster_manager.set_master_auth.js | 9 +- .../cluster_manager.set_monitoring_service.js | 9 +- .../v1/cluster_manager.set_network_policy.js | 9 +- ...uster_manager.set_node_pool_autoscaling.js | 9 +- ...luster_manager.set_node_pool_management.js | 9 +- .../v1/cluster_manager.set_node_pool_size.js | 9 +- .../v1/cluster_manager.start_i_p_rotation.js | 9 +- .../v1/cluster_manager.update_cluster.js | 9 +- .../v1/cluster_manager.update_master.js | 9 +- .../v1/cluster_manager.update_node_pool.js | 9 +- .../snippet_metadata.google.container.v1.json | 1791 +++++++++++++++++ .../src/v1/cluster_manager_client.ts | 5 +- .../test/gapic_cluster_manager_v1.ts | 556 ++++- 35 files changed, 2571 insertions(+), 69 deletions(-) create mode 100644 packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json diff --git a/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js b/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js index 90e79a4fa0d..f1a35c6b2d2 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js index d498d65b6c8..9e38c25485b 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js index 603327087c4..204dcbbd744 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js index e514be68a5c..7a52063bda3 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js index 5c51486f4ce..ba757276861 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js index f50509a60f5..ba697521c98 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js index b47a6f3f4f3..89428f5e416 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js index a1b3231c090..3d312c94c92 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js index 4a88d3d7378..bcb0e231b20 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js b/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js index dc9fe15e56b..5ef09a4a0c4 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js b/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js index 61b4731c7e3..c21edceea12 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js b/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js index 5e41490ddb7..d974e281bf5 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js index a4b768d8bf9..677ed5c7c44 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js b/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js index 64552cfa7e0..45191b1e293 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js b/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js index c5fc0bb55b8..4ea47b2a8a7 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js index 09cbd2741d4..2615eecec31 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js b/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js index 267a0fabae8..dc570df0852 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js index e8c6aa5c6b0..60ee40786e2 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js index 8b1740c074f..15d1e821685 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js b/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js index dbb19c4bd2e..d926bb734e5 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js b/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js index 788aeaada6c..2b120172b4a 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js index 17fa0b98b10..bb756a02f6b 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js b/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js index eaa4cb40205..1fcac1fd012 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js b/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js index 3c390c8fed9..783537d7788 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js index 978506b360a..41d073c0836 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js index 4dfb03ff8d9..d5dbb41ac0d 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js index 0c4c835d59c..b16dd65f1fd 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js index 8c00b40cb77..c89962d79ac 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js index e4b9493e341..369aa5cb29c 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js index 77d44a4ccc8..a34c25bb90f 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_master.js b/packages/google-container/samples/generated/v1/cluster_manager.update_master.js index 2aa34bc1f65..b69ffcac22b 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_master.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_master.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index b2707cd61e1..6b00ac4d7ee 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -1,16 +1,21 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // -// http://www.apache.org/licenses/LICENSE-2.0 +// https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + 'use strict'; diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json new file mode 100644 index 00000000000..7c9f71447fe --- /dev/null +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -0,0 +1,1791 @@ +{ + "clientLibrary": { + "name": "nodejs-container", + "version": "0.1.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.container.v1", + "version": "v1" + } + ] + }, + "snippets": [ + { + "regionTag": "container_v1_generated_ClusterManager_ListClusters_async", + "title": "ClusterManager listClusters Sample", + "origin": "API_DEFINITION", + "description": " Lists all clusters owned by a project in either the specified zone or all zones.", + "canonical": true, + "file": "cluster_manager.list_clusters.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListClusters", + "fullName": "google.container.v1.ClusterManager.ListClusters", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.ListClustersResponse", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "ListClusters", + "fullName": "google.container.v1.ClusterManager.ListClusters", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_GetCluster_async", + "title": "ClusterManager getCluster Sample", + "origin": "API_DEFINITION", + "description": " Gets the details of a specific cluster.", + "canonical": true, + "file": "cluster_manager.get_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCluster", + "fullName": "google.container.v1.ClusterManager.GetCluster", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Cluster", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "GetCluster", + "fullName": "google.container.v1.ClusterManager.GetCluster", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_CreateCluster_async", + "title": "ClusterManager createCluster Sample", + "origin": "API_DEFINITION", + "description": " Creates a cluster, consisting of the specified number and type of Google 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). One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.", + "canonical": true, + "file": "cluster_manager.create_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCluster", + "fullName": "google.container.v1.ClusterManager.CreateCluster", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster", + "type": ".google.container.v1.Cluster" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "CreateCluster", + "fullName": "google.container.v1.ClusterManager.CreateCluster", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_UpdateCluster_async", + "title": "ClusterManager updateCluster Sample", + "origin": "API_DEFINITION", + "description": " Updates the settings of a specific cluster.", + "canonical": true, + "file": "cluster_manager.update_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateCluster", + "fullName": "google.container.v1.ClusterManager.UpdateCluster", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "update", + "type": ".google.container.v1.ClusterUpdate" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "UpdateCluster", + "fullName": "google.container.v1.ClusterManager.UpdateCluster", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_UpdateNodePool_async", + "title": "ClusterManager updateNodePool Sample", + "origin": "API_DEFINITION", + "description": " Updates the version and/or image type for the specified node pool.", + "canonical": true, + "file": "cluster_manager.update_node_pool.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 101, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateNodePool", + "fullName": "google.container.v1.ClusterManager.UpdateNodePool", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "node_version", + "type": "TYPE_STRING" + }, + { + "name": "image_type", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "locations", + "type": "TYPE_STRING[]" + }, + { + "name": "workload_metadata_config", + "type": ".google.container.v1.WorkloadMetadataConfig" + }, + { + "name": "upgrade_settings", + "type": ".google.container.v1.NodePool.UpgradeSettings" + }, + { + "name": "linux_node_config", + "type": ".google.container.v1.LinuxNodeConfig" + }, + { + "name": "kubelet_config", + "type": ".google.container.v1.NodeKubeletConfig" + }, + { + "name": "gcfs_config", + "type": ".google.container.v1.GcfsConfig" + }, + { + "name": "gvnic", + "type": ".google.container.v1.VirtualNIC" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "UpdateNodePool", + "fullName": "google.container.v1.ClusterManager.UpdateNodePool", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetNodePoolAutoscaling_async", + "title": "ClusterManager setNodePoolAutoscaling Sample", + "origin": "API_DEFINITION", + "description": " Sets the autoscaling settings for the specified node pool.", + "canonical": true, + "file": "cluster_manager.set_node_pool_autoscaling.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetNodePoolAutoscaling", + "fullName": "google.container.v1.ClusterManager.SetNodePoolAutoscaling", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "autoscaling", + "type": ".google.container.v1.NodePoolAutoscaling" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetNodePoolAutoscaling", + "fullName": "google.container.v1.ClusterManager.SetNodePoolAutoscaling", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetLoggingService_async", + "title": "ClusterManager setLoggingService Sample", + "origin": "API_DEFINITION", + "description": " Sets the logging service for a specific cluster.", + "canonical": true, + "file": "cluster_manager.set_logging_service.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLoggingService", + "fullName": "google.container.v1.ClusterManager.SetLoggingService", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "logging_service", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetLoggingService", + "fullName": "google.container.v1.ClusterManager.SetLoggingService", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetMonitoringService_async", + "title": "ClusterManager setMonitoringService Sample", + "origin": "API_DEFINITION", + "description": " Sets the monitoring service for a specific cluster.", + "canonical": true, + "file": "cluster_manager.set_monitoring_service.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetMonitoringService", + "fullName": "google.container.v1.ClusterManager.SetMonitoringService", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "monitoring_service", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetMonitoringService", + "fullName": "google.container.v1.ClusterManager.SetMonitoringService", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetAddonsConfig_async", + "title": "ClusterManager setAddonsConfig Sample", + "origin": "API_DEFINITION", + "description": " Sets the addons for a specific cluster.", + "canonical": true, + "file": "cluster_manager.set_addons_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetAddonsConfig", + "fullName": "google.container.v1.ClusterManager.SetAddonsConfig", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "addons_config", + "type": ".google.container.v1.AddonsConfig" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetAddonsConfig", + "fullName": "google.container.v1.ClusterManager.SetAddonsConfig", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetLocations_async", + "title": "ClusterManager setLocations Sample", + "origin": "API_DEFINITION", + "description": " 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.", + "canonical": true, + "file": "cluster_manager.set_locations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLocations", + "fullName": "google.container.v1.ClusterManager.SetLocations", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "locations", + "type": "TYPE_STRING[]" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetLocations", + "fullName": "google.container.v1.ClusterManager.SetLocations", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_UpdateMaster_async", + "title": "ClusterManager updateMaster Sample", + "origin": "API_DEFINITION", + "description": " Updates the master for a specific cluster.", + "canonical": true, + "file": "cluster_manager.update_master.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateMaster", + "fullName": "google.container.v1.ClusterManager.UpdateMaster", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "master_version", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "UpdateMaster", + "fullName": "google.container.v1.ClusterManager.UpdateMaster", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetMasterAuth_async", + "title": "ClusterManager setMasterAuth Sample", + "origin": "API_DEFINITION", + "description": " Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password.", + "canonical": true, + "file": "cluster_manager.set_master_auth.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetMasterAuth", + "fullName": "google.container.v1.ClusterManager.SetMasterAuth", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "action", + "type": ".google.container.v1.SetMasterAuthRequest.Action" + }, + { + "name": "update", + "type": ".google.container.v1.MasterAuth" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetMasterAuth", + "fullName": "google.container.v1.ClusterManager.SetMasterAuth", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_DeleteCluster_async", + "title": "ClusterManager deleteCluster Sample", + "origin": "API_DEFINITION", + "description": " Deletes the cluster, including the Kubernetes endpoint and all worker nodes. Firewalls and routes that were configured during cluster creation are also deleted. Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.", + "canonical": true, + "file": "cluster_manager.delete_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteCluster", + "fullName": "google.container.v1.ClusterManager.DeleteCluster", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "DeleteCluster", + "fullName": "google.container.v1.ClusterManager.DeleteCluster", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_ListOperations_async", + "title": "ClusterManager listOperations Sample", + "origin": "API_DEFINITION", + "description": " Lists all operations in a project in a specific zone or all zones.", + "canonical": true, + "file": "cluster_manager.list_operations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.container.v1.ClusterManager.ListOperations", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.ListOperationsResponse", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.container.v1.ClusterManager.ListOperations", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_GetOperation_async", + "title": "ClusterManager getOperation Sample", + "origin": "API_DEFINITION", + "description": " Gets the specified operation.", + "canonical": true, + "file": "cluster_manager.get_operation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.container.v1.ClusterManager.GetOperation", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "operation_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.container.v1.ClusterManager.GetOperation", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_CancelOperation_async", + "title": "ClusterManager cancelOperation Sample", + "origin": "API_DEFINITION", + "description": " Cancels the specified operation.", + "canonical": true, + "file": "cluster_manager.cancel_operation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.container.v1.ClusterManager.CancelOperation", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "operation_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.container.v1.ClusterManager.CancelOperation", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_GetServerConfig_async", + "title": "ClusterManager getServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Returns configuration info about the Google Kubernetes Engine service.", + "canonical": true, + "file": "cluster_manager.get_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetServerConfig", + "fullName": "google.container.v1.ClusterManager.GetServerConfig", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.ServerConfig", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "GetServerConfig", + "fullName": "google.container.v1.ClusterManager.GetServerConfig", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_GetJSONWebKeys_async", + "title": "ClusterManager getJSONWebKeys Sample", + "origin": "API_DEFINITION", + "description": " 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.", + "canonical": true, + "file": "cluster_manager.get_j_s_o_n_web_keys.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetJSONWebKeys", + "fullName": "google.container.v1.ClusterManager.GetJSONWebKeys", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.GetJSONWebKeysResponse", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "GetJSONWebKeys", + "fullName": "google.container.v1.ClusterManager.GetJSONWebKeys", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_ListNodePools_async", + "title": "ClusterManager listNodePools Sample", + "origin": "API_DEFINITION", + "description": " Lists the node pools for a cluster.", + "canonical": true, + "file": "cluster_manager.list_node_pools.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNodePools", + "fullName": "google.container.v1.ClusterManager.ListNodePools", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.ListNodePoolsResponse", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "ListNodePools", + "fullName": "google.container.v1.ClusterManager.ListNodePools", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_GetNodePool_async", + "title": "ClusterManager getNodePool Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the requested node pool.", + "canonical": true, + "file": "cluster_manager.get_node_pool.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNodePool", + "fullName": "google.container.v1.ClusterManager.GetNodePool", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.NodePool", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "GetNodePool", + "fullName": "google.container.v1.ClusterManager.GetNodePool", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_CreateNodePool_async", + "title": "ClusterManager createNodePool Sample", + "origin": "API_DEFINITION", + "description": " Creates a node pool for a cluster.", + "canonical": true, + "file": "cluster_manager.create_node_pool.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateNodePool", + "fullName": "google.container.v1.ClusterManager.CreateNodePool", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool", + "type": ".google.container.v1.NodePool" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "CreateNodePool", + "fullName": "google.container.v1.ClusterManager.CreateNodePool", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_DeleteNodePool_async", + "title": "ClusterManager deleteNodePool Sample", + "origin": "API_DEFINITION", + "description": " Deletes a node pool from a cluster.", + "canonical": true, + "file": "cluster_manager.delete_node_pool.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteNodePool", + "fullName": "google.container.v1.ClusterManager.DeleteNodePool", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "DeleteNodePool", + "fullName": "google.container.v1.ClusterManager.DeleteNodePool", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_async", + "title": "ClusterManager rollbackNodePoolUpgrade Sample", + "origin": "API_DEFINITION", + "description": " Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.", + "canonical": true, + "file": "cluster_manager.rollback_node_pool_upgrade.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RollbackNodePoolUpgrade", + "fullName": "google.container.v1.ClusterManager.RollbackNodePoolUpgrade", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "RollbackNodePoolUpgrade", + "fullName": "google.container.v1.ClusterManager.RollbackNodePoolUpgrade", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetNodePoolManagement_async", + "title": "ClusterManager setNodePoolManagement Sample", + "origin": "API_DEFINITION", + "description": " Sets the NodeManagement options for a node pool.", + "canonical": true, + "file": "cluster_manager.set_node_pool_management.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetNodePoolManagement", + "fullName": "google.container.v1.ClusterManager.SetNodePoolManagement", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "management", + "type": ".google.container.v1.NodeManagement" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetNodePoolManagement", + "fullName": "google.container.v1.ClusterManager.SetNodePoolManagement", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetLabels_async", + "title": "ClusterManager setLabels Sample", + "origin": "API_DEFINITION", + "description": " Sets labels on a cluster.", + "canonical": true, + "file": "cluster_manager.set_labels.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLabels", + "fullName": "google.container.v1.ClusterManager.SetLabels", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "resource_labels", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "label_fingerprint", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetLabels", + "fullName": "google.container.v1.ClusterManager.SetLabels", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetLegacyAbac_async", + "title": "ClusterManager setLegacyAbac Sample", + "origin": "API_DEFINITION", + "description": " Enables or disables the ABAC authorization mechanism on a cluster.", + "canonical": true, + "file": "cluster_manager.set_legacy_abac.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLegacyAbac", + "fullName": "google.container.v1.ClusterManager.SetLegacyAbac", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "enabled", + "type": "TYPE_BOOL" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetLegacyAbac", + "fullName": "google.container.v1.ClusterManager.SetLegacyAbac", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_StartIPRotation_async", + "title": "ClusterManager startIPRotation Sample", + "origin": "API_DEFINITION", + "description": " Starts master IP rotation.", + "canonical": true, + "file": "cluster_manager.start_i_p_rotation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "StartIPRotation", + "fullName": "google.container.v1.ClusterManager.StartIPRotation", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "rotate_credentials", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "StartIPRotation", + "fullName": "google.container.v1.ClusterManager.StartIPRotation", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_CompleteIPRotation_async", + "title": "ClusterManager completeIPRotation Sample", + "origin": "API_DEFINITION", + "description": " Completes master IP rotation.", + "canonical": true, + "file": "cluster_manager.complete_i_p_rotation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CompleteIPRotation", + "fullName": "google.container.v1.ClusterManager.CompleteIPRotation", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "CompleteIPRotation", + "fullName": "google.container.v1.ClusterManager.CompleteIPRotation", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetNodePoolSize_async", + "title": "ClusterManager setNodePoolSize Sample", + "origin": "API_DEFINITION", + "description": " Sets the size for a specific node pool. The new size will be used for all replicas, including future replicas created by modifying [NodePool.locations][google.container.v1.NodePool.locations].", + "canonical": true, + "file": "cluster_manager.set_node_pool_size.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetNodePoolSize", + "fullName": "google.container.v1.ClusterManager.SetNodePoolSize", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "node_count", + "type": "TYPE_INT32" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetNodePoolSize", + "fullName": "google.container.v1.ClusterManager.SetNodePoolSize", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetNetworkPolicy_async", + "title": "ClusterManager setNetworkPolicy Sample", + "origin": "API_DEFINITION", + "description": " Enables or disables Network Policy for a cluster.", + "canonical": true, + "file": "cluster_manager.set_network_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetNetworkPolicy", + "fullName": "google.container.v1.ClusterManager.SetNetworkPolicy", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "network_policy", + "type": ".google.container.v1.NetworkPolicy" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetNetworkPolicy", + "fullName": "google.container.v1.ClusterManager.SetNetworkPolicy", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_SetMaintenancePolicy_async", + "title": "ClusterManager setMaintenancePolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the maintenance policy for a cluster.", + "canonical": true, + "file": "cluster_manager.set_maintenance_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetMaintenancePolicy", + "fullName": "google.container.v1.ClusterManager.SetMaintenancePolicy", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "maintenance_policy", + "type": ".google.container.v1.MaintenancePolicy" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetMaintenancePolicy", + "fullName": "google.container.v1.ClusterManager.SetMaintenancePolicy", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, + { + "regionTag": "container_v1_generated_ClusterManager_ListUsableSubnetworks_async", + "title": "ClusterManager listUsableSubnetworks Sample", + "origin": "API_DEFINITION", + "description": " Lists subnetworks that are usable for creating clusters in a project.", + "canonical": true, + "file": "cluster_manager.list_usable_subnetworks.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 71, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUsableSubnetworks", + "fullName": "google.container.v1.ClusterManager.ListUsableSubnetworks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.ListUsableSubnetworksResponse", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "ListUsableSubnetworks", + "fullName": "google.container.v1.ClusterManager.ListUsableSubnetworks", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + } + ] +} diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index ec0952d5f86..f6b7e72b606 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -3779,9 +3779,8 @@ export class ClusterManagerClient { * @returns {Promise} A promise that resolves when the client is closed. */ close(): Promise { - this.initialize(); - if (!this._terminated) { - return this.clusterManagerStub!.then(stub => { + if (this.clusterManagerStub && !this._terminated) { + return this.clusterManagerStub.then(stub => { this._terminated = true; stub.close(); }); diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index dec77af5238..41b062d38e1 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -153,12 +153,27 @@ describe('v1.ClusterManagerClient', () => { assert(client.clusterManagerStub); }); - it('has close method', () => { + it('has close method for the initialized client', done => { const client = new clustermanagerModule.v1.ClusterManagerClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.close(); + client.initialize(); + assert(client.clusterManagerStub); + client.close().then(() => { + done(); + }); + }); + + it('has close method for the non-initialized client', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.clusterManagerStub, undefined); + client.close().then(() => { + done(); + }); }); it('has getProjectId method', async () => { @@ -307,6 +322,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes listClusters with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListClustersRequest() + ); + request.parent = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.listClusters(request), expectedError); + }); }); describe('getCluster', () => { @@ -421,6 +453,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getCluster with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetClusterRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getCluster(request), expectedError); + }); }); describe('createCluster', () => { @@ -535,6 +584,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createCluster with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CreateClusterRequest() + ); + request.parent = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createCluster(request), expectedError); + }); }); describe('updateCluster', () => { @@ -649,6 +715,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateCluster with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateClusterRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateCluster(request), expectedError); + }); }); describe('updateNodePool', () => { @@ -763,6 +846,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateNodePool with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateNodePoolRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateNodePool(request), expectedError); + }); }); describe('setNodePoolAutoscaling', () => { @@ -881,6 +981,26 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setNodePoolAutoscaling with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolAutoscalingRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.setNodePoolAutoscaling(request), + expectedError + ); + }); }); describe('setLoggingService', () => { @@ -995,6 +1115,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setLoggingService with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLoggingServiceRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setLoggingService(request), expectedError); + }); }); describe('setMonitoringService', () => { @@ -1110,6 +1247,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setMonitoringService with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMonitoringServiceRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setMonitoringService(request), expectedError); + }); }); describe('setAddonsConfig', () => { @@ -1224,6 +1378,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setAddonsConfig with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetAddonsConfigRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setAddonsConfig(request), expectedError); + }); }); describe('setLocations', () => { @@ -1344,6 +1515,25 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setLocations with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const stub = sinon.stub(client, 'warn'); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLocationsRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setLocations(request), expectedError); + assert(stub.calledOnce); + }); }); describe('updateMaster', () => { @@ -1458,6 +1648,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes updateMaster with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.UpdateMasterRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.updateMaster(request), expectedError); + }); }); describe('setMasterAuth', () => { @@ -1572,6 +1779,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setMasterAuth with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMasterAuthRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setMasterAuth(request), expectedError); + }); }); describe('deleteCluster', () => { @@ -1686,6 +1910,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteCluster with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.DeleteClusterRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteCluster(request), expectedError); + }); }); describe('listOperations', () => { @@ -1800,6 +2041,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes listOperations with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListOperationsRequest() + ); + request.parent = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.listOperations(request), expectedError); + }); }); describe('getOperation', () => { @@ -1914,6 +2172,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getOperation with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetOperationRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getOperation(request), expectedError); + }); }); describe('cancelOperation', () => { @@ -2028,6 +2303,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes cancelOperation with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CancelOperationRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.cancelOperation(request), expectedError); + }); }); describe('getServerConfig', () => { @@ -2142,6 +2434,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getServerConfig with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetServerConfigRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getServerConfig(request), expectedError); + }); }); describe('getJSONWebKeys', () => { @@ -2253,6 +2562,22 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getJSONWebKeys with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetJSONWebKeysRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getJSONWebKeys(request), expectedError); + }); }); describe('listNodePools', () => { @@ -2367,6 +2692,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes listNodePools with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.ListNodePoolsRequest() + ); + request.parent = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.listNodePools(request), expectedError); + }); }); describe('getNodePool', () => { @@ -2481,6 +2823,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes getNodePool with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.GetNodePoolRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.getNodePool(request), expectedError); + }); }); describe('createNodePool', () => { @@ -2595,6 +2954,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes createNodePool with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CreateNodePoolRequest() + ); + request.parent = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'parent=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.createNodePool(request), expectedError); + }); }); describe('deleteNodePool', () => { @@ -2709,6 +3085,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes deleteNodePool with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.DeleteNodePoolRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.deleteNodePool(request), expectedError); + }); }); describe('rollbackNodePoolUpgrade', () => { @@ -2827,6 +3220,26 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes rollbackNodePoolUpgrade with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.RollbackNodePoolUpgradeRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.rollbackNodePoolUpgrade(request), + expectedError + ); + }); }); describe('setNodePoolManagement', () => { @@ -2945,6 +3358,26 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setNodePoolManagement with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolManagementRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.setNodePoolManagement(request), + expectedError + ); + }); }); describe('setLabels', () => { @@ -3056,6 +3489,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setLabels with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLabelsRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setLabels(request), expectedError); + }); }); describe('setLegacyAbac', () => { @@ -3170,6 +3620,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setLegacyAbac with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetLegacyAbacRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setLegacyAbac(request), expectedError); + }); }); describe('startIPRotation', () => { @@ -3284,6 +3751,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes startIPRotation with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.StartIPRotationRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.startIPRotation(request), expectedError); + }); }); describe('completeIPRotation', () => { @@ -3399,6 +3883,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes completeIPRotation with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CompleteIPRotationRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.completeIPRotation(request), expectedError); + }); }); describe('setNodePoolSize', () => { @@ -3513,6 +4014,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setNodePoolSize with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNodePoolSizeRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setNodePoolSize(request), expectedError); + }); }); describe('setNetworkPolicy', () => { @@ -3627,6 +4145,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setNetworkPolicy with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetNetworkPolicyRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setNetworkPolicy(request), expectedError); + }); }); describe('setMaintenancePolicy', () => { @@ -3742,6 +4277,23 @@ describe('v1.ClusterManagerClient', () => { .calledWith(request, expectedOptions, undefined) ); }); + + it('invokes setMaintenancePolicy with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.SetMaintenancePolicyRequest() + ); + request.name = ''; + request.projectId = ''; + const expectedHeaderRequestParams = 'name=&project_id='; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.setMaintenancePolicy(request), expectedError); + }); }); describe('listUsableSubnetworks', () => { From e76047c5b8be2f7d07f84655918cd2a164138d0f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 26 Feb 2022 13:18:53 -0400 Subject: [PATCH 328/371] chore(main): release 3.0.0 (#511) Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- packages/google-container/CHANGELOG.md | 12 ++++++++++++ packages/google-container/package.json | 2 +- packages/google-container/samples/package.json | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index e0e21053523..5c7060e1032 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,18 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [3.0.0](https://github.com/googleapis/nodejs-cloud-container/compare/v2.6.0...v3.0.0) (2022-02-26) + + +### ⚠ BREAKING CHANGES + +* revert bad publishing (#510) + +### Bug Fixes + +* revert bad publishing ([#510](https://github.com/googleapis/nodejs-cloud-container/issues/510)) ([541fc5b](https://github.com/googleapis/nodejs-cloud-container/commit/541fc5b3637b9dc3c1af722f1c931e6d63129f9f)) +* reverting unintentional breaking change: GetOpenIdConfigRequest, GetOpenIdConfigResponse ([#512](https://github.com/googleapis/nodejs-cloud-container/issues/512)) ([8ed44d7](https://github.com/googleapis/nodejs-cloud-container/commit/8ed44d74d8ec61d49c8f46b78169f1585c02a862)) + ## [2.6.0](https://www.github.com/googleapis/nodejs-cloud-container/compare/v2.5.0...v2.6.0) (2021-12-09) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index d04e82fe427..2a146de2490 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "2.6.0", + "version": "3.0.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 7f1ddd546ad..8849049c2fa 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^2.6.0", + "@google-cloud/container": "^3.0.0", "uuid": "^8.3.2" }, "devDependencies": { From e3aa36b98111742a770a2c14efad69934c781ce1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 16 Mar 2022 21:34:35 +0000 Subject: [PATCH 329/371] chore: update v2.14.2 gapic-generator-typescript (#524) - [ ] Regenerate this pull request now. Committer: @summer-ji-eng PiperOrigin-RevId: 434859890 Source-Link: https://github.com/googleapis/googleapis/commit/bc2432d50cba657e95212122e3fa112591b5bec2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/930b673103e92523f8cfed38decd7d3afae8ebe7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTMwYjY3MzEwM2U5MjUyM2Y4Y2ZlZDM4ZGVjZDdkM2FmYWU4ZWJlNyJ9 --- .../test/gapic_cluster_manager_v1.ts | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index 41b062d38e1..027e94a3f92 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -334,7 +334,6 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listClusters(request), expectedError); @@ -465,7 +464,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCluster(request), expectedError); @@ -596,7 +594,6 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createCluster(request), expectedError); @@ -727,7 +724,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateCluster(request), expectedError); @@ -858,7 +854,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateNodePool(request), expectedError); @@ -993,7 +988,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1127,7 +1121,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLoggingService(request), expectedError); @@ -1259,7 +1252,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMonitoringService(request), expectedError); @@ -1390,7 +1382,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setAddonsConfig(request), expectedError); @@ -1528,7 +1519,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLocations(request), expectedError); @@ -1660,7 +1650,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateMaster(request), expectedError); @@ -1791,7 +1780,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMasterAuth(request), expectedError); @@ -1922,7 +1910,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteCluster(request), expectedError); @@ -2053,7 +2040,6 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listOperations(request), expectedError); @@ -2184,7 +2170,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getOperation(request), expectedError); @@ -2315,7 +2300,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.cancelOperation(request), expectedError); @@ -2446,7 +2430,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getServerConfig(request), expectedError); @@ -2573,7 +2556,6 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.GetJSONWebKeysRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getJSONWebKeys(request), expectedError); @@ -2704,7 +2686,6 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listNodePools(request), expectedError); @@ -2835,7 +2816,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getNodePool(request), expectedError); @@ -2966,7 +2946,6 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createNodePool(request), expectedError); @@ -3097,7 +3076,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteNodePool(request), expectedError); @@ -3232,7 +3210,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3370,7 +3347,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3501,7 +3477,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -3632,7 +3607,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLegacyAbac(request), expectedError); @@ -3763,7 +3737,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.startIPRotation(request), expectedError); @@ -3895,7 +3868,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.completeIPRotation(request), expectedError); @@ -4026,7 +3998,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setNodePoolSize(request), expectedError); @@ -4157,7 +4128,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setNetworkPolicy(request), expectedError); @@ -4289,7 +4259,6 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMaintenancePolicy(request), expectedError); From 3ade05f4a4caa4fcdf36d4d1157bcc7ec0c48bdc Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 7 Apr 2022 17:20:19 +0000 Subject: [PATCH 330/371] fix: clarify the gax-nodejs usage in README (#1352) (#528) Co-authored-by: Benjamin E. Coe Co-authored-by: Jeffrey Rennie Source-Link: https://github.com/googleapis/synthtool/commit/e1557e468fd986c952ba718d9ff90e1d87390209 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:c2641f0628c1077d504eca6b065517b0cc54336f09a9a38e3614c4b412dd9d37 --- packages/google-container/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index d452abe9fad..c1e1e8adcc6 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -94,6 +94,9 @@ To run commands against the clusters created, you will need to use the (and the associated kubectl command-line interface). + +This library is built on top of google-gax as its transport layer. To customize the common behavior of this client library (timeout, retry, etc), see [Client Library Howto](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md). + ## Samples Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloud-container/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. From b4afd693ba72c297b2dff4eaa7fe1596377dec29 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 8 Apr 2022 13:32:15 -0700 Subject: [PATCH 331/371] Revert "fix: clarify the gax-nodejs usage in README (#1352)" (#1409) (#530) This reverts commit e1557e468fd986c952ba718d9ff90e1d87390209. Source-Link: https://github.com/googleapis/synthtool/commit/8a475dc2f35b6ee6789d7f98f6ae96bb6f5e286e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:ba0957cb15a1b8ca7ec2795c7783cd09cb68be2de9f4a7c69aa15b759c622735 Co-authored-by: Owl Bot --- packages/google-container/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index c1e1e8adcc6..d452abe9fad 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -94,9 +94,6 @@ To run commands against the clusters created, you will need to use the (and the associated kubectl command-line interface). - -This library is built on top of google-gax as its transport layer. To customize the common behavior of this client library (timeout, retry, etc), see [Client Library Howto](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md). - ## Samples Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloud-container/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. From 03bb97fb5f333c02b09f52e4ca8d3dcfdcb032fe Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 21 Apr 2022 02:32:24 +0000 Subject: [PATCH 332/371] build(node): update client library version in samples metadata (#1356) (#533) * build(node): add feat in node post-processor to add client library version number in snippet metadata Co-authored-by: Benjamin E. Coe Source-Link: https://github.com/googleapis/synthtool/commit/d337b88dd1494365183718a2de0b7b4056b6fdfe Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:d106724ad2a96daa1b8d88de101ba50bdb30b8df62ffa0aa2b451d93b4556641 --- .../snippet_metadata.google.container.v1.json | 3452 ++++++++--------- 1 file changed, 1726 insertions(+), 1726 deletions(-) diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 7c9f71447fe..1907a924f17 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,1791 +1,1791 @@ { - "clientLibrary": { - "name": "nodejs-container", - "version": "0.1.0", - "language": "TYPESCRIPT", - "apis": [ - { - "id": "google.container.v1", - "version": "v1" - } - ] - }, - "snippets": [ - { - "regionTag": "container_v1_generated_ClusterManager_ListClusters_async", - "title": "ClusterManager listClusters Sample", - "origin": "API_DEFINITION", - "description": " Lists all clusters owned by a project in either the specified zone or all zones.", - "canonical": true, - "file": "cluster_manager.list_clusters.js", - "language": "JAVASCRIPT", - "segments": [ - { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListClusters", - "fullName": "google.container.v1.ClusterManager.ListClusters", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ListClustersResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" - }, - "method": { - "shortName": "ListClusters", - "fullName": "google.container.v1.ClusterManager.ListClusters", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } + "clientLibrary": { + "name": "nodejs-container", + "version": "3.0.0", + "language": "TYPESCRIPT", + "apis": [ + { + "id": "google.container.v1", + "version": "v1" + } + ] }, - { - "regionTag": "container_v1_generated_ClusterManager_GetCluster_async", - "title": "ClusterManager getCluster Sample", - "origin": "API_DEFINITION", - "description": " Gets the details of a specific cluster.", - "canonical": true, - "file": "cluster_manager.get_cluster.js", - "language": "JAVASCRIPT", - "segments": [ + "snippets": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetCluster", - "fullName": "google.container.v1.ClusterManager.GetCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Cluster", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_ListClusters_async", + "title": "ClusterManager listClusters Sample", + "origin": "API_DEFINITION", + "description": " Lists all clusters owned by a project in either the specified zone or all zones.", + "canonical": true, + "file": "cluster_manager.list_clusters.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListClusters", + "fullName": "google.container.v1.ClusterManager.ListClusters", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.ListClustersResponse", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "ListClusters", + "fullName": "google.container.v1.ClusterManager.ListClusters", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "GetCluster", - "fullName": "google.container.v1.ClusterManager.GetCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_CreateCluster_async", - "title": "ClusterManager createCluster Sample", - "origin": "API_DEFINITION", - "description": " Creates a cluster, consisting of the specified number and type of Google 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). One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.", - "canonical": true, - "file": "cluster_manager.create_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateCluster", - "fullName": "google.container.v1.ClusterManager.CreateCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster", - "type": ".google.container.v1.Cluster" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_GetCluster_async", + "title": "ClusterManager getCluster Sample", + "origin": "API_DEFINITION", + "description": " Gets the details of a specific cluster.", + "canonical": true, + "file": "cluster_manager.get_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetCluster", + "fullName": "google.container.v1.ClusterManager.GetCluster", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Cluster", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "GetCluster", + "fullName": "google.container.v1.ClusterManager.GetCluster", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "CreateCluster", - "fullName": "google.container.v1.ClusterManager.CreateCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_UpdateCluster_async", - "title": "ClusterManager updateCluster Sample", - "origin": "API_DEFINITION", - "description": " Updates the settings of a specific cluster.", - "canonical": true, - "file": "cluster_manager.update_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateCluster", - "fullName": "google.container.v1.ClusterManager.UpdateCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "update", - "type": ".google.container.v1.ClusterUpdate" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_CreateCluster_async", + "title": "ClusterManager createCluster Sample", + "origin": "API_DEFINITION", + "description": " Creates a cluster, consisting of the specified number and type of Google 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). One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using.", + "canonical": true, + "file": "cluster_manager.create_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateCluster", + "fullName": "google.container.v1.ClusterManager.CreateCluster", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster", + "type": ".google.container.v1.Cluster" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "CreateCluster", + "fullName": "google.container.v1.ClusterManager.CreateCluster", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "UpdateCluster", - "fullName": "google.container.v1.ClusterManager.UpdateCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_UpdateNodePool_async", - "title": "ClusterManager updateNodePool Sample", - "origin": "API_DEFINITION", - "description": " Updates the version and/or image type for the specified node pool.", - "canonical": true, - "file": "cluster_manager.update_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 101, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateNodePool", - "fullName": "google.container.v1.ClusterManager.UpdateNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "node_version", - "type": "TYPE_STRING" - }, - { - "name": "image_type", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "locations", - "type": "TYPE_STRING[]" - }, - { - "name": "workload_metadata_config", - "type": ".google.container.v1.WorkloadMetadataConfig" - }, - { - "name": "upgrade_settings", - "type": ".google.container.v1.NodePool.UpgradeSettings" - }, - { - "name": "linux_node_config", - "type": ".google.container.v1.LinuxNodeConfig" - }, - { - "name": "kubelet_config", - "type": ".google.container.v1.NodeKubeletConfig" - }, - { - "name": "gcfs_config", - "type": ".google.container.v1.GcfsConfig" - }, - { - "name": "gvnic", - "type": ".google.container.v1.VirtualNIC" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_UpdateCluster_async", + "title": "ClusterManager updateCluster Sample", + "origin": "API_DEFINITION", + "description": " Updates the settings of a specific cluster.", + "canonical": true, + "file": "cluster_manager.update_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateCluster", + "fullName": "google.container.v1.ClusterManager.UpdateCluster", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "update", + "type": ".google.container.v1.ClusterUpdate" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "UpdateCluster", + "fullName": "google.container.v1.ClusterManager.UpdateCluster", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "UpdateNodePool", - "fullName": "google.container.v1.ClusterManager.UpdateNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetNodePoolAutoscaling_async", - "title": "ClusterManager setNodePoolAutoscaling Sample", - "origin": "API_DEFINITION", - "description": " Sets the autoscaling settings for the specified node pool.", - "canonical": true, - "file": "cluster_manager.set_node_pool_autoscaling.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodePoolAutoscaling", - "fullName": "google.container.v1.ClusterManager.SetNodePoolAutoscaling", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "autoscaling", - "type": ".google.container.v1.NodePoolAutoscaling" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_UpdateNodePool_async", + "title": "ClusterManager updateNodePool Sample", + "origin": "API_DEFINITION", + "description": " Updates the version and/or image type for the specified node pool.", + "canonical": true, + "file": "cluster_manager.update_node_pool.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 101, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateNodePool", + "fullName": "google.container.v1.ClusterManager.UpdateNodePool", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "node_version", + "type": "TYPE_STRING" + }, + { + "name": "image_type", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "locations", + "type": "TYPE_STRING[]" + }, + { + "name": "workload_metadata_config", + "type": ".google.container.v1.WorkloadMetadataConfig" + }, + { + "name": "upgrade_settings", + "type": ".google.container.v1.NodePool.UpgradeSettings" + }, + { + "name": "linux_node_config", + "type": ".google.container.v1.LinuxNodeConfig" + }, + { + "name": "kubelet_config", + "type": ".google.container.v1.NodeKubeletConfig" + }, + { + "name": "gcfs_config", + "type": ".google.container.v1.GcfsConfig" + }, + { + "name": "gvnic", + "type": ".google.container.v1.VirtualNIC" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "UpdateNodePool", + "fullName": "google.container.v1.ClusterManager.UpdateNodePool", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetNodePoolAutoscaling", - "fullName": "google.container.v1.ClusterManager.SetNodePoolAutoscaling", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetLoggingService_async", - "title": "ClusterManager setLoggingService Sample", - "origin": "API_DEFINITION", - "description": " Sets the logging service for a specific cluster.", - "canonical": true, - "file": "cluster_manager.set_logging_service.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLoggingService", - "fullName": "google.container.v1.ClusterManager.SetLoggingService", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "logging_service", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetNodePoolAutoscaling_async", + "title": "ClusterManager setNodePoolAutoscaling Sample", + "origin": "API_DEFINITION", + "description": " Sets the autoscaling settings for the specified node pool.", + "canonical": true, + "file": "cluster_manager.set_node_pool_autoscaling.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetNodePoolAutoscaling", + "fullName": "google.container.v1.ClusterManager.SetNodePoolAutoscaling", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "autoscaling", + "type": ".google.container.v1.NodePoolAutoscaling" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetNodePoolAutoscaling", + "fullName": "google.container.v1.ClusterManager.SetNodePoolAutoscaling", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetLoggingService", - "fullName": "google.container.v1.ClusterManager.SetLoggingService", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetMonitoringService_async", - "title": "ClusterManager setMonitoringService Sample", - "origin": "API_DEFINITION", - "description": " Sets the monitoring service for a specific cluster.", - "canonical": true, - "file": "cluster_manager.set_monitoring_service.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 63, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMonitoringService", - "fullName": "google.container.v1.ClusterManager.SetMonitoringService", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "monitoring_service", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetLoggingService_async", + "title": "ClusterManager setLoggingService Sample", + "origin": "API_DEFINITION", + "description": " Sets the logging service for a specific cluster.", + "canonical": true, + "file": "cluster_manager.set_logging_service.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLoggingService", + "fullName": "google.container.v1.ClusterManager.SetLoggingService", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "logging_service", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetLoggingService", + "fullName": "google.container.v1.ClusterManager.SetLoggingService", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetMonitoringService", - "fullName": "google.container.v1.ClusterManager.SetMonitoringService", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetAddonsConfig_async", - "title": "ClusterManager setAddonsConfig Sample", - "origin": "API_DEFINITION", - "description": " Sets the addons for a specific cluster.", - "canonical": true, - "file": "cluster_manager.set_addons_config.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetAddonsConfig", - "fullName": "google.container.v1.ClusterManager.SetAddonsConfig", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "addons_config", - "type": ".google.container.v1.AddonsConfig" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetMonitoringService_async", + "title": "ClusterManager setMonitoringService Sample", + "origin": "API_DEFINITION", + "description": " Sets the monitoring service for a specific cluster.", + "canonical": true, + "file": "cluster_manager.set_monitoring_service.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 63, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetMonitoringService", + "fullName": "google.container.v1.ClusterManager.SetMonitoringService", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "monitoring_service", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetMonitoringService", + "fullName": "google.container.v1.ClusterManager.SetMonitoringService", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetAddonsConfig", - "fullName": "google.container.v1.ClusterManager.SetAddonsConfig", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetLocations_async", - "title": "ClusterManager setLocations Sample", - "origin": "API_DEFINITION", - "description": " 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.", - "canonical": true, - "file": "cluster_manager.set_locations.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLocations", - "fullName": "google.container.v1.ClusterManager.SetLocations", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "locations", - "type": "TYPE_STRING[]" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetAddonsConfig_async", + "title": "ClusterManager setAddonsConfig Sample", + "origin": "API_DEFINITION", + "description": " Sets the addons for a specific cluster.", + "canonical": true, + "file": "cluster_manager.set_addons_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetAddonsConfig", + "fullName": "google.container.v1.ClusterManager.SetAddonsConfig", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "addons_config", + "type": ".google.container.v1.AddonsConfig" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetAddonsConfig", + "fullName": "google.container.v1.ClusterManager.SetAddonsConfig", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetLocations", - "fullName": "google.container.v1.ClusterManager.SetLocations", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_UpdateMaster_async", - "title": "ClusterManager updateMaster Sample", - "origin": "API_DEFINITION", - "description": " Updates the master for a specific cluster.", - "canonical": true, - "file": "cluster_manager.update_master.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 62, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "UpdateMaster", - "fullName": "google.container.v1.ClusterManager.UpdateMaster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "master_version", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetLocations_async", + "title": "ClusterManager setLocations Sample", + "origin": "API_DEFINITION", + "description": " 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.", + "canonical": true, + "file": "cluster_manager.set_locations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLocations", + "fullName": "google.container.v1.ClusterManager.SetLocations", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "locations", + "type": "TYPE_STRING[]" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetLocations", + "fullName": "google.container.v1.ClusterManager.SetLocations", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "UpdateMaster", - "fullName": "google.container.v1.ClusterManager.UpdateMaster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetMasterAuth_async", - "title": "ClusterManager setMasterAuth Sample", - "origin": "API_DEFINITION", - "description": " Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password.", - "canonical": true, - "file": "cluster_manager.set_master_auth.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 60, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMasterAuth", - "fullName": "google.container.v1.ClusterManager.SetMasterAuth", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "action", - "type": ".google.container.v1.SetMasterAuthRequest.Action" - }, - { - "name": "update", - "type": ".google.container.v1.MasterAuth" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_UpdateMaster_async", + "title": "ClusterManager updateMaster Sample", + "origin": "API_DEFINITION", + "description": " Updates the master for a specific cluster.", + "canonical": true, + "file": "cluster_manager.update_master.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 62, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "UpdateMaster", + "fullName": "google.container.v1.ClusterManager.UpdateMaster", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "master_version", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "UpdateMaster", + "fullName": "google.container.v1.ClusterManager.UpdateMaster", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetMasterAuth", - "fullName": "google.container.v1.ClusterManager.SetMasterAuth", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_DeleteCluster_async", - "title": "ClusterManager deleteCluster Sample", - "origin": "API_DEFINITION", - "description": " Deletes the cluster, including the Kubernetes endpoint and all worker nodes. Firewalls and routes that were configured during cluster creation are also deleted. Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.", - "canonical": true, - "file": "cluster_manager.delete_cluster.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteCluster", - "fullName": "google.container.v1.ClusterManager.DeleteCluster", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetMasterAuth_async", + "title": "ClusterManager setMasterAuth Sample", + "origin": "API_DEFINITION", + "description": " Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password.", + "canonical": true, + "file": "cluster_manager.set_master_auth.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 60, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetMasterAuth", + "fullName": "google.container.v1.ClusterManager.SetMasterAuth", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "action", + "type": ".google.container.v1.SetMasterAuthRequest.Action" + }, + { + "name": "update", + "type": ".google.container.v1.MasterAuth" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetMasterAuth", + "fullName": "google.container.v1.ClusterManager.SetMasterAuth", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "DeleteCluster", - "fullName": "google.container.v1.ClusterManager.DeleteCluster", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_ListOperations_async", - "title": "ClusterManager listOperations Sample", - "origin": "API_DEFINITION", - "description": " Lists all operations in a project in a specific zone or all zones.", - "canonical": true, - "file": "cluster_manager.list_operations.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListOperations", - "fullName": "google.container.v1.ClusterManager.ListOperations", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ListOperationsResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_DeleteCluster_async", + "title": "ClusterManager deleteCluster Sample", + "origin": "API_DEFINITION", + "description": " Deletes the cluster, including the Kubernetes endpoint and all worker nodes. Firewalls and routes that were configured during cluster creation are also deleted. Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.", + "canonical": true, + "file": "cluster_manager.delete_cluster.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteCluster", + "fullName": "google.container.v1.ClusterManager.DeleteCluster", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "DeleteCluster", + "fullName": "google.container.v1.ClusterManager.DeleteCluster", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "ListOperations", - "fullName": "google.container.v1.ClusterManager.ListOperations", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_GetOperation_async", - "title": "ClusterManager getOperation Sample", - "origin": "API_DEFINITION", - "description": " Gets the specified operation.", - "canonical": true, - "file": "cluster_manager.get_operation.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetOperation", - "fullName": "google.container.v1.ClusterManager.GetOperation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "operation_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_ListOperations_async", + "title": "ClusterManager listOperations Sample", + "origin": "API_DEFINITION", + "description": " Lists all operations in a project in a specific zone or all zones.", + "canonical": true, + "file": "cluster_manager.list_operations.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListOperations", + "fullName": "google.container.v1.ClusterManager.ListOperations", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.ListOperationsResponse", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "ListOperations", + "fullName": "google.container.v1.ClusterManager.ListOperations", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "GetOperation", - "fullName": "google.container.v1.ClusterManager.GetOperation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_CancelOperation_async", - "title": "ClusterManager cancelOperation Sample", - "origin": "API_DEFINITION", - "description": " Cancels the specified operation.", - "canonical": true, - "file": "cluster_manager.cancel_operation.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CancelOperation", - "fullName": "google.container.v1.ClusterManager.CancelOperation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "operation_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.protobuf.Empty", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_GetOperation_async", + "title": "ClusterManager getOperation Sample", + "origin": "API_DEFINITION", + "description": " Gets the specified operation.", + "canonical": true, + "file": "cluster_manager.get_operation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetOperation", + "fullName": "google.container.v1.ClusterManager.GetOperation", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "operation_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "GetOperation", + "fullName": "google.container.v1.ClusterManager.GetOperation", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "CancelOperation", - "fullName": "google.container.v1.ClusterManager.CancelOperation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_GetServerConfig_async", - "title": "ClusterManager getServerConfig Sample", - "origin": "API_DEFINITION", - "description": " Returns configuration info about the Google Kubernetes Engine service.", - "canonical": true, - "file": "cluster_manager.get_server_config.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetServerConfig", - "fullName": "google.container.v1.ClusterManager.GetServerConfig", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ServerConfig", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_CancelOperation_async", + "title": "ClusterManager cancelOperation Sample", + "origin": "API_DEFINITION", + "description": " Cancels the specified operation.", + "canonical": true, + "file": "cluster_manager.cancel_operation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CancelOperation", + "fullName": "google.container.v1.ClusterManager.CancelOperation", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "operation_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "CancelOperation", + "fullName": "google.container.v1.ClusterManager.CancelOperation", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "GetServerConfig", - "fullName": "google.container.v1.ClusterManager.GetServerConfig", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_GetJSONWebKeys_async", - "title": "ClusterManager getJSONWebKeys Sample", - "origin": "API_DEFINITION", - "description": " 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.", - "canonical": true, - "file": "cluster_manager.get_j_s_o_n_web_keys.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetJSONWebKeys", - "fullName": "google.container.v1.ClusterManager.GetJSONWebKeys", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.GetJSONWebKeysResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_GetServerConfig_async", + "title": "ClusterManager getServerConfig Sample", + "origin": "API_DEFINITION", + "description": " Returns configuration info about the Google Kubernetes Engine service.", + "canonical": true, + "file": "cluster_manager.get_server_config.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetServerConfig", + "fullName": "google.container.v1.ClusterManager.GetServerConfig", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.ServerConfig", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "GetServerConfig", + "fullName": "google.container.v1.ClusterManager.GetServerConfig", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "GetJSONWebKeys", - "fullName": "google.container.v1.ClusterManager.GetJSONWebKeys", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_ListNodePools_async", - "title": "ClusterManager listNodePools Sample", - "origin": "API_DEFINITION", - "description": " Lists the node pools for a cluster.", - "canonical": true, - "file": "cluster_manager.list_node_pools.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListNodePools", - "fullName": "google.container.v1.ClusterManager.ListNodePools", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ListNodePoolsResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_GetJSONWebKeys_async", + "title": "ClusterManager getJSONWebKeys Sample", + "origin": "API_DEFINITION", + "description": " 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.", + "canonical": true, + "file": "cluster_manager.get_j_s_o_n_web_keys.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetJSONWebKeys", + "fullName": "google.container.v1.ClusterManager.GetJSONWebKeys", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.GetJSONWebKeysResponse", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "GetJSONWebKeys", + "fullName": "google.container.v1.ClusterManager.GetJSONWebKeys", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "ListNodePools", - "fullName": "google.container.v1.ClusterManager.ListNodePools", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_GetNodePool_async", - "title": "ClusterManager getNodePool Sample", - "origin": "API_DEFINITION", - "description": " Retrieves the requested node pool.", - "canonical": true, - "file": "cluster_manager.get_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "GetNodePool", - "fullName": "google.container.v1.ClusterManager.GetNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.NodePool", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_ListNodePools_async", + "title": "ClusterManager listNodePools Sample", + "origin": "API_DEFINITION", + "description": " Lists the node pools for a cluster.", + "canonical": true, + "file": "cluster_manager.list_node_pools.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListNodePools", + "fullName": "google.container.v1.ClusterManager.ListNodePools", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.ListNodePoolsResponse", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "ListNodePools", + "fullName": "google.container.v1.ClusterManager.ListNodePools", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "GetNodePool", - "fullName": "google.container.v1.ClusterManager.GetNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_CreateNodePool_async", - "title": "ClusterManager createNodePool Sample", - "origin": "API_DEFINITION", - "description": " Creates a node pool for a cluster.", - "canonical": true, - "file": "cluster_manager.create_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CreateNodePool", - "fullName": "google.container.v1.ClusterManager.CreateNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool", - "type": ".google.container.v1.NodePool" - }, - { - "name": "parent", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_GetNodePool_async", + "title": "ClusterManager getNodePool Sample", + "origin": "API_DEFINITION", + "description": " Retrieves the requested node pool.", + "canonical": true, + "file": "cluster_manager.get_node_pool.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "GetNodePool", + "fullName": "google.container.v1.ClusterManager.GetNodePool", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.NodePool", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "GetNodePool", + "fullName": "google.container.v1.ClusterManager.GetNodePool", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "CreateNodePool", - "fullName": "google.container.v1.ClusterManager.CreateNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_DeleteNodePool_async", - "title": "ClusterManager deleteNodePool Sample", - "origin": "API_DEFINITION", - "description": " Deletes a node pool from a cluster.", - "canonical": true, - "file": "cluster_manager.delete_node_pool.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "DeleteNodePool", - "fullName": "google.container.v1.ClusterManager.DeleteNodePool", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_CreateNodePool_async", + "title": "ClusterManager createNodePool Sample", + "origin": "API_DEFINITION", + "description": " Creates a node pool for a cluster.", + "canonical": true, + "file": "cluster_manager.create_node_pool.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CreateNodePool", + "fullName": "google.container.v1.ClusterManager.CreateNodePool", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool", + "type": ".google.container.v1.NodePool" + }, + { + "name": "parent", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "CreateNodePool", + "fullName": "google.container.v1.ClusterManager.CreateNodePool", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "DeleteNodePool", - "fullName": "google.container.v1.ClusterManager.DeleteNodePool", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_async", - "title": "ClusterManager rollbackNodePoolUpgrade Sample", - "origin": "API_DEFINITION", - "description": " Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.", - "canonical": true, - "file": "cluster_manager.rollback_node_pool_upgrade.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 51, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "RollbackNodePoolUpgrade", - "fullName": "google.container.v1.ClusterManager.RollbackNodePoolUpgrade", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_DeleteNodePool_async", + "title": "ClusterManager deleteNodePool Sample", + "origin": "API_DEFINITION", + "description": " Deletes a node pool from a cluster.", + "canonical": true, + "file": "cluster_manager.delete_node_pool.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteNodePool", + "fullName": "google.container.v1.ClusterManager.DeleteNodePool", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "DeleteNodePool", + "fullName": "google.container.v1.ClusterManager.DeleteNodePool", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "RollbackNodePoolUpgrade", - "fullName": "google.container.v1.ClusterManager.RollbackNodePoolUpgrade", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetNodePoolManagement_async", - "title": "ClusterManager setNodePoolManagement Sample", - "origin": "API_DEFINITION", - "description": " Sets the NodeManagement options for a node pool.", - "canonical": true, - "file": "cluster_manager.set_node_pool_management.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodePoolManagement", - "fullName": "google.container.v1.ClusterManager.SetNodePoolManagement", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "management", - "type": ".google.container.v1.NodeManagement" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_async", + "title": "ClusterManager rollbackNodePoolUpgrade Sample", + "origin": "API_DEFINITION", + "description": " Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last upgrade successfully completed.", + "canonical": true, + "file": "cluster_manager.rollback_node_pool_upgrade.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "RollbackNodePoolUpgrade", + "fullName": "google.container.v1.ClusterManager.RollbackNodePoolUpgrade", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "RollbackNodePoolUpgrade", + "fullName": "google.container.v1.ClusterManager.RollbackNodePoolUpgrade", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetNodePoolManagement", - "fullName": "google.container.v1.ClusterManager.SetNodePoolManagement", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetLabels_async", - "title": "ClusterManager setLabels Sample", - "origin": "API_DEFINITION", - "description": " Sets labels on a cluster.", - "canonical": true, - "file": "cluster_manager.set_labels.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 65, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLabels", - "fullName": "google.container.v1.ClusterManager.SetLabels", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "resource_labels", - "type": "TYPE_MESSAGE[]" - }, - { - "name": "label_fingerprint", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetNodePoolManagement_async", + "title": "ClusterManager setNodePoolManagement Sample", + "origin": "API_DEFINITION", + "description": " Sets the NodeManagement options for a node pool.", + "canonical": true, + "file": "cluster_manager.set_node_pool_management.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetNodePoolManagement", + "fullName": "google.container.v1.ClusterManager.SetNodePoolManagement", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "management", + "type": ".google.container.v1.NodeManagement" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetNodePoolManagement", + "fullName": "google.container.v1.ClusterManager.SetNodePoolManagement", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetLabels", - "fullName": "google.container.v1.ClusterManager.SetLabels", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetLegacyAbac_async", - "title": "ClusterManager setLegacyAbac Sample", - "origin": "API_DEFINITION", - "description": " Enables or disables the ABAC authorization mechanism on a cluster.", - "canonical": true, - "file": "cluster_manager.set_legacy_abac.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetLegacyAbac", - "fullName": "google.container.v1.ClusterManager.SetLegacyAbac", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "enabled", - "type": "TYPE_BOOL" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetLabels_async", + "title": "ClusterManager setLabels Sample", + "origin": "API_DEFINITION", + "description": " Sets labels on a cluster.", + "canonical": true, + "file": "cluster_manager.set_labels.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 65, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLabels", + "fullName": "google.container.v1.ClusterManager.SetLabels", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "resource_labels", + "type": "TYPE_MESSAGE[]" + }, + { + "name": "label_fingerprint", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetLabels", + "fullName": "google.container.v1.ClusterManager.SetLabels", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetLegacyAbac", - "fullName": "google.container.v1.ClusterManager.SetLegacyAbac", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_StartIPRotation_async", - "title": "ClusterManager startIPRotation Sample", - "origin": "API_DEFINITION", - "description": " Starts master IP rotation.", - "canonical": true, - "file": "cluster_manager.start_i_p_rotation.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 54, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "StartIPRotation", - "fullName": "google.container.v1.ClusterManager.StartIPRotation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - }, - { - "name": "rotate_credentials", - "type": "TYPE_BOOL" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetLegacyAbac_async", + "title": "ClusterManager setLegacyAbac Sample", + "origin": "API_DEFINITION", + "description": " Enables or disables the ABAC authorization mechanism on a cluster.", + "canonical": true, + "file": "cluster_manager.set_legacy_abac.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetLegacyAbac", + "fullName": "google.container.v1.ClusterManager.SetLegacyAbac", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "enabled", + "type": "TYPE_BOOL" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetLegacyAbac", + "fullName": "google.container.v1.ClusterManager.SetLegacyAbac", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "StartIPRotation", - "fullName": "google.container.v1.ClusterManager.StartIPRotation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_CompleteIPRotation_async", - "title": "ClusterManager completeIPRotation Sample", - "origin": "API_DEFINITION", - "description": " Completes master IP rotation.", - "canonical": true, - "file": "cluster_manager.complete_i_p_rotation.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 50, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "CompleteIPRotation", - "fullName": "google.container.v1.ClusterManager.CompleteIPRotation", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_StartIPRotation_async", + "title": "ClusterManager startIPRotation Sample", + "origin": "API_DEFINITION", + "description": " Starts master IP rotation.", + "canonical": true, + "file": "cluster_manager.start_i_p_rotation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 54, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "StartIPRotation", + "fullName": "google.container.v1.ClusterManager.StartIPRotation", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "rotate_credentials", + "type": "TYPE_BOOL" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "StartIPRotation", + "fullName": "google.container.v1.ClusterManager.StartIPRotation", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "CompleteIPRotation", - "fullName": "google.container.v1.ClusterManager.CompleteIPRotation", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetNodePoolSize_async", - "title": "ClusterManager setNodePoolSize Sample", - "origin": "API_DEFINITION", - "description": " Sets the size for a specific node pool. The new size will be used for all replicas, including future replicas created by modifying [NodePool.locations][google.container.v1.NodePool.locations].", - "canonical": true, - "file": "cluster_manager.set_node_pool_size.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 56, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNodePoolSize", - "fullName": "google.container.v1.ClusterManager.SetNodePoolSize", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "node_pool_id", - "type": "TYPE_STRING" - }, - { - "name": "node_count", - "type": "TYPE_INT32" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_CompleteIPRotation_async", + "title": "ClusterManager completeIPRotation Sample", + "origin": "API_DEFINITION", + "description": " Completes master IP rotation.", + "canonical": true, + "file": "cluster_manager.complete_i_p_rotation.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 50, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CompleteIPRotation", + "fullName": "google.container.v1.ClusterManager.CompleteIPRotation", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "CompleteIPRotation", + "fullName": "google.container.v1.ClusterManager.CompleteIPRotation", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetNodePoolSize", - "fullName": "google.container.v1.ClusterManager.SetNodePoolSize", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetNetworkPolicy_async", - "title": "ClusterManager setNetworkPolicy Sample", - "origin": "API_DEFINITION", - "description": " Enables or disables Network Policy for a cluster.", - "canonical": true, - "file": "cluster_manager.set_network_policy.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 55, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetNetworkPolicy", - "fullName": "google.container.v1.ClusterManager.SetNetworkPolicy", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "network_policy", - "type": ".google.container.v1.NetworkPolicy" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetNodePoolSize_async", + "title": "ClusterManager setNodePoolSize Sample", + "origin": "API_DEFINITION", + "description": " Sets the size for a specific node pool. The new size will be used for all replicas, including future replicas created by modifying [NodePool.locations][google.container.v1.NodePool.locations].", + "canonical": true, + "file": "cluster_manager.set_node_pool_size.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 56, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetNodePoolSize", + "fullName": "google.container.v1.ClusterManager.SetNodePoolSize", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "node_pool_id", + "type": "TYPE_STRING" + }, + { + "name": "node_count", + "type": "TYPE_INT32" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetNodePoolSize", + "fullName": "google.container.v1.ClusterManager.SetNodePoolSize", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetNetworkPolicy", - "fullName": "google.container.v1.ClusterManager.SetNetworkPolicy", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_SetMaintenancePolicy_async", - "title": "ClusterManager setMaintenancePolicy Sample", - "origin": "API_DEFINITION", - "description": " Sets the maintenance policy for a cluster.", - "canonical": true, - "file": "cluster_manager.set_maintenance_policy.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 75, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "SetMaintenancePolicy", - "fullName": "google.container.v1.ClusterManager.SetMaintenancePolicy", - "async": true, - "parameters": [ - { - "name": "project_id", - "type": "TYPE_STRING" - }, - { - "name": "zone", - "type": "TYPE_STRING" - }, - { - "name": "cluster_id", - "type": "TYPE_STRING" - }, - { - "name": "maintenance_policy", - "type": ".google.container.v1.MaintenancePolicy" - }, - { - "name": "name", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.Operation", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetNetworkPolicy_async", + "title": "ClusterManager setNetworkPolicy Sample", + "origin": "API_DEFINITION", + "description": " Enables or disables Network Policy for a cluster.", + "canonical": true, + "file": "cluster_manager.set_network_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 55, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetNetworkPolicy", + "fullName": "google.container.v1.ClusterManager.SetNetworkPolicy", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "network_policy", + "type": ".google.container.v1.NetworkPolicy" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetNetworkPolicy", + "fullName": "google.container.v1.ClusterManager.SetNetworkPolicy", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "SetMaintenancePolicy", - "fullName": "google.container.v1.ClusterManager.SetMaintenancePolicy", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } - } - } - }, - { - "regionTag": "container_v1_generated_ClusterManager_ListUsableSubnetworks_async", - "title": "ClusterManager listUsableSubnetworks Sample", - "origin": "API_DEFINITION", - "description": " Lists subnetworks that are usable for creating clusters in a project.", - "canonical": true, - "file": "cluster_manager.list_usable_subnetworks.js", - "language": "JAVASCRIPT", - "segments": [ { - "start": 25, - "end": 71, - "type": "FULL" - } - ], - "clientMethod": { - "shortName": "ListUsableSubnetworks", - "fullName": "google.container.v1.ClusterManager.ListUsableSubnetworks", - "async": true, - "parameters": [ - { - "name": "parent", - "type": "TYPE_STRING" - }, - { - "name": "filter", - "type": "TYPE_STRING" - }, - { - "name": "page_size", - "type": "TYPE_INT32" - }, - { - "name": "page_token", - "type": "TYPE_STRING" - } - ], - "resultType": ".google.container.v1.ListUsableSubnetworksResponse", - "client": { - "shortName": "ClusterManagerClient", - "fullName": "google.container.v1.ClusterManagerClient" + "regionTag": "container_v1_generated_ClusterManager_SetMaintenancePolicy_async", + "title": "ClusterManager setMaintenancePolicy Sample", + "origin": "API_DEFINITION", + "description": " Sets the maintenance policy for a cluster.", + "canonical": true, + "file": "cluster_manager.set_maintenance_policy.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "SetMaintenancePolicy", + "fullName": "google.container.v1.ClusterManager.SetMaintenancePolicy", + "async": true, + "parameters": [ + { + "name": "project_id", + "type": "TYPE_STRING" + }, + { + "name": "zone", + "type": "TYPE_STRING" + }, + { + "name": "cluster_id", + "type": "TYPE_STRING" + }, + { + "name": "maintenance_policy", + "type": ".google.container.v1.MaintenancePolicy" + }, + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.Operation", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "SetMaintenancePolicy", + "fullName": "google.container.v1.ClusterManager.SetMaintenancePolicy", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } }, - "method": { - "shortName": "ListUsableSubnetworks", - "fullName": "google.container.v1.ClusterManager.ListUsableSubnetworks", - "service": { - "shortName": "ClusterManager", - "fullName": "google.container.v1.ClusterManager" - } + { + "regionTag": "container_v1_generated_ClusterManager_ListUsableSubnetworks_async", + "title": "ClusterManager listUsableSubnetworks Sample", + "origin": "API_DEFINITION", + "description": " Lists subnetworks that are usable for creating clusters in a project.", + "canonical": true, + "file": "cluster_manager.list_usable_subnetworks.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 71, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListUsableSubnetworks", + "fullName": "google.container.v1.ClusterManager.ListUsableSubnetworks", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.container.v1.ListUsableSubnetworksResponse", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "ListUsableSubnetworks", + "fullName": "google.container.v1.ClusterManager.ListUsableSubnetworks", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } } - } - } - ] -} + ] +} \ No newline at end of file From 9d37430040e1e5fda4361f6b254c0fa996853dc5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 3 May 2022 02:22:22 +0200 Subject: [PATCH 333/371] chore(deps): update dependency @types/mocha to v9 (#534) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/mocha](https://togithub.com/DefinitelyTyped/DefinitelyTyped) | [`^8.0.0` -> `^9.0.0`](https://renovatebot.com/diffs/npm/@types%2fmocha/8.2.3/9.1.1) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/compatibility-slim/8.2.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fmocha/9.1.1/confidence-slim/8.2.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: "after 9am and before 3pm" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2a146de2490..78daf0e0826 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -46,7 +46,7 @@ "google-gax": "^2.24.1" }, "devDependencies": { - "@types/mocha": "^8.0.0", + "@types/mocha": "^9.0.0", "@types/node": "^16.0.0", "@types/sinon": "^10.0.0", "c8": "^7.0.0", From 8932f508ccee02c974c514dec4b8ffdae56d1037 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 6 May 2022 18:44:17 -0300 Subject: [PATCH 334/371] chore(main): release 3.0.1 (#529) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 3.0.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- .../generated/v1/snippet_metadata.google.container.v1.json | 2 +- packages/google-container/samples/package.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 5c7060e1032..b1243da0dbe 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +### [3.0.1](https://github.com/googleapis/nodejs-cloud-container/compare/v3.0.0...v3.0.1) (2022-05-06) + + +### Bug Fixes + +* clarify the gax-nodejs usage in README ([#1352](https://github.com/googleapis/nodejs-cloud-container/issues/1352)) ([#528](https://github.com/googleapis/nodejs-cloud-container/issues/528)) ([aa9a2a9](https://github.com/googleapis/nodejs-cloud-container/commit/aa9a2a9d7ef253bb11b5d1813a9cb5127a5c5d3b)) + ## [3.0.0](https://github.com/googleapis/nodejs-cloud-container/compare/v2.6.0...v3.0.0) (2022-02-26) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 78daf0e0826..2f35dbcb5aa 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "3.0.0", + "version": "3.0.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 1907a924f17..3eb8de344af 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "3.0.0", + "version": "3.0.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 8849049c2fa..0f3d5243c19 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^3.0.0", + "@google-cloud/container": "^3.0.1", "uuid": "^8.3.2" }, "devDependencies": { From f88a036553a3ab78ef4c54f706baf32996dfc251 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sun, 8 May 2022 17:34:34 +0200 Subject: [PATCH 335/371] chore(deps): update dependency sinon to v14 (#537) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2f35dbcb5aa..15db06decf5 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -58,7 +58,7 @@ "mocha": "^8.0.0", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", - "sinon": "^13.0.0", + "sinon": "^14.0.0", "ts-loader": "^9.0.0", "typescript": "^3.8.3", "webpack": "^5.0.0", From f29c51ed3d581374f87be3a7ef63441484da32a2 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Thu, 19 May 2022 17:30:15 -0700 Subject: [PATCH 336/371] build!: update library to use Node 12 (#539) * build!: Update library to use Node 12 Co-authored-by: Owl Bot --- packages/google-container/package.json | 10 +++++----- packages/google-container/samples/package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 15db06decf5..2b0482d6250 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -5,7 +5,7 @@ "license": "Apache-2.0", "author": "Google Inc", "engines": { - "node": ">=10" + "node": ">=12.0.0" }, "repository": "googleapis/nodejs-cloud-container", "main": "build/src/index.js", @@ -43,24 +43,24 @@ "precompile": "gts clean" }, "dependencies": { - "google-gax": "^2.24.1" + "google-gax": "^3.0.1" }, "devDependencies": { "@types/mocha": "^9.0.0", "@types/node": "^16.0.0", "@types/sinon": "^10.0.0", "c8": "^7.0.0", - "gts": "^3.0.0", + "gts": "^3.1.0", "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", "jsdoc-region-tag": "^1.0.2", "linkinator": "^2.0.0", - "mocha": "^8.0.0", + "mocha": "^9.2.2", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", "sinon": "^14.0.0", "ts-loader": "^9.0.0", - "typescript": "^3.8.3", + "typescript": "^4.6.4", "webpack": "^5.0.0", "webpack-cli": "^4.0.0" } diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 0f3d5243c19..4f84eca9fff 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -3,7 +3,7 @@ "license": "Apache-2.0", "author": "Google Inc.", "engines": { - "node": ">=10" + "node": ">=12.0.0" }, "repository": "googleapis/nodejs-cloud-container", "private": true, From b4e4bda8bbaa09ccc7afdc21028876aa35e2d578 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 May 2022 19:35:37 -0400 Subject: [PATCH 337/371] chore(main): release 4.0.0 (#540) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 4.0.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- packages/google-container/CHANGELOG.md | 11 +++++++++++ packages/google-container/package.json | 2 +- .../v1/snippet_metadata.google.container.v1.json | 2 +- packages/google-container/samples/package.json | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index b1243da0dbe..5a86b6c29af 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,17 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [4.0.0](https://github.com/googleapis/nodejs-cloud-container/compare/v3.0.1...v4.0.0) (2022-05-20) + + +### ⚠ BREAKING CHANGES + +* update library to use Node 12 (#539) + +### Build System + +* update library to use Node 12 ([#539](https://github.com/googleapis/nodejs-cloud-container/issues/539)) ([89ca157](https://github.com/googleapis/nodejs-cloud-container/commit/89ca157084eae2575cd2725149f6376fc810164e)) + ### [3.0.1](https://github.com/googleapis/nodejs-cloud-container/compare/v3.0.0...v3.0.1) (2022-05-06) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2b0482d6250..726dbddb643 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "3.0.1", + "version": "4.0.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 3eb8de344af..592e24a6bba 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "3.0.1", + "version": "4.0.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 4f84eca9fff..c16537b7896 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^3.0.1", + "@google-cloud/container": "^4.0.0", "uuid": "^8.3.2" }, "devDependencies": { From 99edf1fab4ab57ac190ddf508f5afa753f20c1dd Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 31 May 2022 22:14:16 +0000 Subject: [PATCH 338/371] fix: fixes for dynamic routing and streaming descriptors (#541) - [ ] Regenerate this pull request now. Use gapic-generator-typescript v2.14.5. PiperOrigin-RevId: 450616838 Source-Link: https://github.com/googleapis/googleapis/commit/7a47b72791e0b84d78beca4c2b26bec42ce31572 Source-Link: https://github.com/googleapis/googleapis-gen/commit/42cc6331bae0b99f61b8e01ae15b05211716c4f9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDJjYzYzMzFiYWUwYjk5ZjYxYjhlMDFhZTE1YjA1MjExNzE2YzRmOSJ9 --- .../src/v1/cluster_manager_client.ts | 63 +++ .../test/gapic_cluster_manager_v1.ts | 465 ++++++++++++++---- 2 files changed, 438 insertions(+), 90 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index f6b7e72b606..1dfac645f1c 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -426,6 +426,7 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ parent: request.parent || '', project_id: request.projectId || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.listClusters(request, options, callback); @@ -523,6 +524,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.getCluster(request, options, callback); @@ -633,6 +636,7 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ parent: request.parent || '', project_id: request.projectId || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.createCluster(request, options, callback); @@ -732,6 +736,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.updateCluster(request, options, callback); @@ -865,6 +871,9 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', + node_pool_id: request.nodePoolId || '', }); this.initialize(); return this.innerApiCalls.updateNodePool(request, options, callback); @@ -976,6 +985,9 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', + node_pool_id: request.nodePoolId || '', }); this.initialize(); return this.innerApiCalls.setNodePoolAutoscaling( @@ -1091,6 +1103,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.setLoggingService(request, options, callback); @@ -1208,6 +1222,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.setMonitoringService(request, options, callback); @@ -1308,6 +1324,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.setAddonsConfig(request, options, callback); @@ -1417,6 +1435,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); this.warn( @@ -1530,6 +1550,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.updateMaster(request, options, callback); @@ -1633,6 +1655,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.setMasterAuth(request, options, callback); @@ -1738,6 +1762,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.deleteCluster(request, options, callback); @@ -1833,6 +1859,7 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ parent: request.parent || '', project_id: request.projectId || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.listOperations(request, options, callback); @@ -1930,6 +1957,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + operation_id: request.operationId || '', }); this.initialize(); return this.innerApiCalls.getOperation(request, options, callback); @@ -2027,6 +2056,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + operation_id: request.operationId || '', }); this.initialize(); return this.innerApiCalls.cancelOperation(request, options, callback); @@ -2121,6 +2152,7 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.getServerConfig(request, options, callback); @@ -2305,6 +2337,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ parent: request.parent || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.listNodePools(request, options, callback); @@ -2406,6 +2440,9 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', + node_pool_id: request.nodePoolId || '', }); this.initialize(); return this.innerApiCalls.getNodePool(request, options, callback); @@ -2506,6 +2543,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ parent: request.parent || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.createNodePool(request, options, callback); @@ -2607,6 +2646,9 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', + node_pool_id: request.nodePoolId || '', }); this.initialize(); return this.innerApiCalls.deleteNodePool(request, options, callback); @@ -2717,6 +2759,9 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', + node_pool_id: request.nodePoolId || '', }); this.initialize(); return this.innerApiCalls.rollbackNodePoolUpgrade( @@ -2832,6 +2877,9 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', + node_pool_id: request.nodePoolId || '', }); this.initialize(); return this.innerApiCalls.setNodePoolManagement(request, options, callback); @@ -2938,6 +2986,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.setLabels(request, options, callback); @@ -3037,6 +3087,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.setLegacyAbac(request, options, callback); @@ -3136,6 +3188,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.startIPRotation(request, options, callback); @@ -3235,6 +3289,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.completeIPRotation(request, options, callback); @@ -3340,6 +3396,9 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', + node_pool_id: request.nodePoolId || '', }); this.initialize(); return this.innerApiCalls.setNodePoolSize(request, options, callback); @@ -3441,6 +3500,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.setNetworkPolicy(request, options, callback); @@ -3547,6 +3608,8 @@ export class ClusterManagerClient { gax.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', + zone: request.zone || '', + cluster_id: request.clusterId || '', }); this.initialize(); return this.innerApiCalls.setMaintenancePolicy(request, options, callback); diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index 027e94a3f92..1431b519dae 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -222,7 +222,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'parent=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -254,7 +255,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'parent=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -302,7 +304,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'parent=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -334,6 +337,7 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listClusters(request), expectedError); @@ -352,7 +356,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -384,7 +390,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +440,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -464,6 +474,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCluster(request), expectedError); @@ -482,7 +494,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'parent=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -514,7 +527,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'parent=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -562,7 +576,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'parent=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -594,6 +609,7 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createCluster(request), expectedError); @@ -612,7 +628,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -644,7 +662,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -692,7 +712,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -724,6 +746,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateCluster(request), expectedError); @@ -742,7 +766,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -774,7 +802,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -822,7 +854,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -854,6 +890,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateNodePool(request), expectedError); @@ -872,7 +911,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -905,7 +948,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -953,7 +1000,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -988,6 +1039,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1009,7 +1063,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1041,7 +1097,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1089,7 +1147,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1121,6 +1181,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLoggingService(request), expectedError); @@ -1139,7 +1201,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1172,7 +1236,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1220,7 +1286,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1252,6 +1320,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMonitoringService(request), expectedError); @@ -1270,7 +1340,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1302,7 +1374,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1350,7 +1424,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1382,6 +1458,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setAddonsConfig(request), expectedError); @@ -1401,7 +1479,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1435,7 +1515,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1485,7 +1567,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1519,6 +1603,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLocations(request), expectedError); @@ -1538,7 +1624,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1570,7 +1658,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1618,7 +1708,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1650,6 +1742,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateMaster(request), expectedError); @@ -1668,7 +1762,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1700,7 +1796,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1748,7 +1846,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1780,6 +1880,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMasterAuth(request), expectedError); @@ -1798,7 +1900,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1830,7 +1934,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1878,7 +1984,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -1910,6 +2018,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteCluster(request), expectedError); @@ -1928,7 +2038,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'parent=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1960,7 +2071,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'parent=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2008,7 +2120,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'parent=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2040,6 +2153,7 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listOperations(request), expectedError); @@ -2058,7 +2172,10 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.operationId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&operation_id='; const expectedOptions = { otherArgs: { headers: { @@ -2090,7 +2207,10 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.operationId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&operation_id='; const expectedOptions = { otherArgs: { headers: { @@ -2138,7 +2258,10 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.operationId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&operation_id='; const expectedOptions = { otherArgs: { headers: { @@ -2170,6 +2293,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.operationId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getOperation(request), expectedError); @@ -2188,7 +2313,10 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.operationId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&operation_id='; const expectedOptions = { otherArgs: { headers: { @@ -2220,7 +2348,10 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.operationId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&operation_id='; const expectedOptions = { otherArgs: { headers: { @@ -2268,7 +2399,10 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.operationId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&operation_id='; const expectedOptions = { otherArgs: { headers: { @@ -2300,6 +2434,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.operationId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.cancelOperation(request), expectedError); @@ -2318,7 +2454,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2350,7 +2487,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2398,7 +2536,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2430,6 +2569,7 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getServerConfig(request), expectedError); @@ -2574,7 +2714,10 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = + 'parent=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -2606,7 +2749,10 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = + 'parent=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -2654,7 +2800,10 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = + 'parent=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -2686,6 +2835,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listNodePools(request), expectedError); @@ -2704,7 +2855,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -2736,7 +2891,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -2784,7 +2943,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -2816,6 +2979,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getNodePool(request), expectedError); @@ -2834,7 +3000,10 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = + 'parent=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -2866,7 +3035,10 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = + 'parent=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -2914,7 +3086,10 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'parent=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = + 'parent=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -2946,6 +3121,8 @@ describe('v1.ClusterManagerClient', () => { ); request.parent = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createNodePool(request), expectedError); @@ -2964,7 +3141,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -2996,7 +3177,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3044,7 +3229,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3076,6 +3265,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteNodePool(request), expectedError); @@ -3094,7 +3286,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3127,7 +3323,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3175,7 +3375,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3210,6 +3414,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3231,7 +3438,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3264,7 +3475,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3312,7 +3527,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3347,6 +3566,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3368,7 +3590,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3400,7 +3624,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3448,7 +3674,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3477,6 +3705,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -3495,7 +3725,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3527,7 +3759,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3575,7 +3809,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3607,6 +3843,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLegacyAbac(request), expectedError); @@ -3625,7 +3863,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3657,7 +3897,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3705,7 +3947,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3737,6 +3981,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.startIPRotation(request), expectedError); @@ -3755,7 +4001,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3788,7 +4036,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3836,7 +4086,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -3868,6 +4120,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.completeIPRotation(request), expectedError); @@ -3886,7 +4140,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3918,7 +4176,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3966,7 +4228,11 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; + const expectedHeaderRequestParams = + 'name=&project_id=&zone=&cluster_id=&node_pool_id='; const expectedOptions = { otherArgs: { headers: { @@ -3998,6 +4264,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; + request.nodePoolId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setNodePoolSize(request), expectedError); @@ -4016,7 +4285,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -4048,7 +4319,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -4096,7 +4369,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -4128,6 +4403,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setNetworkPolicy(request), expectedError); @@ -4146,7 +4423,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -4179,7 +4458,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -4227,7 +4508,9 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; - const expectedHeaderRequestParams = 'name=&project_id='; + request.zone = ''; + request.clusterId = ''; + const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; const expectedOptions = { otherArgs: { headers: { @@ -4259,6 +4542,8 @@ describe('v1.ClusterManagerClient', () => { ); request.name = ''; request.projectId = ''; + request.zone = ''; + request.clusterId = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMaintenancePolicy(request), expectedError); From 9027f29b260ca9173421b5fc7d29dde06554c99c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 10 Jun 2022 16:58:12 +0200 Subject: [PATCH 339/371] chore(deps): update dependency jsdoc-region-tag to v2 (#545) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jsdoc-region-tag](https://togithub.com/googleapis/jsdoc-region-tag) | [`^1.0.2` -> `^2.0.0`](https://renovatebot.com/diffs/npm/jsdoc-region-tag/1.3.1/2.0.0) | [![age](https://badges.renovateapi.com/packages/npm/jsdoc-region-tag/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/jsdoc-region-tag/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/jsdoc-region-tag/2.0.0/compatibility-slim/1.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/jsdoc-region-tag/2.0.0/confidence-slim/1.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/jsdoc-region-tag ### [`v2.0.0`](https://togithub.com/googleapis/jsdoc-region-tag/blob/HEAD/CHANGELOG.md#​200-httpsgithubcomgoogleapisjsdoc-region-tagcomparev131v200-2022-05-20) [Compare Source](https://togithub.com/googleapis/jsdoc-region-tag/compare/v1.3.1...v2.0.0) ##### ⚠ BREAKING CHANGES - update library to use Node 12 ([#​107](https://togithub.com/googleapis/jsdoc-region-tag/issues/107)) ##### Build System - update library to use Node 12 ([#​107](https://togithub.com/googleapis/jsdoc-region-tag/issues/107)) ([5b51796](https://togithub.com/googleapis/jsdoc-region-tag/commit/5b51796771984cf8b978990025f14faa03c19923)) ##### [1.3.1](https://www.github.com/googleapis/jsdoc-region-tag/compare/v1.3.0...v1.3.1) (2021-08-11) ##### Bug Fixes - **build:** migrate to using main branch ([#​79](https://www.togithub.com/googleapis/jsdoc-region-tag/issues/79)) ([5050615](https://www.github.com/googleapis/jsdoc-region-tag/commit/50506150b7758592df5e389c6a5c3d82b3b20881))
--- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 726dbddb643..276a38e66f4 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -53,7 +53,7 @@ "gts": "^3.1.0", "jsdoc": "^3.6.2", "jsdoc-fresh": "^1.0.1", - "jsdoc-region-tag": "^1.0.2", + "jsdoc-region-tag": "^2.0.0", "linkinator": "^2.0.0", "mocha": "^9.2.2", "null-loader": "^4.0.0", From c60f5d2e8598abaf72b3ab447784f6d7eb9418f6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 10 Jun 2022 17:32:30 +0200 Subject: [PATCH 340/371] chore(deps): update dependency jsdoc-fresh to v2 (#544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jsdoc-fresh](https://togithub.com/googleapis/jsdoc-fresh) | [`^1.0.1` -> `^2.0.0`](https://renovatebot.com/diffs/npm/jsdoc-fresh/1.1.1/2.0.0) | [![age](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/compatibility-slim/1.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/jsdoc-fresh/2.0.0/confidence-slim/1.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/jsdoc-fresh ### [`v2.0.0`](https://togithub.com/googleapis/jsdoc-fresh/blob/HEAD/CHANGELOG.md#​200-httpsgithubcomgoogleapisjsdoc-freshcomparev111v200-2022-05-18) [Compare Source](https://togithub.com/googleapis/jsdoc-fresh/compare/v1.1.1...v2.0.0) ##### ⚠ BREAKING CHANGES - update library to use Node 12 ([#​108](https://togithub.com/googleapis/jsdoc-fresh/issues/108)) ##### Build System - update library to use Node 12 ([#​108](https://togithub.com/googleapis/jsdoc-fresh/issues/108)) ([e61c223](https://togithub.com/googleapis/jsdoc-fresh/commit/e61c2238db8900e339e5fe7fb8aea09642290182)) ##### [1.1.1](https://www.github.com/googleapis/jsdoc-fresh/compare/v1.1.0...v1.1.1) (2021-08-11) ##### Bug Fixes - **build:** migrate to using main branch ([#​83](https://www.togithub.com/googleapis/jsdoc-fresh/issues/83)) ([9474adb](https://www.github.com/googleapis/jsdoc-fresh/commit/9474adbf0d559d319ff207397ba2be6b557999ac))
--- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 276a38e66f4..846618ca23d 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -52,7 +52,7 @@ "c8": "^7.0.0", "gts": "^3.1.0", "jsdoc": "^3.6.2", - "jsdoc-fresh": "^1.0.1", + "jsdoc-fresh": "^2.0.0", "jsdoc-region-tag": "^2.0.0", "linkinator": "^2.0.0", "mocha": "^9.2.2", From be8432c0302cba420887d3cbbeb0ed0e135e9d4d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 20 Jun 2022 15:10:35 -0400 Subject: [PATCH 341/371] chore(main): release 4.0.1 (#542) See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot Co-authored-by: Shabir Mohamed Abdul Samadh <7249208+Shabirmean@users.noreply.github.com> --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- .../generated/v1/snippet_metadata.google.container.v1.json | 2 +- packages/google-container/samples/package.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 5a86b6c29af..192e7cddac4 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [4.0.1](https://github.com/googleapis/nodejs-cloud-container/compare/v4.0.0...v4.0.1) (2022-06-10) + + +### Bug Fixes + +* fixes for dynamic routing and streaming descriptors ([#541](https://github.com/googleapis/nodejs-cloud-container/issues/541)) ([87d8c3f](https://github.com/googleapis/nodejs-cloud-container/commit/87d8c3f7488fa122ebefcdabaa597625e1d60d9c)) + ## [4.0.0](https://github.com/googleapis/nodejs-cloud-container/compare/v3.0.1...v4.0.0) (2022-05-20) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 846618ca23d..daa2fadc0f2 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "4.0.0", + "version": "4.0.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 592e24a6bba..c517537cc6f 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "4.0.0", + "version": "4.0.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index c16537b7896..f44ead0fab8 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^4.0.0", + "@google-cloud/container": "^4.0.1", "uuid": "^8.3.2" }, "devDependencies": { From b70d336aaab24773e3edeb11690bc504a72e61bc Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 4 Jul 2022 15:49:45 -0400 Subject: [PATCH 342/371] feat: support regapic LRO PiperOrigin-RevId: 456946341 Source-Link: https://github.com/googleapis/googleapis/commit/88fd18d9d3b872b3d06a3d9392879f50b5bf3ce5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/accfa371f667439313335c64042b063c1c53102e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWNjZmEzNzFmNjY3NDM5MzEzMzM1YzY0MDQyYjA2M2MxYzUzMTAyZSJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md feat: add cgroup mode to node system config feat: add support to modify kubelet pod pid limit in node system configuration feat: support Tier 1 bandwidth feat: support IPV6 Dual Stack (stack_type) feat: add Binauthz Evaluation mode support to GKE Classic feat: support GKE Cost Allocations feat: add network tags to autopilot cluster feat: add protect config audit api feat: support enabling Confidential Nodes in the node pool feat: support node pool blue-green upgrade feat: add Location Policy API feat: support GPU timesharing PiperOrigin-RevId: 458322449 Source-Link: https://github.com/googleapis/googleapis/commit/61ea2e50a68726d276ff63b4e1456c3df7c8c734 Source-Link: https://github.com/googleapis/googleapis-gen/commit/30e187a0b006d39692eee40bfe84fb7c71b95a7b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzBlMTg3YTBiMDA2ZDM5NjkyZWVlNDBiZmU4NGZiN2M3MWI5NWE3YiJ9 feat: add support to modify kubelet pod pid limit in node system configuration feat: support spot VM feat: support Tier 1 bandwidth feat: update support for node pool labels, taints and network tags feat: add Binauthz Evaluation mode support to GKE Classic feat: add GKE Identity Service feat: add network tags to autopilot cluster feat: support enabling Confidential Nodes in the node pool feat: support node pool blue-green upgrade feat: add Location Policy API feat: support GPU timesharing feat: add managed prometheus feature PiperOrigin-RevId: 458323987 Source-Link: https://github.com/googleapis/googleapis/commit/c51f2edf55cbc39e91160ac34fb6faf8d2b36f16 Source-Link: https://github.com/googleapis/googleapis-gen/commit/45233cbe6c51f2cf566e5d5f5e63129c7f89f3ed Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDUyMzNjYmU2YzUxZjJjZjU2NmU1ZDVmNWU2MzEyOWM3Zjg5ZjNlZCJ9 Co-authored-by: Owl Bot --- .../google/container/v1/cluster_service.proto | 492 +- packages/google-container/protos/protos.d.ts | 1695 ++++++- packages/google-container/protos/protos.js | 4076 ++++++++++++++++- packages/google-container/protos/protos.json | 438 +- .../cluster_manager.complete_i_p_rotation.js | 2 +- ...ster_manager.complete_node_pool_upgrade.js | 59 + .../v1/cluster_manager.create_node_pool.js | 2 +- .../cluster_manager.get_j_s_o_n_web_keys.js | 2 +- .../v1/cluster_manager.list_node_pools.js | 2 +- ...ster_manager.rollback_node_pool_upgrade.js | 5 + .../v1/cluster_manager.set_labels.js | 2 +- .../v1/cluster_manager.set_legacy_abac.js | 4 +- .../cluster_manager.set_maintenance_policy.js | 6 +- .../v1/cluster_manager.set_network_policy.js | 2 +- .../v1/cluster_manager.start_i_p_rotation.js | 2 +- .../v1/cluster_manager.update_node_pool.js | 27 + .../snippet_metadata.google.container.v1.json | 68 +- .../src/v1/cluster_manager_client.ts | 224 +- .../src/v1/cluster_manager_client_config.json | 4 + .../src/v1/gapic_metadata.json | 10 + .../test/gapic_cluster_manager_v1.ts | 169 +- 21 files changed, 7055 insertions(+), 236 deletions(-) create mode 100644 packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 6dc6eeca633..e7a35f77baf 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; import "google/protobuf/wrappers.proto"; @@ -350,6 +351,15 @@ service ClusterManager { option (google.api.method_signature) = "name"; } + // CompleteNodePoolUpgrade will signal an on-going node pool upgrade to + // complete. + rpc CompleteNodePoolUpgrade(CompleteNodePoolUpgradeRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:completeUpgrade" + body: "*" + }; + } + // Rolls back a previously Aborted or Failed NodePool upgrade. // This makes no changes if the last upgrade successfully completed. rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) { @@ -488,6 +498,8 @@ message LinuxNodeConfig { // // The following parameters are supported. // + // net.core.busy_poll + // net.core.busy_read // net.core.netdev_max_backlog // net.core.rmem_max // net.core.wmem_default @@ -533,9 +545,21 @@ message NodeKubeletConfig { // Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". // The value must be a positive duration. string cpu_cfs_quota_period = 3; + + // Set the Pod PID limits. See + // https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits + // + // Controls the maximum number of processes allowed to run in a pod. The value + // must be greater than or equal to 1024 and less than 4194304. + int64 pod_pids_limit = 4; } // Parameters that describe the nodes in a cluster. +// +// GKE Autopilot clusters do not +// recognize parameters in `NodeConfig`. Use +// [AutoprovisioningNodePoolDefaults][google.container.v1.AutoprovisioningNodePoolDefaults] +// instead. message NodeConfig { // The name of a Google Compute Engine [machine // type](https://cloud.google.com/compute/docs/machine-types) @@ -577,6 +601,7 @@ message NodeConfig { // 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" @@ -707,6 +732,14 @@ message NodeConfig { // Enable or disable gvnic in the node pool. VirtualNIC gvnic = 29; + + // Spot flag for enabling Spot VM, which is a rebrand of + // the existing preemptible flag. + bool spot = 32; + + // Confidential nodes config. + // All the nodes in the node pool will be Confidential VM once enabled. + ConfidentialNodes confidential_nodes = 35; } // Specifies options for controlling advanced machine features. @@ -719,6 +752,21 @@ message AdvancedMachineFeatures { // Parameters for node pool-level network config. message NodeNetworkConfig { + // Configuration of all network bandwidth tiers + message NetworkPerformanceConfig { + // Node network tier + enum Tier { + // Default value + TIER_UNSPECIFIED = 0; + + // Higher bandwidth, actual values based on VM size. + TIER_1 = 1; + } + + // Specifies the total network bandwidth tier for the NodePool. + optional Tier total_egress_bandwidth_tier = 1; + } + // Input only. Whether to create a new range for pod IPs in this node pool. // Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they // are not specified. @@ -759,6 +807,9 @@ message NodeNetworkConfig { // // This field cannot be changed after the node pool has been created. string pod_ipv4_cidr_block = 6; + + // Network bandwidth tier configuration. + optional NetworkPerformanceConfig network_performance_config = 11; } // A set of Shielded Instance options. @@ -865,6 +916,27 @@ message NodeTaint { Effect effect = 3; } +// Collection of Kubernetes [node +// taints](https://kubernetes.io/docs/concepts/configuration/taint-and-toleration). +message NodeTaints { + // List of node taints. + repeated NodeTaint taints = 1; +} + +// Collection of node-level [Kubernetes +// labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels). +message NodeLabels { + // Map of node label keys and node label values. + map labels = 1; +} + +// Collection of Compute Engine network tags that can be applied to a node's +// underlying VM instance. +message NetworkTags { + // List of network tags. + repeated string tags = 1; +} + // The authentication information for accessing the master endpoint. // Authentication can be done using HTTP basic auth or using client // certificates. @@ -1133,9 +1205,28 @@ message NetworkPolicy { // Configuration for Binary Authorization. message BinaryAuthorization { + // Binary Authorization mode of operation. + enum EvaluationMode { + // Default value + EVALUATION_MODE_UNSPECIFIED = 0; + + // Disable BinaryAuthorization + DISABLED = 1; + + // Enforce Kubernetes admission requests with BinaryAuthorization using the + // project's singleton policy. This is equivalent to setting the + // enabled boolean to true. + PROJECT_SINGLETON_POLICY_ENFORCE = 2; + } + // Enable Binary Authorization for this cluster. If enabled, all container // images will be validated by Binary Authorization. bool enabled = 1; + + // Mode of operation for binauthz policy evaluation. Currently the only + // options are equivalent to enable/disable. If unspecified, defaults to + // DISABLED. + EvaluationMode evaluation_mode = 2; } // Configuration for controlling how IPs are allocated in the cluster. @@ -1473,9 +1564,13 @@ message Cluster { // Notification configuration of the cluster. NotificationConfig notification_config = 49; - // Configuration of Confidential Nodes + // Configuration of Confidential Nodes. + // All the nodes in the cluster will be Confidential VM once enabled. ConfidentialNodes confidential_nodes = 50; + // Configuration for Identity Service component. + IdentityServiceConfig identity_service_config = 54; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -1586,6 +1681,20 @@ message Cluster { // Monitoring configuration for the cluster. MonitoringConfig monitoring_config = 133; + + // Node pool configs that apply to all auto-provisioned node pools + // in autopilot clusters and node auto-provisioning enabled clusters. + NodePoolAutoConfig node_pool_auto_config = 136; +} + +// Node pool configs that apply to all auto-provisioned node pools +// in autopilot clusters and node auto-provisioning enabled clusters. +message NodePoolAutoConfig { + // The list of instance tags applied to all nodes. Tags are used to identify + // valid sources or targets for network firewalls and are specified by + // the client during cluster creation. Each tag within the list + // must comply with RFC1035. + NetworkTags network_tags = 1; } // Subset of Nodepool message that has defaults. @@ -1596,7 +1705,7 @@ message NodePoolDefaults { // Subset of NodeConfig message that has defaults. message NodeConfigDefaults { - // GCFS (Google Container File System, a.k.a Riptide) options. + // GCFS (Google Container File System, a.k.a. Riptide) options. GcfsConfig gcfs_config = 1; } @@ -1736,6 +1845,9 @@ message ClusterUpdate { // The desired monitoring configuration. MonitoringConfig desired_monitoring_config = 65; + // The desired Identity Service component configuration. + IdentityServiceConfig desired_identity_service_config = 66; + // ServiceExternalIPsConfig specifies the config for the use of Services with // ExternalIPs field. ServiceExternalIPsConfig desired_service_external_ips_config = 60; @@ -1754,6 +1866,10 @@ message ClusterUpdate { // The desired GCFS config for the cluster GcfsConfig desired_gcfs_config = 109; + + // The desired network tags that apply to all auto-provisioned node pools + // in autopilot clusters and node auto-provisioning enabled clusters. + NetworkTags desired_node_pool_auto_config_network_tags = 110; } // This operation resource represents operations that may have happened or are @@ -1934,7 +2050,7 @@ message OperationProgress { // CreateClusterRequest creates a cluster. message CreateClusterRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the parent field. string project_id = 1 [deprecated = true]; @@ -1956,7 +2072,7 @@ message CreateClusterRequest { // GetClusterRequest gets the settings of a cluster. message GetClusterRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -1978,7 +2094,7 @@ message GetClusterRequest { // UpdateClusterRequest updates the settings of a cluster. message UpdateClusterRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2003,7 +2119,7 @@ message UpdateClusterRequest { // UpdateNodePoolRequests update a node pool's image and/or version. message UpdateNodePoolRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2055,15 +2171,37 @@ message UpdateNodePoolRequest { // Upgrade settings control disruption and speed of the upgrade. NodePool.UpgradeSettings upgrade_settings = 15; + // The desired network tags to be applied to all nodes in the node pool. + // If this field is not present, the tags will not be changed. Otherwise, + // the existing network tags will be *replaced* with the provided tags. + NetworkTags tags = 16; + + // The desired node taints to be applied to all nodes in the node pool. + // If this field is not present, the taints will not be changed. Otherwise, + // the existing node taints will be *replaced* with the provided taints. + NodeTaints taints = 17; + + // The desired node labels to be applied to all nodes in the node pool. + // If this field is not present, the labels will not be changed. Otherwise, + // the existing node labels will be *replaced* with the provided labels. + NodeLabels labels = 18; + // Parameters that can be configured on Linux nodes. LinuxNodeConfig linux_node_config = 19; // Node kubelet configs. NodeKubeletConfig kubelet_config = 20; + // Node network config. + NodeNetworkConfig node_network_config = 21; + // GCFS config. GcfsConfig gcfs_config = 22; + // Confidential nodes config. + // All the nodes in the node pool will be Confidential VM once enabled. + ConfidentialNodes confidential_nodes = 23; + // Enable or disable gvnic on the node pool. VirtualNIC gvnic = 29; } @@ -2071,7 +2209,7 @@ message UpdateNodePoolRequest { // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. message SetNodePoolAutoscalingRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2101,7 +2239,7 @@ message SetNodePoolAutoscalingRequest { // SetLoggingServiceRequest sets the logging service of a cluster. message SetLoggingServiceRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2136,7 +2274,7 @@ message SetLoggingServiceRequest { // SetMonitoringServiceRequest sets the monitoring service of a cluster. message SetMonitoringServiceRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2171,7 +2309,7 @@ message SetMonitoringServiceRequest { // SetAddonsConfigRequest sets the addons associated with the cluster. message SetAddonsConfigRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2197,7 +2335,7 @@ message SetAddonsConfigRequest { // SetLocationsRequest sets the locations of the cluster. message SetLocationsRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2228,7 +2366,7 @@ message SetLocationsRequest { // UpdateMasterRequest updates the master of the cluster. message UpdateMasterRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2280,7 +2418,7 @@ message SetMasterAuthRequest { } // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2308,7 +2446,7 @@ message SetMasterAuthRequest { // DeleteClusterRequest deletes a cluster. message DeleteClusterRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2330,7 +2468,7 @@ message DeleteClusterRequest { // ListClustersRequest lists clusters. message ListClustersRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the parent field. string project_id = 1 [deprecated = true]; @@ -2360,7 +2498,7 @@ message ListClustersResponse { // GetOperationRequest gets a single operation. message GetOperationRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2382,7 +2520,7 @@ message GetOperationRequest { // ListOperationsRequest lists operations. message ListOperationsRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the parent field. string project_id = 1 [deprecated = true]; @@ -2401,7 +2539,7 @@ message ListOperationsRequest { // CancelOperationRequest cancels a single operation. message CancelOperationRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2433,7 +2571,7 @@ message ListOperationsResponse { // Gets the current Kubernetes Engine service configuration. message GetServerConfigRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2484,7 +2622,7 @@ message ServerConfig { // CreateNodePoolRequest creates a node pool for a cluster. message CreateNodePoolRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the parent field. string project_id = 1 [deprecated = true]; @@ -2501,7 +2639,7 @@ message CreateNodePoolRequest { // Required. The node pool to create. NodePool node_pool = 4 [(google.api.field_behavior) = REQUIRED]; - // The parent (project, location, cluster id) where the node pool will be + // The parent (project, location, cluster name) where the node pool will be // created. Specified in the format // `projects/*/locations/*/clusters/*`. string parent = 6; @@ -2510,7 +2648,7 @@ message CreateNodePoolRequest { // DeleteNodePoolRequest deletes a node pool for a cluster. message DeleteNodePoolRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2537,7 +2675,7 @@ message DeleteNodePoolRequest { // ListNodePoolsRequest lists the node pool(s) for a cluster. message ListNodePoolsRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the parent field. string project_id = 1 [deprecated = true]; @@ -2551,7 +2689,7 @@ message ListNodePoolsRequest { // This field has been deprecated and replaced by the parent field. string cluster_id = 3 [deprecated = true]; - // The parent (project, location, cluster id) where the node pools will be + // The parent (project, location, cluster name) where the node pools will be // listed. Specified in the format `projects/*/locations/*/clusters/*`. string parent = 5; } @@ -2559,7 +2697,7 @@ message ListNodePoolsRequest { // GetNodePoolRequest retrieves a node pool for a cluster. message GetNodePoolRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2583,6 +2721,35 @@ message GetNodePoolRequest { string name = 6; } +// Settings for blue-green upgrade. +message BlueGreenSettings { + // Standard rollout policy is the default policy for blue-green. + message StandardRolloutPolicy { + // Blue pool size to drain in a batch. + oneof update_batch_size { + // Percentage of the bool pool nodes to drain in a batch. + // The range of this field should be (0.0, 1.0]. + float batch_percentage = 1; + + // Number of blue nodes to drain in a batch. + int32 batch_node_count = 2; + } + + // Soak time after each batch gets drained. Default to zero. + optional google.protobuf.Duration batch_soak_duration = 3; + } + + // The rollout policy controls the general rollout progress of blue-green. + oneof rollout_policy { + // Standard policy for the blue-green upgrade. + StandardRolloutPolicy standard_rollout_policy = 1; + } + + // Time needed after draining entire blue pool. After this period, blue pool + // will be cleaned up. + optional google.protobuf.Duration node_pool_soak_duration = 2; +} + // NodePool contains the name and configuration for a cluster's node pool. // Node pools are a set of nodes (i.e. VM's), with a common configuration and // specification, under the control of the cluster master. They may have a set @@ -2613,6 +2780,29 @@ message NodePool { // 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. + // + // These upgrade settings configure the upgrade strategy for the node pool. + // Use strategy to switch between the strategies applied to the node pool. + // + // If the strategy is ROLLING, use max_surge and max_unavailable to control + // the level of parallelism and the level of disruption caused by upgrade. + // 1. 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. + // 2. maxUnavailable controls the number of nodes that can be simultaneously + // unavailable. + // 3. (maxUnavailable + maxSurge) determines the level of parallelism (how + // many nodes are being upgraded at the same time). + // + // If the strategy is BLUE_GREEN, use blue_green_settings to configure the + // blue-green upgrade related settings. + // 1. standard_rollout_policy is the default policy. The policy is used to + // control the way blue pool gets drained. The draining is executed in the + // batch mode. The batch size could be specified as either percentage of the + // node pool size or the number of nodes. batch_soak_duration is the soak + // time after each batch gets drained. + // 2. node_pool_soak_duration is the soak time after all blue nodes are + // drained. After this period, the blue pool nodes will be deleted. message UpgradeSettings { // The maximum number of nodes that can be created beyond the current size // of the node pool during the upgrade process. @@ -2622,6 +2812,69 @@ message NodePool { // the upgrade process. A node is considered available if its status is // Ready. int32 max_unavailable = 2; + + // Update strategy of the node pool. + optional NodePoolUpdateStrategy strategy = 3; + + // Settings for blue-green upgrade strategy. + optional BlueGreenSettings blue_green_settings = 4; + } + + // UpdateInfo contains resource (instance groups, etc), status and other + // intermediate information relevant to a node pool upgrade. + message UpdateInfo { + // Information relevant to blue-green upgrade. + message BlueGreenInfo { + // Phase represents the different stages blue-green upgrade is running in. + enum Phase { + // Unspecified phase. + PHASE_UNSPECIFIED = 0; + + // blue-green upgrade has been initiated. + UPDATE_STARTED = 1; + + // Start creating green pool nodes. + CREATING_GREEN_POOL = 2; + + // Start cordoning blue pool nodes. + CORDONING_BLUE_POOL = 3; + + // Start draining blue pool nodes. + DRAINING_BLUE_POOL = 4; + + // Start soaking time after draining entire blue pool. + NODE_POOL_SOAKING = 5; + + // Start deleting blue nodes. + DELETING_BLUE_POOL = 6; + + // Rollback has been initiated. + ROLLBACK_STARTED = 7; + } + + // Current blue-green upgrade phase. + Phase phase = 1; + + // The resource URLs of the [managed instance groups] + // (/compute/docs/instance-groups/creating-groups-of-managed-instances) + // associated with blue pool. + repeated string blue_instance_group_urls = 2; + + // The resource URLs of the [managed instance groups] + // (/compute/docs/instance-groups/creating-groups-of-managed-instances) + // associated with green pool. + repeated string green_instance_group_urls = 3; + + // Time to start deleting blue pool to complete blue-green upgrade, + // in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. + string blue_pool_deletion_start_time = 4; + + // Version of green pool. + string green_pool_version = 5; + } + + // Information of a blue-green upgrade. + BlueGreenInfo blue_green_info = 1; } // The current status of the node pool instance. @@ -2692,6 +2945,8 @@ message NodePool { // [Output only] The resource URLs of the [managed instance // groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) // associated with this node pool. + // During the node pool blue-green upgrade operation, the URLs contain both + // blue and green resources. repeated string instance_group_urls = 102; // [Output only] The status of the nodes in this pool instance. @@ -2721,6 +2976,10 @@ message NodePool { // Upgrade settings control disruption and speed of the upgrade. UpgradeSettings upgrade_settings = 107; + + // Output only. [Output only] Update info contains relevant information during a node + // pool update. + UpdateInfo update_info = 109 [(google.api.field_behavior) = OUTPUT_ONLY]; } // NodeManagement defines the set of node management services turned on for the @@ -2882,7 +3141,7 @@ message DailyMaintenanceWindow { // pool. message SetNodePoolManagementRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2912,7 +3171,7 @@ message SetNodePoolManagementRequest { // SetNodePoolSizeRequest sets the size of a node pool. message SetNodePoolSizeRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2939,12 +3198,21 @@ message SetNodePoolSizeRequest { string name = 7; } +// CompleteNodePoolUpgradeRequest sets the name of target node pool to complete +// upgrade. +message CompleteNodePoolUpgradeRequest { + // The name (project, location, cluster, node pool id) of the node pool to + // complete upgrade. + // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + string name = 1; +} + // RollbackNodePoolUpgradeRequest rollbacks the previously Aborted or Failed // NodePool upgrade. This will be an no-op if the last upgrade successfully // completed. message RollbackNodePoolUpgradeRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -2966,6 +3234,10 @@ message RollbackNodePoolUpgradeRequest { // rollback upgrade. // Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. string name = 6; + + // Option for rollback to ignore the PodDisruptionBudget. + // Default value is false. + bool respect_pdb = 7; } // ListNodePoolsResponse is the result of ListNodePoolsRequest. @@ -3026,16 +3298,18 @@ message AutoprovisioningNodePoolDefaults { // Specifies the node management options for NAP created node-pools. NodeManagement management = 4; - // Minimum CPU platform to be used for NAP created node pools. + // Deprecated. 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) + // This field is deprecated, min_cpu_platform should be specified using + // cloud.google.com/requested-min-cpu-platform label selector on the pod. // To unset the min cpu platform field pass "automatic" // as field value. - string min_cpu_platform = 5; + string min_cpu_platform = 5 [deprecated = true]; // Size of the disk attached to each node, specified in GB. // The smallest allowed disk size is 10GB. @@ -3080,6 +3354,20 @@ message ResourceLimit { // NodePoolAutoscaling contains information required by cluster autoscaler to // adjust the size of the node pool to the current cluster usage. message NodePoolAutoscaling { + // Location policy specifies how zones are picked when scaling up the + // nodepool. + enum LocationPolicy { + // Not set. + LOCATION_POLICY_UNSPECIFIED = 0; + + // BALANCED is a best effort policy that aims to balance the sizes of + // different zones. + BALANCED = 1; + + // ANY policy picks zones that have the highest capacity available. + ANY = 2; + } + // Is autoscaling enabled for this node pool. bool enabled = 1; @@ -3093,6 +3381,21 @@ message NodePoolAutoscaling { // Can this node pool be deleted automatically. bool autoprovisioned = 4; + + // Location policy used when scaling up a nodepool. + LocationPolicy location_policy = 5; + + // Minimum number of nodes in the node pool. Must be greater than 1 less than + // total_max_node_count. + // The total_*_node_count fields are mutually exclusive with the *_node_count + // fields. + int32 total_min_node_count = 6; + + // Maximum number of nodes in the node pool. Must be greater than + // total_min_node_count. There has to be enough quota to scale up the cluster. + // The total_*_node_count fields are mutually exclusive with the *_node_count + // fields. + int32 total_max_node_count = 7; } // SetLabelsRequest sets the Google Cloud Platform labels on a Google Container @@ -3100,7 +3403,7 @@ message NodePoolAutoscaling { // resources used by that cluster message SetLabelsRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -3125,7 +3428,7 @@ message SetLabelsRequest { // resource to get the latest fingerprint. string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED]; - // The name (project, location, cluster id) of the cluster to set labels. + // The name (project, location, cluster name) of the cluster to set labels. // Specified in the format `projects/*/locations/*/clusters/*`. string name = 7; } @@ -3134,7 +3437,7 @@ message SetLabelsRequest { // a cluster. message SetLegacyAbacRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -3151,8 +3454,8 @@ message SetLegacyAbacRequest { // Required. Whether ABAC authorization will be enabled in the cluster. bool enabled = 4 [(google.api.field_behavior) = REQUIRED]; - // The name (project, location, cluster id) of the cluster to set legacy abac. - // Specified in the format `projects/*/locations/*/clusters/*`. + // The name (project, location, cluster name) of the cluster to set legacy + // abac. Specified in the format `projects/*/locations/*/clusters/*`. string name = 6; } @@ -3160,7 +3463,7 @@ message SetLegacyAbacRequest { // a node upgrade on each node pool to point to the new IP. message StartIPRotationRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -3174,7 +3477,7 @@ message StartIPRotationRequest { // This field has been deprecated and replaced by the name field. string cluster_id = 3 [deprecated = true]; - // The name (project, location, cluster id) of the cluster to start IP + // The name (project, location, cluster name) of the cluster to start IP // rotation. Specified in the format `projects/*/locations/*/clusters/*`. string name = 6; @@ -3185,7 +3488,7 @@ message StartIPRotationRequest { // CompleteIPRotationRequest moves the cluster master back into single-IP mode. message CompleteIPRotationRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -3199,7 +3502,7 @@ message CompleteIPRotationRequest { // This field has been deprecated and replaced by the name field. string cluster_id = 3 [deprecated = true]; - // The name (project, location, cluster id) of the cluster to complete IP + // The name (project, location, cluster name) of the cluster to complete IP // rotation. Specified in the format `projects/*/locations/*/clusters/*`. string name = 7; } @@ -3217,6 +3520,28 @@ message AcceleratorConfig { // NVIDIA [mig user // guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). string gpu_partition_size = 3; + + // The configuration for GPU sharing options. + optional GPUSharingConfig gpu_sharing_config = 5; +} + +// GPUSharingConfig represents the GPU sharing configuration for Hardware +// Accelerators. +message GPUSharingConfig { + // The type of GPU sharing strategy currently provided. + enum GPUSharingStrategy { + // Default value. + GPU_SHARING_STRATEGY_UNSPECIFIED = 0; + + // GPUs are time-shared between containers. + TIME_SHARING = 1; + } + + // The max number of containers that can share a physical GPU. + int64 max_shared_clients_per_gpu = 1; + + // The type of GPU sharing strategy to enable on the GPU node. + optional GPUSharingStrategy gpu_sharing_strategy = 2; } // WorkloadMetadataConfig defines the metadata configuration to expose to @@ -3247,7 +3572,7 @@ message WorkloadMetadataConfig { // SetNetworkPolicyRequest enables/disables network policy for a cluster. message SetNetworkPolicyRequest { // Deprecated. The Google Developers Console [project ID or project - // number](https://developers.google.com/console/help/new/#projectnumber). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). // This field has been deprecated and replaced by the name field. string project_id = 1 [deprecated = true]; @@ -3264,7 +3589,7 @@ message SetNetworkPolicyRequest { // Required. Configuration options for the NetworkPolicy feature. NetworkPolicy network_policy = 4 [(google.api.field_behavior) = REQUIRED]; - // The name (project, location, cluster id) of the cluster to set networking + // The name (project, location, cluster name) of the cluster to set networking // policy. Specified in the format `projects/*/locations/*/clusters/*`. string name = 6; } @@ -3272,7 +3597,7 @@ message SetNetworkPolicyRequest { // SetMaintenancePolicyRequest sets the maintenance policy for a cluster. message SetMaintenancePolicyRequest { // Required. The Google Developers Console [project ID or project - // number](https://support.google.com/cloud/answer/6158840). + // number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). string project_id = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The name of the Google Compute Engine @@ -3287,8 +3612,8 @@ message SetMaintenancePolicyRequest { // clears the existing maintenance policy. MaintenancePolicy maintenance_policy = 4 [(google.api.field_behavior) = REQUIRED]; - // The name (project, location, cluster id) of the cluster to set maintenance - // policy. + // The name (project, location, cluster name) of the cluster to set + // maintenance policy. // Specified in the format `projects/*/locations/*/clusters/*`. string name = 5; } @@ -3422,7 +3747,7 @@ message GetOpenIDConfigResponse { // 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 cluster (project, location, cluster name) to get keys for. Specified in // the format `projects/*/locations/*/clusters/*`. string parent = 1; } @@ -3558,6 +3883,13 @@ message WorkloadIdentityConfig { string workload_pool = 2; } +// IdentityServiceConfig is configuration for Identity Service which allows +// customers to use external identity providers with the K8S API +message IdentityServiceConfig { + // Whether to enable the Identity Service component + bool enabled = 1; +} + // Configuration for issuance of mTLS keys and certificates to Kubernetes pods. message MeshCertificates { // enable_certificates controls issuance of workload mTLS certificates. @@ -3761,22 +4093,6 @@ enum PrivateIPv6GoogleAccess { PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; } -// The datapath provider selects the implementation of the Kubernetes networking -// model for service resolution and network policy enforcement. -enum DatapathProvider { - // Default value. - DATAPATH_PROVIDER_UNSPECIFIED = 0; - - // Use the IPTables implementation based on kube-proxy. - LEGACY_DATAPATH = 1; - - // Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE - // Dataplane V2 - // documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) - // for more. - ADVANCED_DATAPATH = 2; -} - // NotificationConfig is the configuration of notifications. message NotificationConfig { // Types of notifications currently supported. Can be used to filter what @@ -3828,8 +4144,7 @@ message NotificationConfig { // ConfidentialNodes is configuration for the confidential nodes feature, which // makes nodes run on confidential VMs. message ConfidentialNodes { - // Whether Confidential Nodes feature is enabled for all nodes in this - // cluster. + // Whether Confidential Nodes feature is enabled. bool enabled = 1; } @@ -3963,6 +4278,10 @@ message LoggingComponentConfig { message MonitoringConfig { // Monitoring components configuration MonitoringComponentConfig component_config = 1; + + // Enable Google Cloud Managed Service for Prometheus + // in the cluster. + ManagedPrometheusConfig managed_prometheus_config = 2; } // MonitoringComponentConfig is cluster monitoring component configuration. @@ -3974,9 +4293,54 @@ message MonitoringComponentConfig { // system components SYSTEM_COMPONENTS = 1; + + // kube-apiserver + APISERVER = 3; + + // kube-scheduler + SCHEDULER = 4; + + // kube-controller-manager + CONTROLLER_MANAGER = 5; } // Select components to collect metrics. An empty set would disable all // monitoring. repeated Component enable_components = 1; } + +// The datapath provider selects the implementation of the Kubernetes networking +// model for service resolution and network policy enforcement. +enum DatapathProvider { + // Default value. + DATAPATH_PROVIDER_UNSPECIFIED = 0; + + // Use the IPTables implementation based on kube-proxy. + LEGACY_DATAPATH = 1; + + // Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE + // Dataplane V2 + // documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) + // for more. + ADVANCED_DATAPATH = 2; +} + +// Strategy used for node pool update. +enum NodePoolUpdateStrategy { + // Default value. + NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; + + // blue-green upgrade. + BLUE_GREEN = 2; + + // SURGE is the traditional way of upgrade a node pool. + // max_surge and max_unavailable determines the level of upgrade parallelism. + SURGE = 3; +} + +// ManagedPrometheusConfig defines the configuration for +// Google Cloud Managed Service for Prometheus. +message ManagedPrometheusConfig { + // Enable Managed Collection. + bool enabled = 1; +} diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index dea8887c9ac..d560c03d4f8 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -351,6 +351,20 @@ export namespace google { */ public deleteNodePool(request: google.container.v1.IDeleteNodePoolRequest): Promise; + /** + * Calls CompleteNodePoolUpgrade. + * @param request CompleteNodePoolUpgradeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public completeNodePoolUpgrade(request: google.container.v1.ICompleteNodePoolUpgradeRequest, callback: google.container.v1.ClusterManager.CompleteNodePoolUpgradeCallback): void; + + /** + * Calls CompleteNodePoolUpgrade. + * @param request CompleteNodePoolUpgradeRequest message or plain object + * @returns Promise + */ + public completeNodePoolUpgrade(request: google.container.v1.ICompleteNodePoolUpgradeRequest): Promise; + /** * Calls RollbackNodePoolUpgrade. * @param request RollbackNodePoolUpgradeRequest message or plain object @@ -648,6 +662,13 @@ export namespace google { */ type DeleteNodePoolCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; + /** + * Callback as used by {@link google.container.v1.ClusterManager#completeNodePoolUpgrade}. + * @param error Error, if any + * @param [response] Empty + */ + type CompleteNodePoolUpgradeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + /** * Callback as used by {@link google.container.v1.ClusterManager#rollbackNodePoolUpgrade}. * @param error Error, if any @@ -820,6 +841,9 @@ export namespace google { /** NodeKubeletConfig cpuCfsQuotaPeriod */ cpuCfsQuotaPeriod?: (string|null); + + /** NodeKubeletConfig podPidsLimit */ + podPidsLimit?: (number|Long|string|null); } /** Represents a NodeKubeletConfig. */ @@ -840,6 +864,9 @@ export namespace google { /** NodeKubeletConfig cpuCfsQuotaPeriod. */ public cpuCfsQuotaPeriod: string; + /** NodeKubeletConfig podPidsLimit. */ + public podPidsLimit: (number|Long|string); + /** * Creates a new NodeKubeletConfig instance using the specified properties. * @param [properties] Properties to set @@ -988,6 +1015,12 @@ export namespace google { /** NodeConfig gvnic */ gvnic?: (google.container.v1.IVirtualNIC|null); + + /** NodeConfig spot */ + spot?: (boolean|null); + + /** NodeConfig confidentialNodes */ + confidentialNodes?: (google.container.v1.IConfidentialNodes|null); } /** Represents a NodeConfig. */ @@ -1074,6 +1107,12 @@ export namespace google { /** NodeConfig gvnic. */ public gvnic?: (google.container.v1.IVirtualNIC|null); + /** NodeConfig spot. */ + public spot: boolean; + + /** NodeConfig confidentialNodes. */ + public confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** * Creates a new NodeConfig instance using the specified properties. * @param [properties] Properties to set @@ -1249,6 +1288,9 @@ export namespace google { /** NodeNetworkConfig podIpv4CidrBlock */ podIpv4CidrBlock?: (string|null); + + /** NodeNetworkConfig networkPerformanceConfig */ + networkPerformanceConfig?: (google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig|null); } /** Represents a NodeNetworkConfig. */ @@ -1269,6 +1311,12 @@ export namespace google { /** NodeNetworkConfig podIpv4CidrBlock. */ public podIpv4CidrBlock: string; + /** NodeNetworkConfig networkPerformanceConfig. */ + public networkPerformanceConfig?: (google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig|null); + + /** NodeNetworkConfig _networkPerformanceConfig. */ + public _networkPerformanceConfig?: "networkPerformanceConfig"; + /** * Creates a new NodeNetworkConfig instance using the specified properties. * @param [properties] Properties to set @@ -1340,6 +1388,111 @@ export namespace google { public toJSON(): { [k: string]: any }; } + namespace NodeNetworkConfig { + + /** Properties of a NetworkPerformanceConfig. */ + interface INetworkPerformanceConfig { + + /** NetworkPerformanceConfig totalEgressBandwidthTier */ + totalEgressBandwidthTier?: (google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier|keyof typeof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier|null); + } + + /** Represents a NetworkPerformanceConfig. */ + class NetworkPerformanceConfig implements INetworkPerformanceConfig { + + /** + * Constructs a new NetworkPerformanceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig); + + /** NetworkPerformanceConfig totalEgressBandwidthTier. */ + public totalEgressBandwidthTier?: (google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier|keyof typeof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier|null); + + /** NetworkPerformanceConfig _totalEgressBandwidthTier. */ + public _totalEgressBandwidthTier?: "totalEgressBandwidthTier"; + + /** + * Creates a new NetworkPerformanceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkPerformanceConfig instance + */ + public static create(properties?: google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig): google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig; + + /** + * Encodes the specified NetworkPerformanceConfig message. Does not implicitly {@link google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.verify|verify} messages. + * @param message NetworkPerformanceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkPerformanceConfig message, length delimited. Does not implicitly {@link google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.verify|verify} messages. + * @param message NetworkPerformanceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkPerformanceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkPerformanceConfig + * @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.NodeNetworkConfig.NetworkPerformanceConfig; + + /** + * Decodes a NetworkPerformanceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkPerformanceConfig + * @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.NodeNetworkConfig.NetworkPerformanceConfig; + + /** + * Verifies a NetworkPerformanceConfig 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 NetworkPerformanceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkPerformanceConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig; + + /** + * Creates a plain object from a NetworkPerformanceConfig message. Also converts values to other types if specified. + * @param message NetworkPerformanceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkPerformanceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace NetworkPerformanceConfig { + + /** Tier enum. */ + enum Tier { + TIER_UNSPECIFIED = 0, + TIER_1 = 1 + } + } + } + /** Properties of a ShieldedInstanceConfig. */ interface IShieldedInstanceConfig { @@ -1851,6 +2004,276 @@ export namespace google { } } + /** Properties of a NodeTaints. */ + interface INodeTaints { + + /** NodeTaints taints */ + taints?: (google.container.v1.INodeTaint[]|null); + } + + /** Represents a NodeTaints. */ + class NodeTaints implements INodeTaints { + + /** + * Constructs a new NodeTaints. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodeTaints); + + /** NodeTaints taints. */ + public taints: google.container.v1.INodeTaint[]; + + /** + * Creates a new NodeTaints instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeTaints instance + */ + public static create(properties?: google.container.v1.INodeTaints): google.container.v1.NodeTaints; + + /** + * Encodes the specified NodeTaints message. Does not implicitly {@link google.container.v1.NodeTaints.verify|verify} messages. + * @param message NodeTaints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodeTaints, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodeTaints message, length delimited. Does not implicitly {@link google.container.v1.NodeTaints.verify|verify} messages. + * @param message NodeTaints message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodeTaints, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeTaints message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeTaints + * @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.NodeTaints; + + /** + * Decodes a NodeTaints message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeTaints + * @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.NodeTaints; + + /** + * Verifies a NodeTaints 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 NodeTaints message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeTaints + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodeTaints; + + /** + * Creates a plain object from a NodeTaints message. Also converts values to other types if specified. + * @param message NodeTaints + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodeTaints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodeTaints to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NodeLabels. */ + interface INodeLabels { + + /** NodeLabels labels */ + labels?: ({ [k: string]: string }|null); + } + + /** Represents a NodeLabels. */ + class NodeLabels implements INodeLabels { + + /** + * Constructs a new NodeLabels. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodeLabels); + + /** NodeLabels labels. */ + public labels: { [k: string]: string }; + + /** + * Creates a new NodeLabels instance using the specified properties. + * @param [properties] Properties to set + * @returns NodeLabels instance + */ + public static create(properties?: google.container.v1.INodeLabels): google.container.v1.NodeLabels; + + /** + * Encodes the specified NodeLabels message. Does not implicitly {@link google.container.v1.NodeLabels.verify|verify} messages. + * @param message NodeLabels message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodeLabels, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodeLabels message, length delimited. Does not implicitly {@link google.container.v1.NodeLabels.verify|verify} messages. + * @param message NodeLabels message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodeLabels, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodeLabels message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodeLabels + * @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.NodeLabels; + + /** + * Decodes a NodeLabels message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodeLabels + * @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.NodeLabels; + + /** + * Verifies a NodeLabels 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 NodeLabels message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodeLabels + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodeLabels; + + /** + * Creates a plain object from a NodeLabels message. Also converts values to other types if specified. + * @param message NodeLabels + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodeLabels, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodeLabels to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a NetworkTags. */ + interface INetworkTags { + + /** NetworkTags tags */ + tags?: (string[]|null); + } + + /** Represents a NetworkTags. */ + class NetworkTags implements INetworkTags { + + /** + * Constructs a new NetworkTags. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INetworkTags); + + /** NetworkTags tags. */ + public tags: string[]; + + /** + * Creates a new NetworkTags instance using the specified properties. + * @param [properties] Properties to set + * @returns NetworkTags instance + */ + public static create(properties?: google.container.v1.INetworkTags): google.container.v1.NetworkTags; + + /** + * Encodes the specified NetworkTags message. Does not implicitly {@link google.container.v1.NetworkTags.verify|verify} messages. + * @param message NetworkTags message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INetworkTags, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NetworkTags message, length delimited. Does not implicitly {@link google.container.v1.NetworkTags.verify|verify} messages. + * @param message NetworkTags message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INetworkTags, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NetworkTags message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NetworkTags + * @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.NetworkTags; + + /** + * Decodes a NetworkTags message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NetworkTags + * @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.NetworkTags; + + /** + * Verifies a NetworkTags 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 NetworkTags message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NetworkTags + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NetworkTags; + + /** + * Creates a plain object from a NetworkTags message. Also converts values to other types if specified. + * @param message NetworkTags + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NetworkTags, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NetworkTags to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a MasterAuth. */ interface IMasterAuth { @@ -3732,6 +4155,9 @@ export namespace google { /** BinaryAuthorization enabled */ enabled?: (boolean|null); + + /** BinaryAuthorization evaluationMode */ + evaluationMode?: (google.container.v1.BinaryAuthorization.EvaluationMode|keyof typeof google.container.v1.BinaryAuthorization.EvaluationMode|null); } /** Represents a BinaryAuthorization. */ @@ -3746,6 +4172,9 @@ export namespace google { /** BinaryAuthorization enabled. */ public enabled: boolean; + /** BinaryAuthorization evaluationMode. */ + public evaluationMode: (google.container.v1.BinaryAuthorization.EvaluationMode|keyof typeof google.container.v1.BinaryAuthorization.EvaluationMode); + /** * Creates a new BinaryAuthorization instance using the specified properties. * @param [properties] Properties to set @@ -3817,6 +4246,16 @@ export namespace google { public toJSON(): { [k: string]: any }; } + namespace BinaryAuthorization { + + /** EvaluationMode enum. */ + enum EvaluationMode { + EVALUATION_MODE_UNSPECIFIED = 0, + DISABLED = 1, + PROJECT_SINGLETON_POLICY_ENFORCE = 2 + } + } + /** Properties of a IPAllocationPolicy. */ interface IIPAllocationPolicy { @@ -4090,6 +4529,9 @@ export namespace google { /** Cluster confidentialNodes */ confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** Cluster identityServiceConfig */ + identityServiceConfig?: (google.container.v1.IIdentityServiceConfig|null); + /** Cluster selfLink */ selfLink?: (string|null); @@ -4158,6 +4600,9 @@ export namespace google { /** Cluster monitoringConfig */ monitoringConfig?: (google.container.v1.IMonitoringConfig|null); + + /** Cluster nodePoolAutoConfig */ + nodePoolAutoConfig?: (google.container.v1.INodePoolAutoConfig|null); } /** Represents a Cluster. */ @@ -4277,6 +4722,9 @@ export namespace google { /** Cluster confidentialNodes. */ public confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** Cluster identityServiceConfig. */ + public identityServiceConfig?: (google.container.v1.IIdentityServiceConfig|null); + /** Cluster selfLink. */ public selfLink: string; @@ -4346,6 +4794,9 @@ export namespace google { /** Cluster monitoringConfig. */ public monitoringConfig?: (google.container.v1.IMonitoringConfig|null); + /** Cluster nodePoolAutoConfig. */ + public nodePoolAutoConfig?: (google.container.v1.INodePoolAutoConfig|null); + /** Cluster _nodePoolDefaults. */ public _nodePoolDefaults?: "nodePoolDefaults"; @@ -4434,6 +4885,96 @@ export namespace google { } } + /** Properties of a NodePoolAutoConfig. */ + interface INodePoolAutoConfig { + + /** NodePoolAutoConfig networkTags */ + networkTags?: (google.container.v1.INetworkTags|null); + } + + /** Represents a NodePoolAutoConfig. */ + class NodePoolAutoConfig implements INodePoolAutoConfig { + + /** + * Constructs a new NodePoolAutoConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodePoolAutoConfig); + + /** NodePoolAutoConfig networkTags. */ + public networkTags?: (google.container.v1.INetworkTags|null); + + /** + * Creates a new NodePoolAutoConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NodePoolAutoConfig instance + */ + public static create(properties?: google.container.v1.INodePoolAutoConfig): google.container.v1.NodePoolAutoConfig; + + /** + * Encodes the specified NodePoolAutoConfig message. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. + * @param message NodePoolAutoConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodePoolAutoConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodePoolAutoConfig message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. + * @param message NodePoolAutoConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodePoolAutoConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodePoolAutoConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodePoolAutoConfig + * @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.NodePoolAutoConfig; + + /** + * Decodes a NodePoolAutoConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodePoolAutoConfig + * @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.NodePoolAutoConfig; + + /** + * Verifies a NodePoolAutoConfig 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 NodePoolAutoConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodePoolAutoConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolAutoConfig; + + /** + * Creates a plain object from a NodePoolAutoConfig message. Also converts values to other types if specified. + * @param message NodePoolAutoConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodePoolAutoConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodePoolAutoConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a NodePoolDefaults. */ interface INodePoolDefaults { @@ -4704,6 +5245,9 @@ export namespace google { /** ClusterUpdate desiredMonitoringConfig */ desiredMonitoringConfig?: (google.container.v1.IMonitoringConfig|null); + /** ClusterUpdate desiredIdentityServiceConfig */ + desiredIdentityServiceConfig?: (google.container.v1.IIdentityServiceConfig|null); + /** ClusterUpdate desiredServiceExternalIpsConfig */ desiredServiceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null); @@ -4712,6 +5256,9 @@ export namespace google { /** ClusterUpdate desiredGcfsConfig */ desiredGcfsConfig?: (google.container.v1.IGcfsConfig|null); + + /** ClusterUpdate desiredNodePoolAutoConfigNetworkTags */ + desiredNodePoolAutoConfigNetworkTags?: (google.container.v1.INetworkTags|null); } /** Represents a ClusterUpdate. */ @@ -4810,6 +5357,9 @@ export namespace google { /** ClusterUpdate desiredMonitoringConfig. */ public desiredMonitoringConfig?: (google.container.v1.IMonitoringConfig|null); + /** ClusterUpdate desiredIdentityServiceConfig. */ + public desiredIdentityServiceConfig?: (google.container.v1.IIdentityServiceConfig|null); + /** ClusterUpdate desiredServiceExternalIpsConfig. */ public desiredServiceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null); @@ -4819,6 +5369,9 @@ export namespace google { /** ClusterUpdate desiredGcfsConfig. */ public desiredGcfsConfig?: (google.container.v1.IGcfsConfig|null); + /** ClusterUpdate desiredNodePoolAutoConfigNetworkTags. */ + public desiredNodePoolAutoConfigNetworkTags?: (google.container.v1.INetworkTags|null); + /** * Creates a new ClusterUpdate instance using the specified properties. * @param [properties] Properties to set @@ -5682,15 +6235,30 @@ export namespace google { /** UpdateNodePoolRequest upgradeSettings */ upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); + /** UpdateNodePoolRequest tags */ + tags?: (google.container.v1.INetworkTags|null); + + /** UpdateNodePoolRequest taints */ + taints?: (google.container.v1.INodeTaints|null); + + /** UpdateNodePoolRequest labels */ + labels?: (google.container.v1.INodeLabels|null); + /** UpdateNodePoolRequest linuxNodeConfig */ linuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null); /** UpdateNodePoolRequest kubeletConfig */ kubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + /** UpdateNodePoolRequest nodeNetworkConfig */ + nodeNetworkConfig?: (google.container.v1.INodeNetworkConfig|null); + /** UpdateNodePoolRequest gcfsConfig */ gcfsConfig?: (google.container.v1.IGcfsConfig|null); + /** UpdateNodePoolRequest confidentialNodes */ + confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** UpdateNodePoolRequest gvnic */ gvnic?: (google.container.v1.IVirtualNIC|null); } @@ -5734,15 +6302,30 @@ export namespace google { /** UpdateNodePoolRequest upgradeSettings. */ public upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); + /** UpdateNodePoolRequest tags. */ + public tags?: (google.container.v1.INetworkTags|null); + + /** UpdateNodePoolRequest taints. */ + public taints?: (google.container.v1.INodeTaints|null); + + /** UpdateNodePoolRequest labels. */ + public labels?: (google.container.v1.INodeLabels|null); + /** UpdateNodePoolRequest linuxNodeConfig. */ public linuxNodeConfig?: (google.container.v1.ILinuxNodeConfig|null); /** UpdateNodePoolRequest kubeletConfig. */ public kubeletConfig?: (google.container.v1.INodeKubeletConfig|null); + /** UpdateNodePoolRequest nodeNetworkConfig. */ + public nodeNetworkConfig?: (google.container.v1.INodeNetworkConfig|null); + /** UpdateNodePoolRequest gcfsConfig. */ public gcfsConfig?: (google.container.v1.IGcfsConfig|null); + /** UpdateNodePoolRequest confidentialNodes. */ + public confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** UpdateNodePoolRequest gvnic. */ public gvnic?: (google.container.v1.IVirtualNIC|null); @@ -8128,11 +8711,224 @@ export namespace google { */ public static toObject(message: google.container.v1.GetNodePoolRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this GetNodePoolRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this GetNodePoolRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BlueGreenSettings. */ + interface IBlueGreenSettings { + + /** BlueGreenSettings standardRolloutPolicy */ + standardRolloutPolicy?: (google.container.v1.BlueGreenSettings.IStandardRolloutPolicy|null); + + /** BlueGreenSettings nodePoolSoakDuration */ + nodePoolSoakDuration?: (google.protobuf.IDuration|null); + } + + /** Represents a BlueGreenSettings. */ + class BlueGreenSettings implements IBlueGreenSettings { + + /** + * Constructs a new BlueGreenSettings. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IBlueGreenSettings); + + /** BlueGreenSettings standardRolloutPolicy. */ + public standardRolloutPolicy?: (google.container.v1.BlueGreenSettings.IStandardRolloutPolicy|null); + + /** BlueGreenSettings nodePoolSoakDuration. */ + public nodePoolSoakDuration?: (google.protobuf.IDuration|null); + + /** BlueGreenSettings rolloutPolicy. */ + public rolloutPolicy?: "standardRolloutPolicy"; + + /** BlueGreenSettings _nodePoolSoakDuration. */ + public _nodePoolSoakDuration?: "nodePoolSoakDuration"; + + /** + * Creates a new BlueGreenSettings instance using the specified properties. + * @param [properties] Properties to set + * @returns BlueGreenSettings instance + */ + public static create(properties?: google.container.v1.IBlueGreenSettings): google.container.v1.BlueGreenSettings; + + /** + * Encodes the specified BlueGreenSettings message. Does not implicitly {@link google.container.v1.BlueGreenSettings.verify|verify} messages. + * @param message BlueGreenSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IBlueGreenSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BlueGreenSettings message, length delimited. Does not implicitly {@link google.container.v1.BlueGreenSettings.verify|verify} messages. + * @param message BlueGreenSettings message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IBlueGreenSettings, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlueGreenSettings message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BlueGreenSettings + * @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.BlueGreenSettings; + + /** + * Decodes a BlueGreenSettings message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BlueGreenSettings + * @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.BlueGreenSettings; + + /** + * Verifies a BlueGreenSettings 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 BlueGreenSettings message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BlueGreenSettings + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.BlueGreenSettings; + + /** + * Creates a plain object from a BlueGreenSettings message. Also converts values to other types if specified. + * @param message BlueGreenSettings + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.BlueGreenSettings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BlueGreenSettings to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace BlueGreenSettings { + + /** Properties of a StandardRolloutPolicy. */ + interface IStandardRolloutPolicy { + + /** StandardRolloutPolicy batchPercentage */ + batchPercentage?: (number|null); + + /** StandardRolloutPolicy batchNodeCount */ + batchNodeCount?: (number|null); + + /** StandardRolloutPolicy batchSoakDuration */ + batchSoakDuration?: (google.protobuf.IDuration|null); + } + + /** Represents a StandardRolloutPolicy. */ + class StandardRolloutPolicy implements IStandardRolloutPolicy { + + /** + * Constructs a new StandardRolloutPolicy. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.BlueGreenSettings.IStandardRolloutPolicy); + + /** StandardRolloutPolicy batchPercentage. */ + public batchPercentage?: (number|null); + + /** StandardRolloutPolicy batchNodeCount. */ + public batchNodeCount?: (number|null); + + /** StandardRolloutPolicy batchSoakDuration. */ + public batchSoakDuration?: (google.protobuf.IDuration|null); + + /** StandardRolloutPolicy updateBatchSize. */ + public updateBatchSize?: ("batchPercentage"|"batchNodeCount"); + + /** StandardRolloutPolicy _batchSoakDuration. */ + public _batchSoakDuration?: "batchSoakDuration"; + + /** + * Creates a new StandardRolloutPolicy instance using the specified properties. + * @param [properties] Properties to set + * @returns StandardRolloutPolicy instance + */ + public static create(properties?: google.container.v1.BlueGreenSettings.IStandardRolloutPolicy): google.container.v1.BlueGreenSettings.StandardRolloutPolicy; + + /** + * Encodes the specified StandardRolloutPolicy message. Does not implicitly {@link google.container.v1.BlueGreenSettings.StandardRolloutPolicy.verify|verify} messages. + * @param message StandardRolloutPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.BlueGreenSettings.IStandardRolloutPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StandardRolloutPolicy message, length delimited. Does not implicitly {@link google.container.v1.BlueGreenSettings.StandardRolloutPolicy.verify|verify} messages. + * @param message StandardRolloutPolicy message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.BlueGreenSettings.IStandardRolloutPolicy, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StandardRolloutPolicy message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StandardRolloutPolicy + * @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.BlueGreenSettings.StandardRolloutPolicy; + + /** + * Decodes a StandardRolloutPolicy message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StandardRolloutPolicy + * @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.BlueGreenSettings.StandardRolloutPolicy; + + /** + * Verifies a StandardRolloutPolicy 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 StandardRolloutPolicy message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StandardRolloutPolicy + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.BlueGreenSettings.StandardRolloutPolicy; + + /** + * Creates a plain object from a StandardRolloutPolicy message. Also converts values to other types if specified. + * @param message StandardRolloutPolicy + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.BlueGreenSettings.StandardRolloutPolicy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StandardRolloutPolicy to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } /** Properties of a NodePool. */ @@ -8185,6 +8981,9 @@ export namespace google { /** NodePool upgradeSettings */ upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); + + /** NodePool updateInfo */ + updateInfo?: (google.container.v1.NodePool.IUpdateInfo|null); } /** Represents a NodePool. */ @@ -8244,6 +9043,9 @@ export namespace google { /** NodePool upgradeSettings. */ public upgradeSettings?: (google.container.v1.NodePool.IUpgradeSettings|null); + /** NodePool updateInfo. */ + public updateInfo?: (google.container.v1.NodePool.IUpdateInfo|null); + /** * Creates a new NodePool instance using the specified properties. * @param [properties] Properties to set @@ -8325,6 +9127,12 @@ export namespace google { /** UpgradeSettings maxUnavailable */ maxUnavailable?: (number|null); + + /** UpgradeSettings strategy */ + strategy?: (google.container.v1.NodePoolUpdateStrategy|keyof typeof google.container.v1.NodePoolUpdateStrategy|null); + + /** UpgradeSettings blueGreenSettings */ + blueGreenSettings?: (google.container.v1.IBlueGreenSettings|null); } /** Represents an UpgradeSettings. */ @@ -8342,6 +9150,18 @@ export namespace google { /** UpgradeSettings maxUnavailable. */ public maxUnavailable: number; + /** UpgradeSettings strategy. */ + public strategy?: (google.container.v1.NodePoolUpdateStrategy|keyof typeof google.container.v1.NodePoolUpdateStrategy|null); + + /** UpgradeSettings blueGreenSettings. */ + public blueGreenSettings?: (google.container.v1.IBlueGreenSettings|null); + + /** UpgradeSettings _strategy. */ + public _strategy?: "strategy"; + + /** UpgradeSettings _blueGreenSettings. */ + public _blueGreenSettings?: "blueGreenSettings"; + /** * Creates a new UpgradeSettings instance using the specified properties. * @param [properties] Properties to set @@ -8413,6 +9233,228 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an UpdateInfo. */ + interface IUpdateInfo { + + /** UpdateInfo blueGreenInfo */ + blueGreenInfo?: (google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo|null); + } + + /** Represents an UpdateInfo. */ + class UpdateInfo implements IUpdateInfo { + + /** + * Constructs a new UpdateInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.NodePool.IUpdateInfo); + + /** UpdateInfo blueGreenInfo. */ + public blueGreenInfo?: (google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo|null); + + /** + * Creates a new UpdateInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateInfo instance + */ + public static create(properties?: google.container.v1.NodePool.IUpdateInfo): google.container.v1.NodePool.UpdateInfo; + + /** + * Encodes the specified UpdateInfo message. Does not implicitly {@link google.container.v1.NodePool.UpdateInfo.verify|verify} messages. + * @param message UpdateInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.NodePool.IUpdateInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UpdateInfo message, length delimited. Does not implicitly {@link google.container.v1.NodePool.UpdateInfo.verify|verify} messages. + * @param message UpdateInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.NodePool.IUpdateInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UpdateInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateInfo + * @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.UpdateInfo; + + /** + * Decodes an UpdateInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateInfo + * @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.UpdateInfo; + + /** + * Verifies an UpdateInfo 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 UpdateInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateInfo + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePool.UpdateInfo; + + /** + * Creates a plain object from an UpdateInfo message. Also converts values to other types if specified. + * @param message UpdateInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodePool.UpdateInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UpdateInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace UpdateInfo { + + /** Properties of a BlueGreenInfo. */ + interface IBlueGreenInfo { + + /** BlueGreenInfo phase */ + phase?: (google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase|keyof typeof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase|null); + + /** BlueGreenInfo blueInstanceGroupUrls */ + blueInstanceGroupUrls?: (string[]|null); + + /** BlueGreenInfo greenInstanceGroupUrls */ + greenInstanceGroupUrls?: (string[]|null); + + /** BlueGreenInfo bluePoolDeletionStartTime */ + bluePoolDeletionStartTime?: (string|null); + + /** BlueGreenInfo greenPoolVersion */ + greenPoolVersion?: (string|null); + } + + /** Represents a BlueGreenInfo. */ + class BlueGreenInfo implements IBlueGreenInfo { + + /** + * Constructs a new BlueGreenInfo. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo); + + /** BlueGreenInfo phase. */ + public phase: (google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase|keyof typeof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase); + + /** BlueGreenInfo blueInstanceGroupUrls. */ + public blueInstanceGroupUrls: string[]; + + /** BlueGreenInfo greenInstanceGroupUrls. */ + public greenInstanceGroupUrls: string[]; + + /** BlueGreenInfo bluePoolDeletionStartTime. */ + public bluePoolDeletionStartTime: string; + + /** BlueGreenInfo greenPoolVersion. */ + public greenPoolVersion: string; + + /** + * Creates a new BlueGreenInfo instance using the specified properties. + * @param [properties] Properties to set + * @returns BlueGreenInfo instance + */ + public static create(properties?: google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo): google.container.v1.NodePool.UpdateInfo.BlueGreenInfo; + + /** + * Encodes the specified BlueGreenInfo message. Does not implicitly {@link google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.verify|verify} messages. + * @param message BlueGreenInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BlueGreenInfo message, length delimited. Does not implicitly {@link google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.verify|verify} messages. + * @param message BlueGreenInfo message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BlueGreenInfo message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BlueGreenInfo + * @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.UpdateInfo.BlueGreenInfo; + + /** + * Decodes a BlueGreenInfo message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BlueGreenInfo + * @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.UpdateInfo.BlueGreenInfo; + + /** + * Verifies a BlueGreenInfo 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 BlueGreenInfo message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BlueGreenInfo + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePool.UpdateInfo.BlueGreenInfo; + + /** + * Creates a plain object from a BlueGreenInfo message. Also converts values to other types if specified. + * @param message BlueGreenInfo + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodePool.UpdateInfo.BlueGreenInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BlueGreenInfo to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace BlueGreenInfo { + + /** Phase enum. */ + enum Phase { + PHASE_UNSPECIFIED = 0, + UPDATE_STARTED = 1, + CREATING_GREEN_POOL = 2, + CORDONING_BLUE_POOL = 3, + DRAINING_BLUE_POOL = 4, + NODE_POOL_SOAKING = 5, + DELETING_BLUE_POOL = 6, + ROLLBACK_STARTED = 7 + } + } + } + /** Status enum. */ enum Status { STATUS_UNSPECIFIED = 0, @@ -9461,6 +10503,96 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a CompleteNodePoolUpgradeRequest. */ + interface ICompleteNodePoolUpgradeRequest { + + /** CompleteNodePoolUpgradeRequest name */ + name?: (string|null); + } + + /** Represents a CompleteNodePoolUpgradeRequest. */ + class CompleteNodePoolUpgradeRequest implements ICompleteNodePoolUpgradeRequest { + + /** + * Constructs a new CompleteNodePoolUpgradeRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ICompleteNodePoolUpgradeRequest); + + /** CompleteNodePoolUpgradeRequest name. */ + public name: string; + + /** + * Creates a new CompleteNodePoolUpgradeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CompleteNodePoolUpgradeRequest instance + */ + public static create(properties?: google.container.v1.ICompleteNodePoolUpgradeRequest): google.container.v1.CompleteNodePoolUpgradeRequest; + + /** + * Encodes the specified CompleteNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.CompleteNodePoolUpgradeRequest.verify|verify} messages. + * @param message CompleteNodePoolUpgradeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ICompleteNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CompleteNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteNodePoolUpgradeRequest.verify|verify} messages. + * @param message CompleteNodePoolUpgradeRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ICompleteNodePoolUpgradeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CompleteNodePoolUpgradeRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CompleteNodePoolUpgradeRequest + * @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.CompleteNodePoolUpgradeRequest; + + /** + * Decodes a CompleteNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CompleteNodePoolUpgradeRequest + * @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.CompleteNodePoolUpgradeRequest; + + /** + * Verifies a CompleteNodePoolUpgradeRequest 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 CompleteNodePoolUpgradeRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CompleteNodePoolUpgradeRequest + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.CompleteNodePoolUpgradeRequest; + + /** + * Creates a plain object from a CompleteNodePoolUpgradeRequest message. Also converts values to other types if specified. + * @param message CompleteNodePoolUpgradeRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.CompleteNodePoolUpgradeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompleteNodePoolUpgradeRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a RollbackNodePoolUpgradeRequest. */ interface IRollbackNodePoolUpgradeRequest { @@ -9478,6 +10610,9 @@ export namespace google { /** RollbackNodePoolUpgradeRequest name */ name?: (string|null); + + /** RollbackNodePoolUpgradeRequest respectPdb */ + respectPdb?: (boolean|null); } /** Represents a RollbackNodePoolUpgradeRequest. */ @@ -9504,6 +10639,9 @@ export namespace google { /** RollbackNodePoolUpgradeRequest name. */ public name: string; + /** RollbackNodePoolUpgradeRequest respectPdb. */ + public respectPdb: boolean; + /** * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. * @param [properties] Properties to set @@ -10049,6 +11187,15 @@ export namespace google { /** NodePoolAutoscaling autoprovisioned */ autoprovisioned?: (boolean|null); + + /** NodePoolAutoscaling locationPolicy */ + locationPolicy?: (google.container.v1.NodePoolAutoscaling.LocationPolicy|keyof typeof google.container.v1.NodePoolAutoscaling.LocationPolicy|null); + + /** NodePoolAutoscaling totalMinNodeCount */ + totalMinNodeCount?: (number|null); + + /** NodePoolAutoscaling totalMaxNodeCount */ + totalMaxNodeCount?: (number|null); } /** Represents a NodePoolAutoscaling. */ @@ -10072,6 +11219,15 @@ export namespace google { /** NodePoolAutoscaling autoprovisioned. */ public autoprovisioned: boolean; + /** NodePoolAutoscaling locationPolicy. */ + public locationPolicy: (google.container.v1.NodePoolAutoscaling.LocationPolicy|keyof typeof google.container.v1.NodePoolAutoscaling.LocationPolicy); + + /** NodePoolAutoscaling totalMinNodeCount. */ + public totalMinNodeCount: number; + + /** NodePoolAutoscaling totalMaxNodeCount. */ + public totalMaxNodeCount: number; + /** * Creates a new NodePoolAutoscaling instance using the specified properties. * @param [properties] Properties to set @@ -10143,6 +11299,16 @@ export namespace google { public toJSON(): { [k: string]: any }; } + namespace NodePoolAutoscaling { + + /** LocationPolicy enum. */ + enum LocationPolicy { + LOCATION_POLICY_UNSPECIFIED = 0, + BALANCED = 1, + ANY = 2 + } + } + /** Properties of a SetLabelsRequest. */ interface ISetLabelsRequest { @@ -10582,125 +11748,242 @@ export namespace google { * @param object Plain object * @returns CompleteIPRotationRequest */ - public static fromObject(object: { [k: string]: any }): google.container.v1.CompleteIPRotationRequest; + public static fromObject(object: { [k: string]: any }): google.container.v1.CompleteIPRotationRequest; + + /** + * 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.CompleteIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CompleteIPRotationRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an AcceleratorConfig. */ + interface IAcceleratorConfig { + + /** AcceleratorConfig acceleratorCount */ + acceleratorCount?: (number|Long|string|null); + + /** AcceleratorConfig acceleratorType */ + acceleratorType?: (string|null); + + /** AcceleratorConfig gpuPartitionSize */ + gpuPartitionSize?: (string|null); + + /** AcceleratorConfig gpuSharingConfig */ + gpuSharingConfig?: (google.container.v1.IGPUSharingConfig|null); + } + + /** Represents an AcceleratorConfig. */ + class AcceleratorConfig implements IAcceleratorConfig { + + /** + * Constructs a new AcceleratorConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IAcceleratorConfig); + + /** AcceleratorConfig acceleratorCount. */ + public acceleratorCount: (number|Long|string); + + /** AcceleratorConfig acceleratorType. */ + public acceleratorType: string; + + /** AcceleratorConfig gpuPartitionSize. */ + public gpuPartitionSize: string; + + /** AcceleratorConfig gpuSharingConfig. */ + public gpuSharingConfig?: (google.container.v1.IGPUSharingConfig|null); + + /** AcceleratorConfig _gpuSharingConfig. */ + public _gpuSharingConfig?: "gpuSharingConfig"; + + /** + * Creates a new AcceleratorConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns AcceleratorConfig instance + */ + public static create(properties?: google.container.v1.IAcceleratorConfig): google.container.v1.AcceleratorConfig; + + /** + * 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.IAcceleratorConfig, 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 + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IAcceleratorConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * 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 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.AcceleratorConfig; + + /** + * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @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.AcceleratorConfig; + + /** + * 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 AcceleratorConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AcceleratorConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.AcceleratorConfig; /** - * Creates a plain object from a CompleteIPRotationRequest message. Also converts values to other types if specified. - * @param message CompleteIPRotationRequest + * 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.CompleteIPRotationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.container.v1.AcceleratorConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CompleteIPRotationRequest to JSON. + * Converts this AcceleratorConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an AcceleratorConfig. */ - interface IAcceleratorConfig { - - /** AcceleratorConfig acceleratorCount */ - acceleratorCount?: (number|Long|string|null); + /** Properties of a GPUSharingConfig. */ + interface IGPUSharingConfig { - /** AcceleratorConfig acceleratorType */ - acceleratorType?: (string|null); + /** GPUSharingConfig maxSharedClientsPerGpu */ + maxSharedClientsPerGpu?: (number|Long|string|null); - /** AcceleratorConfig gpuPartitionSize */ - gpuPartitionSize?: (string|null); + /** GPUSharingConfig gpuSharingStrategy */ + gpuSharingStrategy?: (google.container.v1.GPUSharingConfig.GPUSharingStrategy|keyof typeof google.container.v1.GPUSharingConfig.GPUSharingStrategy|null); } - /** Represents an AcceleratorConfig. */ - class AcceleratorConfig implements IAcceleratorConfig { + /** Represents a GPUSharingConfig. */ + class GPUSharingConfig implements IGPUSharingConfig { /** - * Constructs a new AcceleratorConfig. + * Constructs a new GPUSharingConfig. * @param [properties] Properties to set */ - constructor(properties?: google.container.v1.IAcceleratorConfig); + constructor(properties?: google.container.v1.IGPUSharingConfig); - /** AcceleratorConfig acceleratorCount. */ - public acceleratorCount: (number|Long|string); + /** GPUSharingConfig maxSharedClientsPerGpu. */ + public maxSharedClientsPerGpu: (number|Long|string); - /** AcceleratorConfig acceleratorType. */ - public acceleratorType: string; + /** GPUSharingConfig gpuSharingStrategy. */ + public gpuSharingStrategy?: (google.container.v1.GPUSharingConfig.GPUSharingStrategy|keyof typeof google.container.v1.GPUSharingConfig.GPUSharingStrategy|null); - /** AcceleratorConfig gpuPartitionSize. */ - public gpuPartitionSize: string; + /** GPUSharingConfig _gpuSharingStrategy. */ + public _gpuSharingStrategy?: "gpuSharingStrategy"; /** - * Creates a new AcceleratorConfig instance using the specified properties. + * Creates a new GPUSharingConfig instance using the specified properties. * @param [properties] Properties to set - * @returns AcceleratorConfig instance + * @returns GPUSharingConfig instance */ - public static create(properties?: google.container.v1.IAcceleratorConfig): google.container.v1.AcceleratorConfig; + public static create(properties?: google.container.v1.IGPUSharingConfig): google.container.v1.GPUSharingConfig; /** - * 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 GPUSharingConfig message. Does not implicitly {@link google.container.v1.GPUSharingConfig.verify|verify} messages. + * @param message GPUSharingConfig 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.IGPUSharingConfig, 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 GPUSharingConfig message, length delimited. Does not implicitly {@link google.container.v1.GPUSharingConfig.verify|verify} messages. + * @param message GPUSharingConfig 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.IGPUSharingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer. + * Decodes a GPUSharingConfig 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 GPUSharingConfig * @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.GPUSharingConfig; /** - * Decodes an AcceleratorConfig message from the specified reader or buffer, length delimited. + * Decodes a GPUSharingConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AcceleratorConfig + * @returns GPUSharingConfig * @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.GPUSharingConfig; /** - * Verifies an AcceleratorConfig message. + * Verifies a GPUSharingConfig 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 GPUSharingConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AcceleratorConfig + * @returns GPUSharingConfig */ - public static fromObject(object: { [k: string]: any }): google.container.v1.AcceleratorConfig; + public static fromObject(object: { [k: string]: any }): google.container.v1.GPUSharingConfig; /** - * 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 GPUSharingConfig message. Also converts values to other types if specified. + * @param message GPUSharingConfig * @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.GPUSharingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AcceleratorConfig to JSON. + * Converts this GPUSharingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + namespace GPUSharingConfig { + + /** GPUSharingStrategy enum. */ + enum GPUSharingStrategy { + GPU_SHARING_STRATEGY_UNSPECIFIED = 0, + TIME_SHARING = 1 + } + } + /** Properties of a WorkloadMetadataConfig. */ interface IWorkloadMetadataConfig { @@ -12486,6 +13769,96 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of an IdentityServiceConfig. */ + interface IIdentityServiceConfig { + + /** IdentityServiceConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents an IdentityServiceConfig. */ + class IdentityServiceConfig implements IIdentityServiceConfig { + + /** + * Constructs a new IdentityServiceConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IIdentityServiceConfig); + + /** IdentityServiceConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new IdentityServiceConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns IdentityServiceConfig instance + */ + public static create(properties?: google.container.v1.IIdentityServiceConfig): google.container.v1.IdentityServiceConfig; + + /** + * Encodes the specified IdentityServiceConfig message. Does not implicitly {@link google.container.v1.IdentityServiceConfig.verify|verify} messages. + * @param message IdentityServiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IIdentityServiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IdentityServiceConfig message, length delimited. Does not implicitly {@link google.container.v1.IdentityServiceConfig.verify|verify} messages. + * @param message IdentityServiceConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IIdentityServiceConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IdentityServiceConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IdentityServiceConfig + * @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.IdentityServiceConfig; + + /** + * Decodes an IdentityServiceConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IdentityServiceConfig + * @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.IdentityServiceConfig; + + /** + * Verifies an IdentityServiceConfig 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 IdentityServiceConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IdentityServiceConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.IdentityServiceConfig; + + /** + * Creates a plain object from an IdentityServiceConfig message. Also converts values to other types if specified. + * @param message IdentityServiceConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.IdentityServiceConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IdentityServiceConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a MeshCertificates. */ interface IMeshCertificates { @@ -13767,13 +15140,6 @@ export namespace google { PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3 } - /** DatapathProvider enum. */ - enum DatapathProvider { - DATAPATH_PROVIDER_UNSPECIFIED = 0, - LEGACY_DATAPATH = 1, - ADVANCED_DATAPATH = 2 - } - /** Properties of a NotificationConfig. */ interface INotificationConfig { @@ -14821,6 +16187,9 @@ export namespace google { /** MonitoringConfig componentConfig */ componentConfig?: (google.container.v1.IMonitoringComponentConfig|null); + + /** MonitoringConfig managedPrometheusConfig */ + managedPrometheusConfig?: (google.container.v1.IManagedPrometheusConfig|null); } /** Represents a MonitoringConfig. */ @@ -14835,6 +16204,9 @@ export namespace google { /** MonitoringConfig componentConfig. */ public componentConfig?: (google.container.v1.IMonitoringComponentConfig|null); + /** MonitoringConfig managedPrometheusConfig. */ + public managedPrometheusConfig?: (google.container.v1.IManagedPrometheusConfig|null); + /** * Creates a new MonitoringConfig instance using the specified properties. * @param [properties] Properties to set @@ -15001,9 +16373,116 @@ export namespace google { /** Component enum. */ enum Component { COMPONENT_UNSPECIFIED = 0, - SYSTEM_COMPONENTS = 1 + SYSTEM_COMPONENTS = 1, + APISERVER = 3, + SCHEDULER = 4, + CONTROLLER_MANAGER = 5 } } + + /** DatapathProvider enum. */ + enum DatapathProvider { + DATAPATH_PROVIDER_UNSPECIFIED = 0, + LEGACY_DATAPATH = 1, + ADVANCED_DATAPATH = 2 + } + + /** NodePoolUpdateStrategy enum. */ + enum NodePoolUpdateStrategy { + NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0, + BLUE_GREEN = 2, + SURGE = 3 + } + + /** Properties of a ManagedPrometheusConfig. */ + interface IManagedPrometheusConfig { + + /** ManagedPrometheusConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a ManagedPrometheusConfig. */ + class ManagedPrometheusConfig implements IManagedPrometheusConfig { + + /** + * Constructs a new ManagedPrometheusConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IManagedPrometheusConfig); + + /** ManagedPrometheusConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new ManagedPrometheusConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ManagedPrometheusConfig instance + */ + public static create(properties?: google.container.v1.IManagedPrometheusConfig): google.container.v1.ManagedPrometheusConfig; + + /** + * Encodes the specified ManagedPrometheusConfig message. Does not implicitly {@link google.container.v1.ManagedPrometheusConfig.verify|verify} messages. + * @param message ManagedPrometheusConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IManagedPrometheusConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ManagedPrometheusConfig message, length delimited. Does not implicitly {@link google.container.v1.ManagedPrometheusConfig.verify|verify} messages. + * @param message ManagedPrometheusConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IManagedPrometheusConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ManagedPrometheusConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ManagedPrometheusConfig + * @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.ManagedPrometheusConfig; + + /** + * Decodes a ManagedPrometheusConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ManagedPrometheusConfig + * @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.ManagedPrometheusConfig; + + /** + * Verifies a ManagedPrometheusConfig 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 ManagedPrometheusConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ManagedPrometheusConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ManagedPrometheusConfig; + + /** + * Creates a plain object from a ManagedPrometheusConfig message. Also converts values to other types if specified. + * @param message ManagedPrometheusConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ManagedPrometheusConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ManagedPrometheusConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } } @@ -18729,6 +20208,102 @@ export namespace google { } } + /** Properties of a Duration. */ + interface IDuration { + + /** Duration seconds */ + seconds?: (number|Long|string|null); + + /** Duration nanos */ + nanos?: (number|null); + } + + /** Represents a Duration. */ + class Duration implements IDuration { + + /** + * Constructs a new Duration. + * @param [properties] Properties to set + */ + constructor(properties?: google.protobuf.IDuration); + + /** Duration seconds. */ + public seconds: (number|Long|string); + + /** Duration nanos. */ + public nanos: number; + + /** + * Creates a new Duration instance using the specified properties. + * @param [properties] Properties to set + * @returns Duration instance + */ + public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @param message Duration message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Duration + * @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.protobuf.Duration; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Duration + * @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.protobuf.Duration; + + /** + * Verifies a Duration 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 Duration message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Duration + */ + public static fromObject(object: { [k: string]: any }): google.protobuf.Duration; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @param message Duration + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.protobuf.Duration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Duration to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an Empty. */ interface IEmpty { } diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index fe7c4728972..3b49770770f 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -815,6 +815,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.container.v1.ClusterManager#completeNodePoolUpgrade}. + * @memberof google.container.v1.ClusterManager + * @typedef CompleteNodePoolUpgradeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CompleteNodePoolUpgrade. + * @function completeNodePoolUpgrade + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ICompleteNodePoolUpgradeRequest} request CompleteNodePoolUpgradeRequest message or plain object + * @param {google.container.v1.ClusterManager.CompleteNodePoolUpgradeCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ClusterManager.prototype.completeNodePoolUpgrade = function completeNodePoolUpgrade(request, callback) { + return this.rpcCall(completeNodePoolUpgrade, $root.google.container.v1.CompleteNodePoolUpgradeRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CompleteNodePoolUpgrade" }); + + /** + * Calls CompleteNodePoolUpgrade. + * @function completeNodePoolUpgrade + * @memberof google.container.v1.ClusterManager + * @instance + * @param {google.container.v1.ICompleteNodePoolUpgradeRequest} request CompleteNodePoolUpgradeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.container.v1.ClusterManager#rollbackNodePoolUpgrade}. * @memberof google.container.v1.ClusterManager @@ -1379,6 +1412,7 @@ * @property {string|null} [cpuManagerPolicy] NodeKubeletConfig cpuManagerPolicy * @property {google.protobuf.IBoolValue|null} [cpuCfsQuota] NodeKubeletConfig cpuCfsQuota * @property {string|null} [cpuCfsQuotaPeriod] NodeKubeletConfig cpuCfsQuotaPeriod + * @property {number|Long|null} [podPidsLimit] NodeKubeletConfig podPidsLimit */ /** @@ -1420,6 +1454,14 @@ */ NodeKubeletConfig.prototype.cpuCfsQuotaPeriod = ""; + /** + * NodeKubeletConfig podPidsLimit. + * @member {number|Long} podPidsLimit + * @memberof google.container.v1.NodeKubeletConfig + * @instance + */ + NodeKubeletConfig.prototype.podPidsLimit = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * Creates a new NodeKubeletConfig instance using the specified properties. * @function create @@ -1450,6 +1492,8 @@ $root.google.protobuf.BoolValue.encode(message.cpuCfsQuota, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); if (message.cpuCfsQuotaPeriod != null && Object.hasOwnProperty.call(message, "cpuCfsQuotaPeriod")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.cpuCfsQuotaPeriod); + if (message.podPidsLimit != null && Object.hasOwnProperty.call(message, "podPidsLimit")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.podPidsLimit); return writer; }; @@ -1493,6 +1537,9 @@ case 3: message.cpuCfsQuotaPeriod = reader.string(); break; + case 4: + message.podPidsLimit = reader.int64(); + break; default: reader.skipType(tag & 7); break; @@ -1539,6 +1586,9 @@ if (message.cpuCfsQuotaPeriod != null && message.hasOwnProperty("cpuCfsQuotaPeriod")) if (!$util.isString(message.cpuCfsQuotaPeriod)) return "cpuCfsQuotaPeriod: string expected"; + if (message.podPidsLimit != null && message.hasOwnProperty("podPidsLimit")) + if (!$util.isInteger(message.podPidsLimit) && !(message.podPidsLimit && $util.isInteger(message.podPidsLimit.low) && $util.isInteger(message.podPidsLimit.high))) + return "podPidsLimit: integer|Long expected"; return null; }; @@ -1563,6 +1613,15 @@ } if (object.cpuCfsQuotaPeriod != null) message.cpuCfsQuotaPeriod = String(object.cpuCfsQuotaPeriod); + if (object.podPidsLimit != null) + if ($util.Long) + (message.podPidsLimit = $util.Long.fromValue(object.podPidsLimit)).unsigned = false; + else if (typeof object.podPidsLimit === "string") + message.podPidsLimit = parseInt(object.podPidsLimit, 10); + else if (typeof object.podPidsLimit === "number") + message.podPidsLimit = object.podPidsLimit; + else if (typeof object.podPidsLimit === "object") + message.podPidsLimit = new $util.LongBits(object.podPidsLimit.low >>> 0, object.podPidsLimit.high >>> 0).toNumber(); return message; }; @@ -1583,6 +1642,11 @@ object.cpuManagerPolicy = ""; object.cpuCfsQuota = null; object.cpuCfsQuotaPeriod = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.podPidsLimit = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.podPidsLimit = options.longs === String ? "0" : 0; } if (message.cpuManagerPolicy != null && message.hasOwnProperty("cpuManagerPolicy")) object.cpuManagerPolicy = message.cpuManagerPolicy; @@ -1590,6 +1654,11 @@ object.cpuCfsQuota = $root.google.protobuf.BoolValue.toObject(message.cpuCfsQuota, options); if (message.cpuCfsQuotaPeriod != null && message.hasOwnProperty("cpuCfsQuotaPeriod")) object.cpuCfsQuotaPeriod = message.cpuCfsQuotaPeriod; + if (message.podPidsLimit != null && message.hasOwnProperty("podPidsLimit")) + if (typeof message.podPidsLimit === "number") + object.podPidsLimit = options.longs === String ? String(message.podPidsLimit) : message.podPidsLimit; + else + object.podPidsLimit = options.longs === String ? $util.Long.prototype.toString.call(message.podPidsLimit) : options.longs === Number ? new $util.LongBits(message.podPidsLimit.low >>> 0, message.podPidsLimit.high >>> 0).toNumber() : message.podPidsLimit; return object; }; @@ -1638,6 +1707,8 @@ * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] NodeConfig gcfsConfig * @property {google.container.v1.IAdvancedMachineFeatures|null} [advancedMachineFeatures] NodeConfig advancedMachineFeatures * @property {google.container.v1.IVirtualNIC|null} [gvnic] NodeConfig gvnic + * @property {boolean|null} [spot] NodeConfig spot + * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] NodeConfig confidentialNodes */ /** @@ -1861,6 +1932,22 @@ */ NodeConfig.prototype.gvnic = null; + /** + * NodeConfig spot. + * @member {boolean} spot + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.spot = false; + + /** + * NodeConfig confidentialNodes. + * @member {google.container.v1.IConfidentialNodes|null|undefined} confidentialNodes + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.confidentialNodes = null; + /** * Creates a new NodeConfig instance using the specified properties. * @function create @@ -1941,6 +2028,10 @@ $root.google.container.v1.AdvancedMachineFeatures.encode(message.advancedMachineFeatures, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); if (message.gvnic != null && Object.hasOwnProperty.call(message, "gvnic")) $root.google.container.v1.VirtualNIC.encode(message.gvnic, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); + if (message.spot != null && Object.hasOwnProperty.call(message, "spot")) + writer.uint32(/* id 32, wireType 0 =*/256).bool(message.spot); + if (message.confidentialNodes != null && Object.hasOwnProperty.call(message, "confidentialNodes")) + $root.google.container.v1.ConfidentialNodes.encode(message.confidentialNodes, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); return writer; }; @@ -2096,6 +2187,12 @@ case 29: message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); break; + case 32: + message.spot = reader.bool(); + break; + case 35: + message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -2254,6 +2351,14 @@ if (error) return "gvnic." + error; } + if (message.spot != null && message.hasOwnProperty("spot")) + if (typeof message.spot !== "boolean") + return "spot: boolean expected"; + if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) { + var error = $root.google.container.v1.ConfidentialNodes.verify(message.confidentialNodes); + if (error) + return "confidentialNodes." + error; + } return null; }; @@ -2382,6 +2487,13 @@ throw TypeError(".google.container.v1.NodeConfig.gvnic: object expected"); message.gvnic = $root.google.container.v1.VirtualNIC.fromObject(object.gvnic); } + if (object.spot != null) + message.spot = Boolean(object.spot); + if (object.confidentialNodes != null) { + if (typeof object.confidentialNodes !== "object") + throw TypeError(".google.container.v1.NodeConfig.confidentialNodes: object expected"); + message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.fromObject(object.confidentialNodes); + } return message; }; @@ -2428,6 +2540,8 @@ object.gcfsConfig = null; object.advancedMachineFeatures = null; object.gvnic = null; + object.spot = false; + object.confidentialNodes = null; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -2498,6 +2612,10 @@ object.advancedMachineFeatures = $root.google.container.v1.AdvancedMachineFeatures.toObject(message.advancedMachineFeatures, options); if (message.gvnic != null && message.hasOwnProperty("gvnic")) object.gvnic = $root.google.container.v1.VirtualNIC.toObject(message.gvnic, options); + if (message.spot != null && message.hasOwnProperty("spot")) + object.spot = message.spot; + if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) + object.confidentialNodes = $root.google.container.v1.ConfidentialNodes.toObject(message.confidentialNodes, options); return object; }; @@ -2739,6 +2857,7 @@ * @property {boolean|null} [createPodRange] NodeNetworkConfig createPodRange * @property {string|null} [podRange] NodeNetworkConfig podRange * @property {string|null} [podIpv4CidrBlock] NodeNetworkConfig podIpv4CidrBlock + * @property {google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig|null} [networkPerformanceConfig] NodeNetworkConfig networkPerformanceConfig */ /** @@ -2780,6 +2899,28 @@ */ NodeNetworkConfig.prototype.podIpv4CidrBlock = ""; + /** + * NodeNetworkConfig networkPerformanceConfig. + * @member {google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig|null|undefined} networkPerformanceConfig + * @memberof google.container.v1.NodeNetworkConfig + * @instance + */ + NodeNetworkConfig.prototype.networkPerformanceConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NodeNetworkConfig _networkPerformanceConfig. + * @member {"networkPerformanceConfig"|undefined} _networkPerformanceConfig + * @memberof google.container.v1.NodeNetworkConfig + * @instance + */ + Object.defineProperty(NodeNetworkConfig.prototype, "_networkPerformanceConfig", { + get: $util.oneOfGetter($oneOfFields = ["networkPerformanceConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new NodeNetworkConfig instance using the specified properties. * @function create @@ -2810,6 +2951,8 @@ writer.uint32(/* id 5, wireType 2 =*/42).string(message.podRange); if (message.podIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "podIpv4CidrBlock")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.podIpv4CidrBlock); + if (message.networkPerformanceConfig != null && Object.hasOwnProperty.call(message, "networkPerformanceConfig")) + $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.encode(message.networkPerformanceConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; @@ -2853,6 +2996,9 @@ case 6: message.podIpv4CidrBlock = reader.string(); break; + case 11: + message.networkPerformanceConfig = $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -2888,6 +3034,7 @@ NodeNetworkConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.createPodRange != null && message.hasOwnProperty("createPodRange")) if (typeof message.createPodRange !== "boolean") return "createPodRange: boolean expected"; @@ -2897,6 +3044,14 @@ if (message.podIpv4CidrBlock != null && message.hasOwnProperty("podIpv4CidrBlock")) if (!$util.isString(message.podIpv4CidrBlock)) return "podIpv4CidrBlock: string expected"; + if (message.networkPerformanceConfig != null && message.hasOwnProperty("networkPerformanceConfig")) { + properties._networkPerformanceConfig = 1; + { + var error = $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.verify(message.networkPerformanceConfig); + if (error) + return "networkPerformanceConfig." + error; + } + } return null; }; @@ -2918,6 +3073,11 @@ message.podRange = String(object.podRange); if (object.podIpv4CidrBlock != null) message.podIpv4CidrBlock = String(object.podIpv4CidrBlock); + if (object.networkPerformanceConfig != null) { + if (typeof object.networkPerformanceConfig !== "object") + throw TypeError(".google.container.v1.NodeNetworkConfig.networkPerformanceConfig: object expected"); + message.networkPerformanceConfig = $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.fromObject(object.networkPerformanceConfig); + } return message; }; @@ -2945,6 +3105,11 @@ object.podRange = message.podRange; if (message.podIpv4CidrBlock != null && message.hasOwnProperty("podIpv4CidrBlock")) object.podIpv4CidrBlock = message.podIpv4CidrBlock; + if (message.networkPerformanceConfig != null && message.hasOwnProperty("networkPerformanceConfig")) { + object.networkPerformanceConfig = $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.toObject(message.networkPerformanceConfig, options); + if (options.oneofs) + object._networkPerformanceConfig = "networkPerformanceConfig"; + } return object; }; @@ -2959,6 +3124,238 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + NodeNetworkConfig.NetworkPerformanceConfig = (function() { + + /** + * Properties of a NetworkPerformanceConfig. + * @memberof google.container.v1.NodeNetworkConfig + * @interface INetworkPerformanceConfig + * @property {google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier|null} [totalEgressBandwidthTier] NetworkPerformanceConfig totalEgressBandwidthTier + */ + + /** + * Constructs a new NetworkPerformanceConfig. + * @memberof google.container.v1.NodeNetworkConfig + * @classdesc Represents a NetworkPerformanceConfig. + * @implements INetworkPerformanceConfig + * @constructor + * @param {google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig=} [properties] Properties to set + */ + function NetworkPerformanceConfig(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]]; + } + + /** + * NetworkPerformanceConfig totalEgressBandwidthTier. + * @member {google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier|null|undefined} totalEgressBandwidthTier + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @instance + */ + NetworkPerformanceConfig.prototype.totalEgressBandwidthTier = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * NetworkPerformanceConfig _totalEgressBandwidthTier. + * @member {"totalEgressBandwidthTier"|undefined} _totalEgressBandwidthTier + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @instance + */ + Object.defineProperty(NetworkPerformanceConfig.prototype, "_totalEgressBandwidthTier", { + get: $util.oneOfGetter($oneOfFields = ["totalEgressBandwidthTier"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new NetworkPerformanceConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @static + * @param {google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig=} [properties] Properties to set + * @returns {google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig} NetworkPerformanceConfig instance + */ + NetworkPerformanceConfig.create = function create(properties) { + return new NetworkPerformanceConfig(properties); + }; + + /** + * Encodes the specified NetworkPerformanceConfig message. Does not implicitly {@link google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @static + * @param {google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig} message NetworkPerformanceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPerformanceConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.totalEgressBandwidthTier != null && Object.hasOwnProperty.call(message, "totalEgressBandwidthTier")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.totalEgressBandwidthTier); + return writer; + }; + + /** + * Encodes the specified NetworkPerformanceConfig message, length delimited. Does not implicitly {@link google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @static + * @param {google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig} message NetworkPerformanceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkPerformanceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkPerformanceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig} NetworkPerformanceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPerformanceConfig.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.NodeNetworkConfig.NetworkPerformanceConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.totalEgressBandwidthTier = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkPerformanceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig} NetworkPerformanceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkPerformanceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkPerformanceConfig message. + * @function verify + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkPerformanceConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.totalEgressBandwidthTier != null && message.hasOwnProperty("totalEgressBandwidthTier")) { + properties._totalEgressBandwidthTier = 1; + switch (message.totalEgressBandwidthTier) { + default: + return "totalEgressBandwidthTier: enum value expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a NetworkPerformanceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig} NetworkPerformanceConfig + */ + NetworkPerformanceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig) + return object; + var message = new $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig(); + switch (object.totalEgressBandwidthTier) { + case "TIER_UNSPECIFIED": + case 0: + message.totalEgressBandwidthTier = 0; + break; + case "TIER_1": + case 1: + message.totalEgressBandwidthTier = 1; + break; + } + return message; + }; + + /** + * Creates a plain object from a NetworkPerformanceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @static + * @param {google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig} message NetworkPerformanceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkPerformanceConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.totalEgressBandwidthTier != null && message.hasOwnProperty("totalEgressBandwidthTier")) { + object.totalEgressBandwidthTier = options.enums === String ? $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier[message.totalEgressBandwidthTier] : message.totalEgressBandwidthTier; + if (options.oneofs) + object._totalEgressBandwidthTier = "totalEgressBandwidthTier"; + } + return object; + }; + + /** + * Converts this NetworkPerformanceConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @instance + * @returns {Object.} JSON object + */ + NetworkPerformanceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Tier enum. + * @name google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier + * @enum {number} + * @property {number} TIER_UNSPECIFIED=0 TIER_UNSPECIFIED value + * @property {number} TIER_1=1 TIER_1 value + */ + NetworkPerformanceConfig.Tier = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TIER_UNSPECIFIED"] = 0; + values[valuesById[1] = "TIER_1"] = 1; + return values; + })(); + + return NetworkPerformanceConfig; + })(); + return NodeNetworkConfig; })(); @@ -4136,6 +4533,639 @@ return NodeTaint; })(); + v1.NodeTaints = (function() { + + /** + * Properties of a NodeTaints. + * @memberof google.container.v1 + * @interface INodeTaints + * @property {Array.|null} [taints] NodeTaints taints + */ + + /** + * Constructs a new NodeTaints. + * @memberof google.container.v1 + * @classdesc Represents a NodeTaints. + * @implements INodeTaints + * @constructor + * @param {google.container.v1.INodeTaints=} [properties] Properties to set + */ + function NodeTaints(properties) { + this.taints = []; + 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]]; + } + + /** + * NodeTaints taints. + * @member {Array.} taints + * @memberof google.container.v1.NodeTaints + * @instance + */ + NodeTaints.prototype.taints = $util.emptyArray; + + /** + * Creates a new NodeTaints instance using the specified properties. + * @function create + * @memberof google.container.v1.NodeTaints + * @static + * @param {google.container.v1.INodeTaints=} [properties] Properties to set + * @returns {google.container.v1.NodeTaints} NodeTaints instance + */ + NodeTaints.create = function create(properties) { + return new NodeTaints(properties); + }; + + /** + * Encodes the specified NodeTaints message. Does not implicitly {@link google.container.v1.NodeTaints.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodeTaints + * @static + * @param {google.container.v1.INodeTaints} message NodeTaints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeTaints.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + 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 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodeTaints message, length delimited. Does not implicitly {@link google.container.v1.NodeTaints.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodeTaints + * @static + * @param {google.container.v1.INodeTaints} message NodeTaints message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeTaints.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeTaints message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodeTaints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodeTaints} NodeTaints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeTaints.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.NodeTaints(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.taints && message.taints.length)) + message.taints = []; + message.taints.push($root.google.container.v1.NodeTaint.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeTaints message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodeTaints + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodeTaints} NodeTaints + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeTaints.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeTaints message. + * @function verify + * @memberof google.container.v1.NodeTaints + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeTaints.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.taints != null && message.hasOwnProperty("taints")) { + if (!Array.isArray(message.taints)) + return "taints: array expected"; + for (var i = 0; i < message.taints.length; ++i) { + var error = $root.google.container.v1.NodeTaint.verify(message.taints[i]); + if (error) + return "taints." + error; + } + } + return null; + }; + + /** + * Creates a NodeTaints message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodeTaints + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodeTaints} NodeTaints + */ + NodeTaints.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeTaints) + return object; + var message = new $root.google.container.v1.NodeTaints(); + if (object.taints) { + if (!Array.isArray(object.taints)) + throw TypeError(".google.container.v1.NodeTaints.taints: array expected"); + message.taints = []; + for (var i = 0; i < object.taints.length; ++i) { + if (typeof object.taints[i] !== "object") + throw TypeError(".google.container.v1.NodeTaints.taints: object expected"); + message.taints[i] = $root.google.container.v1.NodeTaint.fromObject(object.taints[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a NodeTaints message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodeTaints + * @static + * @param {google.container.v1.NodeTaints} message NodeTaints + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeTaints.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.taints = []; + 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); + } + return object; + }; + + /** + * Converts this NodeTaints to JSON. + * @function toJSON + * @memberof google.container.v1.NodeTaints + * @instance + * @returns {Object.} JSON object + */ + NodeTaints.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NodeTaints; + })(); + + v1.NodeLabels = (function() { + + /** + * Properties of a NodeLabels. + * @memberof google.container.v1 + * @interface INodeLabels + * @property {Object.|null} [labels] NodeLabels labels + */ + + /** + * Constructs a new NodeLabels. + * @memberof google.container.v1 + * @classdesc Represents a NodeLabels. + * @implements INodeLabels + * @constructor + * @param {google.container.v1.INodeLabels=} [properties] Properties to set + */ + function NodeLabels(properties) { + this.labels = {}; + 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]]; + } + + /** + * NodeLabels labels. + * @member {Object.} labels + * @memberof google.container.v1.NodeLabels + * @instance + */ + NodeLabels.prototype.labels = $util.emptyObject; + + /** + * Creates a new NodeLabels instance using the specified properties. + * @function create + * @memberof google.container.v1.NodeLabels + * @static + * @param {google.container.v1.INodeLabels=} [properties] Properties to set + * @returns {google.container.v1.NodeLabels} NodeLabels instance + */ + NodeLabels.create = function create(properties) { + return new NodeLabels(properties); + }; + + /** + * Encodes the specified NodeLabels message. Does not implicitly {@link google.container.v1.NodeLabels.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodeLabels + * @static + * @param {google.container.v1.INodeLabels} message NodeLabels message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeLabels.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodeLabels message, length delimited. Does not implicitly {@link google.container.v1.NodeLabels.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodeLabels + * @static + * @param {google.container.v1.INodeLabels} message NodeLabels message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodeLabels.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodeLabels message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodeLabels + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodeLabels} NodeLabels + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeLabels.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.NodeLabels(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (message.labels === $util.emptyObject) + message.labels = {}; + 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.labels[key] = value; + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodeLabels message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodeLabels + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodeLabels} NodeLabels + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodeLabels.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodeLabels message. + * @function verify + * @memberof google.container.v1.NodeLabels + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodeLabels.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a NodeLabels message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodeLabels + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodeLabels} NodeLabels + */ + NodeLabels.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodeLabels) + return object; + var message = new $root.google.container.v1.NodeLabels(); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.container.v1.NodeLabels.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a NodeLabels message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodeLabels + * @static + * @param {google.container.v1.NodeLabels} message NodeLabels + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodeLabels.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + return object; + }; + + /** + * Converts this NodeLabels to JSON. + * @function toJSON + * @memberof google.container.v1.NodeLabels + * @instance + * @returns {Object.} JSON object + */ + NodeLabels.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NodeLabels; + })(); + + v1.NetworkTags = (function() { + + /** + * Properties of a NetworkTags. + * @memberof google.container.v1 + * @interface INetworkTags + * @property {Array.|null} [tags] NetworkTags tags + */ + + /** + * Constructs a new NetworkTags. + * @memberof google.container.v1 + * @classdesc Represents a NetworkTags. + * @implements INetworkTags + * @constructor + * @param {google.container.v1.INetworkTags=} [properties] Properties to set + */ + function NetworkTags(properties) { + this.tags = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * NetworkTags tags. + * @member {Array.} tags + * @memberof google.container.v1.NetworkTags + * @instance + */ + NetworkTags.prototype.tags = $util.emptyArray; + + /** + * Creates a new NetworkTags instance using the specified properties. + * @function create + * @memberof google.container.v1.NetworkTags + * @static + * @param {google.container.v1.INetworkTags=} [properties] Properties to set + * @returns {google.container.v1.NetworkTags} NetworkTags instance + */ + NetworkTags.create = function create(properties) { + return new NetworkTags(properties); + }; + + /** + * Encodes the specified NetworkTags message. Does not implicitly {@link google.container.v1.NetworkTags.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NetworkTags + * @static + * @param {google.container.v1.INetworkTags} message NetworkTags message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkTags.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.tags != null && message.tags.length) + for (var i = 0; i < message.tags.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.tags[i]); + return writer; + }; + + /** + * Encodes the specified NetworkTags message, length delimited. Does not implicitly {@link google.container.v1.NetworkTags.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NetworkTags + * @static + * @param {google.container.v1.INetworkTags} message NetworkTags message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NetworkTags.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NetworkTags message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NetworkTags + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NetworkTags} NetworkTags + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkTags.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.NetworkTags(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NetworkTags message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NetworkTags + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NetworkTags} NetworkTags + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NetworkTags.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NetworkTags message. + * @function verify + * @memberof google.container.v1.NetworkTags + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NetworkTags.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.tags != null && message.hasOwnProperty("tags")) { + if (!Array.isArray(message.tags)) + return "tags: array expected"; + for (var i = 0; i < message.tags.length; ++i) + if (!$util.isString(message.tags[i])) + return "tags: string[] expected"; + } + return null; + }; + + /** + * Creates a NetworkTags message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NetworkTags + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NetworkTags} NetworkTags + */ + NetworkTags.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NetworkTags) + return object; + var message = new $root.google.container.v1.NetworkTags(); + if (object.tags) { + if (!Array.isArray(object.tags)) + throw TypeError(".google.container.v1.NetworkTags.tags: array expected"); + message.tags = []; + for (var i = 0; i < object.tags.length; ++i) + message.tags[i] = String(object.tags[i]); + } + return message; + }; + + /** + * Creates a plain object from a NetworkTags message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NetworkTags + * @static + * @param {google.container.v1.NetworkTags} message NetworkTags + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NetworkTags.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.tags = []; + if (message.tags && message.tags.length) { + object.tags = []; + for (var j = 0; j < message.tags.length; ++j) + object.tags[j] = message.tags[j]; + } + return object; + }; + + /** + * Converts this NetworkTags to JSON. + * @function toJSON + * @memberof google.container.v1.NetworkTags + * @instance + * @returns {Object.} JSON object + */ + NetworkTags.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NetworkTags; + })(); + v1.MasterAuth = (function() { /** @@ -8369,6 +9399,7 @@ * @memberof google.container.v1 * @interface IBinaryAuthorization * @property {boolean|null} [enabled] BinaryAuthorization enabled + * @property {google.container.v1.BinaryAuthorization.EvaluationMode|null} [evaluationMode] BinaryAuthorization evaluationMode */ /** @@ -8394,6 +9425,14 @@ */ BinaryAuthorization.prototype.enabled = false; + /** + * BinaryAuthorization evaluationMode. + * @member {google.container.v1.BinaryAuthorization.EvaluationMode} evaluationMode + * @memberof google.container.v1.BinaryAuthorization + * @instance + */ + BinaryAuthorization.prototype.evaluationMode = 0; + /** * Creates a new BinaryAuthorization instance using the specified properties. * @function create @@ -8420,6 +9459,8 @@ writer = $Writer.create(); if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.evaluationMode != null && Object.hasOwnProperty.call(message, "evaluationMode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.evaluationMode); return writer; }; @@ -8457,6 +9498,9 @@ case 1: message.enabled = reader.bool(); break; + case 2: + message.evaluationMode = reader.int32(); + break; default: reader.skipType(tag & 7); break; @@ -8495,6 +9539,15 @@ if (message.enabled != null && message.hasOwnProperty("enabled")) if (typeof message.enabled !== "boolean") return "enabled: boolean expected"; + if (message.evaluationMode != null && message.hasOwnProperty("evaluationMode")) + switch (message.evaluationMode) { + default: + return "evaluationMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -8512,6 +9565,20 @@ var message = new $root.google.container.v1.BinaryAuthorization(); if (object.enabled != null) message.enabled = Boolean(object.enabled); + switch (object.evaluationMode) { + case "EVALUATION_MODE_UNSPECIFIED": + case 0: + message.evaluationMode = 0; + break; + case "DISABLED": + case 1: + message.evaluationMode = 1; + break; + case "PROJECT_SINGLETON_POLICY_ENFORCE": + case 2: + message.evaluationMode = 2; + break; + } return message; }; @@ -8528,10 +9595,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.enabled = false; + object.evaluationMode = options.enums === String ? "EVALUATION_MODE_UNSPECIFIED" : 0; + } if (message.enabled != null && message.hasOwnProperty("enabled")) object.enabled = message.enabled; + if (message.evaluationMode != null && message.hasOwnProperty("evaluationMode")) + object.evaluationMode = options.enums === String ? $root.google.container.v1.BinaryAuthorization.EvaluationMode[message.evaluationMode] : message.evaluationMode; return object; }; @@ -8546,6 +9617,22 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * EvaluationMode enum. + * @name google.container.v1.BinaryAuthorization.EvaluationMode + * @enum {number} + * @property {number} EVALUATION_MODE_UNSPECIFIED=0 EVALUATION_MODE_UNSPECIFIED value + * @property {number} DISABLED=1 DISABLED value + * @property {number} PROJECT_SINGLETON_POLICY_ENFORCE=2 PROJECT_SINGLETON_POLICY_ENFORCE value + */ + BinaryAuthorization.EvaluationMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EVALUATION_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DISABLED"] = 1; + values[valuesById[2] = "PROJECT_SINGLETON_POLICY_ENFORCE"] = 2; + return values; + })(); + return BinaryAuthorization; })(); @@ -9043,6 +10130,7 @@ * @property {google.container.v1.IMeshCertificates|null} [meshCertificates] Cluster meshCertificates * @property {google.container.v1.INotificationConfig|null} [notificationConfig] Cluster notificationConfig * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] Cluster confidentialNodes + * @property {google.container.v1.IIdentityServiceConfig|null} [identityServiceConfig] Cluster identityServiceConfig * @property {string|null} [selfLink] Cluster selfLink * @property {string|null} [zone] Cluster zone * @property {string|null} [endpoint] Cluster endpoint @@ -9066,6 +10154,7 @@ * @property {google.container.v1.INodePoolDefaults|null} [nodePoolDefaults] Cluster nodePoolDefaults * @property {google.container.v1.ILoggingConfig|null} [loggingConfig] Cluster loggingConfig * @property {google.container.v1.IMonitoringConfig|null} [monitoringConfig] Cluster monitoringConfig + * @property {google.container.v1.INodePoolAutoConfig|null} [nodePoolAutoConfig] Cluster nodePoolAutoConfig */ /** @@ -9376,6 +10465,14 @@ */ Cluster.prototype.confidentialNodes = null; + /** + * Cluster identityServiceConfig. + * @member {google.container.v1.IIdentityServiceConfig|null|undefined} identityServiceConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.identityServiceConfig = null; + /** * Cluster selfLink. * @member {string} selfLink @@ -9560,6 +10657,14 @@ */ Cluster.prototype.monitoringConfig = null; + /** + * Cluster nodePoolAutoConfig. + * @member {google.container.v1.INodePoolAutoConfig|null|undefined} nodePoolAutoConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.nodePoolAutoConfig = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -9671,6 +10776,8 @@ $root.google.container.v1.NotificationConfig.encode(message.notificationConfig, writer.uint32(/* id 49, wireType 2 =*/394).fork()).ldelim(); if (message.confidentialNodes != null && Object.hasOwnProperty.call(message, "confidentialNodes")) $root.google.container.v1.ConfidentialNodes.encode(message.confidentialNodes, writer.uint32(/* id 50, wireType 2 =*/402).fork()).ldelim(); + if (message.identityServiceConfig != null && Object.hasOwnProperty.call(message, "identityServiceConfig")) + $root.google.container.v1.IdentityServiceConfig.encode(message.identityServiceConfig, writer.uint32(/* id 54, wireType 2 =*/434).fork()).ldelim(); if (message.meshCertificates != null && Object.hasOwnProperty.call(message, "meshCertificates")) $root.google.container.v1.MeshCertificates.encode(message.meshCertificates, writer.uint32(/* id 67, wireType 2 =*/538).fork()).ldelim(); if (message.selfLink != null && Object.hasOwnProperty.call(message, "selfLink")) @@ -9721,6 +10828,8 @@ $root.google.container.v1.LoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 132, wireType 2 =*/1058).fork()).ldelim(); if (message.monitoringConfig != null && Object.hasOwnProperty.call(message, "monitoringConfig")) $root.google.container.v1.MonitoringConfig.encode(message.monitoringConfig, writer.uint32(/* id 133, wireType 2 =*/1066).fork()).ldelim(); + if (message.nodePoolAutoConfig != null && Object.hasOwnProperty.call(message, "nodePoolAutoConfig")) + $root.google.container.v1.NodePoolAutoConfig.encode(message.nodePoolAutoConfig, writer.uint32(/* id 136, wireType 2 =*/1090).fork()).ldelim(); return writer; }; @@ -9886,6 +10995,9 @@ case 50: message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); break; + case 54: + message.identityServiceConfig = $root.google.container.v1.IdentityServiceConfig.decode(reader, reader.uint32()); + break; case 100: message.selfLink = reader.string(); break; @@ -9959,6 +11071,9 @@ case 133: message.monitoringConfig = $root.google.container.v1.MonitoringConfig.decode(reader, reader.uint32()); break; + case 136: + message.nodePoolAutoConfig = $root.google.container.v1.NodePoolAutoConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -10164,6 +11279,11 @@ if (error) return "confidentialNodes." + error; } + if (message.identityServiceConfig != null && message.hasOwnProperty("identityServiceConfig")) { + var error = $root.google.container.v1.IdentityServiceConfig.verify(message.identityServiceConfig); + if (error) + return "identityServiceConfig." + error; + } if (message.selfLink != null && message.hasOwnProperty("selfLink")) if (!$util.isString(message.selfLink)) return "selfLink: string expected"; @@ -10264,6 +11384,11 @@ if (error) return "monitoringConfig." + error; } + if (message.nodePoolAutoConfig != null && message.hasOwnProperty("nodePoolAutoConfig")) { + var error = $root.google.container.v1.NodePoolAutoConfig.verify(message.nodePoolAutoConfig); + if (error) + return "nodePoolAutoConfig." + error; + } return null; }; @@ -10438,6 +11563,11 @@ throw TypeError(".google.container.v1.Cluster.confidentialNodes: object expected"); message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.fromObject(object.confidentialNodes); } + if (object.identityServiceConfig != null) { + if (typeof object.identityServiceConfig !== "object") + throw TypeError(".google.container.v1.Cluster.identityServiceConfig: object expected"); + message.identityServiceConfig = $root.google.container.v1.IdentityServiceConfig.fromObject(object.identityServiceConfig); + } if (object.selfLink != null) message.selfLink = String(object.selfLink); if (object.zone != null) @@ -10537,6 +11667,11 @@ throw TypeError(".google.container.v1.Cluster.monitoringConfig: object expected"); message.monitoringConfig = $root.google.container.v1.MonitoringConfig.fromObject(object.monitoringConfig); } + if (object.nodePoolAutoConfig != null) { + if (typeof object.nodePoolAutoConfig !== "object") + throw TypeError(".google.container.v1.Cluster.nodePoolAutoConfig: object expected"); + message.nodePoolAutoConfig = $root.google.container.v1.NodePoolAutoConfig.fromObject(object.nodePoolAutoConfig); + } return message; }; @@ -10594,6 +11729,7 @@ object.workloadIdentityConfig = null; object.notificationConfig = null; object.confidentialNodes = null; + object.identityServiceConfig = null; object.meshCertificates = null; object.selfLink = ""; object.zone = ""; @@ -10615,6 +11751,7 @@ object.id = ""; object.loggingConfig = null; object.monitoringConfig = null; + object.nodePoolAutoConfig = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -10696,6 +11833,8 @@ object.notificationConfig = $root.google.container.v1.NotificationConfig.toObject(message.notificationConfig, options); if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) object.confidentialNodes = $root.google.container.v1.ConfidentialNodes.toObject(message.confidentialNodes, options); + if (message.identityServiceConfig != null && message.hasOwnProperty("identityServiceConfig")) + object.identityServiceConfig = $root.google.container.v1.IdentityServiceConfig.toObject(message.identityServiceConfig, options); if (message.meshCertificates != null && message.hasOwnProperty("meshCertificates")) object.meshCertificates = $root.google.container.v1.MeshCertificates.toObject(message.meshCertificates, options); if (message.selfLink != null && message.hasOwnProperty("selfLink")) @@ -10753,6 +11892,8 @@ object.loggingConfig = $root.google.container.v1.LoggingConfig.toObject(message.loggingConfig, options); if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) object.monitoringConfig = $root.google.container.v1.MonitoringConfig.toObject(message.monitoringConfig, options); + if (message.nodePoolAutoConfig != null && message.hasOwnProperty("nodePoolAutoConfig")) + object.nodePoolAutoConfig = $root.google.container.v1.NodePoolAutoConfig.toObject(message.nodePoolAutoConfig, options); return object; }; @@ -10794,6 +11935,198 @@ return Cluster; })(); + v1.NodePoolAutoConfig = (function() { + + /** + * Properties of a NodePoolAutoConfig. + * @memberof google.container.v1 + * @interface INodePoolAutoConfig + * @property {google.container.v1.INetworkTags|null} [networkTags] NodePoolAutoConfig networkTags + */ + + /** + * Constructs a new NodePoolAutoConfig. + * @memberof google.container.v1 + * @classdesc Represents a NodePoolAutoConfig. + * @implements INodePoolAutoConfig + * @constructor + * @param {google.container.v1.INodePoolAutoConfig=} [properties] Properties to set + */ + function NodePoolAutoConfig(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]]; + } + + /** + * NodePoolAutoConfig networkTags. + * @member {google.container.v1.INetworkTags|null|undefined} networkTags + * @memberof google.container.v1.NodePoolAutoConfig + * @instance + */ + NodePoolAutoConfig.prototype.networkTags = null; + + /** + * Creates a new NodePoolAutoConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {google.container.v1.INodePoolAutoConfig=} [properties] Properties to set + * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig instance + */ + NodePoolAutoConfig.create = function create(properties) { + return new NodePoolAutoConfig(properties); + }; + + /** + * Encodes the specified NodePoolAutoConfig message. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {google.container.v1.INodePoolAutoConfig} message NodePoolAutoConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolAutoConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.networkTags != null && Object.hasOwnProperty.call(message, "networkTags")) + $root.google.container.v1.NetworkTags.encode(message.networkTags, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodePoolAutoConfig message, length delimited. Does not implicitly {@link google.container.v1.NodePoolAutoConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {google.container.v1.INodePoolAutoConfig} message NodePoolAutoConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolAutoConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodePoolAutoConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolAutoConfig.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.NodePoolAutoConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.networkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodePoolAutoConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolAutoConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodePoolAutoConfig message. + * @function verify + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodePoolAutoConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.networkTags != null && message.hasOwnProperty("networkTags")) { + var error = $root.google.container.v1.NetworkTags.verify(message.networkTags); + if (error) + return "networkTags." + error; + } + return null; + }; + + /** + * Creates a NodePoolAutoConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePoolAutoConfig} NodePoolAutoConfig + */ + NodePoolAutoConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePoolAutoConfig) + return object; + var message = new $root.google.container.v1.NodePoolAutoConfig(); + if (object.networkTags != null) { + if (typeof object.networkTags !== "object") + throw TypeError(".google.container.v1.NodePoolAutoConfig.networkTags: object expected"); + message.networkTags = $root.google.container.v1.NetworkTags.fromObject(object.networkTags); + } + return message; + }; + + /** + * Creates a plain object from a NodePoolAutoConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {google.container.v1.NodePoolAutoConfig} message NodePoolAutoConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodePoolAutoConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.networkTags = null; + if (message.networkTags != null && message.hasOwnProperty("networkTags")) + object.networkTags = $root.google.container.v1.NetworkTags.toObject(message.networkTags, options); + return object; + }; + + /** + * Converts this NodePoolAutoConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NodePoolAutoConfig + * @instance + * @returns {Object.} JSON object + */ + NodePoolAutoConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return NodePoolAutoConfig; + })(); + v1.NodePoolDefaults = (function() { /** @@ -11213,9 +12546,11 @@ * @property {google.container.v1.IAuthenticatorGroupsConfig|null} [desiredAuthenticatorGroupsConfig] ClusterUpdate desiredAuthenticatorGroupsConfig * @property {google.container.v1.ILoggingConfig|null} [desiredLoggingConfig] ClusterUpdate desiredLoggingConfig * @property {google.container.v1.IMonitoringConfig|null} [desiredMonitoringConfig] ClusterUpdate desiredMonitoringConfig + * @property {google.container.v1.IIdentityServiceConfig|null} [desiredIdentityServiceConfig] ClusterUpdate desiredIdentityServiceConfig * @property {google.container.v1.IServiceExternalIPsConfig|null} [desiredServiceExternalIpsConfig] ClusterUpdate desiredServiceExternalIpsConfig * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion * @property {google.container.v1.IGcfsConfig|null} [desiredGcfsConfig] ClusterUpdate desiredGcfsConfig + * @property {google.container.v1.INetworkTags|null} [desiredNodePoolAutoConfigNetworkTags] ClusterUpdate desiredNodePoolAutoConfigNetworkTags */ /** @@ -11466,6 +12801,14 @@ */ ClusterUpdate.prototype.desiredMonitoringConfig = null; + /** + * ClusterUpdate desiredIdentityServiceConfig. + * @member {google.container.v1.IIdentityServiceConfig|null|undefined} desiredIdentityServiceConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredIdentityServiceConfig = null; + /** * ClusterUpdate desiredServiceExternalIpsConfig. * @member {google.container.v1.IServiceExternalIPsConfig|null|undefined} desiredServiceExternalIpsConfig @@ -11490,6 +12833,14 @@ */ ClusterUpdate.prototype.desiredGcfsConfig = null; + /** + * ClusterUpdate desiredNodePoolAutoConfigNetworkTags. + * @member {google.container.v1.INetworkTags|null|undefined} desiredNodePoolAutoConfigNetworkTags + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredNodePoolAutoConfigNetworkTags = null; + /** * Creates a new ClusterUpdate instance using the specified properties. * @function create @@ -11573,12 +12924,16 @@ $root.google.container.v1.LoggingConfig.encode(message.desiredLoggingConfig, writer.uint32(/* id 64, wireType 2 =*/514).fork()).ldelim(); if (message.desiredMonitoringConfig != null && Object.hasOwnProperty.call(message, "desiredMonitoringConfig")) $root.google.container.v1.MonitoringConfig.encode(message.desiredMonitoringConfig, writer.uint32(/* id 65, wireType 2 =*/522).fork()).ldelim(); + if (message.desiredIdentityServiceConfig != null && Object.hasOwnProperty.call(message, "desiredIdentityServiceConfig")) + $root.google.container.v1.IdentityServiceConfig.encode(message.desiredIdentityServiceConfig, writer.uint32(/* id 66, wireType 2 =*/530).fork()).ldelim(); if (message.desiredMeshCertificates != null && Object.hasOwnProperty.call(message, "desiredMeshCertificates")) $root.google.container.v1.MeshCertificates.encode(message.desiredMeshCertificates, writer.uint32(/* id 67, wireType 2 =*/538).fork()).ldelim(); if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); if (message.desiredGcfsConfig != null && Object.hasOwnProperty.call(message, "desiredGcfsConfig")) $root.google.container.v1.GcfsConfig.encode(message.desiredGcfsConfig, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); + if (message.desiredNodePoolAutoConfigNetworkTags != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoConfigNetworkTags")) + $root.google.container.v1.NetworkTags.encode(message.desiredNodePoolAutoConfigNetworkTags, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); return writer; }; @@ -11702,6 +13057,9 @@ case 65: message.desiredMonitoringConfig = $root.google.container.v1.MonitoringConfig.decode(reader, reader.uint32()); break; + case 66: + message.desiredIdentityServiceConfig = $root.google.container.v1.IdentityServiceConfig.decode(reader, reader.uint32()); + break; case 60: message.desiredServiceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.decode(reader, reader.uint32()); break; @@ -11711,6 +13069,9 @@ case 109: message.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); break; + case 110: + message.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -11892,6 +13253,11 @@ if (error) return "desiredMonitoringConfig." + error; } + if (message.desiredIdentityServiceConfig != null && message.hasOwnProperty("desiredIdentityServiceConfig")) { + var error = $root.google.container.v1.IdentityServiceConfig.verify(message.desiredIdentityServiceConfig); + if (error) + return "desiredIdentityServiceConfig." + error; + } if (message.desiredServiceExternalIpsConfig != null && message.hasOwnProperty("desiredServiceExternalIpsConfig")) { var error = $root.google.container.v1.ServiceExternalIPsConfig.verify(message.desiredServiceExternalIpsConfig); if (error) @@ -11905,6 +13271,11 @@ if (error) return "desiredGcfsConfig." + error; } + if (message.desiredNodePoolAutoConfigNetworkTags != null && message.hasOwnProperty("desiredNodePoolAutoConfigNetworkTags")) { + var error = $root.google.container.v1.NetworkTags.verify(message.desiredNodePoolAutoConfigNetworkTags); + if (error) + return "desiredNodePoolAutoConfigNetworkTags." + error; + } return null; }; @@ -12074,6 +13445,11 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredMonitoringConfig: object expected"); message.desiredMonitoringConfig = $root.google.container.v1.MonitoringConfig.fromObject(object.desiredMonitoringConfig); } + if (object.desiredIdentityServiceConfig != null) { + if (typeof object.desiredIdentityServiceConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredIdentityServiceConfig: object expected"); + message.desiredIdentityServiceConfig = $root.google.container.v1.IdentityServiceConfig.fromObject(object.desiredIdentityServiceConfig); + } if (object.desiredServiceExternalIpsConfig != null) { if (typeof object.desiredServiceExternalIpsConfig !== "object") throw TypeError(".google.container.v1.ClusterUpdate.desiredServiceExternalIpsConfig: object expected"); @@ -12086,6 +13462,11 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredGcfsConfig: object expected"); message.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.fromObject(object.desiredGcfsConfig); } + if (object.desiredNodePoolAutoConfigNetworkTags != null) { + if (typeof object.desiredNodePoolAutoConfigNetworkTags !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoConfigNetworkTags: object expected"); + message.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.fromObject(object.desiredNodePoolAutoConfigNetworkTags); + } return message; }; @@ -12133,9 +13514,11 @@ object.desiredAuthenticatorGroupsConfig = null; object.desiredLoggingConfig = null; object.desiredMonitoringConfig = null; + object.desiredIdentityServiceConfig = null; object.desiredMeshCertificates = null; object.desiredMasterVersion = ""; object.desiredGcfsConfig = null; + object.desiredNodePoolAutoConfigNetworkTags = null; } if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) object.desiredNodeVersion = message.desiredNodeVersion; @@ -12198,12 +13581,16 @@ object.desiredLoggingConfig = $root.google.container.v1.LoggingConfig.toObject(message.desiredLoggingConfig, options); if (message.desiredMonitoringConfig != null && message.hasOwnProperty("desiredMonitoringConfig")) object.desiredMonitoringConfig = $root.google.container.v1.MonitoringConfig.toObject(message.desiredMonitoringConfig, options); + if (message.desiredIdentityServiceConfig != null && message.hasOwnProperty("desiredIdentityServiceConfig")) + object.desiredIdentityServiceConfig = $root.google.container.v1.IdentityServiceConfig.toObject(message.desiredIdentityServiceConfig, options); if (message.desiredMeshCertificates != null && message.hasOwnProperty("desiredMeshCertificates")) object.desiredMeshCertificates = $root.google.container.v1.MeshCertificates.toObject(message.desiredMeshCertificates, options); if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) object.desiredMasterVersion = message.desiredMasterVersion; if (message.desiredGcfsConfig != null && message.hasOwnProperty("desiredGcfsConfig")) object.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.desiredGcfsConfig, options); + if (message.desiredNodePoolAutoConfigNetworkTags != null && message.hasOwnProperty("desiredNodePoolAutoConfigNetworkTags")) + object.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.toObject(message.desiredNodePoolAutoConfigNetworkTags, options); return object; }; @@ -14381,9 +15768,14 @@ * @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 + * @property {google.container.v1.INetworkTags|null} [tags] UpdateNodePoolRequest tags + * @property {google.container.v1.INodeTaints|null} [taints] UpdateNodePoolRequest taints + * @property {google.container.v1.INodeLabels|null} [labels] UpdateNodePoolRequest labels * @property {google.container.v1.ILinuxNodeConfig|null} [linuxNodeConfig] UpdateNodePoolRequest linuxNodeConfig * @property {google.container.v1.INodeKubeletConfig|null} [kubeletConfig] UpdateNodePoolRequest kubeletConfig + * @property {google.container.v1.INodeNetworkConfig|null} [nodeNetworkConfig] UpdateNodePoolRequest nodeNetworkConfig * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] UpdateNodePoolRequest gcfsConfig + * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] UpdateNodePoolRequest confidentialNodes * @property {google.container.v1.IVirtualNIC|null} [gvnic] UpdateNodePoolRequest gvnic */ @@ -14483,6 +15875,30 @@ */ UpdateNodePoolRequest.prototype.upgradeSettings = null; + /** + * UpdateNodePoolRequest tags. + * @member {google.container.v1.INetworkTags|null|undefined} tags + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.tags = null; + + /** + * UpdateNodePoolRequest taints. + * @member {google.container.v1.INodeTaints|null|undefined} taints + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.taints = null; + + /** + * UpdateNodePoolRequest labels. + * @member {google.container.v1.INodeLabels|null|undefined} labels + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.labels = null; + /** * UpdateNodePoolRequest linuxNodeConfig. * @member {google.container.v1.ILinuxNodeConfig|null|undefined} linuxNodeConfig @@ -14499,6 +15915,14 @@ */ UpdateNodePoolRequest.prototype.kubeletConfig = null; + /** + * UpdateNodePoolRequest nodeNetworkConfig. + * @member {google.container.v1.INodeNetworkConfig|null|undefined} nodeNetworkConfig + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.nodeNetworkConfig = null; + /** * UpdateNodePoolRequest gcfsConfig. * @member {google.container.v1.IGcfsConfig|null|undefined} gcfsConfig @@ -14507,6 +15931,14 @@ */ UpdateNodePoolRequest.prototype.gcfsConfig = null; + /** + * UpdateNodePoolRequest confidentialNodes. + * @member {google.container.v1.IConfidentialNodes|null|undefined} confidentialNodes + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.confidentialNodes = null; + /** * UpdateNodePoolRequest gvnic. * @member {google.container.v1.IVirtualNIC|null|undefined} gvnic @@ -14560,12 +15992,22 @@ $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(); + if (message.tags != null && Object.hasOwnProperty.call(message, "tags")) + $root.google.container.v1.NetworkTags.encode(message.tags, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (message.taints != null && Object.hasOwnProperty.call(message, "taints")) + $root.google.container.v1.NodeTaints.encode(message.taints, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + $root.google.container.v1.NodeLabels.encode(message.labels, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); if (message.linuxNodeConfig != null && Object.hasOwnProperty.call(message, "linuxNodeConfig")) $root.google.container.v1.LinuxNodeConfig.encode(message.linuxNodeConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); if (message.kubeletConfig != null && Object.hasOwnProperty.call(message, "kubeletConfig")) $root.google.container.v1.NodeKubeletConfig.encode(message.kubeletConfig, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.nodeNetworkConfig != null && Object.hasOwnProperty.call(message, "nodeNetworkConfig")) + $root.google.container.v1.NodeNetworkConfig.encode(message.nodeNetworkConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); if (message.gcfsConfig != null && Object.hasOwnProperty.call(message, "gcfsConfig")) $root.google.container.v1.GcfsConfig.encode(message.gcfsConfig, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + if (message.confidentialNodes != null && Object.hasOwnProperty.call(message, "confidentialNodes")) + $root.google.container.v1.ConfidentialNodes.encode(message.confidentialNodes, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.gvnic != null && Object.hasOwnProperty.call(message, "gvnic")) $root.google.container.v1.VirtualNIC.encode(message.gvnic, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); return writer; @@ -14634,15 +16076,30 @@ case 15: message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); break; + case 16: + message.tags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); + break; + case 17: + message.taints = $root.google.container.v1.NodeTaints.decode(reader, reader.uint32()); + break; + case 18: + message.labels = $root.google.container.v1.NodeLabels.decode(reader, reader.uint32()); + break; case 19: message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.decode(reader, reader.uint32()); break; case 20: message.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); break; + case 21: + message.nodeNetworkConfig = $root.google.container.v1.NodeNetworkConfig.decode(reader, reader.uint32()); + break; case 22: message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); break; + case 23: + message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); + break; case 29: message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); break; @@ -14719,6 +16176,21 @@ if (error) return "upgradeSettings." + error; } + if (message.tags != null && message.hasOwnProperty("tags")) { + var error = $root.google.container.v1.NetworkTags.verify(message.tags); + if (error) + return "tags." + error; + } + if (message.taints != null && message.hasOwnProperty("taints")) { + var error = $root.google.container.v1.NodeTaints.verify(message.taints); + if (error) + return "taints." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + var error = $root.google.container.v1.NodeLabels.verify(message.labels); + if (error) + return "labels." + error; + } if (message.linuxNodeConfig != null && message.hasOwnProperty("linuxNodeConfig")) { var error = $root.google.container.v1.LinuxNodeConfig.verify(message.linuxNodeConfig); if (error) @@ -14729,11 +16201,21 @@ if (error) return "kubeletConfig." + error; } + if (message.nodeNetworkConfig != null && message.hasOwnProperty("nodeNetworkConfig")) { + var error = $root.google.container.v1.NodeNetworkConfig.verify(message.nodeNetworkConfig); + if (error) + return "nodeNetworkConfig." + error; + } if (message.gcfsConfig != null && message.hasOwnProperty("gcfsConfig")) { var error = $root.google.container.v1.GcfsConfig.verify(message.gcfsConfig); if (error) return "gcfsConfig." + error; } + if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) { + var error = $root.google.container.v1.ConfidentialNodes.verify(message.confidentialNodes); + if (error) + return "confidentialNodes." + error; + } if (message.gvnic != null && message.hasOwnProperty("gvnic")) { var error = $root.google.container.v1.VirtualNIC.verify(message.gvnic); if (error) @@ -14785,6 +16267,21 @@ throw TypeError(".google.container.v1.UpdateNodePoolRequest.upgradeSettings: object expected"); message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.fromObject(object.upgradeSettings); } + if (object.tags != null) { + if (typeof object.tags !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.tags: object expected"); + message.tags = $root.google.container.v1.NetworkTags.fromObject(object.tags); + } + if (object.taints != null) { + if (typeof object.taints !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.taints: object expected"); + message.taints = $root.google.container.v1.NodeTaints.fromObject(object.taints); + } + if (object.labels != null) { + if (typeof object.labels !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.labels: object expected"); + message.labels = $root.google.container.v1.NodeLabels.fromObject(object.labels); + } if (object.linuxNodeConfig != null) { if (typeof object.linuxNodeConfig !== "object") throw TypeError(".google.container.v1.UpdateNodePoolRequest.linuxNodeConfig: object expected"); @@ -14795,11 +16292,21 @@ throw TypeError(".google.container.v1.UpdateNodePoolRequest.kubeletConfig: object expected"); message.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.fromObject(object.kubeletConfig); } + if (object.nodeNetworkConfig != null) { + if (typeof object.nodeNetworkConfig !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.nodeNetworkConfig: object expected"); + message.nodeNetworkConfig = $root.google.container.v1.NodeNetworkConfig.fromObject(object.nodeNetworkConfig); + } if (object.gcfsConfig != null) { if (typeof object.gcfsConfig !== "object") throw TypeError(".google.container.v1.UpdateNodePoolRequest.gcfsConfig: object expected"); message.gcfsConfig = $root.google.container.v1.GcfsConfig.fromObject(object.gcfsConfig); } + if (object.confidentialNodes != null) { + if (typeof object.confidentialNodes !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.confidentialNodes: object expected"); + message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.fromObject(object.confidentialNodes); + } if (object.gvnic != null) { if (typeof object.gvnic !== "object") throw TypeError(".google.container.v1.UpdateNodePoolRequest.gvnic: object expected"); @@ -14833,9 +16340,14 @@ object.name = ""; object.workloadMetadataConfig = null; object.upgradeSettings = null; + object.tags = null; + object.taints = null; + object.labels = null; object.linuxNodeConfig = null; object.kubeletConfig = null; + object.nodeNetworkConfig = null; object.gcfsConfig = null; + object.confidentialNodes = null; object.gvnic = null; } if (message.projectId != null && message.hasOwnProperty("projectId")) @@ -14861,12 +16373,22 @@ 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); + if (message.tags != null && message.hasOwnProperty("tags")) + object.tags = $root.google.container.v1.NetworkTags.toObject(message.tags, options); + if (message.taints != null && message.hasOwnProperty("taints")) + object.taints = $root.google.container.v1.NodeTaints.toObject(message.taints, options); + if (message.labels != null && message.hasOwnProperty("labels")) + object.labels = $root.google.container.v1.NodeLabels.toObject(message.labels, options); if (message.linuxNodeConfig != null && message.hasOwnProperty("linuxNodeConfig")) object.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.toObject(message.linuxNodeConfig, options); if (message.kubeletConfig != null && message.hasOwnProperty("kubeletConfig")) object.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.toObject(message.kubeletConfig, options); + if (message.nodeNetworkConfig != null && message.hasOwnProperty("nodeNetworkConfig")) + object.nodeNetworkConfig = $root.google.container.v1.NodeNetworkConfig.toObject(message.nodeNetworkConfig, options); if (message.gcfsConfig != null && message.hasOwnProperty("gcfsConfig")) object.gcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.gcfsConfig, options); + if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) + object.confidentialNodes = $root.google.container.v1.ConfidentialNodes.toObject(message.confidentialNodes, options); if (message.gvnic != null && message.hasOwnProperty("gvnic")) object.gvnic = $root.google.container.v1.VirtualNIC.toObject(message.gvnic, options); return object; @@ -20615,6 +22137,536 @@ return GetNodePoolRequest; })(); + v1.BlueGreenSettings = (function() { + + /** + * Properties of a BlueGreenSettings. + * @memberof google.container.v1 + * @interface IBlueGreenSettings + * @property {google.container.v1.BlueGreenSettings.IStandardRolloutPolicy|null} [standardRolloutPolicy] BlueGreenSettings standardRolloutPolicy + * @property {google.protobuf.IDuration|null} [nodePoolSoakDuration] BlueGreenSettings nodePoolSoakDuration + */ + + /** + * Constructs a new BlueGreenSettings. + * @memberof google.container.v1 + * @classdesc Represents a BlueGreenSettings. + * @implements IBlueGreenSettings + * @constructor + * @param {google.container.v1.IBlueGreenSettings=} [properties] Properties to set + */ + function BlueGreenSettings(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]]; + } + + /** + * BlueGreenSettings standardRolloutPolicy. + * @member {google.container.v1.BlueGreenSettings.IStandardRolloutPolicy|null|undefined} standardRolloutPolicy + * @memberof google.container.v1.BlueGreenSettings + * @instance + */ + BlueGreenSettings.prototype.standardRolloutPolicy = null; + + /** + * BlueGreenSettings nodePoolSoakDuration. + * @member {google.protobuf.IDuration|null|undefined} nodePoolSoakDuration + * @memberof google.container.v1.BlueGreenSettings + * @instance + */ + BlueGreenSettings.prototype.nodePoolSoakDuration = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * BlueGreenSettings rolloutPolicy. + * @member {"standardRolloutPolicy"|undefined} rolloutPolicy + * @memberof google.container.v1.BlueGreenSettings + * @instance + */ + Object.defineProperty(BlueGreenSettings.prototype, "rolloutPolicy", { + get: $util.oneOfGetter($oneOfFields = ["standardRolloutPolicy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * BlueGreenSettings _nodePoolSoakDuration. + * @member {"nodePoolSoakDuration"|undefined} _nodePoolSoakDuration + * @memberof google.container.v1.BlueGreenSettings + * @instance + */ + Object.defineProperty(BlueGreenSettings.prototype, "_nodePoolSoakDuration", { + get: $util.oneOfGetter($oneOfFields = ["nodePoolSoakDuration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BlueGreenSettings instance using the specified properties. + * @function create + * @memberof google.container.v1.BlueGreenSettings + * @static + * @param {google.container.v1.IBlueGreenSettings=} [properties] Properties to set + * @returns {google.container.v1.BlueGreenSettings} BlueGreenSettings instance + */ + BlueGreenSettings.create = function create(properties) { + return new BlueGreenSettings(properties); + }; + + /** + * Encodes the specified BlueGreenSettings message. Does not implicitly {@link google.container.v1.BlueGreenSettings.verify|verify} messages. + * @function encode + * @memberof google.container.v1.BlueGreenSettings + * @static + * @param {google.container.v1.IBlueGreenSettings} message BlueGreenSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlueGreenSettings.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.standardRolloutPolicy != null && Object.hasOwnProperty.call(message, "standardRolloutPolicy")) + $root.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.encode(message.standardRolloutPolicy, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nodePoolSoakDuration != null && Object.hasOwnProperty.call(message, "nodePoolSoakDuration")) + $root.google.protobuf.Duration.encode(message.nodePoolSoakDuration, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BlueGreenSettings message, length delimited. Does not implicitly {@link google.container.v1.BlueGreenSettings.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.BlueGreenSettings + * @static + * @param {google.container.v1.IBlueGreenSettings} message BlueGreenSettings message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlueGreenSettings.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BlueGreenSettings message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.BlueGreenSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.BlueGreenSettings} BlueGreenSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlueGreenSettings.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.BlueGreenSettings(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.standardRolloutPolicy = $root.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.decode(reader, reader.uint32()); + break; + case 2: + message.nodePoolSoakDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BlueGreenSettings message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.BlueGreenSettings + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.BlueGreenSettings} BlueGreenSettings + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlueGreenSettings.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BlueGreenSettings message. + * @function verify + * @memberof google.container.v1.BlueGreenSettings + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BlueGreenSettings.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.standardRolloutPolicy != null && message.hasOwnProperty("standardRolloutPolicy")) { + properties.rolloutPolicy = 1; + { + var error = $root.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.verify(message.standardRolloutPolicy); + if (error) + return "standardRolloutPolicy." + error; + } + } + if (message.nodePoolSoakDuration != null && message.hasOwnProperty("nodePoolSoakDuration")) { + properties._nodePoolSoakDuration = 1; + { + var error = $root.google.protobuf.Duration.verify(message.nodePoolSoakDuration); + if (error) + return "nodePoolSoakDuration." + error; + } + } + return null; + }; + + /** + * Creates a BlueGreenSettings message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.BlueGreenSettings + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.BlueGreenSettings} BlueGreenSettings + */ + BlueGreenSettings.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.BlueGreenSettings) + return object; + var message = new $root.google.container.v1.BlueGreenSettings(); + if (object.standardRolloutPolicy != null) { + if (typeof object.standardRolloutPolicy !== "object") + throw TypeError(".google.container.v1.BlueGreenSettings.standardRolloutPolicy: object expected"); + message.standardRolloutPolicy = $root.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.fromObject(object.standardRolloutPolicy); + } + if (object.nodePoolSoakDuration != null) { + if (typeof object.nodePoolSoakDuration !== "object") + throw TypeError(".google.container.v1.BlueGreenSettings.nodePoolSoakDuration: object expected"); + message.nodePoolSoakDuration = $root.google.protobuf.Duration.fromObject(object.nodePoolSoakDuration); + } + return message; + }; + + /** + * Creates a plain object from a BlueGreenSettings message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.BlueGreenSettings + * @static + * @param {google.container.v1.BlueGreenSettings} message BlueGreenSettings + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BlueGreenSettings.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.standardRolloutPolicy != null && message.hasOwnProperty("standardRolloutPolicy")) { + object.standardRolloutPolicy = $root.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.toObject(message.standardRolloutPolicy, options); + if (options.oneofs) + object.rolloutPolicy = "standardRolloutPolicy"; + } + if (message.nodePoolSoakDuration != null && message.hasOwnProperty("nodePoolSoakDuration")) { + object.nodePoolSoakDuration = $root.google.protobuf.Duration.toObject(message.nodePoolSoakDuration, options); + if (options.oneofs) + object._nodePoolSoakDuration = "nodePoolSoakDuration"; + } + return object; + }; + + /** + * Converts this BlueGreenSettings to JSON. + * @function toJSON + * @memberof google.container.v1.BlueGreenSettings + * @instance + * @returns {Object.} JSON object + */ + BlueGreenSettings.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + BlueGreenSettings.StandardRolloutPolicy = (function() { + + /** + * Properties of a StandardRolloutPolicy. + * @memberof google.container.v1.BlueGreenSettings + * @interface IStandardRolloutPolicy + * @property {number|null} [batchPercentage] StandardRolloutPolicy batchPercentage + * @property {number|null} [batchNodeCount] StandardRolloutPolicy batchNodeCount + * @property {google.protobuf.IDuration|null} [batchSoakDuration] StandardRolloutPolicy batchSoakDuration + */ + + /** + * Constructs a new StandardRolloutPolicy. + * @memberof google.container.v1.BlueGreenSettings + * @classdesc Represents a StandardRolloutPolicy. + * @implements IStandardRolloutPolicy + * @constructor + * @param {google.container.v1.BlueGreenSettings.IStandardRolloutPolicy=} [properties] Properties to set + */ + function StandardRolloutPolicy(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]]; + } + + /** + * StandardRolloutPolicy batchPercentage. + * @member {number|null|undefined} batchPercentage + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @instance + */ + StandardRolloutPolicy.prototype.batchPercentage = null; + + /** + * StandardRolloutPolicy batchNodeCount. + * @member {number|null|undefined} batchNodeCount + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @instance + */ + StandardRolloutPolicy.prototype.batchNodeCount = null; + + /** + * StandardRolloutPolicy batchSoakDuration. + * @member {google.protobuf.IDuration|null|undefined} batchSoakDuration + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @instance + */ + StandardRolloutPolicy.prototype.batchSoakDuration = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * StandardRolloutPolicy updateBatchSize. + * @member {"batchPercentage"|"batchNodeCount"|undefined} updateBatchSize + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @instance + */ + Object.defineProperty(StandardRolloutPolicy.prototype, "updateBatchSize", { + get: $util.oneOfGetter($oneOfFields = ["batchPercentage", "batchNodeCount"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * StandardRolloutPolicy _batchSoakDuration. + * @member {"batchSoakDuration"|undefined} _batchSoakDuration + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @instance + */ + Object.defineProperty(StandardRolloutPolicy.prototype, "_batchSoakDuration", { + get: $util.oneOfGetter($oneOfFields = ["batchSoakDuration"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new StandardRolloutPolicy instance using the specified properties. + * @function create + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @static + * @param {google.container.v1.BlueGreenSettings.IStandardRolloutPolicy=} [properties] Properties to set + * @returns {google.container.v1.BlueGreenSettings.StandardRolloutPolicy} StandardRolloutPolicy instance + */ + StandardRolloutPolicy.create = function create(properties) { + return new StandardRolloutPolicy(properties); + }; + + /** + * Encodes the specified StandardRolloutPolicy message. Does not implicitly {@link google.container.v1.BlueGreenSettings.StandardRolloutPolicy.verify|verify} messages. + * @function encode + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @static + * @param {google.container.v1.BlueGreenSettings.IStandardRolloutPolicy} message StandardRolloutPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StandardRolloutPolicy.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.batchPercentage != null && Object.hasOwnProperty.call(message, "batchPercentage")) + writer.uint32(/* id 1, wireType 5 =*/13).float(message.batchPercentage); + if (message.batchNodeCount != null && Object.hasOwnProperty.call(message, "batchNodeCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.batchNodeCount); + if (message.batchSoakDuration != null && Object.hasOwnProperty.call(message, "batchSoakDuration")) + $root.google.protobuf.Duration.encode(message.batchSoakDuration, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StandardRolloutPolicy message, length delimited. Does not implicitly {@link google.container.v1.BlueGreenSettings.StandardRolloutPolicy.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @static + * @param {google.container.v1.BlueGreenSettings.IStandardRolloutPolicy} message StandardRolloutPolicy message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StandardRolloutPolicy.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StandardRolloutPolicy message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.BlueGreenSettings.StandardRolloutPolicy} StandardRolloutPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StandardRolloutPolicy.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.BlueGreenSettings.StandardRolloutPolicy(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.batchPercentage = reader.float(); + break; + case 2: + message.batchNodeCount = reader.int32(); + break; + case 3: + message.batchSoakDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StandardRolloutPolicy message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.BlueGreenSettings.StandardRolloutPolicy} StandardRolloutPolicy + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StandardRolloutPolicy.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StandardRolloutPolicy message. + * @function verify + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StandardRolloutPolicy.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.batchPercentage != null && message.hasOwnProperty("batchPercentage")) { + properties.updateBatchSize = 1; + if (typeof message.batchPercentage !== "number") + return "batchPercentage: number expected"; + } + if (message.batchNodeCount != null && message.hasOwnProperty("batchNodeCount")) { + if (properties.updateBatchSize === 1) + return "updateBatchSize: multiple values"; + properties.updateBatchSize = 1; + if (!$util.isInteger(message.batchNodeCount)) + return "batchNodeCount: integer expected"; + } + if (message.batchSoakDuration != null && message.hasOwnProperty("batchSoakDuration")) { + properties._batchSoakDuration = 1; + { + var error = $root.google.protobuf.Duration.verify(message.batchSoakDuration); + if (error) + return "batchSoakDuration." + error; + } + } + return null; + }; + + /** + * Creates a StandardRolloutPolicy message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.BlueGreenSettings.StandardRolloutPolicy} StandardRolloutPolicy + */ + StandardRolloutPolicy.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.BlueGreenSettings.StandardRolloutPolicy) + return object; + var message = new $root.google.container.v1.BlueGreenSettings.StandardRolloutPolicy(); + if (object.batchPercentage != null) + message.batchPercentage = Number(object.batchPercentage); + if (object.batchNodeCount != null) + message.batchNodeCount = object.batchNodeCount | 0; + if (object.batchSoakDuration != null) { + if (typeof object.batchSoakDuration !== "object") + throw TypeError(".google.container.v1.BlueGreenSettings.StandardRolloutPolicy.batchSoakDuration: object expected"); + message.batchSoakDuration = $root.google.protobuf.Duration.fromObject(object.batchSoakDuration); + } + return message; + }; + + /** + * Creates a plain object from a StandardRolloutPolicy message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @static + * @param {google.container.v1.BlueGreenSettings.StandardRolloutPolicy} message StandardRolloutPolicy + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StandardRolloutPolicy.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.batchPercentage != null && message.hasOwnProperty("batchPercentage")) { + object.batchPercentage = options.json && !isFinite(message.batchPercentage) ? String(message.batchPercentage) : message.batchPercentage; + if (options.oneofs) + object.updateBatchSize = "batchPercentage"; + } + if (message.batchNodeCount != null && message.hasOwnProperty("batchNodeCount")) { + object.batchNodeCount = message.batchNodeCount; + if (options.oneofs) + object.updateBatchSize = "batchNodeCount"; + } + if (message.batchSoakDuration != null && message.hasOwnProperty("batchSoakDuration")) { + object.batchSoakDuration = $root.google.protobuf.Duration.toObject(message.batchSoakDuration, options); + if (options.oneofs) + object._batchSoakDuration = "batchSoakDuration"; + } + return object; + }; + + /** + * Converts this StandardRolloutPolicy to JSON. + * @function toJSON + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @instance + * @returns {Object.} JSON object + */ + StandardRolloutPolicy.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return StandardRolloutPolicy; + })(); + + return BlueGreenSettings; + })(); + v1.NodePool = (function() { /** @@ -20637,6 +22689,7 @@ * @property {Array.|null} [conditions] NodePool conditions * @property {number|null} [podIpv4CidrSize] NodePool podIpv4CidrSize * @property {google.container.v1.NodePool.IUpgradeSettings|null} [upgradeSettings] NodePool upgradeSettings + * @property {google.container.v1.NodePool.IUpdateInfo|null} [updateInfo] NodePool updateInfo */ /** @@ -20785,6 +22838,14 @@ */ NodePool.prototype.upgradeSettings = null; + /** + * NodePool updateInfo. + * @member {google.container.v1.NodePool.IUpdateInfo|null|undefined} updateInfo + * @memberof google.container.v1.NodePool + * @instance + */ + NodePool.prototype.updateInfo = null; + /** * Creates a new NodePool instance using the specified properties. * @function create @@ -20844,6 +22905,8 @@ $root.google.container.v1.StatusCondition.encode(message.conditions[i], writer.uint32(/* id 105, wireType 2 =*/842).fork()).ldelim(); if (message.upgradeSettings != null && Object.hasOwnProperty.call(message, "upgradeSettings")) $root.google.container.v1.NodePool.UpgradeSettings.encode(message.upgradeSettings, writer.uint32(/* id 107, wireType 2 =*/858).fork()).ldelim(); + if (message.updateInfo != null && Object.hasOwnProperty.call(message, "updateInfo")) + $root.google.container.v1.NodePool.UpdateInfo.encode(message.updateInfo, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); return writer; }; @@ -20932,6 +22995,9 @@ case 107: message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); break; + case 109: + message.updateInfo = $root.google.container.v1.NodePool.UpdateInfo.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -21051,6 +23117,11 @@ if (error) return "upgradeSettings." + error; } + if (message.updateInfo != null && message.hasOwnProperty("updateInfo")) { + var error = $root.google.container.v1.NodePool.UpdateInfo.verify(message.updateInfo); + if (error) + return "updateInfo." + error; + } return null; }; @@ -21162,6 +23233,11 @@ throw TypeError(".google.container.v1.NodePool.upgradeSettings: object expected"); message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.fromObject(object.upgradeSettings); } + if (object.updateInfo != null) { + if (typeof object.updateInfo !== "object") + throw TypeError(".google.container.v1.NodePool.updateInfo: object expected"); + message.updateInfo = $root.google.container.v1.NodePool.UpdateInfo.fromObject(object.updateInfo); + } return message; }; @@ -21197,6 +23273,7 @@ object.status = options.enums === String ? "STATUS_UNSPECIFIED" : 0; object.statusMessage = ""; object.upgradeSettings = null; + object.updateInfo = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -21239,6 +23316,8 @@ } if (message.upgradeSettings != null && message.hasOwnProperty("upgradeSettings")) object.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.toObject(message.upgradeSettings, options); + if (message.updateInfo != null && message.hasOwnProperty("updateInfo")) + object.updateInfo = $root.google.container.v1.NodePool.UpdateInfo.toObject(message.updateInfo, options); return object; }; @@ -21261,6 +23340,8 @@ * @interface IUpgradeSettings * @property {number|null} [maxSurge] UpgradeSettings maxSurge * @property {number|null} [maxUnavailable] UpgradeSettings maxUnavailable + * @property {google.container.v1.NodePoolUpdateStrategy|null} [strategy] UpgradeSettings strategy + * @property {google.container.v1.IBlueGreenSettings|null} [blueGreenSettings] UpgradeSettings blueGreenSettings */ /** @@ -21294,6 +23375,47 @@ */ UpgradeSettings.prototype.maxUnavailable = 0; + /** + * UpgradeSettings strategy. + * @member {google.container.v1.NodePoolUpdateStrategy|null|undefined} strategy + * @memberof google.container.v1.NodePool.UpgradeSettings + * @instance + */ + UpgradeSettings.prototype.strategy = null; + + /** + * UpgradeSettings blueGreenSettings. + * @member {google.container.v1.IBlueGreenSettings|null|undefined} blueGreenSettings + * @memberof google.container.v1.NodePool.UpgradeSettings + * @instance + */ + UpgradeSettings.prototype.blueGreenSettings = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * UpgradeSettings _strategy. + * @member {"strategy"|undefined} _strategy + * @memberof google.container.v1.NodePool.UpgradeSettings + * @instance + */ + Object.defineProperty(UpgradeSettings.prototype, "_strategy", { + get: $util.oneOfGetter($oneOfFields = ["strategy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * UpgradeSettings _blueGreenSettings. + * @member {"blueGreenSettings"|undefined} _blueGreenSettings + * @memberof google.container.v1.NodePool.UpgradeSettings + * @instance + */ + Object.defineProperty(UpgradeSettings.prototype, "_blueGreenSettings", { + get: $util.oneOfGetter($oneOfFields = ["blueGreenSettings"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new UpgradeSettings instance using the specified properties. * @function create @@ -21322,6 +23444,10 @@ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxSurge); if (message.maxUnavailable != null && Object.hasOwnProperty.call(message, "maxUnavailable")) writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxUnavailable); + if (message.strategy != null && Object.hasOwnProperty.call(message, "strategy")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.strategy); + if (message.blueGreenSettings != null && Object.hasOwnProperty.call(message, "blueGreenSettings")) + $root.google.container.v1.BlueGreenSettings.encode(message.blueGreenSettings, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; @@ -21362,6 +23488,12 @@ case 2: message.maxUnavailable = reader.int32(); break; + case 3: + message.strategy = reader.int32(); + break; + case 4: + message.blueGreenSettings = $root.google.container.v1.BlueGreenSettings.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -21397,12 +23529,32 @@ UpgradeSettings.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.maxSurge != null && message.hasOwnProperty("maxSurge")) if (!$util.isInteger(message.maxSurge)) return "maxSurge: integer expected"; if (message.maxUnavailable != null && message.hasOwnProperty("maxUnavailable")) if (!$util.isInteger(message.maxUnavailable)) return "maxUnavailable: integer expected"; + if (message.strategy != null && message.hasOwnProperty("strategy")) { + properties._strategy = 1; + switch (message.strategy) { + default: + return "strategy: enum value expected"; + case 0: + case 2: + case 3: + break; + } + } + if (message.blueGreenSettings != null && message.hasOwnProperty("blueGreenSettings")) { + properties._blueGreenSettings = 1; + { + var error = $root.google.container.v1.BlueGreenSettings.verify(message.blueGreenSettings); + if (error) + return "blueGreenSettings." + error; + } + } return null; }; @@ -21422,6 +23574,25 @@ message.maxSurge = object.maxSurge | 0; if (object.maxUnavailable != null) message.maxUnavailable = object.maxUnavailable | 0; + switch (object.strategy) { + case "NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED": + case 0: + message.strategy = 0; + break; + case "BLUE_GREEN": + case 2: + message.strategy = 2; + break; + case "SURGE": + case 3: + message.strategy = 3; + break; + } + if (object.blueGreenSettings != null) { + if (typeof object.blueGreenSettings !== "object") + throw TypeError(".google.container.v1.NodePool.UpgradeSettings.blueGreenSettings: object expected"); + message.blueGreenSettings = $root.google.container.v1.BlueGreenSettings.fromObject(object.blueGreenSettings); + } return message; }; @@ -21446,6 +23617,16 @@ object.maxSurge = message.maxSurge; if (message.maxUnavailable != null && message.hasOwnProperty("maxUnavailable")) object.maxUnavailable = message.maxUnavailable; + if (message.strategy != null && message.hasOwnProperty("strategy")) { + object.strategy = options.enums === String ? $root.google.container.v1.NodePoolUpdateStrategy[message.strategy] : message.strategy; + if (options.oneofs) + object._strategy = "strategy"; + } + if (message.blueGreenSettings != null && message.hasOwnProperty("blueGreenSettings")) { + object.blueGreenSettings = $root.google.container.v1.BlueGreenSettings.toObject(message.blueGreenSettings, options); + if (options.oneofs) + object._blueGreenSettings = "blueGreenSettings"; + } return object; }; @@ -21463,6 +23644,577 @@ return UpgradeSettings; })(); + NodePool.UpdateInfo = (function() { + + /** + * Properties of an UpdateInfo. + * @memberof google.container.v1.NodePool + * @interface IUpdateInfo + * @property {google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo|null} [blueGreenInfo] UpdateInfo blueGreenInfo + */ + + /** + * Constructs a new UpdateInfo. + * @memberof google.container.v1.NodePool + * @classdesc Represents an UpdateInfo. + * @implements IUpdateInfo + * @constructor + * @param {google.container.v1.NodePool.IUpdateInfo=} [properties] Properties to set + */ + function UpdateInfo(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]]; + } + + /** + * UpdateInfo blueGreenInfo. + * @member {google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo|null|undefined} blueGreenInfo + * @memberof google.container.v1.NodePool.UpdateInfo + * @instance + */ + UpdateInfo.prototype.blueGreenInfo = null; + + /** + * Creates a new UpdateInfo instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePool.UpdateInfo + * @static + * @param {google.container.v1.NodePool.IUpdateInfo=} [properties] Properties to set + * @returns {google.container.v1.NodePool.UpdateInfo} UpdateInfo instance + */ + UpdateInfo.create = function create(properties) { + return new UpdateInfo(properties); + }; + + /** + * Encodes the specified UpdateInfo message. Does not implicitly {@link google.container.v1.NodePool.UpdateInfo.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePool.UpdateInfo + * @static + * @param {google.container.v1.NodePool.IUpdateInfo} message UpdateInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.blueGreenInfo != null && Object.hasOwnProperty.call(message, "blueGreenInfo")) + $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.encode(message.blueGreenInfo, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateInfo message, length delimited. Does not implicitly {@link google.container.v1.NodePool.UpdateInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePool.UpdateInfo + * @static + * @param {google.container.v1.NodePool.IUpdateInfo} message UpdateInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateInfo message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePool.UpdateInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePool.UpdateInfo} UpdateInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateInfo.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.NodePool.UpdateInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.blueGreenInfo = $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePool.UpdateInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePool.UpdateInfo} UpdateInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateInfo message. + * @function verify + * @memberof google.container.v1.NodePool.UpdateInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.blueGreenInfo != null && message.hasOwnProperty("blueGreenInfo")) { + var error = $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.verify(message.blueGreenInfo); + if (error) + return "blueGreenInfo." + error; + } + return null; + }; + + /** + * Creates an UpdateInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePool.UpdateInfo + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePool.UpdateInfo} UpdateInfo + */ + UpdateInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePool.UpdateInfo) + return object; + var message = new $root.google.container.v1.NodePool.UpdateInfo(); + if (object.blueGreenInfo != null) { + if (typeof object.blueGreenInfo !== "object") + throw TypeError(".google.container.v1.NodePool.UpdateInfo.blueGreenInfo: object expected"); + message.blueGreenInfo = $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.fromObject(object.blueGreenInfo); + } + return message; + }; + + /** + * Creates a plain object from an UpdateInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePool.UpdateInfo + * @static + * @param {google.container.v1.NodePool.UpdateInfo} message UpdateInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.blueGreenInfo = null; + if (message.blueGreenInfo != null && message.hasOwnProperty("blueGreenInfo")) + object.blueGreenInfo = $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.toObject(message.blueGreenInfo, options); + return object; + }; + + /** + * Converts this UpdateInfo to JSON. + * @function toJSON + * @memberof google.container.v1.NodePool.UpdateInfo + * @instance + * @returns {Object.} JSON object + */ + UpdateInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + UpdateInfo.BlueGreenInfo = (function() { + + /** + * Properties of a BlueGreenInfo. + * @memberof google.container.v1.NodePool.UpdateInfo + * @interface IBlueGreenInfo + * @property {google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase|null} [phase] BlueGreenInfo phase + * @property {Array.|null} [blueInstanceGroupUrls] BlueGreenInfo blueInstanceGroupUrls + * @property {Array.|null} [greenInstanceGroupUrls] BlueGreenInfo greenInstanceGroupUrls + * @property {string|null} [bluePoolDeletionStartTime] BlueGreenInfo bluePoolDeletionStartTime + * @property {string|null} [greenPoolVersion] BlueGreenInfo greenPoolVersion + */ + + /** + * Constructs a new BlueGreenInfo. + * @memberof google.container.v1.NodePool.UpdateInfo + * @classdesc Represents a BlueGreenInfo. + * @implements IBlueGreenInfo + * @constructor + * @param {google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo=} [properties] Properties to set + */ + function BlueGreenInfo(properties) { + this.blueInstanceGroupUrls = []; + this.greenInstanceGroupUrls = []; + 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]]; + } + + /** + * BlueGreenInfo phase. + * @member {google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase} phase + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @instance + */ + BlueGreenInfo.prototype.phase = 0; + + /** + * BlueGreenInfo blueInstanceGroupUrls. + * @member {Array.} blueInstanceGroupUrls + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @instance + */ + BlueGreenInfo.prototype.blueInstanceGroupUrls = $util.emptyArray; + + /** + * BlueGreenInfo greenInstanceGroupUrls. + * @member {Array.} greenInstanceGroupUrls + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @instance + */ + BlueGreenInfo.prototype.greenInstanceGroupUrls = $util.emptyArray; + + /** + * BlueGreenInfo bluePoolDeletionStartTime. + * @member {string} bluePoolDeletionStartTime + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @instance + */ + BlueGreenInfo.prototype.bluePoolDeletionStartTime = ""; + + /** + * BlueGreenInfo greenPoolVersion. + * @member {string} greenPoolVersion + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @instance + */ + BlueGreenInfo.prototype.greenPoolVersion = ""; + + /** + * Creates a new BlueGreenInfo instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @static + * @param {google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo=} [properties] Properties to set + * @returns {google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} BlueGreenInfo instance + */ + BlueGreenInfo.create = function create(properties) { + return new BlueGreenInfo(properties); + }; + + /** + * Encodes the specified BlueGreenInfo message. Does not implicitly {@link google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @static + * @param {google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo} message BlueGreenInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlueGreenInfo.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.phase != null && Object.hasOwnProperty.call(message, "phase")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.phase); + if (message.blueInstanceGroupUrls != null && message.blueInstanceGroupUrls.length) + for (var i = 0; i < message.blueInstanceGroupUrls.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.blueInstanceGroupUrls[i]); + if (message.greenInstanceGroupUrls != null && message.greenInstanceGroupUrls.length) + for (var i = 0; i < message.greenInstanceGroupUrls.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.greenInstanceGroupUrls[i]); + if (message.bluePoolDeletionStartTime != null && Object.hasOwnProperty.call(message, "bluePoolDeletionStartTime")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.bluePoolDeletionStartTime); + if (message.greenPoolVersion != null && Object.hasOwnProperty.call(message, "greenPoolVersion")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.greenPoolVersion); + return writer; + }; + + /** + * Encodes the specified BlueGreenInfo message, length delimited. Does not implicitly {@link google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @static + * @param {google.container.v1.NodePool.UpdateInfo.IBlueGreenInfo} message BlueGreenInfo message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BlueGreenInfo.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BlueGreenInfo message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} BlueGreenInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlueGreenInfo.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.NodePool.UpdateInfo.BlueGreenInfo(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.phase = reader.int32(); + break; + case 2: + if (!(message.blueInstanceGroupUrls && message.blueInstanceGroupUrls.length)) + message.blueInstanceGroupUrls = []; + message.blueInstanceGroupUrls.push(reader.string()); + break; + case 3: + if (!(message.greenInstanceGroupUrls && message.greenInstanceGroupUrls.length)) + message.greenInstanceGroupUrls = []; + message.greenInstanceGroupUrls.push(reader.string()); + break; + case 4: + message.bluePoolDeletionStartTime = reader.string(); + break; + case 5: + message.greenPoolVersion = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BlueGreenInfo message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} BlueGreenInfo + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BlueGreenInfo.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BlueGreenInfo message. + * @function verify + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BlueGreenInfo.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.phase != null && message.hasOwnProperty("phase")) + switch (message.phase) { + default: + return "phase: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.blueInstanceGroupUrls != null && message.hasOwnProperty("blueInstanceGroupUrls")) { + if (!Array.isArray(message.blueInstanceGroupUrls)) + return "blueInstanceGroupUrls: array expected"; + for (var i = 0; i < message.blueInstanceGroupUrls.length; ++i) + if (!$util.isString(message.blueInstanceGroupUrls[i])) + return "blueInstanceGroupUrls: string[] expected"; + } + if (message.greenInstanceGroupUrls != null && message.hasOwnProperty("greenInstanceGroupUrls")) { + if (!Array.isArray(message.greenInstanceGroupUrls)) + return "greenInstanceGroupUrls: array expected"; + for (var i = 0; i < message.greenInstanceGroupUrls.length; ++i) + if (!$util.isString(message.greenInstanceGroupUrls[i])) + return "greenInstanceGroupUrls: string[] expected"; + } + if (message.bluePoolDeletionStartTime != null && message.hasOwnProperty("bluePoolDeletionStartTime")) + if (!$util.isString(message.bluePoolDeletionStartTime)) + return "bluePoolDeletionStartTime: string expected"; + if (message.greenPoolVersion != null && message.hasOwnProperty("greenPoolVersion")) + if (!$util.isString(message.greenPoolVersion)) + return "greenPoolVersion: string expected"; + return null; + }; + + /** + * Creates a BlueGreenInfo message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} BlueGreenInfo + */ + BlueGreenInfo.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo) + return object; + var message = new $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo(); + switch (object.phase) { + case "PHASE_UNSPECIFIED": + case 0: + message.phase = 0; + break; + case "UPDATE_STARTED": + case 1: + message.phase = 1; + break; + case "CREATING_GREEN_POOL": + case 2: + message.phase = 2; + break; + case "CORDONING_BLUE_POOL": + case 3: + message.phase = 3; + break; + case "DRAINING_BLUE_POOL": + case 4: + message.phase = 4; + break; + case "NODE_POOL_SOAKING": + case 5: + message.phase = 5; + break; + case "DELETING_BLUE_POOL": + case 6: + message.phase = 6; + break; + case "ROLLBACK_STARTED": + case 7: + message.phase = 7; + break; + } + if (object.blueInstanceGroupUrls) { + if (!Array.isArray(object.blueInstanceGroupUrls)) + throw TypeError(".google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.blueInstanceGroupUrls: array expected"); + message.blueInstanceGroupUrls = []; + for (var i = 0; i < object.blueInstanceGroupUrls.length; ++i) + message.blueInstanceGroupUrls[i] = String(object.blueInstanceGroupUrls[i]); + } + if (object.greenInstanceGroupUrls) { + if (!Array.isArray(object.greenInstanceGroupUrls)) + throw TypeError(".google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.greenInstanceGroupUrls: array expected"); + message.greenInstanceGroupUrls = []; + for (var i = 0; i < object.greenInstanceGroupUrls.length; ++i) + message.greenInstanceGroupUrls[i] = String(object.greenInstanceGroupUrls[i]); + } + if (object.bluePoolDeletionStartTime != null) + message.bluePoolDeletionStartTime = String(object.bluePoolDeletionStartTime); + if (object.greenPoolVersion != null) + message.greenPoolVersion = String(object.greenPoolVersion); + return message; + }; + + /** + * Creates a plain object from a BlueGreenInfo message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @static + * @param {google.container.v1.NodePool.UpdateInfo.BlueGreenInfo} message BlueGreenInfo + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BlueGreenInfo.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.blueInstanceGroupUrls = []; + object.greenInstanceGroupUrls = []; + } + if (options.defaults) { + object.phase = options.enums === String ? "PHASE_UNSPECIFIED" : 0; + object.bluePoolDeletionStartTime = ""; + object.greenPoolVersion = ""; + } + if (message.phase != null && message.hasOwnProperty("phase")) + object.phase = options.enums === String ? $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase[message.phase] : message.phase; + if (message.blueInstanceGroupUrls && message.blueInstanceGroupUrls.length) { + object.blueInstanceGroupUrls = []; + for (var j = 0; j < message.blueInstanceGroupUrls.length; ++j) + object.blueInstanceGroupUrls[j] = message.blueInstanceGroupUrls[j]; + } + if (message.greenInstanceGroupUrls && message.greenInstanceGroupUrls.length) { + object.greenInstanceGroupUrls = []; + for (var j = 0; j < message.greenInstanceGroupUrls.length; ++j) + object.greenInstanceGroupUrls[j] = message.greenInstanceGroupUrls[j]; + } + if (message.bluePoolDeletionStartTime != null && message.hasOwnProperty("bluePoolDeletionStartTime")) + object.bluePoolDeletionStartTime = message.bluePoolDeletionStartTime; + if (message.greenPoolVersion != null && message.hasOwnProperty("greenPoolVersion")) + object.greenPoolVersion = message.greenPoolVersion; + return object; + }; + + /** + * Converts this BlueGreenInfo to JSON. + * @function toJSON + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @instance + * @returns {Object.} JSON object + */ + BlueGreenInfo.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Phase enum. + * @name google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase + * @enum {number} + * @property {number} PHASE_UNSPECIFIED=0 PHASE_UNSPECIFIED value + * @property {number} UPDATE_STARTED=1 UPDATE_STARTED value + * @property {number} CREATING_GREEN_POOL=2 CREATING_GREEN_POOL value + * @property {number} CORDONING_BLUE_POOL=3 CORDONING_BLUE_POOL value + * @property {number} DRAINING_BLUE_POOL=4 DRAINING_BLUE_POOL value + * @property {number} NODE_POOL_SOAKING=5 NODE_POOL_SOAKING value + * @property {number} DELETING_BLUE_POOL=6 DELETING_BLUE_POOL value + * @property {number} ROLLBACK_STARTED=7 ROLLBACK_STARTED value + */ + BlueGreenInfo.Phase = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PHASE_UNSPECIFIED"] = 0; + values[valuesById[1] = "UPDATE_STARTED"] = 1; + values[valuesById[2] = "CREATING_GREEN_POOL"] = 2; + values[valuesById[3] = "CORDONING_BLUE_POOL"] = 3; + values[valuesById[4] = "DRAINING_BLUE_POOL"] = 4; + values[valuesById[5] = "NODE_POOL_SOAKING"] = 5; + values[valuesById[6] = "DELETING_BLUE_POOL"] = 6; + values[valuesById[7] = "ROLLBACK_STARTED"] = 7; + return values; + })(); + + return BlueGreenInfo; + })(); + + return UpdateInfo; + })(); + /** * Status enum. * @name google.container.v1.NodePool.Status @@ -23976,6 +26728,193 @@ return SetNodePoolSizeRequest; })(); + v1.CompleteNodePoolUpgradeRequest = (function() { + + /** + * Properties of a CompleteNodePoolUpgradeRequest. + * @memberof google.container.v1 + * @interface ICompleteNodePoolUpgradeRequest + * @property {string|null} [name] CompleteNodePoolUpgradeRequest name + */ + + /** + * Constructs a new CompleteNodePoolUpgradeRequest. + * @memberof google.container.v1 + * @classdesc Represents a CompleteNodePoolUpgradeRequest. + * @implements ICompleteNodePoolUpgradeRequest + * @constructor + * @param {google.container.v1.ICompleteNodePoolUpgradeRequest=} [properties] Properties to set + */ + function CompleteNodePoolUpgradeRequest(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]]; + } + + /** + * CompleteNodePoolUpgradeRequest name. + * @member {string} name + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @instance + */ + CompleteNodePoolUpgradeRequest.prototype.name = ""; + + /** + * Creates a new CompleteNodePoolUpgradeRequest instance using the specified properties. + * @function create + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @static + * @param {google.container.v1.ICompleteNodePoolUpgradeRequest=} [properties] Properties to set + * @returns {google.container.v1.CompleteNodePoolUpgradeRequest} CompleteNodePoolUpgradeRequest instance + */ + CompleteNodePoolUpgradeRequest.create = function create(properties) { + return new CompleteNodePoolUpgradeRequest(properties); + }; + + /** + * Encodes the specified CompleteNodePoolUpgradeRequest message. Does not implicitly {@link google.container.v1.CompleteNodePoolUpgradeRequest.verify|verify} messages. + * @function encode + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @static + * @param {google.container.v1.ICompleteNodePoolUpgradeRequest} message CompleteNodePoolUpgradeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompleteNodePoolUpgradeRequest.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); + return writer; + }; + + /** + * Encodes the specified CompleteNodePoolUpgradeRequest message, length delimited. Does not implicitly {@link google.container.v1.CompleteNodePoolUpgradeRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @static + * @param {google.container.v1.ICompleteNodePoolUpgradeRequest} message CompleteNodePoolUpgradeRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CompleteNodePoolUpgradeRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CompleteNodePoolUpgradeRequest message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.CompleteNodePoolUpgradeRequest} CompleteNodePoolUpgradeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompleteNodePoolUpgradeRequest.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.CompleteNodePoolUpgradeRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a CompleteNodePoolUpgradeRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.CompleteNodePoolUpgradeRequest} CompleteNodePoolUpgradeRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CompleteNodePoolUpgradeRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CompleteNodePoolUpgradeRequest message. + * @function verify + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CompleteNodePoolUpgradeRequest.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"; + return null; + }; + + /** + * Creates a CompleteNodePoolUpgradeRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.CompleteNodePoolUpgradeRequest} CompleteNodePoolUpgradeRequest + */ + CompleteNodePoolUpgradeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CompleteNodePoolUpgradeRequest) + return object; + var message = new $root.google.container.v1.CompleteNodePoolUpgradeRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a CompleteNodePoolUpgradeRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @static + * @param {google.container.v1.CompleteNodePoolUpgradeRequest} message CompleteNodePoolUpgradeRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CompleteNodePoolUpgradeRequest.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; + return object; + }; + + /** + * Converts this CompleteNodePoolUpgradeRequest to JSON. + * @function toJSON + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @instance + * @returns {Object.} JSON object + */ + CompleteNodePoolUpgradeRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CompleteNodePoolUpgradeRequest; + })(); + v1.RollbackNodePoolUpgradeRequest = (function() { /** @@ -23987,6 +26926,7 @@ * @property {string|null} [clusterId] RollbackNodePoolUpgradeRequest clusterId * @property {string|null} [nodePoolId] RollbackNodePoolUpgradeRequest nodePoolId * @property {string|null} [name] RollbackNodePoolUpgradeRequest name + * @property {boolean|null} [respectPdb] RollbackNodePoolUpgradeRequest respectPdb */ /** @@ -24044,6 +26984,14 @@ */ RollbackNodePoolUpgradeRequest.prototype.name = ""; + /** + * RollbackNodePoolUpgradeRequest respectPdb. + * @member {boolean} respectPdb + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @instance + */ + RollbackNodePoolUpgradeRequest.prototype.respectPdb = false; + /** * Creates a new RollbackNodePoolUpgradeRequest instance using the specified properties. * @function create @@ -24078,6 +27026,8 @@ writer.uint32(/* id 4, wireType 2 =*/34).string(message.nodePoolId); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); + if (message.respectPdb != null && Object.hasOwnProperty.call(message, "respectPdb")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.respectPdb); return writer; }; @@ -24127,6 +27077,9 @@ case 6: message.name = reader.string(); break; + case 7: + message.respectPdb = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -24177,6 +27130,9 @@ if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.respectPdb != null && message.hasOwnProperty("respectPdb")) + if (typeof message.respectPdb !== "boolean") + return "respectPdb: boolean expected"; return null; }; @@ -24202,6 +27158,8 @@ message.nodePoolId = String(object.nodePoolId); if (object.name != null) message.name = String(object.name); + if (object.respectPdb != null) + message.respectPdb = Boolean(object.respectPdb); return message; }; @@ -24224,6 +27182,7 @@ object.clusterId = ""; object.nodePoolId = ""; object.name = ""; + object.respectPdb = false; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; @@ -24235,6 +27194,8 @@ object.nodePoolId = message.nodePoolId; if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; + if (message.respectPdb != null && message.hasOwnProperty("respectPdb")) + object.respectPdb = message.respectPdb; return object; }; @@ -25502,6 +28463,9 @@ * @property {number|null} [minNodeCount] NodePoolAutoscaling minNodeCount * @property {number|null} [maxNodeCount] NodePoolAutoscaling maxNodeCount * @property {boolean|null} [autoprovisioned] NodePoolAutoscaling autoprovisioned + * @property {google.container.v1.NodePoolAutoscaling.LocationPolicy|null} [locationPolicy] NodePoolAutoscaling locationPolicy + * @property {number|null} [totalMinNodeCount] NodePoolAutoscaling totalMinNodeCount + * @property {number|null} [totalMaxNodeCount] NodePoolAutoscaling totalMaxNodeCount */ /** @@ -25551,6 +28515,30 @@ */ NodePoolAutoscaling.prototype.autoprovisioned = false; + /** + * NodePoolAutoscaling locationPolicy. + * @member {google.container.v1.NodePoolAutoscaling.LocationPolicy} locationPolicy + * @memberof google.container.v1.NodePoolAutoscaling + * @instance + */ + NodePoolAutoscaling.prototype.locationPolicy = 0; + + /** + * NodePoolAutoscaling totalMinNodeCount. + * @member {number} totalMinNodeCount + * @memberof google.container.v1.NodePoolAutoscaling + * @instance + */ + NodePoolAutoscaling.prototype.totalMinNodeCount = 0; + + /** + * NodePoolAutoscaling totalMaxNodeCount. + * @member {number} totalMaxNodeCount + * @memberof google.container.v1.NodePoolAutoscaling + * @instance + */ + NodePoolAutoscaling.prototype.totalMaxNodeCount = 0; + /** * Creates a new NodePoolAutoscaling instance using the specified properties. * @function create @@ -25583,6 +28571,12 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maxNodeCount); if (message.autoprovisioned != null && Object.hasOwnProperty.call(message, "autoprovisioned")) writer.uint32(/* id 4, wireType 0 =*/32).bool(message.autoprovisioned); + if (message.locationPolicy != null && Object.hasOwnProperty.call(message, "locationPolicy")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.locationPolicy); + if (message.totalMinNodeCount != null && Object.hasOwnProperty.call(message, "totalMinNodeCount")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.totalMinNodeCount); + if (message.totalMaxNodeCount != null && Object.hasOwnProperty.call(message, "totalMaxNodeCount")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.totalMaxNodeCount); return writer; }; @@ -25629,6 +28623,15 @@ case 4: message.autoprovisioned = reader.bool(); break; + case 5: + message.locationPolicy = reader.int32(); + break; + case 6: + message.totalMinNodeCount = reader.int32(); + break; + case 7: + message.totalMaxNodeCount = reader.int32(); + break; default: reader.skipType(tag & 7); break; @@ -25676,6 +28679,21 @@ if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) if (typeof message.autoprovisioned !== "boolean") return "autoprovisioned: boolean expected"; + if (message.locationPolicy != null && message.hasOwnProperty("locationPolicy")) + switch (message.locationPolicy) { + default: + return "locationPolicy: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.totalMinNodeCount != null && message.hasOwnProperty("totalMinNodeCount")) + if (!$util.isInteger(message.totalMinNodeCount)) + return "totalMinNodeCount: integer expected"; + if (message.totalMaxNodeCount != null && message.hasOwnProperty("totalMaxNodeCount")) + if (!$util.isInteger(message.totalMaxNodeCount)) + return "totalMaxNodeCount: integer expected"; return null; }; @@ -25699,6 +28717,24 @@ message.maxNodeCount = object.maxNodeCount | 0; if (object.autoprovisioned != null) message.autoprovisioned = Boolean(object.autoprovisioned); + switch (object.locationPolicy) { + case "LOCATION_POLICY_UNSPECIFIED": + case 0: + message.locationPolicy = 0; + break; + case "BALANCED": + case 1: + message.locationPolicy = 1; + break; + case "ANY": + case 2: + message.locationPolicy = 2; + break; + } + if (object.totalMinNodeCount != null) + message.totalMinNodeCount = object.totalMinNodeCount | 0; + if (object.totalMaxNodeCount != null) + message.totalMaxNodeCount = object.totalMaxNodeCount | 0; return message; }; @@ -25720,6 +28756,9 @@ object.minNodeCount = 0; object.maxNodeCount = 0; object.autoprovisioned = false; + object.locationPolicy = options.enums === String ? "LOCATION_POLICY_UNSPECIFIED" : 0; + object.totalMinNodeCount = 0; + object.totalMaxNodeCount = 0; } if (message.enabled != null && message.hasOwnProperty("enabled")) object.enabled = message.enabled; @@ -25729,6 +28768,12 @@ object.maxNodeCount = message.maxNodeCount; if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) object.autoprovisioned = message.autoprovisioned; + if (message.locationPolicy != null && message.hasOwnProperty("locationPolicy")) + object.locationPolicy = options.enums === String ? $root.google.container.v1.NodePoolAutoscaling.LocationPolicy[message.locationPolicy] : message.locationPolicy; + if (message.totalMinNodeCount != null && message.hasOwnProperty("totalMinNodeCount")) + object.totalMinNodeCount = message.totalMinNodeCount; + if (message.totalMaxNodeCount != null && message.hasOwnProperty("totalMaxNodeCount")) + object.totalMaxNodeCount = message.totalMaxNodeCount; return object; }; @@ -25743,6 +28788,22 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * LocationPolicy enum. + * @name google.container.v1.NodePoolAutoscaling.LocationPolicy + * @enum {number} + * @property {number} LOCATION_POLICY_UNSPECIFIED=0 LOCATION_POLICY_UNSPECIFIED value + * @property {number} BALANCED=1 BALANCED value + * @property {number} ANY=2 ANY value + */ + NodePoolAutoscaling.LocationPolicy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOCATION_POLICY_UNSPECIFIED"] = 0; + values[valuesById[1] = "BALANCED"] = 1; + values[valuesById[2] = "ANY"] = 2; + return values; + })(); + return NodePoolAutoscaling; })(); @@ -26895,6 +29956,7 @@ * @property {number|Long|null} [acceleratorCount] AcceleratorConfig acceleratorCount * @property {string|null} [acceleratorType] AcceleratorConfig acceleratorType * @property {string|null} [gpuPartitionSize] AcceleratorConfig gpuPartitionSize + * @property {google.container.v1.IGPUSharingConfig|null} [gpuSharingConfig] AcceleratorConfig gpuSharingConfig */ /** @@ -26936,6 +29998,28 @@ */ AcceleratorConfig.prototype.gpuPartitionSize = ""; + /** + * AcceleratorConfig gpuSharingConfig. + * @member {google.container.v1.IGPUSharingConfig|null|undefined} gpuSharingConfig + * @memberof google.container.v1.AcceleratorConfig + * @instance + */ + AcceleratorConfig.prototype.gpuSharingConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * AcceleratorConfig _gpuSharingConfig. + * @member {"gpuSharingConfig"|undefined} _gpuSharingConfig + * @memberof google.container.v1.AcceleratorConfig + * @instance + */ + Object.defineProperty(AcceleratorConfig.prototype, "_gpuSharingConfig", { + get: $util.oneOfGetter($oneOfFields = ["gpuSharingConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new AcceleratorConfig instance using the specified properties. * @function create @@ -26966,6 +30050,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).string(message.acceleratorType); if (message.gpuPartitionSize != null && Object.hasOwnProperty.call(message, "gpuPartitionSize")) writer.uint32(/* id 3, wireType 2 =*/26).string(message.gpuPartitionSize); + if (message.gpuSharingConfig != null && Object.hasOwnProperty.call(message, "gpuSharingConfig")) + $root.google.container.v1.GPUSharingConfig.encode(message.gpuSharingConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -27009,6 +30095,9 @@ case 3: message.gpuPartitionSize = reader.string(); break; + case 5: + message.gpuSharingConfig = $root.google.container.v1.GPUSharingConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -27044,6 +30133,7 @@ AcceleratorConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.acceleratorCount != null && message.hasOwnProperty("acceleratorCount")) if (!$util.isInteger(message.acceleratorCount) && !(message.acceleratorCount && $util.isInteger(message.acceleratorCount.low) && $util.isInteger(message.acceleratorCount.high))) return "acceleratorCount: integer|Long expected"; @@ -27053,6 +30143,14 @@ if (message.gpuPartitionSize != null && message.hasOwnProperty("gpuPartitionSize")) if (!$util.isString(message.gpuPartitionSize)) return "gpuPartitionSize: string expected"; + if (message.gpuSharingConfig != null && message.hasOwnProperty("gpuSharingConfig")) { + properties._gpuSharingConfig = 1; + { + var error = $root.google.container.v1.GPUSharingConfig.verify(message.gpuSharingConfig); + if (error) + return "gpuSharingConfig." + error; + } + } return null; }; @@ -27081,6 +30179,11 @@ message.acceleratorType = String(object.acceleratorType); if (object.gpuPartitionSize != null) message.gpuPartitionSize = String(object.gpuPartitionSize); + if (object.gpuSharingConfig != null) { + if (typeof object.gpuSharingConfig !== "object") + throw TypeError(".google.container.v1.AcceleratorConfig.gpuSharingConfig: object expected"); + message.gpuSharingConfig = $root.google.container.v1.GPUSharingConfig.fromObject(object.gpuSharingConfig); + } return message; }; @@ -27115,6 +30218,11 @@ object.acceleratorType = message.acceleratorType; if (message.gpuPartitionSize != null && message.hasOwnProperty("gpuPartitionSize")) object.gpuPartitionSize = message.gpuPartitionSize; + if (message.gpuSharingConfig != null && message.hasOwnProperty("gpuSharingConfig")) { + object.gpuSharingConfig = $root.google.container.v1.GPUSharingConfig.toObject(message.gpuSharingConfig, options); + if (options.oneofs) + object._gpuSharingConfig = "gpuSharingConfig"; + } return object; }; @@ -27132,6 +30240,275 @@ return AcceleratorConfig; })(); + v1.GPUSharingConfig = (function() { + + /** + * Properties of a GPUSharingConfig. + * @memberof google.container.v1 + * @interface IGPUSharingConfig + * @property {number|Long|null} [maxSharedClientsPerGpu] GPUSharingConfig maxSharedClientsPerGpu + * @property {google.container.v1.GPUSharingConfig.GPUSharingStrategy|null} [gpuSharingStrategy] GPUSharingConfig gpuSharingStrategy + */ + + /** + * Constructs a new GPUSharingConfig. + * @memberof google.container.v1 + * @classdesc Represents a GPUSharingConfig. + * @implements IGPUSharingConfig + * @constructor + * @param {google.container.v1.IGPUSharingConfig=} [properties] Properties to set + */ + function GPUSharingConfig(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]]; + } + + /** + * GPUSharingConfig maxSharedClientsPerGpu. + * @member {number|Long} maxSharedClientsPerGpu + * @memberof google.container.v1.GPUSharingConfig + * @instance + */ + GPUSharingConfig.prototype.maxSharedClientsPerGpu = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * GPUSharingConfig gpuSharingStrategy. + * @member {google.container.v1.GPUSharingConfig.GPUSharingStrategy|null|undefined} gpuSharingStrategy + * @memberof google.container.v1.GPUSharingConfig + * @instance + */ + GPUSharingConfig.prototype.gpuSharingStrategy = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * GPUSharingConfig _gpuSharingStrategy. + * @member {"gpuSharingStrategy"|undefined} _gpuSharingStrategy + * @memberof google.container.v1.GPUSharingConfig + * @instance + */ + Object.defineProperty(GPUSharingConfig.prototype, "_gpuSharingStrategy", { + get: $util.oneOfGetter($oneOfFields = ["gpuSharingStrategy"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new GPUSharingConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.GPUSharingConfig + * @static + * @param {google.container.v1.IGPUSharingConfig=} [properties] Properties to set + * @returns {google.container.v1.GPUSharingConfig} GPUSharingConfig instance + */ + GPUSharingConfig.create = function create(properties) { + return new GPUSharingConfig(properties); + }; + + /** + * Encodes the specified GPUSharingConfig message. Does not implicitly {@link google.container.v1.GPUSharingConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GPUSharingConfig + * @static + * @param {google.container.v1.IGPUSharingConfig} message GPUSharingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GPUSharingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxSharedClientsPerGpu != null && Object.hasOwnProperty.call(message, "maxSharedClientsPerGpu")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxSharedClientsPerGpu); + if (message.gpuSharingStrategy != null && Object.hasOwnProperty.call(message, "gpuSharingStrategy")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.gpuSharingStrategy); + return writer; + }; + + /** + * Encodes the specified GPUSharingConfig message, length delimited. Does not implicitly {@link google.container.v1.GPUSharingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GPUSharingConfig + * @static + * @param {google.container.v1.IGPUSharingConfig} message GPUSharingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GPUSharingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GPUSharingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.GPUSharingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.GPUSharingConfig} GPUSharingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GPUSharingConfig.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.GPUSharingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxSharedClientsPerGpu = reader.int64(); + break; + case 2: + message.gpuSharingStrategy = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GPUSharingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GPUSharingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.GPUSharingConfig} GPUSharingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GPUSharingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GPUSharingConfig message. + * @function verify + * @memberof google.container.v1.GPUSharingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GPUSharingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.maxSharedClientsPerGpu != null && message.hasOwnProperty("maxSharedClientsPerGpu")) + if (!$util.isInteger(message.maxSharedClientsPerGpu) && !(message.maxSharedClientsPerGpu && $util.isInteger(message.maxSharedClientsPerGpu.low) && $util.isInteger(message.maxSharedClientsPerGpu.high))) + return "maxSharedClientsPerGpu: integer|Long expected"; + if (message.gpuSharingStrategy != null && message.hasOwnProperty("gpuSharingStrategy")) { + properties._gpuSharingStrategy = 1; + switch (message.gpuSharingStrategy) { + default: + return "gpuSharingStrategy: enum value expected"; + case 0: + case 1: + break; + } + } + return null; + }; + + /** + * Creates a GPUSharingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GPUSharingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GPUSharingConfig} GPUSharingConfig + */ + GPUSharingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GPUSharingConfig) + return object; + var message = new $root.google.container.v1.GPUSharingConfig(); + if (object.maxSharedClientsPerGpu != null) + if ($util.Long) + (message.maxSharedClientsPerGpu = $util.Long.fromValue(object.maxSharedClientsPerGpu)).unsigned = false; + else if (typeof object.maxSharedClientsPerGpu === "string") + message.maxSharedClientsPerGpu = parseInt(object.maxSharedClientsPerGpu, 10); + else if (typeof object.maxSharedClientsPerGpu === "number") + message.maxSharedClientsPerGpu = object.maxSharedClientsPerGpu; + else if (typeof object.maxSharedClientsPerGpu === "object") + message.maxSharedClientsPerGpu = new $util.LongBits(object.maxSharedClientsPerGpu.low >>> 0, object.maxSharedClientsPerGpu.high >>> 0).toNumber(); + switch (object.gpuSharingStrategy) { + case "GPU_SHARING_STRATEGY_UNSPECIFIED": + case 0: + message.gpuSharingStrategy = 0; + break; + case "TIME_SHARING": + case 1: + message.gpuSharingStrategy = 1; + break; + } + return message; + }; + + /** + * Creates a plain object from a GPUSharingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GPUSharingConfig + * @static + * @param {google.container.v1.GPUSharingConfig} message GPUSharingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GPUSharingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxSharedClientsPerGpu = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxSharedClientsPerGpu = options.longs === String ? "0" : 0; + if (message.maxSharedClientsPerGpu != null && message.hasOwnProperty("maxSharedClientsPerGpu")) + if (typeof message.maxSharedClientsPerGpu === "number") + object.maxSharedClientsPerGpu = options.longs === String ? String(message.maxSharedClientsPerGpu) : message.maxSharedClientsPerGpu; + else + object.maxSharedClientsPerGpu = options.longs === String ? $util.Long.prototype.toString.call(message.maxSharedClientsPerGpu) : options.longs === Number ? new $util.LongBits(message.maxSharedClientsPerGpu.low >>> 0, message.maxSharedClientsPerGpu.high >>> 0).toNumber() : message.maxSharedClientsPerGpu; + if (message.gpuSharingStrategy != null && message.hasOwnProperty("gpuSharingStrategy")) { + object.gpuSharingStrategy = options.enums === String ? $root.google.container.v1.GPUSharingConfig.GPUSharingStrategy[message.gpuSharingStrategy] : message.gpuSharingStrategy; + if (options.oneofs) + object._gpuSharingStrategy = "gpuSharingStrategy"; + } + return object; + }; + + /** + * Converts this GPUSharingConfig to JSON. + * @function toJSON + * @memberof google.container.v1.GPUSharingConfig + * @instance + * @returns {Object.} JSON object + */ + GPUSharingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * GPUSharingStrategy enum. + * @name google.container.v1.GPUSharingConfig.GPUSharingStrategy + * @enum {number} + * @property {number} GPU_SHARING_STRATEGY_UNSPECIFIED=0 GPU_SHARING_STRATEGY_UNSPECIFIED value + * @property {number} TIME_SHARING=1 TIME_SHARING value + */ + GPUSharingConfig.GPUSharingStrategy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GPU_SHARING_STRATEGY_UNSPECIFIED"] = 0; + values[valuesById[1] = "TIME_SHARING"] = 1; + return values; + })(); + + return GPUSharingConfig; + })(); + v1.WorkloadMetadataConfig = (function() { /** @@ -31535,6 +34912,193 @@ return WorkloadIdentityConfig; })(); + v1.IdentityServiceConfig = (function() { + + /** + * Properties of an IdentityServiceConfig. + * @memberof google.container.v1 + * @interface IIdentityServiceConfig + * @property {boolean|null} [enabled] IdentityServiceConfig enabled + */ + + /** + * Constructs a new IdentityServiceConfig. + * @memberof google.container.v1 + * @classdesc Represents an IdentityServiceConfig. + * @implements IIdentityServiceConfig + * @constructor + * @param {google.container.v1.IIdentityServiceConfig=} [properties] Properties to set + */ + function IdentityServiceConfig(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]]; + } + + /** + * IdentityServiceConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.IdentityServiceConfig + * @instance + */ + IdentityServiceConfig.prototype.enabled = false; + + /** + * Creates a new IdentityServiceConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.IdentityServiceConfig + * @static + * @param {google.container.v1.IIdentityServiceConfig=} [properties] Properties to set + * @returns {google.container.v1.IdentityServiceConfig} IdentityServiceConfig instance + */ + IdentityServiceConfig.create = function create(properties) { + return new IdentityServiceConfig(properties); + }; + + /** + * Encodes the specified IdentityServiceConfig message. Does not implicitly {@link google.container.v1.IdentityServiceConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.IdentityServiceConfig + * @static + * @param {google.container.v1.IIdentityServiceConfig} message IdentityServiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IdentityServiceConfig.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 IdentityServiceConfig message, length delimited. Does not implicitly {@link google.container.v1.IdentityServiceConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.IdentityServiceConfig + * @static + * @param {google.container.v1.IIdentityServiceConfig} message IdentityServiceConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IdentityServiceConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an IdentityServiceConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.IdentityServiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.IdentityServiceConfig} IdentityServiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IdentityServiceConfig.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.IdentityServiceConfig(); + 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; + }; + + /** + * Decodes an IdentityServiceConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.IdentityServiceConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.IdentityServiceConfig} IdentityServiceConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IdentityServiceConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an IdentityServiceConfig message. + * @function verify + * @memberof google.container.v1.IdentityServiceConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IdentityServiceConfig.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; + }; + + /** + * Creates an IdentityServiceConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.IdentityServiceConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.IdentityServiceConfig} IdentityServiceConfig + */ + IdentityServiceConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.IdentityServiceConfig) + return object; + var message = new $root.google.container.v1.IdentityServiceConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from an IdentityServiceConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.IdentityServiceConfig + * @static + * @param {google.container.v1.IdentityServiceConfig} message IdentityServiceConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IdentityServiceConfig.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 IdentityServiceConfig to JSON. + * @function toJSON + * @memberof google.container.v1.IdentityServiceConfig + * @instance + * @returns {Object.} JSON object + */ + IdentityServiceConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return IdentityServiceConfig; + })(); + v1.MeshCertificates = (function() { /** @@ -34416,22 +37980,6 @@ return values; })(); - /** - * DatapathProvider enum. - * @name google.container.v1.DatapathProvider - * @enum {number} - * @property {number} DATAPATH_PROVIDER_UNSPECIFIED=0 DATAPATH_PROVIDER_UNSPECIFIED value - * @property {number} LEGACY_DATAPATH=1 LEGACY_DATAPATH value - * @property {number} ADVANCED_DATAPATH=2 ADVANCED_DATAPATH value - */ - v1.DatapathProvider = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATAPATH_PROVIDER_UNSPECIFIED"] = 0; - values[valuesById[1] = "LEGACY_DATAPATH"] = 1; - values[valuesById[2] = "ADVANCED_DATAPATH"] = 2; - return values; - })(); - v1.NotificationConfig = (function() { /** @@ -36985,6 +40533,7 @@ * @memberof google.container.v1 * @interface IMonitoringConfig * @property {google.container.v1.IMonitoringComponentConfig|null} [componentConfig] MonitoringConfig componentConfig + * @property {google.container.v1.IManagedPrometheusConfig|null} [managedPrometheusConfig] MonitoringConfig managedPrometheusConfig */ /** @@ -37010,6 +40559,14 @@ */ MonitoringConfig.prototype.componentConfig = null; + /** + * MonitoringConfig managedPrometheusConfig. + * @member {google.container.v1.IManagedPrometheusConfig|null|undefined} managedPrometheusConfig + * @memberof google.container.v1.MonitoringConfig + * @instance + */ + MonitoringConfig.prototype.managedPrometheusConfig = null; + /** * Creates a new MonitoringConfig instance using the specified properties. * @function create @@ -37036,6 +40593,8 @@ writer = $Writer.create(); if (message.componentConfig != null && Object.hasOwnProperty.call(message, "componentConfig")) $root.google.container.v1.MonitoringComponentConfig.encode(message.componentConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.managedPrometheusConfig != null && Object.hasOwnProperty.call(message, "managedPrometheusConfig")) + $root.google.container.v1.ManagedPrometheusConfig.encode(message.managedPrometheusConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -37073,6 +40632,9 @@ case 1: message.componentConfig = $root.google.container.v1.MonitoringComponentConfig.decode(reader, reader.uint32()); break; + case 2: + message.managedPrometheusConfig = $root.google.container.v1.ManagedPrometheusConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -37113,6 +40675,11 @@ if (error) return "componentConfig." + error; } + if (message.managedPrometheusConfig != null && message.hasOwnProperty("managedPrometheusConfig")) { + var error = $root.google.container.v1.ManagedPrometheusConfig.verify(message.managedPrometheusConfig); + if (error) + return "managedPrometheusConfig." + error; + } return null; }; @@ -37133,6 +40700,11 @@ throw TypeError(".google.container.v1.MonitoringConfig.componentConfig: object expected"); message.componentConfig = $root.google.container.v1.MonitoringComponentConfig.fromObject(object.componentConfig); } + if (object.managedPrometheusConfig != null) { + if (typeof object.managedPrometheusConfig !== "object") + throw TypeError(".google.container.v1.MonitoringConfig.managedPrometheusConfig: object expected"); + message.managedPrometheusConfig = $root.google.container.v1.ManagedPrometheusConfig.fromObject(object.managedPrometheusConfig); + } return message; }; @@ -37149,10 +40721,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.componentConfig = null; + object.managedPrometheusConfig = null; + } if (message.componentConfig != null && message.hasOwnProperty("componentConfig")) object.componentConfig = $root.google.container.v1.MonitoringComponentConfig.toObject(message.componentConfig, options); + if (message.managedPrometheusConfig != null && message.hasOwnProperty("managedPrometheusConfig")) + object.managedPrometheusConfig = $root.google.container.v1.ManagedPrometheusConfig.toObject(message.managedPrometheusConfig, options); return object; }; @@ -37321,6 +40897,9 @@ return "enableComponents: enum value[] expected"; case 0: case 1: + case 3: + case 4: + case 5: break; } } @@ -37354,6 +40933,18 @@ case 1: message.enableComponents[i] = 1; break; + case "APISERVER": + case 3: + message.enableComponents[i] = 3; + break; + case "SCHEDULER": + case 4: + message.enableComponents[i] = 4; + break; + case "CONTROLLER_MANAGER": + case 5: + message.enableComponents[i] = 5; + break; } } return message; @@ -37399,17 +40990,242 @@ * @enum {number} * @property {number} COMPONENT_UNSPECIFIED=0 COMPONENT_UNSPECIFIED value * @property {number} SYSTEM_COMPONENTS=1 SYSTEM_COMPONENTS value + * @property {number} APISERVER=3 APISERVER value + * @property {number} SCHEDULER=4 SCHEDULER value + * @property {number} CONTROLLER_MANAGER=5 CONTROLLER_MANAGER value */ MonitoringComponentConfig.Component = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "COMPONENT_UNSPECIFIED"] = 0; values[valuesById[1] = "SYSTEM_COMPONENTS"] = 1; + values[valuesById[3] = "APISERVER"] = 3; + values[valuesById[4] = "SCHEDULER"] = 4; + values[valuesById[5] = "CONTROLLER_MANAGER"] = 5; return values; })(); return MonitoringComponentConfig; })(); + /** + * DatapathProvider enum. + * @name google.container.v1.DatapathProvider + * @enum {number} + * @property {number} DATAPATH_PROVIDER_UNSPECIFIED=0 DATAPATH_PROVIDER_UNSPECIFIED value + * @property {number} LEGACY_DATAPATH=1 LEGACY_DATAPATH value + * @property {number} ADVANCED_DATAPATH=2 ADVANCED_DATAPATH value + */ + v1.DatapathProvider = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATAPATH_PROVIDER_UNSPECIFIED"] = 0; + values[valuesById[1] = "LEGACY_DATAPATH"] = 1; + values[valuesById[2] = "ADVANCED_DATAPATH"] = 2; + return values; + })(); + + /** + * NodePoolUpdateStrategy enum. + * @name google.container.v1.NodePoolUpdateStrategy + * @enum {number} + * @property {number} NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED=0 NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED value + * @property {number} BLUE_GREEN=2 BLUE_GREEN value + * @property {number} SURGE=3 SURGE value + */ + v1.NodePoolUpdateStrategy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED"] = 0; + values[valuesById[2] = "BLUE_GREEN"] = 2; + values[valuesById[3] = "SURGE"] = 3; + return values; + })(); + + v1.ManagedPrometheusConfig = (function() { + + /** + * Properties of a ManagedPrometheusConfig. + * @memberof google.container.v1 + * @interface IManagedPrometheusConfig + * @property {boolean|null} [enabled] ManagedPrometheusConfig enabled + */ + + /** + * Constructs a new ManagedPrometheusConfig. + * @memberof google.container.v1 + * @classdesc Represents a ManagedPrometheusConfig. + * @implements IManagedPrometheusConfig + * @constructor + * @param {google.container.v1.IManagedPrometheusConfig=} [properties] Properties to set + */ + function ManagedPrometheusConfig(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]]; + } + + /** + * ManagedPrometheusConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.ManagedPrometheusConfig + * @instance + */ + ManagedPrometheusConfig.prototype.enabled = false; + + /** + * Creates a new ManagedPrometheusConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {google.container.v1.IManagedPrometheusConfig=} [properties] Properties to set + * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig instance + */ + ManagedPrometheusConfig.create = function create(properties) { + return new ManagedPrometheusConfig(properties); + }; + + /** + * Encodes the specified ManagedPrometheusConfig message. Does not implicitly {@link google.container.v1.ManagedPrometheusConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {google.container.v1.IManagedPrometheusConfig} message ManagedPrometheusConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManagedPrometheusConfig.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 ManagedPrometheusConfig message, length delimited. Does not implicitly {@link google.container.v1.ManagedPrometheusConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {google.container.v1.IManagedPrometheusConfig} message ManagedPrometheusConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ManagedPrometheusConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ManagedPrometheusConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManagedPrometheusConfig.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.ManagedPrometheusConfig(); + 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; + }; + + /** + * Decodes a ManagedPrometheusConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ManagedPrometheusConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ManagedPrometheusConfig message. + * @function verify + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ManagedPrometheusConfig.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; + }; + + /** + * Creates a ManagedPrometheusConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ManagedPrometheusConfig} ManagedPrometheusConfig + */ + ManagedPrometheusConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ManagedPrometheusConfig) + return object; + var message = new $root.google.container.v1.ManagedPrometheusConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a ManagedPrometheusConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {google.container.v1.ManagedPrometheusConfig} message ManagedPrometheusConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ManagedPrometheusConfig.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 ManagedPrometheusConfig to JSON. + * @function toJSON + * @memberof google.container.v1.ManagedPrometheusConfig + * @instance + * @returns {Object.} JSON object + */ + ManagedPrometheusConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ManagedPrometheusConfig; + })(); + return v1; })(); @@ -47687,6 +51503,230 @@ return GeneratedCodeInfo; })(); + protobuf.Duration = (function() { + + /** + * Properties of a Duration. + * @memberof google.protobuf + * @interface IDuration + * @property {number|Long|null} [seconds] Duration seconds + * @property {number|null} [nanos] Duration nanos + */ + + /** + * Constructs a new Duration. + * @memberof google.protobuf + * @classdesc Represents a Duration. + * @implements IDuration + * @constructor + * @param {google.protobuf.IDuration=} [properties] Properties to set + */ + function Duration(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]]; + } + + /** + * Duration seconds. + * @member {number|Long} seconds + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Duration nanos. + * @member {number} nanos + * @memberof google.protobuf.Duration + * @instance + */ + Duration.prototype.nanos = 0; + + /** + * Creates a new Duration instance using the specified properties. + * @function create + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration=} [properties] Properties to set + * @returns {google.protobuf.Duration} Duration instance + */ + Duration.create = function create(properties) { + return new Duration(properties); + }; + + /** + * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encode + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); + if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); + return writer; + }; + + /** + * Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. + * @function encodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.IDuration} message Duration message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Duration.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Duration message from the specified reader or buffer. + * @function decode + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.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.protobuf.Duration(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.seconds = reader.int64(); + break; + case 2: + message.nanos = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Duration message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.protobuf.Duration + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.protobuf.Duration} Duration + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Duration.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Duration message. + * @function verify + * @memberof google.protobuf.Duration + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Duration.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) + return "seconds: integer|Long expected"; + if (message.nanos != null && message.hasOwnProperty("nanos")) + if (!$util.isInteger(message.nanos)) + return "nanos: integer expected"; + return null; + }; + + /** + * Creates a Duration message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.protobuf.Duration + * @static + * @param {Object.} object Plain object + * @returns {google.protobuf.Duration} Duration + */ + Duration.fromObject = function fromObject(object) { + if (object instanceof $root.google.protobuf.Duration) + return object; + var message = new $root.google.protobuf.Duration(); + if (object.seconds != null) + if ($util.Long) + (message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false; + else if (typeof object.seconds === "string") + message.seconds = parseInt(object.seconds, 10); + else if (typeof object.seconds === "number") + message.seconds = object.seconds; + else if (typeof object.seconds === "object") + message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber(); + if (object.nanos != null) + message.nanos = object.nanos | 0; + return message; + }; + + /** + * Creates a plain object from a Duration message. Also converts values to other types if specified. + * @function toObject + * @memberof google.protobuf.Duration + * @static + * @param {google.protobuf.Duration} message Duration + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Duration.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.seconds = options.longs === String ? "0" : 0; + object.nanos = 0; + } + if (message.seconds != null && message.hasOwnProperty("seconds")) + if (typeof message.seconds === "number") + object.seconds = options.longs === String ? String(message.seconds) : message.seconds; + else + object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds; + if (message.nanos != null && message.hasOwnProperty("nanos")) + object.nanos = message.nanos; + return object; + }; + + /** + * Converts this Duration to JSON. + * @function toJSON + * @memberof google.protobuf.Duration + * @instance + * @returns {Object.} JSON object + */ + Duration.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Duration; + })(); + protobuf.Empty = (function() { /** diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index a69746c8e07..c4c499b44c3 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -590,6 +590,22 @@ } ] }, + "CompleteNodePoolUpgrade": { + "requestType": "CompleteNodePoolUpgradeRequest", + "responseType": "google.protobuf.Empty", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:completeUpgrade", + "(google.api.http).body": "*" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:completeUpgrade", + "body": "*" + } + } + ] + }, "RollbackNodePoolUpgrade": { "requestType": "RollbackNodePoolUpgradeRequest", "responseType": "Operation", @@ -868,6 +884,10 @@ "cpuCfsQuotaPeriod": { "type": "string", "id": 3 + }, + "podPidsLimit": { + "type": "int64", + "id": 4 } } }, @@ -978,6 +998,14 @@ "gvnic": { "type": "VirtualNIC", "id": 29 + }, + "spot": { + "type": "bool", + "id": 32 + }, + "confidentialNodes": { + "type": "ConfidentialNodes", + "id": 35 } } }, @@ -1000,6 +1028,13 @@ } }, "NodeNetworkConfig": { + "oneofs": { + "_networkPerformanceConfig": { + "oneof": [ + "networkPerformanceConfig" + ] + } + }, "fields": { "createPodRange": { "type": "bool", @@ -1015,6 +1050,41 @@ "podIpv4CidrBlock": { "type": "string", "id": 6 + }, + "networkPerformanceConfig": { + "type": "NetworkPerformanceConfig", + "id": 11, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "NetworkPerformanceConfig": { + "oneofs": { + "_totalEgressBandwidthTier": { + "oneof": [ + "totalEgressBandwidthTier" + ] + } + }, + "fields": { + "totalEgressBandwidthTier": { + "type": "Tier", + "id": 1, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "Tier": { + "values": { + "TIER_UNSPECIFIED": 0, + "TIER_1": 1 + } + } + } } } }, @@ -1107,6 +1177,33 @@ } } }, + "NodeTaints": { + "fields": { + "taints": { + "rule": "repeated", + "type": "NodeTaint", + "id": 1 + } + } + }, + "NodeLabels": { + "fields": { + "labels": { + "keyType": "string", + "type": "string", + "id": 1 + } + } + }, + "NetworkTags": { + "fields": { + "tags": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + }, "MasterAuth": { "fields": { "username": { @@ -1389,6 +1486,19 @@ "enabled": { "type": "bool", "id": 1 + }, + "evaluationMode": { + "type": "EvaluationMode", + "id": 2 + } + }, + "nested": { + "EvaluationMode": { + "values": { + "EVALUATION_MODE_UNSPECIFIED": 0, + "DISABLED": 1, + "PROJECT_SINGLETON_POLICY_ENFORCE": 2 + } } } }, @@ -1619,6 +1729,10 @@ "type": "ConfidentialNodes", "id": 50 }, + "identityServiceConfig": { + "type": "IdentityServiceConfig", + "id": 54 + }, "selfLink": { "type": "string", "id": 100 @@ -1733,6 +1847,10 @@ "monitoringConfig": { "type": "MonitoringConfig", "id": 133 + }, + "nodePoolAutoConfig": { + "type": "NodePoolAutoConfig", + "id": 136 } }, "nested": { @@ -1749,6 +1867,14 @@ } } }, + "NodePoolAutoConfig": { + "fields": { + "networkTags": { + "type": "NetworkTags", + "id": 1 + } + } + }, "NodePoolDefaults": { "fields": { "nodeConfigDefaults": { @@ -1884,6 +2010,10 @@ "type": "MonitoringConfig", "id": 65 }, + "desiredIdentityServiceConfig": { + "type": "IdentityServiceConfig", + "id": 66 + }, "desiredServiceExternalIpsConfig": { "type": "ServiceExternalIPsConfig", "id": 60 @@ -1895,6 +2025,10 @@ "desiredGcfsConfig": { "type": "GcfsConfig", "id": 109 + }, + "desiredNodePoolAutoConfigNetworkTags": { + "type": "NetworkTags", + "id": 110 } } }, @@ -2223,6 +2357,18 @@ "type": "NodePool.UpgradeSettings", "id": 15 }, + "tags": { + "type": "NetworkTags", + "id": 16 + }, + "taints": { + "type": "NodeTaints", + "id": 17 + }, + "labels": { + "type": "NodeLabels", + "id": 18 + }, "linuxNodeConfig": { "type": "LinuxNodeConfig", "id": 19 @@ -2231,10 +2377,18 @@ "type": "NodeKubeletConfig", "id": 20 }, + "nodeNetworkConfig": { + "type": "NodeNetworkConfig", + "id": 21 + }, "gcfsConfig": { "type": "GcfsConfig", "id": 22 }, + "confidentialNodes": { + "type": "ConfidentialNodes", + "id": 23 + }, "gvnic": { "type": "VirtualNIC", "id": 29 @@ -2887,6 +3041,67 @@ } } }, + "BlueGreenSettings": { + "oneofs": { + "rolloutPolicy": { + "oneof": [ + "standardRolloutPolicy" + ] + }, + "_nodePoolSoakDuration": { + "oneof": [ + "nodePoolSoakDuration" + ] + } + }, + "fields": { + "standardRolloutPolicy": { + "type": "StandardRolloutPolicy", + "id": 1 + }, + "nodePoolSoakDuration": { + "type": "google.protobuf.Duration", + "id": 2, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "StandardRolloutPolicy": { + "oneofs": { + "updateBatchSize": { + "oneof": [ + "batchPercentage", + "batchNodeCount" + ] + }, + "_batchSoakDuration": { + "oneof": [ + "batchSoakDuration" + ] + } + }, + "fields": { + "batchPercentage": { + "type": "float", + "id": 1 + }, + "batchNodeCount": { + "type": "int32", + "id": 2 + }, + "batchSoakDuration": { + "type": "google.protobuf.Duration", + "id": 3, + "options": { + "proto3_optional": true + } + } + } + } + } + }, "NodePool": { "fields": { "name": { @@ -2958,10 +3173,29 @@ "upgradeSettings": { "type": "UpgradeSettings", "id": 107 + }, + "updateInfo": { + "type": "UpdateInfo", + "id": 109, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } }, "nested": { "UpgradeSettings": { + "oneofs": { + "_strategy": { + "oneof": [ + "strategy" + ] + }, + "_blueGreenSettings": { + "oneof": [ + "blueGreenSettings" + ] + } + }, "fields": { "maxSurge": { "type": "int32", @@ -2970,6 +3204,70 @@ "maxUnavailable": { "type": "int32", "id": 2 + }, + "strategy": { + "type": "NodePoolUpdateStrategy", + "id": 3, + "options": { + "proto3_optional": true + } + }, + "blueGreenSettings": { + "type": "BlueGreenSettings", + "id": 4, + "options": { + "proto3_optional": true + } + } + } + }, + "UpdateInfo": { + "fields": { + "blueGreenInfo": { + "type": "BlueGreenInfo", + "id": 1 + } + }, + "nested": { + "BlueGreenInfo": { + "fields": { + "phase": { + "type": "Phase", + "id": 1 + }, + "blueInstanceGroupUrls": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "greenInstanceGroupUrls": { + "rule": "repeated", + "type": "string", + "id": 3 + }, + "bluePoolDeletionStartTime": { + "type": "string", + "id": 4 + }, + "greenPoolVersion": { + "type": "string", + "id": 5 + } + }, + "nested": { + "Phase": { + "values": { + "PHASE_UNSPECIFIED": 0, + "UPDATE_STARTED": 1, + "CREATING_GREEN_POOL": 2, + "CORDONING_BLUE_POOL": 3, + "DRAINING_BLUE_POOL": 4, + "NODE_POOL_SOAKING": 5, + "DELETING_BLUE_POOL": 6, + "ROLLBACK_STARTED": 7 + } + } + } } } }, @@ -3201,6 +3499,14 @@ } } }, + "CompleteNodePoolUpgradeRequest": { + "fields": { + "name": { + "type": "string", + "id": 1 + } + } + }, "RollbackNodePoolUpgradeRequest": { "fields": { "projectId": { @@ -3234,6 +3540,10 @@ "name": { "type": "string", "id": 6 + }, + "respectPdb": { + "type": "bool", + "id": 7 } } }, @@ -3302,7 +3612,10 @@ }, "minCpuPlatform": { "type": "string", - "id": 5 + "id": 5, + "options": { + "deprecated": true + } }, "diskSizeGb": { "type": "int32", @@ -3359,6 +3672,27 @@ "autoprovisioned": { "type": "bool", "id": 4 + }, + "locationPolicy": { + "type": "LocationPolicy", + "id": 5 + }, + "totalMinNodeCount": { + "type": "int32", + "id": 6 + }, + "totalMaxNodeCount": { + "type": "int32", + "id": 7 + } + }, + "nested": { + "LocationPolicy": { + "values": { + "LOCATION_POLICY_UNSPECIFIED": 0, + "BALANCED": 1, + "ANY": 2 + } } } }, @@ -3505,6 +3839,13 @@ } }, "AcceleratorConfig": { + "oneofs": { + "_gpuSharingConfig": { + "oneof": [ + "gpuSharingConfig" + ] + } + }, "fields": { "acceleratorCount": { "type": "int64", @@ -3517,6 +3858,43 @@ "gpuPartitionSize": { "type": "string", "id": 3 + }, + "gpuSharingConfig": { + "type": "GPUSharingConfig", + "id": 5, + "options": { + "proto3_optional": true + } + } + } + }, + "GPUSharingConfig": { + "oneofs": { + "_gpuSharingStrategy": { + "oneof": [ + "gpuSharingStrategy" + ] + } + }, + "fields": { + "maxSharedClientsPerGpu": { + "type": "int64", + "id": 1 + }, + "gpuSharingStrategy": { + "type": "GPUSharingStrategy", + "id": 2, + "options": { + "proto3_optional": true + } + } + }, + "nested": { + "GPUSharingStrategy": { + "values": { + "GPU_SHARING_STRATEGY_UNSPECIFIED": 0, + "TIME_SHARING": 1 + } } } }, @@ -3872,6 +4250,14 @@ } } }, + "IdentityServiceConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "MeshCertificates": { "fields": { "enableCertificates": { @@ -4060,13 +4446,6 @@ "PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL": 3 } }, - "DatapathProvider": { - "values": { - "DATAPATH_PROVIDER_UNSPECIFIED": 0, - "LEGACY_DATAPATH": 1, - "ADVANCED_DATAPATH": 2 - } - }, "NotificationConfig": { "fields": { "pubsub": { @@ -4262,6 +4641,10 @@ "componentConfig": { "type": "MonitoringComponentConfig", "id": 1 + }, + "managedPrometheusConfig": { + "type": "ManagedPrometheusConfig", + "id": 2 } } }, @@ -4277,10 +4660,35 @@ "Component": { "values": { "COMPONENT_UNSPECIFIED": 0, - "SYSTEM_COMPONENTS": 1 + "SYSTEM_COMPONENTS": 1, + "APISERVER": 3, + "SCHEDULER": 4, + "CONTROLLER_MANAGER": 5 } } } + }, + "DatapathProvider": { + "values": { + "DATAPATH_PROVIDER_UNSPECIFIED": 0, + "LEGACY_DATAPATH": 1, + "ADVANCED_DATAPATH": 2 + } + }, + "NodePoolUpdateStrategy": { + "values": { + "NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED": 0, + "BLUE_GREEN": 2, + "SURGE": 3 + } + }, + "ManagedPrometheusConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } } } } @@ -5403,6 +5811,18 @@ } } }, + "Duration": { + "fields": { + "seconds": { + "type": "int64", + "id": 1 + }, + "nanos": { + "type": "int32", + "id": 2 + } + } + }, "Empty": { "fields": {} }, diff --git a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js index 9e38c25485b..6af3f963a75 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js @@ -26,7 +26,7 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name (project, location, cluster id) of the cluster to complete IP + * The name (project, location, cluster name) of the cluster to complete IP * rotation. Specified in the format `projects/* /locations/* /clusters/*`. */ // const name = 'abc123' diff --git a/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js b/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js new file mode 100644 index 00000000000..88a282b8ae6 --- /dev/null +++ b/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js @@ -0,0 +1,59 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// https://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main() { + // [START container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. + */ + // const name = 'abc123' + + // Imports the Container library + const {ClusterManagerClient} = require('@google-cloud/container').v1; + + // Instantiates a client + const containerClient = new ClusterManagerClient(); + + async function callCompleteNodePoolUpgrade() { + // Construct request + const request = { + }; + + // Run request + const response = await containerClient.completeNodePoolUpgrade(request); + console.log(response); + } + + callCompleteNodePoolUpgrade(); + // [END container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js index 7a52063bda3..af60d05f377 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js @@ -30,7 +30,7 @@ function main(nodePool) { */ // const nodePool = {} /** - * The parent (project, location, cluster id) where the node pool will be + * The parent (project, location, cluster name) where the node pool will be * created. Specified in the format * `projects/* /locations/* /clusters/*`. */ diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js index 3d312c94c92..0190e749d73 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js @@ -26,7 +26,7 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The cluster (project, location, cluster id) to get keys for. Specified in + * The cluster (project, location, cluster name) to get keys for. Specified in * the format `projects/* /locations/* /clusters/*`. */ // const parent = 'abc123' diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js index 677ed5c7c44..14c853e65a8 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js @@ -26,7 +26,7 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The parent (project, location, cluster id) where the node pools will be + * The parent (project, location, cluster name) where the node pools will be * listed. Specified in the format `projects/* /locations/* /clusters/*`. */ // const parent = 'abc123' diff --git a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js index 2615eecec31..c866801e9e5 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js @@ -31,6 +31,11 @@ function main() { * Specified in the format `projects/* /locations/* /clusters/* /nodePools/*`. */ // const name = 'abc123' + /** + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. + */ + // const respectPdb = true // Imports the Container library const {ClusterManagerClient} = require('@google-cloud/container').v1; diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js index 60ee40786e2..b8a07a421ae 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js @@ -39,7 +39,7 @@ function main(resourceLabels, labelFingerprint) { */ // const labelFingerprint = 'abc123' /** - * The name (project, location, cluster id) of the cluster to set labels. + * The name (project, location, cluster name) of the cluster to set labels. * Specified in the format `projects/* /locations/* /clusters/*`. */ // const name = 'abc123' diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js index 15d1e821685..87bd53d3598 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js @@ -30,8 +30,8 @@ function main(enabled) { */ // const enabled = true /** - * The name (project, location, cluster id) of the cluster to set legacy abac. - * Specified in the format `projects/* /locations/* /clusters/*`. + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/* /locations/* /clusters/*`. */ // const name = 'abc123' diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js index bb756a02f6b..bfdf6b47c1e 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js @@ -27,7 +27,7 @@ function main(projectId, zone, clusterId, maintenancePolicy) { */ /** * Required. The Google Developers Console project ID or project - * number (https://support.google.com/cloud/answer/6158840). + * number (https://cloud.google.com/resource-manager/docs/creating-managing-projects). */ // const projectId = 'abc123' /** @@ -46,8 +46,8 @@ function main(projectId, zone, clusterId, maintenancePolicy) { */ // const maintenancePolicy = {} /** - * The name (project, location, cluster id) of the cluster to set maintenance - * policy. + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. * Specified in the format `projects/* /locations/* /clusters/*`. */ // const name = 'abc123' diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js index 41d073c0836..94e1e76cbd4 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js @@ -30,7 +30,7 @@ function main(networkPolicy) { */ // const networkPolicy = {} /** - * The name (project, location, cluster id) of the cluster to set networking + * The name (project, location, cluster name) of the cluster to set networking * policy. Specified in the format `projects/* /locations/* /clusters/*`. */ // const name = 'abc123' diff --git a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js index 369aa5cb29c..0a28f39f077 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js @@ -26,7 +26,7 @@ function main() { * TODO(developer): Uncomment these variables before running the sample. */ /** - * The name (project, location, cluster id) of the cluster to start IP + * The name (project, location, cluster name) of the cluster to start IP * rotation. Specified in the format `projects/* /locations/* /clusters/*`. */ // const name = 'abc123' diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index 6b00ac4d7ee..d86300583f9 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -63,6 +63,24 @@ function main(nodeVersion, imageType) { * Upgrade settings control disruption and speed of the upgrade. */ // const upgradeSettings = {} + /** + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + */ + // const tags = {} + /** + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + */ + // const taints = {} + /** + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. + */ + // const labels = {} /** * Parameters that can be configured on Linux nodes. */ @@ -71,10 +89,19 @@ function main(nodeVersion, imageType) { * Node kubelet configs. */ // const kubeletConfig = {} + /** + * Node network config. + */ + // const nodeNetworkConfig = {} /** * GCFS config. */ // const gcfsConfig = {} + /** + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. + */ + // const confidentialNodes = {} /** * Enable or disable gvnic on the node pool. */ diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index c517537cc6f..7e2da740af7 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 101, + "end": 128, "type": "FULL" } ], @@ -279,6 +279,18 @@ "name": "upgrade_settings", "type": ".google.container.v1.NodePool.UpgradeSettings" }, + { + "name": "tags", + "type": ".google.container.v1.NetworkTags" + }, + { + "name": "taints", + "type": ".google.container.v1.NodeTaints" + }, + { + "name": "labels", + "type": ".google.container.v1.NodeLabels" + }, { "name": "linux_node_config", "type": ".google.container.v1.LinuxNodeConfig" @@ -287,10 +299,18 @@ "name": "kubelet_config", "type": ".google.container.v1.NodeKubeletConfig" }, + { + "name": "node_network_config", + "type": ".google.container.v1.NodeNetworkConfig" + }, { "name": "gcfs_config", "type": ".google.container.v1.GcfsConfig" }, + { + "name": "confidential_nodes", + "type": ".google.container.v1.ConfidentialNodes" + }, { "name": "gvnic", "type": ".google.container.v1.VirtualNIC" @@ -1223,6 +1243,46 @@ } } }, + { + "regionTag": "container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_async", + "title": "ClusterManager completeNodePoolUpgrade Sample", + "origin": "API_DEFINITION", + "description": " CompleteNodePoolUpgrade will signal an on-going node pool upgrade to complete.", + "canonical": true, + "file": "cluster_manager.complete_node_pool_upgrade.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 51, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "CompleteNodePoolUpgrade", + "fullName": "google.container.v1.ClusterManager.CompleteNodePoolUpgrade", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.protobuf.Empty", + "client": { + "shortName": "ClusterManagerClient", + "fullName": "google.container.v1.ClusterManagerClient" + }, + "method": { + "shortName": "CompleteNodePoolUpgrade", + "fullName": "google.container.v1.ClusterManager.CompleteNodePoolUpgrade", + "service": { + "shortName": "ClusterManager", + "fullName": "google.container.v1.ClusterManager" + } + } + } + }, { "regionTag": "container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_async", "title": "ClusterManager rollbackNodePoolUpgrade Sample", @@ -1234,7 +1294,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 56, "type": "FULL" } ], @@ -1262,6 +1322,10 @@ { "name": "name", "type": "TYPE_STRING" + }, + { + "name": "respect_pdb", + "type": "TYPE_BOOL" } ], "resultType": ".google.container.v1.Operation", diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 1dfac645f1c..6ca9f2c8843 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -69,7 +69,7 @@ export class ClusterManagerClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -92,11 +92,10 @@ export class ClusterManagerClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -237,17 +236,18 @@ export class ClusterManagerClient { 'getOperation', 'cancelOperation', 'getServerConfig', - 'getJSONWebKeys', + 'getJsonWebKeys', 'listNodePools', 'getNodePool', 'createNodePool', 'deleteNodePool', + 'completeNodePoolUpgrade', 'rollbackNodePoolUpgrade', 'setNodePoolManagement', 'setLabels', 'setLegacyAbac', - 'startIPRotation', - 'completeIPRotation', + 'startIpRotation', + 'completeIpRotation', 'setNodePoolSize', 'setNetworkPolicy', 'setMaintenancePolicy', @@ -342,7 +342,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -438,7 +438,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -550,7 +550,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -648,7 +648,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -749,7 +749,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -790,12 +790,29 @@ export class ClusterManagerClient { * The desired workload metadata config for the node pool. * @param {google.container.v1.NodePool.UpgradeSettings} request.upgradeSettings * Upgrade settings control disruption and speed of the upgrade. + * @param {google.container.v1.NetworkTags} request.tags + * The desired network tags to be applied to all nodes in the node pool. + * If this field is not present, the tags will not be changed. Otherwise, + * the existing network tags will be *replaced* with the provided tags. + * @param {google.container.v1.NodeTaints} request.taints + * The desired node taints to be applied to all nodes in the node pool. + * If this field is not present, the taints will not be changed. Otherwise, + * the existing node taints will be *replaced* with the provided taints. + * @param {google.container.v1.NodeLabels} request.labels + * The desired node labels to be applied to all nodes in the node pool. + * If this field is not present, the labels will not be changed. Otherwise, + * the existing node labels will be *replaced* with the provided labels. * @param {google.container.v1.LinuxNodeConfig} request.linuxNodeConfig * Parameters that can be configured on Linux nodes. * @param {google.container.v1.NodeKubeletConfig} request.kubeletConfig * Node kubelet configs. + * @param {google.container.v1.NodeNetworkConfig} request.nodeNetworkConfig + * Node network config. * @param {google.container.v1.GcfsConfig} request.gcfsConfig * GCFS config. + * @param {google.container.v1.ConfidentialNodes} request.confidentialNodes + * Confidential nodes config. + * All the nodes in the node pool will be Confidential VM once enabled. * @param {google.container.v1.VirtualNIC} request.gvnic * Enable or disable gvnic on the node pool. * @param {object} [options] @@ -885,7 +902,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -1003,7 +1020,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -1116,7 +1133,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -1235,7 +1252,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -1340,7 +1357,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -1453,7 +1470,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -1565,7 +1582,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -1676,7 +1693,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -1775,7 +1792,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -1871,7 +1888,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -1970,7 +1987,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -2069,7 +2086,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -2166,7 +2183,7 @@ export class ClusterManagerClient { * @param {Object} request * The request object that will be sent. * @param {string} request.parent - * The cluster (project, location, cluster id) to get keys for. Specified in + * The cluster (project, location, cluster name) to get keys for. Specified in * the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -2242,7 +2259,7 @@ export class ClusterManagerClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.getJSONWebKeys(request, options, callback); + return this.innerApiCalls.getJsonWebKeys(request, options, callback); } /** * Lists the node pools for a cluster. @@ -2251,7 +2268,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -2262,7 +2279,7 @@ export class ClusterManagerClient { * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the parent field. * @param {string} request.parent - * The parent (project, location, cluster id) where the node pools will be + * The parent (project, location, cluster name) where the node pools will be * listed. Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -2350,7 +2367,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -2454,7 +2471,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the parent field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -2467,7 +2484,7 @@ export class ClusterManagerClient { * @param {google.container.v1.NodePool} request.nodePool * Required. The node pool to create. * @param {string} request.parent - * The parent (project, location, cluster id) where the node pool will be + * The parent (project, location, cluster name) where the node pool will be * created. Specified in the format * `projects/* /locations/* /clusters/*`. * @param {object} [options] @@ -2556,7 +2573,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -2653,6 +2670,104 @@ export class ClusterManagerClient { this.initialize(); return this.innerApiCalls.deleteNodePool(request, options, callback); } + /** + * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to + * complete. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The name (project, location, cluster, node pool id) of the node pool to + * complete upgrade. + * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js + * region_tag:container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_async + */ + completeNodePoolUpgrade( + request?: protos.google.container.v1.ICompleteNodePoolUpgradeRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICompleteNodePoolUpgradeRequest | undefined, + {} | undefined + ] + >; + completeNodePoolUpgrade( + request: protos.google.container.v1.ICompleteNodePoolUpgradeRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.container.v1.ICompleteNodePoolUpgradeRequest + | null + | undefined, + {} | null | undefined + > + ): void; + completeNodePoolUpgrade( + request: protos.google.container.v1.ICompleteNodePoolUpgradeRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.container.v1.ICompleteNodePoolUpgradeRequest + | null + | undefined, + {} | null | undefined + > + ): void; + completeNodePoolUpgrade( + request?: protos.google.container.v1.ICompleteNodePoolUpgradeRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.protobuf.IEmpty, + | protos.google.container.v1.ICompleteNodePoolUpgradeRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.IEmpty, + | protos.google.container.v1.ICompleteNodePoolUpgradeRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.container.v1.ICompleteNodePoolUpgradeRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.completeNodePoolUpgrade( + request, + options, + callback + ); + } /** * Rolls back a previously Aborted or Failed NodePool upgrade. * This makes no changes if the last upgrade successfully completed. @@ -2661,7 +2776,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -2678,6 +2793,9 @@ export class ClusterManagerClient { * The name (project, location, cluster, node pool id) of the node poll to * rollback upgrade. * Specified in the format `projects/* /locations/* /clusters/* /nodePools/*`. + * @param {boolean} request.respectPdb + * Option for rollback to ignore the PodDisruptionBudget. + * Default value is false. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -2777,7 +2895,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -2891,7 +3009,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -2911,7 +3029,7 @@ export class ClusterManagerClient { * updating or changing labels. Make a `get()` request to the * resource to get the latest fingerprint. * @param {string} request.name - * The name (project, location, cluster id) of the cluster to set labels. + * The name (project, location, cluster name) of the cluster to set labels. * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -2999,7 +3117,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -3012,8 +3130,8 @@ export class ClusterManagerClient { * @param {boolean} request.enabled * Required. Whether ABAC authorization will be enabled in the cluster. * @param {string} request.name - * The name (project, location, cluster id) of the cluster to set legacy abac. - * Specified in the format `projects/* /locations/* /clusters/*`. + * The name (project, location, cluster name) of the cluster to set legacy + * abac. Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -3100,7 +3218,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -3111,7 +3229,7 @@ export class ClusterManagerClient { * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {string} request.name - * The name (project, location, cluster id) of the cluster to start IP + * The name (project, location, cluster name) of the cluster to start IP * rotation. Specified in the format `projects/* /locations/* /clusters/*`. * @param {boolean} request.rotateCredentials * Whether to rotate credentials during IP rotation. @@ -3192,7 +3310,7 @@ export class ClusterManagerClient { cluster_id: request.clusterId || '', }); this.initialize(); - return this.innerApiCalls.startIPRotation(request, options, callback); + return this.innerApiCalls.startIpRotation(request, options, callback); } /** * Completes master IP rotation. @@ -3201,7 +3319,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -3212,7 +3330,7 @@ export class ClusterManagerClient { * Deprecated. The name of the cluster. * This field has been deprecated and replaced by the name field. * @param {string} request.name - * The name (project, location, cluster id) of the cluster to complete IP + * The name (project, location, cluster name) of the cluster to complete IP * rotation. Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -3293,7 +3411,7 @@ export class ClusterManagerClient { cluster_id: request.clusterId || '', }); this.initialize(); - return this.innerApiCalls.completeIPRotation(request, options, callback); + return this.innerApiCalls.completeIpRotation(request, options, callback); } /** * Sets the size for a specific node pool. The new size will be used for all @@ -3304,7 +3422,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -3410,7 +3528,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Deprecated. The Google Developers Console [project ID or project - * number](https://developers.google.com/console/help/new/#projectnumber). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * This field has been deprecated and replaced by the name field. * @param {string} request.zone * Deprecated. The name of the Google Compute Engine @@ -3423,7 +3541,7 @@ export class ClusterManagerClient { * @param {google.container.v1.NetworkPolicy} request.networkPolicy * Required. Configuration options for the NetworkPolicy feature. * @param {string} request.name - * The name (project, location, cluster id) of the cluster to set networking + * The name (project, location, cluster name) of the cluster to set networking * policy. Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. @@ -3513,7 +3631,7 @@ export class ClusterManagerClient { * The request object that will be sent. * @param {string} request.projectId * Required. The Google Developers Console [project ID or project - * number](https://support.google.com/cloud/answer/6158840). + * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). * @param {string} request.zone * Required. The name of the Google Compute Engine * [zone](https://cloud.google.com/compute/docs/zones#available) in which the @@ -3524,8 +3642,8 @@ export class ClusterManagerClient { * Required. The maintenance policy to be set for the cluster. An empty field * clears the existing maintenance policy. * @param {string} request.name - * The name (project, location, cluster id) of the cluster to set maintenance - * policy. + * The name (project, location, cluster name) of the cluster to set + * maintenance policy. * Specified in the format `projects/* /locations/* /clusters/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. diff --git a/packages/google-container/src/v1/cluster_manager_client_config.json b/packages/google-container/src/v1/cluster_manager_client_config.json index e21140e76f3..54689f6ca3d 100644 --- a/packages/google-container/src/v1/cluster_manager_client_config.json +++ b/packages/google-container/src/v1/cluster_manager_client_config.json @@ -129,6 +129,10 @@ "retry_codes_name": "idempotent", "retry_params_name": "default" }, + "CompleteNodePoolUpgrade": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "RollbackNodePoolUpgrade": { "timeout_millis": 45000, "retry_codes_name": "non_idempotent", diff --git a/packages/google-container/src/v1/gapic_metadata.json b/packages/google-container/src/v1/gapic_metadata.json index 0c4b40f6523..bce9687e0b2 100644 --- a/packages/google-container/src/v1/gapic_metadata.json +++ b/packages/google-container/src/v1/gapic_metadata.json @@ -120,6 +120,11 @@ "deleteNodePool" ] }, + "CompleteNodePoolUpgrade": { + "methods": [ + "completeNodePoolUpgrade" + ] + }, "RollbackNodePoolUpgrade": { "methods": [ "rollbackNodePoolUpgrade" @@ -287,6 +292,11 @@ "deleteNodePool" ] }, + "CompleteNodePoolUpgrade": { + "methods": [ + "completeNodePoolUpgrade" + ] + }, "RollbackNodePoolUpgrade": { "methods": [ "rollbackNodePoolUpgrade" diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index 1431b519dae..225d6564021 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -2598,11 +2598,11 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysResponse() ); - client.innerApiCalls.getJSONWebKeys = stubSimpleCall(expectedResponse); + client.innerApiCalls.getJsonWebKeys = stubSimpleCall(expectedResponse); const [response] = await client.getJSONWebKeys(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getJSONWebKeys as SinonStub) + (client.innerApiCalls.getJsonWebKeys as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); @@ -2629,7 +2629,7 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysResponse() ); - client.innerApiCalls.getJSONWebKeys = + client.innerApiCalls.getJsonWebKeys = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.getJSONWebKeys( @@ -2649,7 +2649,7 @@ describe('v1.ClusterManagerClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.getJSONWebKeys as SinonStub) + (client.innerApiCalls.getJsonWebKeys as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); @@ -2674,13 +2674,13 @@ describe('v1.ClusterManagerClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.getJSONWebKeys = stubSimpleCall( + client.innerApiCalls.getJsonWebKeys = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getJSONWebKeys(request), expectedError); assert( - (client.innerApiCalls.getJSONWebKeys as SinonStub) + (client.innerApiCalls.getJsonWebKeys as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); @@ -3274,6 +3274,139 @@ describe('v1.ClusterManagerClient', () => { }); }); + describe('completeNodePoolUpgrade', () => { + it('invokes completeNodePoolUpgrade without error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CompleteNodePoolUpgradeRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.completeNodePoolUpgrade = + stubSimpleCall(expectedResponse); + const [response] = await client.completeNodePoolUpgrade(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.completeNodePoolUpgrade as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes completeNodePoolUpgrade without error using callback', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CompleteNodePoolUpgradeRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.innerApiCalls.completeNodePoolUpgrade = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.completeNodePoolUpgrade( + request, + ( + err?: Error | null, + result?: protos.google.protobuf.IEmpty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.completeNodePoolUpgrade as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes completeNodePoolUpgrade with error', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CompleteNodePoolUpgradeRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.completeNodePoolUpgrade = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.completeNodePoolUpgrade(request), + expectedError + ); + assert( + (client.innerApiCalls.completeNodePoolUpgrade as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes completeNodePoolUpgrade with closed client', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.container.v1.CompleteNodePoolUpgradeRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.completeNodePoolUpgrade(request), + expectedError + ); + }); + }); + describe('rollbackNodePoolUpgrade', () => { it('invokes rollbackNodePoolUpgrade without error', async () => { const client = new clustermanagerModule.v1.ClusterManagerClient({ @@ -3876,11 +4009,11 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.startIPRotation = stubSimpleCall(expectedResponse); + client.innerApiCalls.startIpRotation = stubSimpleCall(expectedResponse); const [response] = await client.startIPRotation(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.startIPRotation as SinonStub) + (client.innerApiCalls.startIpRotation as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); @@ -3910,7 +4043,7 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.startIPRotation = + client.innerApiCalls.startIpRotation = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.startIPRotation( @@ -3930,7 +4063,7 @@ describe('v1.ClusterManagerClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.startIPRotation as SinonStub) + (client.innerApiCalls.startIpRotation as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); @@ -3958,13 +4091,13 @@ describe('v1.ClusterManagerClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.startIPRotation = stubSimpleCall( + client.innerApiCalls.startIpRotation = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.startIPRotation(request), expectedError); assert( - (client.innerApiCalls.startIPRotation as SinonStub) + (client.innerApiCalls.startIpRotation as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); @@ -4014,12 +4147,12 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.completeIPRotation = + client.innerApiCalls.completeIpRotation = stubSimpleCall(expectedResponse); const [response] = await client.completeIPRotation(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.completeIPRotation as SinonStub) + (client.innerApiCalls.completeIpRotation as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); @@ -4049,7 +4182,7 @@ describe('v1.ClusterManagerClient', () => { const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); - client.innerApiCalls.completeIPRotation = + client.innerApiCalls.completeIpRotation = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { client.completeIPRotation( @@ -4069,7 +4202,7 @@ describe('v1.ClusterManagerClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.completeIPRotation as SinonStub) + (client.innerApiCalls.completeIpRotation as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); @@ -4097,13 +4230,13 @@ describe('v1.ClusterManagerClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.completeIPRotation = stubSimpleCall( + client.innerApiCalls.completeIpRotation = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.completeIPRotation(request), expectedError); assert( - (client.innerApiCalls.completeIPRotation as SinonStub) + (client.innerApiCalls.completeIpRotation as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); From 67a165da59105e37c494bb59983d00540b3940c3 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 4 Jul 2022 16:26:29 -0400 Subject: [PATCH 343/371] chore(main): release 4.1.0 (#550) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 4.1.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- packages/google-container/CHANGELOG.md | 31 +++++++++++++++++++ packages/google-container/package.json | 2 +- .../snippet_metadata.google.container.v1.json | 2 +- .../google-container/samples/package.json | 2 +- 4 files changed, 34 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 192e7cddac4..42014879024 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,37 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [4.1.0](https://github.com/googleapis/nodejs-cloud-container/compare/v4.0.1...v4.1.0) (2022-07-04) + + +### Features + +* add Binauthz Evaluation mode support to GKE Classic ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add Binauthz Evaluation mode support to GKE Classic ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add cgroup mode to node system config ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add GKE Identity Service ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add Location Policy API ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add Location Policy API ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add managed prometheus feature ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add network tags to autopilot cluster ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add network tags to autopilot cluster ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add protect config audit api ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add support to modify kubelet pod pid limit in node system configuration ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* add support to modify kubelet pod pid limit in node system configuration ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support enabling Confidential Nodes in the node pool ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support enabling Confidential Nodes in the node pool ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support GKE Cost Allocations ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support GPU timesharing ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support GPU timesharing ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support IPV6 Dual Stack (stack_type) ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support node pool blue-green upgrade ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support node pool blue-green upgrade ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support regapic LRO ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support spot VM ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support Tier 1 bandwidth ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* support Tier 1 bandwidth ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) +* update support for node pool labels, taints and network tags ([ebe6500](https://github.com/googleapis/nodejs-cloud-container/commit/ebe650079d2c0dd32780379616f20fe1eaf36ca7)) + ## [4.0.1](https://github.com/googleapis/nodejs-cloud-container/compare/v4.0.0...v4.0.1) (2022-06-10) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index daa2fadc0f2..8cbd63ed34c 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "4.0.1", + "version": "4.1.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 7e2da740af7..10e750936b2 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "4.0.1", + "version": "4.1.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index f44ead0fab8..e2fa7bfb493 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^4.0.1", + "@google-cloud/container": "^4.1.0", "uuid": "^8.3.2" }, "devDependencies": { From ccea0d3ae4996b517ca23ef1c1746440d97c0a06 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 8 Jul 2022 22:54:14 +0200 Subject: [PATCH 344/371] chore(deps): update dependency linkinator to v4 (#554) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [linkinator](https://togithub.com/JustinBeckwith/linkinator) | [`^2.0.0` -> `^4.0.0`](https://renovatebot.com/diffs/npm/linkinator/2.16.2/4.0.0) | [![age](https://badges.renovateapi.com/packages/npm/linkinator/4.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/linkinator/4.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/linkinator/4.0.0/compatibility-slim/2.16.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/linkinator/4.0.0/confidence-slim/2.16.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
JustinBeckwith/linkinator ### [`v4.0.0`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v4.0.0) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.1.0...v4.0.0) ##### Features - create new release with notes ([#​508](https://togithub.com/JustinBeckwith/linkinator/issues/508)) ([2cab633](https://togithub.com/JustinBeckwith/linkinator/commit/2cab633c9659eb10794a4bac06f8b0acdc3e2c0c)) ##### BREAKING CHANGES - The commits in [#​507](https://togithub.com/JustinBeckwith/linkinator/issues/507) and [#​506](https://togithub.com/JustinBeckwith/linkinator/issues/506) both had breaking changes. They included dropping support for Node.js 12.x and updating the CSV export to be streaming, and to use a new way of writing the CSV file. This is an empty to commit using the `BREAKING CHANGE` format in the commit message to ensure a release is triggered. ### [`v3.1.0`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.1.0) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.6...v3.1.0) ##### Features - allow --skip to be defined multiple times ([#​399](https://togithub.com/JustinBeckwith/linkinator/issues/399)) ([5ca5a46](https://togithub.com/JustinBeckwith/linkinator/commit/5ca5a461508e688de12e5ae6b4cfb6565f832ebf)) ### [`v3.0.6`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.6) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.5...v3.0.6) ##### Bug Fixes - **deps:** upgrade node-glob to v8 ([#​397](https://togithub.com/JustinBeckwith/linkinator/issues/397)) ([d334dc6](https://togithub.com/JustinBeckwith/linkinator/commit/d334dc6734cd7c2b73d7ed3dea0550a6c3072ad5)) ### [`v3.0.5`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.5) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.4...v3.0.5) ##### Bug Fixes - **deps:** upgrade to htmlparser2 v8.0.1 ([#​396](https://togithub.com/JustinBeckwith/linkinator/issues/396)) ([ba3b9a8](https://togithub.com/JustinBeckwith/linkinator/commit/ba3b9a8a9b19d39af6ed91790135e833b80c1eb6)) ### [`v3.0.4`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.4) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.3...v3.0.4) ##### Bug Fixes - **deps:** update dependency gaxios to v5 ([#​391](https://togithub.com/JustinBeckwith/linkinator/issues/391)) ([48af50e](https://togithub.com/JustinBeckwith/linkinator/commit/48af50e787731204aeb7eff41325c62291311e45)) ### [`v3.0.3`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.3) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.2...v3.0.3) ##### Bug Fixes - export getConfig from index ([#​371](https://togithub.com/JustinBeckwith/linkinator/issues/371)) ([0bc0355](https://togithub.com/JustinBeckwith/linkinator/commit/0bc0355c7e2ea457f247e6b52d1577b8c4ecb3a1)) ### [`v3.0.2`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.2) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.1...v3.0.2) ##### Bug Fixes - allow server root with trailing slash ([#​370](https://togithub.com/JustinBeckwith/linkinator/issues/370)) ([8adf6b0](https://togithub.com/JustinBeckwith/linkinator/commit/8adf6b025fda250e38461f1cdad40fe08c3b3b7c)) ### [`v3.0.1`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.1) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v3.0.0...v3.0.1) ##### Bug Fixes - decode path parts in local web server ([#​369](https://togithub.com/JustinBeckwith/linkinator/issues/369)) ([4696a0c](https://togithub.com/JustinBeckwith/linkinator/commit/4696a0c38c341b178ed815f47371fca955979feb)) ### [`v3.0.0`](https://togithub.com/JustinBeckwith/linkinator/releases/tag/v3.0.0) [Compare Source](https://togithub.com/JustinBeckwith/linkinator/compare/v2.16.2...v3.0.0) ##### Bug Fixes - **deps:** update dependency chalk to v5 ([#​362](https://togithub.com/JustinBeckwith/linkinator/issues/362)) ([4b17a8d](https://togithub.com/JustinBeckwith/linkinator/commit/4b17a8d87b649eaf813428f8ee6955e1d21dae4f)) - feat!: convert to es modules, drop node 10 ([#​359](https://togithub.com/JustinBeckwith/linkinator/issues/359)) ([efee299](https://togithub.com/JustinBeckwith/linkinator/commit/efee299ab8a805accef751eecf8538915a4e7783)), closes [#​359](https://togithub.com/JustinBeckwith/linkinator/issues/359) ##### BREAKING CHANGES - this module now requires node.js 12 and above, and has moved to es modules by default.
--- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 8cbd63ed34c..1f1a80188d8 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -54,7 +54,7 @@ "jsdoc": "^3.6.2", "jsdoc-fresh": "^2.0.0", "jsdoc-region-tag": "^2.0.0", - "linkinator": "^2.0.0", + "linkinator": "^4.0.0", "mocha": "^9.2.2", "null-loader": "^4.0.0", "pack-n-play": "^1.0.0-2", From 0d10ed8764893ca2c8e9d39c63ce4e12c9c1c173 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 2 Aug 2022 11:14:38 -0400 Subject: [PATCH 345/371] docs: BinaryAuthorization.enabled field is marked as deprecated (#556) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: BinaryAuthorization.enabled field is marked as deprecated PiperOrigin-RevId: 464729666 Source-Link: https://github.com/googleapis/googleapis/commit/c77c0672449e87c8fd65e31c62c72cc87f3e131c Source-Link: https://github.com/googleapis/googleapis-gen/commit/68c2282850add16ddacf3906ff2dae880bf9b4cc Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjhjMjI4Mjg1MGFkZDE2ZGRhY2YzOTA2ZmYyZGFlODgwYmY5YjRjYyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../google/container/v1/cluster_service.proto | 14 ++++++++------ packages/google-container/protos/protos.json | 5 ++++- .../cluster_manager.complete_node_pool_upgrade.js | 2 +- .../src/v1/cluster_manager_client.ts | 2 +- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index e7a35f77baf..53a64980ba5 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -1219,9 +1219,10 @@ message BinaryAuthorization { PROJECT_SINGLETON_POLICY_ENFORCE = 2; } - // Enable Binary Authorization for this cluster. If enabled, all container - // images will be validated by Binary Authorization. - bool enabled = 1; + // This field is deprecated. Leave this unset and instead configure + // BinaryAuthorization using evaluation_mode. If evaluation_mode is set to + // anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. + bool enabled = 1 [deprecated = true]; // Mode of operation for binauthz policy evaluation. Currently the only // options are equivalent to enable/disable. If unspecified, defaults to @@ -1705,7 +1706,7 @@ message NodePoolDefaults { // Subset of NodeConfig message that has defaults. message NodeConfigDefaults { - // GCFS (Google Container File System, a.k.a. Riptide) options. + // GCFS (Google Container File System, also known as Riptide) options. GcfsConfig gcfs_config = 1; } @@ -3203,7 +3204,7 @@ message SetNodePoolSizeRequest { message CompleteNodePoolUpgradeRequest { // The name (project, location, cluster, node pool id) of the node pool to // complete upgrade. - // Specified in the format 'projects/*/locations/*/clusters/*/nodePools/*'. + // Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. string name = 1; } @@ -3306,7 +3307,8 @@ message AutoprovisioningNodePoolDefaults { // information, read [how to specify min CPU // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) // This field is deprecated, min_cpu_platform should be specified using - // cloud.google.com/requested-min-cpu-platform label selector on the pod. + // https://cloud.google.com/requested-min-cpu-platform label selector on the + // pod. // To unset the min cpu platform field pass "automatic" // as field value. string min_cpu_platform = 5 [deprecated = true]; diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index c4c499b44c3..59344b9a5c8 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -1485,7 +1485,10 @@ "fields": { "enabled": { "type": "bool", - "id": 1 + "id": 1, + "options": { + "deprecated": true + } }, "evaluationMode": { "type": "EvaluationMode", diff --git a/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js b/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js index 88a282b8ae6..c5a8e6048ed 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js @@ -28,7 +28,7 @@ function main() { /** * The name (project, location, cluster, node pool id) of the node pool to * complete upgrade. - * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. + * Specified in the format `projects/* /locations/* /clusters/* /nodePools/*`. */ // const name = 'abc123' diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 6ca9f2c8843..034df697141 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -2679,7 +2679,7 @@ export class ClusterManagerClient { * @param {string} request.name * The name (project, location, cluster, node pool id) of the node pool to * complete upgrade. - * Specified in the format 'projects/* /locations/* /clusters/* /nodePools/*'. + * Specified in the format `projects/* /locations/* /clusters/* /nodePools/*`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. From 0e51febc9268c1de6a4ef197be08e555cb4cfd86 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 23 Aug 2022 00:24:12 +0000 Subject: [PATCH 346/371] fix: change import long to require (#558) Source-Link: https://github.com/googleapis/synthtool/commit/d229a1258999f599a90a9b674a1c5541e00db588 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:74ab2b3c71ef27e6d8b69b1d0a0c9d31447777b79ac3cd4be82c265b45f37e5e --- packages/google-container/protos/protos.d.ts | 1407 ++- packages/google-container/protos/protos.js | 8984 ++++++++++++------ packages/google-container/protos/protos.json | 24 + 3 files changed, 7721 insertions(+), 2694 deletions(-) diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index d560c03d4f8..a96c8ecb9b9 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -import * as Long from "long"; +import Long = require("long"); import {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { @@ -509,231 +509,231 @@ export namespace google { namespace ClusterManager { /** - * Callback as used by {@link google.container.v1.ClusterManager#listClusters}. + * Callback as used by {@link google.container.v1.ClusterManager|listClusters}. * @param error Error, if any * @param [response] ListClustersResponse */ type ListClustersCallback = (error: (Error|null), response?: google.container.v1.ListClustersResponse) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#getCluster}. + * Callback as used by {@link google.container.v1.ClusterManager|getCluster}. * @param error Error, if any * @param [response] Cluster */ type GetClusterCallback = (error: (Error|null), response?: google.container.v1.Cluster) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#createCluster}. + * Callback as used by {@link google.container.v1.ClusterManager|createCluster}. * @param error Error, if any * @param [response] Operation */ type CreateClusterCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#updateCluster}. + * Callback as used by {@link google.container.v1.ClusterManager|updateCluster}. * @param error Error, if any * @param [response] Operation */ type UpdateClusterCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#updateNodePool}. + * Callback as used by {@link google.container.v1.ClusterManager|updateNodePool}. * @param error Error, if any * @param [response] Operation */ type UpdateNodePoolCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolAutoscaling}. + * Callback as used by {@link google.container.v1.ClusterManager|setNodePoolAutoscaling}. * @param error Error, if any * @param [response] Operation */ type SetNodePoolAutoscalingCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setLoggingService}. + * Callback as used by {@link google.container.v1.ClusterManager|setLoggingService}. * @param error Error, if any * @param [response] Operation */ type SetLoggingServiceCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setMonitoringService}. + * Callback as used by {@link google.container.v1.ClusterManager|setMonitoringService}. * @param error Error, if any * @param [response] Operation */ type SetMonitoringServiceCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setAddonsConfig}. + * Callback as used by {@link google.container.v1.ClusterManager|setAddonsConfig}. * @param error Error, if any * @param [response] Operation */ type SetAddonsConfigCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setLocations}. + * Callback as used by {@link google.container.v1.ClusterManager|setLocations}. * @param error Error, if any * @param [response] Operation */ type SetLocationsCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#updateMaster}. + * Callback as used by {@link google.container.v1.ClusterManager|updateMaster}. * @param error Error, if any * @param [response] Operation */ type UpdateMasterCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setMasterAuth}. + * Callback as used by {@link google.container.v1.ClusterManager|setMasterAuth}. * @param error Error, if any * @param [response] Operation */ type SetMasterAuthCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#deleteCluster}. + * Callback as used by {@link google.container.v1.ClusterManager|deleteCluster}. * @param error Error, if any * @param [response] Operation */ type DeleteClusterCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#listOperations}. + * Callback as used by {@link google.container.v1.ClusterManager|listOperations}. * @param error Error, if any * @param [response] ListOperationsResponse */ type ListOperationsCallback = (error: (Error|null), response?: google.container.v1.ListOperationsResponse) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#getOperation}. + * Callback as used by {@link google.container.v1.ClusterManager|getOperation}. * @param error Error, if any * @param [response] Operation */ type GetOperationCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#cancelOperation}. + * Callback as used by {@link google.container.v1.ClusterManager|cancelOperation}. * @param error Error, if any * @param [response] Empty */ type CancelOperationCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#getServerConfig}. + * Callback as used by {@link google.container.v1.ClusterManager|getServerConfig}. * @param error Error, if any * @param [response] ServerConfig */ type GetServerConfigCallback = (error: (Error|null), response?: google.container.v1.ServerConfig) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#getJSONWebKeys}. + * 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}. + * Callback as used by {@link google.container.v1.ClusterManager|listNodePools}. * @param error Error, if any * @param [response] ListNodePoolsResponse */ type ListNodePoolsCallback = (error: (Error|null), response?: google.container.v1.ListNodePoolsResponse) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#getNodePool}. + * Callback as used by {@link google.container.v1.ClusterManager|getNodePool}. * @param error Error, if any * @param [response] NodePool */ type GetNodePoolCallback = (error: (Error|null), response?: google.container.v1.NodePool) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#createNodePool}. + * Callback as used by {@link google.container.v1.ClusterManager|createNodePool}. * @param error Error, if any * @param [response] Operation */ type CreateNodePoolCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#deleteNodePool}. + * Callback as used by {@link google.container.v1.ClusterManager|deleteNodePool}. * @param error Error, if any * @param [response] Operation */ type DeleteNodePoolCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#completeNodePoolUpgrade}. + * Callback as used by {@link google.container.v1.ClusterManager|completeNodePoolUpgrade}. * @param error Error, if any * @param [response] Empty */ type CompleteNodePoolUpgradeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#rollbackNodePoolUpgrade}. + * Callback as used by {@link google.container.v1.ClusterManager|rollbackNodePoolUpgrade}. * @param error Error, if any * @param [response] Operation */ type RollbackNodePoolUpgradeCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolManagement}. + * Callback as used by {@link google.container.v1.ClusterManager|setNodePoolManagement}. * @param error Error, if any * @param [response] Operation */ type SetNodePoolManagementCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setLabels}. + * Callback as used by {@link google.container.v1.ClusterManager|setLabels}. * @param error Error, if any * @param [response] Operation */ type SetLabelsCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setLegacyAbac}. + * Callback as used by {@link google.container.v1.ClusterManager|setLegacyAbac}. * @param error Error, if any * @param [response] Operation */ type SetLegacyAbacCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#startIPRotation}. + * Callback as used by {@link google.container.v1.ClusterManager|startIPRotation}. * @param error Error, if any * @param [response] Operation */ type StartIPRotationCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#completeIPRotation}. + * Callback as used by {@link google.container.v1.ClusterManager|completeIPRotation}. * @param error Error, if any * @param [response] Operation */ type CompleteIPRotationCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolSize}. + * Callback as used by {@link google.container.v1.ClusterManager|setNodePoolSize}. * @param error Error, if any * @param [response] Operation */ type SetNodePoolSizeCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setNetworkPolicy}. + * Callback as used by {@link google.container.v1.ClusterManager|setNetworkPolicy}. * @param error Error, if any * @param [response] Operation */ type SetNetworkPolicyCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#setMaintenancePolicy}. + * Callback as used by {@link google.container.v1.ClusterManager|setMaintenancePolicy}. * @param error Error, if any * @param [response] Operation */ type SetMaintenancePolicyCallback = (error: (Error|null), response?: google.container.v1.Operation) => void; /** - * Callback as used by {@link google.container.v1.ClusterManager#listUsableSubnetworks}. + * Callback as used by {@link google.container.v1.ClusterManager|listUsableSubnetworks}. * @param error Error, if any * @param [response] ListUsableSubnetworksResponse */ @@ -828,6 +828,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LinuxNodeConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NodeKubeletConfig. */ @@ -936,6 +943,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodeKubeletConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NodeConfig. */ @@ -1182,6 +1196,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodeConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AdvancedMachineFeatures. */ @@ -1275,6 +1296,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AdvancedMachineFeatures + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NodeNetworkConfig. */ @@ -1386,6 +1414,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodeNetworkConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace NodeNetworkConfig { @@ -1481,6 +1516,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkPerformanceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace NetworkPerformanceConfig { @@ -1587,6 +1629,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShieldedInstanceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SandboxConfig. */ @@ -1677,6 +1726,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SandboxConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace SandboxConfig { @@ -1776,6 +1832,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GcfsConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ReservationAffinity. */ @@ -1878,6 +1941,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservationAffinity + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace ReservationAffinity { @@ -1991,6 +2061,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodeTaint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace NodeTaint { @@ -2092,6 +2169,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodeTaints + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NodeLabels. */ @@ -2182,6 +2266,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodeLabels + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NetworkTags. */ @@ -2272,6 +2363,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkTags + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MasterAuth. */ @@ -2392,6 +2490,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MasterAuth + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ClientCertificateConfig. */ @@ -2482,6 +2587,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ClientCertificateConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AddonsConfig. */ @@ -2620,6 +2732,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AddonsConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a HttpLoadBalancing. */ @@ -2710,6 +2829,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HttpLoadBalancing + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a HorizontalPodAutoscaling. */ @@ -2800,6 +2926,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HorizontalPodAutoscaling + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a KubernetesDashboard. */ @@ -2890,6 +3023,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for KubernetesDashboard + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NetworkPolicyConfig. */ @@ -2980,6 +3120,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkPolicyConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DnsCacheConfig. */ @@ -3070,6 +3217,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DnsCacheConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a PrivateClusterMasterGlobalAccessConfig. */ @@ -3160,6 +3314,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrivateClusterMasterGlobalAccessConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a PrivateClusterConfig. */ @@ -3286,6 +3447,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PrivateClusterConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AuthenticatorGroupsConfig. */ @@ -3382,6 +3550,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AuthenticatorGroupsConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CloudRunConfig. */ @@ -3478,6 +3653,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CloudRunConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace CloudRunConfig { @@ -3578,6 +3760,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConfigConnectorConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GcePersistentDiskCsiDriverConfig. */ @@ -3668,6 +3857,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GcePersistentDiskCsiDriverConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GcpFilestoreCsiDriverConfig. */ @@ -3758,6 +3954,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GcpFilestoreCsiDriverConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MasterAuthorizedNetworksConfig. */ @@ -3854,6 +4057,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MasterAuthorizedNetworksConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace MasterAuthorizedNetworksConfig { @@ -3952,6 +4162,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CidrBlock + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -4043,6 +4260,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LegacyAbac + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NetworkPolicy. */ @@ -4139,6 +4363,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace NetworkPolicy { @@ -4244,6 +4475,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BinaryAuthorization + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BinaryAuthorization { @@ -4416,6 +4654,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IPAllocationPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Cluster. */ @@ -4869,6 +5114,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Cluster + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace Cluster { @@ -4973,6 +5225,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodePoolAutoConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NodePoolDefaults. */ @@ -5063,6 +5322,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodePoolDefaults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NodeConfigDefaults. */ @@ -5153,6 +5419,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodeConfigDefaults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ClusterUpdate. */ @@ -5441,6 +5714,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ClusterUpdate + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an Operation. */ @@ -5615,6 +5895,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Operation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace Operation { @@ -5756,6 +6043,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OperationProgress + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace OperationProgress { @@ -5869,6 +6163,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Metric + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -5978,6 +6279,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateClusterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetClusterRequest. */ @@ -6086,6 +6394,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetClusterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateClusterRequest. */ @@ -6200,6 +6515,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateClusterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateNodePoolRequest. */ @@ -6398,6 +6720,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateNodePoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SetNodePoolAutoscalingRequest. */ @@ -6518,6 +6847,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetNodePoolAutoscalingRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SetLoggingServiceRequest. */ @@ -6632,6 +6968,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetLoggingServiceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SetMonitoringServiceRequest. */ @@ -6746,6 +7089,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetMonitoringServiceRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SetAddonsConfigRequest. */ @@ -6860,6 +7210,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetAddonsConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SetLocationsRequest. */ @@ -6974,6 +7331,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetLocationsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateMasterRequest. */ @@ -7088,6 +7452,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateMasterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SetMasterAuthRequest. */ @@ -7208,6 +7579,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetMasterAuthRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace SetMasterAuthRequest { @@ -7327,6 +7705,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteClusterRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListClustersRequest. */ @@ -7429,6 +7814,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListClustersRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListClustersResponse. */ @@ -7525,6 +7917,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListClustersResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetOperationRequest. */ @@ -7633,6 +8032,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetOperationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListOperationsRequest. */ @@ -7735,6 +8141,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListOperationsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CancelOperationRequest. */ @@ -7843,6 +8256,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CancelOperationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListOperationsResponse. */ @@ -7939,6 +8359,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListOperationsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetServerConfigRequest. */ @@ -8041,6 +8468,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetServerConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ServerConfig. */ @@ -8161,6 +8595,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServerConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace ServerConfig { @@ -8265,6 +8706,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReleaseChannelConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -8380,6 +8828,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CreateNodePoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DeleteNodePoolRequest. */ @@ -8494,6 +8949,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DeleteNodePoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListNodePoolsRequest. */ @@ -8602,6 +9064,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListNodePoolsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetNodePoolRequest. */ @@ -8716,6 +9185,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetNodePoolRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BlueGreenSettings. */ @@ -8818,6 +9294,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BlueGreenSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BlueGreenSettings { @@ -8928,6 +9411,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StandardRolloutPolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -9115,6 +9605,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodePool + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace NodePool { @@ -9231,6 +9728,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeSettings + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpdateInfo. */ @@ -9321,6 +9825,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpdateInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace UpdateInfo { @@ -9437,6 +9948,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BlueGreenInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace BlueGreenInfo { @@ -9567,6 +10085,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodeManagement + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AutoUpgradeOptions. */ @@ -9663,6 +10188,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoUpgradeOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MaintenancePolicy. */ @@ -9759,6 +10291,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MaintenancePolicy + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MaintenanceWindow. */ @@ -9864,6 +10403,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MaintenanceWindow + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a TimeWindow. */ @@ -9969,6 +10515,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for TimeWindow + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MaintenanceExclusionOptions. */ @@ -10059,6 +10612,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MaintenanceExclusionOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace MaintenanceExclusionOptions { @@ -10165,6 +10725,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for RecurringTimeWindow + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DailyMaintenanceWindow. */ @@ -10261,6 +10828,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DailyMaintenanceWindow + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SetNodePoolManagementRequest. */ @@ -10381,6 +10955,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetNodePoolManagementRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SetNodePoolSizeRequest. */ @@ -10501,6 +11082,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetNodePoolSizeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CompleteNodePoolUpgradeRequest. */ @@ -10591,6 +11179,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompleteNodePoolUpgradeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a RollbackNodePoolUpgradeRequest. */ @@ -10711,7 +11306,14 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; - } + + /** + * Gets the default type url for RollbackNodePoolUpgradeRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } /** Properties of a ListNodePoolsResponse. */ interface IListNodePoolsResponse { @@ -10801,6 +11403,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListNodePoolsResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ClusterAutoscaling. */ @@ -10915,6 +11524,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ClusterAutoscaling + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace ClusterAutoscaling { @@ -11069,6 +11685,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AutoprovisioningNodePoolDefaults + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ResourceLimit. */ @@ -11171,6 +11794,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceLimit + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a NodePoolAutoscaling. */ @@ -11297,6 +11927,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodePoolAutoscaling + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace NodePoolAutoscaling { @@ -11427,6 +12064,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetLabelsRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SetLegacyAbacRequest. */ @@ -11541,6 +12185,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetLegacyAbacRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a StartIPRotationRequest. */ @@ -11655,6 +12306,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StartIPRotationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CompleteIPRotationRequest. */ @@ -11763,6 +12421,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CompleteIPRotationRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an AcceleratorConfig. */ @@ -11874,6 +12539,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for AcceleratorConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GPUSharingConfig. */ @@ -11973,6 +12645,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GPUSharingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace GPUSharingConfig { @@ -12072,6 +12751,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkloadMetadataConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace WorkloadMetadataConfig { @@ -12196,6 +12882,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetNetworkPolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SetMaintenancePolicyRequest. */ @@ -12310,6 +13003,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SetMaintenancePolicyRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a StatusCondition. */ @@ -12412,6 +13112,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StatusCondition + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace StatusCondition { @@ -12564,6 +13271,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NetworkConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ServiceExternalIPsConfig. */ @@ -12654,6 +13368,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceExternalIPsConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetOpenIDConfigRequest. */ @@ -12744,6 +13465,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetOpenIDConfigRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetOpenIDConfigResponse. */ @@ -12870,6 +13598,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetOpenIDConfigResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetJSONWebKeysRequest. */ @@ -12960,6 +13695,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetJSONWebKeysRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Jwk. */ @@ -13098,6 +13840,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Jwk + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GetJSONWebKeysResponse. */ @@ -13188,6 +13937,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GetJSONWebKeysResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ReleaseChannel. */ @@ -13278,6 +14034,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReleaseChannel + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace ReleaseChannel { @@ -13379,6 +14142,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IntraNodeVisibilityConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ILBSubsettingConfig. */ @@ -13469,6 +14239,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ILBSubsettingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DNSConfig. */ @@ -13571,6 +14348,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DNSConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DNSConfig { @@ -13677,6 +14461,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MaxPodsConstraint + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a WorkloadIdentityConfig. */ @@ -13767,6 +14558,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for WorkloadIdentityConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an IdentityServiceConfig. */ @@ -13857,6 +14655,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for IdentityServiceConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MeshCertificates. */ @@ -13947,6 +14752,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MeshCertificates + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DatabaseEncryption. */ @@ -14043,6 +14855,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DatabaseEncryption + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DatabaseEncryption { @@ -14161,6 +14980,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListUsableSubnetworksRequest + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ListUsableSubnetworksResponse. */ @@ -14257,6 +15083,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ListUsableSubnetworksResponse + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a UsableSubnetworkSecondaryRange. */ @@ -14359,6 +15192,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UsableSubnetworkSecondaryRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace UsableSubnetworkSecondaryRange { @@ -14485,6 +15325,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UsableSubnetwork + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ResourceUsageExportConfig. */ @@ -14587,6 +15434,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceUsageExportConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace ResourceUsageExportConfig { @@ -14679,6 +15533,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BigQueryDestination + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ConsumptionMeteringConfig. */ @@ -14769,6 +15630,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConsumptionMeteringConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -14860,6 +15728,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VerticalPodAutoscaling + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DefaultSnatStatus. */ @@ -14950,6 +15825,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DefaultSnatStatus + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ShieldedNodes. */ @@ -15040,6 +15922,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ShieldedNodes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a VirtualNIC. */ @@ -15130,6 +16019,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for VirtualNIC + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** PrivateIPv6GoogleAccess enum. */ @@ -15228,6 +16124,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NotificationConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace NotificationConfig { @@ -15340,6 +16243,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for PubSub + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Filter. */ @@ -15430,6 +16340,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Filter + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -15521,6 +16438,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ConfidentialNodes + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** UpgradeResourceType enum. */ @@ -15648,6 +16572,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an UpgradeAvailableEvent. */ @@ -15756,6 +16687,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UpgradeAvailableEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a SecurityBulletinEvent. */ @@ -15900,6 +16838,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SecurityBulletinEvent + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an Autopilot. */ @@ -15990,6 +16935,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Autopilot + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a LoggingConfig. */ @@ -16080,6 +17032,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LoggingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a LoggingComponentConfig. */ @@ -16170,6 +17129,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LoggingComponentConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace LoggingComponentConfig { @@ -16276,6 +17242,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MonitoringConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MonitoringComponentConfig. */ @@ -16366,6 +17339,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MonitoringComponentConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace MonitoringComponentConfig { @@ -16482,6 +17462,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ManagedPrometheusConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } } @@ -16583,6 +17570,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Http + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a HttpRule. */ @@ -16730,6 +17724,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for HttpRule + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a CustomHttpPattern. */ @@ -16826,6 +17827,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CustomHttpPattern + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** FieldBehavior enum. */ @@ -16964,6 +17972,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceDescriptor + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace ResourceDescriptor { @@ -17076,6 +18091,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceReference + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -17170,6 +18192,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorSet + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FileDescriptorProto. */ @@ -17210,6 +18239,9 @@ export namespace google { /** FileDescriptorProto syntax */ syntax?: (string|null); + + /** FileDescriptorProto edition */ + edition?: (string|null); } /** Represents a FileDescriptorProto. */ @@ -17257,6 +18289,9 @@ export namespace google { /** FileDescriptorProto syntax. */ public syntax: string; + /** FileDescriptorProto edition. */ + public edition: string; + /** * Creates a new FileDescriptorProto instance using the specified properties. * @param [properties] Properties to set @@ -17326,6 +18361,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DescriptorProto. */ @@ -17470,6 +18512,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace DescriptorProto { @@ -17574,6 +18623,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ReservedRange. */ @@ -17670,6 +18726,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -17761,6 +18824,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ExtensionRangeOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FieldDescriptorProto. */ @@ -17911,6 +18981,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace FieldDescriptorProto { @@ -18039,6 +19116,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an EnumDescriptorProto. */ @@ -18153,6 +19237,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace EnumDescriptorProto { @@ -18251,6 +19342,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumReservedRange + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -18354,6 +19452,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ServiceDescriptorProto. */ @@ -18456,6 +19561,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MethodDescriptorProto. */ @@ -18576,6 +19688,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodDescriptorProto + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FileOptions. */ @@ -18789,6 +19908,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FileOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace FileOptions { @@ -18916,6 +20042,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MessageOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FieldOptions. */ @@ -18933,6 +20066,9 @@ export namespace google { /** FieldOptions lazy */ lazy?: (boolean|null); + /** FieldOptions unverifiedLazy */ + unverifiedLazy?: (boolean|null); + /** FieldOptions deprecated */ deprecated?: (boolean|null); @@ -18970,6 +20106,9 @@ export namespace google { /** FieldOptions lazy. */ public lazy: boolean; + /** FieldOptions unverifiedLazy. */ + public unverifiedLazy: boolean; + /** FieldOptions deprecated. */ public deprecated: boolean; @@ -19048,6 +20187,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FieldOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace FieldOptions { @@ -19155,6 +20301,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for OneofOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an EnumOptions. */ @@ -19257,6 +20410,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an EnumValueOptions. */ @@ -19353,6 +20513,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for EnumValueOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a ServiceOptions. */ @@ -19455,6 +20622,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ServiceOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a MethodOptions. */ @@ -19563,6 +20737,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for MethodOptions + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace MethodOptions { @@ -19699,6 +20880,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UninterpretedOption + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace UninterpretedOption { @@ -19797,6 +20985,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NamePart + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -19888,6 +21083,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for SourceCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace SourceCodeInfo { @@ -20004,6 +21206,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Location + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -20095,6 +21304,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GeneratedCodeInfo + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } namespace GeneratedCodeInfo { @@ -20113,6 +21329,9 @@ export namespace google { /** Annotation end */ end?: (number|null); + + /** Annotation semantic */ + semantic?: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null); } /** Represents an Annotation. */ @@ -20136,6 +21355,9 @@ export namespace google { /** Annotation end. */ public end: number; + /** Annotation semantic. */ + public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic); + /** * Creates a new Annotation instance using the specified properties. * @param [properties] Properties to set @@ -20205,6 +21427,23 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Annotation + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace Annotation { + + /** Semantic enum. */ + enum Semantic { + NONE = 0, + SET = 1, + ALIAS = 2 + } } } @@ -20302,6 +21541,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Duration + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an Empty. */ @@ -20386,6 +21632,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Empty + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a Timestamp. */ @@ -20482,6 +21735,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Timestamp + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a DoubleValue. */ @@ -20572,6 +21832,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for DoubleValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a FloatValue. */ @@ -20662,6 +21929,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for FloatValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an Int64Value. */ @@ -20752,6 +22026,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Int64Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a UInt64Value. */ @@ -20842,6 +22123,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UInt64Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an Int32Value. */ @@ -20932,6 +22220,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Int32Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a UInt32Value. */ @@ -21022,6 +22317,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UInt32Value + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BoolValue. */ @@ -21112,6 +22414,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BoolValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a StringValue. */ @@ -21202,6 +22511,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for StringValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a BytesValue. */ @@ -21292,6 +22608,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for BytesValue + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of an Any. */ @@ -21388,6 +22711,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Any + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } @@ -21515,6 +22845,13 @@ export namespace google { * @returns JSON object */ public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for Status + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; } } } diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 3b49770770f..7e81d75fa2a 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -90,7 +90,7 @@ }; /** - * Callback as used by {@link google.container.v1.ClusterManager#listClusters}. + * Callback as used by {@link google.container.v1.ClusterManager|listClusters}. * @memberof google.container.v1.ClusterManager * @typedef ListClustersCallback * @type {function} @@ -123,7 +123,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#getCluster}. + * Callback as used by {@link google.container.v1.ClusterManager|getCluster}. * @memberof google.container.v1.ClusterManager * @typedef GetClusterCallback * @type {function} @@ -156,7 +156,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#createCluster}. + * Callback as used by {@link google.container.v1.ClusterManager|createCluster}. * @memberof google.container.v1.ClusterManager * @typedef CreateClusterCallback * @type {function} @@ -189,7 +189,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#updateCluster}. + * Callback as used by {@link google.container.v1.ClusterManager|updateCluster}. * @memberof google.container.v1.ClusterManager * @typedef UpdateClusterCallback * @type {function} @@ -222,7 +222,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#updateNodePool}. + * Callback as used by {@link google.container.v1.ClusterManager|updateNodePool}. * @memberof google.container.v1.ClusterManager * @typedef UpdateNodePoolCallback * @type {function} @@ -255,7 +255,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolAutoscaling}. + * Callback as used by {@link google.container.v1.ClusterManager|setNodePoolAutoscaling}. * @memberof google.container.v1.ClusterManager * @typedef SetNodePoolAutoscalingCallback * @type {function} @@ -288,7 +288,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setLoggingService}. + * Callback as used by {@link google.container.v1.ClusterManager|setLoggingService}. * @memberof google.container.v1.ClusterManager * @typedef SetLoggingServiceCallback * @type {function} @@ -321,7 +321,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setMonitoringService}. + * Callback as used by {@link google.container.v1.ClusterManager|setMonitoringService}. * @memberof google.container.v1.ClusterManager * @typedef SetMonitoringServiceCallback * @type {function} @@ -354,7 +354,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setAddonsConfig}. + * Callback as used by {@link google.container.v1.ClusterManager|setAddonsConfig}. * @memberof google.container.v1.ClusterManager * @typedef SetAddonsConfigCallback * @type {function} @@ -387,7 +387,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setLocations}. + * Callback as used by {@link google.container.v1.ClusterManager|setLocations}. * @memberof google.container.v1.ClusterManager * @typedef SetLocationsCallback * @type {function} @@ -420,7 +420,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#updateMaster}. + * Callback as used by {@link google.container.v1.ClusterManager|updateMaster}. * @memberof google.container.v1.ClusterManager * @typedef UpdateMasterCallback * @type {function} @@ -453,7 +453,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setMasterAuth}. + * Callback as used by {@link google.container.v1.ClusterManager|setMasterAuth}. * @memberof google.container.v1.ClusterManager * @typedef SetMasterAuthCallback * @type {function} @@ -486,7 +486,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#deleteCluster}. + * Callback as used by {@link google.container.v1.ClusterManager|deleteCluster}. * @memberof google.container.v1.ClusterManager * @typedef DeleteClusterCallback * @type {function} @@ -519,7 +519,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#listOperations}. + * Callback as used by {@link google.container.v1.ClusterManager|listOperations}. * @memberof google.container.v1.ClusterManager * @typedef ListOperationsCallback * @type {function} @@ -552,7 +552,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#getOperation}. + * Callback as used by {@link google.container.v1.ClusterManager|getOperation}. * @memberof google.container.v1.ClusterManager * @typedef GetOperationCallback * @type {function} @@ -585,7 +585,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#cancelOperation}. + * Callback as used by {@link google.container.v1.ClusterManager|cancelOperation}. * @memberof google.container.v1.ClusterManager * @typedef CancelOperationCallback * @type {function} @@ -618,7 +618,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#getServerConfig}. + * Callback as used by {@link google.container.v1.ClusterManager|getServerConfig}. * @memberof google.container.v1.ClusterManager * @typedef GetServerConfigCallback * @type {function} @@ -651,7 +651,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#getJSONWebKeys}. + * Callback as used by {@link google.container.v1.ClusterManager|getJSONWebKeys}. * @memberof google.container.v1.ClusterManager * @typedef GetJSONWebKeysCallback * @type {function} @@ -684,7 +684,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#listNodePools}. + * Callback as used by {@link google.container.v1.ClusterManager|listNodePools}. * @memberof google.container.v1.ClusterManager * @typedef ListNodePoolsCallback * @type {function} @@ -717,7 +717,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#getNodePool}. + * Callback as used by {@link google.container.v1.ClusterManager|getNodePool}. * @memberof google.container.v1.ClusterManager * @typedef GetNodePoolCallback * @type {function} @@ -750,7 +750,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#createNodePool}. + * Callback as used by {@link google.container.v1.ClusterManager|createNodePool}. * @memberof google.container.v1.ClusterManager * @typedef CreateNodePoolCallback * @type {function} @@ -783,7 +783,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#deleteNodePool}. + * Callback as used by {@link google.container.v1.ClusterManager|deleteNodePool}. * @memberof google.container.v1.ClusterManager * @typedef DeleteNodePoolCallback * @type {function} @@ -816,7 +816,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#completeNodePoolUpgrade}. + * Callback as used by {@link google.container.v1.ClusterManager|completeNodePoolUpgrade}. * @memberof google.container.v1.ClusterManager * @typedef CompleteNodePoolUpgradeCallback * @type {function} @@ -849,7 +849,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#rollbackNodePoolUpgrade}. + * Callback as used by {@link google.container.v1.ClusterManager|rollbackNodePoolUpgrade}. * @memberof google.container.v1.ClusterManager * @typedef RollbackNodePoolUpgradeCallback * @type {function} @@ -882,7 +882,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolManagement}. + * Callback as used by {@link google.container.v1.ClusterManager|setNodePoolManagement}. * @memberof google.container.v1.ClusterManager * @typedef SetNodePoolManagementCallback * @type {function} @@ -915,7 +915,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setLabels}. + * Callback as used by {@link google.container.v1.ClusterManager|setLabels}. * @memberof google.container.v1.ClusterManager * @typedef SetLabelsCallback * @type {function} @@ -948,7 +948,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setLegacyAbac}. + * Callback as used by {@link google.container.v1.ClusterManager|setLegacyAbac}. * @memberof google.container.v1.ClusterManager * @typedef SetLegacyAbacCallback * @type {function} @@ -981,7 +981,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#startIPRotation}. + * Callback as used by {@link google.container.v1.ClusterManager|startIPRotation}. * @memberof google.container.v1.ClusterManager * @typedef StartIPRotationCallback * @type {function} @@ -1014,7 +1014,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#completeIPRotation}. + * Callback as used by {@link google.container.v1.ClusterManager|completeIPRotation}. * @memberof google.container.v1.ClusterManager * @typedef CompleteIPRotationCallback * @type {function} @@ -1047,7 +1047,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setNodePoolSize}. + * Callback as used by {@link google.container.v1.ClusterManager|setNodePoolSize}. * @memberof google.container.v1.ClusterManager * @typedef SetNodePoolSizeCallback * @type {function} @@ -1080,7 +1080,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setNetworkPolicy}. + * Callback as used by {@link google.container.v1.ClusterManager|setNetworkPolicy}. * @memberof google.container.v1.ClusterManager * @typedef SetNetworkPolicyCallback * @type {function} @@ -1113,7 +1113,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#setMaintenancePolicy}. + * Callback as used by {@link google.container.v1.ClusterManager|setMaintenancePolicy}. * @memberof google.container.v1.ClusterManager * @typedef SetMaintenancePolicyCallback * @type {function} @@ -1146,7 +1146,7 @@ */ /** - * Callback as used by {@link google.container.v1.ClusterManager#listUsableSubnetworks}. + * Callback as used by {@link google.container.v1.ClusterManager|listUsableSubnetworks}. * @memberof google.container.v1.ClusterManager * @typedef ListUsableSubnetworksCallback * @type {function} @@ -1275,28 +1275,29 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (message.sysctls === $util.emptyObject) - message.sysctls = {}; - 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; + case 1: { + if (message.sysctls === $util.emptyObject) + message.sysctls = {}; + 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.sysctls[key] = value; + break; } - message.sysctls[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -1400,6 +1401,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for LinuxNodeConfig + * @function getTypeUrl + * @memberof google.container.v1.LinuxNodeConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LinuxNodeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.LinuxNodeConfig"; + }; + return LinuxNodeConfig; })(); @@ -1528,18 +1544,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.cpuManagerPolicy = reader.string(); - break; - case 2: - message.cpuCfsQuota = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 3: - message.cpuCfsQuotaPeriod = reader.string(); - break; - case 4: - message.podPidsLimit = reader.int64(); - break; + case 1: { + message.cpuManagerPolicy = reader.string(); + break; + } + case 2: { + message.cpuCfsQuota = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } + case 3: { + message.cpuCfsQuotaPeriod = reader.string(); + break; + } + case 4: { + message.podPidsLimit = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -1673,6 +1693,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodeKubeletConfig + * @function getTypeUrl + * @memberof google.container.v1.NodeKubeletConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeKubeletConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodeKubeletConfig"; + }; + return NodeKubeletConfig; })(); @@ -2066,133 +2101,160 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.machineType = reader.string(); - break; - case 2: - message.diskSizeGb = reader.int32(); - break; - case 3: - if (!(message.oauthScopes && message.oauthScopes.length)) - message.oauthScopes = []; - message.oauthScopes.push(reader.string()); - break; - case 9: - message.serviceAccount = reader.string(); - break; - case 4: - if (message.metadata === $util.emptyObject) - message.metadata = {}; - 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; + case 1: { + message.machineType = reader.string(); + break; + } + case 2: { + message.diskSizeGb = reader.int32(); + break; + } + case 3: { + if (!(message.oauthScopes && message.oauthScopes.length)) + message.oauthScopes = []; + message.oauthScopes.push(reader.string()); + break; + } + case 9: { + message.serviceAccount = reader.string(); + break; + } + case 4: { + if (message.metadata === $util.emptyObject) + message.metadata = {}; + 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.metadata[key] = value; + break; } - message.metadata[key] = value; - break; - case 5: - message.imageType = reader.string(); - break; - case 6: - if (message.labels === $util.emptyObject) - message.labels = {}; - 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; + case 5: { + message.imageType = reader.string(); + break; + } + case 6: { + if (message.labels === $util.emptyObject) + message.labels = {}; + 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.labels[key] = value; + break; + } + case 7: { + message.localSsdCount = reader.int32(); + break; + } + case 8: { + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + } + case 10: { + message.preemptible = reader.bool(); + break; + } + case 11: { + if (!(message.accelerators && message.accelerators.length)) + message.accelerators = []; + message.accelerators.push($root.google.container.v1.AcceleratorConfig.decode(reader, reader.uint32())); + break; + } + case 12: { + message.diskType = reader.string(); + break; + } + 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 21: { + message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.decode(reader, reader.uint32()); + break; + } + case 22: { + message.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); + break; + } + case 23: { + message.bootDiskKmsKey = reader.string(); + break; + } + case 25: { + message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); + break; + } + case 26: { + message.advancedMachineFeatures = $root.google.container.v1.AdvancedMachineFeatures.decode(reader, reader.uint32()); + break; + } + case 29: { + message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); + break; + } + case 32: { + message.spot = reader.bool(); + break; + } + case 35: { + message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); + break; } - message.labels[key] = value; - break; - case 7: - message.localSsdCount = reader.int32(); - break; - case 8: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - case 10: - message.preemptible = reader.bool(); - break; - case 11: - if (!(message.accelerators && message.accelerators.length)) - message.accelerators = []; - message.accelerators.push($root.google.container.v1.AcceleratorConfig.decode(reader, reader.uint32())); - break; - case 12: - message.diskType = reader.string(); - break; - 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 21: - message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.decode(reader, reader.uint32()); - break; - case 22: - message.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); - break; - case 23: - message.bootDiskKmsKey = reader.string(); - break; - case 25: - message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); - break; - case 26: - message.advancedMachineFeatures = $root.google.container.v1.AdvancedMachineFeatures.decode(reader, reader.uint32()); - break; - case 29: - message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); - break; - case 32: - message.spot = reader.bool(); - break; - case 35: - message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -2630,6 +2692,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodeConfig + * @function getTypeUrl + * @memberof google.container.v1.NodeConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodeConfig"; + }; + return NodeConfig; })(); @@ -2739,9 +2816,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.threadsPerCore = reader.int64(); - break; + case 1: { + message.threadsPerCore = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -2845,6 +2923,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AdvancedMachineFeatures + * @function getTypeUrl + * @memberof google.container.v1.AdvancedMachineFeatures + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AdvancedMachineFeatures.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.AdvancedMachineFeatures"; + }; + return AdvancedMachineFeatures; })(); @@ -2987,18 +3080,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 4: - message.createPodRange = reader.bool(); - break; - case 5: - message.podRange = reader.string(); - break; - case 6: - message.podIpv4CidrBlock = reader.string(); - break; - case 11: - message.networkPerformanceConfig = $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.decode(reader, reader.uint32()); - break; + case 4: { + message.createPodRange = reader.bool(); + break; + } + case 5: { + message.podRange = reader.string(); + break; + } + case 6: { + message.podIpv4CidrBlock = reader.string(); + break; + } + case 11: { + message.networkPerformanceConfig = $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -3124,6 +3221,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodeNetworkConfig + * @function getTypeUrl + * @memberof google.container.v1.NodeNetworkConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeNetworkConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodeNetworkConfig"; + }; + NodeNetworkConfig.NetworkPerformanceConfig = (function() { /** @@ -3230,9 +3342,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.totalEgressBandwidthTier = reader.int32(); - break; + case 1: { + message.totalEgressBandwidthTier = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -3339,6 +3452,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NetworkPerformanceConfig + * @function getTypeUrl + * @memberof google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkPerformanceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig"; + }; + /** * Tier enum. * @name google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier @@ -3462,12 +3590,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enableSecureBoot = reader.bool(); - break; - case 2: - message.enableIntegrityMonitoring = reader.bool(); - break; + case 1: { + message.enableSecureBoot = reader.bool(); + break; + } + case 2: { + message.enableIntegrityMonitoring = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -3566,6 +3696,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ShieldedInstanceConfig + * @function getTypeUrl + * @memberof google.container.v1.ShieldedInstanceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ShieldedInstanceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ShieldedInstanceConfig"; + }; + return ShieldedInstanceConfig; })(); @@ -3661,9 +3806,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.type = reader.int32(); - break; + case 2: { + message.type = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -3766,6 +3912,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SandboxConfig + * @function getTypeUrl + * @memberof google.container.v1.SandboxConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SandboxConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SandboxConfig"; + }; + /** * Type enum. * @name google.container.v1.SandboxConfig.Type @@ -3875,9 +4036,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -3967,6 +4129,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GcfsConfig + * @function getTypeUrl + * @memberof google.container.v1.GcfsConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GcfsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GcfsConfig"; + }; + return GcfsConfig; })(); @@ -4086,17 +4263,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.consumeReservationType = reader.int32(); - break; - case 2: - message.key = reader.string(); - break; - case 3: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; + case 1: { + message.consumeReservationType = reader.int32(); + break; + } + case 2: { + message.key = reader.string(); + break; + } + case 3: { + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -4239,6 +4419,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ReservationAffinity + * @function getTypeUrl + * @memberof google.container.v1.ReservationAffinity + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservationAffinity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ReservationAffinity"; + }; + /** * Type enum. * @name google.container.v1.ReservationAffinity.Type @@ -4374,15 +4569,18 @@ 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(); - break; + case 1: { + message.key = reader.string(); + break; + } + case 2: { + message.value = reader.string(); + break; + } + case 3: { + message.effect = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -4512,6 +4710,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodeTaint + * @function getTypeUrl + * @memberof google.container.v1.NodeTaint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeTaint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodeTaint"; + }; + /** * Effect enum. * @name google.container.v1.NodeTaint.Effect @@ -4627,11 +4840,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.taints && message.taints.length)) - message.taints = []; - message.taints.push($root.google.container.v1.NodeTaint.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.taints && message.taints.length)) + message.taints = []; + message.taints.push($root.google.container.v1.NodeTaint.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -4738,6 +4952,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodeTaints + * @function getTypeUrl + * @memberof google.container.v1.NodeTaints + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeTaints.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodeTaints"; + }; + return NodeTaints; })(); @@ -4835,28 +5064,29 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (message.labels === $util.emptyObject) - message.labels = {}; - 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; + case 1: { + if (message.labels === $util.emptyObject) + message.labels = {}; + 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.labels[key] = value; + break; } - message.labels[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -4960,6 +5190,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodeLabels + * @function getTypeUrl + * @memberof google.container.v1.NodeLabels + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeLabels.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodeLabels"; + }; + return NodeLabels; })(); @@ -5057,11 +5302,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; + case 1: { + if (!(message.tags && message.tags.length)) + message.tags = []; + message.tags.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -5163,6 +5409,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NetworkTags + * @function getTypeUrl + * @memberof google.container.v1.NetworkTags + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkTags.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NetworkTags"; + }; + return NetworkTags; })(); @@ -5313,24 +5574,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.username = reader.string(); - break; - case 2: - message.password = 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(); - break; + case 1: { + message.username = reader.string(); + break; + } + case 2: { + message.password = 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(); + break; + } default: reader.skipType(tag & 7); break; @@ -5466,6 +5733,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MasterAuth + * @function getTypeUrl + * @memberof google.container.v1.MasterAuth + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MasterAuth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MasterAuth"; + }; + return MasterAuth; })(); @@ -5561,9 +5843,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.issueClientCertificate = reader.bool(); - break; + case 1: { + message.issueClientCertificate = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -5653,6 +5936,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ClientCertificateConfig + * @function getTypeUrl + * @memberof google.container.v1.ClientCertificateConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ClientCertificateConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ClientCertificateConfig"; + }; + return ClientCertificateConfig; })(); @@ -5836,33 +6134,42 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - 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; - case 11: - message.gcePersistentDiskCsiDriverConfig = $root.google.container.v1.GcePersistentDiskCsiDriverConfig.decode(reader, reader.uint32()); - break; - case 14: - message.gcpFilestoreCsiDriverConfig = $root.google.container.v1.GcpFilestoreCsiDriverConfig.decode(reader, reader.uint32()); - break; + case 1: { + 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; + } + case 11: { + message.gcePersistentDiskCsiDriverConfig = $root.google.container.v1.GcePersistentDiskCsiDriverConfig.decode(reader, reader.uint32()); + break; + } + case 14: { + message.gcpFilestoreCsiDriverConfig = $root.google.container.v1.GcpFilestoreCsiDriverConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -6062,6 +6369,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AddonsConfig + * @function getTypeUrl + * @memberof google.container.v1.AddonsConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AddonsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.AddonsConfig"; + }; + return AddonsConfig; })(); @@ -6157,9 +6479,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.disabled = reader.bool(); - break; + case 1: { + message.disabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -6249,6 +6572,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for HttpLoadBalancing + * @function getTypeUrl + * @memberof google.container.v1.HttpLoadBalancing + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpLoadBalancing.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.HttpLoadBalancing"; + }; + return HttpLoadBalancing; })(); @@ -6344,9 +6682,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.disabled = reader.bool(); - break; + case 1: { + message.disabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -6436,6 +6775,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for HorizontalPodAutoscaling + * @function getTypeUrl + * @memberof google.container.v1.HorizontalPodAutoscaling + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HorizontalPodAutoscaling.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.HorizontalPodAutoscaling"; + }; + return HorizontalPodAutoscaling; })(); @@ -6531,9 +6885,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.disabled = reader.bool(); - break; + case 1: { + message.disabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -6623,6 +6978,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for KubernetesDashboard + * @function getTypeUrl + * @memberof google.container.v1.KubernetesDashboard + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + KubernetesDashboard.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.KubernetesDashboard"; + }; + return KubernetesDashboard; })(); @@ -6718,9 +7088,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.disabled = reader.bool(); - break; + case 1: { + message.disabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -6810,6 +7181,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NetworkPolicyConfig + * @function getTypeUrl + * @memberof google.container.v1.NetworkPolicyConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkPolicyConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NetworkPolicyConfig"; + }; + return NetworkPolicyConfig; })(); @@ -6905,9 +7291,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -6997,6 +7384,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DnsCacheConfig + * @function getTypeUrl + * @memberof google.container.v1.DnsCacheConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DnsCacheConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.DnsCacheConfig"; + }; + return DnsCacheConfig; })(); @@ -7092,9 +7494,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -7184,6 +7587,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for PrivateClusterMasterGlobalAccessConfig + * @function getTypeUrl + * @memberof google.container.v1.PrivateClusterMasterGlobalAccessConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateClusterMasterGlobalAccessConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.PrivateClusterMasterGlobalAccessConfig"; + }; + return PrivateClusterMasterGlobalAccessConfig; })(); @@ -7345,27 +7763,34 @@ 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(); - break; - case 7: - message.peeringName = reader.string(); - break; - case 8: - message.masterGlobalAccessConfig = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.decode(reader, reader.uint32()); - break; + 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(); + 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); break; @@ -7509,6 +7934,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for PrivateClusterConfig + * @function getTypeUrl + * @memberof google.container.v1.PrivateClusterConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PrivateClusterConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.PrivateClusterConfig"; + }; + return PrivateClusterConfig; })(); @@ -7615,12 +8055,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - case 2: - message.securityGroup = reader.string(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + message.securityGroup = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -7719,6 +8161,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AuthenticatorGroupsConfig + * @function getTypeUrl + * @memberof google.container.v1.AuthenticatorGroupsConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AuthenticatorGroupsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.AuthenticatorGroupsConfig"; + }; + return AuthenticatorGroupsConfig; })(); @@ -7825,12 +8282,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.disabled = reader.bool(); - break; - case 3: - message.loadBalancerType = reader.int32(); - break; + case 1: { + message.disabled = reader.bool(); + break; + } + case 3: { + message.loadBalancerType = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -7947,6 +8406,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CloudRunConfig + * @function getTypeUrl + * @memberof google.container.v1.CloudRunConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CloudRunConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.CloudRunConfig"; + }; + /** * LoadBalancerType enum. * @name google.container.v1.CloudRunConfig.LoadBalancerType @@ -8058,9 +8532,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -8150,6 +8625,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ConfigConnectorConfig + * @function getTypeUrl + * @memberof google.container.v1.ConfigConnectorConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConfigConnectorConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ConfigConnectorConfig"; + }; + return ConfigConnectorConfig; })(); @@ -8245,9 +8735,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -8337,6 +8828,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GcePersistentDiskCsiDriverConfig + * @function getTypeUrl + * @memberof google.container.v1.GcePersistentDiskCsiDriverConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GcePersistentDiskCsiDriverConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GcePersistentDiskCsiDriverConfig"; + }; + return GcePersistentDiskCsiDriverConfig; })(); @@ -8432,9 +8938,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -8524,6 +9031,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GcpFilestoreCsiDriverConfig + * @function getTypeUrl + * @memberof google.container.v1.GcpFilestoreCsiDriverConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GcpFilestoreCsiDriverConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GcpFilestoreCsiDriverConfig"; + }; + return GcpFilestoreCsiDriverConfig; })(); @@ -8632,14 +9154,16 @@ 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; + 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; @@ -8755,6 +9279,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MasterAuthorizedNetworksConfig + * @function getTypeUrl + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MasterAuthorizedNetworksConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MasterAuthorizedNetworksConfig"; + }; + MasterAuthorizedNetworksConfig.CidrBlock = (function() { /** @@ -8858,12 +9397,14 @@ 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; + case 1: { + message.displayName = reader.string(); + break; + } + case 2: { + message.cidrBlock = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -8962,6 +9503,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CidrBlock + * @function getTypeUrl + * @memberof google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CidrBlock.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock"; + }; + return CidrBlock; })(); @@ -9060,9 +9616,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -9152,6 +9709,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for LegacyAbac + * @function getTypeUrl + * @memberof google.container.v1.LegacyAbac + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LegacyAbac.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.LegacyAbac"; + }; + return LegacyAbac; })(); @@ -9258,12 +9830,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.provider = reader.int32(); - break; - case 2: - message.enabled = reader.bool(); - break; + case 1: { + message.provider = reader.int32(); + break; + } + case 2: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -9375,6 +9949,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NetworkPolicy + * @function getTypeUrl + * @memberof google.container.v1.NetworkPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NetworkPolicy"; + }; + /** * Provider enum. * @name google.container.v1.NetworkPolicy.Provider @@ -9495,12 +10084,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - case 2: - message.evaluationMode = reader.int32(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + message.evaluationMode = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -9617,6 +10208,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BinaryAuthorization + * @function getTypeUrl + * @memberof google.container.v1.BinaryAuthorization + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BinaryAuthorization.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.BinaryAuthorization"; + }; + /** * EvaluationMode enum. * @name google.container.v1.BinaryAuthorization.EvaluationMode @@ -9860,45 +10466,58 @@ 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; + 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; @@ -10085,6 +10704,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for IPAllocationPolicy + * @function getTypeUrl + * @memberof google.container.v1.IPAllocationPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IPAllocationPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.IPAllocationPolicy"; + }; + return IPAllocationPolicy; })(); @@ -10864,216 +11498,277 @@ 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; + 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 67: { + message.meshCertificates = $root.google.container.v1.MeshCertificates.decode(reader, reader.uint32()); + break; + } + case 49: { + message.notificationConfig = $root.google.container.v1.NotificationConfig.decode(reader, reader.uint32()); + break; + } + case 50: { + message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); + break; + } + case 54: { + message.identityServiceConfig = $root.google.container.v1.IdentityServiceConfig.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; + } + case 128: { + message.autopilot = $root.google.container.v1.Autopilot.decode(reader, reader.uint32()); + break; + } + case 129: { + message.id = reader.string(); + break; + } + case 131: { + message.nodePoolDefaults = $root.google.container.v1.NodePoolDefaults.decode(reader, reader.uint32()); + break; + } + case 132: { + message.loggingConfig = $root.google.container.v1.LoggingConfig.decode(reader, reader.uint32()); + break; + } + case 133: { + message.monitoringConfig = $root.google.container.v1.MonitoringConfig.decode(reader, reader.uint32()); + break; + } + case 136: { + message.nodePoolAutoConfig = $root.google.container.v1.NodePoolAutoConfig.decode(reader, reader.uint32()); + 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 67: - message.meshCertificates = $root.google.container.v1.MeshCertificates.decode(reader, reader.uint32()); - break; - case 49: - message.notificationConfig = $root.google.container.v1.NotificationConfig.decode(reader, reader.uint32()); - break; - case 50: - message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); - break; - case 54: - message.identityServiceConfig = $root.google.container.v1.IdentityServiceConfig.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; - case 128: - message.autopilot = $root.google.container.v1.Autopilot.decode(reader, reader.uint32()); - break; - case 129: - message.id = reader.string(); - break; - case 131: - message.nodePoolDefaults = $root.google.container.v1.NodePoolDefaults.decode(reader, reader.uint32()); - break; - case 132: - message.loggingConfig = $root.google.container.v1.LoggingConfig.decode(reader, reader.uint32()); - break; - case 133: - message.monitoringConfig = $root.google.container.v1.MonitoringConfig.decode(reader, reader.uint32()); - break; - case 136: - message.nodePoolAutoConfig = $root.google.container.v1.NodePoolAutoConfig.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -11908,6 +12603,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Cluster + * @function getTypeUrl + * @memberof google.container.v1.Cluster + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Cluster.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.Cluster"; + }; + /** * Status enum. * @name google.container.v1.Cluster.Status @@ -12027,9 +12737,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.networkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); - break; + case 1: { + message.networkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -12124,6 +12835,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodePoolAutoConfig + * @function getTypeUrl + * @memberof google.container.v1.NodePoolAutoConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodePoolAutoConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePoolAutoConfig"; + }; + return NodePoolAutoConfig; })(); @@ -12219,9 +12945,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.decode(reader, reader.uint32()); - break; + case 1: { + message.nodeConfigDefaults = $root.google.container.v1.NodeConfigDefaults.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -12316,6 +13043,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodePoolDefaults + * @function getTypeUrl + * @memberof google.container.v1.NodePoolDefaults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodePoolDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePoolDefaults"; + }; + return NodePoolDefaults; })(); @@ -12411,9 +13153,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); - break; + case 1: { + message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -12508,6 +13251,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodeConfigDefaults + * @function getTypeUrl + * @memberof google.container.v1.NodeConfigDefaults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeConfigDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodeConfigDefaults"; + }; + return NodeConfigDefaults; })(); @@ -12968,110 +13726,144 @@ 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 67: - message.desiredMeshCertificates = $root.google.container.v1.MeshCertificates.decode(reader, reader.uint32()); - break; - case 48: - message.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.decode(reader, reader.uint32()); - break; - case 53: - message.desiredDnsConfig = $root.google.container.v1.DNSConfig.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 39: - message.desiredL4ilbSubsettingConfig = $root.google.container.v1.ILBSubsettingConfig.decode(reader, reader.uint32()); - break; - case 50: - message.desiredDatapathProvider = reader.int32(); - break; - case 51: - message.desiredPrivateIpv6GoogleAccess = reader.int32(); - break; - case 55: - message.desiredNotificationConfig = $root.google.container.v1.NotificationConfig.decode(reader, reader.uint32()); - break; - case 63: - message.desiredAuthenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.decode(reader, reader.uint32()); - break; - case 64: - message.desiredLoggingConfig = $root.google.container.v1.LoggingConfig.decode(reader, reader.uint32()); - break; - case 65: - message.desiredMonitoringConfig = $root.google.container.v1.MonitoringConfig.decode(reader, reader.uint32()); - break; - case 66: - message.desiredIdentityServiceConfig = $root.google.container.v1.IdentityServiceConfig.decode(reader, reader.uint32()); - break; - case 60: - message.desiredServiceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.decode(reader, reader.uint32()); - break; - case 100: - message.desiredMasterVersion = reader.string(); - break; - case 109: - message.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); - break; - case 110: - message.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); - break; + 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 67: { + message.desiredMeshCertificates = $root.google.container.v1.MeshCertificates.decode(reader, reader.uint32()); + break; + } + case 48: { + message.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.decode(reader, reader.uint32()); + break; + } + case 53: { + message.desiredDnsConfig = $root.google.container.v1.DNSConfig.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 39: { + message.desiredL4ilbSubsettingConfig = $root.google.container.v1.ILBSubsettingConfig.decode(reader, reader.uint32()); + break; + } + case 50: { + message.desiredDatapathProvider = reader.int32(); + break; + } + case 51: { + message.desiredPrivateIpv6GoogleAccess = reader.int32(); + break; + } + case 55: { + message.desiredNotificationConfig = $root.google.container.v1.NotificationConfig.decode(reader, reader.uint32()); + break; + } + case 63: { + message.desiredAuthenticatorGroupsConfig = $root.google.container.v1.AuthenticatorGroupsConfig.decode(reader, reader.uint32()); + break; + } + case 64: { + message.desiredLoggingConfig = $root.google.container.v1.LoggingConfig.decode(reader, reader.uint32()); + break; + } + case 65: { + message.desiredMonitoringConfig = $root.google.container.v1.MonitoringConfig.decode(reader, reader.uint32()); + break; + } + case 66: { + message.desiredIdentityServiceConfig = $root.google.container.v1.IdentityServiceConfig.decode(reader, reader.uint32()); + break; + } + case 60: { + message.desiredServiceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.decode(reader, reader.uint32()); + break; + } + case 100: { + message.desiredMasterVersion = reader.string(); + break; + } + case 109: { + message.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); + break; + } + case 110: { + message.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -13605,6 +14397,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ClusterUpdate + * @function getTypeUrl + * @memberof google.container.v1.ClusterUpdate + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ClusterUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ClusterUpdate"; + }; + return ClusterUpdate; })(); @@ -13858,55 +14665,70 @@ 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; - case 15: - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; + 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; + } + case 15: { + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -14271,6 +15093,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Operation + * @function getTypeUrl + * @memberof google.container.v1.Operation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Operation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.Operation"; + }; + /** * Status enum. * @name google.container.v1.Operation.Status @@ -14467,22 +15304,26 @@ 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; + 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; @@ -14661,6 +15502,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for OperationProgress + * @function getTypeUrl + * @memberof google.container.v1.OperationProgress + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OperationProgress.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.OperationProgress"; + }; + OperationProgress.Metric = (function() { /** @@ -14800,18 +15656,22 @@ 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; + 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; @@ -14952,6 +15812,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Metric + * @function getTypeUrl + * @memberof google.container.v1.OperationProgress.Metric + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Metric.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.OperationProgress.Metric"; + }; + return Metric; })(); @@ -15083,18 +15958,22 @@ 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; + 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; @@ -15214,6 +16093,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateClusterRequest + * @function getTypeUrl + * @memberof google.container.v1.CreateClusterRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.CreateClusterRequest"; + }; + return CreateClusterRequest; })(); @@ -15342,18 +16236,22 @@ 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; + 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; @@ -15468,6 +16366,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetClusterRequest + * @function getTypeUrl + * @memberof google.container.v1.GetClusterRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GetClusterRequest"; + }; + return GetClusterRequest; })(); @@ -15607,21 +16520,26 @@ 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; + 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; @@ -15749,6 +16667,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateClusterRequest + * @function getTypeUrl + * @memberof google.container.v1.UpdateClusterRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.UpdateClusterRequest"; + }; + return UpdateClusterRequest; })(); @@ -16044,65 +16977,84 @@ 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; - case 16: - message.tags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); - break; - case 17: - message.taints = $root.google.container.v1.NodeTaints.decode(reader, reader.uint32()); - break; - case 18: - message.labels = $root.google.container.v1.NodeLabels.decode(reader, reader.uint32()); - break; - case 19: - message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.decode(reader, reader.uint32()); - break; - case 20: - message.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); - break; - case 21: - message.nodeNetworkConfig = $root.google.container.v1.NodeNetworkConfig.decode(reader, reader.uint32()); - break; - case 22: - message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); - break; - case 23: - message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); - break; - case 29: - message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); - break; + 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; + } + case 16: { + message.tags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); + break; + } + case 17: { + message.taints = $root.google.container.v1.NodeTaints.decode(reader, reader.uint32()); + break; + } + case 18: { + message.labels = $root.google.container.v1.NodeLabels.decode(reader, reader.uint32()); + break; + } + case 19: { + message.linuxNodeConfig = $root.google.container.v1.LinuxNodeConfig.decode(reader, reader.uint32()); + break; + } + case 20: { + message.kubeletConfig = $root.google.container.v1.NodeKubeletConfig.decode(reader, reader.uint32()); + break; + } + case 21: { + message.nodeNetworkConfig = $root.google.container.v1.NodeNetworkConfig.decode(reader, reader.uint32()); + break; + } + case 22: { + message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); + break; + } + case 23: { + message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); + break; + } + case 29: { + message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -16405,6 +17357,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateNodePoolRequest + * @function getTypeUrl + * @memberof google.container.v1.UpdateNodePoolRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateNodePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.UpdateNodePoolRequest"; + }; + return UpdateNodePoolRequest; })(); @@ -16555,24 +17522,30 @@ 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; + 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; @@ -16708,6 +17681,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetNodePoolAutoscalingRequest + * @function getTypeUrl + * @memberof google.container.v1.SetNodePoolAutoscalingRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetNodePoolAutoscalingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetNodePoolAutoscalingRequest"; + }; + return SetNodePoolAutoscalingRequest; })(); @@ -16847,21 +17835,26 @@ 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.loggingService = reader.string(); - break; - case 5: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + 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(); + break; + } default: reader.skipType(tag & 7); break; @@ -16984,6 +17977,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetLoggingServiceRequest + * @function getTypeUrl + * @memberof google.container.v1.SetLoggingServiceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetLoggingServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetLoggingServiceRequest"; + }; + return SetLoggingServiceRequest; })(); @@ -17123,21 +18131,26 @@ 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.monitoringService = reader.string(); - break; - case 6: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + 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(); + break; + } default: reader.skipType(tag & 7); break; @@ -17260,6 +18273,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetMonitoringServiceRequest + * @function getTypeUrl + * @memberof google.container.v1.SetMonitoringServiceRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetMonitoringServiceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetMonitoringServiceRequest"; + }; + return SetMonitoringServiceRequest; })(); @@ -17399,21 +18427,26 @@ 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.addonsConfig = $root.google.container.v1.AddonsConfig.decode(reader, reader.uint32()); - break; - case 6: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + 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()); + break; + } + case 6: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -17541,6 +18574,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetAddonsConfigRequest + * @function getTypeUrl + * @memberof google.container.v1.SetAddonsConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetAddonsConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetAddonsConfigRequest"; + }; + return SetAddonsConfigRequest; })(); @@ -17682,23 +18730,28 @@ 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: - if (!(message.locations && message.locations.length)) - message.locations = []; - message.locations.push(reader.string()); - break; - case 6: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + 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(); + break; + } default: reader.skipType(tag & 7); break; @@ -17834,6 +18887,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetLocationsRequest + * @function getTypeUrl + * @memberof google.container.v1.SetLocationsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetLocationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetLocationsRequest"; + }; + return SetLocationsRequest; })(); @@ -17973,21 +19041,26 @@ 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.masterVersion = reader.string(); - break; - case 7: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.clusterId = reader.string(); + break; + } + case 4: { + message.masterVersion = reader.string(); + break; + } + case 7: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -18110,6 +19183,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateMasterRequest + * @function getTypeUrl + * @memberof google.container.v1.UpdateMasterRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateMasterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.UpdateMasterRequest"; + }; + return UpdateMasterRequest; })(); @@ -18260,24 +19348,30 @@ 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()); - break; - case 7: - message.name = reader.string(); - break; + 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()); + break; + } + case 7: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -18436,6 +19530,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetMasterAuthRequest + * @function getTypeUrl + * @memberof google.container.v1.SetMasterAuthRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetMasterAuthRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetMasterAuthRequest"; + }; + /** * Action enum. * @name google.container.v1.SetMasterAuthRequest.Action @@ -18582,18 +19691,22 @@ 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.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.clusterId = reader.string(); + break; + } + case 4: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -18708,6 +19821,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteClusterRequest + * @function getTypeUrl + * @memberof google.container.v1.DeleteClusterRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteClusterRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.DeleteClusterRequest"; + }; + return DeleteClusterRequest; })(); @@ -18825,15 +19953,18 @@ 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 4: - message.parent = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 4: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -18940,6 +20071,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListClustersRequest + * @function getTypeUrl + * @memberof google.container.v1.ListClustersRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListClustersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ListClustersRequest"; + }; + return ListClustersRequest; })(); @@ -19050,16 +20196,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.clusters && message.clusters.length)) - message.clusters = []; - message.clusters.push($root.google.container.v1.Cluster.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.missingZones && message.missingZones.length)) - message.missingZones = []; - message.missingZones.push(reader.string()); - break; + case 1: { + if (!(message.clusters && message.clusters.length)) + message.clusters = []; + message.clusters.push($root.google.container.v1.Cluster.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.missingZones && message.missingZones.length)) + message.missingZones = []; + message.missingZones.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -19187,6 +20335,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListClustersResponse + * @function getTypeUrl + * @memberof google.container.v1.ListClustersResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListClustersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ListClustersResponse"; + }; + return ListClustersResponse; })(); @@ -19315,18 +20478,22 @@ 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.operationId = reader.string(); - break; - case 5: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.operationId = reader.string(); + break; + } + case 5: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -19441,6 +20608,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetOperationRequest + * @function getTypeUrl + * @memberof google.container.v1.GetOperationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GetOperationRequest"; + }; + return GetOperationRequest; })(); @@ -19558,15 +20740,18 @@ 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 4: - message.parent = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 4: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -19673,6 +20858,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListOperationsRequest + * @function getTypeUrl + * @memberof google.container.v1.ListOperationsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListOperationsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ListOperationsRequest"; + }; + return ListOperationsRequest; })(); @@ -19801,18 +21001,22 @@ 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.operationId = reader.string(); - break; - case 4: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.operationId = reader.string(); + break; + } + case 4: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -19927,6 +21131,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CancelOperationRequest + * @function getTypeUrl + * @memberof google.container.v1.CancelOperationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CancelOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.CancelOperationRequest"; + }; + return CancelOperationRequest; })(); @@ -20037,16 +21256,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.operations && message.operations.length)) - message.operations = []; - message.operations.push($root.google.container.v1.Operation.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.missingZones && message.missingZones.length)) - message.missingZones = []; - message.missingZones.push(reader.string()); - break; + case 1: { + if (!(message.operations && message.operations.length)) + message.operations = []; + message.operations.push($root.google.container.v1.Operation.decode(reader, reader.uint32())); + break; + } + case 2: { + if (!(message.missingZones && message.missingZones.length)) + message.missingZones = []; + message.missingZones.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -20174,6 +21395,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListOperationsResponse + * @function getTypeUrl + * @memberof google.container.v1.ListOperationsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListOperationsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ListOperationsResponse"; + }; + return ListOperationsResponse; })(); @@ -20291,15 +21527,18 @@ 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 4: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 4: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -20406,6 +21645,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetServerConfigRequest + * @function getTypeUrl + * @memberof google.container.v1.GetServerConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetServerConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GetServerConfigRequest"; + }; + return GetServerConfigRequest; })(); @@ -20564,32 +21818,38 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.defaultClusterVersion = reader.string(); - break; - case 3: - if (!(message.validNodeVersions && message.validNodeVersions.length)) - message.validNodeVersions = []; - message.validNodeVersions.push(reader.string()); - break; - case 4: - message.defaultImageType = reader.string(); - break; - case 5: - if (!(message.validImageTypes && message.validImageTypes.length)) - message.validImageTypes = []; - message.validImageTypes.push(reader.string()); - break; - case 6: - if (!(message.validMasterVersions && message.validMasterVersions.length)) - message.validMasterVersions = []; - message.validMasterVersions.push(reader.string()); - break; - case 9: - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push($root.google.container.v1.ServerConfig.ReleaseChannelConfig.decode(reader, reader.uint32())); - break; + case 1: { + message.defaultClusterVersion = reader.string(); + break; + } + case 3: { + if (!(message.validNodeVersions && message.validNodeVersions.length)) + message.validNodeVersions = []; + message.validNodeVersions.push(reader.string()); + break; + } + case 4: { + message.defaultImageType = reader.string(); + break; + } + case 5: { + if (!(message.validImageTypes && message.validImageTypes.length)) + message.validImageTypes = []; + message.validImageTypes.push(reader.string()); + break; + } + case 6: { + if (!(message.validMasterVersions && message.validMasterVersions.length)) + message.validMasterVersions = []; + message.validMasterVersions.push(reader.string()); + break; + } + case 9: { + if (!(message.channels && message.channels.length)) + message.channels = []; + message.channels.push($root.google.container.v1.ServerConfig.ReleaseChannelConfig.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -20775,6 +22035,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ServerConfig + * @function getTypeUrl + * @memberof google.container.v1.ServerConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServerConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ServerConfig"; + }; + ServerConfig.ReleaseChannelConfig = (function() { /** @@ -20891,17 +22166,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.channel = reader.int32(); - break; - case 2: - message.defaultVersion = reader.string(); - break; - case 4: - if (!(message.validVersions && message.validVersions.length)) - message.validVersions = []; - message.validVersions.push(reader.string()); - break; + case 1: { + message.channel = reader.int32(); + break; + } + case 2: { + message.defaultVersion = reader.string(); + break; + } + case 4: { + if (!(message.validVersions && message.validVersions.length)) + message.validVersions = []; + message.validVersions.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -21044,6 +22322,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ReleaseChannelConfig + * @function getTypeUrl + * @memberof google.container.v1.ServerConfig.ReleaseChannelConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReleaseChannelConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ServerConfig.ReleaseChannelConfig"; + }; + return ReleaseChannelConfig; })(); @@ -21186,21 +22479,26 @@ 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.nodePool = $root.google.container.v1.NodePool.decode(reader, reader.uint32()); - break; - case 6: - message.parent = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.clusterId = reader.string(); + break; + } + case 4: { + message.nodePool = $root.google.container.v1.NodePool.decode(reader, reader.uint32()); + break; + } + case 6: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -21328,6 +22626,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CreateNodePoolRequest + * @function getTypeUrl + * @memberof google.container.v1.CreateNodePoolRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CreateNodePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.CreateNodePoolRequest"; + }; + return CreateNodePoolRequest; })(); @@ -21467,21 +22780,26 @@ 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 6: - message.name = reader.string(); - break; + 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 6: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -21604,6 +22922,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DeleteNodePoolRequest + * @function getTypeUrl + * @memberof google.container.v1.DeleteNodePoolRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DeleteNodePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.DeleteNodePoolRequest"; + }; + return DeleteNodePoolRequest; })(); @@ -21732,18 +23065,22 @@ 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.parent = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.clusterId = reader.string(); + break; + } + case 5: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -21858,6 +23195,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListNodePoolsRequest + * @function getTypeUrl + * @memberof google.container.v1.ListNodePoolsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNodePoolsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ListNodePoolsRequest"; + }; + return ListNodePoolsRequest; })(); @@ -21997,21 +23349,26 @@ 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 6: - message.name = reader.string(); - break; + 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 6: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -22134,6 +23491,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetNodePoolRequest + * @function getTypeUrl + * @memberof google.container.v1.GetNodePoolRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetNodePoolRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GetNodePoolRequest"; + }; + return GetNodePoolRequest; })(); @@ -22265,12 +23637,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.standardRolloutPolicy = $root.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.decode(reader, reader.uint32()); - break; - case 2: - message.nodePoolSoakDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; + case 1: { + message.standardRolloutPolicy = $root.google.container.v1.BlueGreenSettings.StandardRolloutPolicy.decode(reader, reader.uint32()); + break; + } + case 2: { + message.nodePoolSoakDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -22388,6 +23762,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BlueGreenSettings + * @function getTypeUrl + * @memberof google.container.v1.BlueGreenSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BlueGreenSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.BlueGreenSettings"; + }; + BlueGreenSettings.StandardRolloutPolicy = (function() { /** @@ -22527,15 +23916,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.batchPercentage = reader.float(); - break; - case 2: - message.batchNodeCount = reader.int32(); - break; - case 3: - message.batchSoakDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; + case 1: { + message.batchPercentage = reader.float(); + break; + } + case 2: { + message.batchNodeCount = reader.int32(); + break; + } + case 3: { + message.batchSoakDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -22661,6 +24053,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for StandardRolloutPolicy + * @function getTypeUrl + * @memberof google.container.v1.BlueGreenSettings.StandardRolloutPolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StandardRolloutPolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.BlueGreenSettings.StandardRolloutPolicy"; + }; + return StandardRolloutPolicy; })(); @@ -22941,63 +24348,80 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.config = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); - break; - case 3: - message.initialNodeCount = reader.int32(); - break; - case 13: - if (!(message.locations && message.locations.length)) - message.locations = []; - message.locations.push(reader.string()); - break; - case 14: - message.networkConfig = $root.google.container.v1.NodeNetworkConfig.decode(reader, reader.uint32()); - break; - case 100: - message.selfLink = reader.string(); - break; - case 101: - message.version = reader.string(); - break; - case 102: - if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) - message.instanceGroupUrls = []; - message.instanceGroupUrls.push(reader.string()); - break; - case 103: - message.status = reader.int32(); - break; - case 104: - message.statusMessage = reader.string(); - break; - case 4: - message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); - break; - case 5: - message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); - break; - case 6: - message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32()); - break; - case 105: - if (!(message.conditions && message.conditions.length)) - message.conditions = []; - message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); - break; - case 7: - message.podIpv4CidrSize = reader.int32(); - break; - case 107: - message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); - break; - case 109: - message.updateInfo = $root.google.container.v1.NodePool.UpdateInfo.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.config = $root.google.container.v1.NodeConfig.decode(reader, reader.uint32()); + break; + } + case 3: { + message.initialNodeCount = reader.int32(); + break; + } + case 13: { + if (!(message.locations && message.locations.length)) + message.locations = []; + message.locations.push(reader.string()); + break; + } + case 14: { + message.networkConfig = $root.google.container.v1.NodeNetworkConfig.decode(reader, reader.uint32()); + break; + } + case 100: { + message.selfLink = reader.string(); + break; + } + case 101: { + message.version = reader.string(); + break; + } + case 102: { + if (!(message.instanceGroupUrls && message.instanceGroupUrls.length)) + message.instanceGroupUrls = []; + message.instanceGroupUrls.push(reader.string()); + break; + } + case 103: { + message.status = reader.int32(); + break; + } + case 104: { + message.statusMessage = reader.string(); + break; + } + case 4: { + message.autoscaling = $root.google.container.v1.NodePoolAutoscaling.decode(reader, reader.uint32()); + break; + } + case 5: { + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + } + case 6: { + message.maxPodsConstraint = $root.google.container.v1.MaxPodsConstraint.decode(reader, reader.uint32()); + break; + } + case 105: { + if (!(message.conditions && message.conditions.length)) + message.conditions = []; + message.conditions.push($root.google.container.v1.StatusCondition.decode(reader, reader.uint32())); + break; + } + case 7: { + message.podIpv4CidrSize = reader.int32(); + break; + } + case 107: { + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); + break; + } + case 109: { + message.updateInfo = $root.google.container.v1.NodePool.UpdateInfo.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -23332,6 +24756,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodePool + * @function getTypeUrl + * @memberof google.container.v1.NodePool + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodePool.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePool"; + }; + NodePool.UpgradeSettings = (function() { /** @@ -23482,18 +24921,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.maxSurge = reader.int32(); - break; - case 2: - message.maxUnavailable = reader.int32(); - break; - case 3: - message.strategy = reader.int32(); - break; - case 4: - message.blueGreenSettings = $root.google.container.v1.BlueGreenSettings.decode(reader, reader.uint32()); - break; + case 1: { + message.maxSurge = reader.int32(); + break; + } + case 2: { + message.maxUnavailable = reader.int32(); + break; + } + case 3: { + message.strategy = reader.int32(); + break; + } + case 4: { + message.blueGreenSettings = $root.google.container.v1.BlueGreenSettings.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -23641,6 +25084,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpgradeSettings + * @function getTypeUrl + * @memberof google.container.v1.NodePool.UpgradeSettings + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpgradeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePool.UpgradeSettings"; + }; + return UpgradeSettings; })(); @@ -23736,9 +25194,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.blueGreenInfo = $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.decode(reader, reader.uint32()); - break; + case 1: { + message.blueGreenInfo = $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -23833,6 +25292,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpdateInfo + * @function getTypeUrl + * @memberof google.container.v1.NodePool.UpdateInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpdateInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePool.UpdateInfo"; + }; + UpdateInfo.BlueGreenInfo = (function() { /** @@ -23973,25 +25447,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.phase = reader.int32(); - break; - case 2: - if (!(message.blueInstanceGroupUrls && message.blueInstanceGroupUrls.length)) - message.blueInstanceGroupUrls = []; - message.blueInstanceGroupUrls.push(reader.string()); - break; - case 3: - if (!(message.greenInstanceGroupUrls && message.greenInstanceGroupUrls.length)) - message.greenInstanceGroupUrls = []; - message.greenInstanceGroupUrls.push(reader.string()); - break; - case 4: - message.bluePoolDeletionStartTime = reader.string(); - break; - case 5: - message.greenPoolVersion = reader.string(); - break; + case 1: { + message.phase = reader.int32(); + break; + } + case 2: { + if (!(message.blueInstanceGroupUrls && message.blueInstanceGroupUrls.length)) + message.blueInstanceGroupUrls = []; + message.blueInstanceGroupUrls.push(reader.string()); + break; + } + case 3: { + if (!(message.greenInstanceGroupUrls && message.greenInstanceGroupUrls.length)) + message.greenInstanceGroupUrls = []; + message.greenInstanceGroupUrls.push(reader.string()); + break; + } + case 4: { + message.bluePoolDeletionStartTime = reader.string(); + break; + } + case 5: { + message.greenPoolVersion = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -24183,6 +25662,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BlueGreenInfo + * @function getTypeUrl + * @memberof google.container.v1.NodePool.UpdateInfo.BlueGreenInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BlueGreenInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePool.UpdateInfo.BlueGreenInfo"; + }; + /** * Phase enum. * @name google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase @@ -24356,15 +25850,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.autoUpgrade = reader.bool(); - break; - case 2: - message.autoRepair = reader.bool(); - break; - case 10: - message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.autoUpgrade = reader.bool(); + break; + } + case 2: { + message.autoRepair = reader.bool(); + break; + } + case 10: { + message.upgradeOptions = $root.google.container.v1.AutoUpgradeOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -24476,6 +25973,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodeManagement + * @function getTypeUrl + * @memberof google.container.v1.NodeManagement + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodeManagement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodeManagement"; + }; + return NodeManagement; })(); @@ -24582,12 +26094,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.autoUpgradeStartTime = reader.string(); - break; - case 2: - message.description = reader.string(); - break; + case 1: { + message.autoUpgradeStartTime = reader.string(); + break; + } + case 2: { + message.description = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -24686,6 +26200,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AutoUpgradeOptions + * @function getTypeUrl + * @memberof google.container.v1.AutoUpgradeOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutoUpgradeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.AutoUpgradeOptions"; + }; + return AutoUpgradeOptions; })(); @@ -24792,12 +26321,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.window = $root.google.container.v1.MaintenanceWindow.decode(reader, reader.uint32()); - break; - case 3: - message.resourceVersion = reader.string(); - break; + case 1: { + message.window = $root.google.container.v1.MaintenanceWindow.decode(reader, reader.uint32()); + break; + } + case 3: { + message.resourceVersion = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -24901,6 +26432,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MaintenancePolicy + * @function getTypeUrl + * @memberof google.container.v1.MaintenancePolicy + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MaintenancePolicy.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MaintenancePolicy"; + }; + return MaintenancePolicy; })(); @@ -25036,34 +26582,37 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.decode(reader, reader.uint32()); - break; - case 3: - message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.decode(reader, reader.uint32()); - break; - case 4: - if (message.maintenanceExclusions === $util.emptyObject) - message.maintenanceExclusions = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; + case 2: { + message.dailyMaintenanceWindow = $root.google.container.v1.DailyMaintenanceWindow.decode(reader, reader.uint32()); + break; + } + case 3: { + message.recurringWindow = $root.google.container.v1.RecurringTimeWindow.decode(reader, reader.uint32()); + break; + } + case 4: { + if (message.maintenanceExclusions === $util.emptyObject) + message.maintenanceExclusions = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.maintenanceExclusions[key] = value; + break; } - message.maintenanceExclusions[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -25211,6 +26760,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MaintenanceWindow + * @function getTypeUrl + * @memberof google.container.v1.MaintenanceWindow + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MaintenanceWindow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MaintenanceWindow"; + }; + return MaintenanceWindow; })(); @@ -25342,15 +26906,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: - message.maintenanceExclusionOptions = $root.google.container.v1.MaintenanceExclusionOptions.decode(reader, reader.uint32()); - break; - case 1: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; + case 3: { + message.maintenanceExclusionOptions = $root.google.container.v1.MaintenanceExclusionOptions.decode(reader, reader.uint32()); + break; + } + case 1: { + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 2: { + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -25478,6 +27045,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for TimeWindow + * @function getTypeUrl + * @memberof google.container.v1.TimeWindow + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + TimeWindow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.TimeWindow"; + }; + return TimeWindow; })(); @@ -25573,9 +27155,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.scope = reader.int32(); - break; + case 1: { + message.scope = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -25683,6 +27266,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MaintenanceExclusionOptions + * @function getTypeUrl + * @memberof google.container.v1.MaintenanceExclusionOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MaintenanceExclusionOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MaintenanceExclusionOptions"; + }; + /** * Scope enum. * @name google.container.v1.MaintenanceExclusionOptions.Scope @@ -25805,12 +27403,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.window = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); - break; - case 2: - message.recurrence = reader.string(); - break; + case 1: { + message.window = $root.google.container.v1.TimeWindow.decode(reader, reader.uint32()); + break; + } + case 2: { + message.recurrence = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -25914,6 +27514,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for RecurringTimeWindow + * @function getTypeUrl + * @memberof google.container.v1.RecurringTimeWindow + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RecurringTimeWindow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.RecurringTimeWindow"; + }; + return RecurringTimeWindow; })(); @@ -26020,12 +27635,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.startTime = reader.string(); - break; - case 3: - message.duration = reader.string(); - break; + case 2: { + message.startTime = reader.string(); + break; + } + case 3: { + message.duration = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -26124,6 +27741,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DailyMaintenanceWindow + * @function getTypeUrl + * @memberof google.container.v1.DailyMaintenanceWindow + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DailyMaintenanceWindow.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.DailyMaintenanceWindow"; + }; + return DailyMaintenanceWindow; })(); @@ -26274,24 +27906,30 @@ 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.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); - break; - case 7: - message.name = reader.string(); - break; + 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.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + } + case 7: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -26427,6 +28065,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetNodePoolManagementRequest + * @function getTypeUrl + * @memberof google.container.v1.SetNodePoolManagementRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetNodePoolManagementRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetNodePoolManagementRequest"; + }; + return SetNodePoolManagementRequest; })(); @@ -26577,24 +28230,30 @@ 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.nodeCount = reader.int32(); - break; - case 7: - message.name = reader.string(); - break; + 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.nodeCount = reader.int32(); + break; + } + case 7: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -26725,6 +28384,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetNodePoolSizeRequest + * @function getTypeUrl + * @memberof google.container.v1.SetNodePoolSizeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetNodePoolSizeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetNodePoolSizeRequest"; + }; + return SetNodePoolSizeRequest; })(); @@ -26820,9 +28494,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; + case 1: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -26912,6 +28587,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CompleteNodePoolUpgradeRequest + * @function getTypeUrl + * @memberof google.container.v1.CompleteNodePoolUpgradeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompleteNodePoolUpgradeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.CompleteNodePoolUpgradeRequest"; + }; + return CompleteNodePoolUpgradeRequest; })(); @@ -27062,24 +28752,30 @@ 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 6: - message.name = reader.string(); - break; - case 7: - message.respectPdb = reader.bool(); - break; + 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 6: { + message.name = reader.string(); + break; + } + case 7: { + message.respectPdb = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -27210,6 +28906,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for RollbackNodePoolUpgradeRequest + * @function getTypeUrl + * @memberof google.container.v1.RollbackNodePoolUpgradeRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + RollbackNodePoolUpgradeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.RollbackNodePoolUpgradeRequest"; + }; + return RollbackNodePoolUpgradeRequest; })(); @@ -27307,11 +29018,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.nodePools && message.nodePools.length)) - message.nodePools = []; - message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.nodePools && message.nodePools.length)) + message.nodePools = []; + message.nodePools.push($root.google.container.v1.NodePool.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -27418,6 +29130,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListNodePoolsResponse + * @function getTypeUrl + * @memberof google.container.v1.ListNodePoolsResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListNodePoolsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ListNodePoolsResponse"; + }; + return ListNodePoolsResponse; })(); @@ -27561,25 +29288,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enableNodeAutoprovisioning = reader.bool(); - break; - case 2: - if (!(message.resourceLimits && message.resourceLimits.length)) - message.resourceLimits = []; - message.resourceLimits.push($root.google.container.v1.ResourceLimit.decode(reader, reader.uint32())); - break; - case 3: - message.autoscalingProfile = reader.int32(); - break; - case 4: - message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.autoprovisioningLocations && message.autoprovisioningLocations.length)) - message.autoprovisioningLocations = []; - message.autoprovisioningLocations.push(reader.string()); - break; + case 1: { + message.enableNodeAutoprovisioning = reader.bool(); + break; + } + case 2: { + if (!(message.resourceLimits && message.resourceLimits.length)) + message.resourceLimits = []; + message.resourceLimits.push($root.google.container.v1.ResourceLimit.decode(reader, reader.uint32())); + break; + } + case 3: { + message.autoscalingProfile = reader.int32(); + break; + } + case 4: { + message.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.decode(reader, reader.uint32()); + break; + } + case 5: { + if (!(message.autoprovisioningLocations && message.autoprovisioningLocations.length)) + message.autoprovisioningLocations = []; + message.autoprovisioningLocations.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -27756,6 +29488,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ClusterAutoscaling + * @function getTypeUrl + * @memberof google.container.v1.ClusterAutoscaling + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ClusterAutoscaling.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ClusterAutoscaling"; + }; + /** * AutoscalingProfile enum. * @name google.container.v1.ClusterAutoscaling.AutoscalingProfile @@ -27968,38 +29715,48 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.oauthScopes && message.oauthScopes.length)) - message.oauthScopes = []; - message.oauthScopes.push(reader.string()); - break; - case 2: - message.serviceAccount = reader.string(); - break; - case 3: - message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); - break; - case 4: - message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); - break; - case 5: - message.minCpuPlatform = reader.string(); - break; - case 6: - message.diskSizeGb = reader.int32(); - break; - case 7: - message.diskType = reader.string(); - break; - case 8: - message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.decode(reader, reader.uint32()); - break; - case 9: - message.bootDiskKmsKey = reader.string(); - break; - case 10: - message.imageType = reader.string(); - break; + case 1: { + if (!(message.oauthScopes && message.oauthScopes.length)) + message.oauthScopes = []; + message.oauthScopes.push(reader.string()); + break; + } + case 2: { + message.serviceAccount = reader.string(); + break; + } + case 3: { + message.upgradeSettings = $root.google.container.v1.NodePool.UpgradeSettings.decode(reader, reader.uint32()); + break; + } + case 4: { + message.management = $root.google.container.v1.NodeManagement.decode(reader, reader.uint32()); + break; + } + case 5: { + message.minCpuPlatform = reader.string(); + break; + } + case 6: { + message.diskSizeGb = reader.int32(); + break; + } + case 7: { + message.diskType = reader.string(); + break; + } + case 8: { + message.shieldedInstanceConfig = $root.google.container.v1.ShieldedInstanceConfig.decode(reader, reader.uint32()); + break; + } + case 9: { + message.bootDiskKmsKey = reader.string(); + break; + } + case 10: { + message.imageType = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -28190,6 +29947,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AutoprovisioningNodePoolDefaults + * @function getTypeUrl + * @memberof google.container.v1.AutoprovisioningNodePoolDefaults + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AutoprovisioningNodePoolDefaults.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.AutoprovisioningNodePoolDefaults"; + }; + return AutoprovisioningNodePoolDefaults; })(); @@ -28307,15 +30079,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.resourceType = reader.string(); - break; - case 2: - message.minimum = reader.int64(); - break; - case 3: - message.maximum = reader.int64(); - break; + case 1: { + message.resourceType = reader.string(); + break; + } + case 2: { + message.minimum = reader.int64(); + break; + } + case 3: { + message.maximum = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -28450,6 +30225,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ResourceLimit + * @function getTypeUrl + * @memberof google.container.v1.ResourceLimit + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceLimit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ResourceLimit"; + }; + return ResourceLimit; })(); @@ -28611,27 +30401,34 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - case 2: - message.minNodeCount = reader.int32(); - break; - case 3: - message.maxNodeCount = reader.int32(); - break; - case 4: - message.autoprovisioned = reader.bool(); - break; - case 5: - message.locationPolicy = reader.int32(); - break; - case 6: - message.totalMinNodeCount = reader.int32(); - break; - case 7: - message.totalMaxNodeCount = reader.int32(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + message.minNodeCount = reader.int32(); + break; + } + case 3: { + message.maxNodeCount = reader.int32(); + break; + } + case 4: { + message.autoprovisioned = reader.bool(); + break; + } + case 5: { + message.locationPolicy = reader.int32(); + break; + } + case 6: { + message.totalMinNodeCount = reader.int32(); + break; + } + case 7: { + message.totalMaxNodeCount = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -28788,6 +30585,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NodePoolAutoscaling + * @function getTypeUrl + * @memberof google.container.v1.NodePoolAutoscaling + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodePoolAutoscaling.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePoolAutoscaling"; + }; + /** * LocationPolicy enum. * @name google.container.v1.NodePoolAutoscaling.LocationPolicy @@ -28956,43 +30768,49 @@ 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: - 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; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.clusterId = reader.string(); + break; + } + case 4: { + 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 5: { + message.labelFingerprint = reader.string(); + break; + } + case 7: { + message.name = reader.string(); + break; } - message.resourceLabels[key] = value; - break; - case 5: - message.labelFingerprint = reader.string(); - break; - case 7: - message.name = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -29138,6 +30956,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetLabelsRequest + * @function getTypeUrl + * @memberof google.container.v1.SetLabelsRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetLabelsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetLabelsRequest"; + }; + return SetLabelsRequest; })(); @@ -29277,21 +31110,26 @@ 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.enabled = reader.bool(); - break; - case 6: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.clusterId = reader.string(); + break; + } + case 4: { + message.enabled = reader.bool(); + break; + } + case 6: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -29414,6 +31252,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetLegacyAbacRequest + * @function getTypeUrl + * @memberof google.container.v1.SetLegacyAbacRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetLegacyAbacRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetLegacyAbacRequest"; + }; + return SetLegacyAbacRequest; })(); @@ -29553,21 +31406,26 @@ 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 6: - message.name = reader.string(); - break; - case 7: - message.rotateCredentials = reader.bool(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.clusterId = reader.string(); + break; + } + case 6: { + message.name = reader.string(); + break; + } + case 7: { + message.rotateCredentials = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -29690,6 +31548,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for StartIPRotationRequest + * @function getTypeUrl + * @memberof google.container.v1.StartIPRotationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StartIPRotationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.StartIPRotationRequest"; + }; + return StartIPRotationRequest; })(); @@ -29818,18 +31691,22 @@ 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 7: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.clusterId = reader.string(); + break; + } + case 7: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -29944,6 +31821,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CompleteIPRotationRequest + * @function getTypeUrl + * @memberof google.container.v1.CompleteIPRotationRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CompleteIPRotationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.CompleteIPRotationRequest"; + }; + return CompleteIPRotationRequest; })(); @@ -30086,18 +31978,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.acceleratorCount = reader.int64(); - break; - case 2: - message.acceleratorType = reader.string(); - break; - case 3: - message.gpuPartitionSize = reader.string(); - break; - case 5: - message.gpuSharingConfig = $root.google.container.v1.GPUSharingConfig.decode(reader, reader.uint32()); - break; + case 1: { + message.acceleratorCount = reader.int64(); + break; + } + case 2: { + message.acceleratorType = reader.string(); + break; + } + case 3: { + message.gpuPartitionSize = reader.string(); + break; + } + case 5: { + message.gpuSharingConfig = $root.google.container.v1.GPUSharingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -30237,6 +32133,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for AcceleratorConfig + * @function getTypeUrl + * @memberof google.container.v1.AcceleratorConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + AcceleratorConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.AcceleratorConfig"; + }; + return AcceleratorConfig; })(); @@ -30357,12 +32268,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.maxSharedClientsPerGpu = reader.int64(); - break; - case 2: - message.gpuSharingStrategy = reader.int32(); - break; + case 1: { + message.maxSharedClientsPerGpu = reader.int64(); + break; + } + case 2: { + message.gpuSharingStrategy = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -30492,6 +32405,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GPUSharingConfig + * @function getTypeUrl + * @memberof google.container.v1.GPUSharingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GPUSharingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GPUSharingConfig"; + }; + /** * GPUSharingStrategy enum. * @name google.container.v1.GPUSharingConfig.GPUSharingStrategy @@ -30601,9 +32529,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.mode = reader.int32(); - break; + case 2: { + message.mode = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -30711,6 +32640,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for WorkloadMetadataConfig + * @function getTypeUrl + * @memberof google.container.v1.WorkloadMetadataConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WorkloadMetadataConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.WorkloadMetadataConfig"; + }; + /** * Mode enum. * @name google.container.v1.WorkloadMetadataConfig.Mode @@ -30866,21 +32810,26 @@ 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.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); - break; - case 6: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.clusterId = reader.string(); + break; + } + case 4: { + message.networkPolicy = $root.google.container.v1.NetworkPolicy.decode(reader, reader.uint32()); + break; + } + case 6: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -31008,6 +32957,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetNetworkPolicyRequest + * @function getTypeUrl + * @memberof google.container.v1.SetNetworkPolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetNetworkPolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetNetworkPolicyRequest"; + }; + return SetNetworkPolicyRequest; })(); @@ -31147,21 +33111,26 @@ 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.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); - break; - case 5: - message.name = reader.string(); - break; + case 1: { + message.projectId = reader.string(); + break; + } + case 2: { + message.zone = reader.string(); + break; + } + case 3: { + message.clusterId = reader.string(); + break; + } + case 4: { + message.maintenancePolicy = $root.google.container.v1.MaintenancePolicy.decode(reader, reader.uint32()); + break; + } + case 5: { + message.name = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -31289,6 +33258,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SetMaintenancePolicyRequest + * @function getTypeUrl + * @memberof google.container.v1.SetMaintenancePolicyRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SetMaintenancePolicyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SetMaintenancePolicyRequest"; + }; + return SetMaintenancePolicyRequest; })(); @@ -31406,15 +33390,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.code = reader.int32(); - break; - case 2: - message.message = reader.string(); - break; - case 3: - message.canonicalCode = reader.int32(); - break; + case 1: { + message.code = reader.int32(); + break; + } + case 2: { + message.message = reader.string(); + break; + } + case 3: { + message.canonicalCode = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -31647,6 +33634,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for StatusCondition + * @function getTypeUrl + * @memberof google.container.v1.StatusCondition + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StatusCondition.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.StatusCondition"; + }; + /** * Code enum. * @name google.container.v1.StatusCondition.Code @@ -31854,33 +33856,42 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.network = reader.string(); - break; - case 2: - message.subnetwork = reader.string(); - break; - case 5: - message.enableIntraNodeVisibility = reader.bool(); - break; - case 7: - message.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.decode(reader, reader.uint32()); - break; - case 10: - message.enableL4ilbSubsetting = reader.bool(); - break; - case 11: - message.datapathProvider = reader.int32(); - break; - case 12: - message.privateIpv6GoogleAccess = reader.int32(); - break; - case 13: - message.dnsConfig = $root.google.container.v1.DNSConfig.decode(reader, reader.uint32()); - break; - case 15: - message.serviceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.decode(reader, reader.uint32()); - break; + case 1: { + message.network = reader.string(); + break; + } + case 2: { + message.subnetwork = reader.string(); + break; + } + case 5: { + message.enableIntraNodeVisibility = reader.bool(); + break; + } + case 7: { + message.defaultSnatStatus = $root.google.container.v1.DefaultSnatStatus.decode(reader, reader.uint32()); + break; + } + case 10: { + message.enableL4ilbSubsetting = reader.bool(); + break; + } + case 11: { + message.datapathProvider = reader.int32(); + break; + } + case 12: { + message.privateIpv6GoogleAccess = reader.int32(); + break; + } + case 13: { + message.dnsConfig = $root.google.container.v1.DNSConfig.decode(reader, reader.uint32()); + break; + } + case 15: { + message.serviceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -32091,6 +34102,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NetworkConfig + * @function getTypeUrl + * @memberof google.container.v1.NetworkConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NetworkConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NetworkConfig"; + }; + return NetworkConfig; })(); @@ -32186,9 +34212,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -32278,6 +34305,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ServiceExternalIPsConfig + * @function getTypeUrl + * @memberof google.container.v1.ServiceExternalIPsConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceExternalIPsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ServiceExternalIPsConfig"; + }; + return ServiceExternalIPsConfig; })(); @@ -32373,9 +34415,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; + case 1: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -32465,6 +34508,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetOpenIDConfigRequest + * @function getTypeUrl + * @memberof google.container.v1.GetOpenIDConfigRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetOpenIDConfigRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GetOpenIDConfigRequest"; + }; + return GetOpenIDConfigRequest; })(); @@ -32636,37 +34694,44 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.jwksUri = reader.string(); - break; - case 3: - if (!(message.responseTypesSupported && message.responseTypesSupported.length)) - message.responseTypesSupported = []; - message.responseTypesSupported.push(reader.string()); - break; - case 4: - if (!(message.subjectTypesSupported && message.subjectTypesSupported.length)) - message.subjectTypesSupported = []; - message.subjectTypesSupported.push(reader.string()); - break; - case 5: - if (!(message.idTokenSigningAlgValuesSupported && message.idTokenSigningAlgValuesSupported.length)) - message.idTokenSigningAlgValuesSupported = []; - message.idTokenSigningAlgValuesSupported.push(reader.string()); - break; - case 6: - if (!(message.claimsSupported && message.claimsSupported.length)) - message.claimsSupported = []; - message.claimsSupported.push(reader.string()); - break; - case 7: - if (!(message.grantTypes && message.grantTypes.length)) - message.grantTypes = []; - message.grantTypes.push(reader.string()); - break; + case 1: { + message.issuer = reader.string(); + break; + } + case 2: { + message.jwksUri = reader.string(); + break; + } + case 3: { + if (!(message.responseTypesSupported && message.responseTypesSupported.length)) + message.responseTypesSupported = []; + message.responseTypesSupported.push(reader.string()); + break; + } + case 4: { + if (!(message.subjectTypesSupported && message.subjectTypesSupported.length)) + message.subjectTypesSupported = []; + message.subjectTypesSupported.push(reader.string()); + break; + } + case 5: { + if (!(message.idTokenSigningAlgValuesSupported && message.idTokenSigningAlgValuesSupported.length)) + message.idTokenSigningAlgValuesSupported = []; + message.idTokenSigningAlgValuesSupported.push(reader.string()); + break; + } + case 6: { + if (!(message.claimsSupported && message.claimsSupported.length)) + message.claimsSupported = []; + message.claimsSupported.push(reader.string()); + break; + } + case 7: { + if (!(message.grantTypes && message.grantTypes.length)) + message.grantTypes = []; + message.grantTypes.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -32867,6 +34932,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetOpenIDConfigResponse + * @function getTypeUrl + * @memberof google.container.v1.GetOpenIDConfigResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetOpenIDConfigResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GetOpenIDConfigResponse"; + }; + return GetOpenIDConfigResponse; })(); @@ -32962,9 +35042,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; + case 1: { + message.parent = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -33054,6 +35135,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetJSONWebKeysRequest + * @function getTypeUrl + * @memberof google.container.v1.GetJSONWebKeysRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetJSONWebKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GetJSONWebKeysRequest"; + }; + return GetJSONWebKeysRequest; })(); @@ -33237,33 +35333,42 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.kty = reader.string(); - break; - case 2: - message.alg = reader.string(); - break; - case 3: - message.use = reader.string(); - break; - case 4: - message.kid = reader.string(); - break; - case 5: - message.n = reader.string(); - break; - case 6: - message.e = reader.string(); - break; - case 7: - message.x = reader.string(); - break; - case 8: - message.y = reader.string(); - break; - case 9: - message.crv = reader.string(); - break; + case 1: { + message.kty = reader.string(); + break; + } + case 2: { + message.alg = reader.string(); + break; + } + case 3: { + message.use = reader.string(); + break; + } + case 4: { + message.kid = reader.string(); + break; + } + case 5: { + message.n = reader.string(); + break; + } + case 6: { + message.e = reader.string(); + break; + } + case 7: { + message.x = reader.string(); + break; + } + case 8: { + message.y = reader.string(); + break; + } + case 9: { + message.crv = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -33418,6 +35523,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Jwk + * @function getTypeUrl + * @memberof google.container.v1.Jwk + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Jwk.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.Jwk"; + }; + return Jwk; })(); @@ -33515,11 +35635,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.keys && message.keys.length)) - message.keys = []; - message.keys.push($root.google.container.v1.Jwk.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.keys && message.keys.length)) + message.keys = []; + message.keys.push($root.google.container.v1.Jwk.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -33626,6 +35747,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GetJSONWebKeysResponse + * @function getTypeUrl + * @memberof google.container.v1.GetJSONWebKeysResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GetJSONWebKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GetJSONWebKeysResponse"; + }; + return GetJSONWebKeysResponse; })(); @@ -33721,9 +35857,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.channel = reader.int32(); - break; + case 1: { + message.channel = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -33836,6 +35973,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ReleaseChannel + * @function getTypeUrl + * @memberof google.container.v1.ReleaseChannel + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReleaseChannel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ReleaseChannel"; + }; + /** * Channel enum. * @name google.container.v1.ReleaseChannel.Channel @@ -33949,9 +36101,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -34041,6 +36194,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for IntraNodeVisibilityConfig + * @function getTypeUrl + * @memberof google.container.v1.IntraNodeVisibilityConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IntraNodeVisibilityConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.IntraNodeVisibilityConfig"; + }; + return IntraNodeVisibilityConfig; })(); @@ -34136,9 +36304,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -34228,6 +36397,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ILBSubsettingConfig + * @function getTypeUrl + * @memberof google.container.v1.ILBSubsettingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ILBSubsettingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ILBSubsettingConfig"; + }; + return ILBSubsettingConfig; })(); @@ -34345,15 +36529,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.clusterDns = reader.int32(); - break; - case 2: - message.clusterDnsScope = reader.int32(); - break; - case 3: - message.clusterDnsDomain = reader.string(); - break; + case 1: { + message.clusterDns = reader.int32(); + break; + } + case 2: { + message.clusterDnsScope = reader.int32(); + break; + } + case 3: { + message.clusterDnsDomain = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -34491,6 +36678,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DNSConfig + * @function getTypeUrl + * @memberof google.container.v1.DNSConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DNSConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.DNSConfig"; + }; + /** * Provider enum. * @name google.container.v1.DNSConfig.Provider @@ -34616,9 +36818,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.maxPodsPerNode = reader.int64(); - break; + case 1: { + message.maxPodsPerNode = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -34722,6 +36925,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MaxPodsConstraint + * @function getTypeUrl + * @memberof google.container.v1.MaxPodsConstraint + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MaxPodsConstraint.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MaxPodsConstraint"; + }; + return MaxPodsConstraint; })(); @@ -34817,9 +37035,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.workloadPool = reader.string(); - break; + case 2: { + message.workloadPool = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -34909,6 +37128,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for WorkloadIdentityConfig + * @function getTypeUrl + * @memberof google.container.v1.WorkloadIdentityConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + WorkloadIdentityConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.WorkloadIdentityConfig"; + }; + return WorkloadIdentityConfig; })(); @@ -35004,9 +37238,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -35096,6 +37331,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for IdentityServiceConfig + * @function getTypeUrl + * @memberof google.container.v1.IdentityServiceConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + IdentityServiceConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.IdentityServiceConfig"; + }; + return IdentityServiceConfig; })(); @@ -35191,9 +37441,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enableCertificates = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; + case 1: { + message.enableCertificates = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -35288,6 +37539,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MeshCertificates + * @function getTypeUrl + * @memberof google.container.v1.MeshCertificates + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MeshCertificates.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MeshCertificates"; + }; + return MeshCertificates; })(); @@ -35394,12 +37660,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.state = reader.int32(); - break; - case 1: - message.keyName = reader.string(); - break; + case 2: { + message.state = reader.int32(); + break; + } + case 1: { + message.keyName = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -35516,6 +37784,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DatabaseEncryption + * @function getTypeUrl + * @memberof google.container.v1.DatabaseEncryption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DatabaseEncryption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.DatabaseEncryption"; + }; + /** * State enum. * @name google.container.v1.DatabaseEncryption.State @@ -35660,18 +37943,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; + case 1: { + message.parent = reader.string(); + break; + } + case 2: { + message.filter = reader.string(); + break; + } + case 3: { + message.pageSize = reader.int32(); + break; + } + case 4: { + message.pageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -35786,6 +38073,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListUsableSubnetworksRequest + * @function getTypeUrl + * @memberof google.container.v1.ListUsableSubnetworksRequest + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListUsableSubnetworksRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ListUsableSubnetworksRequest"; + }; + return ListUsableSubnetworksRequest; })(); @@ -35894,14 +38196,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.subnetworks && message.subnetworks.length)) - message.subnetworks = []; - message.subnetworks.push($root.google.container.v1.UsableSubnetwork.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; + case 1: { + if (!(message.subnetworks && message.subnetworks.length)) + message.subnetworks = []; + message.subnetworks.push($root.google.container.v1.UsableSubnetwork.decode(reader, reader.uint32())); + break; + } + case 2: { + message.nextPageToken = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -36017,6 +38321,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ListUsableSubnetworksResponse + * @function getTypeUrl + * @memberof google.container.v1.ListUsableSubnetworksResponse + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ListUsableSubnetworksResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ListUsableSubnetworksResponse"; + }; + return ListUsableSubnetworksResponse; })(); @@ -36134,15 +38453,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.rangeName = reader.string(); - break; - case 2: - message.ipCidrRange = reader.string(); - break; - case 3: - message.status = reader.int32(); - break; + case 1: { + message.rangeName = reader.string(); + break; + } + case 2: { + message.ipCidrRange = reader.string(); + break; + } + case 3: { + message.status = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -36277,6 +38599,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UsableSubnetworkSecondaryRange + * @function getTypeUrl + * @memberof google.container.v1.UsableSubnetworkSecondaryRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UsableSubnetworkSecondaryRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.UsableSubnetworkSecondaryRange"; + }; + /** * Status enum. * @name google.container.v1.UsableSubnetworkSecondaryRange.Status @@ -36438,23 +38775,28 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.subnetwork = reader.string(); - break; - case 2: - message.network = reader.string(); - break; - case 3: - message.ipCidrRange = reader.string(); - break; - case 4: - if (!(message.secondaryIpRanges && message.secondaryIpRanges.length)) - message.secondaryIpRanges = []; - message.secondaryIpRanges.push($root.google.container.v1.UsableSubnetworkSecondaryRange.decode(reader, reader.uint32())); - break; - case 5: - message.statusMessage = reader.string(); - break; + case 1: { + message.subnetwork = reader.string(); + break; + } + case 2: { + message.network = reader.string(); + break; + } + case 3: { + message.ipCidrRange = reader.string(); + break; + } + case 4: { + if (!(message.secondaryIpRanges && message.secondaryIpRanges.length)) + message.secondaryIpRanges = []; + message.secondaryIpRanges.push($root.google.container.v1.UsableSubnetworkSecondaryRange.decode(reader, reader.uint32())); + break; + } + case 5: { + message.statusMessage = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -36595,6 +38937,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UsableSubnetwork + * @function getTypeUrl + * @memberof google.container.v1.UsableSubnetwork + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UsableSubnetwork.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.UsableSubnetwork"; + }; + return UsableSubnetwork; })(); @@ -36712,15 +39069,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.bigqueryDestination = $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.decode(reader, reader.uint32()); - break; - case 2: - message.enableNetworkEgressMetering = reader.bool(); - break; - case 3: - message.consumptionMeteringConfig = $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.decode(reader, reader.uint32()); - break; + case 1: { + message.bigqueryDestination = $root.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.decode(reader, reader.uint32()); + break; + } + case 2: { + message.enableNetworkEgressMetering = reader.bool(); + break; + } + case 3: { + message.consumptionMeteringConfig = $root.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -36837,6 +39197,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ResourceUsageExportConfig + * @function getTypeUrl + * @memberof google.container.v1.ResourceUsageExportConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceUsageExportConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ResourceUsageExportConfig"; + }; + ResourceUsageExportConfig.BigQueryDestination = (function() { /** @@ -36929,9 +39304,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.datasetId = reader.string(); - break; + case 1: { + message.datasetId = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -37021,6 +39397,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BigQueryDestination + * @function getTypeUrl + * @memberof google.container.v1.ResourceUsageExportConfig.BigQueryDestination + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BigQueryDestination.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ResourceUsageExportConfig.BigQueryDestination"; + }; + return BigQueryDestination; })(); @@ -37116,9 +39507,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -37208,6 +39600,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ConsumptionMeteringConfig + * @function getTypeUrl + * @memberof google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConsumptionMeteringConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig"; + }; + return ConsumptionMeteringConfig; })(); @@ -37306,9 +39713,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -37398,6 +39806,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for VerticalPodAutoscaling + * @function getTypeUrl + * @memberof google.container.v1.VerticalPodAutoscaling + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VerticalPodAutoscaling.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.VerticalPodAutoscaling"; + }; + return VerticalPodAutoscaling; })(); @@ -37493,9 +39916,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.disabled = reader.bool(); - break; + case 1: { + message.disabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -37585,6 +40009,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DefaultSnatStatus + * @function getTypeUrl + * @memberof google.container.v1.DefaultSnatStatus + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DefaultSnatStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.DefaultSnatStatus"; + }; + return DefaultSnatStatus; })(); @@ -37680,9 +40119,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -37772,6 +40212,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ShieldedNodes + * @function getTypeUrl + * @memberof google.container.v1.ShieldedNodes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ShieldedNodes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ShieldedNodes"; + }; + return ShieldedNodes; })(); @@ -37867,9 +40322,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -37959,6 +40415,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for VirtualNIC + * @function getTypeUrl + * @memberof google.container.v1.VirtualNIC + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + VirtualNIC.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.VirtualNIC"; + }; + return VirtualNIC; })(); @@ -38072,9 +40543,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.pubsub = $root.google.container.v1.NotificationConfig.PubSub.decode(reader, reader.uint32()); - break; + case 1: { + message.pubsub = $root.google.container.v1.NotificationConfig.PubSub.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -38169,6 +40641,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NotificationConfig + * @function getTypeUrl + * @memberof google.container.v1.NotificationConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NotificationConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NotificationConfig"; + }; + /** * EventType enum. * @name google.container.v1.NotificationConfig.EventType @@ -38301,15 +40788,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - case 2: - message.topic = reader.string(); - break; - case 3: - message.filter = $root.google.container.v1.NotificationConfig.Filter.decode(reader, reader.uint32()); - break; + case 1: { + message.enabled = reader.bool(); + break; + } + case 2: { + message.topic = reader.string(); + break; + } + case 3: { + message.filter = $root.google.container.v1.NotificationConfig.Filter.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -38421,6 +40911,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for PubSub + * @function getTypeUrl + * @memberof google.container.v1.NotificationConfig.PubSub + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + PubSub.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NotificationConfig.PubSub"; + }; + return PubSub; })(); @@ -38521,16 +41026,17 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.eventType && message.eventType.length)) - message.eventType = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + if (!(message.eventType && message.eventType.length)) + message.eventType = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.eventType.push(reader.int32()); + } else message.eventType.push(reader.int32()); - } else - message.eventType.push(reader.int32()); - break; + break; + } default: reader.skipType(tag & 7); break; @@ -38657,6 +41163,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Filter + * @function getTypeUrl + * @memberof google.container.v1.NotificationConfig.Filter + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Filter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NotificationConfig.Filter"; + }; + return Filter; })(); @@ -38755,9 +41276,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -38847,6 +41369,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ConfidentialNodes + * @function getTypeUrl + * @memberof google.container.v1.ConfidentialNodes + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ConfidentialNodes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ConfidentialNodes"; + }; + return ConfidentialNodes; })(); @@ -39013,24 +41550,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.operation = reader.string(); - break; - case 3: - message.operationStartTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.currentVersion = reader.string(); - break; - case 5: - message.targetVersion = reader.string(); - break; - case 6: - message.resource = reader.string(); - break; + case 1: { + message.resourceType = reader.int32(); + break; + } + case 2: { + message.operation = reader.string(); + break; + } + case 3: { + message.operationStartTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + } + case 4: { + message.currentVersion = reader.string(); + break; + } + case 5: { + message.targetVersion = reader.string(); + break; + } + case 6: { + message.resource = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -39184,6 +41727,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpgradeEvent + * @function getTypeUrl + * @memberof google.container.v1.UpgradeEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpgradeEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.UpgradeEvent"; + }; + return UpgradeEvent; })(); @@ -39312,18 +41870,22 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.version = reader.string(); - break; - case 2: - message.resourceType = reader.int32(); - break; - case 3: - message.releaseChannel = $root.google.container.v1.ReleaseChannel.decode(reader, reader.uint32()); - break; - case 4: - message.resource = reader.string(); - break; + case 1: { + message.version = reader.string(); + break; + } + case 2: { + message.resourceType = reader.int32(); + break; + } + case 3: { + message.releaseChannel = $root.google.container.v1.ReleaseChannel.decode(reader, reader.uint32()); + break; + } + case 4: { + message.resource = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -39461,6 +42023,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UpgradeAvailableEvent + * @function getTypeUrl + * @memberof google.container.v1.UpgradeAvailableEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UpgradeAvailableEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.UpgradeAvailableEvent"; + }; + return UpgradeAvailableEvent; })(); @@ -39661,42 +42238,52 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.resourceTypeAffected = reader.string(); - break; - case 2: - message.bulletinId = reader.string(); - break; - case 3: - if (!(message.cveIds && message.cveIds.length)) - message.cveIds = []; - message.cveIds.push(reader.string()); - break; - case 4: - message.severity = reader.string(); - break; - case 5: - message.bulletinUri = reader.string(); - break; - case 6: - message.briefDescription = reader.string(); - break; - case 7: - if (!(message.affectedSupportedMinors && message.affectedSupportedMinors.length)) - message.affectedSupportedMinors = []; - message.affectedSupportedMinors.push(reader.string()); - break; - case 8: - if (!(message.patchedVersions && message.patchedVersions.length)) - message.patchedVersions = []; - message.patchedVersions.push(reader.string()); - break; - case 9: - message.suggestedUpgradeTarget = reader.string(); - break; - case 10: - message.manualStepsRequired = reader.bool(); - break; + case 1: { + message.resourceTypeAffected = reader.string(); + break; + } + case 2: { + message.bulletinId = reader.string(); + break; + } + case 3: { + if (!(message.cveIds && message.cveIds.length)) + message.cveIds = []; + message.cveIds.push(reader.string()); + break; + } + case 4: { + message.severity = reader.string(); + break; + } + case 5: { + message.bulletinUri = reader.string(); + break; + } + case 6: { + message.briefDescription = reader.string(); + break; + } + case 7: { + if (!(message.affectedSupportedMinors && message.affectedSupportedMinors.length)) + message.affectedSupportedMinors = []; + message.affectedSupportedMinors.push(reader.string()); + break; + } + case 8: { + if (!(message.patchedVersions && message.patchedVersions.length)) + message.patchedVersions = []; + message.patchedVersions.push(reader.string()); + break; + } + case 9: { + message.suggestedUpgradeTarget = reader.string(); + break; + } + case 10: { + message.manualStepsRequired = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -39897,6 +42484,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SecurityBulletinEvent + * @function getTypeUrl + * @memberof google.container.v1.SecurityBulletinEvent + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SecurityBulletinEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.SecurityBulletinEvent"; + }; + return SecurityBulletinEvent; })(); @@ -39992,9 +42594,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -40084,6 +42687,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Autopilot + * @function getTypeUrl + * @memberof google.container.v1.Autopilot + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Autopilot.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.Autopilot"; + }; + return Autopilot; })(); @@ -40179,9 +42797,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.componentConfig = $root.google.container.v1.LoggingComponentConfig.decode(reader, reader.uint32()); - break; + case 1: { + message.componentConfig = $root.google.container.v1.LoggingComponentConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -40276,6 +42895,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for LoggingConfig + * @function getTypeUrl + * @memberof google.container.v1.LoggingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LoggingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.LoggingConfig"; + }; + return LoggingConfig; })(); @@ -40376,16 +43010,17 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.enableComponents && message.enableComponents.length)) - message.enableComponents = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + if (!(message.enableComponents && message.enableComponents.length)) + message.enableComponents = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.enableComponents.push(reader.int32()); + } else message.enableComponents.push(reader.int32()); - } else - message.enableComponents.push(reader.int32()); - break; + break; + } default: reader.skipType(tag & 7); break; @@ -40507,6 +43142,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for LoggingComponentConfig + * @function getTypeUrl + * @memberof google.container.v1.LoggingComponentConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LoggingComponentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.LoggingComponentConfig"; + }; + /** * Component enum. * @name google.container.v1.LoggingComponentConfig.Component @@ -40629,12 +43279,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.componentConfig = $root.google.container.v1.MonitoringComponentConfig.decode(reader, reader.uint32()); - break; - case 2: - message.managedPrometheusConfig = $root.google.container.v1.ManagedPrometheusConfig.decode(reader, reader.uint32()); - break; + case 1: { + message.componentConfig = $root.google.container.v1.MonitoringComponentConfig.decode(reader, reader.uint32()); + break; + } + case 2: { + message.managedPrometheusConfig = $root.google.container.v1.ManagedPrometheusConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -40743,6 +43395,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MonitoringConfig + * @function getTypeUrl + * @memberof google.container.v1.MonitoringConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MonitoringConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MonitoringConfig"; + }; + return MonitoringConfig; })(); @@ -40843,16 +43510,17 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.enableComponents && message.enableComponents.length)) - message.enableComponents = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + if (!(message.enableComponents && message.enableComponents.length)) + message.enableComponents = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.enableComponents.push(reader.int32()); + } else message.enableComponents.push(reader.int32()); - } else - message.enableComponents.push(reader.int32()); - break; + break; + } default: reader.skipType(tag & 7); break; @@ -40984,6 +43652,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MonitoringComponentConfig + * @function getTypeUrl + * @memberof google.container.v1.MonitoringComponentConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MonitoringComponentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.MonitoringComponentConfig"; + }; + /** * Component enum. * @name google.container.v1.MonitoringComponentConfig.Component @@ -41131,9 +43814,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; + case 1: { + message.enabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -41223,6 +43907,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ManagedPrometheusConfig + * @function getTypeUrl + * @memberof google.container.v1.ManagedPrometheusConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ManagedPrometheusConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ManagedPrometheusConfig"; + }; + return ManagedPrometheusConfig; })(); @@ -41346,14 +44045,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - case 2: - message.fullyDecodeReservedExpansion = reader.bool(); - break; + case 1: { + if (!(message.rules && message.rules.length)) + message.rules = []; + message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } + case 2: { + message.fullyDecodeReservedExpansion = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -41469,6 +44170,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Http + * @function getTypeUrl + * @memberof google.api.Http + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Http.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.Http"; + }; + return Http; })(); @@ -41679,38 +44395,48 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.selector = reader.string(); - break; - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message["delete"] = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 7: - message.body = reader.string(); - break; - case 12: - message.responseBody = reader.string(); - break; - case 11: - if (!(message.additionalBindings && message.additionalBindings.length)) - message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; + case 1: { + message.selector = reader.string(); + break; + } + case 2: { + message.get = reader.string(); + break; + } + case 3: { + message.put = reader.string(); + break; + } + case 4: { + message.post = reader.string(); + break; + } + case 5: { + message["delete"] = reader.string(); + break; + } + case 6: { + message.patch = reader.string(); + break; + } + case 8: { + message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); + break; + } + case 7: { + message.body = reader.string(); + break; + } + case 12: { + message.responseBody = reader.string(); + break; + } + case 11: { + if (!(message.additionalBindings && message.additionalBindings.length)) + message.additionalBindings = []; + message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -41932,6 +44658,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for HttpRule + * @function getTypeUrl + * @memberof google.api.HttpRule + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + HttpRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.HttpRule"; + }; + return HttpRule; })(); @@ -42038,12 +44779,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); - break; + case 1: { + message.kind = reader.string(); + break; + } + case 2: { + message.path = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -42142,6 +44885,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for CustomHttpPattern + * @function getTypeUrl + * @memberof google.api.CustomHttpPattern + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CustomHttpPattern.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.CustomHttpPattern"; + }; + return CustomHttpPattern; })(); @@ -42336,36 +45094,43 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - if (!(message.pattern && message.pattern.length)) - message.pattern = []; - message.pattern.push(reader.string()); - break; - case 3: - message.nameField = reader.string(); - break; - case 4: - message.history = reader.int32(); - break; - case 5: - message.plural = reader.string(); - break; - case 6: - message.singular = reader.string(); - break; - case 10: - if (!(message.style && message.style.length)) - message.style = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.type = reader.string(); + break; + } + case 2: { + if (!(message.pattern && message.pattern.length)) + message.pattern = []; + message.pattern.push(reader.string()); + break; + } + case 3: { + message.nameField = reader.string(); + break; + } + case 4: { + message.history = reader.int32(); + break; + } + case 5: { + message.plural = reader.string(); + break; + } + case 6: { + message.singular = reader.string(); + break; + } + case 10: { + if (!(message.style && message.style.length)) + message.style = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.style.push(reader.int32()); + } else message.style.push(reader.int32()); - } else - message.style.push(reader.int32()); - break; + break; + } default: reader.skipType(tag & 7); break; @@ -42563,6 +45328,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ResourceDescriptor + * @function getTypeUrl + * @memberof google.api.ResourceDescriptor + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceDescriptor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceDescriptor"; + }; + /** * History enum. * @name google.api.ResourceDescriptor.History @@ -42699,12 +45479,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type = reader.string(); - break; - case 2: - message.childType = reader.string(); - break; + case 1: { + message.type = reader.string(); + break; + } + case 2: { + message.childType = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -42803,6 +45585,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ResourceReference + * @function getTypeUrl + * @memberof google.api.ResourceReference + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceReference.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.api.ResourceReference"; + }; + return ResourceReference; })(); @@ -42912,11 +45709,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.file && message.file.length)) + message.file = []; + message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -43023,6 +45821,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileDescriptorSet + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorSet + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorSet"; + }; + return FileDescriptorSet; })(); @@ -43044,6 +45857,7 @@ * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo * @property {string|null} [syntax] FileDescriptorProto syntax + * @property {string|null} [edition] FileDescriptorProto edition */ /** @@ -43164,6 +45978,14 @@ */ FileDescriptorProto.prototype.syntax = ""; + /** + * FileDescriptorProto edition. + * @member {string} edition + * @memberof google.protobuf.FileDescriptorProto + * @instance + */ + FileDescriptorProto.prototype.edition = ""; + /** * Creates a new FileDescriptorProto instance using the specified properties. * @function create @@ -43219,6 +46041,8 @@ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); if (message.syntax != null && Object.hasOwnProperty.call(message, "syntax")) writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); + if (message.edition != null && Object.hasOwnProperty.call(message, "edition")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.edition); return writer; }; @@ -43253,66 +46077,82 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message["package"] = reader.string(); - break; - case 3: - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - case 10: - if (!(message.publicDependency && message.publicDependency.length)) - message.publicDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message["package"] = reader.string(); + break; + } + case 3: { + if (!(message.dependency && message.dependency.length)) + message.dependency = []; + message.dependency.push(reader.string()); + break; + } + case 10: { + if (!(message.publicDependency && message.publicDependency.length)) + message.publicDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.publicDependency.push(reader.int32()); + } else message.publicDependency.push(reader.int32()); - } else - message.publicDependency.push(reader.int32()); - break; - case 11: - if (!(message.weakDependency && message.weakDependency.length)) - message.weakDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + break; + } + case 11: { + if (!(message.weakDependency && message.weakDependency.length)) + message.weakDependency = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.weakDependency.push(reader.int32()); + } else message.weakDependency.push(reader.int32()); - } else - message.weakDependency.push(reader.int32()); - break; - case 4: - if (!(message.messageType && message.messageType.length)) - message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; + break; + } + case 4: { + if (!(message.messageType && message.messageType.length)) + message.messageType = []; + message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.service && message.service.length)) + message.service = []; + message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 8: { + message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); + break; + } + case 12: { + message.syntax = reader.string(); + break; + } + case 13: { + message.edition = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -43424,6 +46264,9 @@ if (message.syntax != null && message.hasOwnProperty("syntax")) if (!$util.isString(message.syntax)) return "syntax: string expected"; + if (message.edition != null && message.hasOwnProperty("edition")) + if (!$util.isString(message.edition)) + return "edition: string expected"; return null; }; @@ -43516,6 +46359,8 @@ } if (object.syntax != null) message.syntax = String(object.syntax); + if (object.edition != null) + message.edition = String(object.edition); return message; }; @@ -43547,6 +46392,7 @@ object.options = null; object.sourceCodeInfo = null; object.syntax = ""; + object.edition = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -43593,6 +46439,8 @@ } if (message.syntax != null && message.hasOwnProperty("syntax")) object.syntax = message.syntax; + if (message.edition != null && message.hasOwnProperty("edition")) + object.edition = message.edition; return object; }; @@ -43607,6 +46455,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FileDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileDescriptorProto"; + }; + return FileDescriptorProto; })(); @@ -43817,52 +46680,62 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.nestedType && message.nestedType.length)) - message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.extensionRange && message.extensionRange.length)) - message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - if (!(message.oneofDecl && message.oneofDecl.length)) - message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); - break; - case 10: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.field && message.field.length)) + message.field = []; + message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 6: { + if (!(message.extension && message.extension.length)) + message.extension = []; + message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + if (!(message.nestedType && message.nestedType.length)) + message.nestedType = []; + message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); + break; + } + case 4: { + if (!(message.enumType && message.enumType.length)) + message.enumType = []; + message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.extensionRange && message.extensionRange.length)) + message.extensionRange = []; + message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); + break; + } + case 8: { + if (!(message.oneofDecl && message.oneofDecl.length)) + message.oneofDecl = []; + message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 7: { + message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); + break; + } + case 9: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); + break; + } + case 10: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -44163,6 +47036,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto"; + }; + DescriptorProto.ExtensionRange = (function() { /** @@ -44277,15 +47165,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.ExtensionRangeOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -44397,6 +47288,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ExtensionRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ExtensionRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ExtensionRange"; + }; + return ExtensionRange; })(); @@ -44503,12 +47409,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -44607,6 +47515,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ReservedRange + * @function getTypeUrl + * @memberof google.protobuf.DescriptorProto.ReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DescriptorProto.ReservedRange"; + }; + return ReservedRange; })(); @@ -44707,11 +47630,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -44818,6 +47742,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ExtensionRangeOptions + * @function getTypeUrl + * @memberof google.protobuf.ExtensionRangeOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ExtensionRangeOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ExtensionRangeOptions"; + }; + return ExtensionRangeOptions; })(); @@ -45023,39 +47962,50 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = reader.int32(); - break; - case 5: - message.type = reader.int32(); - break; - case 6: - message.typeName = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.defaultValue = reader.string(); - break; - case 9: - message.oneofIndex = reader.int32(); - break; - case 10: - message.jsonName = reader.string(); - break; - case 8: - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; - case 17: - message.proto3Optional = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 3: { + message.number = reader.int32(); + break; + } + case 4: { + message.label = reader.int32(); + break; + } + case 5: { + message.type = reader.int32(); + break; + } + case 6: { + message.typeName = reader.string(); + break; + } + case 2: { + message.extendee = reader.string(); + break; + } + case 7: { + message.defaultValue = reader.string(); + break; + } + case 9: { + message.oneofIndex = reader.int32(); + break; + } + case 10: { + message.jsonName = reader.string(); + break; + } + case 8: { + message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); + break; + } + case 17: { + message.proto3Optional = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -45342,6 +48292,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FieldDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.FieldDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldDescriptorProto"; + }; + /** * Type enum. * @name google.protobuf.FieldDescriptorProto.Type @@ -45510,12 +48475,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -45619,6 +48586,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for OneofDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.OneofDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofDescriptorProto"; + }; + return OneofDescriptorProto; })(); @@ -45764,27 +48746,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.value && message.value.length)) + message.value = []; + message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); + break; + } + case 4: { + if (!(message.reservedRange && message.reservedRange.length)) + message.reservedRange = []; + message.reservedRange.push($root.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(reader, reader.uint32())); + break; + } + case 5: { + if (!(message.reservedName && message.reservedName.length)) + message.reservedName = []; + message.reservedName.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -45960,6 +48947,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto"; + }; + EnumDescriptorProto.EnumReservedRange = (function() { /** @@ -46063,12 +49065,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; + case 1: { + message.start = reader.int32(); + break; + } + case 2: { + message.end = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -46167,6 +49171,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumReservedRange + * @function getTypeUrl + * @memberof google.protobuf.EnumDescriptorProto.EnumReservedRange + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumReservedRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumDescriptorProto.EnumReservedRange"; + }; + return EnumReservedRange; })(); @@ -46287,15 +49306,18 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.number = reader.int32(); + break; + } + case 3: { + message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -46407,6 +49429,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumValueDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.EnumValueDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueDescriptorProto"; + }; + return EnumValueDescriptorProto; })(); @@ -46526,17 +49563,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + if (!(message.method && message.method.length)) + message.method = []; + message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); + break; + } + case 3: { + message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -46666,6 +49706,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ServiceDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.ServiceDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceDescriptorProto"; + }; + return ServiceDescriptorProto; })(); @@ -46816,24 +49871,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.inputType = reader.string(); - break; - case 3: - message.outputType = reader.string(); - break; - case 4: - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); - break; - case 5: - message.clientStreaming = reader.bool(); - break; - case 6: - message.serverStreaming = reader.bool(); - break; + case 1: { + message.name = reader.string(); + break; + } + case 2: { + message.inputType = reader.string(); + break; + } + case 3: { + message.outputType = reader.string(); + break; + } + case 4: { + message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); + break; + } + case 5: { + message.clientStreaming = reader.bool(); + break; + } + case 6: { + message.serverStreaming = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -46969,6 +50030,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MethodDescriptorProto + * @function getTypeUrl + * @memberof google.protobuf.MethodDescriptorProto + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodDescriptorProto.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodDescriptorProto"; + }; + return MethodDescriptorProto; })(); @@ -47299,76 +50375,98 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.javaPackage = reader.string(); - break; - case 8: - message.javaOuterClassname = reader.string(); - break; - case 10: - message.javaMultipleFiles = reader.bool(); - break; - case 20: - message.javaGenerateEqualsAndHash = reader.bool(); - break; - case 27: - message.javaStringCheckUtf8 = reader.bool(); - break; - case 9: - message.optimizeFor = reader.int32(); - break; - case 11: - message.goPackage = reader.string(); - break; - case 16: - message.ccGenericServices = reader.bool(); - break; - case 17: - message.javaGenericServices = reader.bool(); - break; - case 18: - message.pyGenericServices = reader.bool(); - break; - case 42: - message.phpGenericServices = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.ccEnableArenas = reader.bool(); - break; - case 36: - message.objcClassPrefix = reader.string(); - break; - case 37: - message.csharpNamespace = reader.string(); - break; - case 39: - message.swiftPrefix = reader.string(); - break; - case 40: - message.phpClassPrefix = reader.string(); - break; - case 41: - message.phpNamespace = reader.string(); - break; - case 44: - message.phpMetadataNamespace = reader.string(); - break; - case 45: - message.rubyPackage = reader.string(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1053: - if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) - message[".google.api.resourceDefinition"] = []; - message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); - break; + case 1: { + message.javaPackage = reader.string(); + break; + } + case 8: { + message.javaOuterClassname = reader.string(); + break; + } + case 10: { + message.javaMultipleFiles = reader.bool(); + break; + } + case 20: { + message.javaGenerateEqualsAndHash = reader.bool(); + break; + } + case 27: { + message.javaStringCheckUtf8 = reader.bool(); + break; + } + case 9: { + message.optimizeFor = reader.int32(); + break; + } + case 11: { + message.goPackage = reader.string(); + break; + } + case 16: { + message.ccGenericServices = reader.bool(); + break; + } + case 17: { + message.javaGenericServices = reader.bool(); + break; + } + case 18: { + message.pyGenericServices = reader.bool(); + break; + } + case 42: { + message.phpGenericServices = reader.bool(); + break; + } + case 23: { + message.deprecated = reader.bool(); + break; + } + case 31: { + message.ccEnableArenas = reader.bool(); + break; + } + case 36: { + message.objcClassPrefix = reader.string(); + break; + } + case 37: { + message.csharpNamespace = reader.string(); + break; + } + case 39: { + message.swiftPrefix = reader.string(); + break; + } + case 40: { + message.phpClassPrefix = reader.string(); + break; + } + case 41: { + message.phpNamespace = reader.string(); + break; + } + case 44: { + message.phpMetadataNamespace = reader.string(); + break; + } + case 45: { + message.rubyPackage = reader.string(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) + message[".google.api.resourceDefinition"] = []; + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -47681,6 +50779,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FileOptions + * @function getTypeUrl + * @memberof google.protobuf.FileOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FileOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FileOptions"; + }; + /** * OptimizeMode enum. * @name google.protobuf.FileOptions.OptimizeMode @@ -47849,26 +50962,32 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.messageSetWireFormat = reader.bool(); - break; - case 2: - message.noStandardDescriptorAccessor = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.mapEntry = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1053: - message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); - break; + case 1: { + message.messageSetWireFormat = reader.bool(); + break; + } + case 2: { + message.noStandardDescriptorAccessor = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 7: { + message.mapEntry = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1053: { + message[".google.api.resource"] = $root.google.api.ResourceDescriptor.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -48022,6 +51141,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MessageOptions + * @function getTypeUrl + * @memberof google.protobuf.MessageOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MessageOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MessageOptions"; + }; + return MessageOptions; })(); @@ -48035,6 +51169,7 @@ * @property {boolean|null} [packed] FieldOptions packed * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype * @property {boolean|null} [lazy] FieldOptions lazy + * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy * @property {boolean|null} [deprecated] FieldOptions deprecated * @property {boolean|null} [weak] FieldOptions weak * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption @@ -48091,6 +51226,14 @@ */ FieldOptions.prototype.lazy = false; + /** + * FieldOptions unverifiedLazy. + * @member {boolean} unverifiedLazy + * @memberof google.protobuf.FieldOptions + * @instance + */ + FieldOptions.prototype.unverifiedLazy = false; + /** * FieldOptions deprecated. * @member {boolean} deprecated @@ -48167,6 +51310,8 @@ writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); if (message.weak != null && Object.hasOwnProperty.call(message, "weak")) writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); + if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy")) + writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy); if (message.uninterpretedOption != null && message.uninterpretedOption.length) for (var i = 0; i < message.uninterpretedOption.length; ++i) $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); @@ -48212,42 +51357,55 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.ctype = reader.int32(); - break; - case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1052: - if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) - message[".google.api.fieldBehavior"] = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + message.ctype = reader.int32(); + break; + } + case 2: { + message.packed = reader.bool(); + break; + } + case 6: { + message.jstype = reader.int32(); + break; + } + case 5: { + message.lazy = reader.bool(); + break; + } + case 15: { + message.unverifiedLazy = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 10: { + message.weak = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1052: { + if (!(message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length)) + message[".google.api.fieldBehavior"] = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message[".google.api.fieldBehavior"].push(reader.int32()); + } else message[".google.api.fieldBehavior"].push(reader.int32()); - } else - message[".google.api.fieldBehavior"].push(reader.int32()); - break; - case 1055: - message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); - break; + break; + } + case 1055: { + message[".google.api.resourceReference"] = $root.google.api.ResourceReference.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -48307,6 +51465,9 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) if (typeof message.lazy !== "boolean") return "lazy: boolean expected"; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + if (typeof message.unverifiedLazy !== "boolean") + return "unverifiedLazy: boolean expected"; if (message.deprecated != null && message.hasOwnProperty("deprecated")) if (typeof message.deprecated !== "boolean") return "deprecated: boolean expected"; @@ -48392,6 +51553,8 @@ } if (object.lazy != null) message.lazy = Boolean(object.lazy); + if (object.unverifiedLazy != null) + message.unverifiedLazy = Boolean(object.unverifiedLazy); if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); if (object.weak != null) @@ -48479,6 +51642,7 @@ object.lazy = false; object.jstype = options.enums === String ? "JS_NORMAL" : 0; object.weak = false; + object.unverifiedLazy = false; object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) @@ -48493,6 +51657,8 @@ object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; + if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) + object.unverifiedLazy = message.unverifiedLazy; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -48519,6 +51685,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FieldOptions + * @function getTypeUrl + * @memberof google.protobuf.FieldOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FieldOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FieldOptions"; + }; + /** * CType enum. * @name google.protobuf.FieldOptions.CType @@ -48648,11 +51829,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -48759,6 +51941,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for OneofOptions + * @function getTypeUrl + * @memberof google.protobuf.OneofOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + OneofOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.OneofOptions"; + }; + return OneofOptions; })(); @@ -48878,17 +52075,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - message.allowAlias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 2: { + message.allowAlias = reader.bool(); + break; + } + case 3: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -49013,6 +52213,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumOptions"; + }; + return EnumOptions; })(); @@ -49121,14 +52336,16 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; + case 1: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -49244,6 +52461,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for EnumValueOptions + * @function getTypeUrl + * @memberof google.protobuf.EnumValueOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + EnumValueOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.EnumValueOptions"; + }; + return EnumValueOptions; })(); @@ -49374,20 +52606,24 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 1049: - message[".google.api.defaultHost"] = reader.string(); - break; - case 1050: - message[".google.api.oauthScopes"] = reader.string(); - break; + case 33: { + message.deprecated = reader.bool(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 1049: { + message[".google.api.defaultHost"] = reader.string(); + break; + } + case 1050: { + message[".google.api.oauthScopes"] = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -49520,6 +52756,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for ServiceOptions + * @function getTypeUrl + * @memberof google.protobuf.ServiceOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ServiceOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.ServiceOptions"; + }; + return ServiceOptions; })(); @@ -49663,25 +52914,30 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 34: - message.idempotencyLevel = reader.int32(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 72295728: - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); - break; - case 1051: - if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) - message[".google.api.methodSignature"] = []; - message[".google.api.methodSignature"].push(reader.string()); - break; + case 33: { + message.deprecated = reader.bool(); + break; + } + case 34: { + message.idempotencyLevel = reader.int32(); + break; + } + case 999: { + if (!(message.uninterpretedOption && message.uninterpretedOption.length)) + message.uninterpretedOption = []; + message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); + break; + } + case 72295728: { + message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); + break; + } + case 1051: { + if (!(message[".google.api.methodSignature"] && message[".google.api.methodSignature"].length)) + message[".google.api.methodSignature"] = []; + message[".google.api.methodSignature"].push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -49858,6 +53114,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for MethodOptions + * @function getTypeUrl + * @memberof google.protobuf.MethodOptions + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + MethodOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.MethodOptions"; + }; + /** * IdempotencyLevel enum. * @name google.protobuf.MethodOptions.IdempotencyLevel @@ -50037,29 +53308,36 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 2: - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); - break; - case 3: - message.identifierValue = reader.string(); - break; - case 4: - message.positiveIntValue = reader.uint64(); - break; - case 5: - message.negativeIntValue = reader.int64(); - break; - case 6: - message.doubleValue = reader.double(); - break; - case 7: - message.stringValue = reader.bytes(); - break; - case 8: - message.aggregateValue = reader.string(); - break; + case 2: { + if (!(message.name && message.name.length)) + message.name = []; + message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); + break; + } + case 3: { + message.identifierValue = reader.string(); + break; + } + case 4: { + message.positiveIntValue = reader.uint64(); + break; + } + case 5: { + message.negativeIntValue = reader.int64(); + break; + } + case 6: { + message.doubleValue = reader.double(); + break; + } + case 7: { + message.stringValue = reader.bytes(); + break; + } + case 8: { + message.aggregateValue = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -50172,7 +53450,7 @@ if (object.stringValue != null) if (typeof object.stringValue === "string") $util.base64.decode(object.stringValue, message.stringValue = $util.newBuffer($util.base64.length(object.stringValue)), 0); - else if (object.stringValue.length) + else if (object.stringValue.length >= 0) message.stringValue = object.stringValue; if (object.aggregateValue != null) message.aggregateValue = String(object.aggregateValue); @@ -50253,6 +53531,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UninterpretedOption + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UninterpretedOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption"; + }; + UninterpretedOption.NamePart = (function() { /** @@ -50354,12 +53647,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.namePart = reader.string(); - break; - case 2: - message.isExtension = reader.bool(); - break; + case 1: { + message.namePart = reader.string(); + break; + } + case 2: { + message.isExtension = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -50460,6 +53755,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for NamePart + * @function getTypeUrl + * @memberof google.protobuf.UninterpretedOption.NamePart + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NamePart.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UninterpretedOption.NamePart"; + }; + return NamePart; })(); @@ -50560,11 +53870,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.location && message.location.length)) + message.location = []; + message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -50671,6 +53982,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for SourceCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + SourceCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo"; + }; + SourceCodeInfo.Location = (function() { /** @@ -50819,37 +54145,42 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + break; + } + case 2: { + if (!(message.span && message.span.length)) + message.span = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.span.push(reader.int32()); + } else message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - case 3: - message.leadingComments = reader.string(); - break; - case 4: - message.trailingComments = reader.string(); - break; - case 6: - if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) - message.leadingDetachedComments = []; - message.leadingDetachedComments.push(reader.string()); - break; + break; + } + case 3: { + message.leadingComments = reader.string(); + break; + } + case 4: { + message.trailingComments = reader.string(); + break; + } + case 6: { + if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) + message.leadingDetachedComments = []; + message.leadingDetachedComments.push(reader.string()); + break; + } default: reader.skipType(tag & 7); break; @@ -51010,6 +54341,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Location + * @function getTypeUrl + * @memberof google.protobuf.SourceCodeInfo.Location + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.SourceCodeInfo.Location"; + }; + return Location; })(); @@ -51110,11 +54456,12 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); - break; + case 1: { + if (!(message.annotation && message.annotation.length)) + message.annotation = []; + message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -51221,6 +54568,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for GeneratedCodeInfo + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GeneratedCodeInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo"; + }; + GeneratedCodeInfo.Annotation = (function() { /** @@ -51231,6 +54593,7 @@ * @property {string|null} [sourceFile] Annotation sourceFile * @property {number|null} [begin] Annotation begin * @property {number|null} [end] Annotation end + * @property {google.protobuf.GeneratedCodeInfo.Annotation.Semantic|null} [semantic] Annotation semantic */ /** @@ -51281,6 +54644,14 @@ */ Annotation.prototype.end = 0; + /** + * Annotation semantic. + * @member {google.protobuf.GeneratedCodeInfo.Annotation.Semantic} semantic + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @instance + */ + Annotation.prototype.semantic = 0; + /** * Creates a new Annotation instance using the specified properties. * @function create @@ -51317,6 +54688,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); if (message.end != null && Object.hasOwnProperty.call(message, "end")) writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); + if (message.semantic != null && Object.hasOwnProperty.call(message, "semantic")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.semantic); return writer; }; @@ -51351,25 +54724,33 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) + case 1: { + if (!(message.path && message.path.length)) + message.path = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.path.push(reader.int32()); + } else message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - message.sourceFile = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; + break; + } + case 2: { + message.sourceFile = reader.string(); + break; + } + case 3: { + message.begin = reader.int32(); + break; + } + case 4: { + message.end = reader.int32(); + break; + } + case 5: { + message.semantic = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -51421,6 +54802,15 @@ if (message.end != null && message.hasOwnProperty("end")) if (!$util.isInteger(message.end)) return "end: integer expected"; + if (message.semantic != null && message.hasOwnProperty("semantic")) + switch (message.semantic) { + default: + return "semantic: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -51449,6 +54839,20 @@ message.begin = object.begin | 0; if (object.end != null) message.end = object.end | 0; + switch (object.semantic) { + case "NONE": + case 0: + message.semantic = 0; + break; + case "SET": + case 1: + message.semantic = 1; + break; + case "ALIAS": + case 2: + message.semantic = 2; + break; + } return message; }; @@ -51471,6 +54875,7 @@ object.sourceFile = ""; object.begin = 0; object.end = 0; + object.semantic = options.enums === String ? "NONE" : 0; } if (message.path && message.path.length) { object.path = []; @@ -51483,6 +54888,8 @@ object.begin = message.begin; if (message.end != null && message.hasOwnProperty("end")) object.end = message.end; + if (message.semantic != null && message.hasOwnProperty("semantic")) + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; return object; }; @@ -51497,6 +54904,37 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Annotation + * @function getTypeUrl + * @memberof google.protobuf.GeneratedCodeInfo.Annotation + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Annotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.GeneratedCodeInfo.Annotation"; + }; + + /** + * Semantic enum. + * @name google.protobuf.GeneratedCodeInfo.Annotation.Semantic + * @enum {number} + * @property {number} NONE=0 NONE value + * @property {number} SET=1 SET value + * @property {number} ALIAS=2 ALIAS value + */ + Annotation.Semantic = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "NONE"] = 0; + values[valuesById[1] = "SET"] = 1; + values[valuesById[2] = "ALIAS"] = 2; + return values; + })(); + return Annotation; })(); @@ -51606,12 +55044,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -51724,6 +55164,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Duration + * @function getTypeUrl + * @memberof google.protobuf.Duration + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Duration"; + }; + return Duration; })(); @@ -51884,6 +55339,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Empty + * @function getTypeUrl + * @memberof google.protobuf.Empty + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Empty"; + }; + return Empty; })(); @@ -51990,12 +55460,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; + case 1: { + message.seconds = reader.int64(); + break; + } + case 2: { + message.nanos = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -52108,6 +55580,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Timestamp + * @function getTypeUrl + * @memberof google.protobuf.Timestamp + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Timestamp"; + }; + return Timestamp; })(); @@ -52203,9 +55690,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.double(); - break; + case 1: { + message.value = reader.double(); + break; + } default: reader.skipType(tag & 7); break; @@ -52295,6 +55783,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for DoubleValue + * @function getTypeUrl + * @memberof google.protobuf.DoubleValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + DoubleValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.DoubleValue"; + }; + return DoubleValue; })(); @@ -52390,9 +55893,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.float(); - break; + case 1: { + message.value = reader.float(); + break; + } default: reader.skipType(tag & 7); break; @@ -52482,6 +55986,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for FloatValue + * @function getTypeUrl + * @memberof google.protobuf.FloatValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + FloatValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.FloatValue"; + }; + return FloatValue; })(); @@ -52577,9 +56096,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.int64(); - break; + case 1: { + message.value = reader.int64(); + break; + } default: reader.skipType(tag & 7); break; @@ -52683,6 +56203,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Int64Value + * @function getTypeUrl + * @memberof google.protobuf.Int64Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Int64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Int64Value"; + }; + return Int64Value; })(); @@ -52778,9 +56313,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.uint64(); - break; + case 1: { + message.value = reader.uint64(); + break; + } default: reader.skipType(tag & 7); break; @@ -52884,6 +56420,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UInt64Value + * @function getTypeUrl + * @memberof google.protobuf.UInt64Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UInt64Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UInt64Value"; + }; + return UInt64Value; })(); @@ -52979,9 +56530,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.int32(); - break; + case 1: { + message.value = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -53071,6 +56623,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Int32Value + * @function getTypeUrl + * @memberof google.protobuf.Int32Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Int32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Int32Value"; + }; + return Int32Value; })(); @@ -53166,9 +56733,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.uint32(); - break; + case 1: { + message.value = reader.uint32(); + break; + } default: reader.skipType(tag & 7); break; @@ -53258,6 +56826,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for UInt32Value + * @function getTypeUrl + * @memberof google.protobuf.UInt32Value + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UInt32Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.UInt32Value"; + }; + return UInt32Value; })(); @@ -53353,9 +56936,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.bool(); - break; + case 1: { + message.value = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -53445,6 +57029,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BoolValue + * @function getTypeUrl + * @memberof google.protobuf.BoolValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BoolValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.BoolValue"; + }; + return BoolValue; })(); @@ -53540,9 +57139,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; + case 1: { + message.value = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -53632,6 +57232,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for StringValue + * @function getTypeUrl + * @memberof google.protobuf.StringValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + StringValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.StringValue"; + }; + return StringValue; })(); @@ -53727,9 +57342,10 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.value = reader.bytes(); - break; + case 1: { + message.value = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -53786,7 +57402,7 @@ if (object.value != null) if (typeof object.value === "string") $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) + else if (object.value.length >= 0) message.value = object.value; return message; }; @@ -53828,6 +57444,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for BytesValue + * @function getTypeUrl + * @memberof google.protobuf.BytesValue + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + BytesValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.BytesValue"; + }; + return BytesValue; })(); @@ -53934,12 +57565,14 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.type_url = reader.string(); - break; - case 2: - message.value = reader.bytes(); - break; + case 1: { + message.type_url = reader.string(); + break; + } + case 2: { + message.value = reader.bytes(); + break; + } default: reader.skipType(tag & 7); break; @@ -54001,7 +57634,7 @@ if (object.value != null) if (typeof object.value === "string") $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length) + else if (object.value.length >= 0) message.value = object.value; return message; }; @@ -54047,6 +57680,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Any + * @function getTypeUrl + * @memberof google.protobuf.Any + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.protobuf.Any"; + }; + return Any; })(); @@ -54222,17 +57870,20 @@ while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.code = reader.int32(); - break; - case 2: - message.message = reader.string(); - break; - case 3: - if (!(message.details && message.details.length)) - message.details = []; - message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32())); - break; + case 1: { + message.code = reader.int32(); + break; + } + case 2: { + message.message = reader.string(); + break; + } + case 3: { + if (!(message.details && message.details.length)) + message.details = []; + message.details.push($root.google.protobuf.Any.decode(reader, reader.uint32())); + break; + } default: reader.skipType(tag & 7); break; @@ -54357,6 +58008,21 @@ return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + /** + * Gets the default type url for Status + * @function getTypeUrl + * @memberof google.rpc.Status + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + Status.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.rpc.Status"; + }; + return Status; })(); diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 59344b9a5c8..8fac500d445 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -4989,6 +4989,10 @@ "syntax": { "type": "string", "id": 12 + }, + "edition": { + "type": "string", + "id": 13 } } }, @@ -5517,6 +5521,13 @@ "default": false } }, + "unverifiedLazy": { + "type": "bool", + "id": 15, + "options": { + "default": false + } + }, "deprecated": { "type": "bool", "id": 3, @@ -5809,6 +5820,19 @@ "end": { "type": "int32", "id": 4 + }, + "semantic": { + "type": "Semantic", + "id": 5 + } + }, + "nested": { + "Semantic": { + "values": { + "NONE": 0, + "SET": 1, + "ALIAS": 2 + } } } } From a922a4319bc30f14f0de8aae0ba9d19d54ff6bb4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 27 Aug 2022 05:12:18 +0000 Subject: [PATCH 347/371] fix: do not import the whole google-gax from proto JS (#1553) (#562) fix: use google-gax v3.3.0 Source-Link: https://github.com/googleapis/synthtool/commit/c73d112a11a1f1a93efa67c50495c19aa3a88910 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:b15a6f06cc06dcffa11e1bebdf1a74b6775a134aac24a0f86f51ddf728eb373e --- packages/google-container/package.json | 2 +- packages/google-container/protos/protos.d.ts | 2 +- packages/google-container/protos/protos.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 1f1a80188d8..336ef224794 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -43,7 +43,7 @@ "precompile": "gts clean" }, "dependencies": { - "google-gax": "^3.0.1" + "google-gax": "^3.3.0" }, "devDependencies": { "@types/mocha": "^9.0.0", diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index a96c8ecb9b9..dfa87f1fddc 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -13,7 +13,7 @@ // limitations under the License. import Long = require("long"); -import {protobuf as $protobuf} from "google-gax"; +import type {protobuf as $protobuf} from "google-gax"; /** Namespace google. */ export namespace google { diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 7e81d75fa2a..4eada2b69ee 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -19,7 +19,7 @@ define(["protobufjs/minimal"], factory); /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("google-gax").protobufMinimal); + module.exports = factory(require("google-gax/build/src/protobuf").protobufMinimal); })(this, function($protobuf) { "use strict"; From 5946202e139fc2844444b326ab05ca9794340c71 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 29 Aug 2022 11:39:06 -0400 Subject: [PATCH 348/371] chore(main): release 4.1.1 (#559) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 4.1.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- packages/google-container/CHANGELOG.md | 9 +++++++++ packages/google-container/package.json | 2 +- .../v1/snippet_metadata.google.container.v1.json | 2 +- packages/google-container/samples/package.json | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 42014879024..cbb5efc488a 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,15 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [4.1.1](https://github.com/googleapis/nodejs-cloud-container/compare/v4.1.0...v4.1.1) (2022-08-27) + + +### Bug Fixes + +* change import long to require ([#558](https://github.com/googleapis/nodejs-cloud-container/issues/558)) ([83df9aa](https://github.com/googleapis/nodejs-cloud-container/commit/83df9aa300b311b4a4928671a518d25a4b38300f)) +* do not import the whole google-gax from proto JS ([#1553](https://github.com/googleapis/nodejs-cloud-container/issues/1553)) ([#562](https://github.com/googleapis/nodejs-cloud-container/issues/562)) ([50f317f](https://github.com/googleapis/nodejs-cloud-container/commit/50f317fff66003b40086b219a0e21a5fa1e7608a)) +* use google-gax v3.3.0 ([50f317f](https://github.com/googleapis/nodejs-cloud-container/commit/50f317fff66003b40086b219a0e21a5fa1e7608a)) + ## [4.1.0](https://github.com/googleapis/nodejs-cloud-container/compare/v4.0.1...v4.1.0) (2022-07-04) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 336ef224794..3e70e66e4aa 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "4.1.0", + "version": "4.1.1", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 10e750936b2..3a6607d3f09 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "4.1.0", + "version": "4.1.1", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index e2fa7bfb493..19f472007b8 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^4.1.0", + "@google-cloud/container": "^4.1.1", "uuid": "^8.3.2" }, "devDependencies": { From 317f9b9ea6a6f21f48dec8a17f6aecf865f95ed5 Mon Sep 17 00:00:00 2001 From: Olivier Bourgeois <3271352+bourgeoisor@users.noreply.github.com> Date: Thu, 1 Sep 2022 18:45:22 -0400 Subject: [PATCH 349/371] chore: Remove anthos-dpe from owners (#563) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remove anthos-dpe from owners * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Remove duplicate codeowner_team from metadata * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- packages/google-container/.repo-metadata.json | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json index dbbe64272ec..d50c2b1318c 100644 --- a/packages/google-container/.repo-metadata.json +++ b/packages/google-container/.repo-metadata.json @@ -8,7 +8,6 @@ "distribution_name": "@google-cloud/container", "requires_billing": true, "product_documentation": "https://cloud.google.com/kubernetes-engine", - "codeowner_team": "@googleapis/anthos-dpe", "name_pretty": "Kubernetes Engine Cluster Manager API", "client_documentation": "https://cloud.google.com/nodejs/docs/reference/container/latest", "release_level": "stable", From 1b562fd2cd49bd346a69cd03c44b9df5ba0e9159 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 07:28:17 +0000 Subject: [PATCH 350/371] fix: allow passing gax instance to client constructor (#557) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 470911839 Source-Link: https://github.com/googleapis/googleapis/commit/352756699ebc5b2144c252867c265ea44448712e Source-Link: https://github.com/googleapis/googleapis-gen/commit/f16a1d224f00a630ea43d6a9a1a31f566f45cdea Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2YTFkMjI0ZjAwYTYzMGVhNDNkNmE5YTFhMzFmNTY2ZjQ1Y2RlYSJ9 feat: accept google-gax instance as a parameter Please see the documentation of the client constructor for details. PiperOrigin-RevId: 470332808 Source-Link: https://github.com/googleapis/googleapis/commit/d4a23675457cd8f0b44080e0594ec72de1291b89 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e97a1ac204ead4fe7341f91e72db7c6ac6016341 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTk3YTFhYzIwNGVhZDRmZTczNDFmOTFlNzJkYjdjNmFjNjAxNjM0MSJ9 fix: better support for fallback mode PiperOrigin-RevId: 468790263 Source-Link: https://github.com/googleapis/googleapis/commit/873ab456273d105245df0fb82a6c17a814553b80 Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb6f37aeff2a3472e40a7bbace8c67d75e24bee5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9 --- .../v1/cluster_manager.cancel_operation.js | 3 + .../cluster_manager.complete_i_p_rotation.js | 3 + ...ster_manager.complete_node_pool_upgrade.js | 3 + .../v1/cluster_manager.create_cluster.js | 3 + .../v1/cluster_manager.create_node_pool.js | 3 + .../v1/cluster_manager.delete_cluster.js | 3 + .../v1/cluster_manager.delete_node_pool.js | 3 + .../v1/cluster_manager.get_cluster.js | 3 + .../cluster_manager.get_j_s_o_n_web_keys.js | 3 + .../v1/cluster_manager.get_node_pool.js | 3 + .../v1/cluster_manager.get_operation.js | 3 + .../v1/cluster_manager.get_server_config.js | 3 + .../v1/cluster_manager.list_clusters.js | 3 + .../v1/cluster_manager.list_node_pools.js | 3 + .../v1/cluster_manager.list_operations.js | 3 + ...cluster_manager.list_usable_subnetworks.js | 3 + ...ster_manager.rollback_node_pool_upgrade.js | 3 + .../v1/cluster_manager.set_addons_config.js | 3 + .../v1/cluster_manager.set_labels.js | 3 + .../v1/cluster_manager.set_legacy_abac.js | 3 + .../v1/cluster_manager.set_locations.js | 3 + .../v1/cluster_manager.set_logging_service.js | 3 + .../cluster_manager.set_maintenance_policy.js | 3 + .../v1/cluster_manager.set_master_auth.js | 3 + .../cluster_manager.set_monitoring_service.js | 3 + .../v1/cluster_manager.set_network_policy.js | 3 + ...uster_manager.set_node_pool_autoscaling.js | 3 + ...luster_manager.set_node_pool_management.js | 3 + .../v1/cluster_manager.set_node_pool_size.js | 3 + .../v1/cluster_manager.start_i_p_rotation.js | 3 + .../v1/cluster_manager.update_cluster.js | 3 + .../v1/cluster_manager.update_master.js | 3 + .../v1/cluster_manager.update_node_pool.js | 3 + .../snippet_metadata.google.container.v1.json | 66 ++++---- .../src/v1/cluster_manager_client.ts | 105 +++++++----- .../test/gapic_cluster_manager_v1.ts | 160 +++++++++--------- 36 files changed, 272 insertions(+), 158 deletions(-) diff --git a/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js b/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js index f1a35c6b2d2..f4d133f07cf 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_CancelOperation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js index 6af3f963a75..a5dd0501419 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_CompleteIPRotation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js b/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js index c5a8e6048ed..d819a53952f 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js index 204dcbbd744..4497e142a43 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js @@ -23,6 +23,9 @@ function main(cluster) { // [START container_v1_generated_ClusterManager_CreateCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js index af60d05f377..caced3fee96 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js @@ -23,6 +23,9 @@ function main(nodePool) { // [START container_v1_generated_ClusterManager_CreateNodePool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js index ba757276861..241e48a1afe 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_DeleteCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js index ba697521c98..392cf2681d2 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_DeleteNodePool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js index 89428f5e416..4d1bd19739f 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_GetCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js index 0190e749d73..04144db2eba 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_GetJSONWebKeys_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js index bcb0e231b20..8fbddbdc618 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_GetNodePool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js b/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js index 5ef09a4a0c4..9c4b425aa37 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_GetOperation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js b/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js index c21edceea12..1bf591ffe18 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_GetServerConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js b/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js index d974e281bf5..aa6a4b116ee 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_ListClusters_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js index 14c853e65a8..3a234ce6769 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_ListNodePools_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js b/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js index 45191b1e293..911234d50a4 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_ListOperations_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js b/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js index 4ea47b2a8a7..d3d61966c05 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_ListUsableSubnetworks_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js index c866801e9e5..b237399dc2e 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js b/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js index dc570df0852..9ec41f77a84 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js @@ -23,6 +23,9 @@ function main(addonsConfig) { // [START container_v1_generated_ClusterManager_SetAddonsConfig_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js index b8a07a421ae..a8fc2deb528 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js @@ -23,6 +23,9 @@ function main(resourceLabels, labelFingerprint) { // [START container_v1_generated_ClusterManager_SetLabels_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js index 87bd53d3598..cebcea697fc 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js @@ -23,6 +23,9 @@ function main(enabled) { // [START container_v1_generated_ClusterManager_SetLegacyAbac_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js b/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js index d926bb734e5..6ecdfdd1b84 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js @@ -23,6 +23,9 @@ function main(locations) { // [START container_v1_generated_ClusterManager_SetLocations_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js b/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js index 2b120172b4a..79f232f8320 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js @@ -23,6 +23,9 @@ function main(loggingService) { // [START container_v1_generated_ClusterManager_SetLoggingService_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js index bfdf6b47c1e..d4a92ebcc63 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js @@ -23,6 +23,9 @@ function main(projectId, zone, clusterId, maintenancePolicy) { // [START container_v1_generated_ClusterManager_SetMaintenancePolicy_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js b/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js index 1fcac1fd012..be77fbda824 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js @@ -23,6 +23,9 @@ function main(action, update) { // [START container_v1_generated_ClusterManager_SetMasterAuth_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js b/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js index 783537d7788..ac0ed27e68a 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js @@ -23,6 +23,9 @@ function main(monitoringService) { // [START container_v1_generated_ClusterManager_SetMonitoringService_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js index 94e1e76cbd4..946e98c275e 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js @@ -23,6 +23,9 @@ function main(networkPolicy) { // [START container_v1_generated_ClusterManager_SetNetworkPolicy_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js index d5dbb41ac0d..a9b190926f5 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js @@ -23,6 +23,9 @@ function main(autoscaling) { // [START container_v1_generated_ClusterManager_SetNodePoolAutoscaling_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js index b16dd65f1fd..ef03f3d6f49 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js @@ -23,6 +23,9 @@ function main(management) { // [START container_v1_generated_ClusterManager_SetNodePoolManagement_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js index c89962d79ac..8eea9f1e167 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js @@ -23,6 +23,9 @@ function main(nodeCount) { // [START container_v1_generated_ClusterManager_SetNodePoolSize_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js index 0a28f39f077..308c9fddb26 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js @@ -23,6 +23,9 @@ function main() { // [START container_v1_generated_ClusterManager_StartIPRotation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js b/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js index a34c25bb90f..2e4a445dc0d 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js @@ -23,6 +23,9 @@ function main(update) { // [START container_v1_generated_ClusterManager_UpdateCluster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_master.js b/packages/google-container/samples/generated/v1/cluster_manager.update_master.js index b69ffcac22b..e3c26fb1e76 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_master.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_master.js @@ -23,6 +23,9 @@ function main(masterVersion) { // [START container_v1_generated_ClusterManager_UpdateMaster_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index d86300583f9..3ae32ee4494 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -23,6 +23,9 @@ function main(nodeVersion, imageType) { // [START container_v1_generated_ClusterManager_UpdateNodePool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 3a6607d3f09..daf3234692f 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -70,7 +70,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -122,7 +122,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -174,7 +174,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 128, + "end": 131, "type": "FULL" } ], @@ -342,7 +342,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -402,7 +402,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -458,7 +458,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -514,7 +514,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -570,7 +570,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -626,7 +626,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -682,7 +682,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -742,7 +742,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -794,7 +794,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -842,7 +842,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -894,7 +894,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -946,7 +946,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -994,7 +994,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1034,7 +1034,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1086,7 +1086,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1142,7 +1142,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1198,7 +1198,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1254,7 +1254,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -1294,7 +1294,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1354,7 +1354,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1414,7 +1414,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -1474,7 +1474,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1530,7 +1530,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -1586,7 +1586,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1638,7 +1638,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -1698,7 +1698,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -1754,7 +1754,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -1810,7 +1810,7 @@ "segments": [ { "start": 25, - "end": 71, + "end": 74, "type": "FULL" } ], diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 034df697141..51a957b8d2e 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -17,8 +17,8 @@ // ** All changes to this file may be overwritten. ** /* global window */ -import * as gax from 'google-gax'; -import { +import type * as gax from 'google-gax'; +import type { Callback, CallOptions, Descriptors, @@ -26,9 +26,7 @@ import { PaginationCallback, GaxCall, } from 'google-gax'; - import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -37,7 +35,6 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './cluster_manager_client_config.json'; - const version = require('../../../package.json').version; /** @@ -96,8 +93,18 @@ export class ClusterManagerClient { * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. * For more information, please check the * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. + * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you + * need to avoid loading the default gRPC version and want to use the fallback + * HTTP implementation. Load only fallback version and pass it to the constructor: + * ``` + * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC + * const client = new ClusterManagerClient({fallback: 'rest'}, gax); + * ``` */ - constructor(opts?: ClientOptions) { + constructor( + opts?: ClientOptions, + gaxInstance?: typeof gax | typeof gax.fallback + ) { // Ensure that options include all the required fields. const staticMembers = this.constructor as typeof ClusterManagerClient; const servicePath = @@ -117,8 +124,13 @@ export class ClusterManagerClient { opts['scopes'] = staticMembers.scopes; } + // Load google-gax module synchronously if needed + if (!gaxInstance) { + gaxInstance = require('google-gax') as typeof gax; + } + // Choose either gRPC or proto-over-HTTP implementation of google-gax. - this._gaxModule = opts.fallback ? gax.fallback : gax; + this._gaxModule = opts.fallback ? gaxInstance.fallback : gaxInstance; // Create a `gaxGrpc` object, with any grpc-specific options sent to the client. this._gaxGrpc = new this._gaxModule.GrpcClient(opts); @@ -183,7 +195,7 @@ export class ClusterManagerClient { this.innerApiCalls = {}; // Add a warn function to the client constructor so it can be easily tested. - this.warn = gax.warn; + this.warn = this._gaxModule.warn; } /** @@ -272,7 +284,8 @@ export class ClusterManagerClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -423,7 +436,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', project_id: request.projectId || '', zone: request.zone || '', @@ -521,7 +534,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -633,7 +646,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', project_id: request.projectId || '', zone: request.zone || '', @@ -733,7 +746,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -885,7 +898,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -999,7 +1012,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -1117,7 +1130,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -1236,7 +1249,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -1338,7 +1351,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -1449,7 +1462,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -1564,7 +1577,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -1669,7 +1682,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -1776,7 +1789,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -1873,7 +1886,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', project_id: request.projectId || '', zone: request.zone || '', @@ -1971,7 +1984,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -2070,7 +2083,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -2166,7 +2179,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -2255,7 +2268,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -2351,7 +2364,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', project_id: request.projectId || '', zone: request.zone || '', @@ -2454,7 +2467,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -2557,7 +2570,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', project_id: request.projectId || '', zone: request.zone || '', @@ -2660,7 +2673,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -2758,7 +2771,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', }); this.initialize(); @@ -2874,7 +2887,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -2992,7 +3005,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -3101,7 +3114,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -3202,7 +3215,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -3303,7 +3316,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -3404,7 +3417,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -3511,7 +3524,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -3615,7 +3628,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -3723,7 +3736,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ name: request.name || '', project_id: request.projectId || '', zone: request.zone || '', @@ -3835,7 +3848,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); this.initialize(); @@ -3883,14 +3896,14 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listUsableSubnetworks']; const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listUsableSubnetworks.createStream( - this.innerApiCalls.listUsableSubnetworks as gax.GaxCall, + this.innerApiCalls.listUsableSubnetworks as GaxCall, request, callSettings ); @@ -3940,7 +3953,7 @@ export class ClusterManagerClient { options.otherArgs = options.otherArgs || {}; options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = - gax.routingHeader.fromParams({ + this._gaxModule.routingHeader.fromParams({ parent: request.parent || '', }); const defaultCallSettings = this._defaults['listUsableSubnetworks']; @@ -3948,7 +3961,7 @@ export class ClusterManagerClient { this.initialize(); return this.descriptors.page.listUsableSubnetworks.asyncIterate( this.innerApiCalls['listUsableSubnetworks'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index 225d6564021..8768b6f9c93 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -113,101 +113,103 @@ function stubAsyncIterationCall( } describe('v1.ClusterManagerClient', () => { - it('has servicePath', () => { - const servicePath = - clustermanagerModule.v1.ClusterManagerClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - clustermanagerModule.v1.ClusterManagerClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = clustermanagerModule.v1.ClusterManagerClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + clustermanagerModule.v1.ClusterManagerClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new clustermanagerModule.v1.ClusterManagerClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + clustermanagerModule.v1.ClusterManagerClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - fallback: true, + it('has port', () => { + const port = clustermanagerModule.v1.ClusterManagerClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new clustermanagerModule.v1.ClusterManagerClient(); + assert(client); }); - assert.strictEqual(client.clusterManagerStub, undefined); - await client.initialize(); - assert(client.clusterManagerStub); - }); - it('has close method for the initialized client', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.clusterManagerStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.clusterManagerStub, undefined); + await client.initialize(); + assert(client.clusterManagerStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.clusterManagerStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.clusterManagerStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.clusterManagerStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new clustermanagerModule.v1.ClusterManagerClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new clustermanagerModule.v1.ClusterManagerClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('listClusters', () => { From 6bdd3b7ef4fdb6325b1244c282f54fdf5864b046 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 16:43:34 -0400 Subject: [PATCH 351/371] chore(main): release 4.1.2 (#565) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 4.1.2 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- packages/google-container/CHANGELOG.md | 8 ++++++++ packages/google-container/package.json | 2 +- .../v1/snippet_metadata.google.container.v1.json | 2 +- packages/google-container/samples/package.json | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index cbb5efc488a..7e4b84577df 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,14 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [4.1.2](https://github.com/googleapis/nodejs-cloud-container/compare/v4.1.1...v4.1.2) (2022-09-08) + + +### Bug Fixes + +* Allow passing gax instance to client constructor ([#557](https://github.com/googleapis/nodejs-cloud-container/issues/557)) ([e7a1a02](https://github.com/googleapis/nodejs-cloud-container/commit/e7a1a02e990e1eac2954538f444113c5211912ec)) +* better support for fallback mode ([e7a1a02](https://github.com/googleapis/nodejs-cloud-container/commit/e7a1a02e990e1eac2954538f444113c5211912ec)) + ## [4.1.1](https://github.com/googleapis/nodejs-cloud-container/compare/v4.1.0...v4.1.1) (2022-08-27) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 3e70e66e4aa..c7304444aec 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "4.1.1", + "version": "4.1.2", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index daf3234692f..bcf2748d3b0 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "4.1.1", + "version": "4.1.2", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 19f472007b8..69b85d27679 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^4.1.1", + "@google-cloud/container": "^4.1.2", "uuid": "^8.3.2" }, "devDependencies": { From 5283409eff812624e025152b9bb179135380ac41 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 01:08:20 +0200 Subject: [PATCH 352/371] fix(deps): update dependency uuid to v9 (#564) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [uuid](https://togithub.com/uuidjs/uuid) | [`^8.3.2` -> `^9.0.0`](https://renovatebot.com/diffs/npm/uuid/8.3.2/9.0.0) | [![age](https://badges.renovateapi.com/packages/npm/uuid/9.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/uuid/9.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/uuid/9.0.0/compatibility-slim/8.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/uuid/9.0.0/confidence-slim/8.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
uuidjs/uuid ### [`v9.0.0`](https://togithub.com/uuidjs/uuid/blob/HEAD/CHANGELOG.md#​900-httpsgithubcomuuidjsuuidcomparev832v900-2022-09-05) [Compare Source](https://togithub.com/uuidjs/uuid/compare/v8.3.2...v9.0.0) ##### ⚠ BREAKING CHANGES - Drop Node.js 10.x support. This library always aims at supporting one EOLed LTS release which by this time now is 12.x which has reached EOL 30 Apr 2022. - Remove the minified UMD build from the package. Minified code is hard to audit and since this is a widely used library it seems more appropriate nowadays to optimize for auditability than to ship a legacy module format that, at best, serves educational purposes nowadays. For production browser use cases, users should be using a bundler. For educational purposes, today's online sandboxes like replit.com offer convenient ways to load npm modules, so the use case for UMD through repos like UNPKG or jsDelivr has largely vanished. - Drop IE 11 and Safari 10 support. Drop support for browsers that don't correctly implement const/let and default arguments, and no longer transpile the browser build to ES2015. This also removes the fallback on msCrypto instead of the crypto API. Browser tests are run in the first supported version of each supported browser and in the latest (as of this commit) version available on Browserstack. ##### Features - optimize uuid.v1 by 1.3x uuid.v4 by 4.3x (430%) ([#​597](https://togithub.com/uuidjs/uuid/issues/597)) ([3a033f6](https://togithub.com/uuidjs/uuid/commit/3a033f6bab6bb3780ece6d645b902548043280bc)) - remove UMD build ([#​645](https://togithub.com/uuidjs/uuid/issues/645)) ([e948a0f](https://togithub.com/uuidjs/uuid/commit/e948a0f22bf22f4619b27bd913885e478e20fe6f)), closes [#​620](https://togithub.com/uuidjs/uuid/issues/620) - use native crypto.randomUUID when available ([#​600](https://togithub.com/uuidjs/uuid/issues/600)) ([c9e076c](https://togithub.com/uuidjs/uuid/commit/c9e076c852edad7e9a06baaa1d148cf4eda6c6c4)) ##### Bug Fixes - add Jest/jsdom compatibility ([#​642](https://togithub.com/uuidjs/uuid/issues/642)) ([16f9c46](https://togithub.com/uuidjs/uuid/commit/16f9c469edf46f0786164cdf4dc980743984a6fd)) - change default export to named function ([#​545](https://togithub.com/uuidjs/uuid/issues/545)) ([c57bc5a](https://togithub.com/uuidjs/uuid/commit/c57bc5a9a0653273aa639cda9177ce52efabe42a)) - handle error when parameter is not set in v3 and v5 ([#​622](https://togithub.com/uuidjs/uuid/issues/622)) ([fcd7388](https://togithub.com/uuidjs/uuid/commit/fcd73881692d9fabb63872576ba28e30ff852091)) - run npm audit fix ([#​644](https://togithub.com/uuidjs/uuid/issues/644)) ([04686f5](https://togithub.com/uuidjs/uuid/commit/04686f54c5fed2cfffc1b619f4970c4bb8532353)) - upgrading from uuid3 broken link ([#​568](https://togithub.com/uuidjs/uuid/issues/568)) ([1c849da](https://togithub.com/uuidjs/uuid/commit/1c849da6e164259e72e18636726345b13a7eddd6)) ##### build - drop Node.js 8.x from babel transpile target ([#​603](https://togithub.com/uuidjs/uuid/issues/603)) ([aa11485](https://togithub.com/uuidjs/uuid/commit/aa114858260402107ec8a1e1a825dea0a259bcb5)) - drop support for legacy browsers (IE11, Safari 10) ([#​604](https://togithub.com/uuidjs/uuid/issues/604)) ([0f433e5](https://togithub.com/uuidjs/uuid/commit/0f433e5ec444edacd53016de67db021102f36148)) - drop node 10.x to upgrade dev dependencies ([#​653](https://togithub.com/uuidjs/uuid/issues/653)) ([28a5712](https://togithub.com/uuidjs/uuid/commit/28a571283f8abda6b9d85e689f95b7d3ee9e282e)), closes [#​643](https://togithub.com/uuidjs/uuid/issues/643) ##### [8.3.2](https://togithub.com/uuidjs/uuid/compare/v8.3.1...v8.3.2) (2020-12-08) ##### Bug Fixes - lazy load getRandomValues ([#​537](https://togithub.com/uuidjs/uuid/issues/537)) ([16c8f6d](https://togithub.com/uuidjs/uuid/commit/16c8f6df2f6b09b4d6235602d6a591188320a82e)), closes [#​536](https://togithub.com/uuidjs/uuid/issues/536) ##### [8.3.1](https://togithub.com/uuidjs/uuid/compare/v8.3.0...v8.3.1) (2020-10-04) ##### Bug Fixes - support expo>=39.0.0 ([#​515](https://togithub.com/uuidjs/uuid/issues/515)) ([c65a0f3](https://togithub.com/uuidjs/uuid/commit/c65a0f3fa73b901959d638d1e3591dfacdbed867)), closes [#​375](https://togithub.com/uuidjs/uuid/issues/375)
--- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/samples/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 69b85d27679..f0ef85e30b1 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@google-cloud/container": "^4.1.2", - "uuid": "^8.3.2" + "uuid": "^9.0.0" }, "devDependencies": { "chai": "^4.2.0", From f487c1d2a2da769dd28cf3413c040c8b4de55633 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 13 Sep 2022 17:31:15 -0700 Subject: [PATCH 353/371] chore(main): release 4.1.3 (#566) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(main): release 4.1.3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Owl Bot --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- .../generated/v1/snippet_metadata.google.container.v1.json | 2 +- packages/google-container/samples/package.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 7e4b84577df..bbe988d25aa 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [4.1.3](https://github.com/googleapis/nodejs-cloud-container/compare/v4.1.2...v4.1.3) (2022-09-13) + + +### Bug Fixes + +* **deps:** Update dependency uuid to v9 ([#564](https://github.com/googleapis/nodejs-cloud-container/issues/564)) ([513d05b](https://github.com/googleapis/nodejs-cloud-container/commit/513d05b38918d0dfd239d4684ee2235a799e6ca5)) + ## [4.1.2](https://github.com/googleapis/nodejs-cloud-container/compare/v4.1.1...v4.1.2) (2022-09-08) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index c7304444aec..2ad3696c688 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "4.1.2", + "version": "4.1.3", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index bcf2748d3b0..4a13cd29892 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "4.1.2", + "version": "4.1.3", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index f0ef85e30b1..369187d47f1 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^4.1.2", + "@google-cloud/container": "^4.1.3", "uuid": "^9.0.0" }, "devDependencies": { From f382a119a6d172e5a259fb7c420f2d30cf56b6b0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 14 Sep 2022 22:30:14 +0000 Subject: [PATCH 354/371] fix: preserve default values in x-goog-request-params header (#568) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 474338479 Source-Link: https://github.com/googleapis/googleapis/commit/d5d35e0353b59719e8917103b1bc7df2782bf6ba Source-Link: https://github.com/googleapis/googleapis-gen/commit/efcd3f93962a103f68f003e2a1eecde6fa216a27 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZWZjZDNmOTM5NjJhMTAzZjY4ZjAwM2UyYTFlZWNkZTZmYTIxNmEyNyJ9 --- .../src/v1/cluster_manager_client.ts | 256 +- .../test/gapic_cluster_manager_v1.ts | 4828 ++++++++++------- 2 files changed, 3113 insertions(+), 1971 deletions(-) diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index 51a957b8d2e..bee61c40cac 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -437,9 +437,9 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', - project_id: request.projectId || '', - zone: request.zone || '', + parent: request.parent ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', }); this.initialize(); return this.innerApiCalls.listClusters(request, options, callback); @@ -535,10 +535,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.getCluster(request, options, callback); @@ -647,9 +647,9 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', - project_id: request.projectId || '', - zone: request.zone || '', + parent: request.parent ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', }); this.initialize(); return this.innerApiCalls.createCluster(request, options, callback); @@ -747,10 +747,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.updateCluster(request, options, callback); @@ -899,11 +899,11 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', - node_pool_id: request.nodePoolId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', + node_pool_id: request.nodePoolId ?? '', }); this.initialize(); return this.innerApiCalls.updateNodePool(request, options, callback); @@ -1013,11 +1013,11 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', - node_pool_id: request.nodePoolId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', + node_pool_id: request.nodePoolId ?? '', }); this.initialize(); return this.innerApiCalls.setNodePoolAutoscaling( @@ -1131,10 +1131,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.setLoggingService(request, options, callback); @@ -1250,10 +1250,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.setMonitoringService(request, options, callback); @@ -1352,10 +1352,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.setAddonsConfig(request, options, callback); @@ -1463,10 +1463,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); this.warn( @@ -1578,10 +1578,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.updateMaster(request, options, callback); @@ -1683,10 +1683,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.setMasterAuth(request, options, callback); @@ -1790,10 +1790,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.deleteCluster(request, options, callback); @@ -1887,9 +1887,9 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', - project_id: request.projectId || '', - zone: request.zone || '', + parent: request.parent ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', }); this.initialize(); return this.innerApiCalls.listOperations(request, options, callback); @@ -1985,10 +1985,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - operation_id: request.operationId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + operation_id: request.operationId ?? '', }); this.initialize(); return this.innerApiCalls.getOperation(request, options, callback); @@ -2084,10 +2084,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - operation_id: request.operationId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + operation_id: request.operationId ?? '', }); this.initialize(); return this.innerApiCalls.cancelOperation(request, options, callback); @@ -2180,9 +2180,9 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', }); this.initialize(); return this.innerApiCalls.getServerConfig(request, options, callback); @@ -2269,7 +2269,7 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.getJsonWebKeys(request, options, callback); @@ -2365,10 +2365,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + parent: request.parent ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.listNodePools(request, options, callback); @@ -2468,11 +2468,11 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', - node_pool_id: request.nodePoolId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', + node_pool_id: request.nodePoolId ?? '', }); this.initialize(); return this.innerApiCalls.getNodePool(request, options, callback); @@ -2571,10 +2571,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + parent: request.parent ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.createNodePool(request, options, callback); @@ -2674,11 +2674,11 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', - node_pool_id: request.nodePoolId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', + node_pool_id: request.nodePoolId ?? '', }); this.initialize(); return this.innerApiCalls.deleteNodePool(request, options, callback); @@ -2772,7 +2772,7 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', + name: request.name ?? '', }); this.initialize(); return this.innerApiCalls.completeNodePoolUpgrade( @@ -2888,11 +2888,11 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', - node_pool_id: request.nodePoolId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', + node_pool_id: request.nodePoolId ?? '', }); this.initialize(); return this.innerApiCalls.rollbackNodePoolUpgrade( @@ -3006,11 +3006,11 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', - node_pool_id: request.nodePoolId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', + node_pool_id: request.nodePoolId ?? '', }); this.initialize(); return this.innerApiCalls.setNodePoolManagement(request, options, callback); @@ -3115,10 +3115,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.setLabels(request, options, callback); @@ -3216,10 +3216,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.setLegacyAbac(request, options, callback); @@ -3317,10 +3317,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.startIpRotation(request, options, callback); @@ -3418,10 +3418,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.completeIpRotation(request, options, callback); @@ -3525,11 +3525,11 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', - node_pool_id: request.nodePoolId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', + node_pool_id: request.nodePoolId ?? '', }); this.initialize(); return this.innerApiCalls.setNodePoolSize(request, options, callback); @@ -3629,10 +3629,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.setNetworkPolicy(request, options, callback); @@ -3737,10 +3737,10 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - name: request.name || '', - project_id: request.projectId || '', - zone: request.zone || '', - cluster_id: request.clusterId || '', + name: request.name ?? '', + project_id: request.projectId ?? '', + zone: request.zone ?? '', + cluster_id: request.clusterId ?? '', }); this.initialize(); return this.innerApiCalls.setMaintenancePolicy(request, options, callback); @@ -3849,7 +3849,7 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); this.initialize(); return this.innerApiCalls.listUsableSubnetworks(request, options, callback); @@ -3897,7 +3897,7 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listUsableSubnetworks']; const callSettings = defaultCallSettings.merge(options); @@ -3954,7 +3954,7 @@ export class ClusterManagerClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({ - parent: request.parent || '', + parent: request.parent ?? '', }); const defaultCallSettings = this._defaults['listUsableSubnetworks']; const callSettings = defaultCallSettings.merge(options); diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index 8768b6f9c93..9696fb6446e 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -27,6 +27,21 @@ import {PassThrough} from 'stream'; import {protobuf} from 'google-gax'; +// Dynamically loaded proto JSON is needed to get the type information +// to fill in default values for request objects +const root = protobuf.Root.fromJSON( + require('../protos/protos.json') +).resolveAll(); + +// eslint-disable-next-line @typescript-eslint/no-unused-vars +function getTypeDefaultValue(typeName: string, fields: string[]) { + let type = root.lookupType(typeName) as protobuf.Type; + for (const field of fields.slice(0, -1)) { + type = type.fields[field]?.resolvedType as protobuf.Type; + } + return type.fields[fields[fields.length - 1]]?.defaultValue; +} + function generateSampleMessage(instance: T) { const filledObject = ( instance.constructor as typeof protobuf.Message @@ -222,28 +237,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListClustersRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'parent=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListClustersRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListClustersRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListClustersRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.ListClustersResponse() ); client.innerApiCalls.listClusters = stubSimpleCall(expectedResponse); const [response] = await client.listClusters(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listClusters as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listClusters without error using callback', async () => { @@ -255,17 +275,19 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListClustersRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'parent=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListClustersRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListClustersRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListClustersRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.ListClustersResponse() ); @@ -288,11 +310,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listClusters as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listClusters with error', async () => { @@ -304,28 +329,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListClustersRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'parent=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListClustersRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListClustersRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListClustersRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedError = new Error('expected'); client.innerApiCalls.listClusters = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listClusters(request), expectedError); - assert( - (client.innerApiCalls.listClusters as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listClusters as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listClusters with closed client', async () => { @@ -337,9 +367,18 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListClustersRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; + const defaultValue1 = getTypeDefaultValue('ListClustersRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListClustersRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListClustersRequest', [ + 'zone', + ]); + request.zone = defaultValue3; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listClusters(request), expectedError); @@ -356,29 +395,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetClusterRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetClusterRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Cluster() ); client.innerApiCalls.getCluster = stubSimpleCall(expectedResponse); const [response] = await client.getCluster(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCluster without error using callback', async () => { @@ -390,18 +433,19 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetClusterRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetClusterRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Cluster() ); @@ -424,11 +468,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCluster with error', async () => { @@ -440,29 +487,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetClusterRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetClusterRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.getCluster = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getCluster(request), expectedError); - assert( - (client.innerApiCalls.getCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getCluster with closed client', async () => { @@ -474,10 +525,18 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('GetClusterRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetClusterRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCluster(request), expectedError); @@ -494,28 +553,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateClusterRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'parent=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateClusterRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CreateClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CreateClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.createCluster = stubSimpleCall(expectedResponse); const [response] = await client.createCluster(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCluster without error using callback', async () => { @@ -527,17 +591,19 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateClusterRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'parent=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateClusterRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CreateClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CreateClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -560,11 +626,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCluster with error', async () => { @@ -576,28 +645,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateClusterRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'parent=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateClusterRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CreateClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CreateClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedError = new Error('expected'); client.innerApiCalls.createCluster = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createCluster(request), expectedError); - assert( - (client.innerApiCalls.createCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createCluster with closed client', async () => { @@ -609,9 +683,18 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateClusterRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; + const defaultValue1 = getTypeDefaultValue('CreateClusterRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CreateClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CreateClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createCluster(request), expectedError); @@ -628,29 +711,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('UpdateClusterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.updateCluster = stubSimpleCall(expectedResponse); const [response] = await client.updateCluster(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCluster without error using callback', async () => { @@ -662,18 +753,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('UpdateClusterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -696,11 +792,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCluster with error', async () => { @@ -712,29 +811,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('UpdateClusterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.updateCluster = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateCluster(request), expectedError); - assert( - (client.innerApiCalls.updateCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateCluster with closed client', async () => { @@ -746,10 +853,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('UpdateClusterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateCluster(request), expectedError); @@ -766,31 +885,41 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.updateNodePool = stubSimpleCall(expectedResponse); const [response] = await client.updateNodePool(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateNodePool without error using callback', async () => { @@ -802,20 +931,27 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -838,11 +974,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateNodePool with error', async () => { @@ -854,31 +993,41 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); client.innerApiCalls.updateNodePool = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateNodePool(request), expectedError); - assert( - (client.innerApiCalls.updateNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateNodePool with closed client', async () => { @@ -890,11 +1039,26 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; + const defaultValue1 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('UpdateNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateNodePool(request), expectedError); @@ -911,20 +1075,32 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -932,11 +1108,14 @@ describe('v1.ClusterManagerClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.setNodePoolAutoscaling(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setNodePoolAutoscaling as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setNodePoolAutoscaling as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNodePoolAutoscaling as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNodePoolAutoscaling without error using callback', async () => { @@ -948,20 +1127,32 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -984,11 +1175,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setNodePoolAutoscaling as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setNodePoolAutoscaling as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNodePoolAutoscaling as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNodePoolAutoscaling with error', async () => { @@ -1000,20 +1194,32 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); client.innerApiCalls.setNodePoolAutoscaling = stubSimpleCall( undefined, @@ -1023,11 +1229,14 @@ describe('v1.ClusterManagerClient', () => { client.setNodePoolAutoscaling(request), expectedError ); - assert( - (client.innerApiCalls.setNodePoolAutoscaling as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setNodePoolAutoscaling as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNodePoolAutoscaling as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNodePoolAutoscaling with closed client', async () => { @@ -1039,11 +1248,31 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; + const defaultValue1 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'SetNodePoolAutoscalingRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1063,29 +1292,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLoggingServiceRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.setLoggingService = stubSimpleCall(expectedResponse); const [response] = await client.setLoggingService(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setLoggingService as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setLoggingService as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLoggingService as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLoggingService without error using callback', async () => { @@ -1097,18 +1334,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLoggingServiceRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -1131,11 +1373,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setLoggingService as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setLoggingService as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLoggingService as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLoggingService with error', async () => { @@ -1147,29 +1392,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLoggingServiceRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.setLoggingService = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.setLoggingService(request), expectedError); - assert( - (client.innerApiCalls.setLoggingService as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setLoggingService as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLoggingService as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLoggingService with closed client', async () => { @@ -1181,10 +1434,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLoggingServiceRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLoggingServiceRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLoggingService(request), expectedError); @@ -1201,18 +1466,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMonitoringServiceRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -1220,11 +1490,14 @@ describe('v1.ClusterManagerClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.setMonitoringService(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setMonitoringService as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setMonitoringService as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setMonitoringService as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setMonitoringService without error using callback', async () => { @@ -1236,18 +1509,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMonitoringServiceRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -1270,11 +1548,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setMonitoringService as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setMonitoringService as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setMonitoringService as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setMonitoringService with error', async () => { @@ -1286,29 +1567,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMonitoringServiceRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.setMonitoringService = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.setMonitoringService(request), expectedError); - assert( - (client.innerApiCalls.setMonitoringService as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setMonitoringService as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setMonitoringService as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setMonitoringService with closed client', async () => { @@ -1320,10 +1609,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMonitoringServiceRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMonitoringServiceRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMonitoringService(request), expectedError); @@ -1340,29 +1641,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetAddonsConfigRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.setAddonsConfig = stubSimpleCall(expectedResponse); const [response] = await client.setAddonsConfig(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setAddonsConfig as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setAddonsConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setAddonsConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setAddonsConfig without error using callback', async () => { @@ -1374,18 +1683,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetAddonsConfigRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -1408,11 +1722,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setAddonsConfig as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setAddonsConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setAddonsConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setAddonsConfig with error', async () => { @@ -1424,29 +1741,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetAddonsConfigRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.setAddonsConfig = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.setAddonsConfig(request), expectedError); - assert( - (client.innerApiCalls.setAddonsConfig as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setAddonsConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setAddonsConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setAddonsConfig with closed client', async () => { @@ -1458,10 +1783,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetAddonsConfigRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetAddonsConfigRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setAddonsConfig(request), expectedError); @@ -1479,18 +1816,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLocationsRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLocationsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLocationsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLocationsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -1498,11 +1840,14 @@ describe('v1.ClusterManagerClient', () => { const [response] = await client.setLocations(request); assert(stub.calledOnce); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setLocations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setLocations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLocations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLocations without error using callback', async () => { @@ -1515,18 +1860,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLocationsRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLocationsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLocationsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLocationsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -1550,11 +1900,14 @@ describe('v1.ClusterManagerClient', () => { const response = await promise; assert(stub.calledOnce); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setLocations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setLocations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLocations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLocations with error', async () => { @@ -1567,18 +1920,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLocationsRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLocationsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLocationsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLocationsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.setLocations = stubSimpleCall( undefined, @@ -1586,11 +1944,14 @@ describe('v1.ClusterManagerClient', () => { ); await assert.rejects(client.setLocations(request), expectedError); assert(stub.calledOnce); - assert( - (client.innerApiCalls.setLocations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setLocations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLocations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLocations with closed client', async () => { @@ -1603,10 +1964,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('SetLocationsRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLocationsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLocationsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLocationsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLocations(request), expectedError); @@ -1624,29 +1997,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateMasterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('UpdateMasterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateMasterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateMasterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateMasterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.updateMaster = stubSimpleCall(expectedResponse); const [response] = await client.updateMaster(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateMaster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateMaster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateMaster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateMaster without error using callback', async () => { @@ -1658,18 +2039,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateMasterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('UpdateMasterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateMasterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateMasterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateMasterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -1692,11 +2078,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.updateMaster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.updateMaster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateMaster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateMaster with error', async () => { @@ -1708,29 +2097,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateMasterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('UpdateMasterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateMasterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateMasterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateMasterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.updateMaster = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.updateMaster(request), expectedError); - assert( - (client.innerApiCalls.updateMaster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.updateMaster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.updateMaster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes updateMaster with closed client', async () => { @@ -1742,10 +2139,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateMasterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('UpdateMasterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('UpdateMasterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('UpdateMasterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('UpdateMasterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateMaster(request), expectedError); @@ -1762,29 +2171,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMasterAuthRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.setMasterAuth = stubSimpleCall(expectedResponse); const [response] = await client.setMasterAuth(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setMasterAuth as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setMasterAuth as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setMasterAuth as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setMasterAuth without error using callback', async () => { @@ -1796,18 +2213,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMasterAuthRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -1830,11 +2252,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setMasterAuth as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setMasterAuth as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setMasterAuth as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setMasterAuth with error', async () => { @@ -1846,29 +2271,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMasterAuthRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.setMasterAuth = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.setMasterAuth(request), expectedError); - assert( - (client.innerApiCalls.setMasterAuth as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setMasterAuth as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setMasterAuth as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setMasterAuth with closed client', async () => { @@ -1880,10 +2313,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMasterAuthRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMasterAuthRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMasterAuth(request), expectedError); @@ -1900,29 +2345,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteClusterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('DeleteClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('DeleteClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('DeleteClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.deleteCluster = stubSimpleCall(expectedResponse); const [response] = await client.deleteCluster(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteCluster without error using callback', async () => { @@ -1934,18 +2387,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteClusterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('DeleteClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('DeleteClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('DeleteClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -1968,11 +2426,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteCluster with error', async () => { @@ -1984,29 +2445,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteClusterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('DeleteClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('DeleteClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('DeleteClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteCluster = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteCluster(request), expectedError); - assert( - (client.innerApiCalls.deleteCluster as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteCluster as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteCluster as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteCluster with closed client', async () => { @@ -2018,10 +2487,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteClusterRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('DeleteClusterRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('DeleteClusterRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('DeleteClusterRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('DeleteClusterRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteCluster(request), expectedError); @@ -2038,28 +2519,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListOperationsRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'parent=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListOperationsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListOperationsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListOperationsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.ListOperationsResponse() ); client.innerApiCalls.listOperations = stubSimpleCall(expectedResponse); const [response] = await client.listOperations(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listOperations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listOperations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listOperations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listOperations without error using callback', async () => { @@ -2071,17 +2557,19 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListOperationsRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'parent=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListOperationsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListOperationsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListOperationsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.ListOperationsResponse() ); @@ -2104,11 +2592,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listOperations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listOperations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listOperations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listOperations with error', async () => { @@ -2120,28 +2611,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListOperationsRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'parent=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListOperationsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListOperationsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListOperationsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedError = new Error('expected'); client.innerApiCalls.listOperations = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listOperations(request), expectedError); - assert( - (client.innerApiCalls.listOperations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listOperations as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listOperations as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listOperations with closed client', async () => { @@ -2153,9 +2649,18 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListOperationsRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; + const defaultValue1 = getTypeDefaultValue('ListOperationsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListOperationsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListOperationsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listOperations(request), expectedError); @@ -2172,30 +2677,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetOperationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.operationId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&operation_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetOperationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetOperationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetOperationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetOperationRequest', [ + 'operationId', + ]); + request.operationId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.getOperation = stubSimpleCall(expectedResponse); const [response] = await client.getOperation(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getOperation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getOperation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getOperation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getOperation without error using callback', async () => { @@ -2207,19 +2719,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetOperationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.operationId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&operation_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetOperationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetOperationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetOperationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetOperationRequest', [ + 'operationId', + ]); + request.operationId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -2242,11 +2758,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getOperation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getOperation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getOperation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getOperation with error', async () => { @@ -2258,30 +2777,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetOperationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.operationId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&operation_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetOperationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetOperationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetOperationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetOperationRequest', [ + 'operationId', + ]); + request.operationId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.getOperation = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getOperation(request), expectedError); - assert( - (client.innerApiCalls.getOperation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getOperation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getOperation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getOperation with closed client', async () => { @@ -2293,10 +2819,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetOperationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.operationId = ''; + const defaultValue1 = getTypeDefaultValue('GetOperationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetOperationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetOperationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetOperationRequest', [ + 'operationId', + ]); + request.operationId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getOperation(request), expectedError); @@ -2313,30 +2851,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CancelOperationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.operationId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&operation_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CancelOperationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CancelOperationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CancelOperationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CancelOperationRequest', [ + 'operationId', + ]); + request.operationId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); client.innerApiCalls.cancelOperation = stubSimpleCall(expectedResponse); const [response] = await client.cancelOperation(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.cancelOperation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.cancelOperation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes cancelOperation without error using callback', async () => { @@ -2348,19 +2893,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CancelOperationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.operationId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&operation_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CancelOperationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CancelOperationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CancelOperationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CancelOperationRequest', [ + 'operationId', + ]); + request.operationId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -2383,11 +2932,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.cancelOperation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.cancelOperation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes cancelOperation with error', async () => { @@ -2399,30 +2951,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CancelOperationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.operationId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&operation_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CancelOperationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CancelOperationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CancelOperationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CancelOperationRequest', [ + 'operationId', + ]); + request.operationId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.cancelOperation = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.cancelOperation(request), expectedError); - assert( - (client.innerApiCalls.cancelOperation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.cancelOperation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.cancelOperation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes cancelOperation with closed client', async () => { @@ -2434,10 +2993,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CancelOperationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.operationId = ''; + const defaultValue1 = getTypeDefaultValue('CancelOperationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CancelOperationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CancelOperationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CancelOperationRequest', [ + 'operationId', + ]); + request.operationId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.cancelOperation(request), expectedError); @@ -2454,28 +3025,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetServerConfigRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetServerConfigRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetServerConfigRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetServerConfigRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.ServerConfig() ); client.innerApiCalls.getServerConfig = stubSimpleCall(expectedResponse); const [response] = await client.getServerConfig(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getServerConfig as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getServerConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getServerConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getServerConfig without error using callback', async () => { @@ -2487,17 +3063,19 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetServerConfigRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetServerConfigRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetServerConfigRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetServerConfigRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.ServerConfig() ); @@ -2520,11 +3098,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getServerConfig as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getServerConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getServerConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getServerConfig with error', async () => { @@ -2536,28 +3117,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetServerConfigRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetServerConfigRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetServerConfigRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetServerConfigRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedError = new Error('expected'); client.innerApiCalls.getServerConfig = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getServerConfig(request), expectedError); - assert( - (client.innerApiCalls.getServerConfig as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getServerConfig as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getServerConfig as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getServerConfig with closed client', async () => { @@ -2569,9 +3155,18 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetServerConfigRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; + const defaultValue1 = getTypeDefaultValue('GetServerConfigRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetServerConfigRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetServerConfigRequest', [ + 'zone', + ]); + request.zone = defaultValue3; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getServerConfig(request), expectedError); @@ -2588,26 +3183,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetJSONWebKeysRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysResponse() ); client.innerApiCalls.getJsonWebKeys = stubSimpleCall(expectedResponse); const [response] = await client.getJSONWebKeys(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getJsonWebKeys as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getJsonWebKeys as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getJsonWebKeys as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getJSONWebKeys without error using callback', async () => { @@ -2619,15 +3213,11 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetJSONWebKeysRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysResponse() ); @@ -2650,11 +3240,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getJsonWebKeys as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getJsonWebKeys as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getJsonWebKeys as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getJSONWebKeys with error', async () => { @@ -2666,26 +3259,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetJSONWebKeysRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.getJsonWebKeys = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getJSONWebKeys(request), expectedError); - assert( - (client.innerApiCalls.getJsonWebKeys as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getJsonWebKeys as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getJsonWebKeys as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getJSONWebKeys with closed client', async () => { @@ -2697,7 +3289,10 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysRequest() ); - request.parent = ''; + const defaultValue1 = getTypeDefaultValue('GetJSONWebKeysRequest', [ + 'parent', + ]); + request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getJSONWebKeys(request), expectedError); @@ -2714,30 +3309,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListNodePoolsRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = - 'parent=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.ListNodePoolsResponse() ); client.innerApiCalls.listNodePools = stubSimpleCall(expectedResponse); const [response] = await client.listNodePools(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listNodePools as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listNodePools as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNodePools as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listNodePools without error using callback', async () => { @@ -2749,19 +3351,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListNodePoolsRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = - 'parent=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.ListNodePoolsResponse() ); @@ -2784,11 +3390,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listNodePools as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listNodePools as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNodePools as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listNodePools with error', async () => { @@ -2800,30 +3409,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListNodePoolsRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = - 'parent=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.listNodePools = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.listNodePools(request), expectedError); - assert( - (client.innerApiCalls.listNodePools as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listNodePools as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listNodePools as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listNodePools with closed client', async () => { @@ -2835,10 +3451,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListNodePoolsRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('ListNodePoolsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listNodePools(request), expectedError); @@ -2855,31 +3483,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetNodePoolRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetNodePoolRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('GetNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.NodePool() ); client.innerApiCalls.getNodePool = stubSimpleCall(expectedResponse); const [response] = await client.getNodePool(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getNodePool without error using callback', async () => { @@ -2891,20 +3525,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetNodePoolRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetNodePoolRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('GetNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.NodePool() ); @@ -2927,11 +3564,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.getNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.getNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getNodePool with error', async () => { @@ -2943,31 +3583,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('GetNodePoolRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetNodePoolRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('GetNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); client.innerApiCalls.getNodePool = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.getNodePool(request), expectedError); - assert( - (client.innerApiCalls.getNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.getNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.getNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes getNodePool with closed client', async () => { @@ -2979,11 +3625,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; + const defaultValue1 = getTypeDefaultValue('GetNodePoolRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('GetNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('GetNodePoolRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('GetNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('GetNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getNodePool(request), expectedError); @@ -3000,30 +3657,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateNodePoolRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = - 'parent=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.createNodePool = stubSimpleCall(expectedResponse); const [response] = await client.createNodePool(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createNodePool without error using callback', async () => { @@ -3035,19 +3699,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateNodePoolRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = - 'parent=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -3070,11 +3738,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.createNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.createNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createNodePool with error', async () => { @@ -3086,30 +3757,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateNodePoolRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = - 'parent=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.createNodePool = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.createNodePool(request), expectedError); - assert( - (client.innerApiCalls.createNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.createNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.createNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes createNodePool with closed client', async () => { @@ -3121,10 +3799,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateNodePoolRequest() ); - request.parent = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'parent', + ]); + request.parent = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CreateNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createNodePool(request), expectedError); @@ -3141,31 +3831,41 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.deleteNodePool = stubSimpleCall(expectedResponse); const [response] = await client.deleteNodePool(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteNodePool without error using callback', async () => { @@ -3177,20 +3877,27 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -3213,11 +3920,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.deleteNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.deleteNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteNodePool with error', async () => { @@ -3229,31 +3939,41 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); client.innerApiCalls.deleteNodePool = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.deleteNodePool(request), expectedError); - assert( - (client.innerApiCalls.deleteNodePool as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.deleteNodePool as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.deleteNodePool as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes deleteNodePool with closed client', async () => { @@ -3265,11 +3985,26 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteNodePoolRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; + const defaultValue1 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('DeleteNodePoolRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteNodePool(request), expectedError); @@ -3286,15 +4021,12 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteNodePoolUpgradeRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CompleteNodePoolUpgradeRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -3302,11 +4034,14 @@ describe('v1.ClusterManagerClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.completeNodePoolUpgrade(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.completeNodePoolUpgrade as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.completeNodePoolUpgrade as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.completeNodePoolUpgrade as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes completeNodePoolUpgrade without error using callback', async () => { @@ -3318,15 +4053,12 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteNodePoolUpgradeRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CompleteNodePoolUpgradeRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedResponse = generateSampleMessage( new protos.google.protobuf.Empty() ); @@ -3349,11 +4081,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.completeNodePoolUpgrade as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.completeNodePoolUpgrade as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.completeNodePoolUpgrade as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes completeNodePoolUpgrade with error', async () => { @@ -3365,15 +4100,12 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteNodePoolUpgradeRequest() ); - request.name = ''; - const expectedHeaderRequestParams = 'name='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'CompleteNodePoolUpgradeRequest', + ['name'] + ); + request.name = defaultValue1; + const expectedHeaderRequestParams = `name=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.completeNodePoolUpgrade = stubSimpleCall( undefined, @@ -3383,11 +4115,14 @@ describe('v1.ClusterManagerClient', () => { client.completeNodePoolUpgrade(request), expectedError ); - assert( - (client.innerApiCalls.completeNodePoolUpgrade as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.completeNodePoolUpgrade as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.completeNodePoolUpgrade as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes completeNodePoolUpgrade with closed client', async () => { @@ -3399,7 +4134,11 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteNodePoolUpgradeRequest() ); - request.name = ''; + const defaultValue1 = getTypeDefaultValue( + 'CompleteNodePoolUpgradeRequest', + ['name'] + ); + request.name = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3419,20 +4158,32 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -3440,11 +4191,14 @@ describe('v1.ClusterManagerClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.rollbackNodePoolUpgrade(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes rollbackNodePoolUpgrade without error using callback', async () => { @@ -3456,20 +4210,32 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -3492,11 +4258,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes rollbackNodePoolUpgrade with error', async () => { @@ -3508,20 +4277,32 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); client.innerApiCalls.rollbackNodePoolUpgrade = stubSimpleCall( undefined, @@ -3531,11 +4312,14 @@ describe('v1.ClusterManagerClient', () => { client.rollbackNodePoolUpgrade(request), expectedError ); - assert( - (client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.rollbackNodePoolUpgrade as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes rollbackNodePoolUpgrade with closed client', async () => { @@ -3547,11 +4331,31 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; + const defaultValue1 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'RollbackNodePoolUpgradeRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3571,20 +4375,32 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolManagementRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -3592,11 +4408,14 @@ describe('v1.ClusterManagerClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.setNodePoolManagement(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setNodePoolManagement as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setNodePoolManagement as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNodePoolManagement as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNodePoolManagement without error using callback', async () => { @@ -3608,20 +4427,32 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolManagementRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -3644,11 +4475,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setNodePoolManagement as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setNodePoolManagement as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNodePoolManagement as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNodePoolManagement with error', async () => { @@ -3660,20 +4494,32 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolManagementRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); client.innerApiCalls.setNodePoolManagement = stubSimpleCall( undefined, @@ -3683,11 +4529,14 @@ describe('v1.ClusterManagerClient', () => { client.setNodePoolManagement(request), expectedError ); - assert( - (client.innerApiCalls.setNodePoolManagement as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setNodePoolManagement as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNodePoolManagement as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNodePoolManagement with closed client', async () => { @@ -3699,11 +4548,31 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolManagementRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; + const defaultValue1 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['name'] + ); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['zone'] + ); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue( + 'SetNodePoolManagementRequest', + ['nodePoolId'] + ); + request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3723,29 +4592,33 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLabelsRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLabelsRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLabelsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLabelsRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLabelsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.setLabels = stubSimpleCall(expectedResponse); const [response] = await client.setLabels(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setLabels as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setLabels as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLabels as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLabels without error using callback', async () => { @@ -3757,18 +4630,19 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLabelsRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLabelsRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLabelsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLabelsRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLabelsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -3791,11 +4665,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setLabels as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setLabels as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLabels as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLabels with error', async () => { @@ -3807,26 +4684,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLabelsRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLabelsRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLabelsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLabelsRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLabelsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.setLabels = stubSimpleCall(undefined, expectedError); await assert.rejects(client.setLabels(request), expectedError); - assert( - (client.innerApiCalls.setLabels as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setLabels as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLabels as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLabels with closed client', async () => { @@ -3838,10 +4719,18 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLabelsRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('SetLabelsRequest', ['name']); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLabelsRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLabelsRequest', ['zone']); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLabelsRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -3858,29 +4747,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLegacyAbacRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.setLegacyAbac = stubSimpleCall(expectedResponse); const [response] = await client.setLegacyAbac(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setLegacyAbac as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setLegacyAbac as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLegacyAbac as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLegacyAbac without error using callback', async () => { @@ -3892,18 +4789,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLegacyAbacRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -3926,11 +4828,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setLegacyAbac as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setLegacyAbac as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLegacyAbac as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLegacyAbac with error', async () => { @@ -3942,29 +4847,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLegacyAbacRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.setLegacyAbac = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.setLegacyAbac(request), expectedError); - assert( - (client.innerApiCalls.setLegacyAbac as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setLegacyAbac as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setLegacyAbac as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setLegacyAbac with closed client', async () => { @@ -3976,10 +4889,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLegacyAbacRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetLegacyAbacRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLegacyAbac(request), expectedError); @@ -3996,29 +4921,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.StartIPRotationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('StartIPRotationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('StartIPRotationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('StartIPRotationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('StartIPRotationRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.startIpRotation = stubSimpleCall(expectedResponse); const [response] = await client.startIPRotation(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.startIpRotation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.startIpRotation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.startIpRotation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes startIPRotation without error using callback', async () => { @@ -4030,18 +4963,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.StartIPRotationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('StartIPRotationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('StartIPRotationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('StartIPRotationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('StartIPRotationRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -4064,11 +5002,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.startIpRotation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.startIpRotation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.startIpRotation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes startIPRotation with error', async () => { @@ -4080,29 +5021,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.StartIPRotationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('StartIPRotationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('StartIPRotationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('StartIPRotationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('StartIPRotationRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.startIpRotation = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.startIPRotation(request), expectedError); - assert( - (client.innerApiCalls.startIpRotation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.startIpRotation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.startIpRotation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes startIPRotation with closed client', async () => { @@ -4114,10 +5063,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.StartIPRotationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('StartIPRotationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('StartIPRotationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('StartIPRotationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('StartIPRotationRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.startIPRotation(request), expectedError); @@ -4134,18 +5095,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteIPRotationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -4153,11 +5119,14 @@ describe('v1.ClusterManagerClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.completeIPRotation(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.completeIpRotation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.completeIpRotation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.completeIpRotation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes completeIPRotation without error using callback', async () => { @@ -4169,18 +5138,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteIPRotationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -4203,11 +5177,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.completeIpRotation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.completeIpRotation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.completeIpRotation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes completeIPRotation with error', async () => { @@ -4219,29 +5196,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteIPRotationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.completeIpRotation = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.completeIPRotation(request), expectedError); - assert( - (client.innerApiCalls.completeIpRotation as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.completeIpRotation as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.completeIpRotation as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes completeIPRotation with closed client', async () => { @@ -4253,10 +5238,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteIPRotationRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('CompleteIPRotationRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.completeIPRotation(request), expectedError); @@ -4273,31 +5270,41 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolSizeRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.setNodePoolSize = stubSimpleCall(expectedResponse); const [response] = await client.setNodePoolSize(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setNodePoolSize as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setNodePoolSize as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNodePoolSize as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNodePoolSize without error using callback', async () => { @@ -4309,20 +5316,27 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolSizeRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -4345,11 +5359,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setNodePoolSize as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setNodePoolSize as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNodePoolSize as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNodePoolSize with error', async () => { @@ -4361,31 +5378,41 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolSizeRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; - const expectedHeaderRequestParams = - 'name=&project_id=&zone=&cluster_id=&node_pool_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); client.innerApiCalls.setNodePoolSize = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.setNodePoolSize(request), expectedError); - assert( - (client.innerApiCalls.setNodePoolSize as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setNodePoolSize as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNodePoolSize as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNodePoolSize with closed client', async () => { @@ -4397,11 +5424,26 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolSizeRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - request.nodePoolId = ''; + const defaultValue1 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const defaultValue5 = getTypeDefaultValue('SetNodePoolSizeRequest', [ + 'nodePoolId', + ]); + request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setNodePoolSize(request), expectedError); @@ -4418,29 +5460,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNetworkPolicyRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); client.innerApiCalls.setNetworkPolicy = stubSimpleCall(expectedResponse); const [response] = await client.setNetworkPolicy(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setNetworkPolicy as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNetworkPolicy without error using callback', async () => { @@ -4452,18 +5502,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNetworkPolicyRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -4486,11 +5541,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setNetworkPolicy as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNetworkPolicy with error', async () => { @@ -4502,29 +5560,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNetworkPolicyRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.setNetworkPolicy = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.setNetworkPolicy(request), expectedError); - assert( - (client.innerApiCalls.setNetworkPolicy as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setNetworkPolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setNetworkPolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setNetworkPolicy with closed client', async () => { @@ -4536,10 +5602,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNetworkPolicyRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetNetworkPolicyRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setNetworkPolicy(request), expectedError); @@ -4556,18 +5634,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMaintenancePolicyRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -4575,11 +5658,14 @@ describe('v1.ClusterManagerClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.setMaintenancePolicy(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setMaintenancePolicy as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setMaintenancePolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setMaintenancePolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setMaintenancePolicy without error using callback', async () => { @@ -4591,18 +5677,23 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMaintenancePolicyRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() ); @@ -4625,11 +5716,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.setMaintenancePolicy as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.setMaintenancePolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setMaintenancePolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setMaintenancePolicy with error', async () => { @@ -4641,29 +5735,37 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMaintenancePolicyRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; - const expectedHeaderRequestParams = 'name=&project_id=&zone=&cluster_id='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; + const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); client.innerApiCalls.setMaintenancePolicy = stubSimpleCall( undefined, expectedError ); await assert.rejects(client.setMaintenancePolicy(request), expectedError); - assert( - (client.innerApiCalls.setMaintenancePolicy as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.setMaintenancePolicy as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.setMaintenancePolicy as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes setMaintenancePolicy with closed client', async () => { @@ -4675,10 +5777,22 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMaintenancePolicyRequest() ); - request.name = ''; - request.projectId = ''; - request.zone = ''; - request.clusterId = ''; + const defaultValue1 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'name', + ]); + request.name = defaultValue1; + const defaultValue2 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'projectId', + ]); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'zone', + ]); + request.zone = defaultValue3; + const defaultValue4 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ + 'clusterId', + ]); + request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMaintenancePolicy(request), expectedError); @@ -4695,15 +5809,12 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListUsableSubnetworksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListUsableSubnetworksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.container.v1.UsableSubnetwork() @@ -4719,11 +5830,14 @@ describe('v1.ClusterManagerClient', () => { stubSimpleCall(expectedResponse); const [response] = await client.listUsableSubnetworks(request); assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listUsableSubnetworks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listUsableSubnetworks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUsableSubnetworks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listUsableSubnetworks without error using callback', async () => { @@ -4735,15 +5849,12 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListUsableSubnetworksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListUsableSubnetworksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.container.v1.UsableSubnetwork() @@ -4774,11 +5885,14 @@ describe('v1.ClusterManagerClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listUsableSubnetworks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + const actualRequest = ( + client.innerApiCalls.listUsableSubnetworks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUsableSubnetworks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listUsableSubnetworks with error', async () => { @@ -4790,15 +5904,12 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListUsableSubnetworksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; + const defaultValue1 = getTypeDefaultValue( + 'ListUsableSubnetworksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.innerApiCalls.listUsableSubnetworks = stubSimpleCall( undefined, @@ -4808,11 +5919,14 @@ describe('v1.ClusterManagerClient', () => { client.listUsableSubnetworks(request), expectedError ); - assert( - (client.innerApiCalls.listUsableSubnetworks as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); + const actualRequest = ( + client.innerApiCalls.listUsableSubnetworks as SinonStub + ).getCall(0).args[0]; + assert.deepStrictEqual(actualRequest, request); + const actualHeaderRequestParams = ( + client.innerApiCalls.listUsableSubnetworks as SinonStub + ).getCall(0).args[1].otherArgs.headers['x-goog-request-params']; + assert(actualHeaderRequestParams.includes(expectedHeaderRequestParams)); }); it('invokes listUsableSubnetworksStream without error', async () => { @@ -4824,8 +5938,12 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListUsableSubnetworksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListUsableSubnetworksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.container.v1.UsableSubnetwork() @@ -4865,12 +5983,15 @@ describe('v1.ClusterManagerClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listUsableSubnetworks, request) ); - assert.strictEqual( + assert( ( client.descriptors.page.listUsableSubnetworks .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -4883,8 +6004,12 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListUsableSubnetworksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListUsableSubnetworksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listUsableSubnetworks.createStream = stubPageStreamingCall(undefined, expectedError); @@ -4913,12 +6038,15 @@ describe('v1.ClusterManagerClient', () => { .getCall(0) .calledWith(client.innerApiCalls.listUsableSubnetworks, request) ); - assert.strictEqual( + assert( ( client.descriptors.page.listUsableSubnetworks .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -4931,8 +6059,12 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListUsableSubnetworksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListUsableSubnetworksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = [ generateSampleMessage( new protos.google.container.v1.UsableSubnetwork() @@ -4959,12 +6091,15 @@ describe('v1.ClusterManagerClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.listUsableSubnetworks .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); @@ -4977,8 +6112,12 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListUsableSubnetworksRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + const defaultValue1 = getTypeDefaultValue( + 'ListUsableSubnetworksRequest', + ['parent'] + ); + request.parent = defaultValue1; + const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); client.descriptors.page.listUsableSubnetworks.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -4996,12 +6135,15 @@ describe('v1.ClusterManagerClient', () => { ).getCall(0).args[1], request ); - assert.strictEqual( + assert( ( client.descriptors.page.listUsableSubnetworks .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + ) + .getCall(0) + .args[2].otherArgs.headers['x-goog-request-params'].includes( + expectedHeaderRequestParams + ) ); }); }); From 36cf66199d379bed5fa780a40a347997d9534fe8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 20 Sep 2022 15:01:37 -0700 Subject: [PATCH 355/371] feat: added High Throughput Logging API for Google Kubernetes Engine (#571) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added High Throughput Logging API for Google Kubernetes Engine docs: ReservationAffinity key field docs incorrect docs: missing period in description for min CPU platform PiperOrigin-RevId: 474706444 Source-Link: https://github.com/googleapis/googleapis/commit/a5a88292731bf4038e37b14aba1286de98a76a14 Source-Link: https://github.com/googleapis/googleapis-gen/commit/992389d809ed37f8fd4d787209048551d9e61154 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTkyMzg5ZDgwOWVkMzdmOGZkNGQ3ODcyMDkwNDg1NTFkOWU2MTE1NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../google/container/v1/cluster_service.proto | 43 +- packages/google-container/protos/protos.d.ts | 228 +++++++ packages/google-container/protos/protos.js | 560 +++++++++++++++++- packages/google-container/protos/protos.json | 41 ++ .../v1/cluster_manager.update_node_pool.js | 4 + .../snippet_metadata.google.container.v1.json | 6 +- .../src/v1/cluster_manager_client.ts | 2 + 7 files changed, 879 insertions(+), 5 deletions(-) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 53a64980ba5..5b71bb8dae9 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -740,6 +740,9 @@ message NodeConfig { // Confidential nodes config. // All the nodes in the node pool will be Confidential VM once enabled. ConfidentialNodes confidential_nodes = 35; + + // Logging configuration. + NodePoolLoggingConfig logging_config = 38; } // Specifies options for controlling advanced machine features. @@ -876,8 +879,9 @@ message ReservationAffinity { 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. + // SPECIFIC_RESERVATION by name, specify + // "compute.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). @@ -1708,6 +1712,9 @@ message NodePoolDefaults { message NodeConfigDefaults { // GCFS (Google Container File System, also known as Riptide) options. GcfsConfig gcfs_config = 1; + + // Logging configuration for node pools. + NodePoolLoggingConfig logging_config = 3; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -1871,6 +1878,9 @@ message ClusterUpdate { // The desired network tags that apply to all auto-provisioned node pools // in autopilot clusters and node auto-provisioning enabled clusters. NetworkTags desired_node_pool_auto_config_network_tags = 110; + + // The desired node pool logging configuration defaults for the cluster. + NodePoolLoggingConfig desired_node_pool_logging_config = 116; } // This operation resource represents operations that may have happened or are @@ -2205,6 +2215,9 @@ message UpdateNodePoolRequest { // Enable or disable gvnic on the node pool. VirtualNIC gvnic = 29; + + // Logging configuration. + NodePoolLoggingConfig logging_config = 32; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -3305,7 +3318,7 @@ message AutoprovisioningNodePoolDefaults { // 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) + // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). // This field is deprecated, min_cpu_platform should be specified using // https://cloud.google.com/requested-min-cpu-platform label selector on the // pod. @@ -4286,6 +4299,30 @@ message MonitoringConfig { ManagedPrometheusConfig managed_prometheus_config = 2; } +// NodePoolLoggingConfig specifies logging configuration for nodepools. +message NodePoolLoggingConfig { + // Logging variant configuration. + LoggingVariantConfig variant_config = 1; +} + +// LoggingVariantConfig specifies the behaviour of the logging component. +message LoggingVariantConfig { + // Logging component variants. + enum Variant { + // Default value. This shouldn't be used. + VARIANT_UNSPECIFIED = 0; + + // default logging variant. + DEFAULT = 1; + + // maximum logging throughput variant. + MAX_THROUGHPUT = 2; + } + + // Logging variant deployed on nodes. + Variant variant = 1; +} + // MonitoringComponentConfig is cluster monitoring component configuration. message MonitoringComponentConfig { // GKE components exposing metrics diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index dfa87f1fddc..061cfca530a 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -1035,6 +1035,9 @@ export namespace google { /** NodeConfig confidentialNodes */ confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + + /** NodeConfig loggingConfig */ + loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); } /** Represents a NodeConfig. */ @@ -1127,6 +1130,9 @@ export namespace google { /** NodeConfig confidentialNodes. */ public confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** NodeConfig loggingConfig. */ + public loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + /** * Creates a new NodeConfig instance using the specified properties. * @param [properties] Properties to set @@ -5336,6 +5342,9 @@ export namespace google { /** NodeConfigDefaults gcfsConfig */ gcfsConfig?: (google.container.v1.IGcfsConfig|null); + + /** NodeConfigDefaults loggingConfig */ + loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); } /** Represents a NodeConfigDefaults. */ @@ -5350,6 +5359,9 @@ export namespace google { /** NodeConfigDefaults gcfsConfig. */ public gcfsConfig?: (google.container.v1.IGcfsConfig|null); + /** NodeConfigDefaults loggingConfig. */ + public loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + /** * Creates a new NodeConfigDefaults instance using the specified properties. * @param [properties] Properties to set @@ -5532,6 +5544,9 @@ export namespace google { /** ClusterUpdate desiredNodePoolAutoConfigNetworkTags */ desiredNodePoolAutoConfigNetworkTags?: (google.container.v1.INetworkTags|null); + + /** ClusterUpdate desiredNodePoolLoggingConfig */ + desiredNodePoolLoggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); } /** Represents a ClusterUpdate. */ @@ -5645,6 +5660,9 @@ export namespace google { /** ClusterUpdate desiredNodePoolAutoConfigNetworkTags. */ public desiredNodePoolAutoConfigNetworkTags?: (google.container.v1.INetworkTags|null); + /** ClusterUpdate desiredNodePoolLoggingConfig. */ + public desiredNodePoolLoggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + /** * Creates a new ClusterUpdate instance using the specified properties. * @param [properties] Properties to set @@ -6583,6 +6601,9 @@ export namespace google { /** UpdateNodePoolRequest gvnic */ gvnic?: (google.container.v1.IVirtualNIC|null); + + /** UpdateNodePoolRequest loggingConfig */ + loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); } /** Represents an UpdateNodePoolRequest. */ @@ -6651,6 +6672,9 @@ export namespace google { /** UpdateNodePoolRequest gvnic. */ public gvnic?: (google.container.v1.IVirtualNIC|null); + /** UpdateNodePoolRequest loggingConfig. */ + public loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @param [properties] Properties to set @@ -17251,6 +17275,210 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a NodePoolLoggingConfig. */ + interface INodePoolLoggingConfig { + + /** NodePoolLoggingConfig variantConfig */ + variantConfig?: (google.container.v1.ILoggingVariantConfig|null); + } + + /** Represents a NodePoolLoggingConfig. */ + class NodePoolLoggingConfig implements INodePoolLoggingConfig { + + /** + * Constructs a new NodePoolLoggingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.INodePoolLoggingConfig); + + /** NodePoolLoggingConfig variantConfig. */ + public variantConfig?: (google.container.v1.ILoggingVariantConfig|null); + + /** + * Creates a new NodePoolLoggingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns NodePoolLoggingConfig instance + */ + public static create(properties?: google.container.v1.INodePoolLoggingConfig): google.container.v1.NodePoolLoggingConfig; + + /** + * Encodes the specified NodePoolLoggingConfig message. Does not implicitly {@link google.container.v1.NodePoolLoggingConfig.verify|verify} messages. + * @param message NodePoolLoggingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.INodePoolLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified NodePoolLoggingConfig message, length delimited. Does not implicitly {@link google.container.v1.NodePoolLoggingConfig.verify|verify} messages. + * @param message NodePoolLoggingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.INodePoolLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a NodePoolLoggingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns NodePoolLoggingConfig + * @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.NodePoolLoggingConfig; + + /** + * Decodes a NodePoolLoggingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns NodePoolLoggingConfig + * @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.NodePoolLoggingConfig; + + /** + * Verifies a NodePoolLoggingConfig 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 NodePoolLoggingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns NodePoolLoggingConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.NodePoolLoggingConfig; + + /** + * Creates a plain object from a NodePoolLoggingConfig message. Also converts values to other types if specified. + * @param message NodePoolLoggingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.NodePoolLoggingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this NodePoolLoggingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for NodePoolLoggingConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + /** Properties of a LoggingVariantConfig. */ + interface ILoggingVariantConfig { + + /** LoggingVariantConfig variant */ + variant?: (google.container.v1.LoggingVariantConfig.Variant|keyof typeof google.container.v1.LoggingVariantConfig.Variant|null); + } + + /** Represents a LoggingVariantConfig. */ + class LoggingVariantConfig implements ILoggingVariantConfig { + + /** + * Constructs a new LoggingVariantConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ILoggingVariantConfig); + + /** LoggingVariantConfig variant. */ + public variant: (google.container.v1.LoggingVariantConfig.Variant|keyof typeof google.container.v1.LoggingVariantConfig.Variant); + + /** + * Creates a new LoggingVariantConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns LoggingVariantConfig instance + */ + public static create(properties?: google.container.v1.ILoggingVariantConfig): google.container.v1.LoggingVariantConfig; + + /** + * Encodes the specified LoggingVariantConfig message. Does not implicitly {@link google.container.v1.LoggingVariantConfig.verify|verify} messages. + * @param message LoggingVariantConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ILoggingVariantConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified LoggingVariantConfig message, length delimited. Does not implicitly {@link google.container.v1.LoggingVariantConfig.verify|verify} messages. + * @param message LoggingVariantConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ILoggingVariantConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a LoggingVariantConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns LoggingVariantConfig + * @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.LoggingVariantConfig; + + /** + * Decodes a LoggingVariantConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns LoggingVariantConfig + * @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.LoggingVariantConfig; + + /** + * Verifies a LoggingVariantConfig 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 LoggingVariantConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns LoggingVariantConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.LoggingVariantConfig; + + /** + * Creates a plain object from a LoggingVariantConfig message. Also converts values to other types if specified. + * @param message LoggingVariantConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.LoggingVariantConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this LoggingVariantConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for LoggingVariantConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace LoggingVariantConfig { + + /** Variant enum. */ + enum Variant { + VARIANT_UNSPECIFIED = 0, + DEFAULT = 1, + MAX_THROUGHPUT = 2 + } + } + /** Properties of a MonitoringComponentConfig. */ interface IMonitoringComponentConfig { diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 4eada2b69ee..dabb7b7993a 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1744,6 +1744,7 @@ * @property {google.container.v1.IVirtualNIC|null} [gvnic] NodeConfig gvnic * @property {boolean|null} [spot] NodeConfig spot * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] NodeConfig confidentialNodes + * @property {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] NodeConfig loggingConfig */ /** @@ -1983,6 +1984,14 @@ */ NodeConfig.prototype.confidentialNodes = null; + /** + * NodeConfig loggingConfig. + * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} loggingConfig + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.loggingConfig = null; + /** * Creates a new NodeConfig instance using the specified properties. * @function create @@ -2067,6 +2076,8 @@ writer.uint32(/* id 32, wireType 0 =*/256).bool(message.spot); if (message.confidentialNodes != null && Object.hasOwnProperty.call(message, "confidentialNodes")) $root.google.container.v1.ConfidentialNodes.encode(message.confidentialNodes, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); + if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) + $root.google.container.v1.NodePoolLoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); return writer; }; @@ -2255,6 +2266,10 @@ message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); break; } + case 38: { + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -2421,6 +2436,11 @@ if (error) return "confidentialNodes." + error; } + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) { + var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.loggingConfig); + if (error) + return "loggingConfig." + error; + } return null; }; @@ -2556,6 +2576,11 @@ throw TypeError(".google.container.v1.NodeConfig.confidentialNodes: object expected"); message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.fromObject(object.confidentialNodes); } + if (object.loggingConfig != null) { + if (typeof object.loggingConfig !== "object") + throw TypeError(".google.container.v1.NodeConfig.loggingConfig: object expected"); + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.fromObject(object.loggingConfig); + } return message; }; @@ -2604,6 +2629,7 @@ object.gvnic = null; object.spot = false; object.confidentialNodes = null; + object.loggingConfig = null; } if (message.machineType != null && message.hasOwnProperty("machineType")) object.machineType = message.machineType; @@ -2678,6 +2704,8 @@ object.spot = message.spot; if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) object.confidentialNodes = $root.google.container.v1.ConfidentialNodes.toObject(message.confidentialNodes, options); + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) + object.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.loggingConfig, options); return object; }; @@ -13068,6 +13096,7 @@ * @memberof google.container.v1 * @interface INodeConfigDefaults * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] NodeConfigDefaults gcfsConfig + * @property {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] NodeConfigDefaults loggingConfig */ /** @@ -13093,6 +13122,14 @@ */ NodeConfigDefaults.prototype.gcfsConfig = null; + /** + * NodeConfigDefaults loggingConfig. + * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} loggingConfig + * @memberof google.container.v1.NodeConfigDefaults + * @instance + */ + NodeConfigDefaults.prototype.loggingConfig = null; + /** * Creates a new NodeConfigDefaults instance using the specified properties. * @function create @@ -13119,6 +13156,8 @@ writer = $Writer.create(); if (message.gcfsConfig != null && Object.hasOwnProperty.call(message, "gcfsConfig")) $root.google.container.v1.GcfsConfig.encode(message.gcfsConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) + $root.google.container.v1.NodePoolLoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -13157,6 +13196,10 @@ message.gcfsConfig = $root.google.container.v1.GcfsConfig.decode(reader, reader.uint32()); break; } + case 3: { + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -13197,6 +13240,11 @@ if (error) return "gcfsConfig." + error; } + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) { + var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.loggingConfig); + if (error) + return "loggingConfig." + error; + } return null; }; @@ -13217,6 +13265,11 @@ throw TypeError(".google.container.v1.NodeConfigDefaults.gcfsConfig: object expected"); message.gcfsConfig = $root.google.container.v1.GcfsConfig.fromObject(object.gcfsConfig); } + if (object.loggingConfig != null) { + if (typeof object.loggingConfig !== "object") + throw TypeError(".google.container.v1.NodeConfigDefaults.loggingConfig: object expected"); + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.fromObject(object.loggingConfig); + } return message; }; @@ -13233,10 +13286,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.gcfsConfig = null; + object.loggingConfig = null; + } if (message.gcfsConfig != null && message.hasOwnProperty("gcfsConfig")) object.gcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.gcfsConfig, options); + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) + object.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.loggingConfig, options); return object; }; @@ -13309,6 +13366,7 @@ * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion * @property {google.container.v1.IGcfsConfig|null} [desiredGcfsConfig] ClusterUpdate desiredGcfsConfig * @property {google.container.v1.INetworkTags|null} [desiredNodePoolAutoConfigNetworkTags] ClusterUpdate desiredNodePoolAutoConfigNetworkTags + * @property {google.container.v1.INodePoolLoggingConfig|null} [desiredNodePoolLoggingConfig] ClusterUpdate desiredNodePoolLoggingConfig */ /** @@ -13599,6 +13657,14 @@ */ ClusterUpdate.prototype.desiredNodePoolAutoConfigNetworkTags = null; + /** + * ClusterUpdate desiredNodePoolLoggingConfig. + * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} desiredNodePoolLoggingConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredNodePoolLoggingConfig = null; + /** * Creates a new ClusterUpdate instance using the specified properties. * @function create @@ -13692,6 +13758,8 @@ $root.google.container.v1.GcfsConfig.encode(message.desiredGcfsConfig, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); if (message.desiredNodePoolAutoConfigNetworkTags != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoConfigNetworkTags")) $root.google.container.v1.NetworkTags.encode(message.desiredNodePoolAutoConfigNetworkTags, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); + if (message.desiredNodePoolLoggingConfig != null && Object.hasOwnProperty.call(message, "desiredNodePoolLoggingConfig")) + $root.google.container.v1.NodePoolLoggingConfig.encode(message.desiredNodePoolLoggingConfig, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); return writer; }; @@ -13864,6 +13932,10 @@ message.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); break; } + case 116: { + message.desiredNodePoolLoggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -14068,6 +14140,11 @@ if (error) return "desiredNodePoolAutoConfigNetworkTags." + error; } + if (message.desiredNodePoolLoggingConfig != null && message.hasOwnProperty("desiredNodePoolLoggingConfig")) { + var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.desiredNodePoolLoggingConfig); + if (error) + return "desiredNodePoolLoggingConfig." + error; + } return null; }; @@ -14259,6 +14336,11 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoConfigNetworkTags: object expected"); message.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.fromObject(object.desiredNodePoolAutoConfigNetworkTags); } + if (object.desiredNodePoolLoggingConfig != null) { + if (typeof object.desiredNodePoolLoggingConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolLoggingConfig: object expected"); + message.desiredNodePoolLoggingConfig = $root.google.container.v1.NodePoolLoggingConfig.fromObject(object.desiredNodePoolLoggingConfig); + } return message; }; @@ -14311,6 +14393,7 @@ object.desiredMasterVersion = ""; object.desiredGcfsConfig = null; object.desiredNodePoolAutoConfigNetworkTags = null; + object.desiredNodePoolLoggingConfig = null; } if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) object.desiredNodeVersion = message.desiredNodeVersion; @@ -14383,6 +14466,8 @@ object.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.desiredGcfsConfig, options); if (message.desiredNodePoolAutoConfigNetworkTags != null && message.hasOwnProperty("desiredNodePoolAutoConfigNetworkTags")) object.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.toObject(message.desiredNodePoolAutoConfigNetworkTags, options); + if (message.desiredNodePoolLoggingConfig != null && message.hasOwnProperty("desiredNodePoolLoggingConfig")) + object.desiredNodePoolLoggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.desiredNodePoolLoggingConfig, options); return object; }; @@ -16710,6 +16795,7 @@ * @property {google.container.v1.IGcfsConfig|null} [gcfsConfig] UpdateNodePoolRequest gcfsConfig * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] UpdateNodePoolRequest confidentialNodes * @property {google.container.v1.IVirtualNIC|null} [gvnic] UpdateNodePoolRequest gvnic + * @property {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] UpdateNodePoolRequest loggingConfig */ /** @@ -16880,6 +16966,14 @@ */ UpdateNodePoolRequest.prototype.gvnic = null; + /** + * UpdateNodePoolRequest loggingConfig. + * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} loggingConfig + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.loggingConfig = null; + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @function create @@ -16943,6 +17037,8 @@ $root.google.container.v1.ConfidentialNodes.encode(message.confidentialNodes, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.gvnic != null && Object.hasOwnProperty.call(message, "gvnic")) $root.google.container.v1.VirtualNIC.encode(message.gvnic, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); + if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) + $root.google.container.v1.NodePoolLoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); return writer; }; @@ -17055,6 +17151,10 @@ message.gvnic = $root.google.container.v1.VirtualNIC.decode(reader, reader.uint32()); break; } + case 32: { + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -17173,6 +17273,11 @@ if (error) return "gvnic." + error; } + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) { + var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.loggingConfig); + if (error) + return "loggingConfig." + error; + } return null; }; @@ -17264,6 +17369,11 @@ throw TypeError(".google.container.v1.UpdateNodePoolRequest.gvnic: object expected"); message.gvnic = $root.google.container.v1.VirtualNIC.fromObject(object.gvnic); } + if (object.loggingConfig != null) { + if (typeof object.loggingConfig !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.loggingConfig: object expected"); + message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.fromObject(object.loggingConfig); + } return message; }; @@ -17301,6 +17411,7 @@ object.gcfsConfig = null; object.confidentialNodes = null; object.gvnic = null; + object.loggingConfig = null; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; @@ -17343,6 +17454,8 @@ object.confidentialNodes = $root.google.container.v1.ConfidentialNodes.toObject(message.confidentialNodes, options); if (message.gvnic != null && message.hasOwnProperty("gvnic")) object.gvnic = $root.google.container.v1.VirtualNIC.toObject(message.gvnic, options); + if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) + object.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.loggingConfig, options); return object; }; @@ -43413,6 +43526,451 @@ return MonitoringConfig; })(); + v1.NodePoolLoggingConfig = (function() { + + /** + * Properties of a NodePoolLoggingConfig. + * @memberof google.container.v1 + * @interface INodePoolLoggingConfig + * @property {google.container.v1.ILoggingVariantConfig|null} [variantConfig] NodePoolLoggingConfig variantConfig + */ + + /** + * Constructs a new NodePoolLoggingConfig. + * @memberof google.container.v1 + * @classdesc Represents a NodePoolLoggingConfig. + * @implements INodePoolLoggingConfig + * @constructor + * @param {google.container.v1.INodePoolLoggingConfig=} [properties] Properties to set + */ + function NodePoolLoggingConfig(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]]; + } + + /** + * NodePoolLoggingConfig variantConfig. + * @member {google.container.v1.ILoggingVariantConfig|null|undefined} variantConfig + * @memberof google.container.v1.NodePoolLoggingConfig + * @instance + */ + NodePoolLoggingConfig.prototype.variantConfig = null; + + /** + * Creates a new NodePoolLoggingConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {google.container.v1.INodePoolLoggingConfig=} [properties] Properties to set + * @returns {google.container.v1.NodePoolLoggingConfig} NodePoolLoggingConfig instance + */ + NodePoolLoggingConfig.create = function create(properties) { + return new NodePoolLoggingConfig(properties); + }; + + /** + * Encodes the specified NodePoolLoggingConfig message. Does not implicitly {@link google.container.v1.NodePoolLoggingConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {google.container.v1.INodePoolLoggingConfig} message NodePoolLoggingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolLoggingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.variantConfig != null && Object.hasOwnProperty.call(message, "variantConfig")) + $root.google.container.v1.LoggingVariantConfig.encode(message.variantConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified NodePoolLoggingConfig message, length delimited. Does not implicitly {@link google.container.v1.NodePoolLoggingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {google.container.v1.INodePoolLoggingConfig} message NodePoolLoggingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + NodePoolLoggingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a NodePoolLoggingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.NodePoolLoggingConfig} NodePoolLoggingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolLoggingConfig.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.NodePoolLoggingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.variantConfig = $root.google.container.v1.LoggingVariantConfig.decode(reader, reader.uint32()); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a NodePoolLoggingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.NodePoolLoggingConfig} NodePoolLoggingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + NodePoolLoggingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a NodePoolLoggingConfig message. + * @function verify + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + NodePoolLoggingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.variantConfig != null && message.hasOwnProperty("variantConfig")) { + var error = $root.google.container.v1.LoggingVariantConfig.verify(message.variantConfig); + if (error) + return "variantConfig." + error; + } + return null; + }; + + /** + * Creates a NodePoolLoggingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.NodePoolLoggingConfig} NodePoolLoggingConfig + */ + NodePoolLoggingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.NodePoolLoggingConfig) + return object; + var message = new $root.google.container.v1.NodePoolLoggingConfig(); + if (object.variantConfig != null) { + if (typeof object.variantConfig !== "object") + throw TypeError(".google.container.v1.NodePoolLoggingConfig.variantConfig: object expected"); + message.variantConfig = $root.google.container.v1.LoggingVariantConfig.fromObject(object.variantConfig); + } + return message; + }; + + /** + * Creates a plain object from a NodePoolLoggingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {google.container.v1.NodePoolLoggingConfig} message NodePoolLoggingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NodePoolLoggingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.variantConfig = null; + if (message.variantConfig != null && message.hasOwnProperty("variantConfig")) + object.variantConfig = $root.google.container.v1.LoggingVariantConfig.toObject(message.variantConfig, options); + return object; + }; + + /** + * Converts this NodePoolLoggingConfig to JSON. + * @function toJSON + * @memberof google.container.v1.NodePoolLoggingConfig + * @instance + * @returns {Object.} JSON object + */ + NodePoolLoggingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for NodePoolLoggingConfig + * @function getTypeUrl + * @memberof google.container.v1.NodePoolLoggingConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + NodePoolLoggingConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.NodePoolLoggingConfig"; + }; + + return NodePoolLoggingConfig; + })(); + + v1.LoggingVariantConfig = (function() { + + /** + * Properties of a LoggingVariantConfig. + * @memberof google.container.v1 + * @interface ILoggingVariantConfig + * @property {google.container.v1.LoggingVariantConfig.Variant|null} [variant] LoggingVariantConfig variant + */ + + /** + * Constructs a new LoggingVariantConfig. + * @memberof google.container.v1 + * @classdesc Represents a LoggingVariantConfig. + * @implements ILoggingVariantConfig + * @constructor + * @param {google.container.v1.ILoggingVariantConfig=} [properties] Properties to set + */ + function LoggingVariantConfig(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]]; + } + + /** + * LoggingVariantConfig variant. + * @member {google.container.v1.LoggingVariantConfig.Variant} variant + * @memberof google.container.v1.LoggingVariantConfig + * @instance + */ + LoggingVariantConfig.prototype.variant = 0; + + /** + * Creates a new LoggingVariantConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {google.container.v1.ILoggingVariantConfig=} [properties] Properties to set + * @returns {google.container.v1.LoggingVariantConfig} LoggingVariantConfig instance + */ + LoggingVariantConfig.create = function create(properties) { + return new LoggingVariantConfig(properties); + }; + + /** + * Encodes the specified LoggingVariantConfig message. Does not implicitly {@link google.container.v1.LoggingVariantConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {google.container.v1.ILoggingVariantConfig} message LoggingVariantConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingVariantConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.variant != null && Object.hasOwnProperty.call(message, "variant")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.variant); + return writer; + }; + + /** + * Encodes the specified LoggingVariantConfig message, length delimited. Does not implicitly {@link google.container.v1.LoggingVariantConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {google.container.v1.ILoggingVariantConfig} message LoggingVariantConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + LoggingVariantConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a LoggingVariantConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.LoggingVariantConfig} LoggingVariantConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingVariantConfig.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.LoggingVariantConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.variant = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a LoggingVariantConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.LoggingVariantConfig} LoggingVariantConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + LoggingVariantConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a LoggingVariantConfig message. + * @function verify + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + LoggingVariantConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.variant != null && message.hasOwnProperty("variant")) + switch (message.variant) { + default: + return "variant: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a LoggingVariantConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.LoggingVariantConfig} LoggingVariantConfig + */ + LoggingVariantConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.LoggingVariantConfig) + return object; + var message = new $root.google.container.v1.LoggingVariantConfig(); + switch (object.variant) { + case "VARIANT_UNSPECIFIED": + case 0: + message.variant = 0; + break; + case "DEFAULT": + case 1: + message.variant = 1; + break; + case "MAX_THROUGHPUT": + case 2: + message.variant = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a LoggingVariantConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {google.container.v1.LoggingVariantConfig} message LoggingVariantConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + LoggingVariantConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.variant = options.enums === String ? "VARIANT_UNSPECIFIED" : 0; + if (message.variant != null && message.hasOwnProperty("variant")) + object.variant = options.enums === String ? $root.google.container.v1.LoggingVariantConfig.Variant[message.variant] : message.variant; + return object; + }; + + /** + * Converts this LoggingVariantConfig to JSON. + * @function toJSON + * @memberof google.container.v1.LoggingVariantConfig + * @instance + * @returns {Object.} JSON object + */ + LoggingVariantConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for LoggingVariantConfig + * @function getTypeUrl + * @memberof google.container.v1.LoggingVariantConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + LoggingVariantConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.LoggingVariantConfig"; + }; + + /** + * Variant enum. + * @name google.container.v1.LoggingVariantConfig.Variant + * @enum {number} + * @property {number} VARIANT_UNSPECIFIED=0 VARIANT_UNSPECIFIED value + * @property {number} DEFAULT=1 DEFAULT value + * @property {number} MAX_THROUGHPUT=2 MAX_THROUGHPUT value + */ + LoggingVariantConfig.Variant = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VARIANT_UNSPECIFIED"] = 0; + values[valuesById[1] = "DEFAULT"] = 1; + values[valuesById[2] = "MAX_THROUGHPUT"] = 2; + return values; + })(); + + return LoggingVariantConfig; + })(); + v1.MonitoringComponentConfig = (function() { /** diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 8fac500d445..f1afc9031bd 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -1006,6 +1006,10 @@ "confidentialNodes": { "type": "ConfidentialNodes", "id": 35 + }, + "loggingConfig": { + "type": "NodePoolLoggingConfig", + "id": 38 } } }, @@ -1891,6 +1895,10 @@ "gcfsConfig": { "type": "GcfsConfig", "id": 1 + }, + "loggingConfig": { + "type": "NodePoolLoggingConfig", + "id": 3 } } }, @@ -2032,6 +2040,10 @@ "desiredNodePoolAutoConfigNetworkTags": { "type": "NetworkTags", "id": 110 + }, + "desiredNodePoolLoggingConfig": { + "type": "NodePoolLoggingConfig", + "id": 116 } } }, @@ -2395,6 +2407,10 @@ "gvnic": { "type": "VirtualNIC", "id": 29 + }, + "loggingConfig": { + "type": "NodePoolLoggingConfig", + "id": 32 } } }, @@ -4651,6 +4667,31 @@ } } }, + "NodePoolLoggingConfig": { + "fields": { + "variantConfig": { + "type": "LoggingVariantConfig", + "id": 1 + } + } + }, + "LoggingVariantConfig": { + "fields": { + "variant": { + "type": "Variant", + "id": 1 + } + }, + "nested": { + "Variant": { + "values": { + "VARIANT_UNSPECIFIED": 0, + "DEFAULT": 1, + "MAX_THROUGHPUT": 2 + } + } + } + }, "MonitoringComponentConfig": { "fields": { "enableComponents": { diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index 3ae32ee4494..f37e7eec21b 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -109,6 +109,10 @@ function main(nodeVersion, imageType) { * Enable or disable gvnic on the node pool. */ // const gvnic = {} + /** + * Logging configuration. + */ + // const loggingConfig = {} // Imports the Container library const {ClusterManagerClient} = require('@google-cloud/container').v1; diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 4a13cd29892..250955e4c74 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 131, + "end": 135, "type": "FULL" } ], @@ -314,6 +314,10 @@ { "name": "gvnic", "type": ".google.container.v1.VirtualNIC" + }, + { + "name": "logging_config", + "type": ".google.container.v1.NodePoolLoggingConfig" } ], "resultType": ".google.container.v1.Operation", diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index bee61c40cac..ae1d4dcc7d2 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -828,6 +828,8 @@ export class ClusterManagerClient { * All the nodes in the node pool will be Confidential VM once enabled. * @param {google.container.v1.VirtualNIC} request.gvnic * Enable or disable gvnic on the node pool. + * @param {google.container.v1.NodePoolLoggingConfig} request.loggingConfig + * Logging configuration. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. From e8edd8662561f5a4ffe5b071c7a29af835659f36 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 22 Sep 2022 10:59:14 -0700 Subject: [PATCH 356/371] build: use fully qualified request type name in tests (#574) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * test: use fully qualified request type name in tests PiperOrigin-RevId: 475685359 Source-Link: https://github.com/googleapis/googleapis/commit/7a129736313ceb1f277c3b7f7e16d2e04cc901dd Source-Link: https://github.com/googleapis/googleapis-gen/commit/370c729e2ba062a167449c27882ba5f379c5c34d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzcwYzcyOWUyYmEwNjJhMTY3NDQ5YzI3ODgyYmE1ZjM3OWM1YzM0ZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../test/gapic_cluster_manager_v1.ts | 3150 ++++++++++------- 1 file changed, 1817 insertions(+), 1333 deletions(-) diff --git a/packages/google-container/test/gapic_cluster_manager_v1.ts b/packages/google-container/test/gapic_cluster_manager_v1.ts index 9696fb6446e..acb6f41d502 100644 --- a/packages/google-container/test/gapic_cluster_manager_v1.ts +++ b/packages/google-container/test/gapic_cluster_manager_v1.ts @@ -237,17 +237,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListClustersRequest() ); - const defaultValue1 = getTypeDefaultValue('ListClustersRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListClustersRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListClustersRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( @@ -275,17 +278,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListClustersRequest() ); - const defaultValue1 = getTypeDefaultValue('ListClustersRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListClustersRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListClustersRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( @@ -329,17 +335,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListClustersRequest() ); - const defaultValue1 = getTypeDefaultValue('ListClustersRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListClustersRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListClustersRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedError = new Error('expected'); @@ -367,17 +376,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListClustersRequest() ); - const defaultValue1 = getTypeDefaultValue('ListClustersRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListClustersRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListClustersRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListClustersRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -395,17 +407,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('GetClusterRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetClusterRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -433,17 +453,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('GetClusterRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetClusterRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -487,17 +515,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('GetClusterRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetClusterRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -525,17 +561,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('GetClusterRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetClusterRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -553,17 +597,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateClusterRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CreateClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CreateClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( @@ -591,17 +638,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateClusterRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CreateClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CreateClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( @@ -645,17 +695,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateClusterRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CreateClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CreateClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedError = new Error('expected'); @@ -683,17 +736,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateClusterRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CreateClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CreateClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CreateClusterRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -711,21 +767,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateClusterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -753,21 +813,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateClusterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -811,21 +875,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateClusterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -853,21 +921,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateClusterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -885,25 +957,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( @@ -931,25 +1008,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( @@ -993,25 +1075,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); @@ -1039,25 +1126,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('UpdateNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.UpdateNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1076,27 +1168,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -1128,27 +1220,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -1195,27 +1287,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -1249,27 +1341,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolAutoscalingRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'SetNodePoolAutoscalingRequest', + '.google.container.v1.SetNodePoolAutoscalingRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -1292,21 +1384,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLoggingServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -1334,21 +1430,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLoggingServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -1392,21 +1492,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLoggingServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'projectId', - ]); - request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'zone', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['projectId'] + ); + request.projectId = defaultValue2; + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -1434,21 +1538,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLoggingServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLoggingServiceRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLoggingServiceRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1466,21 +1574,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMonitoringServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -1509,21 +1621,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMonitoringServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -1567,21 +1683,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMonitoringServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -1609,21 +1729,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMonitoringServiceRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMonitoringServiceRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMonitoringServiceRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1641,21 +1765,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetAddonsConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -1683,21 +1811,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetAddonsConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -1741,21 +1873,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetAddonsConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -1783,21 +1919,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetAddonsConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetAddonsConfigRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetAddonsConfigRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1816,21 +1956,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLocationsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLocationsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLocationsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLocationsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -1860,21 +2004,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLocationsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLocationsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLocationsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLocationsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -1920,21 +2068,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLocationsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLocationsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLocationsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLocationsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -1964,21 +2116,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLocationsRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLocationsRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLocationsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLocationsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLocationsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLocationsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -1997,21 +2153,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateMasterRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateMasterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateMasterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateMasterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateMasterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -2039,21 +2199,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateMasterRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateMasterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateMasterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateMasterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateMasterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -2097,21 +2261,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateMasterRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateMasterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateMasterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateMasterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateMasterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -2139,21 +2307,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.UpdateMasterRequest() ); - const defaultValue1 = getTypeDefaultValue('UpdateMasterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('UpdateMasterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('UpdateMasterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('UpdateMasterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.UpdateMasterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2171,21 +2343,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMasterAuthRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -2213,21 +2389,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMasterAuthRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -2271,21 +2451,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMasterAuthRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -2313,21 +2497,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMasterAuthRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMasterAuthRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMasterAuthRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2345,21 +2533,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteClusterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('DeleteClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('DeleteClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('DeleteClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -2387,21 +2579,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteClusterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('DeleteClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('DeleteClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('DeleteClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -2445,21 +2641,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteClusterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('DeleteClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('DeleteClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('DeleteClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -2487,21 +2687,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteClusterRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteClusterRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('DeleteClusterRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('DeleteClusterRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('DeleteClusterRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.DeleteClusterRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2519,17 +2723,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListOperationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOperationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListOperationsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListOperationsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( @@ -2557,17 +2764,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListOperationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOperationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListOperationsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListOperationsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( @@ -2611,17 +2821,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListOperationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOperationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListOperationsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListOperationsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedError = new Error('expected'); @@ -2649,17 +2862,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListOperationsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListOperationsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListOperationsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListOperationsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListOperationsRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2677,21 +2893,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetOperationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetOperationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetOperationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetOperationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetOperationRequest', [ - 'operationId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['operationId'] + ); request.operationId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -2719,21 +2939,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetOperationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetOperationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetOperationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetOperationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetOperationRequest', [ - 'operationId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['operationId'] + ); request.operationId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -2777,21 +3001,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetOperationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetOperationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetOperationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetOperationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetOperationRequest', [ - 'operationId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['operationId'] + ); request.operationId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -2819,21 +3047,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetOperationRequest() ); - const defaultValue1 = getTypeDefaultValue('GetOperationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetOperationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetOperationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetOperationRequest', [ - 'operationId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetOperationRequest', + ['operationId'] + ); request.operationId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -2851,21 +3083,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CancelOperationRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelOperationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CancelOperationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CancelOperationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CancelOperationRequest', [ - 'operationId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['operationId'] + ); request.operationId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -2893,21 +3129,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CancelOperationRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelOperationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CancelOperationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CancelOperationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CancelOperationRequest', [ - 'operationId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['operationId'] + ); request.operationId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -2951,21 +3191,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CancelOperationRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelOperationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CancelOperationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CancelOperationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CancelOperationRequest', [ - 'operationId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['operationId'] + ); request.operationId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&operation_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -2993,21 +3237,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CancelOperationRequest() ); - const defaultValue1 = getTypeDefaultValue('CancelOperationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CancelOperationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CancelOperationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CancelOperationRequest', [ - 'operationId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CancelOperationRequest', + ['operationId'] + ); request.operationId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3025,17 +3273,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetServerConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServerConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetServerConfigRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetServerConfigRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( @@ -3063,17 +3314,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetServerConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServerConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetServerConfigRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetServerConfigRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedResponse = generateSampleMessage( @@ -3117,17 +3371,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetServerConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServerConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetServerConfigRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetServerConfigRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}`; const expectedError = new Error('expected'); @@ -3155,17 +3412,20 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetServerConfigRequest() ); - const defaultValue1 = getTypeDefaultValue('GetServerConfigRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetServerConfigRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetServerConfigRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetServerConfigRequest', + ['zone'] + ); request.zone = defaultValue3; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3183,9 +3443,10 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysRequest() ); - const defaultValue1 = getTypeDefaultValue('GetJSONWebKeysRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetJSONWebKeysRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3213,9 +3474,10 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysRequest() ); - const defaultValue1 = getTypeDefaultValue('GetJSONWebKeysRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetJSONWebKeysRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedResponse = generateSampleMessage( @@ -3259,9 +3521,10 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysRequest() ); - const defaultValue1 = getTypeDefaultValue('GetJSONWebKeysRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetJSONWebKeysRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedHeaderRequestParams = `parent=${defaultValue1}`; const expectedError = new Error('expected'); @@ -3289,9 +3552,10 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetJSONWebKeysRequest() ); - const defaultValue1 = getTypeDefaultValue('GetJSONWebKeysRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetJSONWebKeysRequest', + ['parent'] + ); request.parent = defaultValue1; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3309,21 +3573,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListNodePoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -3351,21 +3619,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListNodePoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -3409,21 +3681,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListNodePoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -3451,21 +3727,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.ListNodePoolsRequest() ); - const defaultValue1 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('ListNodePoolsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.ListNodePoolsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3483,21 +3763,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetNodePoolRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetNodePoolRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('GetNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( @@ -3525,21 +3814,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetNodePoolRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetNodePoolRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('GetNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( @@ -3583,21 +3881,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetNodePoolRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetNodePoolRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('GetNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); @@ -3625,21 +3932,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.GetNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('GetNodePoolRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('GetNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('GetNodePoolRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('GetNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('GetNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.GetNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3657,21 +3973,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -3699,21 +4019,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -3757,21 +4081,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `parent=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -3799,21 +4127,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CreateNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'parent', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['parent'] + ); request.parent = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CreateNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CreateNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -3831,25 +4163,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( @@ -3877,25 +4214,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( @@ -3939,25 +4281,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); @@ -3985,25 +4332,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.DeleteNodePoolRequest() ); - const defaultValue1 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('DeleteNodePoolRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.DeleteNodePoolRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -4022,7 +4374,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CompleteNodePoolUpgradeRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CompleteNodePoolUpgradeRequest', + '.google.container.v1.CompleteNodePoolUpgradeRequest', ['name'] ); request.name = defaultValue1; @@ -4054,7 +4406,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CompleteNodePoolUpgradeRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CompleteNodePoolUpgradeRequest', + '.google.container.v1.CompleteNodePoolUpgradeRequest', ['name'] ); request.name = defaultValue1; @@ -4101,7 +4453,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CompleteNodePoolUpgradeRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CompleteNodePoolUpgradeRequest', + '.google.container.v1.CompleteNodePoolUpgradeRequest', ['name'] ); request.name = defaultValue1; @@ -4135,7 +4487,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.CompleteNodePoolUpgradeRequest() ); const defaultValue1 = getTypeDefaultValue( - 'CompleteNodePoolUpgradeRequest', + '.google.container.v1.CompleteNodePoolUpgradeRequest', ['name'] ); request.name = defaultValue1; @@ -4159,27 +4511,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); const defaultValue1 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -4211,27 +4563,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); const defaultValue1 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -4278,27 +4630,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); const defaultValue1 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -4332,27 +4684,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.RollbackNodePoolUpgradeRequest() ); const defaultValue1 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'RollbackNodePoolUpgradeRequest', + '.google.container.v1.RollbackNodePoolUpgradeRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -4376,27 +4728,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolManagementRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -4428,27 +4780,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolManagementRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -4495,27 +4847,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolManagementRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -4549,27 +4901,27 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.SetNodePoolManagementRequest() ); const defaultValue1 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['name'] ); request.name = defaultValue1; const defaultValue2 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['projectId'] ); request.projectId = defaultValue2; const defaultValue3 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['zone'] ); request.zone = defaultValue3; const defaultValue4 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['clusterId'] ); request.clusterId = defaultValue4; const defaultValue5 = getTypeDefaultValue( - 'SetNodePoolManagementRequest', + '.google.container.v1.SetNodePoolManagementRequest', ['nodePoolId'] ); request.nodePoolId = defaultValue5; @@ -4592,17 +4944,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLabelsRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLabelsRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLabelsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLabelsRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLabelsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -4630,17 +4990,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLabelsRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLabelsRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLabelsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLabelsRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLabelsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -4684,17 +5052,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLabelsRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLabelsRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLabelsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLabelsRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLabelsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -4719,17 +5095,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLabelsRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLabelsRequest', ['name']); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLabelsRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLabelsRequest', ['zone']); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLabelsRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLabelsRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -4747,21 +5131,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLegacyAbacRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -4789,22 +5177,26 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLegacyAbacRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'clusterId', - ]); - request.clusterId = defaultValue4; + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['clusterId'] + ); + request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( new protos.google.container.v1.Operation() @@ -4847,21 +5239,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLegacyAbacRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -4889,21 +5285,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetLegacyAbacRequest() ); - const defaultValue1 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetLegacyAbacRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetLegacyAbacRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -4921,21 +5321,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.StartIPRotationRequest() ); - const defaultValue1 = getTypeDefaultValue('StartIPRotationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('StartIPRotationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('StartIPRotationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('StartIPRotationRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -4963,21 +5367,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.StartIPRotationRequest() ); - const defaultValue1 = getTypeDefaultValue('StartIPRotationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('StartIPRotationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('StartIPRotationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('StartIPRotationRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -5021,21 +5429,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.StartIPRotationRequest() ); - const defaultValue1 = getTypeDefaultValue('StartIPRotationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('StartIPRotationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('StartIPRotationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('StartIPRotationRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -5063,21 +5475,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.StartIPRotationRequest() ); - const defaultValue1 = getTypeDefaultValue('StartIPRotationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('StartIPRotationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('StartIPRotationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('StartIPRotationRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.StartIPRotationRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -5095,21 +5511,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteIPRotationRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -5138,21 +5558,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteIPRotationRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -5196,21 +5620,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteIPRotationRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -5238,21 +5666,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.CompleteIPRotationRequest() ); - const defaultValue1 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('CompleteIPRotationRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.CompleteIPRotationRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -5270,25 +5702,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolSizeRequest() ); - const defaultValue1 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( @@ -5316,25 +5753,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolSizeRequest() ); - const defaultValue1 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedResponse = generateSampleMessage( @@ -5378,25 +5820,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolSizeRequest() ); - const defaultValue1 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}&node_pool_id=${defaultValue5}`; const expectedError = new Error('expected'); @@ -5424,25 +5871,30 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNodePoolSizeRequest() ); - const defaultValue1 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; - const defaultValue5 = getTypeDefaultValue('SetNodePoolSizeRequest', [ - 'nodePoolId', - ]); + const defaultValue5 = getTypeDefaultValue( + '.google.container.v1.SetNodePoolSizeRequest', + ['nodePoolId'] + ); request.nodePoolId = defaultValue5; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -5460,21 +5912,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNetworkPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -5502,21 +5958,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNetworkPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -5560,21 +6020,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNetworkPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -5602,21 +6066,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetNetworkPolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetNetworkPolicyRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetNetworkPolicyRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -5634,21 +6102,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMaintenancePolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -5677,21 +6149,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMaintenancePolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedResponse = generateSampleMessage( @@ -5735,21 +6211,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMaintenancePolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedHeaderRequestParams = `name=${defaultValue1}&project_id=${defaultValue2}&zone=${defaultValue3}&cluster_id=${defaultValue4}`; const expectedError = new Error('expected'); @@ -5777,21 +6257,25 @@ describe('v1.ClusterManagerClient', () => { const request = generateSampleMessage( new protos.google.container.v1.SetMaintenancePolicyRequest() ); - const defaultValue1 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'name', - ]); + const defaultValue1 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['name'] + ); request.name = defaultValue1; - const defaultValue2 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'projectId', - ]); + const defaultValue2 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['projectId'] + ); request.projectId = defaultValue2; - const defaultValue3 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'zone', - ]); + const defaultValue3 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['zone'] + ); request.zone = defaultValue3; - const defaultValue4 = getTypeDefaultValue('SetMaintenancePolicyRequest', [ - 'clusterId', - ]); + const defaultValue4 = getTypeDefaultValue( + '.google.container.v1.SetMaintenancePolicyRequest', + ['clusterId'] + ); request.clusterId = defaultValue4; const expectedError = new Error('The client has already been closed.'); client.close(); @@ -5810,7 +6294,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListUsableSubnetworksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListUsableSubnetworksRequest', + '.google.container.v1.ListUsableSubnetworksRequest', ['parent'] ); request.parent = defaultValue1; @@ -5850,7 +6334,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListUsableSubnetworksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListUsableSubnetworksRequest', + '.google.container.v1.ListUsableSubnetworksRequest', ['parent'] ); request.parent = defaultValue1; @@ -5905,7 +6389,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListUsableSubnetworksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListUsableSubnetworksRequest', + '.google.container.v1.ListUsableSubnetworksRequest', ['parent'] ); request.parent = defaultValue1; @@ -5939,7 +6423,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListUsableSubnetworksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListUsableSubnetworksRequest', + '.google.container.v1.ListUsableSubnetworksRequest', ['parent'] ); request.parent = defaultValue1; @@ -6005,7 +6489,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListUsableSubnetworksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListUsableSubnetworksRequest', + '.google.container.v1.ListUsableSubnetworksRequest', ['parent'] ); request.parent = defaultValue1; @@ -6060,7 +6544,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListUsableSubnetworksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListUsableSubnetworksRequest', + '.google.container.v1.ListUsableSubnetworksRequest', ['parent'] ); request.parent = defaultValue1; @@ -6113,7 +6597,7 @@ describe('v1.ClusterManagerClient', () => { new protos.google.container.v1.ListUsableSubnetworksRequest() ); const defaultValue1 = getTypeDefaultValue( - 'ListUsableSubnetworksRequest', + '.google.container.v1.ListUsableSubnetworksRequest', ['parent'] ); request.parent = defaultValue1; From 1f5746e4ebafd4e69055b4849ece4ae37888a59e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 26 Sep 2022 15:24:35 +0000 Subject: [PATCH 357/371] chore(main): release 4.2.0 (#569) :robot: I have created a release *beep* *boop* --- ## [4.2.0](https://github.com/googleapis/nodejs-cloud-container/compare/v4.1.3...v4.2.0) (2022-09-22) ### Features * Added High Throughput Logging API for Google Kubernetes Engine ([#571](https://github.com/googleapis/nodejs-cloud-container/issues/571)) ([588b19a](https://github.com/googleapis/nodejs-cloud-container/commit/588b19a19daca6d994a28d04e8b9a8a2f081324b)) ### Bug Fixes * Preserve default values in x-goog-request-params header ([#568](https://github.com/googleapis/nodejs-cloud-container/issues/568)) ([575531f](https://github.com/googleapis/nodejs-cloud-container/commit/575531f012d3448eb796f73fda6d62ef9ba425fd)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- packages/google-container/CHANGELOG.md | 12 ++++++++++++ packages/google-container/package.json | 2 +- .../v1/snippet_metadata.google.container.v1.json | 2 +- packages/google-container/samples/package.json | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index bbe988d25aa..9cdf0b1a5e0 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,18 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [4.2.0](https://github.com/googleapis/nodejs-cloud-container/compare/v4.1.3...v4.2.0) (2022-09-22) + + +### Features + +* Added High Throughput Logging API for Google Kubernetes Engine ([#571](https://github.com/googleapis/nodejs-cloud-container/issues/571)) ([588b19a](https://github.com/googleapis/nodejs-cloud-container/commit/588b19a19daca6d994a28d04e8b9a8a2f081324b)) + + +### Bug Fixes + +* Preserve default values in x-goog-request-params header ([#568](https://github.com/googleapis/nodejs-cloud-container/issues/568)) ([575531f](https://github.com/googleapis/nodejs-cloud-container/commit/575531f012d3448eb796f73fda6d62ef9ba425fd)) + ## [4.1.3](https://github.com/googleapis/nodejs-cloud-container/compare/v4.1.2...v4.1.3) (2022-09-13) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 2ad3696c688..eb7ebefa5e4 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "4.1.3", + "version": "4.2.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 250955e4c74..934afa2458f 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "4.1.3", + "version": "4.2.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 369187d47f1..1c8fb0b9fc8 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^4.1.3", + "@google-cloud/container": "^4.2.0", "uuid": "^9.0.0" }, "devDependencies": { From 90b8ba5b84ace7efb8665af9fa0cfddc506da90b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 14 Oct 2022 09:50:47 -0700 Subject: [PATCH 358/371] feat: launch GKE Cost Allocations configuration to the v1 GKE API (#577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: launch GKE Cost Allocations configuration to the v1 GKE API PiperOrigin-RevId: 479682735 Source-Link: https://github.com/googleapis/googleapis/commit/4a3979503f6b5814742eef42621c9673d2f929f1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/aaca9d43d55b767822788f4547e5479a2ce925a5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWFjYTlkNDNkNTViNzY3ODIyNzg4ZjQ1NDdlNTQ3OWEyY2U5MjVhNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../google/container/v1/cluster_service.proto | 51 ++ packages/google-container/protos/protos.d.ts | 238 +++++++ packages/google-container/protos/protos.js | 604 ++++++++++++++++++ packages/google-container/protos/protos.json | 50 ++ 4 files changed, 943 insertions(+) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index 5b71bb8dae9..f9197ec4a12 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -1030,6 +1030,9 @@ message AddonsConfig { // Configuration for the GCP Filestore CSI driver. GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; + + // Configuration for the Backup for GKE agent addon. + GkeBackupAgentConfig gke_backup_agent_config = 16; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -1156,6 +1159,12 @@ message GcpFilestoreCsiDriverConfig { bool enabled = 1; } +// Configuration for the Backup for GKE Agent. +message GkeBackupAgentConfig { + // Whether the Backup for GKE agent is enabled for this cluster. + bool enabled = 1; +} + // Configuration options for the master authorized networks feature. Enabled // master authorized networks will disallow all external traffic to access // Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -1351,6 +1360,12 @@ message IPAllocationPolicy { // 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; + + // The IP stack type of the cluster + StackType stack_type = 16; + + // The ipv6 access type (internal or external) when create_subnetwork is true + IPv6AccessType ipv6_access_type = 17; } // A Google Kubernetes Engine cluster. @@ -1566,6 +1581,9 @@ message Cluster { // pods. MeshCertificates mesh_certificates = 67; + // Configuration for the fine-grained cost management feature. + CostManagementConfig cost_management_config = 45; + // Notification configuration of the cluster. NotificationConfig notification_config = 49; @@ -1773,6 +1791,9 @@ message ClusterUpdate { // Configuration for Shielded Nodes. ShieldedNodes desired_shielded_nodes = 48; + // The desired configuration for the fine-grained cost management feature. + CostManagementConfig desired_cost_management_config = 49; + // DNSConfig contains clusterDNS config for this cluster. DNSConfig desired_dns_config = 53; @@ -3838,6 +3859,12 @@ message ReleaseChannel { Channel channel = 1; } +// Configuration for fine-grained cost management feature. +message CostManagementConfig { + // Whether the feature is enabled or not. + bool enabled = 1; +} + // IntraNodeVisibilityConfig contains the desired config of the intra-node // visibility on this cluster. message IntraNodeVisibilityConfig { @@ -4383,3 +4410,27 @@ message ManagedPrometheusConfig { // Enable Managed Collection. bool enabled = 1; } + +// Possible values for IP stack type +enum StackType { + // Default value, will be defaulted as IPV4 only + STACK_TYPE_UNSPECIFIED = 0; + + // Cluster is IPV4 only + IPV4 = 1; + + // Cluster can use both IPv4 and IPv6 + IPV4_IPV6 = 2; +} + +// Possible values for IPv6 access type +enum IPv6AccessType { + // Default value, will be defaulted as type external. + IPV6_ACCESS_TYPE_UNSPECIFIED = 0; + + // Access type internal (all v6 addresses are internal IPs) + INTERNAL = 1; + + // Access type external (all v6 addresses are external IPs) + EXTERNAL = 2; +} diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 061cfca530a..3d6167379fe 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -2631,6 +2631,9 @@ export namespace google { /** AddonsConfig gcpFilestoreCsiDriverConfig */ gcpFilestoreCsiDriverConfig?: (google.container.v1.IGcpFilestoreCsiDriverConfig|null); + + /** AddonsConfig gkeBackupAgentConfig */ + gkeBackupAgentConfig?: (google.container.v1.IGkeBackupAgentConfig|null); } /** Represents an AddonsConfig. */ @@ -2669,6 +2672,9 @@ export namespace google { /** AddonsConfig gcpFilestoreCsiDriverConfig. */ public gcpFilestoreCsiDriverConfig?: (google.container.v1.IGcpFilestoreCsiDriverConfig|null); + /** AddonsConfig gkeBackupAgentConfig. */ + public gkeBackupAgentConfig?: (google.container.v1.IGkeBackupAgentConfig|null); + /** * Creates a new AddonsConfig instance using the specified properties. * @param [properties] Properties to set @@ -3969,6 +3975,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GkeBackupAgentConfig. */ + interface IGkeBackupAgentConfig { + + /** GkeBackupAgentConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a GkeBackupAgentConfig. */ + class GkeBackupAgentConfig implements IGkeBackupAgentConfig { + + /** + * Constructs a new GkeBackupAgentConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGkeBackupAgentConfig); + + /** GkeBackupAgentConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new GkeBackupAgentConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns GkeBackupAgentConfig instance + */ + public static create(properties?: google.container.v1.IGkeBackupAgentConfig): google.container.v1.GkeBackupAgentConfig; + + /** + * Encodes the specified GkeBackupAgentConfig message. Does not implicitly {@link google.container.v1.GkeBackupAgentConfig.verify|verify} messages. + * @param message GkeBackupAgentConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IGkeBackupAgentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GkeBackupAgentConfig message, length delimited. Does not implicitly {@link google.container.v1.GkeBackupAgentConfig.verify|verify} messages. + * @param message GkeBackupAgentConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IGkeBackupAgentConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GkeBackupAgentConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GkeBackupAgentConfig + * @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.GkeBackupAgentConfig; + + /** + * Decodes a GkeBackupAgentConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GkeBackupAgentConfig + * @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.GkeBackupAgentConfig; + + /** + * Verifies a GkeBackupAgentConfig 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 GkeBackupAgentConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GkeBackupAgentConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GkeBackupAgentConfig; + + /** + * Creates a plain object from a GkeBackupAgentConfig message. Also converts values to other types if specified. + * @param message GkeBackupAgentConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.GkeBackupAgentConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GkeBackupAgentConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GkeBackupAgentConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a MasterAuthorizedNetworksConfig. */ interface IMasterAuthorizedNetworksConfig { @@ -4541,6 +4644,12 @@ export namespace google { /** IPAllocationPolicy useRoutes */ useRoutes?: (boolean|null); + + /** IPAllocationPolicy stackType */ + stackType?: (google.container.v1.StackType|keyof typeof google.container.v1.StackType|null); + + /** IPAllocationPolicy ipv6AccessType */ + ipv6AccessType?: (google.container.v1.IPv6AccessType|keyof typeof google.container.v1.IPv6AccessType|null); } /** Represents a IPAllocationPolicy. */ @@ -4591,6 +4700,12 @@ export namespace google { /** IPAllocationPolicy useRoutes. */ public useRoutes: boolean; + /** IPAllocationPolicy stackType. */ + public stackType: (google.container.v1.StackType|keyof typeof google.container.v1.StackType); + + /** IPAllocationPolicy ipv6AccessType. */ + public ipv6AccessType: (google.container.v1.IPv6AccessType|keyof typeof google.container.v1.IPv6AccessType); + /** * Creates a new IPAllocationPolicy instance using the specified properties. * @param [properties] Properties to set @@ -4774,6 +4889,9 @@ export namespace google { /** Cluster meshCertificates */ meshCertificates?: (google.container.v1.IMeshCertificates|null); + /** Cluster costManagementConfig */ + costManagementConfig?: (google.container.v1.ICostManagementConfig|null); + /** Cluster notificationConfig */ notificationConfig?: (google.container.v1.INotificationConfig|null); @@ -4967,6 +5085,9 @@ export namespace google { /** Cluster meshCertificates. */ public meshCertificates?: (google.container.v1.IMeshCertificates|null); + /** Cluster costManagementConfig. */ + public costManagementConfig?: (google.container.v1.ICostManagementConfig|null); + /** Cluster notificationConfig. */ public notificationConfig?: (google.container.v1.INotificationConfig|null); @@ -5470,6 +5591,9 @@ export namespace google { /** ClusterUpdate desiredShieldedNodes */ desiredShieldedNodes?: (google.container.v1.IShieldedNodes|null); + /** ClusterUpdate desiredCostManagementConfig */ + desiredCostManagementConfig?: (google.container.v1.ICostManagementConfig|null); + /** ClusterUpdate desiredDnsConfig */ desiredDnsConfig?: (google.container.v1.IDNSConfig|null); @@ -5585,6 +5709,9 @@ export namespace google { /** ClusterUpdate desiredShieldedNodes. */ public desiredShieldedNodes?: (google.container.v1.IShieldedNodes|null); + /** ClusterUpdate desiredCostManagementConfig. */ + public desiredCostManagementConfig?: (google.container.v1.ICostManagementConfig|null); + /** ClusterUpdate desiredDnsConfig. */ public desiredDnsConfig?: (google.container.v1.IDNSConfig|null); @@ -14078,6 +14205,103 @@ export namespace google { } } + /** Properties of a CostManagementConfig. */ + interface ICostManagementConfig { + + /** CostManagementConfig enabled */ + enabled?: (boolean|null); + } + + /** Represents a CostManagementConfig. */ + class CostManagementConfig implements ICostManagementConfig { + + /** + * Constructs a new CostManagementConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.ICostManagementConfig); + + /** CostManagementConfig enabled. */ + public enabled: boolean; + + /** + * Creates a new CostManagementConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns CostManagementConfig instance + */ + public static create(properties?: google.container.v1.ICostManagementConfig): google.container.v1.CostManagementConfig; + + /** + * Encodes the specified CostManagementConfig message. Does not implicitly {@link google.container.v1.CostManagementConfig.verify|verify} messages. + * @param message CostManagementConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.ICostManagementConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CostManagementConfig message, length delimited. Does not implicitly {@link google.container.v1.CostManagementConfig.verify|verify} messages. + * @param message CostManagementConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.ICostManagementConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CostManagementConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CostManagementConfig + * @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.CostManagementConfig; + + /** + * Decodes a CostManagementConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CostManagementConfig + * @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.CostManagementConfig; + + /** + * Verifies a CostManagementConfig 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 CostManagementConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CostManagementConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.CostManagementConfig; + + /** + * Creates a plain object from a CostManagementConfig message. Also converts values to other types if specified. + * @param message CostManagementConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.CostManagementConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CostManagementConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for CostManagementConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of an IntraNodeVisibilityConfig. */ interface IIntraNodeVisibilityConfig { @@ -17698,6 +17922,20 @@ export namespace google { */ public static getTypeUrl(typeUrlPrefix?: string): string; } + + /** StackType enum. */ + enum StackType { + STACK_TYPE_UNSPECIFIED = 0, + IPV4 = 1, + IPV4_IPV6 = 2 + } + + /** IPv6AccessType enum. */ + enum IPv6AccessType { + IPV6_ACCESS_TYPE_UNSPECIFIED = 0, + INTERNAL = 1, + EXTERNAL = 2 + } } } diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index dabb7b7993a..5b2f9099acb 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -5997,6 +5997,7 @@ * @property {google.container.v1.IConfigConnectorConfig|null} [configConnectorConfig] AddonsConfig configConnectorConfig * @property {google.container.v1.IGcePersistentDiskCsiDriverConfig|null} [gcePersistentDiskCsiDriverConfig] AddonsConfig gcePersistentDiskCsiDriverConfig * @property {google.container.v1.IGcpFilestoreCsiDriverConfig|null} [gcpFilestoreCsiDriverConfig] AddonsConfig gcpFilestoreCsiDriverConfig + * @property {google.container.v1.IGkeBackupAgentConfig|null} [gkeBackupAgentConfig] AddonsConfig gkeBackupAgentConfig */ /** @@ -6086,6 +6087,14 @@ */ AddonsConfig.prototype.gcpFilestoreCsiDriverConfig = null; + /** + * AddonsConfig gkeBackupAgentConfig. + * @member {google.container.v1.IGkeBackupAgentConfig|null|undefined} gkeBackupAgentConfig + * @memberof google.container.v1.AddonsConfig + * @instance + */ + AddonsConfig.prototype.gkeBackupAgentConfig = null; + /** * Creates a new AddonsConfig instance using the specified properties. * @function create @@ -6128,6 +6137,8 @@ $root.google.container.v1.GcePersistentDiskCsiDriverConfig.encode(message.gcePersistentDiskCsiDriverConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); if (message.gcpFilestoreCsiDriverConfig != null && Object.hasOwnProperty.call(message, "gcpFilestoreCsiDriverConfig")) $root.google.container.v1.GcpFilestoreCsiDriverConfig.encode(message.gcpFilestoreCsiDriverConfig, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.gkeBackupAgentConfig != null && Object.hasOwnProperty.call(message, "gkeBackupAgentConfig")) + $root.google.container.v1.GkeBackupAgentConfig.encode(message.gkeBackupAgentConfig, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); return writer; }; @@ -6198,6 +6209,10 @@ message.gcpFilestoreCsiDriverConfig = $root.google.container.v1.GcpFilestoreCsiDriverConfig.decode(reader, reader.uint32()); break; } + case 16: { + message.gkeBackupAgentConfig = $root.google.container.v1.GkeBackupAgentConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -6278,6 +6293,11 @@ if (error) return "gcpFilestoreCsiDriverConfig." + error; } + if (message.gkeBackupAgentConfig != null && message.hasOwnProperty("gkeBackupAgentConfig")) { + var error = $root.google.container.v1.GkeBackupAgentConfig.verify(message.gkeBackupAgentConfig); + if (error) + return "gkeBackupAgentConfig." + error; + } return null; }; @@ -6338,6 +6358,11 @@ throw TypeError(".google.container.v1.AddonsConfig.gcpFilestoreCsiDriverConfig: object expected"); message.gcpFilestoreCsiDriverConfig = $root.google.container.v1.GcpFilestoreCsiDriverConfig.fromObject(object.gcpFilestoreCsiDriverConfig); } + if (object.gkeBackupAgentConfig != null) { + if (typeof object.gkeBackupAgentConfig !== "object") + throw TypeError(".google.container.v1.AddonsConfig.gkeBackupAgentConfig: object expected"); + message.gkeBackupAgentConfig = $root.google.container.v1.GkeBackupAgentConfig.fromObject(object.gkeBackupAgentConfig); + } return message; }; @@ -6364,6 +6389,7 @@ object.configConnectorConfig = null; object.gcePersistentDiskCsiDriverConfig = null; object.gcpFilestoreCsiDriverConfig = null; + object.gkeBackupAgentConfig = null; } if (message.httpLoadBalancing != null && message.hasOwnProperty("httpLoadBalancing")) object.httpLoadBalancing = $root.google.container.v1.HttpLoadBalancing.toObject(message.httpLoadBalancing, options); @@ -6383,6 +6409,8 @@ object.gcePersistentDiskCsiDriverConfig = $root.google.container.v1.GcePersistentDiskCsiDriverConfig.toObject(message.gcePersistentDiskCsiDriverConfig, options); if (message.gcpFilestoreCsiDriverConfig != null && message.hasOwnProperty("gcpFilestoreCsiDriverConfig")) object.gcpFilestoreCsiDriverConfig = $root.google.container.v1.GcpFilestoreCsiDriverConfig.toObject(message.gcpFilestoreCsiDriverConfig, options); + if (message.gkeBackupAgentConfig != null && message.hasOwnProperty("gkeBackupAgentConfig")) + object.gkeBackupAgentConfig = $root.google.container.v1.GkeBackupAgentConfig.toObject(message.gkeBackupAgentConfig, options); return object; }; @@ -9077,6 +9105,209 @@ return GcpFilestoreCsiDriverConfig; })(); + v1.GkeBackupAgentConfig = (function() { + + /** + * Properties of a GkeBackupAgentConfig. + * @memberof google.container.v1 + * @interface IGkeBackupAgentConfig + * @property {boolean|null} [enabled] GkeBackupAgentConfig enabled + */ + + /** + * Constructs a new GkeBackupAgentConfig. + * @memberof google.container.v1 + * @classdesc Represents a GkeBackupAgentConfig. + * @implements IGkeBackupAgentConfig + * @constructor + * @param {google.container.v1.IGkeBackupAgentConfig=} [properties] Properties to set + */ + function GkeBackupAgentConfig(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]]; + } + + /** + * GkeBackupAgentConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.GkeBackupAgentConfig + * @instance + */ + GkeBackupAgentConfig.prototype.enabled = false; + + /** + * Creates a new GkeBackupAgentConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.GkeBackupAgentConfig + * @static + * @param {google.container.v1.IGkeBackupAgentConfig=} [properties] Properties to set + * @returns {google.container.v1.GkeBackupAgentConfig} GkeBackupAgentConfig instance + */ + GkeBackupAgentConfig.create = function create(properties) { + return new GkeBackupAgentConfig(properties); + }; + + /** + * Encodes the specified GkeBackupAgentConfig message. Does not implicitly {@link google.container.v1.GkeBackupAgentConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GkeBackupAgentConfig + * @static + * @param {google.container.v1.IGkeBackupAgentConfig} message GkeBackupAgentConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GkeBackupAgentConfig.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 GkeBackupAgentConfig message, length delimited. Does not implicitly {@link google.container.v1.GkeBackupAgentConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GkeBackupAgentConfig + * @static + * @param {google.container.v1.IGkeBackupAgentConfig} message GkeBackupAgentConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GkeBackupAgentConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GkeBackupAgentConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.GkeBackupAgentConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.GkeBackupAgentConfig} GkeBackupAgentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GkeBackupAgentConfig.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.GkeBackupAgentConfig(); + 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; + }; + + /** + * Decodes a GkeBackupAgentConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GkeBackupAgentConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.GkeBackupAgentConfig} GkeBackupAgentConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GkeBackupAgentConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GkeBackupAgentConfig message. + * @function verify + * @memberof google.container.v1.GkeBackupAgentConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GkeBackupAgentConfig.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; + }; + + /** + * Creates a GkeBackupAgentConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GkeBackupAgentConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GkeBackupAgentConfig} GkeBackupAgentConfig + */ + GkeBackupAgentConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GkeBackupAgentConfig) + return object; + var message = new $root.google.container.v1.GkeBackupAgentConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a GkeBackupAgentConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GkeBackupAgentConfig + * @static + * @param {google.container.v1.GkeBackupAgentConfig} message GkeBackupAgentConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GkeBackupAgentConfig.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 GkeBackupAgentConfig to JSON. + * @function toJSON + * @memberof google.container.v1.GkeBackupAgentConfig + * @instance + * @returns {Object.} JSON object + */ + GkeBackupAgentConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GkeBackupAgentConfig + * @function getTypeUrl + * @memberof google.container.v1.GkeBackupAgentConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GkeBackupAgentConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GkeBackupAgentConfig"; + }; + + return GkeBackupAgentConfig; + })(); + v1.MasterAuthorizedNetworksConfig = (function() { /** @@ -10289,6 +10520,8 @@ * @property {string|null} [servicesIpv4CidrBlock] IPAllocationPolicy servicesIpv4CidrBlock * @property {string|null} [tpuIpv4CidrBlock] IPAllocationPolicy tpuIpv4CidrBlock * @property {boolean|null} [useRoutes] IPAllocationPolicy useRoutes + * @property {google.container.v1.StackType|null} [stackType] IPAllocationPolicy stackType + * @property {google.container.v1.IPv6AccessType|null} [ipv6AccessType] IPAllocationPolicy ipv6AccessType */ /** @@ -10410,6 +10643,22 @@ */ IPAllocationPolicy.prototype.useRoutes = false; + /** + * IPAllocationPolicy stackType. + * @member {google.container.v1.StackType} stackType + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.stackType = 0; + + /** + * IPAllocationPolicy ipv6AccessType. + * @member {google.container.v1.IPv6AccessType} ipv6AccessType + * @memberof google.container.v1.IPAllocationPolicy + * @instance + */ + IPAllocationPolicy.prototype.ipv6AccessType = 0; + /** * Creates a new IPAllocationPolicy instance using the specified properties. * @function create @@ -10460,6 +10709,10 @@ 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); + if (message.stackType != null && Object.hasOwnProperty.call(message, "stackType")) + writer.uint32(/* id 16, wireType 0 =*/128).int32(message.stackType); + if (message.ipv6AccessType != null && Object.hasOwnProperty.call(message, "ipv6AccessType")) + writer.uint32(/* id 17, wireType 0 =*/136).int32(message.ipv6AccessType); return writer; }; @@ -10546,6 +10799,14 @@ message.useRoutes = reader.bool(); break; } + case 16: { + message.stackType = reader.int32(); + break; + } + case 17: { + message.ipv6AccessType = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -10620,6 +10881,24 @@ if (message.useRoutes != null && message.hasOwnProperty("useRoutes")) if (typeof message.useRoutes !== "boolean") return "useRoutes: boolean expected"; + if (message.stackType != null && message.hasOwnProperty("stackType")) + switch (message.stackType) { + default: + return "stackType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.ipv6AccessType != null && message.hasOwnProperty("ipv6AccessType")) + switch (message.ipv6AccessType) { + default: + return "ipv6AccessType: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -10661,6 +10940,34 @@ message.tpuIpv4CidrBlock = String(object.tpuIpv4CidrBlock); if (object.useRoutes != null) message.useRoutes = Boolean(object.useRoutes); + switch (object.stackType) { + case "STACK_TYPE_UNSPECIFIED": + case 0: + message.stackType = 0; + break; + case "IPV4": + case 1: + message.stackType = 1; + break; + case "IPV4_IPV6": + case 2: + message.stackType = 2; + break; + } + switch (object.ipv6AccessType) { + case "IPV6_ACCESS_TYPE_UNSPECIFIED": + case 0: + message.ipv6AccessType = 0; + break; + case "INTERNAL": + case 1: + message.ipv6AccessType = 1; + break; + case "EXTERNAL": + case 2: + message.ipv6AccessType = 2; + break; + } return message; }; @@ -10691,6 +10998,8 @@ object.servicesIpv4CidrBlock = ""; object.tpuIpv4CidrBlock = ""; object.useRoutes = false; + object.stackType = options.enums === String ? "STACK_TYPE_UNSPECIFIED" : 0; + object.ipv6AccessType = options.enums === String ? "IPV6_ACCESS_TYPE_UNSPECIFIED" : 0; } if (message.useIpAliases != null && message.hasOwnProperty("useIpAliases")) object.useIpAliases = message.useIpAliases; @@ -10718,6 +11027,10 @@ object.tpuIpv4CidrBlock = message.tpuIpv4CidrBlock; if (message.useRoutes != null && message.hasOwnProperty("useRoutes")) object.useRoutes = message.useRoutes; + if (message.stackType != null && message.hasOwnProperty("stackType")) + object.stackType = options.enums === String ? $root.google.container.v1.StackType[message.stackType] : message.stackType; + if (message.ipv6AccessType != null && message.hasOwnProperty("ipv6AccessType")) + object.ipv6AccessType = options.enums === String ? $root.google.container.v1.IPv6AccessType[message.ipv6AccessType] : message.ipv6AccessType; return object; }; @@ -10790,6 +11103,7 @@ * @property {google.container.v1.IReleaseChannel|null} [releaseChannel] Cluster releaseChannel * @property {google.container.v1.IWorkloadIdentityConfig|null} [workloadIdentityConfig] Cluster workloadIdentityConfig * @property {google.container.v1.IMeshCertificates|null} [meshCertificates] Cluster meshCertificates + * @property {google.container.v1.ICostManagementConfig|null} [costManagementConfig] Cluster costManagementConfig * @property {google.container.v1.INotificationConfig|null} [notificationConfig] Cluster notificationConfig * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] Cluster confidentialNodes * @property {google.container.v1.IIdentityServiceConfig|null} [identityServiceConfig] Cluster identityServiceConfig @@ -11111,6 +11425,14 @@ */ Cluster.prototype.meshCertificates = null; + /** + * Cluster costManagementConfig. + * @member {google.container.v1.ICostManagementConfig|null|undefined} costManagementConfig + * @memberof google.container.v1.Cluster + * @instance + */ + Cluster.prototype.costManagementConfig = null; + /** * Cluster notificationConfig. * @member {google.container.v1.INotificationConfig|null|undefined} notificationConfig @@ -11434,6 +11756,8 @@ $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.costManagementConfig != null && Object.hasOwnProperty.call(message, "costManagementConfig")) + $root.google.container.v1.CostManagementConfig.encode(message.costManagementConfig, writer.uint32(/* id 45, wireType 2 =*/362).fork()).ldelim(); if (message.notificationConfig != null && Object.hasOwnProperty.call(message, "notificationConfig")) $root.google.container.v1.NotificationConfig.encode(message.notificationConfig, writer.uint32(/* id 49, wireType 2 =*/394).fork()).ldelim(); if (message.confidentialNodes != null && Object.hasOwnProperty.call(message, "confidentialNodes")) @@ -11685,6 +12009,10 @@ message.meshCertificates = $root.google.container.v1.MeshCertificates.decode(reader, reader.uint32()); break; } + case 45: { + message.costManagementConfig = $root.google.container.v1.CostManagementConfig.decode(reader, reader.uint32()); + break; + } case 49: { message.notificationConfig = $root.google.container.v1.NotificationConfig.decode(reader, reader.uint32()); break; @@ -11992,6 +12320,11 @@ if (error) return "meshCertificates." + error; } + if (message.costManagementConfig != null && message.hasOwnProperty("costManagementConfig")) { + var error = $root.google.container.v1.CostManagementConfig.verify(message.costManagementConfig); + if (error) + return "costManagementConfig." + error; + } if (message.notificationConfig != null && message.hasOwnProperty("notificationConfig")) { var error = $root.google.container.v1.NotificationConfig.verify(message.notificationConfig); if (error) @@ -12276,6 +12609,11 @@ throw TypeError(".google.container.v1.Cluster.meshCertificates: object expected"); message.meshCertificates = $root.google.container.v1.MeshCertificates.fromObject(object.meshCertificates); } + if (object.costManagementConfig != null) { + if (typeof object.costManagementConfig !== "object") + throw TypeError(".google.container.v1.Cluster.costManagementConfig: object expected"); + message.costManagementConfig = $root.google.container.v1.CostManagementConfig.fromObject(object.costManagementConfig); + } if (object.notificationConfig != null) { if (typeof object.notificationConfig !== "object") throw TypeError(".google.container.v1.Cluster.notificationConfig: object expected"); @@ -12450,6 +12788,7 @@ object.shieldedNodes = null; object.releaseChannel = null; object.workloadIdentityConfig = null; + object.costManagementConfig = null; object.notificationConfig = null; object.confidentialNodes = null; object.identityServiceConfig = null; @@ -12552,6 +12891,8 @@ 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.costManagementConfig != null && message.hasOwnProperty("costManagementConfig")) + object.costManagementConfig = $root.google.container.v1.CostManagementConfig.toObject(message.costManagementConfig, options); if (message.notificationConfig != null && message.hasOwnProperty("notificationConfig")) object.notificationConfig = $root.google.container.v1.NotificationConfig.toObject(message.notificationConfig, options); if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) @@ -13341,6 +13682,7 @@ * @property {google.container.v1.IWorkloadIdentityConfig|null} [desiredWorkloadIdentityConfig] ClusterUpdate desiredWorkloadIdentityConfig * @property {google.container.v1.IMeshCertificates|null} [desiredMeshCertificates] ClusterUpdate desiredMeshCertificates * @property {google.container.v1.IShieldedNodes|null} [desiredShieldedNodes] ClusterUpdate desiredShieldedNodes + * @property {google.container.v1.ICostManagementConfig|null} [desiredCostManagementConfig] ClusterUpdate desiredCostManagementConfig * @property {google.container.v1.IDNSConfig|null} [desiredDnsConfig] ClusterUpdate desiredDnsConfig * @property {google.container.v1.INodePoolAutoscaling|null} [desiredNodePoolAutoscaling] ClusterUpdate desiredNodePoolAutoscaling * @property {Array.|null} [desiredLocations] ClusterUpdate desiredLocations @@ -13457,6 +13799,14 @@ */ ClusterUpdate.prototype.desiredShieldedNodes = null; + /** + * ClusterUpdate desiredCostManagementConfig. + * @member {google.container.v1.ICostManagementConfig|null|undefined} desiredCostManagementConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredCostManagementConfig = null; + /** * ClusterUpdate desiredDnsConfig. * @member {google.container.v1.IDNSConfig|null|undefined} desiredDnsConfig @@ -13732,6 +14082,8 @@ $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.desiredCostManagementConfig != null && Object.hasOwnProperty.call(message, "desiredCostManagementConfig")) + $root.google.container.v1.CostManagementConfig.encode(message.desiredCostManagementConfig, writer.uint32(/* id 49, wireType 2 =*/394).fork()).ldelim(); if (message.desiredDatapathProvider != null && Object.hasOwnProperty.call(message, "desiredDatapathProvider")) writer.uint32(/* id 50, wireType 0 =*/400).int32(message.desiredDatapathProvider); if (message.desiredPrivateIpv6GoogleAccess != null && Object.hasOwnProperty.call(message, "desiredPrivateIpv6GoogleAccess")) @@ -13830,6 +14182,10 @@ message.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.decode(reader, reader.uint32()); break; } + case 49: { + message.desiredCostManagementConfig = $root.google.container.v1.CostManagementConfig.decode(reader, reader.uint32()); + break; + } case 53: { message.desiredDnsConfig = $root.google.container.v1.DNSConfig.decode(reader, reader.uint32()); break; @@ -14008,6 +14364,11 @@ if (error) return "desiredShieldedNodes." + error; } + if (message.desiredCostManagementConfig != null && message.hasOwnProperty("desiredCostManagementConfig")) { + var error = $root.google.container.v1.CostManagementConfig.verify(message.desiredCostManagementConfig); + if (error) + return "desiredCostManagementConfig." + error; + } if (message.desiredDnsConfig != null && message.hasOwnProperty("desiredDnsConfig")) { var error = $root.google.container.v1.DNSConfig.verify(message.desiredDnsConfig); if (error) @@ -14193,6 +14554,11 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredShieldedNodes: object expected"); message.desiredShieldedNodes = $root.google.container.v1.ShieldedNodes.fromObject(object.desiredShieldedNodes); } + if (object.desiredCostManagementConfig != null) { + if (typeof object.desiredCostManagementConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredCostManagementConfig: object expected"); + message.desiredCostManagementConfig = $root.google.container.v1.CostManagementConfig.fromObject(object.desiredCostManagementConfig); + } if (object.desiredDnsConfig != null) { if (typeof object.desiredDnsConfig !== "object") throw TypeError(".google.container.v1.ClusterUpdate.desiredDnsConfig: object expected"); @@ -14380,6 +14746,7 @@ object.desiredDatabaseEncryption = null; object.desiredWorkloadIdentityConfig = null; object.desiredShieldedNodes = null; + object.desiredCostManagementConfig = null; object.desiredDatapathProvider = options.enums === String ? "DATAPATH_PROVIDER_UNSPECIFIED" : 0; object.desiredPrivateIpv6GoogleAccess = options.enums === String ? "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" : 0; object.desiredDnsConfig = null; @@ -14440,6 +14807,8 @@ 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.desiredCostManagementConfig != null && message.hasOwnProperty("desiredCostManagementConfig")) + object.desiredCostManagementConfig = $root.google.container.v1.CostManagementConfig.toObject(message.desiredCostManagementConfig, options); if (message.desiredDatapathProvider != null && message.hasOwnProperty("desiredDatapathProvider")) object.desiredDatapathProvider = options.enums === String ? $root.google.container.v1.DatapathProvider[message.desiredDatapathProvider] : message.desiredDatapathProvider; if (message.desiredPrivateIpv6GoogleAccess != null && message.hasOwnProperty("desiredPrivateIpv6GoogleAccess")) @@ -36122,6 +36491,209 @@ return ReleaseChannel; })(); + v1.CostManagementConfig = (function() { + + /** + * Properties of a CostManagementConfig. + * @memberof google.container.v1 + * @interface ICostManagementConfig + * @property {boolean|null} [enabled] CostManagementConfig enabled + */ + + /** + * Constructs a new CostManagementConfig. + * @memberof google.container.v1 + * @classdesc Represents a CostManagementConfig. + * @implements ICostManagementConfig + * @constructor + * @param {google.container.v1.ICostManagementConfig=} [properties] Properties to set + */ + function CostManagementConfig(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]]; + } + + /** + * CostManagementConfig enabled. + * @member {boolean} enabled + * @memberof google.container.v1.CostManagementConfig + * @instance + */ + CostManagementConfig.prototype.enabled = false; + + /** + * Creates a new CostManagementConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.CostManagementConfig + * @static + * @param {google.container.v1.ICostManagementConfig=} [properties] Properties to set + * @returns {google.container.v1.CostManagementConfig} CostManagementConfig instance + */ + CostManagementConfig.create = function create(properties) { + return new CostManagementConfig(properties); + }; + + /** + * Encodes the specified CostManagementConfig message. Does not implicitly {@link google.container.v1.CostManagementConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.CostManagementConfig + * @static + * @param {google.container.v1.ICostManagementConfig} message CostManagementConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CostManagementConfig.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 CostManagementConfig message, length delimited. Does not implicitly {@link google.container.v1.CostManagementConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.CostManagementConfig + * @static + * @param {google.container.v1.ICostManagementConfig} message CostManagementConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CostManagementConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CostManagementConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.CostManagementConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.CostManagementConfig} CostManagementConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CostManagementConfig.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.CostManagementConfig(); + 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; + }; + + /** + * Decodes a CostManagementConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.CostManagementConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.CostManagementConfig} CostManagementConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CostManagementConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CostManagementConfig message. + * @function verify + * @memberof google.container.v1.CostManagementConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CostManagementConfig.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; + }; + + /** + * Creates a CostManagementConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.CostManagementConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.CostManagementConfig} CostManagementConfig + */ + CostManagementConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.CostManagementConfig) + return object; + var message = new $root.google.container.v1.CostManagementConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + return message; + }; + + /** + * Creates a plain object from a CostManagementConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.CostManagementConfig + * @static + * @param {google.container.v1.CostManagementConfig} message CostManagementConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CostManagementConfig.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 CostManagementConfig to JSON. + * @function toJSON + * @memberof google.container.v1.CostManagementConfig + * @instance + * @returns {Object.} JSON object + */ + CostManagementConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for CostManagementConfig + * @function getTypeUrl + * @memberof google.container.v1.CostManagementConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + CostManagementConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.CostManagementConfig"; + }; + + return CostManagementConfig; + })(); + v1.IntraNodeVisibilityConfig = (function() { /** @@ -44483,6 +45055,38 @@ return ManagedPrometheusConfig; })(); + /** + * StackType enum. + * @name google.container.v1.StackType + * @enum {number} + * @property {number} STACK_TYPE_UNSPECIFIED=0 STACK_TYPE_UNSPECIFIED value + * @property {number} IPV4=1 IPV4 value + * @property {number} IPV4_IPV6=2 IPV4_IPV6 value + */ + v1.StackType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STACK_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "IPV4"] = 1; + values[valuesById[2] = "IPV4_IPV6"] = 2; + return values; + })(); + + /** + * IPv6AccessType enum. + * @name google.container.v1.IPv6AccessType + * @enum {number} + * @property {number} IPV6_ACCESS_TYPE_UNSPECIFIED=0 IPV6_ACCESS_TYPE_UNSPECIFIED value + * @property {number} INTERNAL=1 INTERNAL value + * @property {number} EXTERNAL=2 EXTERNAL value + */ + v1.IPv6AccessType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "IPV6_ACCESS_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INTERNAL"] = 1; + values[valuesById[2] = "EXTERNAL"] = 2; + return values; + })(); + return v1; })(); diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index f1afc9031bd..55cbbe2e6c2 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -1290,6 +1290,10 @@ "gcpFilestoreCsiDriverConfig": { "type": "GcpFilestoreCsiDriverConfig", "id": 14 + }, + "gkeBackupAgentConfig": { + "type": "GkeBackupAgentConfig", + "id": 16 } } }, @@ -1430,6 +1434,14 @@ } } }, + "GkeBackupAgentConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "MasterAuthorizedNetworksConfig": { "fields": { "enabled": { @@ -1571,6 +1583,14 @@ "useRoutes": { "type": "bool", "id": 15 + }, + "stackType": { + "type": "StackType", + "id": 16 + }, + "ipv6AccessType": { + "type": "IPv6AccessType", + "id": 17 } } }, @@ -1728,6 +1748,10 @@ "type": "MeshCertificates", "id": 67 }, + "costManagementConfig": { + "type": "CostManagementConfig", + "id": 45 + }, "notificationConfig": { "type": "NotificationConfig", "id": 49 @@ -1940,6 +1964,10 @@ "type": "ShieldedNodes", "id": 48 }, + "desiredCostManagementConfig": { + "type": "CostManagementConfig", + "id": 49 + }, "desiredDnsConfig": { "type": "DNSConfig", "id": 53 @@ -4206,6 +4234,14 @@ } } }, + "CostManagementConfig": { + "fields": { + "enabled": { + "type": "bool", + "id": 1 + } + } + }, "IntraNodeVisibilityConfig": { "fields": { "enabled": { @@ -4733,6 +4769,20 @@ "id": 1 } } + }, + "StackType": { + "values": { + "STACK_TYPE_UNSPECIFIED": 0, + "IPV4": 1, + "IPV4_IPV6": 2 + } + }, + "IPv6AccessType": { + "values": { + "IPV6_ACCESS_TYPE_UNSPECIFIED": 0, + "INTERNAL": 1, + "EXTERNAL": 2 + } } } } From b44b6d76f2492f51b55967c037543439b869644f Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 17 Oct 2022 19:14:16 +0000 Subject: [PATCH 359/371] chore(main): release 4.3.0 (#579) :robot: I have created a release *beep* *boop* --- ## [4.3.0](https://togithub.com/googleapis/nodejs-cloud-container/compare/v4.2.0...v4.3.0) (2022-10-14) ### Features * Launch GKE Cost Allocations configuration to the v1 GKE API ([#577](https://togithub.com/googleapis/nodejs-cloud-container/issues/577)) ([b45ac9f](https://togithub.com/googleapis/nodejs-cloud-container/commit/b45ac9fb6cff9a634ea62b2c9e6998c57bf837ef)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- packages/google-container/CHANGELOG.md | 7 +++++++ packages/google-container/package.json | 2 +- .../generated/v1/snippet_metadata.google.container.v1.json | 2 +- packages/google-container/samples/package.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index 9cdf0b1a5e0..d4d6fc31098 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [4.3.0](https://github.com/googleapis/nodejs-cloud-container/compare/v4.2.0...v4.3.0) (2022-10-14) + + +### Features + +* Launch GKE Cost Allocations configuration to the v1 GKE API ([#577](https://github.com/googleapis/nodejs-cloud-container/issues/577)) ([b45ac9f](https://github.com/googleapis/nodejs-cloud-container/commit/b45ac9fb6cff9a634ea62b2c9e6998c57bf837ef)) + ## [4.2.0](https://github.com/googleapis/nodejs-cloud-container/compare/v4.1.3...v4.2.0) (2022-09-22) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index eb7ebefa5e4..a2d2cde5002 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "4.2.0", + "version": "4.3.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 934afa2458f..8df7fb46f99 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "4.2.0", + "version": "4.3.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 1c8fb0b9fc8..0ed50e31bb6 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^4.2.0", + "@google-cloud/container": "^4.3.0", "uuid": "^9.0.0" }, "devDependencies": { From ffd6a86d98d05b0c156de4218daa16bdee5f5ba9 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Thu, 3 Nov 2022 23:48:48 -0700 Subject: [PATCH 360/371] fix(deps): use google-gax v3.5.2 (#582) --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index a2d2cde5002..08ab9af017a 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -43,7 +43,7 @@ "precompile": "gts clean" }, "dependencies": { - "google-gax": "^3.3.0" + "google-gax": "^3.5.2" }, "devDependencies": { "@types/mocha": "^9.0.0", From a9f3f5c97a266f0d024b24e5948aaea898099f8c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 10 Nov 2022 00:12:00 -0800 Subject: [PATCH 361/371] feat: add APIs for GKE Control Plane Logs (#588) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add APIs for GKE Control Plane Logs --- feat: GKE cluster's control plan/node-pool network isolation Users now can change the network isolation for your public cluster's control plane. By default, when a new public cluster is created, GKE assigns a public IP address (external endpoint) to the control plane and provisions public nodes. New APIs allows to change cluster network isolation of the control plane and/or node-pool from the internet --- feat: add nodeconfig resource_labels api --- feat: add API to enable GKE Gateway controller PiperOrigin-RevId: 486164478 Source-Link: https://github.com/googleapis/googleapis/commit/30e2c3b92e23444d518860e58bd53e8b00bf2a1e Source-Link: https://github.com/googleapis/googleapis-gen/commit/73ec3348990fb308d3b600a0940ae852d47247ee Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNlYzMzNDg5OTBmYjMwOGQzYjYwMGEwOTQwYWU4NTJkNDcyNDdlZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../google/container/v1/cluster_service.proto | 88 +- packages/google-container/protos/protos.d.ts | 283 +++++- packages/google-container/protos/protos.js | 847 ++++++++++++++++++ packages/google-container/protos/protos.json | 106 ++- .../v1/cluster_manager.update_node_pool.js | 5 + .../snippet_metadata.google.container.v1.json | 6 +- .../src/v1/cluster_manager_client.ts | 3 + 7 files changed, 1334 insertions(+), 4 deletions(-) diff --git a/packages/google-container/protos/google/container/v1/cluster_service.proto b/packages/google-container/protos/google/container/v1/cluster_service.proto index f9197ec4a12..bcd0f13b48e 100644 --- a/packages/google-container/protos/google/container/v1/cluster_service.proto +++ b/packages/google-container/protos/google/container/v1/cluster_service.proto @@ -493,6 +493,21 @@ service ClusterManager { // Parameters that can be configured on Linux nodes. message LinuxNodeConfig { + // Possible cgroup modes that can be used. + enum CgroupMode { + // CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used. + // The default for the GKE node OS image will be used. + CGROUP_MODE_UNSPECIFIED = 0; + + // CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on + // the node image. + CGROUP_MODE_V1 = 1; + + // CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on + // the node image. + CGROUP_MODE_V2 = 2; + } + // The Linux kernel parameters to be applied to the nodes and all pods running // on the nodes. // @@ -510,6 +525,9 @@ message LinuxNodeConfig { // net.ipv4.tcp_wmem // net.ipv4.tcp_tw_reuse map sysctls = 1; + + // cgroup_mode specifies the cgroup mode to be used on the node. + CgroupMode cgroup_mode = 2; } // Node kubelet configs. @@ -741,6 +759,10 @@ message NodeConfig { // All the nodes in the node pool will be Confidential VM once enabled. ConfidentialNodes confidential_nodes = 35; + // The resource labels for the node pool to use to annotate any related + // Google Compute Engine resources. + map resource_labels = 37; + // Logging configuration. NodePoolLoggingConfig logging_config = 38; } @@ -811,6 +833,11 @@ message NodeNetworkConfig { // This field cannot be changed after the node pool has been created. string pod_ipv4_cidr_block = 6; + // Whether nodes have internal IP addresses only. + // If enable_private_nodes is not specified, then the value is derived from + // [cluster.privateClusterConfig.enablePrivateNodes][google.container.v1beta1.PrivateClusterConfig.enablePrivateNodes] + optional bool enable_private_nodes = 9; + // Network bandwidth tier configuration. optional NetworkPerformanceConfig network_performance_config = 11; } @@ -934,6 +961,13 @@ message NodeLabels { map labels = 1; } +// Collection of [GCP +// labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels). +message ResourceLabels { + // Map of node label keys and node label values. + map labels = 1; +} + // Collection of Compute Engine network tags that can be applied to a node's // underlying VM instance. message NetworkTags { @@ -1107,6 +1141,10 @@ message PrivateClusterConfig { // Controls master global access settings. PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8; + + // Subnet to provision the master's private endpoint during cluster creation. + // Specified in projects/*/regions/*/subnetworks/* format. + string private_endpoint_subnetwork = 10; } // Configuration for returning group information from authenticators. @@ -1185,6 +1223,9 @@ message MasterAuthorizedNetworksConfig { // cidr_blocks define up to 50 external networks that could access // Kubernetes master through HTTPS. repeated CidrBlock cidr_blocks = 2; + + // Whether master is accessbile via Google Compute Engine Public IP addresses. + optional bool gcp_public_cidrs_access_enabled = 3; } // Configuration for the legacy Attribute Based Access Control authorization @@ -1881,6 +1922,9 @@ message ClusterUpdate { // ExternalIPs field. ServiceExternalIPsConfig desired_service_external_ips_config = 60; + // Enable/Disable private endpoint for the cluster's master. + optional bool desired_enable_private_endpoint = 71; + // The Kubernetes version to change the master to. // // Users may specify either explicit versions offered by @@ -1900,6 +1944,9 @@ message ClusterUpdate { // in autopilot clusters and node auto-provisioning enabled clusters. NetworkTags desired_node_pool_auto_config_network_tags = 110; + // The desired config of Gateway API on this cluster. + GatewayAPIConfig desired_gateway_api_config = 114; + // The desired node pool logging configuration defaults for the cluster. NodePoolLoggingConfig desired_node_pool_logging_config = 116; } @@ -2239,6 +2286,10 @@ message UpdateNodePoolRequest { // Logging configuration. NodePoolLoggingConfig logging_config = 32; + + // The resource labels for the node pool to use to annotate any related + // Google Compute Engine resources. + ResourceLabels resource_labels = 33; } // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. @@ -2762,7 +2813,7 @@ message BlueGreenSettings { message StandardRolloutPolicy { // Blue pool size to drain in a batch. oneof update_batch_size { - // Percentage of the bool pool nodes to drain in a batch. + // Percentage of the blue pool nodes to drain in a batch. // The range of this field should be (0.0, 1.0]. float batch_percentage = 1; @@ -3737,6 +3788,32 @@ message NetworkConfig { // ServiceExternalIPsConfig specifies if services with externalIPs field are // blocked or not. ServiceExternalIPsConfig service_external_ips_config = 15; + + // GatewayAPIConfig contains the desired config of Gateway API on this + // cluster. + GatewayAPIConfig gateway_api_config = 16; +} + +// GatewayAPIConfig contains the desired config of Gateway API on this cluster. +message GatewayAPIConfig { + // Channel describes if/how Gateway API should be installed and implemented in + // a cluster. + enum Channel { + // Default value. + CHANNEL_UNSPECIFIED = 0; + + // Gateway API support is disabled + CHANNEL_DISABLED = 1; + + // Gateway API support is enabled, experimental CRDs are installed + CHANNEL_EXPERIMENTAL = 3; + + // Gateway API support is enabled, standard CRDs are installed + CHANNEL_STANDARD = 4; + } + + // The Gateway API release channel to use for Gateway API. + Channel channel = 1; } // Config to block services with externalIPs field. @@ -4310,6 +4387,15 @@ message LoggingComponentConfig { // workloads WORKLOADS = 2; + + // kube-apiserver + APISERVER = 3; + + // kube-scheduler + SCHEDULER = 4; + + // kube-controller-manager + CONTROLLER_MANAGER = 5; } // Select components to collect logs. An empty set would disable all logging. diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 3d6167379fe..97aa120b791 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -745,6 +745,9 @@ export namespace google { /** LinuxNodeConfig sysctls */ sysctls?: ({ [k: string]: string }|null); + + /** LinuxNodeConfig cgroupMode */ + cgroupMode?: (google.container.v1.LinuxNodeConfig.CgroupMode|keyof typeof google.container.v1.LinuxNodeConfig.CgroupMode|null); } /** Represents a LinuxNodeConfig. */ @@ -759,6 +762,9 @@ export namespace google { /** LinuxNodeConfig sysctls. */ public sysctls: { [k: string]: string }; + /** LinuxNodeConfig cgroupMode. */ + public cgroupMode: (google.container.v1.LinuxNodeConfig.CgroupMode|keyof typeof google.container.v1.LinuxNodeConfig.CgroupMode); + /** * Creates a new LinuxNodeConfig instance using the specified properties. * @param [properties] Properties to set @@ -837,6 +843,16 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + namespace LinuxNodeConfig { + + /** CgroupMode enum. */ + enum CgroupMode { + CGROUP_MODE_UNSPECIFIED = 0, + CGROUP_MODE_V1 = 1, + CGROUP_MODE_V2 = 2 + } + } + /** Properties of a NodeKubeletConfig. */ interface INodeKubeletConfig { @@ -1036,6 +1052,9 @@ export namespace google { /** NodeConfig confidentialNodes */ confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** NodeConfig resourceLabels */ + resourceLabels?: ({ [k: string]: string }|null); + /** NodeConfig loggingConfig */ loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); } @@ -1130,6 +1149,9 @@ export namespace google { /** NodeConfig confidentialNodes. */ public confidentialNodes?: (google.container.v1.IConfidentialNodes|null); + /** NodeConfig resourceLabels. */ + public resourceLabels: { [k: string]: string }; + /** NodeConfig loggingConfig. */ public loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); @@ -1323,6 +1345,9 @@ export namespace google { /** NodeNetworkConfig podIpv4CidrBlock */ podIpv4CidrBlock?: (string|null); + /** NodeNetworkConfig enablePrivateNodes */ + enablePrivateNodes?: (boolean|null); + /** NodeNetworkConfig networkPerformanceConfig */ networkPerformanceConfig?: (google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig|null); } @@ -1345,9 +1370,15 @@ export namespace google { /** NodeNetworkConfig podIpv4CidrBlock. */ public podIpv4CidrBlock: string; + /** NodeNetworkConfig enablePrivateNodes. */ + public enablePrivateNodes?: (boolean|null); + /** NodeNetworkConfig networkPerformanceConfig. */ public networkPerformanceConfig?: (google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig|null); + /** NodeNetworkConfig _enablePrivateNodes. */ + public _enablePrivateNodes?: "enablePrivateNodes"; + /** NodeNetworkConfig _networkPerformanceConfig. */ public _networkPerformanceConfig?: "networkPerformanceConfig"; @@ -2281,6 +2312,103 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a ResourceLabels. */ + interface IResourceLabels { + + /** ResourceLabels labels */ + labels?: ({ [k: string]: string }|null); + } + + /** Represents a ResourceLabels. */ + class ResourceLabels implements IResourceLabels { + + /** + * Constructs a new ResourceLabels. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IResourceLabels); + + /** ResourceLabels labels. */ + public labels: { [k: string]: string }; + + /** + * Creates a new ResourceLabels instance using the specified properties. + * @param [properties] Properties to set + * @returns ResourceLabels instance + */ + public static create(properties?: google.container.v1.IResourceLabels): google.container.v1.ResourceLabels; + + /** + * Encodes the specified ResourceLabels message. Does not implicitly {@link google.container.v1.ResourceLabels.verify|verify} messages. + * @param message ResourceLabels message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IResourceLabels, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ResourceLabels message, length delimited. Does not implicitly {@link google.container.v1.ResourceLabels.verify|verify} messages. + * @param message ResourceLabels message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IResourceLabels, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ResourceLabels message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ResourceLabels + * @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.ResourceLabels; + + /** + * Decodes a ResourceLabels message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ResourceLabels + * @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.ResourceLabels; + + /** + * Verifies a ResourceLabels 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 ResourceLabels message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ResourceLabels + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.ResourceLabels; + + /** + * Creates a plain object from a ResourceLabels message. Also converts values to other types if specified. + * @param message ResourceLabels + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.ResourceLabels, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ResourceLabels to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for ResourceLabels + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + /** Properties of a NetworkTags. */ interface INetworkTags { @@ -3358,6 +3486,9 @@ export namespace google { /** PrivateClusterConfig masterGlobalAccessConfig */ masterGlobalAccessConfig?: (google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null); + + /** PrivateClusterConfig privateEndpointSubnetwork */ + privateEndpointSubnetwork?: (string|null); } /** Represents a PrivateClusterConfig. */ @@ -3390,6 +3521,9 @@ export namespace google { /** PrivateClusterConfig masterGlobalAccessConfig. */ public masterGlobalAccessConfig?: (google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null); + /** PrivateClusterConfig privateEndpointSubnetwork. */ + public privateEndpointSubnetwork: string; + /** * Creates a new PrivateClusterConfig instance using the specified properties. * @param [properties] Properties to set @@ -4080,6 +4214,9 @@ export namespace google { /** MasterAuthorizedNetworksConfig cidrBlocks */ cidrBlocks?: (google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]|null); + + /** MasterAuthorizedNetworksConfig gcpPublicCidrsAccessEnabled */ + gcpPublicCidrsAccessEnabled?: (boolean|null); } /** Represents a MasterAuthorizedNetworksConfig. */ @@ -4097,6 +4234,12 @@ export namespace google { /** MasterAuthorizedNetworksConfig cidrBlocks. */ public cidrBlocks: google.container.v1.MasterAuthorizedNetworksConfig.ICidrBlock[]; + /** MasterAuthorizedNetworksConfig gcpPublicCidrsAccessEnabled. */ + public gcpPublicCidrsAccessEnabled?: (boolean|null); + + /** MasterAuthorizedNetworksConfig _gcpPublicCidrsAccessEnabled. */ + public _gcpPublicCidrsAccessEnabled?: "gcpPublicCidrsAccessEnabled"; + /** * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. * @param [properties] Properties to set @@ -5660,6 +5803,9 @@ export namespace google { /** ClusterUpdate desiredServiceExternalIpsConfig */ desiredServiceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null); + /** ClusterUpdate desiredEnablePrivateEndpoint */ + desiredEnablePrivateEndpoint?: (boolean|null); + /** ClusterUpdate desiredMasterVersion */ desiredMasterVersion?: (string|null); @@ -5669,6 +5815,9 @@ export namespace google { /** ClusterUpdate desiredNodePoolAutoConfigNetworkTags */ desiredNodePoolAutoConfigNetworkTags?: (google.container.v1.INetworkTags|null); + /** ClusterUpdate desiredGatewayApiConfig */ + desiredGatewayApiConfig?: (google.container.v1.IGatewayAPIConfig|null); + /** ClusterUpdate desiredNodePoolLoggingConfig */ desiredNodePoolLoggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); } @@ -5778,6 +5927,9 @@ export namespace google { /** ClusterUpdate desiredServiceExternalIpsConfig. */ public desiredServiceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null); + /** ClusterUpdate desiredEnablePrivateEndpoint. */ + public desiredEnablePrivateEndpoint?: (boolean|null); + /** ClusterUpdate desiredMasterVersion. */ public desiredMasterVersion: string; @@ -5787,9 +5939,15 @@ export namespace google { /** ClusterUpdate desiredNodePoolAutoConfigNetworkTags. */ public desiredNodePoolAutoConfigNetworkTags?: (google.container.v1.INetworkTags|null); + /** ClusterUpdate desiredGatewayApiConfig. */ + public desiredGatewayApiConfig?: (google.container.v1.IGatewayAPIConfig|null); + /** ClusterUpdate desiredNodePoolLoggingConfig. */ public desiredNodePoolLoggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + /** ClusterUpdate _desiredEnablePrivateEndpoint. */ + public _desiredEnablePrivateEndpoint?: "desiredEnablePrivateEndpoint"; + /** * Creates a new ClusterUpdate instance using the specified properties. * @param [properties] Properties to set @@ -6731,6 +6889,9 @@ export namespace google { /** UpdateNodePoolRequest loggingConfig */ loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + + /** UpdateNodePoolRequest resourceLabels */ + resourceLabels?: (google.container.v1.IResourceLabels|null); } /** Represents an UpdateNodePoolRequest. */ @@ -6802,6 +6963,9 @@ export namespace google { /** UpdateNodePoolRequest loggingConfig. */ public loggingConfig?: (google.container.v1.INodePoolLoggingConfig|null); + /** UpdateNodePoolRequest resourceLabels. */ + public resourceLabels?: (google.container.v1.IResourceLabels|null); + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @param [properties] Properties to set @@ -13315,6 +13479,9 @@ export namespace google { /** NetworkConfig serviceExternalIpsConfig */ serviceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null); + + /** NetworkConfig gatewayApiConfig */ + gatewayApiConfig?: (google.container.v1.IGatewayAPIConfig|null); } /** Represents a NetworkConfig. */ @@ -13353,6 +13520,9 @@ export namespace google { /** NetworkConfig serviceExternalIpsConfig. */ public serviceExternalIpsConfig?: (google.container.v1.IServiceExternalIPsConfig|null); + /** NetworkConfig gatewayApiConfig. */ + public gatewayApiConfig?: (google.container.v1.IGatewayAPIConfig|null); + /** * Creates a new NetworkConfig instance using the specified properties. * @param [properties] Properties to set @@ -13431,6 +13601,114 @@ export namespace google { public static getTypeUrl(typeUrlPrefix?: string): string; } + /** Properties of a GatewayAPIConfig. */ + interface IGatewayAPIConfig { + + /** GatewayAPIConfig channel */ + channel?: (google.container.v1.GatewayAPIConfig.Channel|keyof typeof google.container.v1.GatewayAPIConfig.Channel|null); + } + + /** Represents a GatewayAPIConfig. */ + class GatewayAPIConfig implements IGatewayAPIConfig { + + /** + * Constructs a new GatewayAPIConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.container.v1.IGatewayAPIConfig); + + /** GatewayAPIConfig channel. */ + public channel: (google.container.v1.GatewayAPIConfig.Channel|keyof typeof google.container.v1.GatewayAPIConfig.Channel); + + /** + * Creates a new GatewayAPIConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns GatewayAPIConfig instance + */ + public static create(properties?: google.container.v1.IGatewayAPIConfig): google.container.v1.GatewayAPIConfig; + + /** + * Encodes the specified GatewayAPIConfig message. Does not implicitly {@link google.container.v1.GatewayAPIConfig.verify|verify} messages. + * @param message GatewayAPIConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.container.v1.IGatewayAPIConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified GatewayAPIConfig message, length delimited. Does not implicitly {@link google.container.v1.GatewayAPIConfig.verify|verify} messages. + * @param message GatewayAPIConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.container.v1.IGatewayAPIConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a GatewayAPIConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GatewayAPIConfig + * @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.GatewayAPIConfig; + + /** + * Decodes a GatewayAPIConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GatewayAPIConfig + * @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.GatewayAPIConfig; + + /** + * Verifies a GatewayAPIConfig 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 GatewayAPIConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GatewayAPIConfig + */ + public static fromObject(object: { [k: string]: any }): google.container.v1.GatewayAPIConfig; + + /** + * Creates a plain object from a GatewayAPIConfig message. Also converts values to other types if specified. + * @param message GatewayAPIConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.container.v1.GatewayAPIConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GatewayAPIConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for GatewayAPIConfig + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace GatewayAPIConfig { + + /** Channel enum. */ + enum Channel { + CHANNEL_UNSPECIFIED = 0, + CHANNEL_DISABLED = 1, + CHANNEL_EXPERIMENTAL = 3, + CHANNEL_STANDARD = 4 + } + } + /** Properties of a ServiceExternalIPsConfig. */ interface IServiceExternalIPsConfig { @@ -17392,7 +17670,10 @@ export namespace google { enum Component { COMPONENT_UNSPECIFIED = 0, SYSTEM_COMPONENTS = 1, - WORKLOADS = 2 + WORKLOADS = 2, + APISERVER = 3, + SCHEDULER = 4, + CONTROLLER_MANAGER = 5 } } diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index 5b2f9099acb..cc39a4effa4 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1188,6 +1188,7 @@ * @memberof google.container.v1 * @interface ILinuxNodeConfig * @property {Object.|null} [sysctls] LinuxNodeConfig sysctls + * @property {google.container.v1.LinuxNodeConfig.CgroupMode|null} [cgroupMode] LinuxNodeConfig cgroupMode */ /** @@ -1214,6 +1215,14 @@ */ LinuxNodeConfig.prototype.sysctls = $util.emptyObject; + /** + * LinuxNodeConfig cgroupMode. + * @member {google.container.v1.LinuxNodeConfig.CgroupMode} cgroupMode + * @memberof google.container.v1.LinuxNodeConfig + * @instance + */ + LinuxNodeConfig.prototype.cgroupMode = 0; + /** * Creates a new LinuxNodeConfig instance using the specified properties. * @function create @@ -1241,6 +1250,8 @@ if (message.sysctls != null && Object.hasOwnProperty.call(message, "sysctls")) for (var keys = Object.keys(message.sysctls), i = 0; i < keys.length; ++i) writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.sysctls[keys[i]]).ldelim(); + if (message.cgroupMode != null && Object.hasOwnProperty.call(message, "cgroupMode")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.cgroupMode); return writer; }; @@ -1298,6 +1309,10 @@ message.sysctls[key] = value; break; } + case 2: { + message.cgroupMode = reader.int32(); + break; + } default: reader.skipType(tag & 7); break; @@ -1341,6 +1356,15 @@ if (!$util.isString(message.sysctls[key[i]])) return "sysctls: string{k:string} expected"; } + if (message.cgroupMode != null && message.hasOwnProperty("cgroupMode")) + switch (message.cgroupMode) { + default: + return "cgroupMode: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; @@ -1363,6 +1387,20 @@ for (var keys = Object.keys(object.sysctls), i = 0; i < keys.length; ++i) message.sysctls[keys[i]] = String(object.sysctls[keys[i]]); } + switch (object.cgroupMode) { + case "CGROUP_MODE_UNSPECIFIED": + case 0: + message.cgroupMode = 0; + break; + case "CGROUP_MODE_V1": + case 1: + message.cgroupMode = 1; + break; + case "CGROUP_MODE_V2": + case 2: + message.cgroupMode = 2; + break; + } return message; }; @@ -1381,12 +1419,16 @@ var object = {}; if (options.objects || options.defaults) object.sysctls = {}; + if (options.defaults) + object.cgroupMode = options.enums === String ? "CGROUP_MODE_UNSPECIFIED" : 0; var keys2; if (message.sysctls && (keys2 = Object.keys(message.sysctls)).length) { object.sysctls = {}; for (var j = 0; j < keys2.length; ++j) object.sysctls[keys2[j]] = message.sysctls[keys2[j]]; } + if (message.cgroupMode != null && message.hasOwnProperty("cgroupMode")) + object.cgroupMode = options.enums === String ? $root.google.container.v1.LinuxNodeConfig.CgroupMode[message.cgroupMode] : message.cgroupMode; return object; }; @@ -1416,6 +1458,22 @@ return typeUrlPrefix + "/google.container.v1.LinuxNodeConfig"; }; + /** + * CgroupMode enum. + * @name google.container.v1.LinuxNodeConfig.CgroupMode + * @enum {number} + * @property {number} CGROUP_MODE_UNSPECIFIED=0 CGROUP_MODE_UNSPECIFIED value + * @property {number} CGROUP_MODE_V1=1 CGROUP_MODE_V1 value + * @property {number} CGROUP_MODE_V2=2 CGROUP_MODE_V2 value + */ + LinuxNodeConfig.CgroupMode = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CGROUP_MODE_UNSPECIFIED"] = 0; + values[valuesById[1] = "CGROUP_MODE_V1"] = 1; + values[valuesById[2] = "CGROUP_MODE_V2"] = 2; + return values; + })(); + return LinuxNodeConfig; })(); @@ -1744,6 +1802,7 @@ * @property {google.container.v1.IVirtualNIC|null} [gvnic] NodeConfig gvnic * @property {boolean|null} [spot] NodeConfig spot * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] NodeConfig confidentialNodes + * @property {Object.|null} [resourceLabels] NodeConfig resourceLabels * @property {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] NodeConfig loggingConfig */ @@ -1762,6 +1821,7 @@ this.tags = []; this.accelerators = []; this.taints = []; + this.resourceLabels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -1984,6 +2044,14 @@ */ NodeConfig.prototype.confidentialNodes = null; + /** + * NodeConfig resourceLabels. + * @member {Object.} resourceLabels + * @memberof google.container.v1.NodeConfig + * @instance + */ + NodeConfig.prototype.resourceLabels = $util.emptyObject; + /** * NodeConfig loggingConfig. * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} loggingConfig @@ -2076,6 +2144,9 @@ writer.uint32(/* id 32, wireType 0 =*/256).bool(message.spot); if (message.confidentialNodes != null && Object.hasOwnProperty.call(message, "confidentialNodes")) $root.google.container.v1.ConfidentialNodes.encode(message.confidentialNodes, writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); + 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 37, wireType 2 =*/298).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.resourceLabels[keys[i]]).ldelim(); if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) $root.google.container.v1.NodePoolLoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 38, wireType 2 =*/306).fork()).ldelim(); return writer; @@ -2266,6 +2337,29 @@ message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.decode(reader, reader.uint32()); break; } + case 37: { + 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 38: { message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); break; @@ -2436,6 +2530,14 @@ if (error) return "confidentialNodes." + error; } + 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.loggingConfig != null && message.hasOwnProperty("loggingConfig")) { var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.loggingConfig); if (error) @@ -2576,6 +2678,13 @@ throw TypeError(".google.container.v1.NodeConfig.confidentialNodes: object expected"); message.confidentialNodes = $root.google.container.v1.ConfidentialNodes.fromObject(object.confidentialNodes); } + if (object.resourceLabels) { + if (typeof object.resourceLabels !== "object") + throw TypeError(".google.container.v1.NodeConfig.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.loggingConfig != null) { if (typeof object.loggingConfig !== "object") throw TypeError(".google.container.v1.NodeConfig.loggingConfig: object expected"); @@ -2606,6 +2715,7 @@ if (options.objects || options.defaults) { object.metadata = {}; object.labels = {}; + object.resourceLabels = {}; } if (options.defaults) { object.machineType = ""; @@ -2704,6 +2814,11 @@ object.spot = message.spot; if (message.confidentialNodes != null && message.hasOwnProperty("confidentialNodes")) object.confidentialNodes = $root.google.container.v1.ConfidentialNodes.toObject(message.confidentialNodes, options); + 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.loggingConfig != null && message.hasOwnProperty("loggingConfig")) object.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.loggingConfig, options); return object; @@ -2978,6 +3093,7 @@ * @property {boolean|null} [createPodRange] NodeNetworkConfig createPodRange * @property {string|null} [podRange] NodeNetworkConfig podRange * @property {string|null} [podIpv4CidrBlock] NodeNetworkConfig podIpv4CidrBlock + * @property {boolean|null} [enablePrivateNodes] NodeNetworkConfig enablePrivateNodes * @property {google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig|null} [networkPerformanceConfig] NodeNetworkConfig networkPerformanceConfig */ @@ -3020,6 +3136,14 @@ */ NodeNetworkConfig.prototype.podIpv4CidrBlock = ""; + /** + * NodeNetworkConfig enablePrivateNodes. + * @member {boolean|null|undefined} enablePrivateNodes + * @memberof google.container.v1.NodeNetworkConfig + * @instance + */ + NodeNetworkConfig.prototype.enablePrivateNodes = null; + /** * NodeNetworkConfig networkPerformanceConfig. * @member {google.container.v1.NodeNetworkConfig.INetworkPerformanceConfig|null|undefined} networkPerformanceConfig @@ -3031,6 +3155,17 @@ // OneOf field names bound to virtual getters and setters var $oneOfFields; + /** + * NodeNetworkConfig _enablePrivateNodes. + * @member {"enablePrivateNodes"|undefined} _enablePrivateNodes + * @memberof google.container.v1.NodeNetworkConfig + * @instance + */ + Object.defineProperty(NodeNetworkConfig.prototype, "_enablePrivateNodes", { + get: $util.oneOfGetter($oneOfFields = ["enablePrivateNodes"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * NodeNetworkConfig _networkPerformanceConfig. * @member {"networkPerformanceConfig"|undefined} _networkPerformanceConfig @@ -3072,6 +3207,8 @@ writer.uint32(/* id 5, wireType 2 =*/42).string(message.podRange); if (message.podIpv4CidrBlock != null && Object.hasOwnProperty.call(message, "podIpv4CidrBlock")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.podIpv4CidrBlock); + if (message.enablePrivateNodes != null && Object.hasOwnProperty.call(message, "enablePrivateNodes")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.enablePrivateNodes); if (message.networkPerformanceConfig != null && Object.hasOwnProperty.call(message, "networkPerformanceConfig")) $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.encode(message.networkPerformanceConfig, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; @@ -3120,6 +3257,10 @@ message.podIpv4CidrBlock = reader.string(); break; } + case 9: { + message.enablePrivateNodes = reader.bool(); + break; + } case 11: { message.networkPerformanceConfig = $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.decode(reader, reader.uint32()); break; @@ -3169,6 +3310,11 @@ if (message.podIpv4CidrBlock != null && message.hasOwnProperty("podIpv4CidrBlock")) if (!$util.isString(message.podIpv4CidrBlock)) return "podIpv4CidrBlock: string expected"; + if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) { + properties._enablePrivateNodes = 1; + if (typeof message.enablePrivateNodes !== "boolean") + return "enablePrivateNodes: boolean expected"; + } if (message.networkPerformanceConfig != null && message.hasOwnProperty("networkPerformanceConfig")) { properties._networkPerformanceConfig = 1; { @@ -3198,6 +3344,8 @@ message.podRange = String(object.podRange); if (object.podIpv4CidrBlock != null) message.podIpv4CidrBlock = String(object.podIpv4CidrBlock); + if (object.enablePrivateNodes != null) + message.enablePrivateNodes = Boolean(object.enablePrivateNodes); if (object.networkPerformanceConfig != null) { if (typeof object.networkPerformanceConfig !== "object") throw TypeError(".google.container.v1.NodeNetworkConfig.networkPerformanceConfig: object expected"); @@ -3230,6 +3378,11 @@ object.podRange = message.podRange; if (message.podIpv4CidrBlock != null && message.hasOwnProperty("podIpv4CidrBlock")) object.podIpv4CidrBlock = message.podIpv4CidrBlock; + if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) { + object.enablePrivateNodes = message.enablePrivateNodes; + if (options.oneofs) + object._enablePrivateNodes = "enablePrivateNodes"; + } if (message.networkPerformanceConfig != null && message.hasOwnProperty("networkPerformanceConfig")) { object.networkPerformanceConfig = $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.toObject(message.networkPerformanceConfig, options); if (options.oneofs) @@ -5236,6 +5389,244 @@ return NodeLabels; })(); + v1.ResourceLabels = (function() { + + /** + * Properties of a ResourceLabels. + * @memberof google.container.v1 + * @interface IResourceLabels + * @property {Object.|null} [labels] ResourceLabels labels + */ + + /** + * Constructs a new ResourceLabels. + * @memberof google.container.v1 + * @classdesc Represents a ResourceLabels. + * @implements IResourceLabels + * @constructor + * @param {google.container.v1.IResourceLabels=} [properties] Properties to set + */ + function ResourceLabels(properties) { + this.labels = {}; + 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]]; + } + + /** + * ResourceLabels labels. + * @member {Object.} labels + * @memberof google.container.v1.ResourceLabels + * @instance + */ + ResourceLabels.prototype.labels = $util.emptyObject; + + /** + * Creates a new ResourceLabels instance using the specified properties. + * @function create + * @memberof google.container.v1.ResourceLabels + * @static + * @param {google.container.v1.IResourceLabels=} [properties] Properties to set + * @returns {google.container.v1.ResourceLabels} ResourceLabels instance + */ + ResourceLabels.create = function create(properties) { + return new ResourceLabels(properties); + }; + + /** + * Encodes the specified ResourceLabels message. Does not implicitly {@link google.container.v1.ResourceLabels.verify|verify} messages. + * @function encode + * @memberof google.container.v1.ResourceLabels + * @static + * @param {google.container.v1.IResourceLabels} message ResourceLabels message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceLabels.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + return writer; + }; + + /** + * Encodes the specified ResourceLabels message, length delimited. Does not implicitly {@link google.container.v1.ResourceLabels.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.ResourceLabels + * @static + * @param {google.container.v1.IResourceLabels} message ResourceLabels message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ResourceLabels.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ResourceLabels message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.ResourceLabels + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.ResourceLabels} ResourceLabels + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceLabels.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.ResourceLabels(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (message.labels === $util.emptyObject) + message.labels = {}; + 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.labels[key] = value; + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ResourceLabels message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.ResourceLabels + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.ResourceLabels} ResourceLabels + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ResourceLabels.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ResourceLabels message. + * @function verify + * @memberof google.container.v1.ResourceLabels + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ResourceLabels.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + return null; + }; + + /** + * Creates a ResourceLabels message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.ResourceLabels + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.ResourceLabels} ResourceLabels + */ + ResourceLabels.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.ResourceLabels) + return object; + var message = new $root.google.container.v1.ResourceLabels(); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.container.v1.ResourceLabels.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + return message; + }; + + /** + * Creates a plain object from a ResourceLabels message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.ResourceLabels + * @static + * @param {google.container.v1.ResourceLabels} message ResourceLabels + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ResourceLabels.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) + object.labels = {}; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + return object; + }; + + /** + * Converts this ResourceLabels to JSON. + * @function toJSON + * @memberof google.container.v1.ResourceLabels + * @instance + * @returns {Object.} JSON object + */ + ResourceLabels.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for ResourceLabels + * @function getTypeUrl + * @memberof google.container.v1.ResourceLabels + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + ResourceLabels.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.ResourceLabels"; + }; + + return ResourceLabels; + })(); + v1.NetworkTags = (function() { /** @@ -7674,6 +8065,7 @@ * @property {string|null} [publicEndpoint] PrivateClusterConfig publicEndpoint * @property {string|null} [peeringName] PrivateClusterConfig peeringName * @property {google.container.v1.IPrivateClusterMasterGlobalAccessConfig|null} [masterGlobalAccessConfig] PrivateClusterConfig masterGlobalAccessConfig + * @property {string|null} [privateEndpointSubnetwork] PrivateClusterConfig privateEndpointSubnetwork */ /** @@ -7747,6 +8139,14 @@ */ PrivateClusterConfig.prototype.masterGlobalAccessConfig = null; + /** + * PrivateClusterConfig privateEndpointSubnetwork. + * @member {string} privateEndpointSubnetwork + * @memberof google.container.v1.PrivateClusterConfig + * @instance + */ + PrivateClusterConfig.prototype.privateEndpointSubnetwork = ""; + /** * Creates a new PrivateClusterConfig instance using the specified properties. * @function create @@ -7785,6 +8185,8 @@ 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(); + if (message.privateEndpointSubnetwork != null && Object.hasOwnProperty.call(message, "privateEndpointSubnetwork")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.privateEndpointSubnetwork); return writer; }; @@ -7847,6 +8249,10 @@ message.masterGlobalAccessConfig = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.decode(reader, reader.uint32()); break; } + case 10: { + message.privateEndpointSubnetwork = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -7905,6 +8311,9 @@ if (error) return "masterGlobalAccessConfig." + error; } + if (message.privateEndpointSubnetwork != null && message.hasOwnProperty("privateEndpointSubnetwork")) + if (!$util.isString(message.privateEndpointSubnetwork)) + return "privateEndpointSubnetwork: string expected"; return null; }; @@ -7937,6 +8346,8 @@ throw TypeError(".google.container.v1.PrivateClusterConfig.masterGlobalAccessConfig: object expected"); message.masterGlobalAccessConfig = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.fromObject(object.masterGlobalAccessConfig); } + if (object.privateEndpointSubnetwork != null) + message.privateEndpointSubnetwork = String(object.privateEndpointSubnetwork); return message; }; @@ -7961,6 +8372,7 @@ object.publicEndpoint = ""; object.peeringName = ""; object.masterGlobalAccessConfig = null; + object.privateEndpointSubnetwork = ""; } if (message.enablePrivateNodes != null && message.hasOwnProperty("enablePrivateNodes")) object.enablePrivateNodes = message.enablePrivateNodes; @@ -7976,6 +8388,8 @@ object.peeringName = message.peeringName; if (message.masterGlobalAccessConfig != null && message.hasOwnProperty("masterGlobalAccessConfig")) object.masterGlobalAccessConfig = $root.google.container.v1.PrivateClusterMasterGlobalAccessConfig.toObject(message.masterGlobalAccessConfig, options); + if (message.privateEndpointSubnetwork != null && message.hasOwnProperty("privateEndpointSubnetwork")) + object.privateEndpointSubnetwork = message.privateEndpointSubnetwork; return object; }; @@ -9316,6 +9730,7 @@ * @interface IMasterAuthorizedNetworksConfig * @property {boolean|null} [enabled] MasterAuthorizedNetworksConfig enabled * @property {Array.|null} [cidrBlocks] MasterAuthorizedNetworksConfig cidrBlocks + * @property {boolean|null} [gcpPublicCidrsAccessEnabled] MasterAuthorizedNetworksConfig gcpPublicCidrsAccessEnabled */ /** @@ -9350,6 +9765,28 @@ */ MasterAuthorizedNetworksConfig.prototype.cidrBlocks = $util.emptyArray; + /** + * MasterAuthorizedNetworksConfig gcpPublicCidrsAccessEnabled. + * @member {boolean|null|undefined} gcpPublicCidrsAccessEnabled + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @instance + */ + MasterAuthorizedNetworksConfig.prototype.gcpPublicCidrsAccessEnabled = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * MasterAuthorizedNetworksConfig _gcpPublicCidrsAccessEnabled. + * @member {"gcpPublicCidrsAccessEnabled"|undefined} _gcpPublicCidrsAccessEnabled + * @memberof google.container.v1.MasterAuthorizedNetworksConfig + * @instance + */ + Object.defineProperty(MasterAuthorizedNetworksConfig.prototype, "_gcpPublicCidrsAccessEnabled", { + get: $util.oneOfGetter($oneOfFields = ["gcpPublicCidrsAccessEnabled"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new MasterAuthorizedNetworksConfig instance using the specified properties. * @function create @@ -9379,6 +9816,8 @@ 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(); + if (message.gcpPublicCidrsAccessEnabled != null && Object.hasOwnProperty.call(message, "gcpPublicCidrsAccessEnabled")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.gcpPublicCidrsAccessEnabled); return writer; }; @@ -9423,6 +9862,10 @@ message.cidrBlocks.push($root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.decode(reader, reader.uint32())); break; } + case 3: { + message.gcpPublicCidrsAccessEnabled = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -9458,6 +9901,7 @@ MasterAuthorizedNetworksConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.enabled != null && message.hasOwnProperty("enabled")) if (typeof message.enabled !== "boolean") return "enabled: boolean expected"; @@ -9470,6 +9914,11 @@ return "cidrBlocks." + error; } } + if (message.gcpPublicCidrsAccessEnabled != null && message.hasOwnProperty("gcpPublicCidrsAccessEnabled")) { + properties._gcpPublicCidrsAccessEnabled = 1; + if (typeof message.gcpPublicCidrsAccessEnabled !== "boolean") + return "gcpPublicCidrsAccessEnabled: boolean expected"; + } return null; }; @@ -9497,6 +9946,8 @@ message.cidrBlocks[i] = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.fromObject(object.cidrBlocks[i]); } } + if (object.gcpPublicCidrsAccessEnabled != null) + message.gcpPublicCidrsAccessEnabled = Boolean(object.gcpPublicCidrsAccessEnabled); return message; }; @@ -9524,6 +9975,11 @@ for (var j = 0; j < message.cidrBlocks.length; ++j) object.cidrBlocks[j] = $root.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.toObject(message.cidrBlocks[j], options); } + if (message.gcpPublicCidrsAccessEnabled != null && message.hasOwnProperty("gcpPublicCidrsAccessEnabled")) { + object.gcpPublicCidrsAccessEnabled = message.gcpPublicCidrsAccessEnabled; + if (options.oneofs) + object._gcpPublicCidrsAccessEnabled = "gcpPublicCidrsAccessEnabled"; + } return object; }; @@ -13705,9 +14161,11 @@ * @property {google.container.v1.IMonitoringConfig|null} [desiredMonitoringConfig] ClusterUpdate desiredMonitoringConfig * @property {google.container.v1.IIdentityServiceConfig|null} [desiredIdentityServiceConfig] ClusterUpdate desiredIdentityServiceConfig * @property {google.container.v1.IServiceExternalIPsConfig|null} [desiredServiceExternalIpsConfig] ClusterUpdate desiredServiceExternalIpsConfig + * @property {boolean|null} [desiredEnablePrivateEndpoint] ClusterUpdate desiredEnablePrivateEndpoint * @property {string|null} [desiredMasterVersion] ClusterUpdate desiredMasterVersion * @property {google.container.v1.IGcfsConfig|null} [desiredGcfsConfig] ClusterUpdate desiredGcfsConfig * @property {google.container.v1.INetworkTags|null} [desiredNodePoolAutoConfigNetworkTags] ClusterUpdate desiredNodePoolAutoConfigNetworkTags + * @property {google.container.v1.IGatewayAPIConfig|null} [desiredGatewayApiConfig] ClusterUpdate desiredGatewayApiConfig * @property {google.container.v1.INodePoolLoggingConfig|null} [desiredNodePoolLoggingConfig] ClusterUpdate desiredNodePoolLoggingConfig */ @@ -13983,6 +14441,14 @@ */ ClusterUpdate.prototype.desiredServiceExternalIpsConfig = null; + /** + * ClusterUpdate desiredEnablePrivateEndpoint. + * @member {boolean|null|undefined} desiredEnablePrivateEndpoint + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredEnablePrivateEndpoint = null; + /** * ClusterUpdate desiredMasterVersion. * @member {string} desiredMasterVersion @@ -14007,6 +14473,14 @@ */ ClusterUpdate.prototype.desiredNodePoolAutoConfigNetworkTags = null; + /** + * ClusterUpdate desiredGatewayApiConfig. + * @member {google.container.v1.IGatewayAPIConfig|null|undefined} desiredGatewayApiConfig + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + ClusterUpdate.prototype.desiredGatewayApiConfig = null; + /** * ClusterUpdate desiredNodePoolLoggingConfig. * @member {google.container.v1.INodePoolLoggingConfig|null|undefined} desiredNodePoolLoggingConfig @@ -14015,6 +14489,20 @@ */ ClusterUpdate.prototype.desiredNodePoolLoggingConfig = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ClusterUpdate _desiredEnablePrivateEndpoint. + * @member {"desiredEnablePrivateEndpoint"|undefined} _desiredEnablePrivateEndpoint + * @memberof google.container.v1.ClusterUpdate + * @instance + */ + Object.defineProperty(ClusterUpdate.prototype, "_desiredEnablePrivateEndpoint", { + get: $util.oneOfGetter($oneOfFields = ["desiredEnablePrivateEndpoint"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new ClusterUpdate instance using the specified properties. * @function create @@ -14104,12 +14592,16 @@ $root.google.container.v1.IdentityServiceConfig.encode(message.desiredIdentityServiceConfig, writer.uint32(/* id 66, wireType 2 =*/530).fork()).ldelim(); if (message.desiredMeshCertificates != null && Object.hasOwnProperty.call(message, "desiredMeshCertificates")) $root.google.container.v1.MeshCertificates.encode(message.desiredMeshCertificates, writer.uint32(/* id 67, wireType 2 =*/538).fork()).ldelim(); + if (message.desiredEnablePrivateEndpoint != null && Object.hasOwnProperty.call(message, "desiredEnablePrivateEndpoint")) + writer.uint32(/* id 71, wireType 0 =*/568).bool(message.desiredEnablePrivateEndpoint); if (message.desiredMasterVersion != null && Object.hasOwnProperty.call(message, "desiredMasterVersion")) writer.uint32(/* id 100, wireType 2 =*/802).string(message.desiredMasterVersion); if (message.desiredGcfsConfig != null && Object.hasOwnProperty.call(message, "desiredGcfsConfig")) $root.google.container.v1.GcfsConfig.encode(message.desiredGcfsConfig, writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim(); if (message.desiredNodePoolAutoConfigNetworkTags != null && Object.hasOwnProperty.call(message, "desiredNodePoolAutoConfigNetworkTags")) $root.google.container.v1.NetworkTags.encode(message.desiredNodePoolAutoConfigNetworkTags, writer.uint32(/* id 110, wireType 2 =*/882).fork()).ldelim(); + if (message.desiredGatewayApiConfig != null && Object.hasOwnProperty.call(message, "desiredGatewayApiConfig")) + $root.google.container.v1.GatewayAPIConfig.encode(message.desiredGatewayApiConfig, writer.uint32(/* id 114, wireType 2 =*/914).fork()).ldelim(); if (message.desiredNodePoolLoggingConfig != null && Object.hasOwnProperty.call(message, "desiredNodePoolLoggingConfig")) $root.google.container.v1.NodePoolLoggingConfig.encode(message.desiredNodePoolLoggingConfig, writer.uint32(/* id 116, wireType 2 =*/930).fork()).ldelim(); return writer; @@ -14276,6 +14768,10 @@ message.desiredServiceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.decode(reader, reader.uint32()); break; } + case 71: { + message.desiredEnablePrivateEndpoint = reader.bool(); + break; + } case 100: { message.desiredMasterVersion = reader.string(); break; @@ -14288,6 +14784,10 @@ message.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.decode(reader, reader.uint32()); break; } + case 114: { + message.desiredGatewayApiConfig = $root.google.container.v1.GatewayAPIConfig.decode(reader, reader.uint32()); + break; + } case 116: { message.desiredNodePoolLoggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); break; @@ -14327,6 +14827,7 @@ ClusterUpdate.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + var properties = {}; if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) if (!$util.isString(message.desiredNodeVersion)) return "desiredNodeVersion: string expected"; @@ -14488,6 +14989,11 @@ if (error) return "desiredServiceExternalIpsConfig." + error; } + if (message.desiredEnablePrivateEndpoint != null && message.hasOwnProperty("desiredEnablePrivateEndpoint")) { + properties._desiredEnablePrivateEndpoint = 1; + if (typeof message.desiredEnablePrivateEndpoint !== "boolean") + return "desiredEnablePrivateEndpoint: boolean expected"; + } if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) if (!$util.isString(message.desiredMasterVersion)) return "desiredMasterVersion: string expected"; @@ -14501,6 +15007,11 @@ if (error) return "desiredNodePoolAutoConfigNetworkTags." + error; } + if (message.desiredGatewayApiConfig != null && message.hasOwnProperty("desiredGatewayApiConfig")) { + var error = $root.google.container.v1.GatewayAPIConfig.verify(message.desiredGatewayApiConfig); + if (error) + return "desiredGatewayApiConfig." + error; + } if (message.desiredNodePoolLoggingConfig != null && message.hasOwnProperty("desiredNodePoolLoggingConfig")) { var error = $root.google.container.v1.NodePoolLoggingConfig.verify(message.desiredNodePoolLoggingConfig); if (error) @@ -14690,6 +15201,8 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredServiceExternalIpsConfig: object expected"); message.desiredServiceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.fromObject(object.desiredServiceExternalIpsConfig); } + if (object.desiredEnablePrivateEndpoint != null) + message.desiredEnablePrivateEndpoint = Boolean(object.desiredEnablePrivateEndpoint); if (object.desiredMasterVersion != null) message.desiredMasterVersion = String(object.desiredMasterVersion); if (object.desiredGcfsConfig != null) { @@ -14702,6 +15215,11 @@ throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolAutoConfigNetworkTags: object expected"); message.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.fromObject(object.desiredNodePoolAutoConfigNetworkTags); } + if (object.desiredGatewayApiConfig != null) { + if (typeof object.desiredGatewayApiConfig !== "object") + throw TypeError(".google.container.v1.ClusterUpdate.desiredGatewayApiConfig: object expected"); + message.desiredGatewayApiConfig = $root.google.container.v1.GatewayAPIConfig.fromObject(object.desiredGatewayApiConfig); + } if (object.desiredNodePoolLoggingConfig != null) { if (typeof object.desiredNodePoolLoggingConfig !== "object") throw TypeError(".google.container.v1.ClusterUpdate.desiredNodePoolLoggingConfig: object expected"); @@ -14760,6 +15278,7 @@ object.desiredMasterVersion = ""; object.desiredGcfsConfig = null; object.desiredNodePoolAutoConfigNetworkTags = null; + object.desiredGatewayApiConfig = null; object.desiredNodePoolLoggingConfig = null; } if (message.desiredNodeVersion != null && message.hasOwnProperty("desiredNodeVersion")) @@ -14829,12 +15348,19 @@ object.desiredIdentityServiceConfig = $root.google.container.v1.IdentityServiceConfig.toObject(message.desiredIdentityServiceConfig, options); if (message.desiredMeshCertificates != null && message.hasOwnProperty("desiredMeshCertificates")) object.desiredMeshCertificates = $root.google.container.v1.MeshCertificates.toObject(message.desiredMeshCertificates, options); + if (message.desiredEnablePrivateEndpoint != null && message.hasOwnProperty("desiredEnablePrivateEndpoint")) { + object.desiredEnablePrivateEndpoint = message.desiredEnablePrivateEndpoint; + if (options.oneofs) + object._desiredEnablePrivateEndpoint = "desiredEnablePrivateEndpoint"; + } if (message.desiredMasterVersion != null && message.hasOwnProperty("desiredMasterVersion")) object.desiredMasterVersion = message.desiredMasterVersion; if (message.desiredGcfsConfig != null && message.hasOwnProperty("desiredGcfsConfig")) object.desiredGcfsConfig = $root.google.container.v1.GcfsConfig.toObject(message.desiredGcfsConfig, options); if (message.desiredNodePoolAutoConfigNetworkTags != null && message.hasOwnProperty("desiredNodePoolAutoConfigNetworkTags")) object.desiredNodePoolAutoConfigNetworkTags = $root.google.container.v1.NetworkTags.toObject(message.desiredNodePoolAutoConfigNetworkTags, options); + if (message.desiredGatewayApiConfig != null && message.hasOwnProperty("desiredGatewayApiConfig")) + object.desiredGatewayApiConfig = $root.google.container.v1.GatewayAPIConfig.toObject(message.desiredGatewayApiConfig, options); if (message.desiredNodePoolLoggingConfig != null && message.hasOwnProperty("desiredNodePoolLoggingConfig")) object.desiredNodePoolLoggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.desiredNodePoolLoggingConfig, options); return object; @@ -17165,6 +17691,7 @@ * @property {google.container.v1.IConfidentialNodes|null} [confidentialNodes] UpdateNodePoolRequest confidentialNodes * @property {google.container.v1.IVirtualNIC|null} [gvnic] UpdateNodePoolRequest gvnic * @property {google.container.v1.INodePoolLoggingConfig|null} [loggingConfig] UpdateNodePoolRequest loggingConfig + * @property {google.container.v1.IResourceLabels|null} [resourceLabels] UpdateNodePoolRequest resourceLabels */ /** @@ -17343,6 +17870,14 @@ */ UpdateNodePoolRequest.prototype.loggingConfig = null; + /** + * UpdateNodePoolRequest resourceLabels. + * @member {google.container.v1.IResourceLabels|null|undefined} resourceLabels + * @memberof google.container.v1.UpdateNodePoolRequest + * @instance + */ + UpdateNodePoolRequest.prototype.resourceLabels = null; + /** * Creates a new UpdateNodePoolRequest instance using the specified properties. * @function create @@ -17408,6 +17943,8 @@ $root.google.container.v1.VirtualNIC.encode(message.gvnic, writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); if (message.loggingConfig != null && Object.hasOwnProperty.call(message, "loggingConfig")) $root.google.container.v1.NodePoolLoggingConfig.encode(message.loggingConfig, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + if (message.resourceLabels != null && Object.hasOwnProperty.call(message, "resourceLabels")) + $root.google.container.v1.ResourceLabels.encode(message.resourceLabels, writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); return writer; }; @@ -17524,6 +18061,10 @@ message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.decode(reader, reader.uint32()); break; } + case 33: { + message.resourceLabels = $root.google.container.v1.ResourceLabels.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -17647,6 +18188,11 @@ if (error) return "loggingConfig." + error; } + if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) { + var error = $root.google.container.v1.ResourceLabels.verify(message.resourceLabels); + if (error) + return "resourceLabels." + error; + } return null; }; @@ -17743,6 +18289,11 @@ throw TypeError(".google.container.v1.UpdateNodePoolRequest.loggingConfig: object expected"); message.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.fromObject(object.loggingConfig); } + if (object.resourceLabels != null) { + if (typeof object.resourceLabels !== "object") + throw TypeError(".google.container.v1.UpdateNodePoolRequest.resourceLabels: object expected"); + message.resourceLabels = $root.google.container.v1.ResourceLabels.fromObject(object.resourceLabels); + } return message; }; @@ -17781,6 +18332,7 @@ object.confidentialNodes = null; object.gvnic = null; object.loggingConfig = null; + object.resourceLabels = null; } if (message.projectId != null && message.hasOwnProperty("projectId")) object.projectId = message.projectId; @@ -17825,6 +18377,8 @@ object.gvnic = $root.google.container.v1.VirtualNIC.toObject(message.gvnic, options); if (message.loggingConfig != null && message.hasOwnProperty("loggingConfig")) object.loggingConfig = $root.google.container.v1.NodePoolLoggingConfig.toObject(message.loggingConfig, options); + if (message.resourceLabels != null && message.hasOwnProperty("resourceLabels")) + object.resourceLabels = $root.google.container.v1.ResourceLabels.toObject(message.resourceLabels, options); return object; }; @@ -34173,6 +34727,7 @@ * @property {google.container.v1.PrivateIPv6GoogleAccess|null} [privateIpv6GoogleAccess] NetworkConfig privateIpv6GoogleAccess * @property {google.container.v1.IDNSConfig|null} [dnsConfig] NetworkConfig dnsConfig * @property {google.container.v1.IServiceExternalIPsConfig|null} [serviceExternalIpsConfig] NetworkConfig serviceExternalIpsConfig + * @property {google.container.v1.IGatewayAPIConfig|null} [gatewayApiConfig] NetworkConfig gatewayApiConfig */ /** @@ -34262,6 +34817,14 @@ */ NetworkConfig.prototype.serviceExternalIpsConfig = null; + /** + * NetworkConfig gatewayApiConfig. + * @member {google.container.v1.IGatewayAPIConfig|null|undefined} gatewayApiConfig + * @memberof google.container.v1.NetworkConfig + * @instance + */ + NetworkConfig.prototype.gatewayApiConfig = null; + /** * Creates a new NetworkConfig instance using the specified properties. * @function create @@ -34304,6 +34867,8 @@ $root.google.container.v1.DNSConfig.encode(message.dnsConfig, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.serviceExternalIpsConfig != null && Object.hasOwnProperty.call(message, "serviceExternalIpsConfig")) $root.google.container.v1.ServiceExternalIPsConfig.encode(message.serviceExternalIpsConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.gatewayApiConfig != null && Object.hasOwnProperty.call(message, "gatewayApiConfig")) + $root.google.container.v1.GatewayAPIConfig.encode(message.gatewayApiConfig, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); return writer; }; @@ -34374,6 +34939,10 @@ message.serviceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.decode(reader, reader.uint32()); break; } + case 16: { + message.gatewayApiConfig = $root.google.container.v1.GatewayAPIConfig.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -34455,6 +35024,11 @@ if (error) return "serviceExternalIpsConfig." + error; } + if (message.gatewayApiConfig != null && message.hasOwnProperty("gatewayApiConfig")) { + var error = $root.google.container.v1.GatewayAPIConfig.verify(message.gatewayApiConfig); + if (error) + return "gatewayApiConfig." + error; + } return null; }; @@ -34525,6 +35099,11 @@ throw TypeError(".google.container.v1.NetworkConfig.serviceExternalIpsConfig: object expected"); message.serviceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.fromObject(object.serviceExternalIpsConfig); } + if (object.gatewayApiConfig != null) { + if (typeof object.gatewayApiConfig !== "object") + throw TypeError(".google.container.v1.NetworkConfig.gatewayApiConfig: object expected"); + message.gatewayApiConfig = $root.google.container.v1.GatewayAPIConfig.fromObject(object.gatewayApiConfig); + } return message; }; @@ -34551,6 +35130,7 @@ object.privateIpv6GoogleAccess = options.enums === String ? "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED" : 0; object.dnsConfig = null; object.serviceExternalIpsConfig = null; + object.gatewayApiConfig = null; } if (message.network != null && message.hasOwnProperty("network")) object.network = message.network; @@ -34570,6 +35150,8 @@ object.dnsConfig = $root.google.container.v1.DNSConfig.toObject(message.dnsConfig, options); if (message.serviceExternalIpsConfig != null && message.hasOwnProperty("serviceExternalIpsConfig")) object.serviceExternalIpsConfig = $root.google.container.v1.ServiceExternalIPsConfig.toObject(message.serviceExternalIpsConfig, options); + if (message.gatewayApiConfig != null && message.hasOwnProperty("gatewayApiConfig")) + object.gatewayApiConfig = $root.google.container.v1.GatewayAPIConfig.toObject(message.gatewayApiConfig, options); return object; }; @@ -34602,6 +35184,250 @@ return NetworkConfig; })(); + v1.GatewayAPIConfig = (function() { + + /** + * Properties of a GatewayAPIConfig. + * @memberof google.container.v1 + * @interface IGatewayAPIConfig + * @property {google.container.v1.GatewayAPIConfig.Channel|null} [channel] GatewayAPIConfig channel + */ + + /** + * Constructs a new GatewayAPIConfig. + * @memberof google.container.v1 + * @classdesc Represents a GatewayAPIConfig. + * @implements IGatewayAPIConfig + * @constructor + * @param {google.container.v1.IGatewayAPIConfig=} [properties] Properties to set + */ + function GatewayAPIConfig(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]]; + } + + /** + * GatewayAPIConfig channel. + * @member {google.container.v1.GatewayAPIConfig.Channel} channel + * @memberof google.container.v1.GatewayAPIConfig + * @instance + */ + GatewayAPIConfig.prototype.channel = 0; + + /** + * Creates a new GatewayAPIConfig instance using the specified properties. + * @function create + * @memberof google.container.v1.GatewayAPIConfig + * @static + * @param {google.container.v1.IGatewayAPIConfig=} [properties] Properties to set + * @returns {google.container.v1.GatewayAPIConfig} GatewayAPIConfig instance + */ + GatewayAPIConfig.create = function create(properties) { + return new GatewayAPIConfig(properties); + }; + + /** + * Encodes the specified GatewayAPIConfig message. Does not implicitly {@link google.container.v1.GatewayAPIConfig.verify|verify} messages. + * @function encode + * @memberof google.container.v1.GatewayAPIConfig + * @static + * @param {google.container.v1.IGatewayAPIConfig} message GatewayAPIConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GatewayAPIConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.channel); + return writer; + }; + + /** + * Encodes the specified GatewayAPIConfig message, length delimited. Does not implicitly {@link google.container.v1.GatewayAPIConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.container.v1.GatewayAPIConfig + * @static + * @param {google.container.v1.IGatewayAPIConfig} message GatewayAPIConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GatewayAPIConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GatewayAPIConfig message from the specified reader or buffer. + * @function decode + * @memberof google.container.v1.GatewayAPIConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.container.v1.GatewayAPIConfig} GatewayAPIConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GatewayAPIConfig.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.GatewayAPIConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.channel = reader.int32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GatewayAPIConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.container.v1.GatewayAPIConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.container.v1.GatewayAPIConfig} GatewayAPIConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GatewayAPIConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GatewayAPIConfig message. + * @function verify + * @memberof google.container.v1.GatewayAPIConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GatewayAPIConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.channel != null && message.hasOwnProperty("channel")) + switch (message.channel) { + default: + return "channel: enum value expected"; + case 0: + case 1: + case 3: + case 4: + break; + } + return null; + }; + + /** + * Creates a GatewayAPIConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.container.v1.GatewayAPIConfig + * @static + * @param {Object.} object Plain object + * @returns {google.container.v1.GatewayAPIConfig} GatewayAPIConfig + */ + GatewayAPIConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.container.v1.GatewayAPIConfig) + return object; + var message = new $root.google.container.v1.GatewayAPIConfig(); + switch (object.channel) { + case "CHANNEL_UNSPECIFIED": + case 0: + message.channel = 0; + break; + case "CHANNEL_DISABLED": + case 1: + message.channel = 1; + break; + case "CHANNEL_EXPERIMENTAL": + case 3: + message.channel = 3; + break; + case "CHANNEL_STANDARD": + case 4: + message.channel = 4; + break; + } + return message; + }; + + /** + * Creates a plain object from a GatewayAPIConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.container.v1.GatewayAPIConfig + * @static + * @param {google.container.v1.GatewayAPIConfig} message GatewayAPIConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GatewayAPIConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.channel = options.enums === String ? "CHANNEL_UNSPECIFIED" : 0; + if (message.channel != null && message.hasOwnProperty("channel")) + object.channel = options.enums === String ? $root.google.container.v1.GatewayAPIConfig.Channel[message.channel] : message.channel; + return object; + }; + + /** + * Converts this GatewayAPIConfig to JSON. + * @function toJSON + * @memberof google.container.v1.GatewayAPIConfig + * @instance + * @returns {Object.} JSON object + */ + GatewayAPIConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for GatewayAPIConfig + * @function getTypeUrl + * @memberof google.container.v1.GatewayAPIConfig + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + GatewayAPIConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/google.container.v1.GatewayAPIConfig"; + }; + + /** + * Channel enum. + * @name google.container.v1.GatewayAPIConfig.Channel + * @enum {number} + * @property {number} CHANNEL_UNSPECIFIED=0 CHANNEL_UNSPECIFIED value + * @property {number} CHANNEL_DISABLED=1 CHANNEL_DISABLED value + * @property {number} CHANNEL_EXPERIMENTAL=3 CHANNEL_EXPERIMENTAL value + * @property {number} CHANNEL_STANDARD=4 CHANNEL_STANDARD value + */ + GatewayAPIConfig.Channel = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "CHANNEL_UNSPECIFIED"] = 0; + values[valuesById[1] = "CHANNEL_DISABLED"] = 1; + values[valuesById[3] = "CHANNEL_EXPERIMENTAL"] = 3; + values[valuesById[4] = "CHANNEL_STANDARD"] = 4; + return values; + })(); + + return GatewayAPIConfig; + })(); + v1.ServiceExternalIPsConfig = (function() { /** @@ -43751,6 +44577,9 @@ case 0: case 1: case 2: + case 3: + case 4: + case 5: break; } } @@ -43788,6 +44617,18 @@ case 2: message.enableComponents[i] = 2; break; + case "APISERVER": + case 3: + message.enableComponents[i] = 3; + break; + case "SCHEDULER": + case 4: + message.enableComponents[i] = 4; + break; + case "CONTROLLER_MANAGER": + case 5: + message.enableComponents[i] = 5; + break; } } return message; @@ -43849,12 +44690,18 @@ * @property {number} COMPONENT_UNSPECIFIED=0 COMPONENT_UNSPECIFIED value * @property {number} SYSTEM_COMPONENTS=1 SYSTEM_COMPONENTS value * @property {number} WORKLOADS=2 WORKLOADS value + * @property {number} APISERVER=3 APISERVER value + * @property {number} SCHEDULER=4 SCHEDULER value + * @property {number} CONTROLLER_MANAGER=5 CONTROLLER_MANAGER value */ LoggingComponentConfig.Component = (function() { var valuesById = {}, values = Object.create(valuesById); values[valuesById[0] = "COMPONENT_UNSPECIFIED"] = 0; values[valuesById[1] = "SYSTEM_COMPONENTS"] = 1; values[valuesById[2] = "WORKLOADS"] = 2; + values[valuesById[3] = "APISERVER"] = 3; + values[valuesById[4] = "SCHEDULER"] = 4; + values[valuesById[5] = "CONTROLLER_MANAGER"] = 5; return values; })(); diff --git a/packages/google-container/protos/protos.json b/packages/google-container/protos/protos.json index 55cbbe2e6c2..bda86bdfe12 100644 --- a/packages/google-container/protos/protos.json +++ b/packages/google-container/protos/protos.json @@ -868,6 +868,19 @@ "keyType": "string", "type": "string", "id": 1 + }, + "cgroupMode": { + "type": "CgroupMode", + "id": 2 + } + }, + "nested": { + "CgroupMode": { + "values": { + "CGROUP_MODE_UNSPECIFIED": 0, + "CGROUP_MODE_V1": 1, + "CGROUP_MODE_V2": 2 + } } } }, @@ -1007,6 +1020,11 @@ "type": "ConfidentialNodes", "id": 35 }, + "resourceLabels": { + "keyType": "string", + "type": "string", + "id": 37 + }, "loggingConfig": { "type": "NodePoolLoggingConfig", "id": 38 @@ -1033,6 +1051,11 @@ }, "NodeNetworkConfig": { "oneofs": { + "_enablePrivateNodes": { + "oneof": [ + "enablePrivateNodes" + ] + }, "_networkPerformanceConfig": { "oneof": [ "networkPerformanceConfig" @@ -1055,6 +1078,13 @@ "type": "string", "id": 6 }, + "enablePrivateNodes": { + "type": "bool", + "id": 9, + "options": { + "proto3_optional": true + } + }, "networkPerformanceConfig": { "type": "NetworkPerformanceConfig", "id": 11, @@ -1199,6 +1229,15 @@ } } }, + "ResourceLabels": { + "fields": { + "labels": { + "keyType": "string", + "type": "string", + "id": 1 + } + } + }, "NetworkTags": { "fields": { "tags": { @@ -1374,6 +1413,10 @@ "masterGlobalAccessConfig": { "type": "PrivateClusterMasterGlobalAccessConfig", "id": 8 + }, + "privateEndpointSubnetwork": { + "type": "string", + "id": 10 } } }, @@ -1443,6 +1486,13 @@ } }, "MasterAuthorizedNetworksConfig": { + "oneofs": { + "_gcpPublicCidrsAccessEnabled": { + "oneof": [ + "gcpPublicCidrsAccessEnabled" + ] + } + }, "fields": { "enabled": { "type": "bool", @@ -1452,6 +1502,13 @@ "rule": "repeated", "type": "CidrBlock", "id": 2 + }, + "gcpPublicCidrsAccessEnabled": { + "type": "bool", + "id": 3, + "options": { + "proto3_optional": true + } } }, "nested": { @@ -1927,6 +1984,13 @@ } }, "ClusterUpdate": { + "oneofs": { + "_desiredEnablePrivateEndpoint": { + "oneof": [ + "desiredEnablePrivateEndpoint" + ] + } + }, "fields": { "desiredNodeVersion": { "type": "string", @@ -2057,6 +2121,13 @@ "type": "ServiceExternalIPsConfig", "id": 60 }, + "desiredEnablePrivateEndpoint": { + "type": "bool", + "id": 71, + "options": { + "proto3_optional": true + } + }, "desiredMasterVersion": { "type": "string", "id": 100 @@ -2069,6 +2140,10 @@ "type": "NetworkTags", "id": 110 }, + "desiredGatewayApiConfig": { + "type": "GatewayAPIConfig", + "id": 114 + }, "desiredNodePoolLoggingConfig": { "type": "NodePoolLoggingConfig", "id": 116 @@ -2439,6 +2514,10 @@ "loggingConfig": { "type": "NodePoolLoggingConfig", "id": 32 + }, + "resourceLabels": { + "type": "ResourceLabels", + "id": 33 } } }, @@ -4103,6 +4182,28 @@ "serviceExternalIpsConfig": { "type": "ServiceExternalIPsConfig", "id": 15 + }, + "gatewayApiConfig": { + "type": "GatewayAPIConfig", + "id": 16 + } + } + }, + "GatewayAPIConfig": { + "fields": { + "channel": { + "type": "Channel", + "id": 1 + } + }, + "nested": { + "Channel": { + "values": { + "CHANNEL_UNSPECIFIED": 0, + "CHANNEL_DISABLED": 1, + "CHANNEL_EXPERIMENTAL": 3, + "CHANNEL_STANDARD": 4 + } } } }, @@ -4686,7 +4787,10 @@ "values": { "COMPONENT_UNSPECIFIED": 0, "SYSTEM_COMPONENTS": 1, - "WORKLOADS": 2 + "WORKLOADS": 2, + "APISERVER": 3, + "SCHEDULER": 4, + "CONTROLLER_MANAGER": 5 } } } diff --git a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js index f37e7eec21b..ef5b9e8dfff 100644 --- a/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js +++ b/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js @@ -113,6 +113,11 @@ function main(nodeVersion, imageType) { * Logging configuration. */ // const loggingConfig = {} + /** + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. + */ + // const resourceLabels = {} // Imports the Container library const {ClusterManagerClient} = require('@google-cloud/container').v1; diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 8df7fb46f99..5eebc98b7c1 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -230,7 +230,7 @@ "segments": [ { "start": 25, - "end": 135, + "end": 140, "type": "FULL" } ], @@ -318,6 +318,10 @@ { "name": "logging_config", "type": ".google.container.v1.NodePoolLoggingConfig" + }, + { + "name": "resource_labels", + "type": ".google.container.v1.ResourceLabels" } ], "resultType": ".google.container.v1.Operation", diff --git a/packages/google-container/src/v1/cluster_manager_client.ts b/packages/google-container/src/v1/cluster_manager_client.ts index ae1d4dcc7d2..0e971e3584e 100644 --- a/packages/google-container/src/v1/cluster_manager_client.ts +++ b/packages/google-container/src/v1/cluster_manager_client.ts @@ -830,6 +830,9 @@ export class ClusterManagerClient { * Enable or disable gvnic on the node pool. * @param {google.container.v1.NodePoolLoggingConfig} request.loggingConfig * Logging configuration. + * @param {google.container.v1.ResourceLabels} request.resourceLabels + * The resource labels for the node pool to use to annotate any related + * Google Compute Engine resources. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. From 737ccd78d13e825b6b7eb7517b7bf83d3d1b1d3e Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 10 Nov 2022 09:42:16 +0100 Subject: [PATCH 362/371] chore(deps): update dependency jsdoc to v4 (#585) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jsdoc](https://togithub.com/jsdoc/jsdoc) | [`^3.6.2` -> `^4.0.0`](https://renovatebot.com/diffs/npm/jsdoc/3.6.11/4.0.0) | [![age](https://badges.renovateapi.com/packages/npm/jsdoc/4.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/jsdoc/4.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/jsdoc/4.0.0/compatibility-slim/3.6.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/jsdoc/4.0.0/confidence-slim/3.6.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
jsdoc/jsdoc ### [`v4.0.0`](https://togithub.com/jsdoc/jsdoc/blob/HEAD/CHANGES.md#​400-November-2022) [Compare Source](https://togithub.com/jsdoc/jsdoc/compare/3.6.11...084218523a7d69fec14a852ce680f374f526af28) - JSDoc releases now use [semantic versioning](https://semver.org/). If JSDoc makes backwards-incompatible changes in the future, the major version will be incremented. - JSDoc no longer uses the [`taffydb`](https://taffydb.com/) package. If your JSDoc template or plugin uses the `taffydb` package, see the [instructions for replacing `taffydb` with `@jsdoc/salty`](https://togithub.com/jsdoc/jsdoc/tree/main/packages/jsdoc-salty#use-salty-in-a-jsdoc-template). - JSDoc now supports Node.js 12.0.0 and later.
--- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 08ab9af017a..e43d2e3ebf9 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -51,7 +51,7 @@ "@types/sinon": "^10.0.0", "c8": "^7.0.0", "gts": "^3.1.0", - "jsdoc": "^3.6.2", + "jsdoc": "^4.0.0", "jsdoc-fresh": "^2.0.0", "jsdoc-region-tag": "^2.0.0", "linkinator": "^4.0.0", From a1d200d61c20b141848b4c409c0eedd2d1321f63 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 10 Nov 2022 09:28:17 +0000 Subject: [PATCH 363/371] fix: update proto definitions (#586) samples: pull in latest typeless bot, clean up some comments Source-Link: https://togithub.com/googleapis/synthtool/commit/0a68e568b6911b60bb6fd452eba4848b176031d8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:5b05f26103855c3a15433141389c478d1d3fe088fb5d4e3217c4793f6b3f245e --- packages/google-container/protos/protos.d.ts | 2 +- packages/google-container/protos/protos.js | 406 ++++++++++++++++--- 2 files changed, 355 insertions(+), 53 deletions(-) diff --git a/packages/google-container/protos/protos.d.ts b/packages/google-container/protos/protos.d.ts index 97aa120b791..f4da62cc9f7 100644 --- a/packages/google-container/protos/protos.d.ts +++ b/packages/google-container/protos/protos.d.ts @@ -12,8 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -import Long = require("long"); import type {protobuf as $protobuf} from "google-gax"; +import Long = require("long"); /** Namespace google. */ export namespace google { diff --git a/packages/google-container/protos/protos.js b/packages/google-container/protos/protos.js index cc39a4effa4..02fcf740dbe 100644 --- a/packages/google-container/protos/protos.js +++ b/packages/google-container/protos/protos.js @@ -1388,6 +1388,12 @@ message.sysctls[keys[i]] = String(object.sysctls[keys[i]]); } switch (object.cgroupMode) { + default: + if (typeof object.cgroupMode === "number") { + message.cgroupMode = object.cgroupMode; + break; + } + break; case "CGROUP_MODE_UNSPECIFIED": case 0: message.cgroupMode = 0; @@ -1428,7 +1434,7 @@ object.sysctls[keys2[j]] = message.sysctls[keys2[j]]; } if (message.cgroupMode != null && message.hasOwnProperty("cgroupMode")) - object.cgroupMode = options.enums === String ? $root.google.container.v1.LinuxNodeConfig.CgroupMode[message.cgroupMode] : message.cgroupMode; + object.cgroupMode = options.enums === String ? $root.google.container.v1.LinuxNodeConfig.CgroupMode[message.cgroupMode] === undefined ? message.cgroupMode : $root.google.container.v1.LinuxNodeConfig.CgroupMode[message.cgroupMode] : message.cgroupMode; return object; }; @@ -3589,6 +3595,12 @@ return object; var message = new $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig(); switch (object.totalEgressBandwidthTier) { + default: + if (typeof object.totalEgressBandwidthTier === "number") { + message.totalEgressBandwidthTier = object.totalEgressBandwidthTier; + break; + } + break; case "TIER_UNSPECIFIED": case 0: message.totalEgressBandwidthTier = 0; @@ -3615,7 +3627,7 @@ options = {}; var object = {}; if (message.totalEgressBandwidthTier != null && message.hasOwnProperty("totalEgressBandwidthTier")) { - object.totalEgressBandwidthTier = options.enums === String ? $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier[message.totalEgressBandwidthTier] : message.totalEgressBandwidthTier; + object.totalEgressBandwidthTier = options.enums === String ? $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier[message.totalEgressBandwidthTier] === undefined ? message.totalEgressBandwidthTier : $root.google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier[message.totalEgressBandwidthTier] : message.totalEgressBandwidthTier; if (options.oneofs) object._totalEgressBandwidthTier = "totalEgressBandwidthTier"; } @@ -4050,6 +4062,12 @@ return object; var message = new $root.google.container.v1.SandboxConfig(); switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "UNSPECIFIED": case 0: message.type = 0; @@ -4078,7 +4096,7 @@ 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; + object.type = options.enums === String ? $root.google.container.v1.SandboxConfig.Type[message.type] === undefined ? message.type : $root.google.container.v1.SandboxConfig.Type[message.type] : message.type; return object; }; @@ -4529,6 +4547,12 @@ return object; var message = new $root.google.container.v1.ReservationAffinity(); switch (object.consumeReservationType) { + default: + if (typeof object.consumeReservationType === "number") { + message.consumeReservationType = object.consumeReservationType; + break; + } + break; case "UNSPECIFIED": case 0: message.consumeReservationType = 0; @@ -4578,7 +4602,7 @@ object.key = ""; } if (message.consumeReservationType != null && message.hasOwnProperty("consumeReservationType")) - object.consumeReservationType = options.enums === String ? $root.google.container.v1.ReservationAffinity.Type[message.consumeReservationType] : message.consumeReservationType; + object.consumeReservationType = options.enums === String ? $root.google.container.v1.ReservationAffinity.Type[message.consumeReservationType] === undefined ? message.consumeReservationType : $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) { @@ -4833,6 +4857,12 @@ if (object.value != null) message.value = String(object.value); switch (object.effect) { + default: + if (typeof object.effect === "number") { + message.effect = object.effect; + break; + } + break; case "EFFECT_UNSPECIFIED": case 0: message.effect = 0; @@ -4876,7 +4906,7 @@ 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; + object.effect = options.enums === String ? $root.google.container.v1.NodeTaint.Effect[message.effect] === undefined ? message.effect : $root.google.container.v1.NodeTaint.Effect[message.effect] : message.effect; return object; }; @@ -8825,6 +8855,12 @@ if (object.disabled != null) message.disabled = Boolean(object.disabled); switch (object.loadBalancerType) { + default: + if (typeof object.loadBalancerType === "number") { + message.loadBalancerType = object.loadBalancerType; + break; + } + break; case "LOAD_BALANCER_TYPE_UNSPECIFIED": case 0: message.loadBalancerType = 0; @@ -8861,7 +8897,7 @@ 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; + object.loadBalancerType = options.enums === String ? $root.google.container.v1.CloudRunConfig.LoadBalancerType[message.loadBalancerType] === undefined ? message.loadBalancerType : $root.google.container.v1.CloudRunConfig.LoadBalancerType[message.loadBalancerType] : message.loadBalancerType; return object; }; @@ -10615,6 +10651,12 @@ return object; var message = new $root.google.container.v1.NetworkPolicy(); switch (object.provider) { + default: + if (typeof object.provider === "number") { + message.provider = object.provider; + break; + } + break; case "PROVIDER_UNSPECIFIED": case 0: message.provider = 0; @@ -10647,7 +10689,7 @@ 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; + object.provider = options.enums === String ? $root.google.container.v1.NetworkPolicy.Provider[message.provider] === undefined ? message.provider : $root.google.container.v1.NetworkPolicy.Provider[message.provider] : message.provider; if (message.enabled != null && message.hasOwnProperty("enabled")) object.enabled = message.enabled; return object; @@ -10872,6 +10914,12 @@ if (object.enabled != null) message.enabled = Boolean(object.enabled); switch (object.evaluationMode) { + default: + if (typeof object.evaluationMode === "number") { + message.evaluationMode = object.evaluationMode; + break; + } + break; case "EVALUATION_MODE_UNSPECIFIED": case 0: message.evaluationMode = 0; @@ -10908,7 +10956,7 @@ if (message.enabled != null && message.hasOwnProperty("enabled")) object.enabled = message.enabled; if (message.evaluationMode != null && message.hasOwnProperty("evaluationMode")) - object.evaluationMode = options.enums === String ? $root.google.container.v1.BinaryAuthorization.EvaluationMode[message.evaluationMode] : message.evaluationMode; + object.evaluationMode = options.enums === String ? $root.google.container.v1.BinaryAuthorization.EvaluationMode[message.evaluationMode] === undefined ? message.evaluationMode : $root.google.container.v1.BinaryAuthorization.EvaluationMode[message.evaluationMode] : message.evaluationMode; return object; }; @@ -11397,6 +11445,12 @@ if (object.useRoutes != null) message.useRoutes = Boolean(object.useRoutes); switch (object.stackType) { + default: + if (typeof object.stackType === "number") { + message.stackType = object.stackType; + break; + } + break; case "STACK_TYPE_UNSPECIFIED": case 0: message.stackType = 0; @@ -11411,6 +11465,12 @@ break; } switch (object.ipv6AccessType) { + default: + if (typeof object.ipv6AccessType === "number") { + message.ipv6AccessType = object.ipv6AccessType; + break; + } + break; case "IPV6_ACCESS_TYPE_UNSPECIFIED": case 0: message.ipv6AccessType = 0; @@ -11484,9 +11544,9 @@ if (message.useRoutes != null && message.hasOwnProperty("useRoutes")) object.useRoutes = message.useRoutes; if (message.stackType != null && message.hasOwnProperty("stackType")) - object.stackType = options.enums === String ? $root.google.container.v1.StackType[message.stackType] : message.stackType; + object.stackType = options.enums === String ? $root.google.container.v1.StackType[message.stackType] === undefined ? message.stackType : $root.google.container.v1.StackType[message.stackType] : message.stackType; if (message.ipv6AccessType != null && message.hasOwnProperty("ipv6AccessType")) - object.ipv6AccessType = options.enums === String ? $root.google.container.v1.IPv6AccessType[message.ipv6AccessType] : message.ipv6AccessType; + object.ipv6AccessType = options.enums === String ? $root.google.container.v1.IPv6AccessType[message.ipv6AccessType] === undefined ? message.ipv6AccessType : $root.google.container.v1.IPv6AccessType[message.ipv6AccessType] : message.ipv6AccessType; return object; }; @@ -13100,6 +13160,12 @@ if (object.createTime != null) message.createTime = String(object.createTime); switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; case "STATUS_UNSPECIFIED": case 0: message.status = 0; @@ -13372,7 +13438,7 @@ 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; + object.status = options.enums === String ? $root.google.container.v1.Cluster.Status[message.status] === undefined ? message.status : $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")) @@ -15140,6 +15206,12 @@ message.desiredL4ilbSubsettingConfig = $root.google.container.v1.ILBSubsettingConfig.fromObject(object.desiredL4ilbSubsettingConfig); } switch (object.desiredDatapathProvider) { + default: + if (typeof object.desiredDatapathProvider === "number") { + message.desiredDatapathProvider = object.desiredDatapathProvider; + break; + } + break; case "DATAPATH_PROVIDER_UNSPECIFIED": case 0: message.desiredDatapathProvider = 0; @@ -15154,6 +15226,12 @@ break; } switch (object.desiredPrivateIpv6GoogleAccess) { + default: + if (typeof object.desiredPrivateIpv6GoogleAccess === "number") { + message.desiredPrivateIpv6GoogleAccess = object.desiredPrivateIpv6GoogleAccess; + break; + } + break; case "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED": case 0: message.desiredPrivateIpv6GoogleAccess = 0; @@ -15329,9 +15407,9 @@ if (message.desiredCostManagementConfig != null && message.hasOwnProperty("desiredCostManagementConfig")) object.desiredCostManagementConfig = $root.google.container.v1.CostManagementConfig.toObject(message.desiredCostManagementConfig, options); if (message.desiredDatapathProvider != null && message.hasOwnProperty("desiredDatapathProvider")) - object.desiredDatapathProvider = options.enums === String ? $root.google.container.v1.DatapathProvider[message.desiredDatapathProvider] : message.desiredDatapathProvider; + object.desiredDatapathProvider = options.enums === String ? $root.google.container.v1.DatapathProvider[message.desiredDatapathProvider] === undefined ? message.desiredDatapathProvider : $root.google.container.v1.DatapathProvider[message.desiredDatapathProvider] : message.desiredDatapathProvider; if (message.desiredPrivateIpv6GoogleAccess != null && message.hasOwnProperty("desiredPrivateIpv6GoogleAccess")) - object.desiredPrivateIpv6GoogleAccess = options.enums === String ? $root.google.container.v1.PrivateIPv6GoogleAccess[message.desiredPrivateIpv6GoogleAccess] : message.desiredPrivateIpv6GoogleAccess; + object.desiredPrivateIpv6GoogleAccess = options.enums === String ? $root.google.container.v1.PrivateIPv6GoogleAccess[message.desiredPrivateIpv6GoogleAccess] === undefined ? message.desiredPrivateIpv6GoogleAccess : $root.google.container.v1.PrivateIPv6GoogleAccess[message.desiredPrivateIpv6GoogleAccess] : message.desiredPrivateIpv6GoogleAccess; if (message.desiredDnsConfig != null && message.hasOwnProperty("desiredDnsConfig")) object.desiredDnsConfig = $root.google.container.v1.DNSConfig.toObject(message.desiredDnsConfig, options); if (message.desiredNotificationConfig != null && message.hasOwnProperty("desiredNotificationConfig")) @@ -15853,6 +15931,12 @@ if (object.zone != null) message.zone = String(object.zone); switch (object.operationType) { + default: + if (typeof object.operationType === "number") { + message.operationType = object.operationType; + break; + } + break; case "TYPE_UNSPECIFIED": case 0: message.operationType = 0; @@ -15923,6 +16007,12 @@ break; } switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; case "STATUS_UNSPECIFIED": case 0: message.status = 0; @@ -16028,9 +16118,9 @@ 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; + object.operationType = options.enums === String ? $root.google.container.v1.Operation.Type[message.operationType] === undefined ? message.operationType : $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; + object.status = options.enums === String ? $root.google.container.v1.Operation.Status[message.status] === undefined ? message.status : $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")) @@ -16389,6 +16479,12 @@ if (object.name != null) message.name = String(object.name); switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; case "STATUS_UNSPECIFIED": case 0: message.status = 0; @@ -16457,7 +16553,7 @@ 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; + object.status = options.enums === String ? $root.google.container.v1.Operation.Status[message.status] === undefined ? message.status : $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) @@ -20492,6 +20588,12 @@ if (object.clusterId != null) message.clusterId = String(object.clusterId); switch (object.action) { + default: + if (typeof object.action === "number") { + message.action = object.action; + break; + } + break; case "UNKNOWN": case 0: message.action = 0; @@ -20547,7 +20649,7 @@ 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; + object.action = options.enums === String ? $root.google.container.v1.SetMasterAuthRequest.Action[message.action] === undefined ? message.action : $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")) @@ -23287,6 +23389,12 @@ return object; var message = new $root.google.container.v1.ServerConfig.ReleaseChannelConfig(); switch (object.channel) { + default: + if (typeof object.channel === "number") { + message.channel = object.channel; + break; + } + break; case "UNSPECIFIED": case 0: message.channel = 0; @@ -23336,7 +23444,7 @@ object.defaultVersion = ""; } if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = options.enums === String ? $root.google.container.v1.ReleaseChannel.Channel[message.channel] : message.channel; + object.channel = options.enums === String ? $root.google.container.v1.ReleaseChannel.Channel[message.channel] === undefined ? message.channel : $root.google.container.v1.ReleaseChannel.Channel[message.channel] : message.channel; if (message.defaultVersion != null && message.hasOwnProperty("defaultVersion")) object.defaultVersion = message.defaultVersion; if (message.validVersions && message.validVersions.length) { @@ -25630,6 +25738,12 @@ message.instanceGroupUrls[i] = String(object.instanceGroupUrls[i]); } switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; case "STATUS_UNSPECIFIED": case 0: message.status = 0; @@ -25766,7 +25880,7 @@ object.instanceGroupUrls[j] = message.instanceGroupUrls[j]; } if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.google.container.v1.NodePool.Status[message.status] : message.status; + object.status = options.enums === String ? $root.google.container.v1.NodePool.Status[message.status] === undefined ? message.status : $root.google.container.v1.NodePool.Status[message.status] : message.status; if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) object.statusMessage = message.statusMessage; if (message.conditions && message.conditions.length) { @@ -26054,6 +26168,12 @@ if (object.maxUnavailable != null) message.maxUnavailable = object.maxUnavailable | 0; switch (object.strategy) { + default: + if (typeof object.strategy === "number") { + message.strategy = object.strategy; + break; + } + break; case "NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED": case 0: message.strategy = 0; @@ -26097,7 +26217,7 @@ if (message.maxUnavailable != null && message.hasOwnProperty("maxUnavailable")) object.maxUnavailable = message.maxUnavailable; if (message.strategy != null && message.hasOwnProperty("strategy")) { - object.strategy = options.enums === String ? $root.google.container.v1.NodePoolUpdateStrategy[message.strategy] : message.strategy; + object.strategy = options.enums === String ? $root.google.container.v1.NodePoolUpdateStrategy[message.strategy] === undefined ? message.strategy : $root.google.container.v1.NodePoolUpdateStrategy[message.strategy] : message.strategy; if (options.oneofs) object._strategy = "strategy"; } @@ -26592,6 +26712,12 @@ return object; var message = new $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo(); switch (object.phase) { + default: + if (typeof object.phase === "number") { + message.phase = object.phase; + break; + } + break; case "PHASE_UNSPECIFIED": case 0: message.phase = 0; @@ -26669,7 +26795,7 @@ object.greenPoolVersion = ""; } if (message.phase != null && message.hasOwnProperty("phase")) - object.phase = options.enums === String ? $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase[message.phase] : message.phase; + object.phase = options.enums === String ? $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase[message.phase] === undefined ? message.phase : $root.google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase[message.phase] : message.phase; if (message.blueInstanceGroupUrls && message.blueInstanceGroupUrls.length) { object.blueInstanceGroupUrls = []; for (var j = 0; j < message.blueInstanceGroupUrls.length; ++j) @@ -28255,6 +28381,12 @@ return object; var message = new $root.google.container.v1.MaintenanceExclusionOptions(); switch (object.scope) { + default: + if (typeof object.scope === "number") { + message.scope = object.scope; + break; + } + break; case "NO_UPGRADES": case 0: message.scope = 0; @@ -28287,7 +28419,7 @@ if (options.defaults) object.scope = options.enums === String ? "NO_UPGRADES" : 0; if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.google.container.v1.MaintenanceExclusionOptions.Scope[message.scope] : message.scope; + object.scope = options.enums === String ? $root.google.container.v1.MaintenanceExclusionOptions.Scope[message.scope] === undefined ? message.scope : $root.google.container.v1.MaintenanceExclusionOptions.Scope[message.scope] : message.scope; return object; }; @@ -30444,6 +30576,12 @@ } } switch (object.autoscalingProfile) { + default: + if (typeof object.autoscalingProfile === "number") { + message.autoscalingProfile = object.autoscalingProfile; + break; + } + break; case "PROFILE_UNSPECIFIED": case 0: message.autoscalingProfile = 0; @@ -30502,7 +30640,7 @@ object.resourceLimits[j] = $root.google.container.v1.ResourceLimit.toObject(message.resourceLimits[j], options); } if (message.autoscalingProfile != null && message.hasOwnProperty("autoscalingProfile")) - object.autoscalingProfile = options.enums === String ? $root.google.container.v1.ClusterAutoscaling.AutoscalingProfile[message.autoscalingProfile] : message.autoscalingProfile; + object.autoscalingProfile = options.enums === String ? $root.google.container.v1.ClusterAutoscaling.AutoscalingProfile[message.autoscalingProfile] === undefined ? message.autoscalingProfile : $root.google.container.v1.ClusterAutoscaling.AutoscalingProfile[message.autoscalingProfile] : message.autoscalingProfile; if (message.autoprovisioningNodePoolDefaults != null && message.hasOwnProperty("autoprovisioningNodePoolDefaults")) object.autoprovisioningNodePoolDefaults = $root.google.container.v1.AutoprovisioningNodePoolDefaults.toObject(message.autoprovisioningNodePoolDefaults, options); if (message.autoprovisioningLocations && message.autoprovisioningLocations.length) { @@ -31551,6 +31689,12 @@ if (object.autoprovisioned != null) message.autoprovisioned = Boolean(object.autoprovisioned); switch (object.locationPolicy) { + default: + if (typeof object.locationPolicy === "number") { + message.locationPolicy = object.locationPolicy; + break; + } + break; case "LOCATION_POLICY_UNSPECIFIED": case 0: message.locationPolicy = 0; @@ -31602,7 +31746,7 @@ if (message.autoprovisioned != null && message.hasOwnProperty("autoprovisioned")) object.autoprovisioned = message.autoprovisioned; if (message.locationPolicy != null && message.hasOwnProperty("locationPolicy")) - object.locationPolicy = options.enums === String ? $root.google.container.v1.NodePoolAutoscaling.LocationPolicy[message.locationPolicy] : message.locationPolicy; + object.locationPolicy = options.enums === String ? $root.google.container.v1.NodePoolAutoscaling.LocationPolicy[message.locationPolicy] === undefined ? message.locationPolicy : $root.google.container.v1.NodePoolAutoscaling.LocationPolicy[message.locationPolicy] : message.locationPolicy; if (message.totalMinNodeCount != null && message.hasOwnProperty("totalMinNodeCount")) object.totalMinNodeCount = message.totalMinNodeCount; if (message.totalMaxNodeCount != null && message.hasOwnProperty("totalMaxNodeCount")) @@ -33386,6 +33530,12 @@ else if (typeof object.maxSharedClientsPerGpu === "object") message.maxSharedClientsPerGpu = new $util.LongBits(object.maxSharedClientsPerGpu.low >>> 0, object.maxSharedClientsPerGpu.high >>> 0).toNumber(); switch (object.gpuSharingStrategy) { + default: + if (typeof object.gpuSharingStrategy === "number") { + message.gpuSharingStrategy = object.gpuSharingStrategy; + break; + } + break; case "GPU_SHARING_STRATEGY_UNSPECIFIED": case 0: message.gpuSharingStrategy = 0; @@ -33423,7 +33573,7 @@ else object.maxSharedClientsPerGpu = options.longs === String ? $util.Long.prototype.toString.call(message.maxSharedClientsPerGpu) : options.longs === Number ? new $util.LongBits(message.maxSharedClientsPerGpu.low >>> 0, message.maxSharedClientsPerGpu.high >>> 0).toNumber() : message.maxSharedClientsPerGpu; if (message.gpuSharingStrategy != null && message.hasOwnProperty("gpuSharingStrategy")) { - object.gpuSharingStrategy = options.enums === String ? $root.google.container.v1.GPUSharingConfig.GPUSharingStrategy[message.gpuSharingStrategy] : message.gpuSharingStrategy; + object.gpuSharingStrategy = options.enums === String ? $root.google.container.v1.GPUSharingConfig.GPUSharingStrategy[message.gpuSharingStrategy] === undefined ? message.gpuSharingStrategy : $root.google.container.v1.GPUSharingConfig.GPUSharingStrategy[message.gpuSharingStrategy] : message.gpuSharingStrategy; if (options.oneofs) object._gpuSharingStrategy = "gpuSharingStrategy"; } @@ -33629,6 +33779,12 @@ return object; var message = new $root.google.container.v1.WorkloadMetadataConfig(); switch (object.mode) { + default: + if (typeof object.mode === "number") { + message.mode = object.mode; + break; + } + break; case "MODE_UNSPECIFIED": case 0: message.mode = 0; @@ -33661,7 +33817,7 @@ if (options.defaults) object.mode = options.enums === String ? "MODE_UNSPECIFIED" : 0; if (message.mode != null && message.hasOwnProperty("mode")) - object.mode = options.enums === String ? $root.google.container.v1.WorkloadMetadataConfig.Mode[message.mode] : message.mode; + object.mode = options.enums === String ? $root.google.container.v1.WorkloadMetadataConfig.Mode[message.mode] === undefined ? message.mode : $root.google.container.v1.WorkloadMetadataConfig.Mode[message.mode] : message.mode; return object; }; @@ -34528,6 +34684,12 @@ return object; var message = new $root.google.container.v1.StatusCondition(); switch (object.code) { + default: + if (typeof object.code === "number") { + message.code = object.code; + break; + } + break; case "UNKNOWN": case 0: message.code = 0; @@ -34560,6 +34722,12 @@ if (object.message != null) message.message = String(object.message); switch (object.canonicalCode) { + default: + if (typeof object.canonicalCode === "number") { + message.canonicalCode = object.canonicalCode; + break; + } + break; case "OK": case 0: message.canonicalCode = 0; @@ -34651,11 +34819,11 @@ object.canonicalCode = options.enums === String ? "OK" : 0; } if (message.code != null && message.hasOwnProperty("code")) - object.code = options.enums === String ? $root.google.container.v1.StatusCondition.Code[message.code] : message.code; + object.code = options.enums === String ? $root.google.container.v1.StatusCondition.Code[message.code] === undefined ? message.code : $root.google.container.v1.StatusCondition.Code[message.code] : message.code; if (message.message != null && message.hasOwnProperty("message")) object.message = message.message; if (message.canonicalCode != null && message.hasOwnProperty("canonicalCode")) - object.canonicalCode = options.enums === String ? $root.google.rpc.Code[message.canonicalCode] : message.canonicalCode; + object.canonicalCode = options.enums === String ? $root.google.rpc.Code[message.canonicalCode] === undefined ? message.canonicalCode : $root.google.rpc.Code[message.canonicalCode] : message.canonicalCode; return object; }; @@ -35058,6 +35226,12 @@ if (object.enableL4ilbSubsetting != null) message.enableL4ilbSubsetting = Boolean(object.enableL4ilbSubsetting); switch (object.datapathProvider) { + default: + if (typeof object.datapathProvider === "number") { + message.datapathProvider = object.datapathProvider; + break; + } + break; case "DATAPATH_PROVIDER_UNSPECIFIED": case 0: message.datapathProvider = 0; @@ -35072,6 +35246,12 @@ break; } switch (object.privateIpv6GoogleAccess) { + default: + if (typeof object.privateIpv6GoogleAccess === "number") { + message.privateIpv6GoogleAccess = object.privateIpv6GoogleAccess; + break; + } + break; case "PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED": case 0: message.privateIpv6GoogleAccess = 0; @@ -35143,9 +35323,9 @@ if (message.enableL4ilbSubsetting != null && message.hasOwnProperty("enableL4ilbSubsetting")) object.enableL4ilbSubsetting = message.enableL4ilbSubsetting; if (message.datapathProvider != null && message.hasOwnProperty("datapathProvider")) - object.datapathProvider = options.enums === String ? $root.google.container.v1.DatapathProvider[message.datapathProvider] : message.datapathProvider; + object.datapathProvider = options.enums === String ? $root.google.container.v1.DatapathProvider[message.datapathProvider] === undefined ? message.datapathProvider : $root.google.container.v1.DatapathProvider[message.datapathProvider] : message.datapathProvider; if (message.privateIpv6GoogleAccess != null && message.hasOwnProperty("privateIpv6GoogleAccess")) - object.privateIpv6GoogleAccess = options.enums === String ? $root.google.container.v1.PrivateIPv6GoogleAccess[message.privateIpv6GoogleAccess] : message.privateIpv6GoogleAccess; + object.privateIpv6GoogleAccess = options.enums === String ? $root.google.container.v1.PrivateIPv6GoogleAccess[message.privateIpv6GoogleAccess] === undefined ? message.privateIpv6GoogleAccess : $root.google.container.v1.PrivateIPv6GoogleAccess[message.privateIpv6GoogleAccess] : message.privateIpv6GoogleAccess; if (message.dnsConfig != null && message.hasOwnProperty("dnsConfig")) object.dnsConfig = $root.google.container.v1.DNSConfig.toObject(message.dnsConfig, options); if (message.serviceExternalIpsConfig != null && message.hasOwnProperty("serviceExternalIpsConfig")) @@ -35341,6 +35521,12 @@ return object; var message = new $root.google.container.v1.GatewayAPIConfig(); switch (object.channel) { + default: + if (typeof object.channel === "number") { + message.channel = object.channel; + break; + } + break; case "CHANNEL_UNSPECIFIED": case 0: message.channel = 0; @@ -35377,7 +35563,7 @@ if (options.defaults) object.channel = options.enums === String ? "CHANNEL_UNSPECIFIED" : 0; if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = options.enums === String ? $root.google.container.v1.GatewayAPIConfig.Channel[message.channel] : message.channel; + object.channel = options.enums === String ? $root.google.container.v1.GatewayAPIConfig.Channel[message.channel] === undefined ? message.channel : $root.google.container.v1.GatewayAPIConfig.Channel[message.channel] : message.channel; return object; }; @@ -37230,6 +37416,12 @@ return object; var message = new $root.google.container.v1.ReleaseChannel(); switch (object.channel) { + default: + if (typeof object.channel === "number") { + message.channel = object.channel; + break; + } + break; case "UNSPECIFIED": case 0: message.channel = 0; @@ -37266,7 +37458,7 @@ if (options.defaults) object.channel = options.enums === String ? "UNSPECIFIED" : 0; if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = options.enums === String ? $root.google.container.v1.ReleaseChannel.Channel[message.channel] : message.channel; + object.channel = options.enums === String ? $root.google.container.v1.ReleaseChannel.Channel[message.channel] === undefined ? message.channel : $root.google.container.v1.ReleaseChannel.Channel[message.channel] : message.channel; return object; }; @@ -38123,6 +38315,12 @@ return object; var message = new $root.google.container.v1.DNSConfig(); switch (object.clusterDns) { + default: + if (typeof object.clusterDns === "number") { + message.clusterDns = object.clusterDns; + break; + } + break; case "PROVIDER_UNSPECIFIED": case 0: message.clusterDns = 0; @@ -38137,6 +38335,12 @@ break; } switch (object.clusterDnsScope) { + default: + if (typeof object.clusterDnsScope === "number") { + message.clusterDnsScope = object.clusterDnsScope; + break; + } + break; case "DNS_SCOPE_UNSPECIFIED": case 0: message.clusterDnsScope = 0; @@ -38170,9 +38374,9 @@ object.clusterDnsDomain = ""; } if (message.clusterDns != null && message.hasOwnProperty("clusterDns")) - object.clusterDns = options.enums === String ? $root.google.container.v1.DNSConfig.Provider[message.clusterDns] : message.clusterDns; + object.clusterDns = options.enums === String ? $root.google.container.v1.DNSConfig.Provider[message.clusterDns] === undefined ? message.clusterDns : $root.google.container.v1.DNSConfig.Provider[message.clusterDns] : message.clusterDns; if (message.clusterDnsScope != null && message.hasOwnProperty("clusterDnsScope")) - object.clusterDnsScope = options.enums === String ? $root.google.container.v1.DNSConfig.DNSScope[message.clusterDnsScope] : message.clusterDnsScope; + object.clusterDnsScope = options.enums === String ? $root.google.container.v1.DNSConfig.DNSScope[message.clusterDnsScope] === undefined ? message.clusterDnsScope : $root.google.container.v1.DNSConfig.DNSScope[message.clusterDnsScope] : message.clusterDnsScope; if (message.clusterDnsDomain != null && message.hasOwnProperty("clusterDnsDomain")) object.clusterDnsDomain = message.clusterDnsDomain; return object; @@ -39242,6 +39446,12 @@ return object; var message = new $root.google.container.v1.DatabaseEncryption(); switch (object.state) { + default: + if (typeof object.state === "number") { + message.state = object.state; + break; + } + break; case "UNKNOWN": case 0: message.state = 0; @@ -39280,7 +39490,7 @@ if (message.keyName != null && message.hasOwnProperty("keyName")) object.keyName = message.keyName; if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.container.v1.DatabaseEncryption.State[message.state] : message.state; + object.state = options.enums === String ? $root.google.container.v1.DatabaseEncryption.State[message.state] === undefined ? message.state : $root.google.container.v1.DatabaseEncryption.State[message.state] : message.state; return object; }; @@ -40048,6 +40258,12 @@ if (object.ipCidrRange != null) message.ipCidrRange = String(object.ipCidrRange); switch (object.status) { + default: + if (typeof object.status === "number") { + message.status = object.status; + break; + } + break; case "UNKNOWN": case 0: message.status = 0; @@ -40095,7 +40311,7 @@ if (message.ipCidrRange != null && message.hasOwnProperty("ipCidrRange")) object.ipCidrRange = message.ipCidrRange; if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.google.container.v1.UsableSubnetworkSecondaryRange.Status[message.status] : message.status; + object.status = options.enums === String ? $root.google.container.v1.UsableSubnetworkSecondaryRange.Status[message.status] === undefined ? message.status : $root.google.container.v1.UsableSubnetworkSecondaryRange.Status[message.status] : message.status; return object; }; @@ -42619,6 +42835,10 @@ for (var i = 0; i < object.eventType.length; ++i) switch (object.eventType[i]) { default: + if (typeof object.eventType[i] === "number") { + message.eventType[i] = object.eventType[i]; + break; + } case "EVENT_TYPE_UNSPECIFIED": case 0: message.eventType[i] = 0; @@ -42658,7 +42878,7 @@ if (message.eventType && message.eventType.length) { object.eventType = []; for (var j = 0; j < message.eventType.length; ++j) - object.eventType[j] = options.enums === String ? $root.google.container.v1.NotificationConfig.EventType[message.eventType[j]] : message.eventType[j]; + object.eventType[j] = options.enums === String ? $root.google.container.v1.NotificationConfig.EventType[message.eventType[j]] === undefined ? message.eventType[j] : $root.google.container.v1.NotificationConfig.EventType[message.eventType[j]] : message.eventType[j]; } return object; }; @@ -43162,6 +43382,12 @@ return object; var message = new $root.google.container.v1.UpgradeEvent(); switch (object.resourceType) { + default: + if (typeof object.resourceType === "number") { + message.resourceType = object.resourceType; + break; + } + break; case "UPGRADE_RESOURCE_TYPE_UNSPECIFIED": case 0: message.resourceType = 0; @@ -43213,7 +43439,7 @@ object.resource = ""; } if (message.resourceType != null && message.hasOwnProperty("resourceType")) - object.resourceType = options.enums === String ? $root.google.container.v1.UpgradeResourceType[message.resourceType] : message.resourceType; + object.resourceType = options.enums === String ? $root.google.container.v1.UpgradeResourceType[message.resourceType] === undefined ? message.resourceType : $root.google.container.v1.UpgradeResourceType[message.resourceType] : message.resourceType; if (message.operation != null && message.hasOwnProperty("operation")) object.operation = message.operation; if (message.operationStartTime != null && message.hasOwnProperty("operationStartTime")) @@ -43470,6 +43696,12 @@ if (object.version != null) message.version = String(object.version); switch (object.resourceType) { + default: + if (typeof object.resourceType === "number") { + message.resourceType = object.resourceType; + break; + } + break; case "UPGRADE_RESOURCE_TYPE_UNSPECIFIED": case 0: message.resourceType = 0; @@ -43515,7 +43747,7 @@ if (message.version != null && message.hasOwnProperty("version")) object.version = message.version; if (message.resourceType != null && message.hasOwnProperty("resourceType")) - object.resourceType = options.enums === String ? $root.google.container.v1.UpgradeResourceType[message.resourceType] : message.resourceType; + object.resourceType = options.enums === String ? $root.google.container.v1.UpgradeResourceType[message.resourceType] === undefined ? message.resourceType : $root.google.container.v1.UpgradeResourceType[message.resourceType] : message.resourceType; if (message.releaseChannel != null && message.hasOwnProperty("releaseChannel")) object.releaseChannel = $root.google.container.v1.ReleaseChannel.toObject(message.releaseChannel, options); if (message.resource != null && message.hasOwnProperty("resource")) @@ -44605,6 +44837,10 @@ for (var i = 0; i < object.enableComponents.length; ++i) switch (object.enableComponents[i]) { default: + if (typeof object.enableComponents[i] === "number") { + message.enableComponents[i] = object.enableComponents[i]; + break; + } case "COMPONENT_UNSPECIFIED": case 0: message.enableComponents[i] = 0; @@ -44652,7 +44888,7 @@ if (message.enableComponents && message.enableComponents.length) { object.enableComponents = []; for (var j = 0; j < message.enableComponents.length; ++j) - object.enableComponents[j] = options.enums === String ? $root.google.container.v1.LoggingComponentConfig.Component[message.enableComponents[j]] : message.enableComponents[j]; + object.enableComponents[j] = options.enums === String ? $root.google.container.v1.LoggingComponentConfig.Component[message.enableComponents[j]] === undefined ? message.enableComponents[j] : $root.google.container.v1.LoggingComponentConfig.Component[message.enableComponents[j]] : message.enableComponents[j]; } return object; }; @@ -45309,6 +45545,12 @@ return object; var message = new $root.google.container.v1.LoggingVariantConfig(); switch (object.variant) { + default: + if (typeof object.variant === "number") { + message.variant = object.variant; + break; + } + break; case "VARIANT_UNSPECIFIED": case 0: message.variant = 0; @@ -45341,7 +45583,7 @@ if (options.defaults) object.variant = options.enums === String ? "VARIANT_UNSPECIFIED" : 0; if (message.variant != null && message.hasOwnProperty("variant")) - object.variant = options.enums === String ? $root.google.container.v1.LoggingVariantConfig.Variant[message.variant] : message.variant; + object.variant = options.enums === String ? $root.google.container.v1.LoggingVariantConfig.Variant[message.variant] === undefined ? message.variant : $root.google.container.v1.LoggingVariantConfig.Variant[message.variant] : message.variant; return object; }; @@ -45570,6 +45812,10 @@ for (var i = 0; i < object.enableComponents.length; ++i) switch (object.enableComponents[i]) { default: + if (typeof object.enableComponents[i] === "number") { + message.enableComponents[i] = object.enableComponents[i]; + break; + } case "COMPONENT_UNSPECIFIED": case 0: message.enableComponents[i] = 0; @@ -45613,7 +45859,7 @@ if (message.enableComponents && message.enableComponents.length) { object.enableComponents = []; for (var j = 0; j < message.enableComponents.length; ++j) - object.enableComponents[j] = options.enums === String ? $root.google.container.v1.MonitoringComponentConfig.Component[message.enableComponents[j]] : message.enableComponents[j]; + object.enableComponents[j] = options.enums === String ? $root.google.container.v1.MonitoringComponentConfig.Component[message.enableComponents[j]] === undefined ? message.enableComponents[j] : $root.google.container.v1.MonitoringComponentConfig.Component[message.enableComponents[j]] : message.enableComponents[j]; } return object; }; @@ -47242,6 +47488,12 @@ if (object.nameField != null) message.nameField = String(object.nameField); switch (object.history) { + default: + if (typeof object.history === "number") { + message.history = object.history; + break; + } + break; case "HISTORY_UNSPECIFIED": case 0: message.history = 0; @@ -47266,6 +47518,10 @@ for (var i = 0; i < object.style.length; ++i) switch (object.style[i]) { default: + if (typeof object.style[i] === "number") { + message.style[i] = object.style[i]; + break; + } case "STYLE_UNSPECIFIED": case 0: message.style[i] = 0; @@ -47313,7 +47569,7 @@ if (message.nameField != null && message.hasOwnProperty("nameField")) object.nameField = message.nameField; if (message.history != null && message.hasOwnProperty("history")) - object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history; + object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] === undefined ? message.history : $root.google.api.ResourceDescriptor.History[message.history] : message.history; if (message.plural != null && message.hasOwnProperty("plural")) object.plural = message.plural; if (message.singular != null && message.hasOwnProperty("singular")) @@ -47321,7 +47577,7 @@ if (message.style && message.style.length) { object.style = []; for (var j = 0; j < message.style.length; ++j) - object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; + object.style[j] = options.enums === String ? $root.google.api.ResourceDescriptor.Style[message.style[j]] === undefined ? message.style[j] : $root.google.api.ResourceDescriptor.Style[message.style[j]] : message.style[j]; } return object; }; @@ -50132,6 +50388,12 @@ if (object.number != null) message.number = object.number | 0; switch (object.label) { + default: + if (typeof object.label === "number") { + message.label = object.label; + break; + } + break; case "LABEL_OPTIONAL": case 1: message.label = 1; @@ -50146,6 +50408,12 @@ break; } switch (object.type) { + default: + if (typeof object.type === "number") { + message.type = object.type; + break; + } + break; case "TYPE_DOUBLE": case 1: message.type = 1; @@ -50272,9 +50540,9 @@ if (message.number != null && message.hasOwnProperty("number")) object.number = message.number; if (message.label != null && message.hasOwnProperty("label")) - object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; + object.label = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Label[message.label] === undefined ? message.label : $root.google.protobuf.FieldDescriptorProto.Label[message.label] : message.label; if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; + object.type = options.enums === String ? $root.google.protobuf.FieldDescriptorProto.Type[message.type] === undefined ? message.type : $root.google.protobuf.FieldDescriptorProto.Type[message.type] : message.type; if (message.typeName != null && message.hasOwnProperty("typeName")) object.typeName = message.typeName; if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) @@ -52621,6 +52889,12 @@ if (object.javaStringCheckUtf8 != null) message.javaStringCheckUtf8 = Boolean(object.javaStringCheckUtf8); switch (object.optimizeFor) { + default: + if (typeof object.optimizeFor === "number") { + message.optimizeFor = object.optimizeFor; + break; + } + break; case "SPEED": case 1: message.optimizeFor = 1; @@ -52729,7 +53003,7 @@ if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) object.javaOuterClassname = message.javaOuterClassname; if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; + object.optimizeFor = options.enums === String ? $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] === undefined ? message.optimizeFor : $root.google.protobuf.FileOptions.OptimizeMode[message.optimizeFor] : message.optimizeFor; if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) object.javaMultipleFiles = message.javaMultipleFiles; if (message.goPackage != null && message.hasOwnProperty("goPackage")) @@ -53531,6 +53805,12 @@ return object; var message = new $root.google.protobuf.FieldOptions(); switch (object.ctype) { + default: + if (typeof object.ctype === "number") { + message.ctype = object.ctype; + break; + } + break; case "STRING": case 0: message.ctype = 0; @@ -53547,6 +53827,12 @@ if (object.packed != null) message.packed = Boolean(object.packed); switch (object.jstype) { + default: + if (typeof object.jstype === "number") { + message.jstype = object.jstype; + break; + } + break; case "JS_NORMAL": case 0: message.jstype = 0; @@ -53585,6 +53871,10 @@ for (var i = 0; i < object[".google.api.fieldBehavior"].length; ++i) switch (object[".google.api.fieldBehavior"][i]) { default: + if (typeof object[".google.api.fieldBehavior"][i] === "number") { + message[".google.api.fieldBehavior"][i] = object[".google.api.fieldBehavior"][i]; + break; + } case "FIELD_BEHAVIOR_UNSPECIFIED": case 0: message[".google.api.fieldBehavior"][i] = 0; @@ -53655,7 +53945,7 @@ object[".google.api.resourceReference"] = null; } if (message.ctype != null && message.hasOwnProperty("ctype")) - object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; + object.ctype = options.enums === String ? $root.google.protobuf.FieldOptions.CType[message.ctype] === undefined ? message.ctype : $root.google.protobuf.FieldOptions.CType[message.ctype] : message.ctype; if (message.packed != null && message.hasOwnProperty("packed")) object.packed = message.packed; if (message.deprecated != null && message.hasOwnProperty("deprecated")) @@ -53663,7 +53953,7 @@ if (message.lazy != null && message.hasOwnProperty("lazy")) object.lazy = message.lazy; if (message.jstype != null && message.hasOwnProperty("jstype")) - object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; + object.jstype = options.enums === String ? $root.google.protobuf.FieldOptions.JSType[message.jstype] === undefined ? message.jstype : $root.google.protobuf.FieldOptions.JSType[message.jstype] : message.jstype; if (message.weak != null && message.hasOwnProperty("weak")) object.weak = message.weak; if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy")) @@ -53676,7 +53966,7 @@ if (message[".google.api.fieldBehavior"] && message[".google.api.fieldBehavior"].length) { object[".google.api.fieldBehavior"] = []; for (var j = 0; j < message[".google.api.fieldBehavior"].length; ++j) - object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; + object[".google.api.fieldBehavior"][j] = options.enums === String ? $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] === undefined ? message[".google.api.fieldBehavior"][j] : $root.google.api.FieldBehavior[message[".google.api.fieldBehavior"][j]] : message[".google.api.fieldBehavior"][j]; } if (message[".google.api.resourceReference"] != null && message.hasOwnProperty(".google.api.resourceReference")) object[".google.api.resourceReference"] = $root.google.api.ResourceReference.toObject(message[".google.api.resourceReference"], options); @@ -55033,6 +55323,12 @@ if (object.deprecated != null) message.deprecated = Boolean(object.deprecated); switch (object.idempotencyLevel) { + default: + if (typeof object.idempotencyLevel === "number") { + message.idempotencyLevel = object.idempotencyLevel; + break; + } + break; case "IDEMPOTENCY_UNKNOWN": case 0: message.idempotencyLevel = 0; @@ -55096,7 +55392,7 @@ if (message.deprecated != null && message.hasOwnProperty("deprecated")) object.deprecated = message.deprecated; if (message.idempotencyLevel != null && message.hasOwnProperty("idempotencyLevel")) - object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; + object.idempotencyLevel = options.enums === String ? $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] === undefined ? message.idempotencyLevel : $root.google.protobuf.MethodOptions.IdempotencyLevel[message.idempotencyLevel] : message.idempotencyLevel; if (message.uninterpretedOption && message.uninterpretedOption.length) { object.uninterpretedOption = []; for (var j = 0; j < message.uninterpretedOption.length; ++j) @@ -56849,6 +57145,12 @@ if (object.end != null) message.end = object.end | 0; switch (object.semantic) { + default: + if (typeof object.semantic === "number") { + message.semantic = object.semantic; + break; + } + break; case "NONE": case 0: message.semantic = 0; @@ -56898,7 +57200,7 @@ if (message.end != null && message.hasOwnProperty("end")) object.end = message.end; if (message.semantic != null && message.hasOwnProperty("semantic")) - object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; + object.semantic = options.enums === String ? $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] === undefined ? message.semantic : $root.google.protobuf.GeneratedCodeInfo.Annotation.Semantic[message.semantic] : message.semantic; return object; }; From af7da9c244f91852f45bb05d9dd534cee7f88ed7 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Thu, 10 Nov 2022 11:48:18 +0100 Subject: [PATCH 364/371] chore(deps): update dependency @types/node to v18 (#580) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) | [`^16.0.0` -> `^18.0.0`](https://renovatebot.com/diffs/npm/@types%2fnode/16.18.3/18.11.9) | [![age](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.11.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.11.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.11.9/compatibility-slim/16.18.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@types%2fnode/18.11.9/confidence-slim/16.18.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/nodejs-cloud-container). --- packages/google-container/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index e43d2e3ebf9..74d13ee096d 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -47,7 +47,7 @@ }, "devDependencies": { "@types/mocha": "^9.0.0", - "@types/node": "^16.0.0", + "@types/node": "^18.0.0", "@types/sinon": "^10.0.0", "c8": "^7.0.0", "gts": "^3.1.0", From 017127f4277a9be107574b0c60210244b28ba564 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Nov 2022 00:56:14 +0000 Subject: [PATCH 365/371] chore(main): release 4.4.0 (#584) :robot: I have created a release *beep* *boop* --- ## [4.4.0](https://togithub.com/googleapis/nodejs-cloud-container/compare/v4.3.0...v4.4.0) (2022-11-10) ### Features * Add APIs for GKE Control Plane Logs ([#588](https://togithub.com/googleapis/nodejs-cloud-container/issues/588)) ([de62f0b](https://togithub.com/googleapis/nodejs-cloud-container/commit/de62f0bfc4d6972d1bbd48428ec2005ef2ccf890)) ### Bug Fixes * **deps:** Use google-gax v3.5.2 ([#582](https://togithub.com/googleapis/nodejs-cloud-container/issues/582)) ([3c62c1a](https://togithub.com/googleapis/nodejs-cloud-container/commit/3c62c1adbc913212097f50496e10c4ccfb6f2d86)) * Update proto definitions ([#586](https://togithub.com/googleapis/nodejs-cloud-container/issues/586)) ([dbee22e](https://togithub.com/googleapis/nodejs-cloud-container/commit/dbee22e4f5e793d1e1ebe5cec33edf2128963a60)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- packages/google-container/CHANGELOG.md | 13 +++++++++++++ packages/google-container/package.json | 2 +- .../v1/snippet_metadata.google.container.v1.json | 2 +- packages/google-container/samples/package.json | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/google-container/CHANGELOG.md b/packages/google-container/CHANGELOG.md index d4d6fc31098..3b6a3617b00 100644 --- a/packages/google-container/CHANGELOG.md +++ b/packages/google-container/CHANGELOG.md @@ -4,6 +4,19 @@ [1]: https://www.npmjs.com/package/@google-cloud/container?activeTab=versions +## [4.4.0](https://github.com/googleapis/nodejs-cloud-container/compare/v4.3.0...v4.4.0) (2022-11-10) + + +### Features + +* Add APIs for GKE Control Plane Logs ([#588](https://github.com/googleapis/nodejs-cloud-container/issues/588)) ([de62f0b](https://github.com/googleapis/nodejs-cloud-container/commit/de62f0bfc4d6972d1bbd48428ec2005ef2ccf890)) + + +### Bug Fixes + +* **deps:** Use google-gax v3.5.2 ([#582](https://github.com/googleapis/nodejs-cloud-container/issues/582)) ([3c62c1a](https://github.com/googleapis/nodejs-cloud-container/commit/3c62c1adbc913212097f50496e10c4ccfb6f2d86)) +* Update proto definitions ([#586](https://github.com/googleapis/nodejs-cloud-container/issues/586)) ([dbee22e](https://github.com/googleapis/nodejs-cloud-container/commit/dbee22e4f5e793d1e1ebe5cec33edf2128963a60)) + ## [4.3.0](https://github.com/googleapis/nodejs-cloud-container/compare/v4.2.0...v4.3.0) (2022-10-14) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 74d13ee096d..5b4f31b2a4b 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -1,7 +1,7 @@ { "name": "@google-cloud/container", "description": "Google Container Engine API client for Node.js", - "version": "4.3.0", + "version": "4.4.0", "license": "Apache-2.0", "author": "Google Inc", "engines": { diff --git a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json index 5eebc98b7c1..9d2b6ffce5e 100644 --- a/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json +++ b/packages/google-container/samples/generated/v1/snippet_metadata.google.container.v1.json @@ -1,7 +1,7 @@ { "clientLibrary": { "name": "nodejs-container", - "version": "4.3.0", + "version": "4.4.0", "language": "TYPESCRIPT", "apis": [ { diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 0ed50e31bb6..280d4f20646 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -14,7 +14,7 @@ "test": "mocha system-test --timeout 1000000" }, "dependencies": { - "@google-cloud/container": "^4.3.0", + "@google-cloud/container": "^4.4.0", "uuid": "^9.0.0" }, "devDependencies": { From 6c366403d7b6598f7a40cd85ce658b395b05ca08 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Fri, 11 Nov 2022 00:29:15 -0800 Subject: [PATCH 366/371] build: add release-please config, fix owlbot-config --- .release-please-manifest.json | 1 + .../{.github => }/.OwlBot.yaml | 6 +- packages/google-container/.mocharc.js | 2 +- packages/google-container/.prettierrc.js | 2 +- packages/google-container/.repo-metadata.json | 2 +- packages/google-container/README.md | 49 +- packages/google-container/package.json | 13 +- packages/google-container/samples/README.md | 590 +++++++++++++++++- packages/google-container/src/index.ts | 2 +- release-please-config.json | 3 +- 10 files changed, 632 insertions(+), 38 deletions(-) rename packages/google-container/{.github => }/.OwlBot.yaml (82%) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 308e8105687..c3feaa284d2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -33,6 +33,7 @@ "packages/google-cloud-texttospeech": "4.0.4", "packages/google-cloud-translate": "7.0.4", "packages/google-cloud-videointelligence": "4.1.1", + "packages/google-container": "4.4.0", "packages/google-devtools-artifactregistry": "2.0.2", "packages/google-iam": "0.2.2", "packages/google-maps-addressvalidation": "0.1.0", diff --git a/packages/google-container/.github/.OwlBot.yaml b/packages/google-container/.OwlBot.yaml similarity index 82% rename from packages/google-container/.github/.OwlBot.yaml rename to packages/google-container/.OwlBot.yaml index b2174b52997..89a2fce0ac8 100644 --- a/packages/google-container/.github/.OwlBot.yaml +++ b/packages/google-container/.OwlBot.yaml @@ -11,8 +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. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest deep-remove-regex: - /owl-bot-staging @@ -21,8 +19,8 @@ deep-preserve-regex: - /owl-bot-staging/v1beta1 deep-copy-regex: - - source: /google/container/(v.*)/.*-nodejs/(.*) - dest: /owl-bot-staging/$1/$2 + - source: /google/container/(v.*)/.*-nodejs + dest: /owl-bot-staging/google-container/$1 begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b diff --git a/packages/google-container/.mocharc.js b/packages/google-container/.mocharc.js index 0b600509bed..cdb7b752160 100644 --- a/packages/google-container/.mocharc.js +++ b/packages/google-container/.mocharc.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/.prettierrc.js b/packages/google-container/.prettierrc.js index d1b95106f4c..d546a4ad546 100644 --- a/packages/google-container/.prettierrc.js +++ b/packages/google-container/.prettierrc.js @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/packages/google-container/.repo-metadata.json b/packages/google-container/.repo-metadata.json index d50c2b1318c..ddd7f46d17c 100644 --- a/packages/google-container/.repo-metadata.json +++ b/packages/google-container/.repo-metadata.json @@ -1,6 +1,6 @@ { "language": "nodejs", - "repo": "googleapis/nodejs-cloud-container", + "repo": "googleapis/google-cloud-node", "name": "container", "issue_tracker": "https://issuetracker.google.com/savedsearches/559746", "default_version": "v1", diff --git a/packages/google-container/README.md b/packages/google-container/README.md index d452abe9fad..dcfee3258ee 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -2,7 +2,7 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [Kubernetes Engine Cluster Manager API: Node.js Client](https://github.com/googleapis/nodejs-cloud-container) +# [Kubernetes Engine Cluster Manager API: Node.js Client](https://github.com/googleapis/google-cloud-node) [![release level](https://img.shields.io/badge/release%20level-stable-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages) [![npm version](https://img.shields.io/npm/v/@google-cloud/container.svg)](https://www.npmjs.org/package/@google-cloud/container) @@ -17,11 +17,11 @@ building and managing container based applications, powered by the open source K A comprehensive list of changes in each version may be found in -[the CHANGELOG](https://github.com/googleapis/nodejs-cloud-container/blob/main/CHANGELOG.md). +[the CHANGELOG](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-container/CHANGELOG.md). * [Kubernetes Engine Cluster Manager API Node.js Client API Reference][client-docs] * [Kubernetes Engine Cluster Manager API Documentation][product-docs] -* [github.com/googleapis/nodejs-cloud-container](https://github.com/googleapis/nodejs-cloud-container) +* [github.com/googleapis/google-cloud-node/packages/google-container](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-container) Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in [Client Libraries Explained][explained]. @@ -96,13 +96,44 @@ To run commands against the clusters created, you will need to use the ## Samples -Samples are in the [`samples/`](https://github.com/googleapis/nodejs-cloud-container/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. +Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample. | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Create_cluster | [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/create_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/create_cluster.js,samples/README.md) | -| Delete_cluster | [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/delete_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/delete_cluster.js,samples/README.md) | -| Quickstart | [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) | +| Cluster_manager.cancel_operation | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.cancel_operation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.cancel_operation.js,samples/README.md) | +| Cluster_manager.complete_i_p_rotation | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_i_p_rotation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_i_p_rotation.js,samples/README.md) | +| Cluster_manager.complete_node_pool_upgrade | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js,samples/README.md) | +| Cluster_manager.create_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_cluster.js,samples/README.md) | +| Cluster_manager.create_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_node_pool.js,samples/README.md) | +| Cluster_manager.delete_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_cluster.js,samples/README.md) | +| Cluster_manager.delete_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_node_pool.js,samples/README.md) | +| Cluster_manager.get_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_cluster.js,samples/README.md) | +| Cluster_manager.get_j_s_o_n_web_keys | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js,samples/README.md) | +| Cluster_manager.get_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_node_pool.js,samples/README.md) | +| Cluster_manager.get_operation | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_operation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_operation.js,samples/README.md) | +| Cluster_manager.get_server_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_server_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_server_config.js,samples/README.md) | +| Cluster_manager.list_clusters | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_clusters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_clusters.js,samples/README.md) | +| Cluster_manager.list_node_pools | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_node_pools.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_node_pools.js,samples/README.md) | +| Cluster_manager.list_operations | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_operations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_operations.js,samples/README.md) | +| Cluster_manager.list_usable_subnetworks | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_usable_subnetworks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_usable_subnetworks.js,samples/README.md) | +| Cluster_manager.rollback_node_pool_upgrade | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js,samples/README.md) | +| Cluster_manager.set_addons_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_addons_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_addons_config.js,samples/README.md) | +| Cluster_manager.set_labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_labels.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_labels.js,samples/README.md) | +| Cluster_manager.set_legacy_abac | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_legacy_abac.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_legacy_abac.js,samples/README.md) | +| Cluster_manager.set_locations | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_locations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_locations.js,samples/README.md) | +| Cluster_manager.set_logging_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_logging_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_logging_service.js,samples/README.md) | +| Cluster_manager.set_maintenance_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_maintenance_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_maintenance_policy.js,samples/README.md) | +| Cluster_manager.set_master_auth | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_master_auth.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_master_auth.js,samples/README.md) | +| Cluster_manager.set_monitoring_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_monitoring_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_monitoring_service.js,samples/README.md) | +| Cluster_manager.set_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_network_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_network_policy.js,samples/README.md) | +| Cluster_manager.set_node_pool_autoscaling | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js,samples/README.md) | +| Cluster_manager.set_node_pool_management | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_management.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_management.js,samples/README.md) | +| Cluster_manager.set_node_pool_size | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_size.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_size.js,samples/README.md) | +| Cluster_manager.start_i_p_rotation | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.start_i_p_rotation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.start_i_p_rotation.js,samples/README.md) | +| Cluster_manager.update_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_cluster.js,samples/README.md) | +| Cluster_manager.update_master | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_master.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_master.js,samples/README.md) | +| Cluster_manager.update_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_node_pool.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) | @@ -152,7 +183,7 @@ More Information: [Google Cloud Platform Launch Stages][launch_stages] ## Contributing -Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/nodejs-cloud-container/blob/main/CONTRIBUTING.md). +Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-cloud-node/blob/main/CONTRIBUTING.md). Please note that this `README.md`, the `samples/README.md`, and a variety of configuration files in this repository (including `.nycrc` and `tsconfig.json`) @@ -164,7 +195,7 @@ to its templates in Apache Version 2.0 -See [LICENSE](https://github.com/googleapis/nodejs-cloud-container/blob/main/LICENSE) +See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE) [client-docs]: https://cloud.google.com/nodejs/docs/reference/container/latest [product-docs]: https://cloud.google.com/kubernetes-engine diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 5b4f31b2a4b..a5271377dc3 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/package.json @@ -7,7 +7,11 @@ "engines": { "node": ">=12.0.0" }, - "repository": "googleapis/nodejs-cloud-container", + "repository": { + "type": "git", + "directory": "packages/google-container", + "url": "https://github.com/googleapis/google-cloud-node.git" + }, "main": "build/src/index.js", "files": [ "build/protos", @@ -28,8 +32,8 @@ ], "scripts": { "test": "c8 mocha build/test", - "samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../", - "system-test": "mocha build/system-test", + "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test", + "system-test": "npm run compile && c8 mocha build/system-test", "lint": "gts check", "fix": "gts fix", "docs": "jsdoc -c .jsdoc.js", @@ -63,5 +67,6 @@ "typescript": "^4.6.4", "webpack": "^5.0.0", "webpack-cli": "^4.0.0" - } + }, + "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-container" } diff --git a/packages/google-container/samples/README.md b/packages/google-container/samples/README.md index 8dd59b09c5d..89876b0676f 100644 --- a/packages/google-container/samples/README.md +++ b/packages/google-container/samples/README.md @@ -2,7 +2,7 @@ [//]: # "To regenerate it, use `python -m synthtool`." Google Cloud Platform logo -# [Kubernetes Engine Cluster Manager API: Node.js Samples](https://github.com/googleapis/nodejs-cloud-container) +# [Kubernetes Engine Cluster Manager API: Node.js Samples](https://github.com/googleapis/google-cloud-node) [![Open in Cloud Shell][shell_img]][shell_link] @@ -15,14 +15,45 @@ building and managing container based applications, powered by the open source K * [Before you begin](#before-you-begin) * [Samples](#samples) - * [Create_cluster](#create_cluster) - * [Delete_cluster](#delete_cluster) + * [Cluster_manager.cancel_operation](#cluster_manager.cancel_operation) + * [Cluster_manager.complete_i_p_rotation](#cluster_manager.complete_i_p_rotation) + * [Cluster_manager.complete_node_pool_upgrade](#cluster_manager.complete_node_pool_upgrade) + * [Cluster_manager.create_cluster](#cluster_manager.create_cluster) + * [Cluster_manager.create_node_pool](#cluster_manager.create_node_pool) + * [Cluster_manager.delete_cluster](#cluster_manager.delete_cluster) + * [Cluster_manager.delete_node_pool](#cluster_manager.delete_node_pool) + * [Cluster_manager.get_cluster](#cluster_manager.get_cluster) + * [Cluster_manager.get_j_s_o_n_web_keys](#cluster_manager.get_j_s_o_n_web_keys) + * [Cluster_manager.get_node_pool](#cluster_manager.get_node_pool) + * [Cluster_manager.get_operation](#cluster_manager.get_operation) + * [Cluster_manager.get_server_config](#cluster_manager.get_server_config) + * [Cluster_manager.list_clusters](#cluster_manager.list_clusters) + * [Cluster_manager.list_node_pools](#cluster_manager.list_node_pools) + * [Cluster_manager.list_operations](#cluster_manager.list_operations) + * [Cluster_manager.list_usable_subnetworks](#cluster_manager.list_usable_subnetworks) + * [Cluster_manager.rollback_node_pool_upgrade](#cluster_manager.rollback_node_pool_upgrade) + * [Cluster_manager.set_addons_config](#cluster_manager.set_addons_config) + * [Cluster_manager.set_labels](#cluster_manager.set_labels) + * [Cluster_manager.set_legacy_abac](#cluster_manager.set_legacy_abac) + * [Cluster_manager.set_locations](#cluster_manager.set_locations) + * [Cluster_manager.set_logging_service](#cluster_manager.set_logging_service) + * [Cluster_manager.set_maintenance_policy](#cluster_manager.set_maintenance_policy) + * [Cluster_manager.set_master_auth](#cluster_manager.set_master_auth) + * [Cluster_manager.set_monitoring_service](#cluster_manager.set_monitoring_service) + * [Cluster_manager.set_network_policy](#cluster_manager.set_network_policy) + * [Cluster_manager.set_node_pool_autoscaling](#cluster_manager.set_node_pool_autoscaling) + * [Cluster_manager.set_node_pool_management](#cluster_manager.set_node_pool_management) + * [Cluster_manager.set_node_pool_size](#cluster_manager.set_node_pool_size) + * [Cluster_manager.start_i_p_rotation](#cluster_manager.start_i_p_rotation) + * [Cluster_manager.update_cluster](#cluster_manager.update_cluster) + * [Cluster_manager.update_master](#cluster_manager.update_master) + * [Cluster_manager.update_node_pool](#cluster_manager.update_node_pool) * [Quickstart](#quickstart) ## Before you begin Before running the samples, make sure you've followed the steps outlined in -[Using the client library](https://github.com/googleapis/nodejs-cloud-container#using-the-client-library). +[Using the client library](https://github.com/googleapis/google-cloud-node#using-the-client-library). `cd samples` @@ -34,16 +65,16 @@ Before running the samples, make sure you've followed the steps outlined in -### Create_cluster +### Cluster_manager.cancel_operation -View the [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/create_cluster.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.cancel_operation.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/create_cluster.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.cancel_operation.js,samples/README.md) __Usage:__ -`node samples/create_cluster.js` +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.cancel_operation.js` ----- @@ -51,16 +82,543 @@ __Usage:__ -### Delete_cluster +### Cluster_manager.complete_i_p_rotation -View the [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/delete_cluster.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_i_p_rotation.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/delete_cluster.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_i_p_rotation.js,samples/README.md) __Usage:__ -`node samples/delete_cluster.js` +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_i_p_rotation.js` + + +----- + + + + +### Cluster_manager.complete_node_pool_upgrade + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js` + + +----- + + + + +### Cluster_manager.create_cluster + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_cluster.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_cluster.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_cluster.js` + + +----- + + + + +### Cluster_manager.create_node_pool + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_node_pool.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_node_pool.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_node_pool.js` + + +----- + + + + +### Cluster_manager.delete_cluster + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_cluster.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_cluster.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_cluster.js` + + +----- + + + + +### Cluster_manager.delete_node_pool + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_node_pool.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_node_pool.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_node_pool.js` + + +----- + + + + +### Cluster_manager.get_cluster + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_cluster.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_cluster.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_cluster.js` + + +----- + + + + +### Cluster_manager.get_j_s_o_n_web_keys + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js` + + +----- + + + + +### Cluster_manager.get_node_pool + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_node_pool.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_node_pool.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_node_pool.js` + + +----- + + + + +### Cluster_manager.get_operation + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_operation.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_operation.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_operation.js` + + +----- + + + + +### Cluster_manager.get_server_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_server_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_server_config.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_server_config.js` + + +----- + + + + +### Cluster_manager.list_clusters + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_clusters.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_clusters.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_clusters.js` + + +----- + + + + +### Cluster_manager.list_node_pools + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_node_pools.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_node_pools.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_node_pools.js` + + +----- + + + + +### Cluster_manager.list_operations + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_operations.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_operations.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_operations.js` + + +----- + + + + +### Cluster_manager.list_usable_subnetworks + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_usable_subnetworks.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_usable_subnetworks.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_usable_subnetworks.js` + + +----- + + + + +### Cluster_manager.rollback_node_pool_upgrade + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js` + + +----- + + + + +### Cluster_manager.set_addons_config + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_addons_config.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_addons_config.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_addons_config.js` + + +----- + + + + +### Cluster_manager.set_labels + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_labels.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_labels.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_labels.js` + + +----- + + + + +### Cluster_manager.set_legacy_abac + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_legacy_abac.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_legacy_abac.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_legacy_abac.js` + + +----- + + + + +### Cluster_manager.set_locations + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_locations.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_locations.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_locations.js` + + +----- + + + + +### Cluster_manager.set_logging_service + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_logging_service.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_logging_service.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_logging_service.js` + + +----- + + + + +### Cluster_manager.set_maintenance_policy + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_maintenance_policy.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_maintenance_policy.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_maintenance_policy.js` + + +----- + + + + +### Cluster_manager.set_master_auth + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_master_auth.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_master_auth.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_master_auth.js` + + +----- + + + + +### Cluster_manager.set_monitoring_service + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_monitoring_service.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_monitoring_service.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_monitoring_service.js` + + +----- + + + + +### Cluster_manager.set_network_policy + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_network_policy.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_network_policy.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_network_policy.js` + + +----- + + + + +### Cluster_manager.set_node_pool_autoscaling + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js` + + +----- + + + + +### Cluster_manager.set_node_pool_management + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_management.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_management.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_management.js` + + +----- + + + + +### Cluster_manager.set_node_pool_size + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_size.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_size.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_size.js` + + +----- + + + + +### Cluster_manager.start_i_p_rotation + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.start_i_p_rotation.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.start_i_p_rotation.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.start_i_p_rotation.js` + + +----- + + + + +### Cluster_manager.update_cluster + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_cluster.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_cluster.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_cluster.js` + + +----- + + + + +### Cluster_manager.update_master + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_master.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_master.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_master.js` + + +----- + + + + +### Cluster_manager.update_node_pool + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_node_pool.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_node_pool.js,samples/README.md) + +__Usage:__ + + +`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_node_pool.js` ----- @@ -70,14 +628,14 @@ __Usage:__ ### Quickstart -View the [source code](https://github.com/googleapis/nodejs-cloud-container/blob/main/samples/quickstart.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/quickstart.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) __Usage:__ -`node samples/quickstart.js` +`node /workspace/google-cloud-node/samples/quickstart.js` @@ -85,5 +643,5 @@ __Usage:__ [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png -[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-cloud-container&page=editor&open_in_editor=samples/README.md +[shell_link]: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=samples/README.md [product-docs]: https://cloud.google.com/kubernetes-engine diff --git a/packages/google-container/src/index.ts b/packages/google-container/src/index.ts index a08475c7343..3bfe04f539b 100644 --- a/packages/google-container/src/index.ts +++ b/packages/google-container/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/release-please-config.json b/release-please-config.json index 31b94480330..7662c46d5e7 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -34,6 +34,7 @@ "packages/google-cloud-texttospeech": {}, "packages/google-cloud-translate": {}, "packages/google-cloud-videointelligence": {}, + "packages/google-container": {}, "packages/google-devtools-artifactregistry": {}, "packages/google-iam": {}, "packages/google-maps-addressvalidation": {}, @@ -47,4 +48,4 @@ } ], "release-type": "node" -} \ No newline at end of file +} From 27804f23d01ba5baed9a6130ca869ebabe32298d Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Fri, 11 Nov 2022 00:39:59 -0800 Subject: [PATCH 367/371] Create quickstart.test.js --- .../samples/test/quickstart.test.js | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 packages/google-container/samples/test/quickstart.test.js diff --git a/packages/google-container/samples/test/quickstart.test.js b/packages/google-container/samples/test/quickstart.test.js new file mode 100644 index 00000000000..a301a489a99 --- /dev/null +++ b/packages/google-container/samples/test/quickstart.test.js @@ -0,0 +1,28 @@ +// Copyright 2017 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. + +'use strict'; + +const {assert} = require('chai'); +const {describe, it} = require('mocha'); +const cp = require('child_process'); + +const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); + +describe('container samples - quickstart', () => { + it('should run the quickstart', async () => { + const stdout = execSync('node quickstart'); + assert.match(stdout, /Clusters:/); + }); +}); From f8464ce4d52bb59f381bfb99afb6a6e418a958b0 Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Fri, 11 Nov 2022 00:40:13 -0800 Subject: [PATCH 368/371] Update package.json --- packages/google-container/samples/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-container/samples/package.json b/packages/google-container/samples/package.json index 280d4f20646..c73c121e48c 100644 --- a/packages/google-container/samples/package.json +++ b/packages/google-container/samples/package.json @@ -11,7 +11,7 @@ "*.js" ], "scripts": { - "test": "mocha system-test --timeout 1000000" + "test": "mocha test --timeout 1000000" }, "dependencies": { "@google-cloud/container": "^4.4.0", From 3aa27adcd298ee6cbf5b555b4f47633f73a67cff Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Fri, 11 Nov 2022 00:40:31 -0800 Subject: [PATCH 369/371] Delete smoke.ts --- .../google-container/system-test/smoke.ts | 31 ------------------- 1 file changed, 31 deletions(-) delete mode 100644 packages/google-container/system-test/smoke.ts diff --git a/packages/google-container/system-test/smoke.ts b/packages/google-container/system-test/smoke.ts deleted file mode 100644 index d47bced532d..00000000000 --- a/packages/google-container/system-test/smoke.ts +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2019 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// 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. - -import {describe, it} from 'mocha'; -import {ClusterManagerClient} from '../src'; -import * as assert from 'assert'; - -describe('ClusterManagerSmokeTest', () => { - it('successfully makes a call to the service', async () => { - const client = new ClusterManagerClient(); - const projectId = await client.getProjectId(); - const zone = 'us-central1-a'; - const request = { - projectId, - zone, - }; - const [result] = await client.listClusters(request); - assert.ok(result); - }); -}); From 26812a360e49d12f91adf4e0f061fdeca0f9da73 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 11 Nov 2022 08:49:10 +0000 Subject: [PATCH 370/371] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= =?UTF-8?q?=20post-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- packages/google-container/README.md | 81 ++++---- packages/google-container/samples/README.md | 207 ++++++++++---------- release-please-config.json | 2 +- 3 files changed, 138 insertions(+), 152 deletions(-) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index dcfee3258ee..bd3f16fddc9 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -10,10 +10,7 @@ -> Node.js idiomatic client for [Kubernetes Engine][product-docs] cluster management. - -[Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/) is used for -building and managing container based applications, powered by the open source Kubernetes technology. +Google Container Engine API client for Node.js A comprehensive list of changes in each version may be found in @@ -84,14 +81,6 @@ main().catch(console.error); ``` -## Relationship to Kubernetes - -`@google-cloud/container` provides a high level API for creating and managing -[Google Kubernetes Engine](https://cloud.google.com/gke) clusters on Google Cloud. - -To run commands against the clusters created, you will need to use the -[Kubernetes API](https://kubernetes.io/docs/reference/using-api/api-overview/) -(and the associated kubectl command-line interface). ## Samples @@ -100,40 +89,40 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Sample | Source Code | Try it | | --------------------------- | --------------------------------- | ------ | -| Cluster_manager.cancel_operation | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.cancel_operation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.cancel_operation.js,samples/README.md) | -| Cluster_manager.complete_i_p_rotation | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_i_p_rotation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_i_p_rotation.js,samples/README.md) | -| Cluster_manager.complete_node_pool_upgrade | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js,samples/README.md) | -| Cluster_manager.create_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_cluster.js,samples/README.md) | -| Cluster_manager.create_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_node_pool.js,samples/README.md) | -| Cluster_manager.delete_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_cluster.js,samples/README.md) | -| Cluster_manager.delete_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_node_pool.js,samples/README.md) | -| Cluster_manager.get_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_cluster.js,samples/README.md) | -| Cluster_manager.get_j_s_o_n_web_keys | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js,samples/README.md) | -| Cluster_manager.get_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_node_pool.js,samples/README.md) | -| Cluster_manager.get_operation | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_operation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_operation.js,samples/README.md) | -| Cluster_manager.get_server_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_server_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_server_config.js,samples/README.md) | -| Cluster_manager.list_clusters | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_clusters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_clusters.js,samples/README.md) | -| Cluster_manager.list_node_pools | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_node_pools.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_node_pools.js,samples/README.md) | -| Cluster_manager.list_operations | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_operations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_operations.js,samples/README.md) | -| Cluster_manager.list_usable_subnetworks | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_usable_subnetworks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_usable_subnetworks.js,samples/README.md) | -| Cluster_manager.rollback_node_pool_upgrade | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js,samples/README.md) | -| Cluster_manager.set_addons_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_addons_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_addons_config.js,samples/README.md) | -| Cluster_manager.set_labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_labels.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_labels.js,samples/README.md) | -| Cluster_manager.set_legacy_abac | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_legacy_abac.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_legacy_abac.js,samples/README.md) | -| Cluster_manager.set_locations | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_locations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_locations.js,samples/README.md) | -| Cluster_manager.set_logging_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_logging_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_logging_service.js,samples/README.md) | -| Cluster_manager.set_maintenance_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_maintenance_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_maintenance_policy.js,samples/README.md) | -| Cluster_manager.set_master_auth | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_master_auth.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_master_auth.js,samples/README.md) | -| Cluster_manager.set_monitoring_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_monitoring_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_monitoring_service.js,samples/README.md) | -| Cluster_manager.set_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_network_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_network_policy.js,samples/README.md) | -| Cluster_manager.set_node_pool_autoscaling | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js,samples/README.md) | -| Cluster_manager.set_node_pool_management | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_management.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_management.js,samples/README.md) | -| Cluster_manager.set_node_pool_size | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_size.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_size.js,samples/README.md) | -| Cluster_manager.start_i_p_rotation | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.start_i_p_rotation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.start_i_p_rotation.js,samples/README.md) | -| Cluster_manager.update_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_cluster.js,samples/README.md) | -| Cluster_manager.update_master | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_master.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_master.js,samples/README.md) | -| Cluster_manager.update_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_node_pool.js,samples/README.md) | -| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) | +| Cluster_manager.cancel_operation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js,samples/README.md) | +| Cluster_manager.complete_i_p_rotation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js,samples/README.md) | +| Cluster_manager.complete_node_pool_upgrade | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js,samples/README.md) | +| Cluster_manager.create_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js,samples/README.md) | +| Cluster_manager.create_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js,samples/README.md) | +| Cluster_manager.delete_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js,samples/README.md) | +| Cluster_manager.delete_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js,samples/README.md) | +| Cluster_manager.get_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js,samples/README.md) | +| Cluster_manager.get_j_s_o_n_web_keys | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js,samples/README.md) | +| Cluster_manager.get_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js,samples/README.md) | +| Cluster_manager.get_operation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.get_operation.js,samples/README.md) | +| Cluster_manager.get_server_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js,samples/README.md) | +| Cluster_manager.list_clusters | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js,samples/README.md) | +| Cluster_manager.list_node_pools | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js,samples/README.md) | +| Cluster_manager.list_operations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.list_operations.js,samples/README.md) | +| Cluster_manager.list_usable_subnetworks | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js,samples/README.md) | +| Cluster_manager.rollback_node_pool_upgrade | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js,samples/README.md) | +| Cluster_manager.set_addons_config | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js,samples/README.md) | +| Cluster_manager.set_labels | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_labels.js,samples/README.md) | +| Cluster_manager.set_legacy_abac | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js,samples/README.md) | +| Cluster_manager.set_locations | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_locations.js,samples/README.md) | +| Cluster_manager.set_logging_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js,samples/README.md) | +| Cluster_manager.set_maintenance_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js,samples/README.md) | +| Cluster_manager.set_master_auth | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js,samples/README.md) | +| Cluster_manager.set_monitoring_service | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js,samples/README.md) | +| Cluster_manager.set_network_policy | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js,samples/README.md) | +| Cluster_manager.set_node_pool_autoscaling | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js,samples/README.md) | +| Cluster_manager.set_node_pool_management | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js,samples/README.md) | +| Cluster_manager.set_node_pool_size | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js,samples/README.md) | +| Cluster_manager.start_i_p_rotation | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js,samples/README.md) | +| Cluster_manager.update_cluster | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js,samples/README.md) | +| Cluster_manager.update_master | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.update_master.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.update_master.js,samples/README.md) | +| Cluster_manager.update_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js,samples/README.md) | +| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/quickstart.js,samples/README.md) | diff --git a/packages/google-container/samples/README.md b/packages/google-container/samples/README.md index 89876b0676f..feb8e2508dc 100644 --- a/packages/google-container/samples/README.md +++ b/packages/google-container/samples/README.md @@ -6,10 +6,7 @@ [![Open in Cloud Shell][shell_img]][shell_link] -> Node.js idiomatic client for [Kubernetes Engine][product-docs] cluster management. -[Kubernetes Engine](https://cloud.google.com/kubernetes-engine/docs/) is used for -building and managing container based applications, powered by the open source Kubernetes technology. ## Table of Contents @@ -67,14 +64,14 @@ Before running the samples, make sure you've followed the steps outlined in ### Cluster_manager.cancel_operation -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.cancel_operation.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.cancel_operation.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.cancel_operation.js` +`node packages/google-container/samples/generated/v1/cluster_manager.cancel_operation.js` ----- @@ -84,14 +81,14 @@ __Usage:__ ### Cluster_manager.complete_i_p_rotation -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_i_p_rotation.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_i_p_rotation.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_i_p_rotation.js` +`node packages/google-container/samples/generated/v1/cluster_manager.complete_i_p_rotation.js` ----- @@ -101,14 +98,14 @@ __Usage:__ ### Cluster_manager.complete_node_pool_upgrade -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js` +`node packages/google-container/samples/generated/v1/cluster_manager.complete_node_pool_upgrade.js` ----- @@ -118,14 +115,14 @@ __Usage:__ ### Cluster_manager.create_cluster -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_cluster.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_cluster.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_cluster.js` +`node packages/google-container/samples/generated/v1/cluster_manager.create_cluster.js` ----- @@ -135,14 +132,14 @@ __Usage:__ ### Cluster_manager.create_node_pool -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_node_pool.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_node_pool.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.create_node_pool.js` +`node packages/google-container/samples/generated/v1/cluster_manager.create_node_pool.js` ----- @@ -152,14 +149,14 @@ __Usage:__ ### Cluster_manager.delete_cluster -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_cluster.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_cluster.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_cluster.js` +`node packages/google-container/samples/generated/v1/cluster_manager.delete_cluster.js` ----- @@ -169,14 +166,14 @@ __Usage:__ ### Cluster_manager.delete_node_pool -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_node_pool.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_node_pool.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.delete_node_pool.js` +`node packages/google-container/samples/generated/v1/cluster_manager.delete_node_pool.js` ----- @@ -186,14 +183,14 @@ __Usage:__ ### Cluster_manager.get_cluster -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_cluster.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_cluster.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_cluster.js` +`node packages/google-container/samples/generated/v1/cluster_manager.get_cluster.js` ----- @@ -203,14 +200,14 @@ __Usage:__ ### Cluster_manager.get_j_s_o_n_web_keys -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js` +`node packages/google-container/samples/generated/v1/cluster_manager.get_j_s_o_n_web_keys.js` ----- @@ -220,14 +217,14 @@ __Usage:__ ### Cluster_manager.get_node_pool -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_node_pool.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_node_pool.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_node_pool.js` +`node packages/google-container/samples/generated/v1/cluster_manager.get_node_pool.js` ----- @@ -237,14 +234,14 @@ __Usage:__ ### Cluster_manager.get_operation -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_operation.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.get_operation.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_operation.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.get_operation.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_operation.js` +`node packages/google-container/samples/generated/v1/cluster_manager.get_operation.js` ----- @@ -254,14 +251,14 @@ __Usage:__ ### Cluster_manager.get_server_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_server_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_server_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.get_server_config.js` +`node packages/google-container/samples/generated/v1/cluster_manager.get_server_config.js` ----- @@ -271,14 +268,14 @@ __Usage:__ ### Cluster_manager.list_clusters -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_clusters.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_clusters.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_clusters.js` +`node packages/google-container/samples/generated/v1/cluster_manager.list_clusters.js` ----- @@ -288,14 +285,14 @@ __Usage:__ ### Cluster_manager.list_node_pools -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_node_pools.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_node_pools.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_node_pools.js` +`node packages/google-container/samples/generated/v1/cluster_manager.list_node_pools.js` ----- @@ -305,14 +302,14 @@ __Usage:__ ### Cluster_manager.list_operations -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_operations.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.list_operations.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_operations.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.list_operations.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_operations.js` +`node packages/google-container/samples/generated/v1/cluster_manager.list_operations.js` ----- @@ -322,14 +319,14 @@ __Usage:__ ### Cluster_manager.list_usable_subnetworks -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_usable_subnetworks.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_usable_subnetworks.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.list_usable_subnetworks.js` +`node packages/google-container/samples/generated/v1/cluster_manager.list_usable_subnetworks.js` ----- @@ -339,14 +336,14 @@ __Usage:__ ### Cluster_manager.rollback_node_pool_upgrade -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js` +`node packages/google-container/samples/generated/v1/cluster_manager.rollback_node_pool_upgrade.js` ----- @@ -356,14 +353,14 @@ __Usage:__ ### Cluster_manager.set_addons_config -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_addons_config.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_addons_config.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_addons_config.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_addons_config.js` ----- @@ -373,14 +370,14 @@ __Usage:__ ### Cluster_manager.set_labels -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_labels.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_labels.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_labels.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_labels.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_labels.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_labels.js` ----- @@ -390,14 +387,14 @@ __Usage:__ ### Cluster_manager.set_legacy_abac -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_legacy_abac.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_legacy_abac.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_legacy_abac.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_legacy_abac.js` ----- @@ -407,14 +404,14 @@ __Usage:__ ### Cluster_manager.set_locations -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_locations.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_locations.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_locations.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_locations.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_locations.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_locations.js` ----- @@ -424,14 +421,14 @@ __Usage:__ ### Cluster_manager.set_logging_service -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_logging_service.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_logging_service.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_logging_service.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_logging_service.js` ----- @@ -441,14 +438,14 @@ __Usage:__ ### Cluster_manager.set_maintenance_policy -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_maintenance_policy.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_maintenance_policy.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_maintenance_policy.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_maintenance_policy.js` ----- @@ -458,14 +455,14 @@ __Usage:__ ### Cluster_manager.set_master_auth -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_master_auth.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_master_auth.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_master_auth.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_master_auth.js` ----- @@ -475,14 +472,14 @@ __Usage:__ ### Cluster_manager.set_monitoring_service -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_monitoring_service.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_monitoring_service.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_monitoring_service.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_monitoring_service.js` ----- @@ -492,14 +489,14 @@ __Usage:__ ### Cluster_manager.set_network_policy -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_network_policy.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_network_policy.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_network_policy.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_network_policy.js` ----- @@ -509,14 +506,14 @@ __Usage:__ ### Cluster_manager.set_node_pool_autoscaling -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_autoscaling.js` ----- @@ -526,14 +523,14 @@ __Usage:__ ### Cluster_manager.set_node_pool_management -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_management.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_management.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_management.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_management.js` ----- @@ -543,14 +540,14 @@ __Usage:__ ### Cluster_manager.set_node_pool_size -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_size.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_size.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.set_node_pool_size.js` +`node packages/google-container/samples/generated/v1/cluster_manager.set_node_pool_size.js` ----- @@ -560,14 +557,14 @@ __Usage:__ ### Cluster_manager.start_i_p_rotation -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.start_i_p_rotation.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.start_i_p_rotation.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.start_i_p_rotation.js` +`node packages/google-container/samples/generated/v1/cluster_manager.start_i_p_rotation.js` ----- @@ -577,14 +574,14 @@ __Usage:__ ### Cluster_manager.update_cluster -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_cluster.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_cluster.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_cluster.js` +`node packages/google-container/samples/generated/v1/cluster_manager.update_cluster.js` ----- @@ -594,14 +591,14 @@ __Usage:__ ### Cluster_manager.update_master -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_master.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.update_master.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_master.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.update_master.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_master.js` +`node packages/google-container/samples/generated/v1/cluster_manager.update_master.js` ----- @@ -611,14 +608,14 @@ __Usage:__ ### Cluster_manager.update_node_pool -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_node_pool.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_node_pool.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/generated/v1/cluster_manager.update_node_pool.js` +`node packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js` ----- @@ -628,14 +625,14 @@ __Usage:__ ### Quickstart -View the [source code](https://github.com/googleapis/google-cloud-node/blob/main//workspace/google-cloud-node/samples/quickstart.js). +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/quickstart.js). -[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=/workspace/google-cloud-node/samples/quickstart.js,samples/README.md) +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/quickstart.js,samples/README.md) __Usage:__ -`node /workspace/google-cloud-node/samples/quickstart.js` +`node packages/google-container/samples/quickstart.js` diff --git a/release-please-config.json b/release-please-config.json index 7662c46d5e7..065edc12bd5 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -48,4 +48,4 @@ } ], "release-type": "node" -} +} \ No newline at end of file From e6806602cee4f8de621940aa10339af3ab21f96a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 11 Nov 2022 09:09:22 +0000 Subject: [PATCH 371/371] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= =?UTF-8?q?=20post-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- packages/google-container/README.md | 1 + packages/google-container/samples/README.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/packages/google-container/README.md b/packages/google-container/README.md index bd3f16fddc9..189d970d5e1 100644 --- a/packages/google-container/README.md +++ b/packages/google-container/README.md @@ -123,6 +123,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/ | Cluster_manager.update_master | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.update_master.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.update_master.js,samples/README.md) | | Cluster_manager.update_node_pool | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/generated/v1/cluster_manager.update_node_pool.js,samples/README.md) | | Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/quickstart.js,samples/README.md) | +| Quickstart.test | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/test/quickstart.test.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/test/quickstart.test.js,samples/README.md) | diff --git a/packages/google-container/samples/README.md b/packages/google-container/samples/README.md index feb8e2508dc..57c39746882 100644 --- a/packages/google-container/samples/README.md +++ b/packages/google-container/samples/README.md @@ -46,6 +46,7 @@ * [Cluster_manager.update_master](#cluster_manager.update_master) * [Cluster_manager.update_node_pool](#cluster_manager.update_node_pool) * [Quickstart](#quickstart) + * [Quickstart.test](#quickstart.test) ## Before you begin @@ -635,6 +636,23 @@ __Usage:__ `node packages/google-container/samples/quickstart.js` +----- + + + + +### Quickstart.test + +View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-container/samples/test/quickstart.test.js). + +[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-container/samples/test/quickstart.test.js,samples/README.md) + +__Usage:__ + + +`node packages/google-container/samples/test/quickstart.test.js` + +